/* ============================================================
   Mini Hedgehog Care — Global Stylesheet (common.css)
   非洲迷你刺猬科普站 · 全站样式
   Brand #247869 | BG #f7f9f9 | Danger #d63031
   Cards radius 12px | Buttons radius 8px
   Mobile-first. Plain CSS, no frameworks.
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --brand: #247869;
  --brand-dark: #1b5c50;
  --brand-deep: #14453c;
  --brand-tint: #e7f2ef;
  --brand-tint-2: #d6e8e3;
  --bg: #f7f9f9;
  --card: #ffffff;
  --ink: #1e2c2a;
  --ink-soft: #33474380;
  --muted: #5c6e6a;
  --line: #e2e9e7;
  --danger: #d63031;
  --danger-dark: #b52223;
  --danger-tint: #fdecec;
  --gold: #c98a19;
  --gold-tint: #fbf2dd;
  --white: #ffffff;

  --r-card: 12px;
  --r-btn: 8px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(18, 46, 41, .06), 0 2px 8px rgba(18, 46, 41, .05);
  --shadow: 0 6px 24px rgba(18, 46, 41, .09);
  --shadow-lg: 0 16px 48px rgba(18, 46, 41, .16);

  --nav-h: 64px;
  --container: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Noto Sans SC", "Microsoft YaHei",
    "Yu Gothic", Meiryo, sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::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.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { color: var(--brand); }
button { font-family: inherit; }
h1, h2, h3, h4 { line-height: 1.3; color: var(--ink); margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
:focus-visible { outline: 3px solid rgba(36, 120, 105, .35); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand-tint-2); }

/* 语言块：静态多语言内容切换 */
[data-lang-block] { display: none !important; }
body.lang-en [data-lang-block="en"],
body.lang-zh [data-lang-block="zh"],
body.lang-ja [data-lang-block="ja"] { display: block !important; }
span[data-lang-block],
a[data-lang-block],
small[data-lang-block],
strong[data-lang-block],
em[data-lang-block],
label[data-lang-block],
option[data-lang-block],
button[data-lang-block] { display: none !important; }
body.lang-en :is(span,a,small,strong,em,label,option,button)[data-lang-block="en"],
body.lang-zh :is(span,a,small,strong,em,label,option,button)[data-lang-block="zh"],
body.lang-ja :is(span,a,small,strong,em,label,option,button)[data-lang-block="ja"] { display: inline-block !important; }
button[data-lang-block] { display: none !important; }
body.lang-en button[data-lang-block="en"],
body.lang-zh button[data-lang-block="zh"],
body.lang-ja button[data-lang-block="ja"] { display: inline-flex !important; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section--tight { padding: 36px 0; }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(22px, 3.2vw, 32px); margin-bottom: 10px; }
.section-head p { color: var(--muted); margin: 0; font-size: 16px; }
.bg-white { background: var(--card); }
.bg-tint { background: var(--brand-tint); }
.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); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.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;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: var(--r-btn);
  border: 1px solid transparent; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: background .18s, color .18s, border-color .18s,
    box-shadow .18s, transform .08s; text-align: center; line-height: 1.3;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--brand-dark); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-tint); color: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #fff; border-color: #c9d6d3; }
.btn-light { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.55); }
.btn-light:hover { background: rgba(255,255,255,.28); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-dark); color: #fff; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 13.5px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled, .btn[aria-disabled="true"] {
  opacity: .55; cursor: not-allowed; pointer-events: none;
}
.btn .ico { width: 18px; height: 18px; flex: none; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 20px;
  height: var(--nav-h); display: flex; align-items: center; gap: 14px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800;
  font-size: 18px; color: var(--brand-deep); white-space: nowrap; }
.brand:hover { color: var(--brand-deep); }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .08em;
  color: var(--muted); line-height: 1.1; }
.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 6px 10px;
  font-size: 14.5px; font-weight: 500; color: #3c4f4b; border-radius: var(--r-btn);
  white-space: nowrap;
}
.main-nav a:hover { background: var(--brand-tint); color: var(--brand-dark); }
.main-nav a.is-active { color: var(--brand-dark); background: var(--brand-tint); font-weight: 700; }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 10px; }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; color: var(--brand-deep);
  transition: background .15s, border-color .15s;
}
.icon-btn:hover { background: var(--brand-tint); border-color: var(--brand-tint-2); }
.icon-btn .ico { width: 21px; height: 21px; }
.fav-count {
  position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 10px; background: var(--danger); color: #fff; font-size: 11px;
  font-weight: 700; display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.fav-count[hidden] { display: none; }

.pro-pill {
  display: inline-flex; align-items: center; gap: 5px; min-height: 38px; padding: 4px 13px;
  border-radius: var(--r-pill); font-size: 13px; font-weight: 700;
  color: #6b4700; background: linear-gradient(135deg, #ffe9b8, #f7cf72);
  border: 1px solid #eec96f; white-space: nowrap;
}
.pro-pill:hover { color: #6b4700; filter: brightness(1.03); }
.pro-pill .ico { width: 15px; height: 15px; }

/* language switch */
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-pill);
  overflow: hidden; background: #fff; }
.lang-switch button {
  min-height: 38px; padding: 0 12px; border: 0; background: transparent; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.lang-switch button.is-active { background: var(--brand); color: #fff; }

/* hamburger */
.nav-toggle { display: none; }

/* mobile drawer */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(16, 35, 31, .45); z-index: 70;
  opacity: 0; pointer-events: none; transition: opacity .22s;
}
.drawer-overlay.is-open { opacity: 1; pointer-events: auto; }
.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 360px); z-index: 71;
  background: #fff; box-shadow: var(--shadow-lg); transform: translateX(105%);
  transition: transform .25s ease; display: flex; flex-direction: column;
}
.mobile-drawer.is-open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line); }
.drawer-nav { padding: 10px 12px; overflow-y: auto; flex: 1; }
.drawer-nav a {
  display: flex; align-items: center; min-height: 48px; padding: 8px 12px;
  border-radius: var(--r-btn); color: var(--ink); font-weight: 600; font-size: 15.5px;
}
.drawer-nav a.is-active { background: var(--brand-tint); color: var(--brand-dark); }
.drawer-foot { padding: 14px 18px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px; }

@media (max-width: 980px) {
  .main-nav, .nav-actions .pro-pill, .nav-actions .lang-switch.desktop { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-deep); color: #cfe0db; margin-top: 64px; }
.footer-no-sale {
  background: var(--danger); color: #fff; text-align: center;
  padding: 12px 20px; font-size: 14.5px; font-weight: 600;
}
.footer-main { max-width: var(--container); margin: 0 auto; padding: 44px 20px 28px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer h3 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer a { color: #b9d2cb; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; font-size: 14.5px; }
.footer-brand { font-size: 17px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 8px; }
.footer-brand svg { width: 26px; height: 26px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom-inner { max-width: var(--container); margin: 0 auto; padding: 16px 20px;
  display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap;
  font-size: 13px; color: #9dbfb7; }
@media (max-width: 860px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 26px; }
}
@media (max-width: 520px) {
  .footer-main { grid-template-columns: 1fr; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; isolation: isolate;
  background: var(--brand-deep) center/cover no-repeat;
  border-radius: 0 0 24px 24px; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12,38,33,.72) 0%, rgba(12,38,33,.55) 45%, rgba(12,38,33,.82) 100%);
}
.hero-inner { max-width: var(--container); margin: 0 auto; padding: 104px 20px 112px; }
.hero h1 { color: #fff; font-size: clamp(28px, 5vw, 48px); max-width: 15em; margin-bottom: 16px; }
.hero p.lead { font-size: clamp(16px, 2.2vw, 19px); max-width: 38em; color: #e7f2ef; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero--page { min-height: 0; }
.hero--page .hero-inner { padding: 56px 20px 60px; }
.hero--page h1 { font-size: clamp(24px, 4vw, 36px); margin-bottom: 10px; }
.breadcrumb { font-size: 13.5px; color: rgba(255,255,255,.85); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb a { color: rgba(255,255,255,.92); }
.breadcrumb .sep { opacity: .6; }
.breadcrumb.on-light { color: var(--muted); margin-bottom: 0; }
.breadcrumb.on-light a { color: var(--brand-dark); }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); padding: 24px;
}
.card h3 { font-size: 18px; }
.card-link { display: block; color: inherit; height: 100%;
  transition: transform .18s, box-shadow .18s; }
.card-link:hover { color: inherit; transform: translateY(-3px); box-shadow: var(--shadow); }

/* photo background card */
.photo-card {
  position: relative; border-radius: var(--r-card); overflow: hidden; min-height: 220px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: #214e46 center/cover no-repeat; color: #fff;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s; isolation: isolate;
}
.photo-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,30,27,.05) 30%, rgba(10,30,27,.82) 100%);
}
.photo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: #fff; }
.photo-card .pc-body { position: relative; padding: 18px; }
.photo-card .pc-title { color: #fff; font-size: 18px; margin-bottom: 5px; }
.photo-card .pc-desc { color: rgba(255,255,255,.88); font-size: 13.5px; line-height: 1.55; margin: 0; }
.photo-card .pc-meta { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.photo-card--tall { min-height: 300px; }
.photo-card--sm { min-height: 170px; }

/* image-top card */
.img-card {
  background: var(--card); border-radius: var(--r-card); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.img-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.img-card .ic-media { aspect-ratio: 16/9; background: #dce8e5 center/cover no-repeat; position: relative; }
.img-card .ic-media.is-square { aspect-ratio: 4/3; }
.img-card .ic-media.is-portrait { aspect-ratio: 3/4; }
.img-card .ic-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.img-card .ic-title { font-size: 17px; margin: 0; }
.img-card .ic-desc { color: var(--muted); font-size: 14px; margin: 0; flex: 1; }
.img-card .ic-foot { display: flex; align-items: center; gap: 10px; margin-top: 6px; }

/* favorite star button (shared) */
.fav-btn {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.9); color: #7a8a87;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.18); transition: transform .15s, color .15s, background .15s;
}
.fav-btn:hover { transform: scale(1.08); }
.fav-btn .ico { width: 20px; height: 20px; }
.fav-btn.is-active { color: var(--gold); }
.fav-btn.is-active .star-filled { display: block; }
.fav-btn.is-active .star-empty { display: none; }
.star-filled { display: none; }

/* badges & chips */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px;
  border-radius: var(--r-pill); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.badge-brand { background: var(--brand-tint); color: var(--brand-dark); }
.badge-gold { background: var(--gold-tint); color: #8a5c00; }
.badge-danger { background: var(--danger-tint); color: var(--danger-dark); }
.badge-muted { background: #eef2f1; color: var(--muted); }
.badge-outline { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.6); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; min-height: 38px; padding: 5px 15px;
  border-radius: var(--r-pill); border: 1px solid var(--line); background: #fff;
  font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer;
}
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--r-card);
  font-size: 15px; margin: 0 0 18px; border: 1px solid transparent; }
.alert .ico { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.alert p:last-child { margin-bottom: 0; }
.alert-note { background: var(--brand-tint); border-color: var(--brand-tint-2); color: #234e46; }
.alert-tip { background: var(--gold-tint); border-color: #eedaa6; color: #664800; }
.alert-warning { background: var(--danger-tint); border-color: #f3c4c4; color: #7f1d1e; }
.alert-warning strong { color: var(--danger-dark); }
.alert-banner { border-radius: var(--r-card); padding: 22px 24px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.form-grid .span-2 { grid-column: span 2; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 700; color: #344945; }
.field .hint { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.input, select.input, textarea.input {
  width: 100%; min-height: 44px; padding: 9px 13px; font: inherit; font-size: 15px;
  color: var(--ink); background: #fff; border: 1.5px solid #d3ddda;
  border-radius: var(--r-btn); transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 92px; resize: vertical; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(36,120,105,.16); }
.input.is-invalid { border-color: var(--danger); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.seg { display: inline-flex; background: #eef2f1; border-radius: var(--r-pill); padding: 3px; gap: 2px; }
.seg button { min-height: 38px; padding: 4px 16px; border: 0; border-radius: var(--r-pill);
  background: transparent; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; }
.seg button.is-active { background: #fff; color: var(--brand-dark); box-shadow: var(--shadow-sm); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 480px; }
table.data th, table.data td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
table.data th { background: #f1f6f5; font-size: 13px; text-transform: uppercase;
  letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
.row-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #f6e8e8;
  color: var(--danger); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.row-btn:hover { background: var(--danger-tint); }
.row-btn .ico { width: 17px; height: 17px; }

/* ---------- Tool dashboard ---------- */
.tool-layout { display: grid; grid-template-columns: 380px 1fr; gap: 22px; align-items: start; }
.tool-layout--wide { grid-template-columns: 440px 1fr; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow-sm); padding: 22px; }
.panel + .panel { margin-top: 20px; }
.panel-title { display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 16px; }
.panel-title h2, .panel-title h3 { margin: 0; font-size: 17.5px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 14px 16px; box-shadow: var(--shadow-sm); }
.stat .stat-label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stat .stat-value { font-size: 22px; font-weight: 800; color: var(--brand-deep);
  font-variant-numeric: tabular-nums; line-height: 1.2; margin-top: 2px; }
.stat .stat-value small { font-size: 13px; font-weight: 600; color: var(--muted); }
.stat.is-warn .stat-value { color: var(--danger); }
.chart-wrap { position: relative; width: 100%; }
.chart-wrap canvas { width: 100%; height: auto; display: block; }
.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted);
  margin-top: 8px; }
.chart-legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend .sw { width: 14px; height: 4px; border-radius: 2px; display: inline-block; }
.pet-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.pet-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 4px 8px 4px 15px;
  border-radius: var(--r-pill); border: 1.5px solid var(--line); background: #fff; cursor: pointer;
  font-weight: 700; font-size: 14px; color: var(--muted); }
.pet-tab.is-active { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-dark); }
.pet-tab .x { width: 26px; height: 26px; border-radius: 50%; border: 0; background: transparent;
  color: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pet-tab .x:hover { background: rgba(0,0,0,.07); }
.pet-tab.add { border-style: dashed; }
.empty-state { text-align: center; padding: 42px 20px; color: var(--muted); }
.empty-state .ico { width: 44px; height: 44px; margin: 0 auto 12px; opacity: .55; }
.empty-state p { margin-bottom: 14px; }
@media (max-width: 900px) {
  .tool-layout, .tool-layout--wide { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
}

/* ---------- Member banner ---------- */
.member-banner {
  position: relative; overflow: hidden; border-radius: var(--r-card);
  background: linear-gradient(120deg, #1b5c50, #247869 55%, #2f927f);
  color: #fff; padding: 30px 32px; display: flex; align-items: center; gap: 24px;
  flex-wrap: wrap; justify-content: space-between;
}
.member-banner::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px;
  border-radius: 50%; background: rgba(255,255,255,.08);
}
.member-banner h3 { color: #fff; font-size: 21px; margin-bottom: 6px; }
.member-banner p { color: rgba(255,255,255,.88); margin: 0; max-width: 46em; }
.member-banner .mb-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- Favorites drawer & FABs ---------- */
.fab-stack { position: fixed; right: 18px; bottom: 18px; z-index: 55;
  display: flex; flex-direction: column; gap: 12px; }
.fab {
  width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); transition: transform .15s, background .15s;
}
.fab:active { transform: scale(.94); }
.fab .ico { width: 24px; height: 24px; }
.fab-top { background: #fff; color: var(--brand-dark); border: 1px solid var(--line);
  opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .2s, transform .2s; }
.fab-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.fab-fav { background: var(--brand); color: #fff; }
.fab-fav.is-active { background: var(--gold); }

.fav-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(90vw, 390px); z-index: 80;
  background: var(--bg); box-shadow: var(--shadow-lg); transform: translateX(105%);
  transition: transform .25s ease; display: flex; flex-direction: column;
}
.fav-drawer.is-open { transform: translateX(0); }
.fav-drawer-head { padding: 18px 20px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; }
.fav-drawer-head h3 { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.fav-list { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.fav-item { display: flex; gap: 10px; align-items: center; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px 14px; }
.fav-item .fi-body { flex: 1; min-width: 0; }
.fav-item .fi-title { font-weight: 700; font-size: 14.5px; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.fav-item .fi-type { font-size: 12px; color: var(--muted); }
.fav-item .fi-actions { display: flex; gap: 4px; }
.mini-icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: #f1f5f4; color: var(--muted); display: inline-flex; align-items: center;
  justify-content: center; }
.mini-icon-btn:hover { background: var(--brand-tint); color: var(--brand-dark); }
.mini-icon-btn.danger:hover { background: var(--danger-tint); color: var(--danger); }
.mini-icon-btn .ico { width: 17px; height: 17px; }
.fav-clear { width: 100%; justify-content: center; }

/* toast */
.toast-wrap { position: fixed; left: 50%; bottom: 86px; transform: translateX(-50%);
  z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none; width: min(92vw, 420px); }
.toast { background: var(--brand-deep); color: #fff; padding: 12px 20px;
  border-radius: var(--r-pill); font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow); opacity: 0; transform: translateY(10px);
  transition: opacity .2s, transform .2s; text-align: center; }
.toast.is-show { opacity: 1; transform: none; }
.toast.toast-warn { background: var(--danger-dark); }

/* ---------- Ad slot placeholder ---------- */
.ad-slot { margin: 28px auto; max-width: 760px; min-height: 110px;
  border: 1.5px dashed #c4d2ce; border-radius: var(--r-card);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: #93a5a1; background: rgba(255,255,255,.6); font-size: 12.5px; }
.ad-slot strong { font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 700; color: #a7b7b3; }

/* ---------- Article / prose ---------- */
.prose { font-size: 16.5px; line-height: 1.85; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(21px, 3vw, 26px); margin: 1.6em 0 .55em;
  padding-bottom: .35em; border-bottom: 2px solid var(--brand-tint-2); }
.prose h3 { font-size: 19px; margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose li { margin-bottom: .5em; }
.prose img { border-radius: var(--r-card); margin: 1.4em 0; box-shadow: var(--shadow-sm); }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--brand);
  background: var(--brand-tint); border-radius: 0 var(--r-card) var(--r-card) 0; color: #264d45; }
.prose table { font-size: 14.5px; }
.article-cover { aspect-ratio: 21/9; background: #dce8e5 center/cover no-repeat;
  border-radius: var(--r-card); margin: 0 0 26px; box-shadow: var(--shadow-sm); }
.article-meta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 34px; align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 18px); background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px 20px; font-size: 14px; }
.toc h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc a { display: block; padding: 5px 0; color: var(--muted); }
.toc a:hover { color: var(--brand-dark); }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } .toc { display: none; } }

.pager { display: flex; justify-content: space-between; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.pager a { flex: 1 1 280px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 14px 18px; color: var(--ink); box-shadow: var(--shadow-sm); }
.pager a:hover { border-color: var(--brand-tint-2); color: var(--ink); }
.pager .pg-dir { font-size: 12.5px; color: var(--muted); display: block; }
.pager .pg-title { font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 4px 20px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.faq-item summary { min-height: 56px; display: flex; align-items: center; cursor: pointer;
  font-weight: 700; font-size: 16px; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; margin-left: auto; font-size: 22px; color: var(--brand);
  font-weight: 400; padding-left: 14px; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-a { padding: 0 0 18px; color: #3c4f4b; }

/* ---------- Content blocks ---------- */
.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.kv { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 16px 18px; box-shadow: var(--shadow-sm); }
.kv .k { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); font-weight: 700; }
.kv .v { font-size: 17px; font-weight: 800; color: var(--brand-deep); margin-top: 3px; }
.section-divider { height: 1px; background: var(--line); margin: 0; border: 0; }

.anchor-nav { position: sticky; top: var(--nav-h); z-index: 40; background: rgba(247,249,249,.95);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); padding: 10px 0; }
.anchor-nav .container { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.anchor-nav .container::-webkit-scrollbar { display: none; }
.anchor-nav a { white-space: nowrap; font-size: 13.5px; font-weight: 600; color: var(--muted);
  padding: 6px 13px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); }
.anchor-nav a:hover { color: var(--brand-dark); border-color: var(--brand-tint-2); }

.legal-body { max-width: 820px; margin: 0 auto; }
.legal-toc { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px 22px; }
.legal-body h2 { margin-top: 2em; scroll-margin-top: 90px; }
.legal-update { color: var(--muted); font-size: 14px; }

/* contact */
.contact-card { text-align: center; padding: 40px 28px; }
.contact-email { font-size: clamp(18px, 3.4vw, 26px); font-weight: 800; color: var(--brand-dark);
  display: inline-flex; align-items: center; gap: 10px; word-break: break-all; }
.contact-scenarios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px) { .contact-scenarios { grid-template-columns: 1fr; } }

/* 404 */
.notfound { text-align: center; padding: 90px 20px 110px; }
.notfound .nf-art { width: min(360px, 78vw); aspect-ratio: 1; margin: 0 auto 26px;
  background: #dce8e5 center/cover no-repeat; border-radius: 28px; box-shadow: var(--shadow); }
.notfound h1 { font-size: clamp(40px, 10vw, 84px); color: var(--brand); margin-bottom: 4px; }

/* utilities for spacing inside sections */
.stack-sm > * + * { margin-top: 10px; }
.stack > * + * { margin-top: 16px; }

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 42px 0; }
  .hero-inner { padding: 72px 20px 80px; }
  .card { padding: 19px; }
  .member-banner { padding: 24px; }
  .fab-stack { right: 14px; bottom: 14px; gap: 10px; }
  .fab { width: 50px; height: 50px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ============================================================
   Assessor tools shared — 20 个问卷式评估工具共享结果组件
   仅使用既有设计令牌（#247869 / #f7f9f9 / #d63031 / 12·8 圆角）
   ============================================================ */
.assess-layout { display: grid; grid-template-columns: 400px 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .assess-layout { grid-template-columns: 1fr; } }
.quiz-hint { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.field fieldset { border: 0; margin: 0; padding: 0; }
.opt-row { display: grid; gap: 8px; }
.opt-pick { display: flex; gap: 9px; align-items: flex-start; padding: 10px 13px; border: 1px solid var(--line);
  border-radius: var(--r-btn); background: #fff; font-size: 14.5px; font-weight: 400; cursor: pointer; }
.opt-pick:hover { border-color: var(--brand-tint-2); background: var(--brand-tint); }
.opt-pick input { margin-top: 4px; accent-color: var(--brand); flex: none; }
.opt-pick.is-active { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-deep); font-weight: 600; }

/* 大号风险结果卡（颜色 + 图标 + 文字三重编码） */
.risk-head { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r-card);
  border: 1px solid var(--line); background: #fff; margin-bottom: 16px; }
.risk-head .rh-ico { width: 46px; height: 46px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.risk-head .rh-ico .ico { width: 26px; height: 26px; }
.risk-head h3 { margin: 0 0 2px; font-size: 21px; }
.risk-head p { margin: 0; font-size: 14px; color: var(--muted); }
.risk-head.is-high { background: var(--danger-tint); border-color: #f3c4c4; }
.risk-head.is-high .rh-ico { background: var(--danger); color: #fff; }
.risk-head.is-high h3 { color: var(--danger-dark); }
.risk-head.is-warn { background: var(--gold-tint); border-color: #eedaa6; }
.risk-head.is-warn .rh-ico { background: var(--gold); color: #fff; }
.risk-head.is-warn h3 { color: #8a5c00; }
.risk-head.is-low { background: var(--brand-tint); border-color: var(--brand-tint-2); }
.risk-head.is-low .rh-ico { background: var(--brand); color: #fff; }
.risk-head.is-low h3 { color: var(--brand-deep); }

/* 分项结果 */
.finding-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.finding { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; font-size: 14.5px; }
.finding .f-ico { flex: none; width: 22px; height: 22px; border-radius: 50%; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; }
.finding .f-ico .ico { width: 13px; height: 13px; }
.finding.f-good { background: var(--brand-tint); border-color: var(--brand-tint-2); }
.finding.f-good .f-ico { background: var(--brand); }
.finding.f-warn { background: var(--gold-tint); border-color: #eedaa6; }
.finding.f-warn .f-ico { background: var(--gold); }
.finding.f-bad { background: var(--danger-tint); border-color: #f3c4c4; }
.finding.f-bad .f-ico { background: var(--danger); }

/* 行动清单 */
.action-list { list-style: none; padding: 0; margin: 0; counter-reset: act; display: flex; flex-direction: column; gap: 10px; }
.action-list > li { position: relative; padding: 12px 14px 12px 46px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; font-size: 14.5px; margin: 0; }
.action-list > li::before { counter-increment: act; content: counter(act); position: absolute; left: 12px; top: 12px;
  width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; }
.action-list b, .action-list strong { color: var(--brand-deep); }
.action-list.checks { counter-reset: none; }
.action-list.checks > li { padding-left: 42px; }
.action-list.checks > li::before { content: "\2713"; background: var(--brand-tint); color: var(--brand-dark); border: 1px solid var(--brand-tint-2); }

/* 急诊红线框 */
.redline-box { border-radius: var(--r-card); border: 1px solid #f3c4c4; background: var(--danger-tint); padding: 16px 18px; margin-top: 16px; }
.redline-box h4 { color: var(--danger-dark); margin: 0 0 8px; font-size: 15.5px; display: flex; gap: 8px; align-items: center; }
.redline-box h4 .ico { width: 20px; height: 20px; color: var(--danger); flex: none; }
.redline-box ul { margin: 0; padding-left: 1.1em; color: #7f1d1e; font-size: 14px; }
.redline-box li { margin-bottom: 5px; }

/* 相关工具 */
.related-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.related-row a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--brand-tint-2); color: var(--brand-dark); font-size: 13.5px; font-weight: 600; }
.related-row a:hover { background: var(--brand-tint); }

/* 阶段时间线（#11/#15/#17 进度类） */
.step-track { list-style: none; padding: 0; margin: 0; position: relative; display: flex; flex-direction: column; }
.step-track::before { content: ""; position: absolute; left: 15px; top: 10px; bottom: 10px; width: 2px; background: var(--brand-tint-2); }
.step-item { position: relative; padding: 0 0 18px 44px; }
.step-item:last-child { padding-bottom: 0; }
.step-item .st-dot { position: absolute; left: 0; top: 2px; width: 32px; height: 32px; border-radius: 50%;
  background: #fff; border: 2px solid var(--brand-tint-2); color: var(--brand); font-weight: 800; font-size: 13.5px;
  display: flex; align-items: center; justify-content: center; z-index: 1; }
.step-item.is-done .st-dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.step-item.is-current .st-dot { background: var(--gold); border-color: var(--gold); color: #fff; }
.step-item h4 { margin: 2px 0 4px; font-size: 15.5px; }
.step-item p { margin: 0; font-size: 14px; color: var(--muted); }
.step-item .st-tasks { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.step-item .st-tasks label { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; font-weight: 400;
  color: var(--ink); cursor: pointer; margin: 0; }
.step-item .st-tasks input { margin-top: 4px; accent-color: var(--brand); }

/* 结果区小统计 */
.result-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.result-stats .stat { margin: 0; }
@media (max-width: 560px) { .result-stats { grid-template-columns: 1fr 1fr; } }

/* Print */
@media print {
  .site-header, .fab-stack, .fav-drawer, .ad-slot, .member-banner, .anchor-nav { display: none !important; }
  body { background: #fff; }
  .card, .panel, .img-card, .photo-card { box-shadow: none; break-inside: avoid; }
}
