/* ============================================================
   新闻中心（资讯）页面样式 - article.css
   配色与 index.css 保持一致：主色 #1F4E8C，辅色 #25B6D2，强调色 #FFB020
   ============================================================ */
/* ---------- 通用容器 ---------- */
.art-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.art-section {
    padding: 50px 0;
}

.art-section-white {
    background: #fff;
}

.art-section-gradient {
    background: linear-gradient(180deg, #F4F8FB 0%, #E4EDF5 100%);
}

/* ---------- 左侧悬浮导航 ---------- */
.art-side-nav {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
    padding: 18px 0;
    width: 150px;
}

.art-side-nav-inner {
    text-align: center;
}

.art-side-nav-title {
    font-size: 15px;
    font-weight: 700;
    color: #1A2B4A;
    padding: 0 16px;
}

.art-side-nav-divider {
    height: 2px;
    width: 28px;
    background: #1F4E8C;
    margin: 10px auto 12px;
    border-radius: 2px;
}

.art-side-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.art-side-nav-list li {
    margin: 2px 0;
}

.art-side-nav-link {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    color: #5C6E86;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all .25s ease;
}

.art-side-nav-link:hover {
    color: #1F4E8C;
    background: #EDF4FB;
}

.art-side-nav-link.active {
    color: #1F4E8C;
    font-weight: 600;
    border-left-color: #1F4E8C;
    background: #EDF4FB;
}

@media (max-width: 1400px) {
    .art-side-nav {
        display: none;
    }
}

/* ---------- Hero 区 ---------- */
.art-hero {
    position: relative;
    background: linear-gradient(135deg, #1B4480 0%, #1F4E8C 55%, #25B6D2 135%);
    padding: 90px 0 80px;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.art-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 25%, rgba(255, 255, 255, .07) 0, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(255, 255, 255, .06) 0, transparent 45%);
    pointer-events: none;
}

.art-hero-content {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}

.art-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 30px;
    padding: 6px 18px;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 22px;
}

.art-hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FFB020;
    box-shadow: 0 0 8px #FFB020;
}

.art-hero-title {
    font-size: 38px;
    font-weight: 700;
    margin: 0 0 16px;
    line-height: 1.35;
}

.art-hero-desc {
    font-size: 15px;
    line-height: 1.9;
    opacity: .85;
    margin: 0 0 30px;
}

.art-hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.art-hero-btn {
    display: inline-block;
    padding: 12px 34px;
    border-radius: 8px;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all .25s ease;
}

.art-hero-btn-primary {
    background: #FFB020;
    color: #1A2B4A;
    box-shadow: 0 4px 14px rgba(255, 176, 32, .45);
}

.art-hero-btn-primary:hover {
    background: #E89A0F;
    transform: translateY(-2px);
}

/* ---------- 分类 Tabs ---------- */
.art-tabs-wrapper {
    display: flex;
    justify-content: center;
}

.art-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.art-tab-btn {
    display: inline-block;
    padding: 10px 26px;
    border-radius: 30px;
    background: #f0f2f5;
    color: #555;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all .25s ease;
}

.art-tab-btn:hover {
    color: #1F4E8C;
    border-color: #1F4E8C;
    background: #fff;
}

.art-tab-btn.active {
    background: #1F4E8C;
    color: #fff;
    box-shadow: 0 4px 12px rgba(31, 78, 140, .35);
}

/* ---------- 筛选栏 ---------- */
.art-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    background: #fff;
    border-radius: 12px;
    padding: 18px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

.art-filter-left {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.art-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.art-filter-group label {
    font-size: 14px;
    color: #5C6E86;
    white-space: nowrap;
}

.art-filter-select {
    padding: 8px 12px;
    border: 1px solid #dfe5ec;
    border-radius: 6px;
    font-size: 14px;
    color: #1A2B4A;
    background: #fff;
    outline: none;
    cursor: pointer;
    transition: border-color .2s;
}

.art-filter-select:hover,
.art-filter-select:focus {
    border-color: #1F4E8C;
}

.art-search-box {
    display: flex;
    align-items: center;
    background: #F4F8FB;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 4px 6px 4px 12px;
    transition: border-color .2s;
}

.art-search-box:focus-within {
    border-color: #1F4E8C;
    background: #fff;
}

.art-search-icon {
    width: 17px;
    height: 17px;
    color: #999;
    flex-shrink: 0;
}

.art-search-input {
    border: none;
    outline: none;
    background: transparent;
    padding: 7px 10px;
    font-size: 14px;
    width: 200px;
    color: #1A2B4A;
}

.art-search-btn {
    background: #1F4E8C;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s;
}

.art-search-btn:hover {
    background: #1A4378;
}

/* ---------- 主布局 ---------- */
.art-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
}

/* ---------- 文章卡片网格 ---------- */
.art-article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* ---------- 文字列表（无封面） ---------- */
.art-article-text-list {
    grid-template-columns: 1fr;
    gap: 0;
}

.art-text-item {
    padding: 22px 0;
    border-bottom: 1px solid #E9EFF6;
    transition: all .2s ease;
}

.art-text-item:last-child {
    border-bottom: none;
}

.art-text-item:hover {
    background: #F8FBFD;
    padding-left: 12px;
    padding-right: 12px;
    margin-left: -12px;
    margin-right: -12px;
    border-radius: 8px;
}

.art-text-item-header {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.art-text-item-title {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.5;
}

.art-text-item-title a {
    color: #1A2B4A;
    text-decoration: none;
    transition: color .2s;
}

.art-text-item-title a:hover {
    color: #1F4E8C;
}

.art-text-item-excerpt {
    font-size: 13px;
    color: #888;
    line-height: 1.7;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.art-text-item-footer {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: #aab3bd;
}

.art-text-item-footer .art-article-date,
.art-text-item-footer .art-article-views {
    padding: 0;
    border: none;
}

.art-article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    transition: all .3s ease;
    display: flex;
    flex-direction: column;
}

.art-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .12);
}

.art-article-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f0f2f5;
}

.art-article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.art-article-card:hover .art-article-cover img {
    transform: scale(1.06);
}

.art-article-content {
    padding: 18px 20px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.art-article-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.art-tag {
    display: inline-block;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 4px;
    line-height: 1.5;
}

.art-tag-news {
    background: #E8F0FA;
    color: #1F4E8C;
}

.art-tag-tech {
    background: #FFF4E0;
    color: #DE930F;
}

.art-article-title {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.5;
}

.art-article-title a {
    color: #1A2B4A;
    text-decoration: none;
    transition: color .2s;
}

.art-article-title a:hover {
    color: #1F4E8C;
}

.art-article-excerpt {
    font-size: 13px;
    color: #888;
    line-height: 1.7;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.art-article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px dashed #e8edf2;
    font-size: 12px;
    color: #aab3bd;
}

/* ---------- 分页 ---------- */
.art-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 40px;
}

.art-pagination-btn {
    display: inline-block;
    padding: 9px 18px;
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    transition: all .2s;
}

.art-pagination-btn:hover {
    border-color: #1F4E8C;
    color: #1F4E8C;
}

.art-pagination-btn-disabled {
    opacity: .45;
    pointer-events: none;
}

.art-pagination-nums {
    display: flex;
    align-items: center;
    gap: 6px;
}

.art-pagination-num {
    display: inline-block;
    min-width: 36px;
    padding: 8px 6px;
    text-align: center;
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    transition: all .2s;
}

.art-pagination-num:hover {
    border-color: #1F4E8C;
    color: #1F4E8C;
}

.art-pagination-num.active {
    background: #1F4E8C;
    border-color: #1F4E8C;
    color: #fff;
    font-weight: 600;
}

.art-pagination-dots {
    color: #999;
    padding: 0 4px;
}

/* ---------- 右侧边栏 ---------- */
.art-sidebar-section {
    background: #fff;
    border-radius: 12px;
    padding: 22px 22px 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    margin-bottom: 24px;
}

.art-sidebar-title {
    font-size: 17px;
    font-weight: 700;
    color: #1A2B4A;
    margin: 0;
    padding-left: 10px;
    border-left: 4px solid #1F4E8C;
    line-height: 1.3;
}

.art-sidebar-divider {
    height: 1px;
    background: #E4EDF5;
    margin: 14px 0;
}

.art-hot-list,
.art-category-list,
.art-recent-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.art-hot-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dashed #E9EFF6;
}

.art-hot-item:last-child {
    border-bottom: none;
}

.art-hot-rank {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #f0f2f5;
    color: #999;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.art-hot-item:nth-child(1) .art-hot-rank {
    background: #E8F0FA;
    color: #1F4E8C;
}

.art-hot-item:nth-child(2) .art-hot-rank {
    background: #E8F0FA;
    color: #1F4E8C;
}

.art-hot-item:nth-child(3) .art-hot-rank {
    background: #E8F0FA;
    color: #1F4E8C;
}

.art-hot-link,
.art-recent-link {
    display: block;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .2s;
}

.art-hot-link:hover,
.art-recent-link:hover {
    color: #1F4E8C;
}

.art-category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 12px;
    margin: 3px 0;
    border-radius: 6px;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    transition: all .2s;
}

.art-category-link:hover {
    background: #EDF4FB;
    color: #1F4E8C;
}

.art-category-link.active {
    background: #1F4E8C;
    color: #fff;
    font-weight: 600;
}

/* ============================================================
   文章详情页
   ============================================================ */
.page-article-detail {
    background: #F4F8FB;
    padding: 40px 0 60px;
    min-height: 60vh;
}

.art-detail-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
    position: relative;
}

/* 左侧组件 */
.art-side-widget {
    background: #fff;
    border-radius: 12px;
    padding: 20px 20px 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    transition: transform 0.1s ease-out;
}

.art-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.art-widget-arrow {
    font-size: 12px;
    color: #98a2ad;
    transition: transform .3s ease;
}

.art-widget-header.collapsed .art-widget-arrow {
    transform: rotate(-90deg);
}

.art-recent-list {
    overflow: hidden;
    transition: max-height .3s ease, opacity .3s ease;
    max-height: 2000px;
    opacity: 1;
}

.art-recent-list.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0;
}

.art-side-widget-title {
    font-size: 16px;
    font-weight: 700;
    color: #1A2B4A;
    margin: 0;
    padding-left: 10px;
    border-left: 4px solid #1F4E8C;
    line-height: 1.3;
}

.art-side-widget-divider {
    height: 1px;
    background: #E4EDF5;
    margin: 14px 0;
}

.art-recent-item {
    padding: 10px 0;
    border-bottom: 1px dashed #E9EFF6;
}

.art-recent-item:last-child {
    border-bottom: none;
}

.art-recent-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    font-size: 12px;
    color: #aab3bd;
}

.art-recent-tag {
    background: #E8F0FA;
    color: #1F4E8C;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}

/* 正文区 */
.art-detail-container {
    background: #fff;
    border-radius: 12px;
    padding: 32px 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

.art-detail-breadcrumb {
    font-size: 13px;
    color: #999;
    padding-bottom: 18px;
    border-bottom: 1px solid #E9EFF6;
    margin-bottom: 24px;
}

.art-detail-breadcrumb a {
    color: #888;
    text-decoration: none;
    transition: color .2s;
}

.art-detail-breadcrumb a:hover {
    color: #1F4E8C;
}

.art-detail-title {
    font-size: 26px;
    font-weight: 700;
    color: #1A2B4A;
    line-height: 1.5;
    margin: 0 0 14px;
}

.art-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13px;
    color: #98a2ad;
    padding-bottom: 20px;
    border-bottom: 1px solid #E9EFF6;
}

.art-detail-category {
    background: #E8F0FA;
    color: #1F4E8C;
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 12px;
}

.art-detail-content {
    padding: 26px 0 10px;
    font-size: 15px;
    line-height: 2;
    color: #1A2B4A;
    word-break: break-word;
}

.art-detail-content p {
    margin: 0 0 16px;
}

.art-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 8px 0;
}

.art-detail-content h1,
.art-detail-content h2,
.art-detail-content h3,
.art-detail-content h4 {
    color: #1A2B4A;
    margin: 24px 0 12px;
    line-height: 1.5;
}

.art-detail-content a {
    color: #1F4E8C;
}

.art-detail-content ul,
.art-detail-content ol {
    padding-left: 24px;
    margin: 0 0 16px;
}

.art-detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 16px;
}

.art-detail-content table td,
.art-detail-content table th {
    border: 1px solid #e4e9ef;
    padding: 8px 12px;
    font-size: 14px;
}

.art-detail-content blockquote {
    margin: 0 0 16px;
    padding: 12px 18px;
    border-left: 4px solid #1F4E8C;
    background: #f5f8fc;
    color: #5C6E86;
}

/* 上一篇 / 下一篇 */
.art-detail-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #E9EFF6;
}

.art-detail-nav-item {
    flex: 1;
    min-width: 0;
}

.art-detail-nav-label {
    font-size: 12px;
    color: #aab3bd;
    margin-bottom: 6px;
}

.art-detail-nav-title {
    display: block;
    font-size: 14px;
    color: #1A2B4A;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .2s;
}

.art-detail-nav-title:hover {
    color: #1F4E8C;
}

.art-detail-nav-empty {
    font-size: 14px;
    color: #c3cad2;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .art-layout {
        grid-template-columns: 1fr;
    }

    .art-detail-wrap {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .art-hero {
        padding: 60px 0 55px;
    }

    .art-hero-title {
        font-size: 26px;
    }

    .art-article-grid {
        grid-template-columns: 1fr;
    }

    .art-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .art-search-input {
        width: 100%;
        flex: 1;
    }

    .art-detail-container {
        padding: 22px 20px;
    }

    .art-detail-title {
        font-size: 21px;
    }

    .art-detail-nav {
        flex-direction: column;
    }
}