/* ==========================================================================
   纷纭社 FENYUE STUDIO — fyhy.top
   统一设计系统 v2026.11
   ========================================================================== */

/* ---------- 变量 ---------- */
:root {
  --brand: #0f5bd0;
  --brand-deep: #0b3d94;
  --brand-soft: #e9f1ff;
  --sky: #22a3f5;
  --sky-soft: #e6f6ff;
  --ink: #0b1220;
  --ink-2: #253046;
  --muted: #5b6b82;
  --line: #e4e9f2;
  --bg: #f5f8fd;
  --paper: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, .05), 0 4px 12px rgba(11, 18, 32, .04);
  --shadow-md: 0 8px 30px rgba(11, 18, 32, .09);
  --wrap: 1180px;
  --header-h: 68px;
  --font: "Inter", "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC",
          "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; margin: 0; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding-left: 1.4em; }
button { font: inherit; }

:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: .6rem 1rem;
  border-radius: 0 0 8px 8px; transition: top .2s ease;
}
.skip-link:focus { top: 0; text-decoration: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- 顶部公告条 ---------- */
.topbar {
  background: var(--ink);
  color: #cfd8e6;
  font-size: .82rem;
  letter-spacing: .01em;
}
.topbar .wrap {
  display: flex; align-items: center; gap: .75rem;
  min-height: 36px; flex-wrap: wrap;
}
.topbar a { color: #eaf2ff; }
.topbar .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sky); flex: none; }
.topbar .spacer { margin-left: auto; }

/* ---------- 页头导航 ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease, background .25s ease;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); }
.nav {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--ink); text-decoration: none; flex: none;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1.06rem; letter-spacing: .01em; }
.brand-sub { font-size: .66rem; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }

.nav-links {
  display: flex; align-items: center; gap: .25rem;
  list-style: none; margin: 0 0 0 auto; padding: 0;
}
.nav-links > li { position: relative; }
.nav-links > li > a,
.nav-links > li > button {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .7rem; border: 0; background: none; cursor: pointer;
  color: var(--ink-2); font-size: .94rem; font-weight: 600; border-radius: 8px;
  transition: color .2s ease, background .2s ease;
}
.nav-links > li > a:hover,
.nav-links > li > button:hover,
.nav-links > li.is-open > button {
  color: var(--brand); background: var(--brand-soft); text-decoration: none;
}
.nav-links > li > a[aria-current="page"] { color: var(--brand); }
.nav-links > li > a[aria-current="page"]::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .18rem;
  height: 2px; border-radius: 2px; background: var(--brand);
}
.caret { width: 9px; height: 9px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
li.is-open .caret { transform: rotate(-135deg) translateY(-2px); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 232px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-md); padding: .4rem;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
li.is-open > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: .5rem .7rem; border-radius: 8px;
  color: var(--ink-2); font-size: .92rem;
}
.dropdown a:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.dropdown .dd-note { padding: .35rem .7rem .45rem; font-size: .76rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: .3rem; }

.header-cta { display: inline-flex; align-items: center; gap: .45rem; flex: none; margin-left: .5rem; }
.nav-toggle {
  display: none; margin-left: auto; width: 42px; height: 42px;
  border: 1px solid var(--line); background: #fff; border-radius: 10px;
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
  transition: transform .2s ease, top .2s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.25rem; border-radius: 10px; border: 1px solid transparent;
  font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(15, 91, 208, .28); }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .38); }
.btn-light:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.btn-sm { padding: .5rem .85rem; font-size: .88rem; border-radius: 9px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: #06101f url("assets/servers/fenyunshijie/cover.jpg") center / cover no-repeat;
  color: #fff;
  min-height: clamp(520px, 82vh, 760px);
  display: flex; align-items: flex-end;
}
.hero-video, .hero-poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
/* 视频未就绪前不渲染，避免出现黑块；就绪后由脚本加上 .is-video */
.hero-video { display: none; opacity: 0; transition: opacity .6s ease; }
.hero.is-video .hero-video { display: block; }
.hero.is-video.is-video-in .hero-video { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 16, 31, .55) 0%, rgba(6, 16, 31, .35) 40%, rgba(6, 16, 31, .92) 100%),
    linear-gradient(100deg, rgba(6, 16, 31, .82) 0%, rgba(6, 16, 31, .18) 62%);
}
.hero-inner { position: relative; width: 100%; padding: clamp(5rem, 12vh, 8rem) 0 clamp(2.5rem, 5vh, 4rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .34rem .8rem; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #e7f0ff;
  backdrop-filter: blur(6px);
}
.hero h1 {
  color: #fff; margin: 1.1rem 0 .9rem;
  font-size: clamp(2.3rem, 5.6vw, 4.1rem); line-height: 1.1; font-weight: 800;
  letter-spacing: -.02em;
}
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #8fd0ff, #4bb4f7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { max-width: 40ch; color: #cddcef; font-size: clamp(1rem, 1.6vw, 1.16rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.9rem; }
.hero-meta { margin-top: clamp(2rem, 4vh, 3rem); display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-stat {
  flex: 1 1 148px; min-width: 130px;
  padding: .85rem 1rem; border-radius: 12px;
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px);
}
.hero-stat b { display: block; font-size: 1.45rem; color: #fff; line-height: 1.2; }
.hero-stat span { font-size: .78rem; color: #a9bdd6; letter-spacing: .04em; }

/* ---------- 页面（内页）头部 ---------- */
.page-head {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1100px 420px at 12% -20%, rgba(34, 163, 245, .55), transparent 62%),
    linear-gradient(135deg, #0a2a63 0%, #0b3d94 52%, #0f5bd0 100%);
  padding: clamp(2.6rem, 6vw, 4.2rem) 0 clamp(2.2rem, 5vw, 3.4rem);
}
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: linear-gradient(180deg, #000, transparent 92%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 92%);
}
.page-head .wrap { position: relative; }
.page-head h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-bottom: .7rem; }
.page-head p { color: #cfdff5; max-width: 62ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; font-size: .82rem; color: #b9cdea; margin-bottom: .9rem; }
.crumbs a { color: #dbe8fb; }
.crumbs span[aria-hidden] { opacity: .55; }

/* ---------- 区块 ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section.alt { background: #fff; }
.section-head { max-width: 720px; margin-bottom: clamp(1.6rem, 3.5vw, 2.6rem); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand);
}
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--brand); }
.section-head.center .kicker::before { display: none; }
.section-head h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); margin: .7rem 0 .7rem; }
.section-head p { color: var(--muted); font-size: 1.02rem; }
.section-foot { margin-top: 1.8rem; display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 1.1rem; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); color: inherit;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
a.card:hover, a.card:focus-visible {
  transform: translateY(-4px); box-shadow: var(--shadow-md);
  border-color: #cbe0ff; text-decoration: none;
}
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, #0b2c5e, #0f5bd0); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .3, 1); }
a.card:hover .card-media img { transform: scale(1.05); }
.card-media .badge {
  position: absolute; left: .7rem; top: .7rem; z-index: 1;
  padding: .22rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 700;
  background: rgba(9, 18, 32, .62); color: #fff; backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .22);
}
.card-body { padding: 1.05rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-body h3 { font-size: 1.14rem; }
.card-body p { color: var(--muted); font-size: .94rem; }
.card-foot { margin-top: auto; padding-top: .7rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-weight: 700; font-size: .9rem; color: var(--brand); }
.card-foot .arrow { margin-left: auto; transition: transform .2s ease; }
a.card:hover .card-foot .arrow { transform: translateX(4px); }

.tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag {
  display: inline-flex; align-items: center; padding: .16rem .5rem; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-deep); font-size: .74rem; font-weight: 700;
  letter-spacing: .02em;
}
.tag.sky { background: var(--sky-soft); color: #0a6fa8; }
.tag.plain { background: #f0f3f8; color: var(--muted); }

/* ---------- 子品牌 ---------- */
.brand-card { align-items: flex-start; padding: 1.35rem; gap: .8rem; }
.brand-logo { height: 46px; width: auto; max-width: 100%; object-fit: contain; }
.brand-card p { color: var(--muted); font-size: .93rem; }

/* ---------- 公告列表 ---------- */
.notice-list { display: grid; gap: .7rem; }
.notice {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
  padding: .95rem 1.15rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: inherit;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.notice:hover { border-color: #cbe0ff; background: #fbfdff; transform: translateX(2px); text-decoration: none; }
.notice time { font-family: var(--mono); font-size: .78rem; color: var(--muted); white-space: nowrap; }
.notice strong { font-size: .98rem; color: var(--ink); font-weight: 700; }
.notice .arrow { color: var(--muted); }

/* ---------- 数据/信息条 ---------- */
.strip {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 2rem);
}
.strip-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.strip-head h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.node-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; }
.node {
  padding: .9rem .95rem; border-radius: 12px; background: var(--bg);
  border: 1px solid var(--line);
}
.node b { display: block; font-size: .98rem; color: var(--ink); }
.node span { font-size: .8rem; color: var(--muted); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
table.data th, table.data td { padding: .78rem .9rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { background: #f7f9fd; font-size: .84rem; letter-spacing: .04em; color: var(--muted); font-weight: 700; white-space: nowrap; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #fbfdff; }

/* ---------- CTA 区块 ---------- */
.cta {
  position: relative; overflow: hidden; color: #fff; border-radius: 20px;
  background:
    radial-gradient(700px 320px at 88% 10%, rgba(108, 196, 255, .5), transparent 60%),
    linear-gradient(125deg, #0a2a63 0%, #0f5bd0 58%, #1477e8 100%);
  padding: clamp(1.8rem, 4.5vw, 3rem);
  display: grid; grid-template-columns: 1.4fr auto; gap: 1.6rem; align-items: center;
}
.cta h2 { color: #fff; font-size: clamp(1.4rem, 2.8vw, 2rem); margin-bottom: .6rem; }
.cta p { color: #d3e4fb; max-width: 56ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.cta .qq { font-family: var(--mono); font-size: 1.05rem; }

/* ---------- 页脚 ---------- */
.footer { background: #08111f; color: #93a4bc; padding: clamp(2.5rem, 5vw, 3.6rem) 0 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer h4 { color: #fff; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .9rem; }
.footer ul { list-style: none; padding: 0; display: grid; gap: .5rem; font-size: .9rem; }
.footer a { color: #b8c8de; }
.footer a:hover { color: #fff; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-sub { color: #7f91a9; }
.footer-brand p { font-size: .88rem; margin-top: .9rem; max-width: 34ch; line-height: 1.7; }
.footer-legal {
  margin-top: 2.2rem; padding-top: 1.3rem; border-top: 1px solid rgba(255, 255, 255, .1);
  display: grid; gap: .55rem; font-size: .78rem; line-height: 1.7; color: #7c8da4;
}
.footer-legal b { color: #a9bcd6; font-weight: 700; }
.footer-bottom { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; font-size: .78rem; }
.footer-bottom .spacer { margin-left: auto; }

/* ---------- 文档排版（协议/公告正文） ---------- */
.doc-layout { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 2rem; align-items: start; }
.doc-aside {
  position: sticky; top: calc(var(--header-h) + 16px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; font-size: .9rem;
}
.doc-aside h2 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; }
.doc-aside ol { list-style: none; padding: 0; margin: 0; display: grid; gap: .15rem; counter-reset: doc; }
.doc-aside a { display: block; padding: .42rem .55rem; border-radius: 8px; color: var(--ink-2); }
.doc-aside a:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.doc-aside a[aria-current="true"] { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.doc-aside .meta { margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); display: grid; gap: .3rem; }

.doc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.3rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-sm);
}
.doc-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.doc h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .6rem; }
.doc h2 {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem); margin: 2rem 0 .8rem; padding-bottom: .5rem;
  border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 20px);
}
.doc h3 { font-size: 1.02rem; margin: 1.3rem 0 .5rem; color: var(--brand-deep); }
.doc p { margin: 0 0 .85rem; }
.doc p.lead { color: var(--muted); }
.doc ul, .doc ol { margin: 0 0 1rem; display: grid; gap: .35rem; }
.doc li::marker { color: var(--brand); }
.doc table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: .6rem 0 1.2rem; }
.doc table th, .doc table td { border: 1px solid var(--line); padding: .55rem .7rem; text-align: left; vertical-align: top; }
.doc table thead th { background: #f7f9fd; color: var(--ink); }
.doc .sign { margin-top: 2rem; padding-top: 1.1rem; border-top: 1px dashed var(--line); color: var(--muted); font-size: .9rem; }
.doc .sign b { color: var(--ink); }
.doc-note {
  margin: 1.2rem 0; padding: .9rem 1.1rem; border-radius: 12px;
  background: #fff8e8; border: 1px solid #f6e2b8; color: #7a5510; font-size: .92rem;
}
.doc-note.info { background: var(--brand-soft); border-color: #cfe1ff; color: var(--brand-deep); }
.doc-note b { color: inherit; }

/* ---------- 时间线 ---------- */
.timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: .5rem; bottom: .5rem; width: 2px; background: linear-gradient(180deg, var(--brand), #cfe1ff); border-radius: 2px; }
.timeline li { position: relative; padding: 0 0 1.5rem 2rem; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: .55rem; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; border: 3px solid var(--brand);
}
.timeline time { display: block; font-family: var(--mono); font-size: .8rem; color: var(--brand); font-weight: 700; }
.timeline b { display: block; color: var(--ink); font-size: 1.02rem; margin: .1rem 0 .2rem; }
.timeline p { color: var(--muted); font-size: .92rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .7rem; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: .2rem .3rem; box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; padding: .85rem .9rem; font-weight: 700; color: var(--ink);
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq .faq-body { padding: 0 .9rem .95rem; color: var(--muted); font-size: .94rem; }

/* ---------- 步骤 ---------- */
.steps { counter-reset: step; display: grid; gap: .8rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.2rem 1.15rem 1.3rem;
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: .82rem; font-weight: 700; color: var(--brand);
  display: inline-block; margin-bottom: .5rem; letter-spacing: .06em;
}
.step b { display: block; color: var(--ink); margin-bottom: .35rem; }
.step p { color: var(--muted); font-size: .92rem; }

/* ---------- 招募岗位 ---------- */
.role { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.role-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 1.1rem;
}

/* ---------- 画廊 ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.gallery img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }

/* ---------- 节点地图 ---------- */
.map-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.map-canvas {
  background: radial-gradient(120% 120% at 50% 0%, #f5faff 0%, #eaf2fd 60%, #e3edfb 100%);
  border: 1px solid var(--line); border-radius: 14px; padding: .5rem;
}
.china-map { width: 100%; height: auto; display: block; overflow: visible; }
.map-outline { fill: #dbe9fb; stroke: #a9c6ea; stroke-width: 1.2; stroke-linejoin: round; }
.map-pin { cursor: pointer; }
.map-pin .pin-halo { fill: rgba(34, 163, 245, .16); transition: fill .2s ease; }
.map-pin .pin-dot { fill: var(--brand); stroke: #fff; stroke-width: 3; transition: fill .2s ease; }
.map-pin .pin-label {
  font-size: 26px; font-weight: 700; fill: var(--ink-2); text-anchor: middle;
  paint-order: stroke; stroke: #fff; stroke-width: 7px; stroke-linejoin: round;
}
.map-pin:hover .pin-halo, .map-pin:focus-visible .pin-halo { fill: rgba(34, 163, 245, .3); }
.map-pin:focus-visible { outline: none; }
.map-pin.is-active .pin-dot { fill: #ef6a3d; }
.map-pin.is-active .pin-label { fill: #c9420f; }
.map-pin.is-active .pin-halo { fill: rgba(239, 106, 61, .22); }
.map-side { display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.node-panel { background: var(--brand-soft); border-radius: 12px; padding: 1rem 1.1rem; }
.np-kind { font-size: .74rem; font-weight: 700; letter-spacing: .06em; color: var(--brand-deep); }
.np-name { font-size: 1.15rem; margin: .25rem 0 .5rem; }
.np-row { display: flex; gap: .6rem; font-size: .9rem; margin-top: .35rem; }
.np-key { color: var(--muted); min-width: 4.2em; flex: none; }
.np-val { color: var(--ink-2); }
.node-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.node-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 999px; padding: .42rem .75rem; font-size: .86rem; cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.node-chip b { font-weight: 700; }
.node-chip span { color: var(--muted); font-size: .78rem; }
.node-chip:hover { border-color: #bbd8fb; }
.node-chip.is-active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.node-chip.is-active span { color: var(--brand-deep); }
.map-note { margin-top: .9rem; color: var(--muted); font-size: .88rem; }

/* ---------- 组织架构 ---------- */
.org-list { list-style: none; padding: 0; margin: .55rem 0 0; display: grid; gap: .4rem; font-size: .9rem; color: var(--muted); }
.org-list li { position: relative; padding-left: 1rem; line-height: 1.55; }
.org-list li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--brand);
  opacity: .55;
}
.org-list b { color: var(--ink); font-weight: 700; }
.org-note { margin-top: .9rem; font-size: .86rem; color: var(--muted); line-height: 1.6; }

/* ---------- 手机阅读版 ---------- */
.read-nav {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: .55rem .9rem; margin-bottom: 1rem;
}
.read-nav summary { cursor: pointer; font-weight: 700; font-size: .92rem; color: var(--ink); list-style: none; }
.read-nav summary::-webkit-details-marker { display: none; }
.read-nav summary::after { content: "＋"; float: right; color: var(--brand); }
.read-nav details[open] summary::after { content: "－"; }
.read-links { display: flex; flex-wrap: wrap; gap: .4rem; padding: .7rem 0 .2rem; }
.read-links a {
  padding: .38rem .65rem; border-radius: 999px; background: var(--brand-soft);
  color: var(--brand-deep); font-size: .85rem; font-weight: 700;
}
.read-links a:hover { background: #d8e8ff; text-decoration: none; }
.read-doc + .read-doc { border-top: 1px dashed var(--line); margin-top: 1.8rem; padding-top: 1.5rem; }
.read-doc h1 { font-size: clamp(1.2rem, 4.5vw, 1.55rem); margin-bottom: .55rem; }
.read-sign { color: var(--muted); font-size: .86rem; margin-top: 1rem; }

/* 防止网格/弹性子项把页面撑宽（移动端横向溢出） */
.wrap > *, .grid > *, .doc-layout > *, .footer-grid > *, .strip > *, .notice > *, .section-head > * { min-width: 0; }
.table-wrap { max-width: 100%; }

/* 协议页侧栏：移动端折叠 */
@media (max-width: 1080px) {
  .aside-details > summary {
    display: flex; align-items: center; justify-content: space-between;
    list-style: none; cursor: pointer; font-weight: 700; font-size: .92rem; color: var(--ink);
  }
  .aside-details > summary::-webkit-details-marker { display: none; }
  .aside-details > summary::after { content: "展开"; font-weight: 400; font-size: .8rem; color: var(--brand); }
  .aside-details[open] > summary::after { content: "收起"; }
  .aside-details[open] > summary { margin-bottom: .7rem; padding-bottom: .55rem; border-bottom: 1px solid var(--line); }
}
@media (min-width: 1081px) {
  .aside-details > summary { display: none; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.notfound .code { font-family: var(--mono); font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; color: var(--brand-soft); line-height: 1; }

/* ---------- 动效（仅启用 JS 时生效，保证无 JS 环境下内容可见） ---------- */
.reveal { transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1); }
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .node-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-aside { position: static; }
  .steps.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav-links, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .map-layout { grid-template-columns: 1fr; gap: 1rem; }
  .node-chips { gap: .35rem; }
  .node-chip { padding: .38rem .62rem; font-size: .8rem; }
  /* 手机上放大地图标签与触点 */
  .map-pin .pin-label { font-size: 34px; }
  .map-pin .pin-halo { r: 34; }
  .map-pin .pin-dot { r: 11; }
  .header.is-open .nav-links {
    display: grid; gap: .1rem; position: absolute; left: 0; right: 0; top: 100%;
    margin: 0; padding: .7rem 1rem 1rem; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .header.is-open .header-cta { display: flex; position: absolute; left: 0; right: 0; top: auto; }
  .nav-links > li > a, .nav-links > li > button { width: 100%; justify-content: space-between; padding: .72rem .6rem; }
  .nav-links > li > a[aria-current="page"]::after { display: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; border: 0; background: #f7f9fd; margin: .1rem 0 .4rem; min-width: 0; }
  li.is-open > .dropdown { display: block; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 18px; }
  .grid-4, .grid-3, .grid-2, .node-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; align-items: center; }
  .hero-inner { padding: 3.2rem 0 2.8rem; }
  .hero::after { background: linear-gradient(180deg, rgba(6, 16, 31, .62), rgba(6, 16, 31, .93) 82%); }
  .hero-meta { margin-top: 1.8rem; }
  .hero-stat { flex: 1 1 44%; }
  /* 表格与按钮：手机上的可读性 */
  table.data { font-size: .78rem; min-width: 0; }
  table.data th, table.data td { padding: .45rem .4rem; word-break: break-word; }
  table.data thead th { white-space: normal; }
  .doc table { font-size: .86rem; }
  .pdf-actions { width: 100%; }
  .pdf-actions .btn { width: 100%; }
  .read-links a { font-size: .82rem; }
  .notice { grid-template-columns: 1fr auto; }
  .notice time { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .doc { border-radius: 12px; }
  .brand-logo { height: 38px; }
  .topbar .spacer { display: none; }
  .topbar .hide-sm { display: none; }
}

/* ---------- 打印 ---------- */
@media print {
  .topbar, .header, .footer, .doc-aside, .hero-video, .cta, .section-foot, .doc-print, .skip-link { display: none !important; }
  body { background: #fff; }
  .doc, .card, .step { box-shadow: none; border-color: #ccc; }
  .doc-layout { grid-template-columns: 1fr; }
  a { color: inherit; text-decoration: none; }
}

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