:root {
    --brand: #2d68ff;
    --brand-deep: #164ed6;
    --ink: #172033;
    --muted: #6b7280;
    --soft: #f4f6fa;
    --line: #e7eaf0;
    --white: #fff;
    --warning: #bd5b14;
    --shadow: 0 18px 50px rgba(30, 45, 80, .10);
    --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: #f7f9fc;
    font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1180px, calc(100% - 36px)); margin-inline: auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(231, 234, 240, .9);
    backdrop-filter: blur(18px);
}
.header-inner { min-height: 68px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; white-space: nowrap; }
.brand img { width: 38px; height: 38px; object-fit: contain; border-radius: 11px; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(145deg, #2d68ff, #7ea1ff);
    box-shadow: 0 8px 18px rgba(45, 104, 255, .3);
}
.desktop-nav { display: flex; gap: 26px; flex: 1; }
.desktop-nav a { color: #4b5563; font-size: 14px; font-weight: 600; }
.desktop-nav a:hover { color: var(--brand); }
.header-actions { display: flex; gap: 8px; margin-left: auto; }
.icon-button {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
}
.search-icon {
    width: 15px;
    height: 15px;
    border: 2px solid #536174;
    border-radius: 50%;
    position: relative;
}
.search-icon::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 2px;
    background: #536174;
    right: -5px;
    bottom: -2px;
    transform: rotate(45deg);
}
.menu-button { display: none; }
.menu-button span { width: 17px; height: 2px; background: #536174; display: block; margin: 2px 0; }
.mobile-nav {
    display: none;
    padding: 0 18px 14px;
    gap: 8px;
    overflow-x: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 8px 12px; border-radius: 999px; background: var(--soft); white-space: nowrap; font-size: 13px; font-weight: 700; }

.announcement { background: #fff; border-bottom: 1px solid var(--line); }
.announcement-inner { display: flex; align-items: center; gap: 10px; min-height: 42px; color: #6c7380; font-size: 13px; overflow: hidden; }
.notice-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff7b54; box-shadow: 0 0 0 5px rgba(255,123,84,.12); flex: none; }
.marquee { overflow: hidden; white-space: nowrap; flex: 1; }
.marquee span { display: inline-block; animation: marquee 22s linear infinite; padding-left: 100%; }
@keyframes marquee { to { transform: translateX(-100%); } }

.flash-stack { padding-top: 16px; display: grid; gap: 8px; }
.flash { border-radius: 12px; padding: 12px 16px; font-size: 14px; border: 1px solid; }
.flash-success { color: #147a46; background: #eefbf4; border-color: #c8f0d9; }
.flash-error { color: #b42318; background: #fff3f2; border-color: #ffd3ce; }

.hero-section {
    padding: 72px 0 66px;
    background:
        radial-gradient(circle at 10% 20%, rgba(45,104,255,.13), transparent 33%),
        radial-gradient(circle at 92% 70%, rgba(92,205,225,.18), transparent 30%),
        linear-gradient(150deg, #f8fbff, #eef4ff 60%, #f7f9fc);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); align-items: center; gap: 60px; }
.eyebrow { display: block; color: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: .18em; margin-bottom: 12px; }
.hero-copy h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.08; letter-spacing: -.045em; margin: 0 0 20px; max-width: 760px; }
.hero-copy > p { margin: 0 0 28px; max-width: 640px; color: #5f6b7d; font-size: 17px; }
.hero-search {
    display: flex;
    padding: 6px;
    background: #fff;
    border: 1px solid rgba(219,225,236,.9);
    border-radius: 16px;
    box-shadow: var(--shadow);
    max-width: 620px;
}
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 12px 14px; background: transparent; }
.hero-search button, .primary-button, .dialog-primary {
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(145deg, #3675ff, #245be4);
    font-weight: 700;
    padding: 12px 22px;
    box-shadow: 0 8px 20px rgba(45,104,255,.22);
}
.hero-panel {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    border-radius: 28px;
    padding: 32px;
    background: linear-gradient(145deg, #1e3f9e, #2d68ff 58%, #70a7ff);
    color: #fff;
    box-shadow: 0 28px 70px rgba(31,73,176,.28);
}
.hero-panel span { font-size: 13px; opacity: .76; }
.hero-panel strong { display: block; font-size: 92px; line-height: 1.05; letter-spacing: -.06em; margin-top: 34px; }
.hero-panel p { font-size: 14px; opacity: .8; max-width: 180px; }
.hero-orbit { position: absolute; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }
.orbit-one { width: 230px; height: 230px; right: -80px; top: -70px; }
.orbit-two { width: 150px; height: 150px; right: 20px; bottom: -75px; }

.section-block { padding-top: 52px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; font-size: 26px; letter-spacing: -.03em; }
.section-heading .eyebrow { margin-bottom: 5px; }
.text-link { color: var(--brand); font-size: 13px; font-weight: 700; }
.banner-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.banner { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 150px; background: #e9eef8; box-shadow: var(--shadow); }
.banner img { width: 100%; height: 190px; object-fit: cover; }
.banner span { position: absolute; inset: auto 0 0; padding: 32px 18px 14px; color: #fff; font-weight: 800; background: linear-gradient(transparent, rgba(0,0,0,.65)); }

.content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.featured-grid .content-card:first-child { grid-column: span 2; }
.compact-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.content-card { min-width: 0; }
.card-main {
    height: 100%;
    display: flex;
    gap: 15px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card-main:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(28,44,76,.11); border-color: #d6def0; }
.card-cover, .detail-cover, .dialog-icon {
    width: 76px;
    height: 76px;
    border-radius: 17px;
    overflow: hidden;
    flex: none;
    background: #eef2f8;
}
.card-cover img, .detail-cover img, .dialog-icon img { width: 100%; height: 100%; object-fit: cover; }
.cover-placeholder { display: grid; place-items: center; background: linear-gradient(145deg, #dae4ff, #f2f6ff); color: var(--brand); font-size: 30px; font-weight: 800; }
.card-body { min-width: 0; flex: 1; }
.card-heading { display: flex; align-items: center; gap: 8px; }
.card-heading h3 { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.badge { flex: none; background: #fff0e8; color: #c55316; border-radius: 999px; padding: 2px 7px; font-size: 10px; font-weight: 800; }
.card-body p { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 7px 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; gap: 6px; flex-wrap: wrap; color: #788396; font-size: 10px; }
.card-meta span { padding: 2px 6px; border-radius: 6px; background: var(--soft); }

.page-hero { padding: 55px 0 26px; background: linear-gradient(150deg, #f9fbff, #eef4ff); border-bottom: 1px solid #e7edf8; }
.page-hero h1 { margin: 0 0 8px; font-size: clamp(34px, 5vw, 54px); letter-spacing: -.04em; }
.page-hero p { color: var(--muted); margin: 0; }
.page-hero .hero-search { margin-top: 22px; box-shadow: 0 12px 32px rgba(40,62,104,.09); }
.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.filter-links { display: flex; gap: 7px; flex-wrap: wrap; }
.filter-links a, .child-categories a { padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: #667085; }
.filter-links a.active, .filter-links a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.result-count { color: var(--muted); font-size: 12px; }
.child-categories { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 20px; }
.pagination { display: flex; justify-content: center; gap: 7px; padding: 38px 0 10px; }
.pagination a { min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 13px; }
.pagination a.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.empty-state { padding: 70px 20px; text-align: center; background: #fff; border: 1px dashed #d9dfeb; border-radius: var(--radius); }
.empty-state p { color: var(--muted); font-size: 14px; }
.result-summary { margin-bottom: 18px; color: var(--muted); font-size: 13px; }

.detail-shell { padding-top: 34px; padding-bottom: 64px; }
.detail-card { max-width: 900px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 16px 40px rgba(31,45,75,.07); overflow: hidden; }
.detail-header { display: flex; gap: 24px; padding: 28px; border-bottom: 1px solid var(--line); }
.detail-cover { width: 104px; height: 104px; border-radius: 23px; }
.detail-heading { min-width: 0; flex: 1; }
.detail-breadcrumb { display: flex; gap: 7px; color: #8992a2; font-size: 12px; margin-bottom: 7px; }
.detail-breadcrumb a { color: var(--brand); }
.detail-heading h1 { margin: 0; font-size: clamp(24px, 4vw, 34px); letter-spacing: -.035em; }
.detail-heading > p { margin: 6px 0 10px; color: var(--muted); font-size: 14px; }
.detail-meta { display: flex; gap: 14px; color: #98a0ad; font-size: 11px; margin-bottom: 15px; }
.primary-button { display: inline-block; padding: 11px 26px; }
.detail-section { padding: 28px; }
.detail-section h2 { display: flex; align-items: center; gap: 9px; font-size: 17px; margin: 0 0 18px; padding-bottom: 13px; border-bottom: 2px solid #151c2d; }
.detail-section h2 span { width: 12px; height: 12px; border-radius: 3px; background: #9caccc; transform: rotate(45deg); }
.rich-content { color: #3d4656; font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }
.rich-content img { height: auto; margin: 14px auto; border-radius: 10px; }
.rich-content a { color: var(--brand); text-decoration: underline; }
.rich-content pre { white-space: pre-wrap; background: #f5f7fa; padding: 14px; border-radius: 10px; overflow: auto; }
.disclaimer { margin: 0 28px 28px; padding: 15px 17px; border-radius: 12px; color: #6b7280; background: #f6f8fb; font-size: 12px; line-height: 1.8; }
.simple-page-header { padding: 38px 36px 10px; }
.simple-page-header h1 { margin: 0 0 8px; font-size: clamp(32px, 5vw, 48px); letter-spacing: -.04em; }
.simple-page-header p { color: var(--muted); margin: 0; }

.download-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.download-modal.open { display: flex; }
.download-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.66); backdrop-filter: blur(4px); }
.download-dialog {
    position: relative;
    width: min(620px, 100%);
    max-height: min(88vh, 820px);
    overflow: auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 30px 90px rgba(0,0,0,.28);
    padding: 22px;
    animation: dialogIn .18s ease-out;
}
@keyframes dialogIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.dialog-close { position: absolute; right: 14px; top: 12px; border: 0; background: transparent; font-size: 26px; line-height: 1; color: #7c8698; }
.dialog-header { display: flex; gap: 15px; padding-right: 24px; }
.dialog-icon { width: 64px; height: 64px; border-radius: 15px; }
.dialog-header h2 { margin: 2px 0 4px; font-size: 21px; }
.dialog-header p { margin: 0; color: #687386; font-size: 13px; line-height: 1.55; }
.dialog-details { margin: 17px 0; border-radius: 8px; background: #f5f7fa; overflow: hidden; }
.dialog-row { display: flex; justify-content: space-between; gap: 18px; padding: 10px 12px; border-bottom: 1px solid #e3e7ee; font-size: 12px; }
.dialog-row:last-child { border-bottom: 0; }
.dialog-row span { color: #3e4858; font-weight: 700; }
.dialog-row strong { color: #7b8494; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.download-form label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 7px; }
.download-form input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #d9dee8;
    border-radius: 9px;
    outline: 0;
    background: #fff;
}
.download-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(45,104,255,.1); }
.download-form input.error { border-color: #e04444; }
.dialog-primary { width: 100%; margin-top: 10px; padding: 13px; }
.dialog-primary:disabled { opacity: .65; cursor: wait; }
.password-help {
    display: block;
    margin-top: 10px;
    padding: 12px;
    text-align: center;
    border-radius: 9px;
    color: #fff;
    background: linear-gradient(145deg, #5897f7, #3479e8);
    font-size: 12px;
    font-weight: 700;
}
.form-error { min-height: 18px; margin: 7px 0 0; color: #c72b2b; font-size: 12px; }

.message-card { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.message-form { display: grid; gap: 17px; }
.message-form label > span { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.message-form input, .message-form textarea { width: 100%; border: 1px solid #d8deea; border-radius: 10px; padding: 12px; background: #fbfcfe; outline: 0; }
.message-form input:focus, .message-form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(45,104,255,.1); }
.honeypot { position: absolute; left: -9999px; }
.form-errors { margin-bottom: 18px; padding: 12px 14px; border: 1px solid #ffd4d1; border-radius: 10px; color: #b42318; background: #fff4f2; font-size: 13px; }
.form-errors p { margin: 3px 0; }

.search-overlay { position: fixed; inset: 0; z-index: 110; display: none; align-items: flex-start; justify-content: center; padding-top: 15vh; background: rgba(15,23,42,.62); backdrop-filter: blur(5px); }
.search-overlay.open { display: flex; }
.search-panel { position: relative; width: min(680px, calc(100% - 30px)); background: #fff; border-radius: 18px; padding: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.28); }
.search-panel > label { display: block; font-size: 20px; font-weight: 800; margin-bottom: 15px; }
.search-close { position: absolute; right: 15px; top: 11px; border: 0; background: transparent; font-size: 27px; color: #7d8696; }
.search-row { display: flex; gap: 8px; }
.search-row input { flex: 1; min-width: 0; height: 45px; border: 1px solid #d7dde7; border-radius: 10px; padding: 0 13px; outline: 0; }
.search-row button { border: 0; border-radius: 10px; padding: 0 22px; color: #fff; background: var(--brand); font-weight: 700; }

.site-footer { margin-top: 80px; padding: 35px 0 22px; border-top: 1px solid var(--line); background: #fff; color: #667085; font-size: 12px; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; }
.footer-inner strong { color: var(--ink); font-size: 16px; }
.footer-inner p { margin: 6px 0 0; }
.footer-links { display: flex; gap: 16px; align-items: flex-start; }
.footer-links button { border: 0; background: transparent; color: var(--brand); padding: 0; }
.record { margin-top: 18px; color: #98a0ad; }

@media (max-width: 920px) {
    .desktop-nav { display: none; }
    .menu-button { display: grid; }
    .hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .hero-panel { min-height: 220px; }
    .hero-panel strong { font-size: 72px; margin-top: 16px; }
    .content-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .compact-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .featured-grid .content-card:first-child { grid-column: auto; }
}

@media (max-width: 620px) {
    .shell { width: min(100% - 24px, 1180px); }
    .header-inner { min-height: 60px; }
    .brand span:last-child { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
    .hero-section { padding: 44px 0 42px; }
    .hero-copy h1 { font-size: 40px; }
    .hero-copy > p { font-size: 15px; }
    .hero-search { border-radius: 13px; }
    .hero-search button { padding: 10px 14px; }
    .banner-grid, .content-grid, .compact-grid { grid-template-columns: 1fr; }
    .banner img { height: 150px; }
    .section-block { padding-top: 36px; }
    .section-heading h2 { font-size: 22px; }
    .filter-bar { align-items: flex-start; flex-direction: column; }
    .detail-shell { width: 100%; padding-top: 0; }
    .detail-card { border-radius: 0; border-left: 0; border-right: 0; }
    .detail-header { padding: 20px 16px; gap: 15px; }
    .detail-cover { width: 78px; height: 78px; border-radius: 18px; }
    .detail-section { padding: 22px 16px; }
    .disclaimer { margin: 0 16px 20px; }
    .simple-page-header { padding: 26px 18px 8px; }
    .download-modal { padding: 10px; align-items: flex-end; }
    .download-dialog { max-height: 92vh; border-radius: 20px 20px 12px 12px; padding: 18px; }
    .dialog-header h2 { font-size: 18px; }
    .dialog-row { align-items: flex-start; flex-direction: column; gap: 2px; }
    .dialog-row strong { text-align: left; }
    .form-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; }
}

