/* ============================================
   新闻中心页面 - 现代工业风格设计系统
   ============================================ */

/* CSS 变量定义 - 统一设计 tokens */
:root {
    --primary-color: #ea5a2d;
    --primary-dark: #d14a20;
    --primary-light: #ff7a52;
    --secondary-color: #1a365d;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-tertiary: #edf2f7;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

/* ============================================
   新闻页面主容器
   ============================================ */
.news-w {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   子栏目导航区域
   ============================================ */
.news-w .news-subnav {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-bottom: 50px;
    position: relative;
}

.news-w .news-subnav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.news-w .subnav-title {
    flex: none;
    padding: 24px 32px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-w .subnav-title::before {
    content: '\f1ea';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 20px;
}

.news-w .subnav-list {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    padding: 16px 24px;
    gap: 12px;
}

.news-w .subnav-list a {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.news-w .subnav-list a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.news-w .subnav-list a:hover::before {
    left: 100%;
}

.news-w .subnav-list a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.news-w .subnav-list a.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-dark);
}

/* ============================================
   新闻列表区域
   ============================================ */
.news-w .news-list-container {
    display: grid;
    gap: 30px;
}

.news-w .news-item {
    display: flex;
    gap: 30px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
    position: relative;
    cursor: pointer;
}

.news-w .news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-light));
    transform: scaleY(0);
    transition: transform var(--transition-base);
}

.news-w .news-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.news-w .news-item:hover::before {
    transform: scaleY(1);
}

.news-w .news-image {
    flex: none;
    width: 320px;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.news-w .news-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.news-w .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform var(--transition-slow);
}

.news-w .news-item:hover .news-image img {
    transform: scale(1.08);
}

.news-w .news-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.3));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.news-w .news-item:hover .news-image::after {
    opacity: 1;
}

.news-w .news-content {
    flex: 1;
    padding: 28px 28px 28px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-w .news-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition-fast);
}

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

.news-w .news-item:hover .news-title {
    color: var(--primary-color);
}

.news-w .news-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-right: 20px;
}

.news-w .news-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.news-w .news-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.news-w .news-meta span::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
}

.news-w .news-meta .view-count::before {
    content: '\f06e';
}

.news-w .news-meta .publish-date::before {
    content: '\f073';
}

/* 前往阅读链接样式 */
.news-w .news-meta .read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    margin-right: 30px;
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
}

.news-w .news-meta .read-more-link:hover {
    background: #fff;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.news-w .news-item:hover .read-more-link {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.news-w .news-item:hover .read-more-link:hover {
    background: #fff;
    color: var(--primary-color);
}

/* ============================================
   分页样式
   ============================================ */
.news-w .pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.news-w .pagination {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-w .pagination a,
.news-w .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.news-w .pagination a:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.news-w .pagination .current {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.news-w .pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 1200px) {
    .news-w {
        padding: 30px 15px 60px;
    }

    .news-w .news-image {
        width: 280px;
        height: 200px;
    }
}

@media (max-width: 992px) {
    .news-w .news-subnav {
        flex-direction: column;
    }

    .news-w .subnav-title {
        width: 100%;
        justify-content: center;
    }

    .news-w .subnav-list {
        justify-content: center;
    }

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

    .news-w .news-image {
        width: 100%;
        height: 240px;
    }

    .news-w .news-content {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .news-w {
        padding: 20px 15px 40px;
    }

    .news-w .subnav-title {
        padding: 1px 24px;
        font-size: 16px;
    }

    .news-w .subnav-list {
        padding: 12px 16px;
        gap: 8px;
    }

    .news-w .subnav-list a {
        padding: 10px 10px;
        font-size: 13px;
    }

    .news-w .news-image {
        height: 200px;
    }

    .news-w .news-title {
        font-size: 17px;
    }

    .news-w .news-description {
        font-size: 14px;
        -webkit-line-clamp: 2;
        margin-bottom: 10px;
    }

    .news-w .news-meta {
        flex-wrap: wrap;
        gap: 12px;
    }

    .news-w .news-meta .read-more-link {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        padding: 10px 18px;
    }

    .news-w .pagination a,
    .news-w .pagination span {
        min-width: 38px;
        height: 38px;
        padding: 0 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .news-w .subnav-list {
        flex-direction: row;
        flex-wrap: nowrap;
        width: 100%;
    }

    .news-w .subnav-list a {
        width: 45%;
        justify-content: center;
    }

    .news-w .news-image {
        height: 180px;
    }

    .news-w .news-title {
        font-size: 16px;
        margin-bottom: 2px;
    }

    .news-w .news-content {
        padding: 20px !important;
        padding-top: 0px !important;
    }
}

/* ============================================
   加载动画
   ============================================ */
.news-w .news-item {
    opacity: 0;
    animation: slideInUp 0.5s ease-out forwards;
}

.news-w .news-item:nth-child(1) {
    animation-delay: 0.1s;
}

.news-w .news-item:nth-child(2) {
    animation-delay: 0.2s;
}

.news-w .news-item:nth-child(3) {
    animation-delay: 0.3s;
}

.news-w .news-item:nth-child(4) {
    animation-delay: 0.4s;
}

.news-w .news-item:nth-child(5) {
    animation-delay: 0.5s;
}

.news-w .news-item:nth-child(6) {
    animation-delay: 0.6s;
}

/* ============================================
   空状态样式
   ============================================ */
.news-w .empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.news-w .empty-state::before {
    content: '\f1ea';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 64px;
    display: block;
    margin-bottom: 20px;
    color: var(--border-color);
}

.news-w .empty-state p {
    font-size: 16px;
    margin: 0;
}