/* ==========================================================================
   未成年人保护资源平台 — 设计系统
   定位：资源中转站 · 无登录 · 无个人信息采集
   ========================================================================== */

:root {
  /* 品牌色：暖橙（框架）· 砖红（功能）· 深蓝（原则/危机） */
  --c-brand: #d9782f;
  --c-brand-dark: #b45f1f;
  --c-brand-soft: #fdf1e6;
  --c-accent: #b0483a;
  --c-accent-soft: #fbeeeb;
  --c-navy: #23415f;
  --c-navy-deep: #182e45;
  --c-navy-soft: #eef3f8;

  /* 语义色 */
  --c-safe: #2f7d5d;
  --c-safe-soft: #eaf5ef;
  --c-warn: #a8752a;
  --c-warn-soft: #fdf6e7;
  --c-emergency: #c0392b;

  /* 中性 */
  --c-bg: #fbf8f4;
  --c-surface: #ffffff;
  --c-line: #e8e1d7;
  --c-text: #2b2926;
  --c-text-2: #5d5852;
  --c-text-3: #8a8279;

  /* 排版 */
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  --font-num: "SF Mono", "JetBrains Mono", ui-monospace, monospace;

  /* 尺寸 */
  --wrap: 1120px;
  --wrap-narrow: 780px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(43, 41, 38, 0.05), 0 2px 8px rgba(43, 41, 38, 0.04);
  --shadow-md: 0 2px 6px rgba(43, 41, 38, 0.06), 0 12px 32px rgba(43, 41, 38, 0.07);
  --shadow-lg: 0 4px 12px rgba(43, 41, 38, 0.08), 0 24px 56px rgba(43, 41, 38, 0.1);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 细纹理背景，避免大面纯色单调 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle at 12% 8%, rgba(217, 120, 47, 0.06), transparent 42%),
    radial-gradient(circle at 88% 2%, rgba(35, 65, 95, 0.05), transparent 38%);
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p { margin: 0; }

a {
  color: var(--c-brand-dark);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
a:hover { color: var(--c-brand); }

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 3px solid rgba(217, 120, 47, 0.5);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 无障碍：跳至主内容 */
.skip-link {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  z-index: 200;
  padding: 10px 20px;
  background: var(--c-navy);
  color: #fff;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

/* ==========================================================================
   顶部导航
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 244, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--c-line);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-text);
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand:hover { color: var(--c-text); }

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--c-brand), #eb9c56);
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(217, 120, 47, 0.32);
}
.brand-mark svg { width: 17px; height: 17px; }

.brand-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--c-text-3);
  letter-spacing: 0.04em;
  display: block;
  margin-top: -3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 8px 13px;
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--c-text-2);
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.nav-link:hover { background: #f2ece2; color: var(--c-text); }
.nav-link.is-active {
  background: var(--c-brand-soft);
  color: var(--c-brand-dark);
  font-weight: 600;
}

/* 导航分组下拉 */
.nav-group { position: relative; }

.nav-trigger {
  border: none;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-caret { display: inline-flex; }
.nav-caret svg {
  width: 13px;
  height: 13px;
  opacity: 0.55;
  transition: transform 0.2s var(--ease);
}
.nav-group.is-open .nav-trigger { background: #f2ece2; color: var(--c-text); }
.nav-group.is-open .nav-caret svg { transform: rotate(180deg); }
.nav-group.is-active > .nav-trigger { color: var(--c-brand-dark); font-weight: 600; }

.nav-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 248px;
  padding: 7px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  display: none;
  z-index: 110;
}
.nav-group.is-open .nav-menu { display: block; }

.nav-menu-link {
  display: block;
  padding: 9px 13px;
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--c-text-2);
  line-height: 1.5;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.nav-menu-link:hover { background: #f8f3ec; color: var(--c-text); }
.nav-menu-link.is-active {
  background: var(--c-brand-soft);
  color: var(--c-brand-dark);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 0;
  place-items: center;
  color: var(--c-text-2);
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ==========================================================================
   按钮
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  text-align: center;
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease),
    background 0.16s var(--ease), border-color 0.16s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn:active { transform: translateY(1px) scale(0.995); }

.btn-primary {
  background: linear-gradient(180deg, #e28843, var(--c-brand));
  color: #fff;
  box-shadow: 0 2px 10px rgba(217, 120, 47, 0.28);
}
.btn-primary:hover {
  color: #fff;
  box-shadow: 0 4px 18px rgba(217, 120, 47, 0.36);
}

.btn-navy {
  background: var(--c-navy);
  color: #fff;
}
.btn-navy:hover { background: var(--c-navy-deep); color: #fff; }

.btn-ghost {
  background: var(--c-surface);
  color: var(--c-text);
  border-color: var(--c-line);
}
.btn-ghost:hover { border-color: #d7cdbe; background: #fff; color: var(--c-text); }

.btn-danger {
  background: var(--c-emergency);
  color: #fff;
}
.btn-danger:hover { background: #a93226; color: #fff; }

.btn-sm { padding: 8px 15px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* 快速离开（全站常驻，危机页强化） */
.quick-exit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--c-navy);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 2px 10px rgba(24, 46, 69, 0.26);
  transition: background 0.16s var(--ease), transform 0.16s var(--ease);
}
.quick-exit:hover { background: var(--c-navy-deep); transform: translateY(-1px); }
.quick-exit svg { width: 15px; height: 15px; }
.quick-exit kbd {
  font-family: var(--font-num);
  font-size: 10.5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  letter-spacing: 0.03em;
}

/* ==========================================================================
   布局
   ========================================================================== */

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.wrap-narrow {
  max-width: var(--wrap-narrow);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

section { position: relative; z-index: 1; }

.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }

.section-head { max-width: 680px; margin-bottom: 34px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--c-brand-dark);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.center .eyebrow { justify-content: center; }

.section-title {
  font-size: clamp(23px, 3.1vw, 31px);
  letter-spacing: -0.02em;
}
.section-desc {
  margin-top: 12px;
  color: var(--c-text-2);
  font-size: 15.5px;
}

/* 页面头部（内页） */
.page-hero {
  padding: 52px 0 40px;
  border-bottom: 1px solid var(--c-line);
  background: var(--c-surface);
}
.page-hero h1 {
  font-size: clamp(26px, 3.6vw, 36px);
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.page-hero .lede {
  font-size: 16px;
  color: var(--c-text-2);
  max-width: 680px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--c-text-3);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--c-text-3); }
.breadcrumb a:hover { color: var(--c-brand-dark); }
.breadcrumb span[aria-current] { color: var(--c-text-2); }

/* ==========================================================================
   卡片 / 网格
   ========================================================================== */

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

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    border-color 0.22s var(--ease);
}
.card-pad-lg { padding: 32px; }

.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #ddd2c2;
}

.card h3 { font-size: 17.5px; margin-bottom: 9px; }
.card p { color: var(--c-text-2); font-size: 14.8px; }

.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: var(--c-brand-soft);
  color: var(--c-brand-dark);
}
.icon-badge svg { width: 22px; height: 22px; }
.icon-badge.navy { background: var(--c-navy-soft); color: var(--c-navy); }
.icon-badge.accent { background: var(--c-accent-soft); color: var(--c-accent); }
.icon-badge.safe { background: var(--c-safe-soft); color: var(--c-safe); }

/* 角色入口卡 */
.role-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease);
}
.role-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--role-color, var(--c-brand));
  opacity: 0.9;
}
.role-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.role-card[data-role="teen"] { --role-color: #e09a4c; --role-soft: #fdf3e8; }
.role-card[data-role="parent"] { --role-color: #b0483a; --role-soft: #fbeeeb; }
.role-card[data-role="reporter"] { --role-color: #23415f; --role-soft: #edf2f8; }

.role-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--role-soft, var(--c-brand-soft));
  color: var(--role-color, var(--c-brand-dark));
  margin-bottom: 16px;
}
.role-card h3 { font-size: 20px; margin-bottom: 8px; }
.role-card > p { color: var(--c-text-2); font-size: 14.5px; margin-bottom: 20px; }

.role-links { margin-top: auto; display: grid; gap: 2px; }
.role-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--c-text);
  border-bottom: 1px dashed var(--c-line);
}
.role-link:last-child { border-bottom: none; }
.role-link svg {
  width: 15px;
  height: 15px;
  color: var(--c-text-3);
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}
.role-link:hover { color: var(--role-color, var(--c-brand-dark)); }
.role-link:hover svg { transform: translateX(3px); color: var(--role-color); }

/* ==========================================================================
   首页 Hero
   ========================================================================== */

.hero {
  padding: 72px 0 60px;
  overflow: hidden;
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-2);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-safe);
  box-shadow: 0 0 0 3px rgba(47, 125, 93, 0.16);
}

.hero h1 {
  font-size: clamp(30px, 4.6vw, 47px);
  line-height: 1.24;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(180deg, transparent 62%, rgba(224, 154, 76, 0.42) 62%);
  padding: 0 2px;
}
.hero-desc {
  font-size: 16.5px;
  color: var(--c-text-2);
  max-width: 540px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
}
.hero-fact { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--c-text-2); }
.hero-fact svg { width: 16px; height: 16px; color: var(--c-safe); flex-shrink: 0; }

/* Hero 右侧视觉：安全网络示意 */
.hero-visual {
  position: relative;
  border-radius: 26px;
  padding: 28px;
  background: linear-gradient(165deg, #fff6ec 0%, #fde9d6 55%, #f6dfc9 100%);
  border: 1px solid #f0dcc4;
  box-shadow: var(--shadow-lg);
}
.hero-visual-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-brand-dark);
  opacity: 0.8;
  margin-bottom: 16px;
}
.chain { display: grid; gap: 10px; }
.chain-item {
  display: flex;
  align-items: center;
  gap: 13px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 13px;
  padding: 13px 15px;
  box-shadow: 0 2px 10px rgba(180, 95, 31, 0.08);
}
.chain-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--font-num);
  font-size: 12.5px;
  font-weight: 700;
  background: var(--c-brand-soft);
  color: var(--c-brand-dark);
  flex-shrink: 0;
}
.chain-text { font-size: 14px; font-weight: 600; color: var(--c-text); }
.chain-text small {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--c-text-3);
  line-height: 1.5;
  margin-top: 1px;
}
.chain-arrow {
  text-align: center;
  color: #dca86f;
  font-size: 11px;
  line-height: 1;
  margin: -4px 0 -4px 12px;
}

/* ==========================================================================
   内容组件
   ========================================================================== */

/* 提示条 */
.callout {
  display: flex;
  gap: 14px;
  padding: 18px 22px;
  border-radius: var(--r-md);
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  font-size: 14.8px;
  color: var(--c-text-2);
}
.callout strong { color: var(--c-text); }
.callout-icon { flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; }
.callout.info { background: var(--c-navy-soft); border-color: #d8e3ef; }
.callout.info .callout-icon { color: var(--c-navy); }
.callout.warn { background: var(--c-warn-soft); border-color: #f0e2c4; }
.callout.warn .callout-icon { color: var(--c-warn); }
.callout.safe { background: var(--c-safe-soft); border-color: #d2e8db; }
.callout.safe .callout-icon { color: var(--c-safe); }
.callout.danger { background: var(--c-accent-soft); border-color: #f0d8d2; }
.callout.danger .callout-icon { color: var(--c-accent); }

/* 步骤时间线 */
.steps { display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding-bottom: 26px;
  position: relative;
}
.step:last-child { padding-bottom: 0; }
.step::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--c-line), rgba(232, 225, 215, 0.2));
}
.step:last-child::before { display: none; }
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-family: var(--font-num);
  font-size: 16px;
  font-weight: 700;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  color: var(--c-brand-dark);
  box-shadow: var(--shadow-sm);
  z-index: 1;
}
.step-body { padding-top: 6px; }
.step-body h4 { font-size: 16.5px; margin-bottom: 6px; }
.step-body p { font-size: 14.8px; color: var(--c-text-2); }
.step-body .mini-list { margin-top: 9px; }

/* 列表 */
.mini-list { display: grid; gap: 7px; }
.mini-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--c-text-2);
  line-height: 1.65;
}
.mini-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-brand);
  opacity: 0.6;
}
.mini-list.check li::before {
  content: "✓";
  width: auto;
  height: auto;
  left: 0;
  top: 0;
  background: none;
  color: var(--c-safe);
  font-weight: 700;
  font-size: 13px;
  border-radius: 0;
  opacity: 1;
}
.mini-list.cross li::before {
  content: "✕";
  width: auto;
  height: auto;
  left: 0;
  top: 0;
  background: none;
  color: var(--c-accent);
  font-weight: 700;
  font-size: 12px;
  border-radius: 0;
  opacity: 1;
}
.mini-list.numbered { counter-reset: n; }
.mini-list.numbered li { counter-increment: n; padding-left: 26px; }
.mini-list.numbered li::before {
  content: counter(n);
  width: 18px;
  height: 18px;
  left: 0;
  top: 3px;
  border-radius: 6px;
  background: var(--c-brand-soft);
  color: var(--c-brand-dark);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  opacity: 1;
}

/* 对照表 */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--c-line);
  background: var(--c-surface);
}
.compare-col { padding: 26px; }
.compare-col:first-child {
  background: var(--c-safe-soft);
  border-right: 1px solid var(--c-line);
}
.compare-col:last-child { background: var(--c-accent-soft); }
.compare-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 15.5px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.compare-col:first-child .compare-head { color: var(--c-safe); }
.compare-col:last-child .compare-head { color: var(--c-accent); }
.compare-head svg { width: 19px; height: 19px; }
.compare-col .mini-list li::before { background: currentColor; opacity: 0.45; }

/* 渠道卡片 */
.channel {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease),
    transform 0.18s var(--ease);
}
.channel:hover {
  border-color: #dccfbc;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.channel-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--c-navy-soft);
  color: var(--c-navy);
  font-weight: 700;
  font-size: 13px;
  font-family: var(--font-num);
}
.channel-mark.hot { background: var(--c-accent-soft); color: var(--c-emergency); }
.channel-mark svg { width: 20px; height: 20px; }
.channel-body { flex: 1; min-width: 0; }
.channel-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 3px;
}
.channel-num {
  font-family: var(--font-num);
  font-size: 17px;
  font-weight: 700;
  color: var(--c-emergency);
  letter-spacing: -0.01em;
}
.channel-desc { font-size: 13.5px; color: var(--c-text-2); line-height: 1.6; }
.channel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: #f4efe7;
  color: var(--c-text-2);
  border: 1px solid var(--c-line);
}
.tag.hot { background: var(--c-accent-soft); color: var(--c-accent); border-color: #f0d8d2; }
.tag.safe { background: var(--c-safe-soft); color: var(--c-safe); border-color: #d2e8db; }
.tag.navy { background: var(--c-navy-soft); color: var(--c-navy); border-color: #d8e3ef; }

.channel-call {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--c-emergency);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.channel-call:hover { background: #a93226; color: #fff; }
.channel-call svg { width: 14px; height: 14px; }
.channel-call.ghost {
  background: var(--c-surface);
  color: var(--c-navy);
  border: 1px solid var(--c-line);
}
.channel-call.ghost:hover { background: var(--c-navy-soft); color: var(--c-navy); }

/* 分栏 Tabs */
.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #f2ece2;
  border-radius: 999px;
  margin-bottom: 24px;
}
.tab {
  padding: 8px 20px;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text-2);
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}
.tab[aria-selected="true"] {
  background: var(--c-surface);
  color: var(--c-text);
  box-shadow: var(--shadow-sm);
}
.tab-panel[hidden] { display: none; }

/* 折叠面板 */
details.acc {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.18s var(--ease);
}
details.acc[open] { border-color: #dbcdb8; box-shadow: var(--shadow-sm); }
details.acc summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;
}
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after {
  content: "";
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--c-text-3);
  border-bottom: 2px solid var(--c-text-3);
  transform: rotate(-45deg);
  transition: transform 0.2s var(--ease);
  flex-shrink: 0;
}
details.acc[open] summary::after { transform: rotate(45deg); }
details.acc .acc-body {
  padding: 0 20px 20px;
  font-size: 14.8px;
  color: var(--c-text-2);
  border-top: 1px solid transparent;
}
details.acc .acc-body > * + * { margin-top: 12px; }
details.acc .acc-body strong { color: var(--c-text); }

/* 进度 / 分数 */
.meter {
  height: 6px;
  border-radius: 999px;
  background: #efe8dd;
  overflow: hidden;
}
.meter > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--c-brand), #e9a95f);
  transition: width 0.4s var(--ease);
}

/* 情景测试 */
.quiz {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.quiz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.quiz-count {
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text-3);
  letter-spacing: 0.04em;
}
.quiz-scene {
  font-size: 17px;
  line-height: 1.7;
  font-weight: 600;
  margin-bottom: 22px;
  padding: 20px 22px;
  border-radius: var(--r-md);
  background: var(--c-brand-soft);
  border-left: 3px solid var(--c-brand);
}
.quiz-options { display: grid; gap: 10px; }
.quiz-opt {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  width: 100%;
  text-align: left;
  padding: 15px 18px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--c-line);
  background: var(--c-surface);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text);
  cursor: pointer;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease),
    transform 0.16s var(--ease);
}
.quiz-opt:hover:not(:disabled) {
  border-color: var(--c-brand);
  background: #fffdfa;
  transform: translateX(2px);
}
.quiz-opt:disabled { cursor: default; }
.quiz-opt .opt-key {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  background: #f4efe7;
  color: var(--c-text-2);
  flex-shrink: 0;
  margin-top: 1px;
}
.quiz-opt.is-correct {
  border-color: var(--c-safe);
  background: var(--c-safe-soft);
}
.quiz-opt.is-correct .opt-key { background: var(--c-safe); color: #fff; }
.quiz-opt.is-wrong {
  border-color: #e2b3a9;
  background: var(--c-accent-soft);
}
.quiz-opt.is-wrong .opt-key { background: var(--c-accent); color: #fff; }
.quiz-feedback {
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: var(--r-md);
  background: var(--c-navy-soft);
  border: 1px solid #d8e3ef;
  font-size: 14.8px;
  color: var(--c-text-2);
}
.quiz-feedback strong { color: var(--c-navy); }
.quiz-feedback[hidden] { display: none; }
.quiz-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.quiz-score {
  text-align: center;
  padding: 20px 0 6px;
}
.quiz-score .num {
  font-family: var(--font-num);
  font-size: 54px;
  font-weight: 700;
  line-height: 1;
  color: var(--c-brand-dark);
  letter-spacing: -0.03em;
}
.quiz-score .num small { font-size: 22px; color: var(--c-text-3); font-weight: 600; }
.quiz-score p { margin-top: 14px; color: var(--c-text-2); font-size: 15px; }

/* 自查清单 */
.checklist { display: grid; gap: 2px; }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background 0.15s var(--ease);
  font-size: 14.8px;
  line-height: 1.65;
  color: var(--c-text-2);
}
.check-item:hover { background: #faf6f0; }
.check-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid #cfc4b4;
  border-radius: 6px;
  flex-shrink: 0;
  margin: 2px 0 0;
  cursor: pointer;
  position: relative;
  background: var(--c-surface);
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.check-item input[type="checkbox"]:checked {
  background: var(--c-brand);
  border-color: var(--c-brand);
}
.check-item input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(40deg);
}
.check-item:has(input:checked) { background: #fdf6ee; color: var(--c-text); }
.check-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--r-md);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  margin-top: 18px;
  font-size: 14.5px;
  flex-wrap: wrap;
}
.check-summary .meter { flex: 1; min-width: 120px; }
.check-summary strong { font-family: var(--font-num); color: var(--c-brand-dark); }

/* 危机页专用 */
.crisis-hero {
  background: linear-gradient(160deg, #1d3550 0%, var(--c-navy-deep) 100%);
  color: #fff;
  padding: 60px 0 54px;
  position: relative;
  overflow: hidden;
}
.crisis-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 154, 76, 0.16), transparent 68%);
}
.crisis-hero h1 { color: #fff; margin-bottom: 16px; }
.crisis-hero .lede { color: rgba(255, 255, 255, 0.82); font-size: 16.5px; max-width: 660px; }
.crisis-hero .breadcrumb, .crisis-hero .breadcrumb a { color: rgba(255, 255, 255, 0.6); }
.crisis-hero .breadcrumb a:hover { color: #fff; }
.crisis-hero .breadcrumb span[aria-current] { color: rgba(255, 255, 255, 0.8); }
.crisis-hero .first-step {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 14.5px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}
.crisis-hero .first-step .pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff9e6b;
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 158, 107, 0.5); }
  50% { box-shadow: 0 0 0 7px rgba(255, 158, 107, 0); }
}

.emergency-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.emergency-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 22px;
  border-radius: var(--r-md);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
  color: var(--c-text);
}
.emergency-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--c-text); }
.emergency-btn .num {
  font-family: var(--font-num);
  font-size: 21px;
  font-weight: 700;
  color: var(--c-emergency);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  min-width: 62px;
}
.emergency-btn .label { font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.emergency-btn .label small { display: block; font-size: 12.5px; font-weight: 400; color: var(--c-text-3); }

/* 呼吸安抚 */
.breath {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 34px 24px;
  background: linear-gradient(170deg, #f2f7f4, #e9f2ec);
  border: 1px solid #d6e7dd;
  border-radius: var(--r-lg);
  text-align: center;
}
.breath-circle {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #b8dfcb, #6fb794);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0 0 0 10px rgba(111, 183, 148, 0.12), 0 12px 30px rgba(47, 125, 93, 0.22);
  transition: transform 4s ease-in-out, box-shadow 4s ease-in-out;
}
.breath-circle.in { transform: scale(1.16); }
.breath-hint { font-size: 14px; color: var(--c-text-2); }

/* 安抚语句 */
.kind-words { display: grid; gap: 10px; }
.kind-word {
  padding: 16px 20px;
  border-radius: var(--r-md);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-left: 3px solid #e09a4c;
  font-size: 15px;
  color: var(--c-text);
  line-height: 1.7;
}

/* 素材卡片（图文/动画位） */
.media-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.media-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.media-thumb {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #fdf1e6, #f8e4cf);
  border-bottom: 1px solid var(--c-line);
  color: var(--c-brand);
  position: relative;
}
.media-thumb svg { width: 46px; height: 46px; opacity: 0.55; }
.media-thumb.navy { background: linear-gradient(140deg, #eef3f8, #dfe8f2); color: var(--c-navy); }
.media-thumb.accent { background: linear-gradient(140deg, #fbeeeb, #f7ddd6); color: var(--c-accent); }
.media-thumb .play {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  color: var(--c-brand-dark);
}
.media-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.media-body h3 { font-size: 15.5px; margin-bottom: 6px; }
.media-body p { font-size: 13.8px; color: var(--c-text-2); flex: 1; }
.media-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--c-text-3);
}

/* 法条 */
.law-quote {
  position: relative;
  padding: 26px 30px 26px 34px;
  border-radius: var(--r-md);
  background: var(--c-navy-soft);
  border: 1px solid #d8e3ef;
  font-size: 15px;
  line-height: 1.85;
  color: var(--c-text);
}
.law-quote::before {
  content: "“";
  position: absolute;
  left: 14px;
  top: 6px;
  font-size: 46px;
  line-height: 1;
  color: var(--c-navy);
  opacity: 0.22;
  font-family: Georgia, serif;
}
.law-quote .src {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--c-text-3);
  text-align: right;
}

/* 复制模板 */
.template-box {
  position: relative;
  background: #faf7f2;
  border: 1px dashed #d9cdbd;
  border-radius: var(--r-md);
  padding: 22px 24px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--c-text-2);
  white-space: pre-wrap;
  word-break: break-word;
}
.template-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

/* 分节标题（页面内） */
.block-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 42px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-line);
  flex-wrap: wrap;
}
.block-head h2 { font-size: 20px; letter-spacing: -0.02em; }
.block-head .hint { font-size: 13px; color: var(--c-text-3); margin-left: auto; }
.block-head:first-child { margin-top: 0; }

/* 上/下一篇 */
.pager {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--c-line);
  flex-wrap: wrap;
}
.pager a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  min-width: 200px;
  color: var(--c-text);
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.pager a:hover { border-color: #dccfbc; transform: translateY(-2px); color: var(--c-text); }
.pager .dir { font-size: 12px; color: var(--c-text-3); letter-spacing: 0.04em; }
.pager .ttl { font-size: 14.5px; font-weight: 600; }
.pager .next { margin-left: auto; text-align: right; }

/* 页脚 */
.site-footer {
  margin-top: 72px;
  background: var(--c-surface);
  border-top: 1px solid var(--c-line);
  padding: 44px 0 34px;
  position: relative;
  z-index: 1;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--c-line);
}
.footer-brand p {
  font-size: 13.5px;
  color: var(--c-text-3);
  margin-top: 12px;
  max-width: 300px;
  line-height: 1.7;
}
.footer-col h4 {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-3);
  margin-bottom: 14px;
  font-weight: 700;
}
.footer-col li { margin-bottom: 9px; }
.footer-col a { font-size: 14px; color: var(--c-text-2); }
.footer-col a:hover { color: var(--c-brand-dark); }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--c-text-3);
  line-height: 1.7;
}
.footer-bottom strong { color: var(--c-text-2); font-weight: 600; }

/* 页脚常驻紧急条 */
.footer-emergency {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: var(--r-md);
  background: var(--c-accent-soft);
  border: 1px solid #f0d8d2;
  font-size: 13.8px;
  color: var(--c-text-2);
  flex-wrap: wrap;
}
.footer-emergency strong { color: var(--c-emergency); font-family: var(--font-num); font-size: 15px; }

/* 屏幕阅读器文本 */
.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;
}

/* ==========================================================================
   响应式
   ========================================================================== */

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 480px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .main-nav {
    position: fixed;
    inset: 66px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 20px;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .nav-toggle { display: grid; }
  .nav-link { padding: 12px 14px; font-size: 15px; }

  /* 移动端：分组平铺，不做浮层 */
  .nav-group .nav-menu {
    display: block;
    position: static;
    min-width: 0;
    padding: 0 0 6px 10px;
    margin-left: 4px;
    border: none;
    border-left: 2px solid var(--c-line);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .nav-menu-link { padding: 10px 12px; font-size: 14.5px; color: var(--c-text-2); }
  .nav-caret { display: none; }
  .nav-group.is-open .nav-trigger { background: transparent; }

  .header-actions .quick-exit span { display: none; }
  .header-actions .quick-exit { padding: 10px 12px; }
  .header-actions .quick-exit kbd { display: none; }
}

@media (max-width: 760px) {
  .section { padding: 46px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .emergency-grid { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .compare-col:first-child { border-right: none; border-bottom: 1px solid var(--c-line); }
  .wrap, .wrap-narrow { padding: 0 18px; }
  .header-inner { padding: 0 18px; height: 60px; }
  .main-nav { inset: 60px 0 auto 0; }
  .hero { padding: 44px 0 40px; }
  .hero-badge { font-size: 12px; }
  .page-hero { padding: 36px 0 30px; }
  .card { padding: 22px; }
  .quiz { padding: 22px; }
  .quiz-scene { font-size: 16px; padding: 16px 18px; }
  .channel { flex-wrap: wrap; }
  .channel-call { width: 100%; justify-content: center; margin-top: 4px; }
  .footer-top { grid-template-columns: 1fr; }
  .step { grid-template-columns: 38px 1fr; gap: 14px; }
  .step-num { width: 36px; height: 36px; font-size: 14px; }
  .step::before { left: 18px; top: 36px; }
  .pager a { min-width: 100%; }
  .pager .next { margin-left: 0; text-align: left; }
  .crisis-hero { padding: 42px 0 38px; }
  .breath-circle { width: 108px; height: 108px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header, .site-footer, .quick-exit, .pager, .nav-toggle { display: none !important; }
  body { background: #fff; }
  .card, .channel { box-shadow: none; }
}
