/* ========== 新闻列表页 - 静谧蓝简约风格 ========== */

@import url("topheader.css"); 

:root {
    --primary: #2563eb;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --accent: #60a5fa;
    --bg: #eff6ff;
    --white: #ffffff;
    --text: #334155;
    --text-light: #64748b;
    --border: #dbeafe;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(37, 99, 235, 0.06);
    --shadow-md: 0 4px 20px rgba(37, 99, 235, 0.1);
    --shadow-lg: 0 8px 32px rgba(37, 99, 235, 0.15);
    --shadow-glow: 0 0 30px rgba(37, 99, 235, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8fafc;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== 页面标题 ========== */
.page-header {
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 50%, #f0f9ff 100%);
    padding: 60px 0;
    text-align: center;
    color: #2563eb;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 60%);
    border-radius: 50%;
    animation: pulse-glow 4s ease-in-out infinite;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.06) 0%, transparent 60%);
    border-radius: 50%;
    animation: pulse-glow 5s ease-in-out infinite 1s;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 12px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.page-header h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    border-radius: 2px;
}

.page-header p {
    font-size: 1.05rem;
    color: #64748b;
    margin-top: 20px;
}

/* ========== 新闻分类导航 ========== */
.news-category-section {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-top: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
}

.category-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: var(--radius);
    color: #64748b;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-tab svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.category-tab:hover {
    background: #fff;
    border-color: #93c5fd;
    color: #2563eb;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-tab.active {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

.category-tab.active svg {
    opacity: 1;
}

.category-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.category-filter,
.category-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-filter label,
.category-sort label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.filter-select,
.sort-select {
    padding: 10px 35px 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
    font-size: 14px;
    color: #334155;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.3s;
    min-width: 140px;
}

.filter-select:hover,
.sort-select:hover {
    border-color: #2563eb;
}

.filter-select:focus,
.sort-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ========== 热门聚焦 ========== */
.hot-spotlight {
    margin-top: 20px;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.2rem;
    color: #1e3a8a;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, #2563eb, #60a5fa);
    border-radius: 2px;
}

.section-more {
    color: #94a3b8;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s;
}

.section-more:hover {
    color: #2563eb;
}

.hot-spotlight-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.hot-spotlight-item {
    background: #fff;
    border-radius: var(--radius);
    padding: 0;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
}

.hot-spotlight-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: #93c5fd;
}

.hot-spotlight-img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: none;
}

.hot-spotlight-tag {
    display: inline-block;
    padding: 3px 8px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    font-size: 11px;
    border-radius: 4px;
    margin-bottom: 0;
}

.hot-spotlight-content {
    padding: 12px;
}

.hot-spotlight-title {
    color: #334155;
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 8px;
}

/* ========== 主区域布局 ========== */
.news-main {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 25px;
    margin-bottom: 40px;
}

/* ========== 新闻列表容器 ========== */
.news-list-container {
    margin-top: 20px;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
}

.news-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.news-list-header h2 {
    font-size: 1.2rem;
    color: #1e3a8a;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-list-header h2::before {
    content: '';
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, #2563eb, #60a5fa);
    border-radius: 2px;
}

.news-sort {
    display: flex;
    gap: 12px;
}

.news-sort a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    padding: 5px 10px;
    border-radius: var(--radius);
    transition: all 0.3s;
}

.news-sort a:hover,
.news-sort a.active {
    color: #2563eb;
    background: #eff6ff;
}

/* ========== 新闻列表项 ========== */
.news-list-item {
    display: flex;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.news-list-item:hover {
    background: #f8fafc;
    margin: 0 -10px;
    padding: 20px 10px;
    border-radius: var(--radius);
}

.news-list-item:last-child {
    border-bottom: none;
}

.news-thumb {
    width: 180px;
    height: 120px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    display: none;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-list-item:hover .news-thumb img {
    transform: scale(1.08);
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-category {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    font-size: 11px;
    border-radius: 20px;
    margin-bottom: 8px;
    width: fit-content;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.news-title {
    font-size: 1.05rem;
    color: #334155;
    margin-bottom: 8px;
    line-height: 1.5;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.news-title a:hover {
    color: #2563eb;
}

.news-desc {
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: #94a3b8;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========== 侧边栏 ========== */
.news-sidebar {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
}

.sidebar-card h3 {
    font-size: 1rem;
    color: #1e3a8a;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.sidebar-card h3::before {
    content: '';
    width: 4px;
    height: 14px;
    background: linear-gradient(180deg, #2563eb, #60a5fa);
    border-radius: 2px;
}

/* Logo 网格 */
.logo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
}

.logo-item {
    flex: 0 0 calc(50% - 6px);
    text-align: center;
    background: #f8fafc;
    border-radius: var(--radius);
    padding: 12px 8px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.logo-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #93c5fd;
}

.char-logo {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Noto Sans SC', 'PingFang SC', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.logo-name {
    color: #64748b;
    font-size: 0.8rem;
}

/* 简易排行榜 */
.simple-rank {
    list-style: none;
}

.simple-rank li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 0.85rem;
}

.simple-rank li:last-child {
    border-bottom: none;
}

.rank-number {
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    margin-right: 10px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.rank-name {
    flex: 1;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
}

.rank-name:hover {
    color: #2563eb;
}

.rank-score {
    font-size: 0.75rem;
    background: #eff6ff;
    padding: 4px 10px;
    border-radius: 20px;
    color: #2563eb;
}

/* 热门资讯排行 */
.hot-news-list {
    list-style: none;
}

.hot-news-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.hot-news-item:last-child {
    border-bottom: none;
}

.hot-rank {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    flex-shrink: 0;
}

.hot-rank.top {
    background: linear-gradient(135deg, #0011ff, #2985d7);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.hot-news-info {
    flex: 1;
}

.hot-news-title {
    font-size: 13px;
    color: #475569;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 5px;
    transition: color 0.3s;
}

.hot-news-title a {
    color: inherit;
    text-decoration: none;
}

.hot-news-title a:hover {
    color: #2563eb;
}

.hot-news-date {
    font-size: 11px;
    color: #94a3b8;
}

/* 品牌故事 */
.story-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.story-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.story-item:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}

.story-thumb {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    display: none;
}

.story-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-content {
    flex: 1;
}

.story-title {
    font-size: 13px;
    color: #475569;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 5px;
}

.story-title a {
    color: inherit;
    text-decoration: none;
}

.story-title a:hover {
    color: #2563eb;
}

.story-desc {
    font-size: 11px;
    color: #94a3b8;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 新品推荐 */
.new-product-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.new-product-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
    background: #f8fafc;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid #2563eb;
}

.new-product-item:hover {
    background: #eff6ff;
}

.new-product-title {
    font-size: 13px;
    color: #475569;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.new-product-title a {
    color: inherit;
    text-decoration: none;
}

.new-product-title a:hover {
    color: #2563eb;
}

.new-product-date {
    font-size: 11px;
    color: #94a3b8;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    padding: 6px 14px;
    background: #eff6ff;
    color: #3b82f6;
    font-size: 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
}

/* ========== 分页 ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    padding: 10px 16px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius);
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination a:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}

.pagination span.current {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.pagination .ellipsis {
    border: none;
    background: none;
    color: #94a3b8;
}

/* ========== 底部 ========== */
.footer {
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 3rem;
    padding: 2.5rem 0 3rem;
    border-top: 3px solid #2563eb;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-col p {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2.5rem;
}

.footer-links a {
    text-decoration: none;
    color: #64748b;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #2563eb;
}

/* ========== 响应式 ========== */
@media (max-width: 1100px) {
    .hot-spotlight-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .news-main {
        grid-template-columns: 1fr;
    }

    .news-sidebar {
        order: -1;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .sidebar-card {
        margin-bottom: 0;
    }

    .hot-spotlight-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-header p {
        font-size: 0.9rem;
    }

    .category-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 8px;
        padding-bottom: 4px;
    }

    .category-tabs::-webkit-scrollbar {
        display: none;
    }

    .category-tab {
        flex-shrink: 0;
    }

    .category-tab span {
        display: none;
    }

    .category-tab.active span {
        display: inline;
    }

    .news-list-item {
        flex-direction: column;
    }

    .news-thumb {
        width: 100%;
        height: 160px;
    }

    .news-sidebar {
        grid-template-columns: 1fr;
    }

    .hot-spotlight-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pagination {
        flex-wrap: wrap;
    }

    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.2rem;
    }

    .footer-links {
        gap: 1.2rem 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 32px 0;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .page-header p {
        font-size: 0.85rem;
    }

    .news-list-container {
        padding: 16px;
    }

    .news-list-header h2 {
        font-size: 1rem;
    }

    .news-title {
        font-size: 0.95rem;
    }

    .news-thumb {
        height: 130px;
    }

    .hot-spotlight-grid {
        grid-template-columns: 1fr;
    }

    .pagination a,
    .pagination span {
        padding: 8px 12px;
        font-size: 13px;
    }

    .footer-links a {
        font-size: 0.85rem;
    }
}