/* =========================================================
   归途 HOMEWAY — 设计产物共享样式
   温暖且有秩序：可信、耐看、说人话
   ========================================================= */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 主色与功能色 */
  --sunset: #D97742;
  --sunset-dark: #C1652F;
  --sunset-soft: rgba(217, 119, 66, 0.12);
  --ink: #23302A;
  --ink-soft: #3B4A42;
  --ink-muted: #6C7770;
  --ink-faint: #9AA39D;
  --cream: #FBF7F1;
  --cream-2: #F5EFE5;
  --sand: #EFE7DB;
  --sand-2: #E7DCCB;
  --line: #E6DDCE;
  --line-soft: #EFE9DD;

  /* 状态色 */
  --moss: #6E8B62;
  --moss-soft: rgba(110, 139, 98, 0.14);
  --mist: #7C93A8;
  --mist-soft: rgba(124, 147, 168, 0.14);
  --clay: #B5563F;
  --clay-soft: rgba(181, 86, 63, 0.13);

  /* 字体 */
  --font-serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", system-ui, sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  /* 字号 */
  --fs-hero: clamp(38px, 4.6vw, 64px);
  --fs-title: 32px;
  --fs-h2: 23px;
  --fs-h3: 18px;
  --fs-body: 16px;
  --fs-sm: 14px;
  --fs-xs: 13px;

  /* 形状 */
  --r-card: 20px;
  --r-sm: 12px;
  --r-xs: 8px;
  --r-pill: 999px;

  /* 阴影（带绿调） */
  --shadow-card: 0 12px 30px rgba(35, 48, 42, 0.06), 0 2px 6px rgba(35, 48, 42, 0.04);
  --shadow-pop: 0 24px 60px rgba(35, 48, 42, 0.16), 0 4px 12px rgba(35, 48, 42, 0.08);
  --shadow-soft: 0 4px 16px rgba(35, 48, 42, 0.05);

  /* 动效 */
  --t: 180ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* 布局 */
  --wrap: 1240px;
  --wrap-narrow: 960px;
}

/* ---------- 2. 基础重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html { background: var(--cream); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
  letter-spacing: 0;
}

p { margin: 0; }

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

button { font-family: inherit; font-size: inherit; line-height: inherit; color: inherit; cursor: pointer; }

svg { display: block; }

.num, .mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; letter-spacing: -0.01em; }

::selection { background: var(--sunset-soft); }

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

/* ---------- 3. 排版 ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.page-title { font-size: var(--fs-title); }
.section-title { font-size: var(--fs-h2); }
.prose { max-width: 40em; color: var(--ink-soft); }
.lead { font-size: 17px; color: var(--ink-soft); line-height: 1.8; }
.muted { color: var(--ink-muted); }
.strong { color: var(--ink); font-weight: 600; }

/* ---------- 4. 容器 ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 32px; }

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background var(--t) var(--ease), color var(--t) var(--ease),
    border-color var(--t) var(--ease), transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--sunset); color: #fff; box-shadow: 0 8px 20px rgba(217, 119, 66, 0.24); }
.btn-primary:hover { background: var(--sunset-dark); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }

.btn-soft { background: var(--sand); color: var(--ink); }
.btn-soft:hover { background: var(--sand-2); }

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

.btn-danger { background: transparent; color: var(--clay); border-color: var(--clay); }
.btn-danger:hover { background: var(--clay); color: #fff; }

.btn-sm { min-height: 38px; padding: 0 18px; font-size: var(--fs-sm); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

/* ---------- 6. 标签 / 徽标 / 胶囊 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sand);
  color: var(--ink-soft);
  border-radius: var(--r-xs);
  padding: 3px 10px;
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}
.tag-ghost { background: transparent; border: 1px solid var(--line); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.chip:hover { border-color: var(--ink-faint); color: var(--ink); }
.chip.is-active { background: var(--sunset); border-color: var(--sunset); color: #fff; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.5;
}
.badge-adopt { background: #fff; color: var(--sunset-dark); box-shadow: var(--shadow-soft); }

/* ---------- 7. 状态（不只靠颜色） ---------- */
.status { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft); }
.status::before {
  content: "";
  width: 9px; height: 9px; border-radius: 50%;
  background: currentColor; flex: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent);
}
.status--ok { color: var(--moss); }
.status--pending { color: var(--mist); }
.status--reject { color: var(--clay); }
.status--neutral { color: var(--ink-muted); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 700; line-height: 1.5;
}
.pill-ok { background: var(--moss-soft); color: #4e6a44; }
.pill-pending { background: var(--mist-soft); color: #56708a; }
.pill-reject { background: var(--clay-soft); color: var(--clay); }
.pill-neutral { background: var(--sand); color: var(--ink-soft); }

/* ---------- 8. 公众导航 ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-nav__inner { display: flex; align-items: center; gap: 40px; height: 76px; }
.brand { display: inline-flex; align-items: baseline; gap: 8px; background: none; border: 0; padding: 0; color: var(--ink); }
.brand__zh { font-family: var(--font-serif); font-size: 28px; font-weight: 700; letter-spacing: 0.02em; }
.brand__en { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.32em; color: var(--ink-muted); }
.brand--tagline { display: inline-grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 8px; row-gap: 2px; }
.brand--tagline .brand__sub { grid-column: 1 / -1; font-size: 11px; line-height: 1.2; letter-spacing: 0.05em; color: var(--ink-muted); padding-left: 8px; border-left: 2px solid var(--sunset); }
.nav-links { display: flex; align-items: center; gap: 30px; margin-left: 8px; }
.nav-link { background: none; border: 0; padding: 6px 0; color: var(--ink-soft); font-size: var(--fs-sm); font-weight: 600; position: relative; }
.nav-link:hover { color: var(--ink); }
.nav-link.is-active { color: var(--ink); }
.nav-link.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--sunset); border-radius: 2px; }
.site-nav__cta { margin-left: auto; }

/* 品牌标记 */
.mark { width: 34px; height: 34px; border-radius: 10px; background: var(--ink); display: grid; place-items: center; flex: none; }
.mark svg { width: 19px; height: 19px; }

/* ---------- 9. 首页 Hero ---------- */
.hero { padding: 56px 0 72px; }
.hero__grid { display: grid; grid-template-columns: 45% 55%; gap: 40px; align-items: center; }
.hero__title { font-size: var(--fs-hero); line-height: 1.24; margin-bottom: 22px; }
.hero__sub { max-width: 34em; color: var(--ink-soft); }
.hero__actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-card); }
.hero__stat {
  position: absolute; right: 22px; bottom: 22px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 20px; box-shadow: var(--shadow-card); min-width: 176px;
}
.hero__stat .n { font-family: var(--font-mono); font-size: 34px; font-weight: 700; color: var(--sunset-dark); line-height: 1.1; }
.hero__stat .l { font-size: var(--fs-xs); color: var(--ink-muted); }
.hero__stat .t { font-size: var(--fs-xs); color: var(--ink-soft); font-weight: 600; margin-bottom: 2px; }

/* 数据条 */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; margin-top: 64px; }
.stats-strip > div { background: var(--cream); padding: 22px 24px; }
.stats-strip .n { font-family: var(--font-mono); font-size: 30px; font-weight: 700; color: var(--ink); }
.stats-strip .l { font-size: var(--fs-sm); color: var(--ink-muted); }

/* 流程/价值 */
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 22px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px; box-shadow: var(--shadow-soft); }
.feature h3 { font-size: var(--fs-h3); margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: var(--fs-sm); }
.feature .fico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--sand); color: var(--sunset-dark); margin-bottom: 16px; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-head .count { font-family: var(--font-mono); color: var(--ink-muted); font-size: var(--fs-sm); }

/* ---------- 10. 动物档案卡 ---------- */
.acard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.acard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  overflow: hidden; box-shadow: var(--shadow-soft);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
  display: flex; flex-direction: column;
}
.acard:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--sand-2); }
.acard__media { position: relative; }
.acard__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--cream-2); }
.acard__media .badge-adopt { position: absolute; top: 12px; right: 12px; }
.acard__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.acard__name { font-family: var(--font-serif); font-size: 22px; font-weight: 700; }
.acard__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.acard__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; gap: 8px; color: var(--ink-muted); font-size: var(--fs-sm); }
.acard__foot .loc { color: var(--ink-soft); }
.icn { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icn-sm { width: 15px; height: 15px; }
.icn-lg { width: 24px; height: 24px; }

/* 照片兜底 */
.ph { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph--wide { aspect-ratio: 16 / 10; }

/* ---------- 11. 筛选栏 ---------- */
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.filter-bar .chip { min-height: 44px; }

/* ---------- 12. 表单 ---------- */
.field { margin-bottom: 22px; }
.field > label { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.field .hint { font-size: var(--fs-xs); color: var(--ink-muted); margin-top: 6px; }
.req { color: var(--clay); }
.input, .textarea, .select {
  width: 100%; border: 1px solid var(--line); background: #fff;
  border-radius: var(--r-sm); padding: 13px 16px; font-size: var(--fs-body);
  color: var(--ink); font-family: inherit; transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-faint); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--sunset); box-shadow: 0 0 0 3px var(--sunset-soft); }
.textarea { min-height: 150px; resize: vertical; line-height: 1.75; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236C7770' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.counter { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-muted); margin-top: 6px; }
.counter.is-warn { color: var(--clay); }

/* 单选/复选行 */
.opt-row { display: flex; gap: 12px; flex-wrap: wrap; }
.opt {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft); cursor: pointer;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease), color var(--t) var(--ease);
}
.opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: none; transition: border-color var(--t) var(--ease); }
.opt:has(input:checked) { border-color: var(--sunset); background: var(--sunset-soft); color: var(--ink); }
.opt:has(input:checked) .dot { border-color: var(--sunset); background: radial-gradient(circle, var(--sunset) 0 45%, transparent 46%); }
.opt:has(input:focus-visible) { outline: 2px solid var(--sunset); outline-offset: 2px; }

/* ---------- 13. 面板 / 卡片 ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-soft); }
.panel__head { padding: 20px 26px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel__head h3 { font-size: var(--fs-h3); }
.panel__body { padding: 26px; }
.panel__foot { padding: 18px 26px; border-top: 1px solid var(--line-soft); display: flex; gap: 12px; }

/* ---------- 14. 登记向导 ---------- */
.wizard { display: grid; grid-template-columns: 210px 1fr 300px; gap: 28px; align-items: start; }
.steps { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 100px; }
.step { display: flex; align-items: center; gap: 12px; padding: 12px 6px; color: var(--ink-faint); font-weight: 600; font-size: var(--fs-sm); background: none; border: 0; text-align: left; }
.step__no { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: var(--fs-xs); border: 1px solid var(--line); background: #fff; flex: none; }
.step.is-active { color: var(--ink); }
.step.is-active .step__no { background: var(--sunset); border-color: var(--sunset); color: #fff; }
.step.is-done { color: var(--moss); }
.step.is-done .step__no { background: var(--moss-soft); border-color: var(--moss); color: #4e6a44; }
.step-line { width: 1px; height: 14px; background: var(--line); margin-left: 19px; }

.reason-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.reason-card {
  display: flex; align-items: center; gap: 10px;
  padding: 16px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; color: var(--ink-soft); font-size: var(--fs-sm); font-weight: 600; text-align: left;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease), color var(--t) var(--ease);
}
.reason-card .icn { color: var(--ink-muted); }
.reason-card:hover { border-color: var(--ink-faint); }
.reason-card.is-active { border-color: var(--sunset); background: var(--sunset-soft); color: var(--ink); }
.reason-card.is-active .icn { color: var(--sunset-dark); }

/* 上传 */
.uploader {
  border: 1.5px dashed var(--sand-2); border-radius: var(--r-sm); background: var(--cream);
  padding: 34px; text-align: center; cursor: pointer;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.uploader:hover { border-color: var(--sunset); background: var(--sunset-soft); }
.uploader .icn { margin: 0 auto 10px; color: var(--ink-muted); }
.uploader strong { display: block; font-weight: 600; }
.uploader span { font-size: var(--fs-xs); color: var(--ink-muted); }
.upload-thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.upload-thumbs .ph { width: 96px; height: 96px; aspect-ratio: 1; border-radius: var(--r-xs); border: 1px solid var(--line); }

/* 侧边说明 */
.side-note { position: sticky; top: 100px; }
.side-note h3 { font-size: var(--fs-h3); margin-bottom: 10px; }
.side-note ol { margin: 0; padding-left: 20px; color: var(--ink-soft); font-size: var(--fs-sm); line-height: 1.9; }

/* ---------- 15. 时间线 ---------- */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 22px; }
.tl-item::before { content: ""; position: absolute; left: -28px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--cream); border: 2px solid var(--moss); }
.tl-item.is-pending::before { border-color: var(--mist); }
.tl-item.is-alert::before { border-color: var(--clay); }
.tl-date { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-muted); }
.tl-title { font-weight: 600; color: var(--ink); }
.tl-desc { font-size: var(--fs-sm); color: var(--ink-soft); }

/* 健康清单 */
.health-list { list-style: none; margin: 0; padding: 0; }
.health-list li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.health-list li:last-child { border-bottom: 0; }
.health-list .name { flex: 1; color: var(--ink); font-size: var(--fs-sm); font-weight: 600; }
.health-list .val { font-size: var(--fs-sm); color: var(--ink-soft); }

/* ---------- 16. 后台工作壳 ---------- */
.admin { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; background: var(--cream); }
.sidebar { background: var(--ink); color: #D8DED9; padding: 22px 16px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar__brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 22px; }
.sidebar__brand .mark { background: rgba(255,255,255,0.1); }
.sidebar__brand .zh { font-family: var(--font-serif); font-size: 22px; color: #fff; font-weight: 700; }
.sidebar__brand .sub { font-size: 11px; letter-spacing: 0.14em; color: #8A968E; }
.sidebar__brand .tagline { margin-top: 4px; font-size: 10px; line-height: 1.3; letter-spacing: 0.04em; color: #8A968E; padding-left: 8px; border-left: 2px solid var(--sunset); }
.sidenav { display: flex; flex-direction: column; gap: 3px; }
.sidenav__item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: var(--r-sm); border: 0; background: none;
  color: #B9C2BB; font-size: var(--fs-sm); font-weight: 600; text-align: left; position: relative;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.sidenav__item .icn { color: currentColor; }
.sidenav__item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.sidenav__item.is-active { background: rgba(255,255,255,0.09); color: #fff; }
.sidenav__item.is-active::before { content: ""; position: absolute; left: -16px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--sunset); }
.sidebar__foot { margin-top: auto; padding: 14px; border-top: 1px solid rgba(255,255,255,0.08); font-size: var(--fs-xs); color: #8A968E; }

.workspace { padding: 30px 36px 60px; min-width: 0; }
.workspace__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.workspace__head h1 { font-size: 26px; }
.workspace__head .sub { font-size: var(--fs-sm); color: var(--ink-muted); }

/* KPI */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px 24px; box-shadow: var(--shadow-soft); position: relative; }
.kpi__label { font-size: var(--fs-sm); color: var(--ink-muted); }
.kpi__num { font-family: var(--font-mono); font-size: 40px; font-weight: 700; color: var(--ink); line-height: 1.15; margin-top: 6px; }
.kpi__num.accent { color: var(--sunset-dark); }
.kpi__trend { font-size: var(--fs-xs); color: var(--ink-muted); margin-top: 4px; }
.kpi__ico { position: absolute; top: 20px; right: 20px; color: var(--sand-2); }

/* 表格 */
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-soft); }
table.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left; background: var(--sand); color: var(--ink-soft);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.02em;
  padding: 14px 18px; white-space: nowrap;
}
.table td { padding: 16px 18px; border-bottom: 1px solid var(--line-soft); font-size: var(--fs-sm); vertical-align: middle; color: var(--ink-soft); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--t) var(--ease); }
.table tbody tr:hover { background: var(--cream); }
.cell-obj { display: flex; align-items: center; gap: 14px; }
.cell-obj .ph { width: 64px; height: 48px; aspect-ratio: auto; border-radius: var(--r-xs); flex: none; }
.cell-obj .name { font-weight: 700; color: var(--ink); font-size: var(--fs-body); }
.code { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-muted); }
.row-actions { display: flex; gap: 8px; }

/* ---------- 17. 审核三栏 ---------- */
.review { display: grid; grid-template-columns: 300px 1fr 320px; gap: 20px; align-items: start; }
.review__col { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-soft); overflow: hidden; }
.review__head { padding: 16px 20px; border-bottom: 1px solid var(--line-soft); font-size: var(--fs-sm); font-weight: 700; color: var(--ink); }
.review__body { padding: 20px; }
.review__sticky { position: sticky; top: 24px; }
.photo-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.photo-stack .ph:first-child { grid-column: 1 / -1; }
.info-list { display: grid; gap: 12px; }
.info-list dt { font-size: var(--fs-xs); color: var(--ink-muted); }
.info-list dd { margin: 2px 0 0; font-size: var(--fs-sm); color: var(--ink); }
.assist-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; margin-bottom: 12px; }
.assist-card .k { font-size: var(--fs-xs); color: var(--ink-muted); }
.assist-card .v { font-family: var(--font-mono); font-size: 20px; font-weight: 700; color: var(--ink); }
.assist-card .v.ok { color: var(--moss); }
.assist-card .v.warn { color: var(--clay); }

.bar { height: 8px; border-radius: 4px; background: var(--sand); overflow: hidden; margin-top: 8px; }
.bar > i { display: block; height: 100%; background: var(--sunset); }

/* 审核底部动作条 */
.action-bar { display: flex; gap: 12px; justify-content: flex-end; padding-top: 18px; }
.reject-reason { display: flex; flex-direction: column; gap: 10px; }

/* ---------- 18. 步骤/进度 ---------- */
.flow { display: flex; align-items: center; gap: 0; }
.flow__item { display: flex; align-items: center; gap: 10px; color: var(--ink-faint); font-size: var(--fs-sm); font-weight: 600; }
.flow__item.is-active { color: var(--ink); }
.flow__item.is-done { color: var(--moss); }
.flow__no { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--font-mono); font-size: var(--fs-xs); }
.flow__item.is-active .flow__no { background: var(--sunset); border-color: var(--sunset); color: #fff; }
.flow__item.is-done .flow__no { background: var(--moss); border-color: var(--moss); color: #fff; }
.flow__sep { width: 44px; height: 1px; background: var(--line); margin: 0 14px; }

/* ---------- 19. 空态 ---------- */
.empty { text-align: center; padding: 64px 24px; }
.empty svg { margin: 0 auto 18px; }
.empty h3 { font-size: var(--fs-h3); margin-bottom: 8px; }
.empty p { color: var(--ink-muted); font-size: var(--fs-sm); max-width: 30em; margin: 0 auto 20px; }

/* ---------- 20. 提示 / Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 600; box-shadow: var(--shadow-pop);
  opacity: 0; pointer-events: none; transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); z-index: 90;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 21. 弹层 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(35,48,42,0.42); backdrop-filter: blur(2px); display: none; align-items: center; justify-content: center; padding: 24px; z-index: 80; }
.modal-mask.is-open { display: flex; }
.modal { background: var(--cream); border-radius: var(--r-card); box-shadow: var(--shadow-pop); width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; }
.modal__head { padding: 22px 26px; border-bottom: 1px solid var(--line); }
.modal__head h3 { font-size: 20px; }
.modal__body { padding: 26px; }
.modal__foot { padding: 18px 26px; border-top: 1px solid var(--line); display: flex; gap: 12px; justify-content: flex-end; }

/* 抽屉 */
.drawer-mask { position: fixed; inset: 0; background: rgba(35,48,42,0.42); display: none; z-index: 80; }
.drawer-mask.is-open { display: block; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 92vw); background: var(--cream); box-shadow: var(--shadow-pop); transform: translateX(100%); transition: transform 220ms var(--ease); z-index: 81; display: flex; flex-direction: column; }
.drawer.is-open { transform: translateX(0); }
.drawer__head { padding: 22px 26px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.drawer__body { padding: 26px; overflow-y: auto; flex: 1; }
.drawer__foot { padding: 18px 26px; border-top: 1px solid var(--line); display: flex; gap: 12px; justify-content: flex-end; }

/* ---------- 22. 结果页 ---------- */
.result { max-width: 680px; margin: 0 auto; text-align: center; padding: 40px 0 60px; }
.result__icon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 24px; }
.result__icon.ok { background: var(--moss-soft); color: var(--moss); }
.result__icon.pending { background: var(--mist-soft); color: var(--mist); }
.result__icon.reject { background: var(--clay-soft); color: var(--clay); }
.result h1 { font-size: 34px; margin-bottom: 14px; }
.result .lead { margin: 0 auto 10px; max-width: 34em; }
.result__code { display: inline-flex; align-items: center; gap: 10px; background: var(--sand); border-radius: var(--r-pill); padding: 8px 20px; margin: 20px 0; }
.result__code .v { font-family: var(--font-mono); font-weight: 700; font-size: 20px; color: var(--ink); }
.result__actions { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

/* 时间承诺 */
.commit { display: flex; gap: 14px; align-items: flex-start; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px 22px; margin-top: 24px; box-shadow: var(--shadow-soft); }
.commit .icn { color: var(--sunset-dark); margin-top: 3px; }
.commit .t { font-weight: 700; }
.commit .d { font-size: var(--fs-sm); color: var(--ink-soft); }

/* 替代建议 */
.alts { display: grid; gap: 12px; margin-top: 12px; text-align: left; }
.alt-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 18px; }
.alt-item .t { font-weight: 700; color: var(--ink); }
.alt-item .d { font-size: var(--fs-sm); color: var(--ink-soft); }

/* ---------- 23. 相似推荐横滑 ---------- */
.rail { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.rail .acard { min-width: 260px; scroll-snap-align: start; }

/* ---------- 24. 页脚 ---------- */
.site-foot { border-top: 1px solid var(--line); margin-top: 80px; padding: 44px 0; background: var(--cream-2); }
.site-foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; }
.site-foot h4 { font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 700; margin-bottom: 12px; }
.site-foot a, .site-foot .fl { display: block; color: var(--ink-muted); font-size: var(--fs-sm); padding: 4px 0; }
.site-foot .brand { margin-bottom: 12px; }
.site-foot .desc { color: var(--ink-muted); font-size: var(--fs-sm); max-width: 30em; }
.site-foot__bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--ink-faint); flex-wrap: wrap; gap: 10px; }

/* ---------- 25. 通用工具 ---------- */
.stack { display: flex; flex-direction: column; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; }
.row { display: flex; align-items: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.wrapx { flex-wrap: wrap; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.hero__copy { min-width: 0; }
.overflow-x { overflow-x: auto; }
.hide { display: none !important; }
.only-mobile { display: none !important; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-2-1 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.divider { height: 1px; background: var(--line); margin: 24px 0; }
.mt-auto { margin-top: auto; }

/* 图表（纯 CSS/SVG，静态） */
.chart { width: 100%; height: 220px; }
.chart-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: var(--fs-sm); color: var(--ink-soft); }
.chart-legend .k { display: inline-flex; align-items: center; gap: 7px; }
.chart-legend .sw { width: 12px; height: 12px; border-radius: 3px; }

/* 开关 */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: var(--fs-sm); }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { position: relative; width: 46px; height: 26px; border-radius: var(--r-pill); background: var(--sand-2); flex: none; transition: background var(--t) var(--ease); }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(35,48,42,0.25); transition: transform var(--t) var(--ease); }
.switch input:checked + .track { background: var(--moss); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:focus-visible + .track { outline: 2px solid var(--sunset); outline-offset: 2px; }

/* 设置项行 */
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.set-row:last-child { border-bottom: 0; }
.set-row .t { font-weight: 600; color: var(--ink); }
.set-row .d { font-size: var(--fs-sm); color: var(--ink-muted); }

/* ---------- 26. 响应式 ---------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__media { order: -1; }
  .wizard { grid-template-columns: 190px 1fr; }
  .side-note { display: none; }
  .review { grid-template-columns: 1fr; }
  .review__sticky { position: static; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2-1 { grid-template-columns: 1fr; }
  .site-foot__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .wrap, .wrap-narrow { padding: 0 20px; }
  .acard-grid { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
  .reason-grid { grid-template-columns: 1fr 1fr; }
  .admin { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 236px; transform: translateX(-100%); transition: transform var(--t) var(--ease); z-index: 70; }
  .sidebar.is-open { transform: translateX(0); }
  .only-mobile { display: inline-flex !important; }
  .workspace { padding: 20px 20px 60px; }
  .nav-links { display: none; }
  .hero { padding: 32px 0 44px; }
  .page-title { font-size: 28px; }
}

@media (max-width: 620px) {
  .site-nav__inner { gap: 16px; }
  .brand--tagline .brand__sub { font-size: 10px; letter-spacing: 0.02em; }
  .wizard { grid-template-columns: 1fr; }
  .steps { flex-direction: row; overflow-x: auto; position: static; padding-bottom: 8px; }
  .step-line { display: none; }
  .step__label { display: none; }
  .kpi-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .reason-grid { grid-template-columns: 1fr; }
  .acard-grid { gap: 20px; }
  .table-wrap { overflow-x: auto; }
  .table { min-width: 720px; }
  .commit { flex-direction: column; gap: 8px; }
  .hero__stat { position: static; margin: 16px 0 0; }
  .stats-strip { grid-template-columns: 1fr; }
  .workspace__head { flex-direction: column; align-items: flex-start; }
  .filter-bar { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }
  .filter-bar .chip { flex: none; }
  .review__body { padding: 16px; }
  .photo-stack { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; }
}
