/* ==========================================================================
   基础样式：设计变量、重置、页头页脚、按钮、卡片、表单、动效
   ========================================================================== */

:root {
  --brand: #03419e;
  --brand-strong: #0a56c8;
  --brand-deep: #03245a;
  --brand-soft: #eaf1fb;
  --brand-tint: #cfe0ff;
  --accent: #ec7636;
  --ink: #12233a;
  --ink-2: #26354a;
  --ink-3: #506078;
  --muted: #6b7b90;
  --line: #dde5f0;
  --line-soft: #eaf0f8;
  --paper: #ffffff;
  --paper-warm: #f5f8fd;
  --paper-warm-2: #e9f0fa;
  --dark: #03245a;
  --dark-2: #0a3a7a;
  --ok: #1f8a5b;
  --err: #c0372c;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(18, 35, 58, .06), 0 4px 12px rgba(18, 35, 58, .05);
  --shadow-md: 0 10px 30px rgba(18, 35, 58, .12);
  --wrap: 1200px;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; border: 0; }

a { color: var(--ink); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand-strong); }

h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink); line-height: 1.3; font-weight: 700; }
h1 { font-size: 2.1rem; letter-spacing: .01em; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.18rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
strong { color: var(--ink); font-weight: 700; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.u-muted { color: var(--muted); }
.u-small { font-size: .875rem; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .78em 1.5em;
  font-size: .95rem; font-weight: 600; line-height: 1.2;
  border: 1px solid transparent; border-radius: var(--radius);
  background: var(--brand); color: #fff;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn:hover { background: var(--brand-strong); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); background: var(--brand-deep); }

.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }

.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-deep); }

.btn-sm { padding: .55em 1.1em; font-size: .875rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------- 页头 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(8px);
}
.topline {
  background: var(--dark); color: rgba(255, 255, 255, .72);
  font-size: .8rem; letter-spacing: .02em;
}
.topline .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; }
.topline a { color: rgba(255, 255, 255, .82); }
.topline a:hover { color: #fff; }
.topline .sep { margin: 0 10px; color: rgba(255, 255, 255, .3); }

.masthead { display: flex; align-items: center; gap: 28px; padding: 16px 0; }

.brand { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; min-width: 0; }
.brand-logo {
  display: block; width: auto; height: 42px;
  transition: opacity .2s ease, transform .2s ease;
}
.brand:hover .brand-logo { opacity: .86; transform: translateY(-1px); }
.brand:active .brand-logo { transform: translateY(0); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 1.06rem; letter-spacing: .02em; }
.brand-text em {
  font-style: normal; font-size: .74rem; letter-spacing: .12em;
  color: var(--muted); text-transform: uppercase;
}

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block; padding: 10px 15px;
  font-size: .96rem; font-weight: 600; color: var(--ink-2);
  border-radius: var(--radius);
  transition: color .2s ease, background .2s ease;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.is-active > a { color: var(--brand-strong); background: var(--brand-soft); }

.sub {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 208px;
  padding: 8px; margin: 0; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.sub li { margin: 0; }
.sub a { display: block; padding: 9px 12px; font-size: .92rem; color: var(--ink-3); border-radius: 3px; }
.sub a:hover { background: var(--brand-soft); color: var(--brand-deep); }
.has-sub:hover .sub,
.has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translateY(0); }

.header-cta { flex: 0 0 auto; }

.nav-toggle {
  display: none; align-items: center; gap: 8px;
  padding: 9px 14px; margin-left: auto;
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.nav-toggle:hover { border-color: var(--brand); color: var(--brand-strong); }
.nav-toggle-bars { display: block; width: 16px; height: 2px; background: currentColor; position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; }
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

/* ---------------- 页面标题带 ---------------- */
.page-hero {
  position: relative; padding: 46px 0 40px;
  background: var(--dark); color: #fff; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 140% at 88% 0%, rgba(10, 86, 200, .38) 0%, rgba(10, 86, 200, 0) 58%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: .35em; font-size: 2rem; }
.page-hero p { color: rgba(255, 255, 255, .74); max-width: 62ch; margin: 0; }
.page-hero .eyebrow {
  display: inline-block; margin-bottom: 12px;
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand); font-weight: 600;
}

/* ---------------- 面包屑 ---------------- */
.crumbs { padding: 16px 0 0; font-size: .84rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.crumbs li { display: flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "/"; color: #c9cdd1; margin: 0 2px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand-strong); }
.crumbs [aria-current="page"] { color: var(--ink-2); }

/* ---------------- 通用区块 ---------------- */
.section { padding: 74px 0; }
.section-tight { padding: 52px 0; }
.section-warm { background: var(--paper-warm); }
.section-dark { background: var(--dark); color: rgba(255, 255, 255, .78); }
.section-dark h2, .section-dark h3, .section-dark strong { color: #fff; }

.section-head { max-width: 720px; margin-bottom: 38px; }
.section-head .eyebrow {
  display: block; margin-bottom: 10px;
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--brand-strong); font-weight: 600;
}
.section-head h2 { font-size: 1.85rem; margin-bottom: .45em; }
.section-head p { color: var(--ink-3); margin: 0; }
.section-dark .section-head p { color: rgba(255, 255, 255, .68); }

/* ---------------- 卡片 ---------------- */
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.card:hover { border-color: var(--brand-tint); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-media { display: block; overflow: hidden; background: var(--paper-warm-2); }
.card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1 1 auto; }
.card-body h3 { font-size: 1.06rem; margin: 0; }
.card-body p { margin: 0; font-size: .92rem; color: var(--ink-3); }
.card-more {
  margin-top: auto; padding-top: 6px;
  font-size: .88rem; font-weight: 600; color: var(--brand-strong);
  display: inline-flex; align-items: center; gap: 6px;
}
.card-more svg { width: 14px; height: 14px; transition: transform .2s ease; }
.card:hover .card-more svg { transform: translateX(4px); }

.eyebrow-chip {
  display: inline-block; padding: 3px 10px;
  font-size: .74rem; font-weight: 600; letter-spacing: .04em;
  color: var(--brand-deep); background: var(--brand-soft); border-radius: 999px;
}

/* ---------------- 资讯列表项 ---------------- */
.entry-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.entry {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 24px; align-items: start;
  padding: 24px 4px;
  border-bottom: 1px solid var(--line-soft);
}
.entry:first-child { padding-top: 4px; }
.entry-date { display: flex; flex-direction: column; line-height: 1.1; }
.entry-date b { font-size: 1.7rem; color: var(--brand); font-weight: 700; }
.entry-date span { font-size: .8rem; color: var(--muted); letter-spacing: .04em; }
.entry h3 { font-size: 1.08rem; margin: 0 0 6px; }
.entry h3 a:hover { color: var(--brand-strong); }
.entry p { margin: 0; font-size: .92rem; color: var(--ink-3); }
.entry-cat { align-self: center; }

/* ---------------- 分页 ---------------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 34px; }
.pager a, .pager span {
  min-width: 40px; padding: 8px 13px; text-align: center;
  font-size: .9rem; color: var(--ink-3);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.pager a:hover { border-color: var(--brand); color: var(--brand-strong); background: var(--brand-soft); }
.pager .is-current { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pager .is-disabled { color: #b9c0c6; border-color: var(--line-soft); }
.pager-info { margin-left: auto; font-size: .84rem; color: var(--muted); border: 0; padding: 0; }

/* ---------------- 表单 ---------------- */
.form { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field span { font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.field input,
.field textarea,
.field select {
  width: 100%; padding: 12px 14px;
  font: inherit; font-size: .95rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:hover,
.field textarea:hover,
.field select:hover { border-color: #cfd4d8; }
.field input:focus,
.field textarea:focus,
.field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(3, 65, 158, .16); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { margin: 0; font-size: .9rem; color: var(--ink-3); }
.form-status[data-state="ok"] { color: var(--ok); }
.form-status[data-state="err"] { color: var(--err); }
.form-note { font-size: .82rem; color: var(--muted); margin: 0; }

/* ---------------- 页脚 ---------------- */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .66); font-size: .9rem; }
.footer-main {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 40px;
  padding: 58px 0 44px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand .brand-logo {
  height: 42px; box-sizing: content-box;
  background: #fff; padding: 8px; border-radius: var(--radius-lg);
}
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text em { color: rgba(255, 255, 255, .5); }
.footer-brand p { color: rgba(255, 255, 255, .6); font-size: .88rem; line-height: 1.75; margin: 0 0 14px; }
.footer-col h3 {
  font-size: .86rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255, 255, 255, .95); margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: rgba(255, 255, 255, .66); font-size: .9rem; }
.footer-col a:hover { color: var(--brand); }
.footer-contact li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.footer-contact svg { width: 15px; height: 15px; margin-top: 5px; color: var(--brand); flex: 0 0 auto; }
.footer-contact a { color: rgba(255, 255, 255, .82); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .82rem; color: rgba(255, 255, 255, .5);
}
.footer-bottom p { margin: 0; }
.footer-legal a { color: rgba(255, 255, 255, .62); }
.footer-legal a:hover { color: var(--brand); }
.footer-ai { display: inline-flex; gap: 14px; margin-left: 18px; }
.footer-ai a { color: rgba(255, 255, 255, .5); }

/* ---------------- 动效（无 JS 时内容照常可见） ---------------- */
.reveal { transition: opacity .5s ease, transform .5s ease; }
html.js .reveal { opacity: 0; transform: translateY(16px); }
html.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ---------------- 滚动条（具体容器） ---------------- */
.scroll-area { scrollbar-width: thin; scrollbar-color: rgba(111, 124, 134, .35) transparent; }
.scroll-area::-webkit-scrollbar { width: 8px; height: 8px; }
.scroll-area::-webkit-scrollbar-thumb { background: rgba(111, 124, 134, .35); border-radius: 999px; }
.scroll-area::-webkit-scrollbar-track { background: transparent; }

/* ---------------- 子栏目展开按钮 / 返回顶部 ---------------- */
.sub-toggle {
  display: none;
  width: 34px; height: 34px;
  align-items: center; justify-content: center;
  background: transparent; border: 0; border-radius: var(--radius);
  color: var(--ink-3); cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.sub-toggle:hover { background: var(--brand-soft); color: var(--brand-deep); }
.sub-toggle svg { width: 14px; height: 14px; transition: transform .2s ease; }
.has-sub.is-open .sub-toggle svg { transform: rotate(180deg); }

.to-top {
  position: fixed; left: 22px; bottom: 22px; z-index: 40;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: #fff; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 50%;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s ease, color .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.to-top svg { width: 18px; height: 18px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
  .main-nav > ul > li > a { padding: 10px 11px; font-size: .92rem; }
  .header-cta { display: none; }
}

@media (max-width: 900px) {
  body { font-size: 15.5px; }
  h1 { font-size: 1.72rem; }
  .topline .wrap { justify-content: center; }
  .topline .topline-note { display: none; }
  .masthead { flex-wrap: wrap; gap: 12px; padding: 12px 0; }
  .brand { gap: 10px; }
  .brand-logo { height: 34px; }
  .brand-text { display: none; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none; width: 100%; margin: 0; order: 3;
    border-top: 1px solid var(--line); padding-top: 8px;
  }
  .main-nav.is-open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li > a { padding: 12px 4px; border-radius: 0; border-bottom: 1px solid var(--line-soft); }
  .main-nav > ul > li.has-sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-soft); }
  .main-nav > ul > li.has-sub > a { border-bottom: 0; flex: 1 1 auto; }
  .sub-toggle { display: inline-flex; }
  .sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    display: none; box-shadow: none; border: 0; border-left: 2px solid var(--brand-tint);
    padding: 4px 0 8px 12px; margin: 4px 0 8px;
  }
  .has-sub.is-open .sub { display: block; }
  .sub a { padding: 8px 6px; }
  .section { padding: 52px 0; }
  .entry { grid-template-columns: 76px 1fr; gap: 16px; }
  .entry-cat { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 26px; padding: 42px 0 30px; }
  .page-hero { padding: 34px 0 30px; }
}
