// ============================================ // News Pages Styles - Light Blue Theme (Matching About Page) // ============================================ // Import variables @import './variables.less'; // ============================================ // News List Page // ============================================ .news-page { min-height: 100vh; background: linear-gradient(135deg, #FFF 0%, #CBEEFF 100%); } // Page Header .page-header { padding: 60px 20px 40px; background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../imgs/banner/news.jpg') center/cover no-repeat; border-bottom: none; position: relative; .container { max-width: 1400px; margin: 0 auto; } //.header-content { // max-width: 900px; //} .breadcrumb { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 0.9rem; .breadcrumb-item { color: rgba(255, 255, 255, 0.8); text-decoration: none; transition: color @transition-fast; &:hover { color: #FFFFFF; } &.current { color: #FFFFFF; font-weight: 500; } } .breadcrumb-separator { color: rgba(255, 255, 255, 0.6); } } .page-title { font-size: 2.5rem; font-weight: 700; color: #FFFFFF; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); margin-bottom: 16px; line-height: 1.2; @media (max-width: 768px) { font-size: 2rem; } } .page-description { font-size: 1.1rem; color: #FFFFFF; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); line-height: 1.6; margin: 0; } } // News Content Section .news-content-section { padding: 32px 20px 60px; background: transparent; .container { text-align:center; max-width: 1400px; margin: 0 auto; } } .content-wrapper { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; @media (max-width: 1024px) { grid-template-columns: 1fr; } } // Main Content .main-content { min-width: 0; } // News List .news-list { display: flex; flex-direction: column; gap: 24px; } .news-item { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; transition: all @transition-smooth; @media (max-width: 768px) { grid-template-columns: 1fr; } .news-info { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(12px); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 16px rgba(11, 83, 255, 0.1); border: 1px solid rgba(11, 83, 255, 0.1); &:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(11, 83, 255, 0.15); border-color: rgba(11, 83, 255, 0.2); .news-thumbnail img { transform: scale(1.05); } .news-title a { color: #0B53FF; } } } .news-thumbnail { position: relative; width: 100%; height: 100%; min-height: 200px; overflow: hidden; background: #E0F2FF; @media (max-width: 768px) { min-height: 200px; } img { width: 100%; height: 100%; object-fit: cover; transition: transform @transition-smooth; } .featured-tag { position: absolute; top: 16px; left: 16px; background: linear-gradient(135deg, #0B53FF 0%, #0B53FF 100%); color: #FFFFFF; padding: 6px 16px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; box-shadow: 0 2px 8px rgba(11, 83, 255, 0.3); } } .news-info { padding: 28px 32px; display: flex; flex-direction: column; background: transparent; border: none; @media (max-width: 768px) { padding: 24px; } } .news-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; } .news-date { display: inline-flex; align-items: center; gap: 6px; color: #44A1FF; font-size: 0.875rem; font-weight: 500; svg { width: 16px; height: 16px; color: #0B53FF; } } .news-category { background: rgba(11, 83, 255, 0.1); color: #0B53FF; padding: 4px 12px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; } .news-title { margin: 0 0 10px; font-size: 1.4rem; font-weight: 700; line-height: 1.4; color: #0068D0; a { color: inherit; text-decoration: none; transition: color @transition-fast; } @media (max-width: 768px) { font-size: 1.25rem; } } .news-excerpt { flex-grow: 1; font-size: 0.95rem; color: #44A1FF; line-height: 1.6; margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } .read-more-link { display: inline-flex; align-items: center; gap: 8px; color: #0B53FF; font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: all @transition-fast; svg { width: 20px; height: 20px; transition: transform @transition-fast; } &:hover { color: #0068D0; svg { transform: translateX(4px); } } } } // Pagination .pagination { display: flex; align-items: center; justify-content: space-between; margin-top: 40px; padding-top: 24px; @media (max-width: 640px) { flex-direction: column; gap: 16px; } } .page-link { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(12px); border: 1px solid rgba(11, 83, 255, 0.15); border-radius: 8px; color: #0068D0; font-weight: 600; text-decoration: none; box-shadow: 0 2px 8px rgba(11, 83, 255, 0.08); transition: all @transition-smooth; svg { width: 20px; height: 20px; } &:hover { background: rgba(255, 255, 255, 0.95); border-color: #0B53FF; color: #0B53FF; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(11, 83, 255, 0.15); } } .page-numbers { display: flex; align-items: center; gap: 8px; } .page-number { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(12px); border: 1px solid rgba(11, 83, 255, 0.15); border-radius: 8px; color: #44A1FF; font-weight: 600; text-decoration: none; box-shadow: 0 2px 8px rgba(11, 83, 255, 0.08); transition: all @transition-fast; &:hover { background: rgba(255, 255, 255, 0.95); border-color: #0B53FF; color: #0B53FF; transform: translateY(-2px); } &.current { background: #0B53FF; border-color: #0B53FF; color: #FFFFFF; box-shadow: 0 4px 12px rgba(11, 83, 255, 0.3); } } .page-ellipsis { color: #44A1FF; padding: 0 8px; } // Empty State .empty-state { text-align: center; padding: 80px 40px; background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(12px); border-radius: 12px; box-shadow: 0 4px 16px rgba(11, 83, 255, 0.1); border: 1px solid rgba(11, 83, 255, 0.1); color: #44A1FF; svg { width: 64px; height: 64px; margin-bottom: 20px; opacity: 0.3; color: #0B53FF; } h3 { font-size: 1.5rem; color: #0068D0; margin-bottom: 8px; } p { font-size: 1rem; margin: 0; } } // ============================================ // Sidebar // ============================================ .sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 100px; @media (max-width: 1024px) { position: static; } } .sidebar-widget { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(12px); border-radius: 12px; padding: 24px; box-shadow: 0 4px 16px rgba(11, 83, 255, 0.1); border: 1px solid rgba(11, 83, 255, 0.1); transition: all @transition-smooth; &:hover { box-shadow: 0 6px 20px rgba(11, 83, 255, 0.15); } } .widget-title { font-size: 1.15rem; font-weight: 700; color: #0068D0; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 2px solid rgba(11, 83, 255, 0.2); } // Latest News List .latest-news-list { display: flex; flex-direction: column; gap: 16px; } .latest-news-item { display: flex; gap: 12px; text-decoration: none; padding: 8px; border-radius: 8px; transition: all @transition-fast; &:hover { background: rgba(11, 83, 255, 0.05); } } .latest-news-thumb { width: 80px; height: 60px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #E0F2FF; img { width: 100%; height: 100%; object-fit: cover; } &.placeholder { display: flex; align-items: center; justify-content: center; svg { width: 24px; height: 24px; opacity: 0.3; color: #0B53FF; } } } .latest-news-content { flex: 1; min-width: 0; } .latest-news-title { font-size: 0.95rem; font-weight: 600; color: #0068D0; margin: 0 0 4px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .latest-news-date { font-size: 0.8rem; color: #44A1FF; } // Categories List .categories-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; } .category-link { display: block; padding: 10px 16px; color: #44A1FF; text-decoration: none; border-radius: 6px; transition: all @transition-fast; font-size: 0.95rem; &:hover { background: rgba(11, 83, 255, 0.08); color: #0068D0; } &.active { background: #0B53FF; color: #FFFFFF; font-weight: 600; box-shadow: 0 2px 8px rgba(11, 83, 255, 0.3); } } // ============================================ // News Detail Page // ============================================ .news-detail-page { min-height: 100vh; background: linear-gradient(135deg, #FFF 0%, #CBEEFF 100%); } // Article Section .article-section { padding: 40px 20px 80px; background: transparent; .container { max-width: 1200px; margin: 0 auto; } } .article-wrapper { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; @media (max-width: 1024px) { grid-template-columns: 1fr; } } .article-main { min-width: 0; background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(12px); border-radius: 16px; padding: 48px; box-shadow: 0 10px 40px rgba(11, 83, 255, 0.1); border: 1px solid rgba(11, 83, 255, 0.1); @media (max-width: 768px) { padding: 32px 20px; } } // Article Header .article-header { margin-bottom: 40px; .featured-badge { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #0B53FF 0%, #0B53FF 100%); color: #FFFFFF; padding: 8px 20px; border-radius: 24px; font-weight: 600; font-size: 0.875rem; margin-bottom: 24px; box-shadow: 0 4px 12px rgba(11, 83, 255, 0.3); svg { width: 18px; height: 18px; } } .article-meta-top { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; } .article-date { display: inline-flex; align-items: center; gap: 6px; color: #44A1FF; font-size: 0.95rem; font-weight: 500; svg { width: 18px; height: 18px; color: #0B53FF; } } .article-category { background: rgba(11, 83, 255, 0.1); color: #0B53FF; padding: 6px 16px; border-radius: 4px; font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; } .article-title { font-size: 2.2rem; font-weight: 700; color: #0068D0; line-height: 1.3; margin: 0 0 20px; @media (max-width: 768px) { font-size: 1.8rem; } } .article-summary { font-size: 1.15rem; color: #44A1FF; line-height: 1.7; margin: 0; font-weight: 400; } } // Article Image .article-image { margin: 0 0 40px; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px rgba(11, 83, 255, 0.15); border: 1px solid rgba(11, 83, 255, 0.1); img { width: 100%; height: auto; display: block; } } // Article Body .article-body { font-size: 1.05rem; line-height: 1.8; color: #0068D0; h2 { font-size: 1.75rem; font-weight: 700; color: #0068D0; margin: 40px 0 20px; padding-bottom: 12px; border-bottom: 2px solid rgba(11, 83, 255, 0.2); } h3 { font-size: 1.4rem; font-weight: 700; color: #0068D0; margin: 32px 0 16px; } h4 { font-size: 1.15rem; font-weight: 600; color: #0068D0; margin: 24px 0 12px; } p { margin: 0 0 16px; color: #44A1FF; } ul, ol { margin: 16px 0; padding-left: 32px; } li { margin-bottom: 8px; color: #44A1FF; } blockquote { border-left: 4px solid #0B53FF; padding: 20px 24px; margin: 24px 0; background: rgba(11, 83, 255, 0.05); color: #44A1FF; font-style: italic; border-radius: 0 8px 8px 0; } img { max-width: 100%; height: auto; border-radius: 8px; margin: 24px 0; box-shadow: 0 4px 12px rgba(11, 83, 255, 0.1); } code { background: rgba(11, 83, 255, 0.08); padding: 3px 8px; border-radius: 4px; font-family: 'Consolas', 'Monaco', monospace; font-size: 0.9em; color: #0B53FF; } pre { background: rgba(11, 83, 255, 0.05); padding: 20px; border-radius: 8px; overflow-x: auto; margin: 24px 0; border: 1px solid rgba(11, 83, 255, 0.15); code { background: none; padding: 0; color: #0068D0; } } table { width: 100%; border-collapse: collapse; margin: 32px 0; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(11, 83, 255, 0.08); th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid rgba(11, 83, 255, 0.15); } th { background: rgba(11, 83, 255, 0.08); font-weight: 700; color: #0068D0; font-size: 0.95rem; } td { color: #44A1FF; } tr:last-child td { border-bottom: none; } } a { color: #0B53FF; text-decoration: none; border-bottom: 1px solid transparent; transition: all @transition-fast; &:hover { color: #0068D0; border-bottom-color: #0068D0; } } } // Article Footer .article-footer { margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(11, 83, 255, 0.2); } .article-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; .tag { background: rgba(11, 83, 255, 0.08); color: #0B53FF; padding: 8px 16px; border-radius: 20px; font-size: 0.875rem; border: 1px solid rgba(11, 83, 255, 0.15); transition: all @transition-fast; &:hover { background: rgba(11, 83, 255, 0.12); border-color: #0B53FF; color: #0068D0; } } } .article-actions { display: flex; gap: 16px; } .action-btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 24px; background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(12px); border: 1px solid rgba(11, 83, 255, 0.15); border-radius: 8px; color: #0068D0; font-weight: 600; font-size: 0.95rem; cursor: pointer; text-decoration: none; box-shadow: 0 2px 8px rgba(11, 83, 255, 0.08); transition: all @transition-smooth; svg { width: 20px; height: 20px; } &:hover { background: rgba(255, 255, 255, 0.95); border-color: #0B53FF; color: #0B53FF; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(11, 83, 255, 0.15); } } .share-btn { background: rgba(255, 255, 255, 0.8); border: 1px solid rgba(11, 83, 255, 0.15); } // Article Sidebar .article-sidebar { display: flex; flex-direction: column; gap: 32px; position: sticky; top: 100px; @media (max-width: 1024px) { position: static; } } .sidebar-section { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(12px); border-radius: 12px; padding: 24px; box-shadow: 0 4px 16px rgba(11, 83, 255, 0.1); border: 1px solid rgba(11, 83, 255, 0.1); } .sidebar-title { font-size: 1.1rem; font-weight: 700; color: #0068D0; margin: 0 0 20px; padding-bottom: 12px; border-bottom: 2px solid rgba(11, 83, 255, 0.2); } .related-articles { display: flex; flex-direction: column; gap: 16px; } .related-article-card { display: flex; gap: 12px; text-decoration: none; padding: 12px; border-radius: 8px; transition: all @transition-fast; &:hover { background: rgba(11, 83, 255, 0.05); } } .related-thumb { width: 100px; height: 70px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #E0F2FF; img { width: 100%; height: 100%; object-fit: cover; } &.placeholder { display: flex; align-items: center; justify-content: center; svg { width: 28px; height: 28px; opacity: 0.3; color: #0B53FF; } } } .related-info { flex: 1; min-width: 0; } .related-title { font-size: 0.95rem; font-weight: 600; color: #0068D0; margin: 0 0 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .related-date { font-size: 0.8rem; color: #44A1FF; } // ============================================ // Animations // ============================================ @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .news-item, .sidebar-widget, .sidebar-section { animation: fadeInUp 0.5s ease-out; animation-fill-mode: both; } .news-item:nth-child(1) { animation-delay: 0.05s; } .news-item:nth-child(2) { animation-delay: 0.1s; } .news-item:nth-child(3) { animation-delay: 0.15s; } .news-item:nth-child(4) { animation-delay: 0.2s; } .news-item:nth-child(5) { animation-delay: 0.25s; }