/* ===== 设计变量：靛青 + 翡翠绿 官网风 ===== */
:root {
    --color-primary: #4f46e5;
    --color-primary-dark: #3730a3;
    --color-accent: #059669;
    --color-accent-light: #d1fae5;
    --color-bg: #f1f5f9;
    --color-surface: #ffffff;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    --color-header: #1e1b4b;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
    --container: 1120px;
    --header-h: 64px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    color: var(--color-primary-dark);
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 顶栏导航 ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(30, 27, 75, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.brand:hover {
    color: #c7d2fe;
}

.site-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px 6px;
}

.site-nav__link {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.875rem;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.site-nav__link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.page-home .site-nav__link--home,
.site-nav__link.ze5953this {
    color: #fff;
    background: var(--color-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-sm);
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: #fff;
    transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== 首页区块 ===== */
main {
    padding-top: var(--header-h);
}

.section {
    padding: 56px 0;
}

.section-alt {
    background: var(--color-surface);
}

.section-contact {
    background: linear-gradient(160deg, var(--color-header) 0%, #312e81 100%);
    color: #e2e8f0;
}

.section-contact .section-head h2,
.section-contact .section-head p {
    color: #f1f5f9;
}

.section-contact .card {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

.section-contact .card h3 {
    color: #fff;
}

.section-head {
    margin-bottom: 32px;
    max-width: 720px;
}

.section-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.section-head h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
    line-height: 1.3;
}

.section-head p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.section-action {
    text-align: center;
    margin-top: 28px;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 50%, #ecfdf5 100%);
    padding: 48px 0 56px;
    border-bottom: 1px solid var(--color-border);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    background: #e0e7ff;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.hero-copy h1 {
    font-size: clamp(1.6rem, 4vw, 2.25rem);
    line-height: 1.25;
    color: var(--color-header);
    margin-bottom: 16px;
}

.hero-lead {
    color: var(--color-text-muted);
    margin-bottom: 20px;
    font-size: 0.98rem;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.hero-tags span {
    font-size: 0.8rem;
    padding: 5px 12px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    color: var(--color-text);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    max-height: 380px;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 10px 22px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background: #eef2ff;
}

/* 卡片网格 */
.card-grid {
    display: grid;
    gap: 20px;
}

.card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.card-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, border-color 0.2s;
    min-width: 0;
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: #c7d2fe;
}

.card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: var(--color-text);
}

.card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.card-icon {
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background: #eef2ff;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.card-list {
    list-style: none;
    margin-top: 12px;
}

.card-list li {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    padding: 4px 0 4px 14px;
    position: relative;
}

.card-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 5px;
    height: 5px;
    background: var(--color-accent);
    border-radius: 50%;
}

.card-feature {
    padding: 24px;
}

/* 时间线 */
.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.timeline-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    min-width: 0;
}

.timeline-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50%;
    margin-bottom: 12px;
}

.timeline-body h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.timeline-body p {
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

/* 统计条 */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-box {
    text-align: center;
    padding: 20px 12px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.stat-box strong {
    display: block;
    font-size: 1.35rem;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.stat-box span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* 知识区 */
.knowledge-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}

.knowledge-text h3 {
    font-size: 1rem;
    color: var(--color-primary-dark);
    margin: 18px 0 8px;
}

.knowledge-text h3:first-child {
    margin-top: 0;
}

.knowledge-text p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* 手风琴 */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accordion-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.accordion-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #f8fafc;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: left;
    cursor: pointer;
}

.accordion-icon {
    font-size: 1.2rem;
    color: var(--color-primary);
    flex-shrink: 0;
    transition: transform 0.25s;
}

.accordion-item.is-open .accordion-icon {
    transform: rotate(45deg);
}

.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.is-open .accordion-panel {
    max-height: 280px;
}

.accordion-panel p {
    padding: 14px 18px 18px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* 资讯网格 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.news-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    min-width: 0;
    transition: box-shadow 0.2s;
}

.news-card:hover {
    box-shadow: var(--shadow-md);
}

.news-thumb {
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #e2e8f0;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-title {
    font-size: 0.88rem;
    padding: 10px 12px 4px;
    line-height: 1.4;
}

.news-title a {
    color: var(--color-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-title a:hover {
    color: var(--color-primary);
}

.news-date {
    display: block;
    padding: 0 12px 12px;
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.news-card > *:not(.news-thumb):not(.news-title):not(.news-date) {
    display: none !important;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ===== 页脚 ===== */
.site-footer {
    background: var(--color-header);
    color: #94a3b8;
    padding: 40px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    color: #f1f5f9;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    font-size: 0.85rem;
    padding: 4px 0;
    line-height: 1.5;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: #c7d2fe;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    margin-top: 8px;
}

.footer-links a {
    color: #94a3b8;
}

/* ===== 内页 ===== */
.page-main {
    padding-top: var(--header-h);
    min-height: 60vh;
}

.page-hero {
    background: linear-gradient(135deg, #eef2ff, #ecfdf5);
    padding: 36px 0;
    border-bottom: 1px solid var(--color-border);
}

.page-hero h1 {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    color: var(--color-header);
    margin-bottom: 8px;
    word-break: break-word;
}

.breadcrumb {
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

.breadcrumb a {
    color: var(--color-primary);
}

.breadcrumb-sep {
    margin: 0 6px;
    opacity: 0.5;
}

.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
    padding: 28px 0 48px;
    align-items: start;
}

.page-content {
    min-width: 0;
}

/* 列表 */
.article-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-list-item {
    display: flex;
    gap: 18px;
    padding: 18px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    min-width: 0;
}

.list-thumb {
    flex: 0 0 180px;
    width: 180px;
    height: 128px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #e2e8f0;
}

.list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-body {
    flex: 1;
    min-width: 0;
}

.list-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.list-title a {
    color: var(--color-text);
}

.list-title a:hover {
    color: var(--color-primary);
}

.list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.list-intro {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.55;
    word-break: break-word;
}

/* 分页 */
.pagebar {
    margin-top: 24px;
}

.pagebar-inner {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
}

.pagebar-inner .pagelist {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.pagebar-inner a,
.pagebar-inner span {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.88rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
}

.pagebar-inner a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* 内容页 */
.article-detail {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 28px;
    margin-bottom: 24px;
    min-width: 0;
}

.article-header {
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.article-title {
    font-size: 1.5rem;
    line-height: 1.35;
    word-break: break-word;
    margin-bottom: 12px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

.article-litpic {
    margin-bottom: 20px;
    text-align: center;
}

.article-litpic img {
    max-width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.article-body {
    font-size: 1rem;
    line-height: 1.75;
    word-break: break-word;
    overflow-wrap: break-word;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.article-body table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

.article-gallery-item {
    margin: 12px 0;
}

.ze5953meta-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.ze5953tagitem a {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.82rem;
    background: #eef2ff;
    color: var(--color-primary);
    border-radius: 20px;
}

.article-prenext {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.article-prenext a {
    color: var(--color-primary);
}

.related-articles {
    margin-top: 8px;
}

.section-subtitle {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--color-text);
}

.related-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-item {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    min-width: 0;
}

.related-thumb {
    flex: 0 0 100px;
    width: 100px;
    height: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #e2e8f0;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-info {
    flex: 1;
    min-width: 0;
}

.related-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
    display: block;
    margin-bottom: 4px;
}

.related-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* 侧栏 */
.page-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 16px);
}

.sidebar-widget {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.sidebar-title {
    font-size: 0.95rem;
    padding: 14px 16px;
    background: var(--color-header);
    color: #fff;
    margin: 0;
}

.sidebar-article-list {
    list-style: none;
    max-height: 480px;
    overflow-y: auto;
}

.sidebar-article-item {
    display: flex;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-border);
    min-width: 0;
}

.sidebar-article-item:last-child {
    border-bottom: none;
}

.sidebar-thumb-link {
    flex: 0 0 72px;
    width: 72px;
    height: 54px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #e2e8f0;
}

.sidebar-thumb-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-article-info {
    flex: 1;
    min-width: 0;
}

.sidebar-article-title {
    display: block;
    font-size: 0.82rem;
    color: var(--color-text);
    line-height: 1.35;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.clear {
    clear: both;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .card-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .page-layout {
        grid-template-columns: 1fr;
    }

    .page-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 56px;
    }

    .nav-toggle {
        display: flex;
    }

    .site-nav {
        display: none;
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 16px 20px 32px;
        background: var(--color-header);
        overflow-y: auto;
        gap: 4px;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav__link {
        padding: 12px 14px;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-media {
        order: -1;
        max-height: 240px;
    }

    .card-grid--2,
    .card-grid--3,
    .card-grid--4 {
        grid-template-columns: 1fr;
    }

    .timeline,
    .stats-row,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .knowledge-layout {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: 40px 0;
    }

    .article-list-item {
        flex-direction: column;
    }

    .list-thumb {
        flex: none;
        width: 100%;
        height: 160px;
    }

    .article-detail {
        padding: 18px;
    }

    .related-item {
        flex-direction: column;
    }

    .related-thumb {
        width: 100%;
        height: 140px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .pagebar-inner .pagelist {
        justify-content: center;
    }
}

@media print {
    .site-header,
    .site-footer,
    .page-sidebar,
    .nav-toggle {
        display: none;
    }

    main,
    .page-main {
        padding-top: 0;
    }
}
