/* ============================================================
   善牧全人健康 · 静水暖金设计系统
   暖白为底、淡金点缀、墨青收束
   ============================================================ */

:root {
  /* 主色 */
  --warm-white: #FBF8F3;
  --paper: #FFFDF8;
  --gold: #C9A961;
  --gold-light: #EADFC8;
  --gold-deep: #A8873F;
  --deep-teal: #2F4F4A;
  --warm-ink: #4A4238;
  --ink-soft: #6B6154;
  --ink-faint: #9A9082;

  /* 语义 */
  --bg: var(--warm-white);
  --surface: var(--paper);
  --line: #E8E0D2;
  --line-soft: #F0EAE0;
  --accent: var(--gold);
  --accent-deep: var(--gold-deep);
  --brand: var(--deep-teal);

  /* 工作站（对内） */
  --ws-bg: #1F3634;
  --ws-surface: #294441;
  --ws-surface-2: #33514D;
  --ws-line: rgba(234, 223, 200, 0.14);
  --ws-text: #F2EDE2;
  --ws-text-dim: #A8BDB8;

  /* 语义色 */
  --ok: #4A7C59;
  --ok-bg: #EDF4EE;
  --warn: #B8863B;
  --warn-bg: #FBF2E2;
  --danger: #A8443C;
  --danger-bg: #FBEDEB;
  --info: #3D6A8A;
  --info-bg: #EDF3F8;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(74, 66, 56, 0.06);
  --shadow: 0 4px 20px rgba(74, 66, 56, 0.08);
  --shadow-lg: 0 12px 40px rgba(74, 66, 56, 0.12);

  --serif: 'Songti SC', 'STSong', 'Source Han Serif SC', 'Noto Serif SC', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'HarmonyOS Sans SC',
          'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--warm-ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--brand);
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 0.6em;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
a { color: var(--accent-deep); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brand); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }

.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.wrap-narrow { width: min(760px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 72px 0; }
.section-sm { padding: 44px 0; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 243, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
/* 导航用图形：源图为 587×214 横排，图形约占左侧 37%，用 overflow 裁出 */
.brand-mark {
  width: 42px; height: 42px; overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center;
}
.brand-mark img {
  width: 113px; height: 41px; max-width: none; object-fit: cover;
  object-position: left center; margin-left: -2px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--serif); font-size: 1.0625rem; font-weight: 600; color: var(--brand); }
.brand-en { font-size: 0.6875rem; color: var(--ink-faint); letter-spacing: 0.06em; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  color: var(--warm-ink); font-size: 0.9375rem; position: relative; padding: 4px 0;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
  background: var(--gold); transition: right 0.25s;
}
.nav a:hover::after, .nav a.active::after { right: 0; }
.nav a.active { color: var(--brand); }

.nav-cta {
  background: var(--gold); color: #fff !important; padding: 9px 20px !important;
  border-radius: var(--radius-sm); font-size: 0.9375rem;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--gold-deep); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--radius-sm); width: 40px; height: 38px; cursor: pointer;
  align-items: center; justify-content: center;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-family: inherit; font-size: 0.9375rem; cursor: pointer; transition: all 0.2s;
  text-align: center;
}
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-deep); color: #fff; }
.btn-outline { background: transparent; border-color: var(--gold); color: var(--accent-deep); }
.btn-outline:hover { background: rgba(201, 169, 97, 0.08); }
.btn-teal { background: var(--brand); color: #fff; }
.btn-teal:hover { background: #24403C; color: #fff; }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--warm-ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--brand); }
.btn-sm { padding: 7px 15px; font-size: 0.875rem; }
.btn-lg { padding: 14px 34px; font-size: 1rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 28px;
}
.card-hover { transition: all 0.25s; }
.card-hover:hover { border-color: var(--gold-light); box-shadow: var(--shadow); transform: translateY(-2px); }

/* ---------- 区块标题 ---------- */
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-head .eyebrow {
  display: inline-block; font-size: 0.8125rem; color: var(--gold-deep);
  letter-spacing: 0.16em; margin-bottom: 12px;
}
.sec-head h2 { margin-bottom: 12px; }
.sec-head .lead { color: var(--ink-soft); max-width: 640px; margin-inline: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(168deg, #FDFBF6 0%, var(--warm-white) 46%, #F5EFE3 100%);
  padding: 88px 0 76px;
}
.hero::after {
  content: ''; position: absolute; right: -140px; top: -100px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,97,0.11), transparent 68%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.8125rem; color: var(--gold-deep);
  background: rgba(201,169,97,0.11); border: 1px solid var(--gold-light);
  padding: 5px 15px; border-radius: 100px; margin-bottom: 22px;
}
.hero h1 { font-size: 2.75rem; margin-bottom: 20px; letter-spacing: 0.015em; }
.hero h1 em { font-style: normal; color: var(--gold-deep); }
.hero-lead { font-size: 1.0625rem; color: var(--ink-soft); margin-bottom: 30px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-stat .n { font-family: var(--serif); font-size: 1.75rem; color: var(--brand); font-weight: 600; line-height: 1.2; }
.hero-stat .t { font-size: 0.8125rem; color: var(--ink-faint); }

.hero-visual { position: relative; }
.hero-visual .frame {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.hero-visual img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.hero-visual .tag {
  position: absolute; bottom: -18px; left: -18px;
  background: var(--surface); border: 1px solid var(--gold-light);
  border-radius: var(--radius); padding: 16px 22px; box-shadow: var(--shadow);
}
.hero-visual .tag .n { font-family: var(--serif); font-size: 1.5rem; color: var(--brand); font-weight: 600; }
.hero-visual .tag .t { font-size: 0.8125rem; color: var(--ink-soft); }

/* ---------- 服务网格 ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.service-card { display: flex; flex-direction: column; gap: 12px; }
.service-card .icon {
  width: 46px; height: 46px; border-radius: var(--radius-sm);
  background: rgba(201,169,97,0.13); display: flex; align-items: center; justify-content: center;
}
.service-card h3 { margin: 0; font-size: 1.25rem; }
.service-card p { color: var(--ink-soft); font-size: 0.9375rem; margin: 0; flex: 1; }
.service-card .more { color: var(--gold-deep); font-size: 0.875rem; font-weight: 500; }

/* ---------- 团队卡 ---------- */
.team-card { text-align: center; }
.team-card .photo {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  border-radius: var(--radius); margin-bottom: 18px;
  background: var(--gold-light);
}
.team-card h3 { margin-bottom: 4px; font-size: 1.1875rem; }
.team-card .role { color: var(--gold-deep); font-size: 0.875rem; margin-bottom: 12px; }
.team-card p { color: var(--ink-soft); font-size: 0.875rem; text-align: left; }

/* ---------- 文章卡 ---------- */
.post-card { display: flex; flex-direction: column; gap: 10px; }
.post-card .date { font-size: 0.8125rem; color: var(--ink-faint); }
.post-card h3 { font-size: 1.125rem; margin: 0; }
.post-card h3 a { color: var(--brand); }
.post-card p { color: var(--ink-soft); font-size: 0.9375rem; margin: 0; }

/* ---------- CTA 条 ---------- */
.cta-band {
  background: var(--brand); color: var(--ws-text);
  padding: 60px 0; text-align: center;
}
.cta-band h2 { color: var(--ws-text); margin-bottom: 14px; }
.cta-band p { color: var(--ws-text-dim); max-width: 560px; margin: 0 auto 26px; }
.cta-band .btn-gold { margin: 0 6px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #233734; color: var(--ws-text-dim); padding: 52px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 38px; }
.site-footer h4 { color: var(--ws-text); font-size: 0.9375rem; margin-bottom: 14px; font-family: var(--sans); font-weight: 600; }
.site-footer a { color: var(--ws-text-dim); font-size: 0.875rem; display: block; margin-bottom: 9px; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(234,223,200,0.13); padding-top: 22px; font-size: 0.8125rem; text-align: center; }

/* ---------- 文章正文排版 ---------- */
.prose { font-size: 1rem; line-height: 1.95; color: var(--warm-ink); }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.prose h3 { font-size: 1.1875rem; margin-top: 1.5em; }
.prose img { border-radius: var(--radius); margin: 1.2em 0; }
.prose blockquote {
  margin: 1.4em 0; padding: 16px 22px; background: var(--surface);
  border-left: 4px solid var(--gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-soft);
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 0.9375rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.prose th { background: var(--warm-white); color: var(--brand); }
.prose ul, .prose ol { margin-bottom: 1.2em; }
.prose li { margin-bottom: 0.4em; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.875rem; color: var(--ink-soft); margin-bottom: 7px; font-weight: 500; }
.field .req { color: var(--danger); }
input[type=text], input[type=tel], input[type=email], input[type=number],
input[type=date], input[type=time], input[type=password], input[type=search],
select, textarea {
  width: 100%; padding: 11px 14px; font-family: inherit; font-size: 0.9375rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--warm-ink); transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,169,97,0.13);
}
textarea { resize: vertical; min-height: 110px; line-height: 1.7; }
select { cursor: pointer; }

.alert {
  padding: 13px 18px; border-radius: var(--radius-sm); margin-bottom: 22px;
  font-size: 0.9375rem; border: 1px solid;
}
.alert-ok { background: var(--ok-bg); border-color: #C9DDCE; color: #2F5A3C; }
.alert-err { background: var(--danger-bg); border-color: #E8C6C1; color: #8C342D; }
.alert-info { background: var(--info-bg); border-color: #C8DBE9; color: #2F5570; }
.alert-warn { background: var(--warn-bg); border-color: #E8D5AE; color: #8A6428; }

/* ---------- 预约步骤 ---------- */
.steps { display: flex; gap: 8px; margin-bottom: 34px; flex-wrap: wrap; }
.step {
  flex: 1; min-width: 128px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); font-size: 0.875rem; color: var(--ink-faint);
}
.step.on { border-color: var(--gold); background: rgba(201,169,97,0.07); color: var(--brand); font-weight: 500; }
.step .n { display: inline-block; width: 21px; height: 21px; line-height: 21px; text-align: center;
  border-radius: 50%; background: var(--line); color: var(--ink-soft); font-size: 0.75rem; margin-right: 8px; }
.step.on .n { background: var(--gold); color: #fff; }

.pick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.pick {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px;
  cursor: pointer; background: var(--surface); transition: all 0.2s; text-align: left;
  font-family: inherit;
}
.pick:hover { border-color: var(--gold); }
.pick.on { border-color: var(--gold); background: rgba(201,169,97,0.08); box-shadow: 0 0 0 2px rgba(201,169,97,0.16); }
.pick .t { font-weight: 500; color: var(--brand); margin-bottom: 3px; }
.pick .s { font-size: 0.8125rem; color: var(--ink-faint); }

.day-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 18px; }
.day-tab {
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm);
  padding: 10px 14px; cursor: pointer; text-align: center; min-width: 78px; flex-shrink: 0;
  font-family: inherit;
}
.day-tab.on { border-color: var(--gold); background: var(--gold); color: #fff; }
.day-tab .w { font-size: 0.75rem; opacity: 0.85; display: block; }
.day-tab .d { font-size: 0.9375rem; font-weight: 500; }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.slot {
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm);
  padding: 10px; cursor: pointer; font-family: inherit; font-size: 0.9375rem;
  color: var(--warm-ink); transition: all 0.15s;
}
.slot:hover { border-color: var(--gold); color: var(--brand); }
.slot.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- 量表 ---------- */
.scale-card { display: flex; flex-direction: column; gap: 14px; }
.scale-card .meta { display: flex; gap: 16px; font-size: 0.8125rem; color: var(--ink-faint); }
.scale-card h3 { margin: 0; }
.scale-card p { color: var(--ink-soft); font-size: 0.9375rem; margin: 0; flex: 1; }

.q-item { padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.q-item:last-child { border-bottom: none; }
.q-text { font-size: 1.0625rem; font-weight: 500; color: var(--brand); margin-bottom: 14px; }
.q-num { display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; background: var(--gold-light);
  color: var(--gold-deep); font-size: 0.8125rem; margin-right: 10px; flex-shrink: 0; }
.q-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.q-opt {
  display: flex; align-items: center; gap: 8px; padding: 9px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; font-size: 0.9375rem; background: var(--surface); transition: all 0.15s;
}
.q-opt:hover { border-color: var(--gold); }
.q-opt.on { border-color: var(--gold); background: rgba(201,169,97,0.1); }
.q-opt input { accent-color: var(--gold-deep); }

.result-hero { text-align: center; padding: 44px 24px; }
.result-hero .score {
  font-family: var(--serif); font-size: 4rem; color: var(--brand);
  font-weight: 600; line-height: 1;
}
.result-hero .level { display: inline-block; margin-top: 14px; padding: 6px 20px;
  border-radius: 100px; background: rgba(201,169,97,0.14); color: var(--gold-deep); font-size: 0.9375rem; }
.result-hero .advice { max-width: 620px; margin: 22px auto 0; color: var(--ink-soft); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 2.125rem; }
  .hero-visual { max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .nav.open {
    display: flex; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; background: var(--paper); padding: 18px 24px;
    border-bottom: 1px solid var(--line); gap: 4px; box-shadow: var(--shadow);
  }
  .nav-toggle { display: flex; }
  .nav-cta { margin-top: 8px; text-align: center; }
  .wrap, .wrap-narrow { width: calc(100% - 32px); }
  .section { padding: 48px 0; }
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 52px 0 48px; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media print {
  .site-header, .site-footer, .cta-band, .no-print { display: none !important; }
  body { background: #fff; }
}
