/* ============================================================
   疤友之家 · 设计系统 v5
   参考中国一带一路网（yidaiyilu.gov.cn）官方风格
   中国红主色 + 白/浅灰底 + 金色点缀 + 藏蓝辅助 + 黑体字体系
   ============================================================ */

/* ---------- 调色板：官方风 ---------- */
:root {
  /* 中国红主色系 */
  --gov-red:      #b01f24;   /* 中国红（主色） */
  --gov-red-dark: #8e161a;   /* 深红（hover） */
  --gov-red-deep: #6e1114;   /* 更深红 */
  --gov-red-bg:   #fdf3f3;   /* 极浅红背景 */
  --gov-red-line: #e8c6c6;   /* 浅红线 */

  /* 金色点缀 */
  --gov-gold:      #c9a063;  /* 金 */
  --gov-gold-dark: #a8813c;  /* 深金 */

  /* 藏蓝辅助 */
  --gov-blue:      #16385a;  /* 藏蓝 */
  --gov-blue-dark: #0d2740;  /* 深藏蓝 */

  /* 中性色 */
  --bg:       #ffffff;       /* 主背景白 */
  --bg-2:     #f5f5f5;       /* 浅灰区块 */
  --bg-3:     #faf7f0;       /* 米白（配金） */
  --text:     #333333;       /* 正文 */
  --text-2:   #666666;       /* 次要 */
  --text-3:   #999999;       /* 弱 */
  --line:     #e5e5e5;       /* 分隔线 */
  --line-2:   #d8d8d8;

  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lift: 0 10px 28px rgba(0, 0, 0, 0.10);

  --radius-lg: 10px;
  --radius-md: 8px;
  --radius-sm: 6px;

  /* 字体：黑体系（微软雅黑）为主，正文可配宋体 */
  --font-head: "Microsoft YaHei","PingFang SC","Source Han Sans SC","Noto Sans CJK SC","SimHei",sans-serif;
  --font-body: "Microsoft YaHei","PingFang SC","Source Han Sans SC","Noto Sans CJK SC",sans-serif;
  --font-serif: "SimSun","Source Han Serif SC","Songti SC","STSong",serif;
  --font-brush: "KaiTi","STKaiti","SimSun","Source Han Serif SC",serif;
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; color: var(--text); }
::selection { background: var(--gov-red); color: #fff; }

/* 细滚动条 */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--gov-red), var(--gov-red-dark)); border-radius: 6px; }

/* ---------- 容器与区块 ---------- */
.container { width: min(1160px, 92%); margin: 0 auto; }
.section { position: relative; padding: 64px 0; }
.section--tight { padding: 44px 0; }
.section::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.section > .container { position: relative; z-index: 1; }

/* 区块背景（官方风：浅灰/米白交替，无花哨光晕） */
.blob--fire, .blob--ember, .blob--sunfire { background: var(--bg-2); }
.blob--aurora, .blob--nebula, .blob--night { background: var(--bg-3); }
.blob--cosmic, .blob--blue, .blob--purple, .blob--pink { background: var(--bg-2); }
.blob--coral, .blob--gold, .blob--teal { background: var(--bg); }

/* ---------- 区块标题（官方栏目头） ---------- */
.sec-head { text-align: center; max-width: 780px; margin: 0 auto 40px; }

.sec-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 3px;
  color: #fff; text-transform: uppercase;
  padding: 5px 16px; border-radius: 4px;
  background: var(--gov-red);
  margin-bottom: 18px;
}
.sec-eyebrow::before, .sec-eyebrow::after { content: ""; width: 6px; height: 6px; background: var(--gov-gold); border-radius: 50%; font-size: 0; }

.sec-title {
  font-family: var(--font-head);
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 800; letter-spacing: 1px;
  line-height: 1.35; color: var(--text);
  position: relative; display: inline-block;
}
.sec-title .wave {
  position: absolute; left: 0; bottom: -10px; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--gov-red) 0%, var(--gov-gold) 50%, var(--gov-red) 100%);
  border-radius: 2px; opacity: .9; z-index: -1;
}
.sec-sub { margin-top: 20px; color: var(--text-2); font-size: 15.5px; }
.sec-head--left { text-align: left; margin-left: 0; }

.grad-text-fire {
  background: linear-gradient(95deg, var(--gov-red) 0%, var(--gov-red-dark) 60%, var(--gov-gold) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.grad-text-cosmic {
  background: linear-gradient(95deg, var(--gov-blue) 0%, #2a5a8f 60%, var(--gov-gold) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- 导航（官方顶部导航：红条下白底） ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--gov-red);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: box-shadow .3s;
}
.nav--scrolled { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 52px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: none; box-shadow: none;
}
.brand-logo svg { width: 100%; height: 100%; display: block; }
.brand-name { font-family: var(--font-head); font-size: 20px; font-weight: 800; letter-spacing: 1px; color: var(--gov-red); }
.brand-name small { display: block; font-size: 10px; font-weight: 400; color: var(--text-3); letter-spacing: 2px; margin-top: -2px; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  position: relative; padding: 10px 16px; font-size: 15px; font-weight: 600;
  color: var(--text-2); transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px;
  background: var(--gov-red); border-radius: 2px;
  transform: scaleX(0); transition: transform .25s;
}
.nav-links a:hover { color: var(--gov-red); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--gov-red); font-weight: 800; }
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  margin-left: 10px; padding: 9px 20px; border-radius: 6px;
  background: linear-gradient(135deg, var(--gov-red), var(--gov-red-dark));
  color: #fff !important; font-weight: 700;
  box-shadow: 0 3px 10px rgba(176, 31, 36, 0.3);
  transition: transform .2s, box-shadow .2s;
}
.nav-cta::after { display: none; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(176, 31, 36, 0.4); color: #fff !important; }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.nav-burger span { width: 24px; height: 3px; border-radius: 3px; background: var(--gov-red); transition: .3s; }
.nav-burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   首页 Hero：官方红色横幅
   ============================================================ */
.hero {
  position: relative; min-height: 88vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  overflow: hidden; padding: 130px 0 70px;
  background:
    linear-gradient(160deg, var(--gov-red) 0%, var(--gov-red-dark) 45%, var(--gov-red-deep) 100%);
}
/* 顶部金色细线装饰（官方横幅常用） */
.hero::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, transparent, var(--gov-gold) 30%, var(--gov-gold) 70%, transparent);
}
/* 红色横幅上淡金水纹 */
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 12% 8%, rgba(255,255,255,.06), transparent 70%),
    radial-gradient(600px 300px at 88% 20%, rgba(255,255,255,.05), transparent 70%),
    repeating-linear-gradient(120deg, transparent 0 60px, rgba(255,255,255,.028) 60px 62px);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; max-width: 900px; padding: 0 20px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 4px;
  padding: 8px 18px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.95);
  margin-bottom: 30px; letter-spacing: 2px;
}
.hero-badge i { font-style: normal; width: 8px; height: 8px; border-radius: 50%; background: var(--gov-gold); box-shadow: 0 0 0 4px rgba(201,160,99,.3); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 900; letter-spacing: 6px; line-height: 1.15;
  color: #fff;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}
.hero-title .grad-text-fire { letter-spacing: 8px; }

.hero-slogan {
  margin: 24px auto 0;
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.6vw, 24px);
  font-weight: 600; color: #fff;
  letter-spacing: 3px;
}
.hero-desc { margin: 18px auto 0; max-width: 680px; font-size: 15.5px; color: rgba(255,255,255,.92); letter-spacing: 1px; }
.hero-desc strong { color: var(--gov-gold); font-weight: 700; }
.hero-actions { margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; z-index: 3; pointer-events: none; }
.hero-wave svg { width: 100%; height: 56px; display: block; }

/* ---------- 按钮（官方红） ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 30px; border-radius: 6px;
  font-size: 15px; font-weight: 700; letter-spacing: 1px;
  border: 0; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-2px); }
.btn-fire, .btn-coral, .btn-gold, .btn-ember {
  color: #fff; background: linear-gradient(135deg, var(--gov-red), var(--gov-red-dark));
  box-shadow: 0 4px 12px rgba(176, 31, 36, 0.3);
}
.btn-fire:hover, .btn-coral:hover, .btn-gold:hover, .btn-ember:hover { box-shadow: 0 6px 16px rgba(176, 31, 36, 0.42); }
.btn-teal, .btn-cosmic, .btn-purple {
  color: #fff; background: linear-gradient(135deg, var(--gov-blue), #24518a);
  box-shadow: 0 4px 12px rgba(22, 56, 90, 0.3);
}
.btn-ghost {
  color: var(--gov-red); background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.55);
  box-shadow: none;
}
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 14px; }

/* ---------- 卡片（官方白卡红边） ---------- */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-soft);
  transition: transform .3s, box-shadow .3s, border-color .3s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gov-red), var(--gov-gold));
  opacity: 0; transition: opacity .3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--gov-red); box-shadow: var(--shadow-lift); }
.card:hover::before { opacity: 1; }

.card-icon {
  width: 52px; height: 52px; border-radius: 8px;
  display: grid; place-items: center; margin-bottom: 16px;
  color: #fff; box-shadow: 0 3px 10px rgba(176, 31, 36, 0.25);
}
.card-icon svg { width: 26px; height: 26px; }
.ic-fire, .ic-coral, .ic-ember, .ic-gold, .ic-teal { background: linear-gradient(135deg, var(--gov-red), var(--gov-red-dark)); }
.ic-star, .ic-blue, .ic-cosmic, .ic-purple, .ic-violet, .ic-rose, .ic-leaf, .ic-pink { background: linear-gradient(135deg, var(--gov-blue), #24518a); }

.card h3 { font-family: var(--font-head); font-size: 18px; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.card p  { font-size: 14px; color: var(--text-2); }
.card-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; font-weight: 700; font-size: 14px; color: var(--gov-red); }
.card-link svg { width: 15px; height: 15px; transition: transform .25s; }
.card:hover .card-link svg { transform: translateX(4px); }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 故事卡 ---------- */
.story-card { padding: 26px 24px; display: flex; flex-direction: column; }
.story-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tag { font-size: 12px; font-weight: 700; letter-spacing: .5px; padding: 3px 12px; border-radius: 4px; color: #fff; }
.tag--fire, .tag--coral, .tag--teal, .tag--ember, .tag--gold, .tag--orange { background: linear-gradient(135deg, var(--gov-red), var(--gov-red-dark)); }
.tag--star, .tag--blue, .tag--cosmic { background: linear-gradient(135deg, var(--gov-blue), #24518a); }
.tag--violet, .tag--purple, .tag--rose, .tag--pink { background: linear-gradient(135deg, var(--gov-blue), var(--gov-red-dark)); }
.tag--plain { background: var(--bg-2); color: var(--text-2); border: 1px solid var(--line); }

.story-quote { font-family: var(--font-serif); font-size: 15px; line-height: 1.95; color: var(--text); flex: 1; position: relative; padding-left: 16px; border-left: 3px solid; }
.story-quote.q-fire, .story-quote.q-coral, .story-quote.q-ember, .story-quote.q-gold { border-color: var(--gov-red); }
.story-quote.q-star, .story-quote.q-blue, .story-quote.q-cosmic, .story-quote.q-teal { border-color: var(--gov-blue); }
.story-quote.q-violet, .story-quote.q-purple, .story-quote.q-rose, .story-quote.q-pink { border-color: var(--gov-gold); }

.story-meta { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; }
.story-who { display: flex; align-items: center; gap: 10px; }
.story-avatar { width: 38px; height: 38px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px; background: linear-gradient(135deg, var(--gov-red), var(--gov-red-dark)); }
.story-who b { font-size: 14px; display: block; color: var(--text); }
.story-who span { font-size: 12px; color: var(--text-3); }
.story-since { font-size: 12px; color: var(--text-3); font-style: italic; }

/* ---------- 知识卡 ---------- */
.know-card { padding: 22px 20px; }
.know-card .tag { margin-bottom: 10px; }
.know-card h3 { font-family: var(--font-head); font-size: 16.5px; margin-bottom: 6px; }
.know-card p { font-size: 13.5px; }
.know-card .know-meta { display: flex; gap: 12px; margin-top: 12px; font-size: 12px; color: var(--text-3); }
.know-card .know-meta span { display: inline-flex; align-items: center; gap: 4px; }
.know-card .know-meta svg { width: 12px; height: 12px; }

/* ---------- 联盟卡 ---------- */
.ally-card { text-align: center; padding: 32px 22px; }
.ally-card .card-icon { margin: 0 auto 14px; }
.ally-card h3 { margin-bottom: 6px; }
.ally-card p { font-size: 13.5px; }
.ally-card .ally-step { margin-top: 14px; display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--gov-red); padding: 4px 14px; border-radius: 4px; background: var(--gov-red-bg); border: 1px solid var(--gov-red-line); }

/* ---------- 价值条 ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-item {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px 24px; text-align: center;
  box-shadow: var(--shadow-soft); transition: transform .3s, border-color .3s;
}
.value-item:hover { transform: translateY(-4px); border-color: var(--gov-red); }
.value-num { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-size: 24px; font-weight: 900; box-shadow: 0 3px 10px rgba(176,31,36,.25); }
.vn-fire, .vn-coral, .vn-ember, .vn-gold { background: linear-gradient(135deg, var(--gov-red), var(--gov-red-dark)); }
.vn-star, .vn-teal { background: linear-gradient(135deg, var(--gov-blue), #24518a); }
.vn-violet, .vn-purple { background: linear-gradient(135deg, var(--gov-blue), var(--gov-red-dark)); }
.value-item h3 { font-family: var(--font-head); font-size: 18px; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.value-item p { font-size: 14px; color: var(--text-2); }

/* ---------- 服务标准：患者视角保障卡（承诺 + 兑现 + 验证） ---------- */
.std-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.std-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px 20px 20px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow-soft); transition: transform .3s, box-shadow .3s, border-color .3s;
}
.std-card:hover { transform: translateY(-4px); border-color: var(--gov-red); box-shadow: 0 16px 36px rgba(176,31,36,.12); }
.std-num {
  width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center;
  color: #fff; font-family: var(--font-head); font-size: 17px; font-weight: 900;
  background: linear-gradient(135deg, var(--gov-red), var(--gov-red-dark));
  box-shadow: 0 3px 10px rgba(176,31,36,.28);
}
.std-card h3 { font-family: var(--font-head); font-size: 16.5px; font-weight: 800; line-height: 1.45; color: var(--text); }
.std-desc { font-size: 13px; color: var(--text-2); line-height: 1.75; }
.std-proof {
  margin-top: auto; font-size: 12.5px; color: var(--gov-gold-dark); line-height: 1.65;
  background: rgba(201,160,99,.12); border-left: 3px solid var(--gov-gold);
  border-radius: 6px; padding: 8px 10px;
}
.std-proof b { color: var(--gov-gold-dark); }
.std-verify { font-size: 12.5px; color: var(--text-3); line-height: 1.65; }
.std-verify b { color: var(--gov-red); }
.std-verify a { color: var(--gov-red); text-decoration: underline; }
.std-verify a:hover { color: var(--gov-red-dark); }

/* ---------- 疤友共识：共识横幅 / 四步机制 / 参与入口 ---------- */
.cs-banner {
  display: flex; gap: 12px; align-items: flex-start;
  background: linear-gradient(120deg, rgba(176,31,36,.06), rgba(201,160,99,.10));
  border: 1px solid rgba(176,31,36,.18); border-left: 4px solid var(--gov-red);
  border-radius: 12px; padding: 16px 18px; max-width: 900px; margin: 0 auto 26px;
  font-size: 14px; line-height: 1.75; color: var(--text-2);
}
.cs-banner svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; color: var(--gov-red); }
.cs-banner strong { color: var(--gov-red); }
.cs-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  max-width: 980px; margin: 0 auto 30px;
}
.cs-step {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 14px; box-shadow: var(--shadow-soft);
}
.cs-num {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px;
  background: linear-gradient(135deg, var(--gov-red), var(--gov-red-dark));
}
.cs-step h4 { font-family: var(--font-head); font-size: 14.5px; font-weight: 800; margin-bottom: 4px; color: var(--text); }
.cs-step p { font-size: 12.5px; color: var(--text-2); line-height: 1.65; }
.cs-join {
  margin-top: 30px; text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 12px;
}
.cs-join p { font-size: 14.5px; color: var(--text-2); }

/* ---------- 文献静态目录页（literature.html，AI 可读） ---------- */
.lit-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 30px; }
.lit-nav a {
  font-size: 12.5px; color: var(--gov-red); background: rgba(176,31,36,.05);
  border: 1px solid rgba(176,31,36,.25); border-radius: 999px; padding: 6px 12px;
  text-decoration: none; transition: background .2s, color .2s;
}
.lit-nav a:hover { background: var(--gov-red); color: #fff; }
.lit-cat { margin-bottom: 30px; scroll-margin-top: 90px; }
.lit-cat-h {
  font-family: var(--font-head); font-size: 18px; font-weight: 800; color: var(--gov-red);
  border-left: 4px solid var(--gov-red); padding-left: 12px; margin-bottom: 14px;
}
.lit-item {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 18px; margin-bottom: 10px; box-shadow: var(--shadow-soft);
}
.lit-title { font-family: var(--font-head); font-size: 14.5px; font-weight: 700; color: var(--text); line-height: 1.55; }
.lit-meta { font-size: 12.5px; color: var(--text-2); margin-top: 6px; line-height: 1.7; }
.lit-meta b { color: var(--gov-red); font-weight: 600; }
.lit-sum { font-size: 13px; color: var(--text-2); margin-top: 6px; line-height: 1.7; }

/* ---------- 疤友问答（faq.html） ---------- */
.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-soft); overflow: hidden; transition: border-color .25s;
}
.faq-item[open] { border-color: rgba(176,31,36,.35); }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px;
  padding: 16px 20px; font-family: var(--font-head); font-size: 15px; font-weight: 700;
  color: var(--text); line-height: 1.55; user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "Q"; flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800;
  background: linear-gradient(135deg, var(--gov-red), var(--gov-red-dark));
}
.faq-item summary::after {
  content: ""; margin-left: auto; flex-shrink: 0; width: 10px; height: 10px;
  border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg); transition: transform .25s;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-cat-tag {
  flex-shrink: 0; font-size: 11px; font-weight: 500; color: var(--gov-gold-dark);
  background: rgba(201,160,99,.12); border-radius: 999px; padding: 3px 10px;
}
.faq-ans { padding: 4px 20px 18px 56px; }
.faq-ans p { font-size: 14px; color: var(--text-2); line-height: 1.85; }
.faq-source { margin-top: 10px; font-size: 12.5px; color: var(--text-3); line-height: 1.7; }
.faq-source b { color: var(--gov-gold-dark); }
.faq-empty { text-align: center; color: var(--text-3); font-size: 14px; padding: 30px 0; }

/* ---------- 时间线 ---------- */
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding-left: 40px; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 3px; border-radius: 2px;
  background: linear-gradient(180deg, var(--gov-red), var(--gov-gold), var(--gov-blue)); }
.tl-item { position: relative; padding: 6px 0 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: -40px; top: 14px; width: 32px; height: 32px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-size: 14px; font-weight: 800; box-shadow: 0 3px 10px rgba(176,31,36,.3); z-index: 1; background: linear-gradient(135deg, var(--gov-red), var(--gov-red-dark)); }
.tl-body { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px 24px; box-shadow: var(--shadow-soft); }
.tl-body h4 { font-family: var(--font-head); font-size: 17px; font-weight: 800; margin-bottom: 6px; color: var(--text); }
.tl-body p { font-size: 14px; color: var(--text-2); }
.tl-body .tl-mood { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--gov-red); }

/* ---------- chips（官方筛选条） ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.chip { padding: 8px 20px; border-radius: 4px; font-size: 14px; font-weight: 600;
  background: var(--bg); border: 1px solid var(--line); color: var(--text-2); transition: all .2s; cursor: pointer; }
.chip:hover { border-color: var(--gov-red); color: var(--gov-red); }
.chip.active { color: #fff; border-color: var(--gov-red); background: linear-gradient(135deg, var(--gov-red), var(--gov-red-dark)); box-shadow: 0 3px 10px rgba(176,31,36,.25); }

/* ---------- 内页页头（官方红横幅小版） ---------- */
.page-hero {
  position: relative; padding: 128px 0 56px; text-align: center; overflow: hidden;
  background: linear-gradient(160deg, var(--gov-red) 0%, var(--gov-red-dark) 55%, var(--gov-red-deep) 100%);
}
.page-hero::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, transparent, var(--gov-gold) 30%, var(--gov-gold) 70%, transparent);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 260px at 85% 10%, rgba(255,255,255,.06), transparent 70%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-family: var(--font-head); font-size: clamp(30px, 4.6vw, 46px); font-weight: 900; letter-spacing: 4px; color: #fff; margin-top: 10px; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.page-hero .crumb { font-family: var(--font-serif); font-size: 13px; color: rgba(255,255,255,.8); letter-spacing: 2px; margin-top: 12px; }
.page-hero .crumb b { color: var(--gov-gold); }
.page-hero p.lead { max-width: 660px; margin: 18px auto 0; color: rgba(255,255,255,.92); font-size: 15.5px; letter-spacing: 1px; }

/* ---------- 页脚（官方深藏蓝） ---------- */
.footer { position: relative; margin-top: 40px; color: #d5dee8;
  background: linear-gradient(180deg, var(--gov-blue) 0%, var(--gov-blue-dark) 100%);
  padding: 60px 0 0; border-top: 4px solid var(--gov-gold); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 36px; position: relative; z-index: 1; }
.footer h4 { font-family: var(--font-head); font-size: 15px; font-weight: 800; letter-spacing: 2px; margin-bottom: 16px; color: var(--gov-gold); }
.footer .f-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer .brand-logo { background: none; box-shadow: none; }
.footer .brand-name { color: #fff; }
.footer .brand-name small { color: rgba(213,222,232,.6); }
.footer p { font-size: 14px; color: rgba(213,222,232,.8); line-height: 1.9; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { font-size: 14px; color: rgba(213,222,232,.82); transition: color .2s, padding-left .2s; }
.footer ul a:hover { color: var(--gov-gold); padding-left: 6px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; color: rgba(213,222,232,.85); font-size: 14px; }
.footer-contact svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 4px; color: var(--gov-gold); }
.footer-bottom { margin-top: 48px; padding: 20px 0; position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.15);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: rgba(213,222,232,.65); }
.footer-note { font-size: 12.5px; color: rgba(213,222,232,.6); margin-top: 6px; line-height: 1.8; }

/* ---------- 表单（官方白卡） ---------- */
.form-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 30px; box-shadow: var(--shadow-lift); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 14px; font-weight: 700; color: var(--text); }
.form-field label em { font-style: normal; color: var(--gov-red); }
.form-field input, .form-field select, .form-field textarea {
  border: 1.5px solid var(--line); border-radius: 6px; padding: 11px 14px; font-size: 14.5px;
  color: var(--text); background: var(--bg); outline: none;
  transition: border-color .2s, box-shadow .2s; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--gov-red); box-shadow: 0 0 0 3px rgba(176,31,36,.12); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { margin-top: 14px; font-size: 13px; color: var(--text-3); }
.form-ok { display: none; margin-top: 16px; padding: 14px 18px; border-radius: 6px;
  background: var(--gov-red-bg); border: 1.5px solid var(--gov-red-line);
  color: var(--gov-red-dark); font-size: 14px; font-weight: 600; }
.form-ok.show { display: block; animation: fade-up .4s ease; }

/* ---------- 联系卡 ---------- */
.contact-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 22px;
  display: flex; gap: 16px; align-items: flex-start; box-shadow: var(--shadow-soft);
  transition: transform .3s, border-color .3s; }
.contact-card:hover { transform: translateY(-3px); border-color: var(--gov-red); }
.contact-card .card-icon { margin-bottom: 0; width: 48px; height: 48px; border-radius: 8px; flex-shrink: 0; }
.contact-card h3 { font-family: var(--font-head); font-size: 16px; font-weight: 800; margin-bottom: 4px; color: var(--text); }
.contact-card p { font-size: 13.5px; color: var(--text-2); }

/* ---------- CTA 条幅（官方红横幅） ---------- */
.banner {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  padding: 50px 40px; text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--gov-red) 0%, var(--gov-red-dark) 55%, var(--gov-red-deep) 100%);
  box-shadow: 0 10px 30px rgba(176, 31, 36, 0.25);
}
.banner::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, transparent, var(--gov-gold) 30%, var(--gov-gold) 70%, transparent);
}
.banner::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(520px 280px at 85% 15%, rgba(255,255,255,.07), transparent 70%);
}
.banner > * { position: relative; z-index: 1; }
.banner h2 { font-family: var(--font-head); font-size: clamp(24px, 3.6vw, 34px); font-weight: 900; letter-spacing: 3px; margin-bottom: 12px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.2); }
.banner p { font-size: 15px; opacity: .94; max-width: 620px; margin: 0 auto 26px; color: rgba(255,255,255,.95); }
.banner .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.banner .btn-ghost:hover { background: rgba(255,255,255,.15); }

/* ---------- 提示框 ---------- */
.notice { display: flex; gap: 12px; align-items: flex-start;
  background: var(--bg-3); border: 1.5px solid var(--gov-gold);
  border-radius: var(--radius-md); padding: 16px 20px; font-size: 14px; color: var(--text-2); line-height: 1.8; }
.notice svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 3px; color: var(--gov-gold-dark); }
.notice strong { color: var(--gov-red); }

/* ---------- 循证知识树 ---------- */
.tree-wrap {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 12px 8px;
  box-shadow: var(--shadow-soft);
  overflow-x: auto;
}
.tree-wrap svg { display: block; }
.tree-node { cursor: pointer; transition: opacity .2s; }
.tree-node:hover { opacity: .75; }
.tree-entry { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ---------- 文献库（分类 + 时间排序） ---------- */
.toolbar { margin-bottom: 30px; }
.toolbar .chips { margin-bottom: 14px; }
.sort-bar {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin-top: 14px;
}
.sort-bar .chip { padding: 7px 16px; font-size: 13px; }
.evi-count { font-size: 13.5px; color: var(--text-2); margin-right: 6px; font-weight: 700; }
.evi-meta { font-size: 12.5px; color: var(--gov-red); margin-top: 8px; font-weight: 600; }
.evi-sum {
  font-size: 13px; color: var(--text-2); margin-top: 10px; line-height: 1.8;
  border-top: 1px dashed var(--line); padding-top: 10px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.evi-more { text-align: center; margin-top: 26px; }

/* 叶片面板（点击树枝查看文献/疤友） */
.leaf-panel {
  margin-top: 26px; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft); overflow: hidden;
}
.leaf-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 20px; background: var(--gov-red-bg);
  border-bottom: 1px solid var(--gov-red-line);
  font-size: 14px; font-weight: 800; color: var(--gov-red);
}
.leaf-head button {
  font-size: 13px; padding: 6px 16px; border-radius: 4px;
  border: 1px solid var(--gov-red); color: var(--gov-red);
  background: #fff; cursor: pointer; font-weight: 700;
}
.leaf-head button:hover { background: var(--gov-red); color: #fff; }
.leaf-list { padding: 6px 20px; max-height: 560px; overflow-y: auto; }
.leaf-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px dashed var(--line);
}
.leaf-item:last-child { border-bottom: 0; }
.leaf-dot {
  width: 14px; height: 14px; flex-shrink: 0; margin-top: 3px;
  border-radius: 50% 0 50% 50%; transform: rotate(-45deg);
  background: linear-gradient(135deg, var(--gov-red), var(--gov-red-dark));
}
.leaf-item b { font-size: 14px; color: var(--text); font-weight: 700; display: block; line-height: 1.5; }
.leaf-item span { font-size: 12.5px; color: var(--text-2); }
.leaf-more { text-align: center; padding: 14px 0 18px; }
.leaf-name-chip {
  display: inline-block; margin: 4px 6px 4px 0; padding: 4px 12px;
  border-radius: 999px; background: var(--gov-red-bg);
  border: 1px solid var(--gov-red-line); color: var(--text);
  font-size: 13px;
}

/* ---------- 动画 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
body.page-enter { animation: page-in .5s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 后台（官方浅色管理台） ---------- */
.admin-shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; background: var(--bg-2); color: var(--text); }
.admin-side { background: var(--bg); border-right: 1px solid var(--line); padding: 24px 0; position: sticky; top: 0; height: 100vh; }
.admin-side .brand { padding: 0 22px 20px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.admin-nav button { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; padding: 11px 22px; color: var(--text-2); font-size: 14.5px; text-align: left; border-left: 3px solid transparent; transition: all .2s; }
.admin-nav button:hover { color: var(--gov-red); background: var(--gov-red-bg); }
.admin-nav button.active { color: var(--gov-red); background: var(--gov-red-bg); border-left-color: var(--gov-red); font-weight: 700; }
.admin-nav button svg { width: 18px; height: 18px; }
.admin-main { padding: 28px 32px 50px; overflow-x: hidden; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.admin-topbar h1 { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--gov-red); }
.admin-user { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-2); }
.admin-user .avatar { width: 36px; height: 36px; border-radius: 6px; background: linear-gradient(135deg, var(--gov-red), var(--gov-red-dark)); display: grid; place-items: center; color: #fff; font-weight: 800; }
.panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-soft); }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-family: var(--font-head); font-size: 17px; font-weight: 800; color: var(--text); margin-bottom: 14px; border-left: 4px solid var(--gov-red); padding-left: 10px; }
.panel-row { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.panel-row label { font-size: 14px; font-weight: 700; color: var(--text); min-width: 96px; }
.panel-row input, .panel-row select, .panel-row textarea { flex: 1; min-width: 200px; padding: 10px 13px; border: 1.5px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text); font-size: 14px; }
.panel-row textarea { resize: vertical; min-height: 84px; }
.panel-actions { display: flex; gap: 10px; margin-top: 16px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 11px 13px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line); }
.table th { color: var(--gov-red); font-weight: 800; font-size: 13px; background: var(--gov-red-bg); }
.table tr:hover td { background: var(--bg-3); }
.table td button { font-size: 12.5px; padding: 5px 13px; border-radius: 4px; border: 1px solid var(--line); background: var(--bg); color: var(--text); margin-right: 6px; }
.table td button:hover { border-color: var(--gov-red); color: var(--gov-red); }
.table td button.danger:hover { border-color: var(--gov-red-dark); color: var(--gov-red-dark); }
.toast { position: fixed; bottom: 30px; right: 30px; padding: 13px 20px; background: linear-gradient(135deg, var(--gov-red), var(--gov-red-dark)); color: #fff; border-radius: 6px; font-weight: 700; box-shadow: 0 6px 18px rgba(176,31,36,.35); transform: translateY(20px); opacity: 0; transition: all .3s; z-index: 999; }
.toast.show { transform: none; opacity: 1; }
.login-shell { position: fixed; inset: 0; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--gov-red) 0%, var(--gov-red-dark) 60%, var(--gov-red-deep) 100%);
  z-index: 1000; }
.login-card { width: min(400px, 92%); padding: 40px 36px; text-align: center; background: var(--bg); border-radius: var(--radius-lg); box-shadow: 0 16px 40px rgba(0,0,0,.2); }
.login-card h2 { font-family: var(--font-head); font-size: 24px; font-weight: 800; margin: 16px 0 6px; color: var(--gov-red); }
.login-card p { font-size: 14px; color: var(--text-2); margin-bottom: 24px; }
.login-card input { width: 100%; margin-bottom: 14px; }
.login-hint { font-size: 12px; color: var(--text-3); margin-top: 14px; }
.login-hint b { color: var(--gov-red); }

/* ---------- 兼容旧类（保证 JS 渲染与旧 HTML 类名可用） ---------- */
.badge-count { display: inline-block; margin-left: auto; padding: 2px 10px; border-radius: 999px; font-size: 12px; background: var(--gov-red-bg); color: var(--gov-red); font-weight: 700; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.empty { padding: 40px 20px; text-align: center; color: var(--text-3); font-size: 14px; }
.preview-tag { font-size: 12px; padding: 4px 10px; border-radius: 4px; background: var(--gov-red-bg); border: 1px solid var(--gov-red-line); color: var(--gov-red); cursor: pointer; }
.preview-tag:hover { background: var(--gov-red); color: #fff; }
.row-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.mini-card { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 16px; text-align: center; }
.mini-card .num { font-family: var(--font-head); font-size: 26px; font-weight: 900; color: var(--gov-red); }
.mini-card .lbl { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.collapsible > .panel-head { cursor: pointer; user-select: none; display: flex; align-items: center; gap: 10px; }
.collapsible > .panel-head::before { content: "▸"; transition: transform .25s; color: var(--gov-red); }
.collapsible.open > .panel-head::before { transform: rotate(90deg); }
.collapsible > .panel-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.collapsible.open > .panel-body { max-height: 2000px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cs-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .section { padding: 48px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .nav-burger { display: flex; }
  .nav-links { position: fixed; top: 68px; left: 0; right: 0; z-index: 99; flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(255,255,255,.98); padding: 14px 20px 20px; border-bottom: 3px solid var(--gov-red);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    transform: translateY(-140%); transition: transform .3s cubic-bezier(.2,.8,.3,1); }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 16px; font-size: 16px; }
  .nav-links a::after { display: none; }
  .nav-cta { margin: 8px 0 0; text-align: center; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-wave svg { height: 36px; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: relative; height: auto; padding: 12px 0; }
  .admin-side .brand { padding: 0 16px 12px; margin-bottom: 6px; }
  .admin-nav { display: flex; flex-wrap: wrap; padding: 0 8px; gap: 4px; }
  .admin-nav button { padding: 8px 14px; border-left: 0; border-bottom: 3px solid transparent; border-radius: 4px; font-size: 13px; }
  .admin-nav button.active { border-left: 0; border-bottom-color: var(--gov-red); }
  .admin-main { padding: 20px 16px 40px; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .cs-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .btn { padding: 11px 22px; }
  .form-card { padding: 24px 18px; }
  .banner { padding: 36px 20px; }
  .panel { padding: 16px; }
  .panel-row { flex-direction: column; align-items: stretch; }
  .panel-row label { min-width: 0; }
  .panel-row input, .panel-row select, .panel-row textarea { min-width: 0; }
  .row-mini { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}