/* ==========================================================================
   汇声心理官网 · 设计系统
   风格：温暖治愈 · 柔和米绿
   非医疗性心理咨询与心理支持品牌官网
   ========================================================================== */

:root {
  color-scheme: light;

  /* —— 色彩 token —— */
  --sage-50:  #f4f7f2;
  --sage-100: #e7eee2;
  --sage-200: #cfddc6;
  --sage-300: #aec79f;
  --sage-400: #87a974;
  --sage-500: #6a8d57;   /* 主品牌绿 */
  --sage-600: #547343;
  --sage-700: #435c37;
  --sage-800: #36492e;
  --sage-900: #2b3a26;

  --clay-50:  #faf6ef;
  --clay-100: #f3ebdc;
  --clay-200: #e7d6ba;   /* 暖米/赭点缀 */
  --clay-300: #d8bd93;
  --clay-400: #c79f68;
  --clay-500: #b5854a;

  --cream:    #fbf9f4;   /* 米白底 */
  --cream-2:  #f6f2e9;
  --ink:      #2c3328;   /* 正文墨色 */
  --ink-soft: #55604e;   /* 次要文字 */
  --ink-mute: #87917f;   /* 弱化文字 */
  --line:     #e6e3d8;   /* 描边 */
  --white:    #ffffff;

  --warn-bg:  #fcf3e8;
  --warn-bd:  #e7c69a;
  --warn-tx:  #8a5a23;
  --crisis-bg:#fbeeee;
  --crisis-bd:#e6b3ad;
  --crisis-tx:#a23b32;

  /* —— 排版 —— */
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --fs-hero: clamp(2rem, 4.5vw, 3.3rem);
  --fs-h2:   clamp(1.5rem, 3vw, 2.1rem);
  --fs-h3:   clamp(1.15rem, 1.8vw, 1.4rem);
  --lh:      1.75;

  /* —— 间距 / 圆角 / 阴影 —— */
  --sp: 8px;
  --radius-s: 10px;
  --radius:   16px;
  --radius-l: 26px;
  --shadow-s: 0 2px 8px rgba(54, 73, 46, .06);
  --shadow:   0 10px 30px rgba(54, 73, 46, .08);
  --shadow-l: 0 24px 60px rgba(54, 73, 46, .12);
  --maxw: 1160px;
}

/* —— 基础重置 —— */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: var(--lh);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--sage-600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--sage-700); }
h1, h2, h3, h4 { line-height: 1.3; color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(48px, 7vw, 92px) 0; }
.section--tint { background: var(--cream-2); }
.section--sage { background: linear-gradient(160deg, var(--sage-50), var(--sage-100)); }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--sage-600);
  background: var(--sage-100); padding: 6px 14px; border-radius: 100px; margin-bottom: 18px;
}
.section-head { max-width: 720px; margin: 0 auto 48px; }
.section-head.center { text-align: center; }
.section-head h2 { font-size: var(--fs-h2); margin: 0 0 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }

/* —— 按钮 —— */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-family: inherit; font-size: 1rem; font-weight: 600; cursor: pointer;
  padding: 13px 26px; border-radius: 100px; border: 1.5px solid transparent;
  transition: all .22s ease; line-height: 1; text-align: center; min-height: 48px;
}
.btn--primary { background: var(--sage-500); color: #fff; box-shadow: 0 8px 20px rgba(106,141,87,.28); }
.btn--primary:hover { background: var(--sage-600); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(106,141,87,.34); }
.btn--ghost { background: var(--white); color: var(--sage-700); border-color: var(--sage-200); }
.btn--ghost:hover { background: var(--sage-50); border-color: var(--sage-300); color: var(--sage-700); }
.btn--light { background: rgba(255,255,255,.16); color:#fff; border-color: rgba(255,255,255,.4); }
.btn--light:hover { background: rgba(255,255,255,.26); color:#fff; }
.btn--sm { padding: 9px 18px; font-size: .92rem; min-height: 40px; }
.btn--block { display: flex; width: 100%; }

/* —— 顶部信息条 —— */
.topbar {
  background: var(--sage-800); color: var(--sage-50); font-size: .85rem;
}
.topbar .container { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: center; padding-top: 9px; padding-bottom: 9px; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; opacity: .92; }
.topbar a { color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.45); }
.topbar .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--sage-300); }

/* —— 导航 —— */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251,249,244,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .container { display: flex; align-items: center; gap: 18px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.18rem; color: var(--ink); }
.brand img { width: 38px; height: 38px; }
.brand small { display:block; font-size: .68rem; font-weight: 600; color: var(--ink-mute); letter-spacing:.04em; }
.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; }
.nav-links a { display:block; padding: 9px 13px; border-radius: 10px; color: var(--ink-soft); font-weight: 600; font-size: .96rem; }
.nav-links a:hover, .nav-links a.active { color: var(--sage-700); background: var(--sage-100); }
.nav-cta { display: flex; gap: 9px; align-items: center; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span { display:block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; }

/* —— Hero —— */
.hero { position: relative; overflow: hidden; background: linear-gradient(165deg, var(--sage-50) 0%, var(--cream) 55%, var(--clay-50) 100%); }
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; padding-top: 70px; padding-bottom: 70px; }
.hero-badge { display:inline-flex; align-items:center; gap:8px; background: var(--white); border:1px solid var(--sage-200); color: var(--sage-700); font-weight:600; font-size:.85rem; padding:7px 15px; border-radius:100px; box-shadow: var(--shadow-s); margin-bottom:22px; }
.hero h1 { font-size: var(--fs-hero); margin: 0 0 20px; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--sage-600); }
.hero-sub { font-size: 1.12rem; color: var(--ink-soft); max-width: 540px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-note { font-size: .9rem; color: var(--ink-mute); display:flex; align-items:center; gap:8px; }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; border-radius: var(--radius-l); }

/* —— 通用卡片网格 —— */
.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); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-s); transition: transform .22s, box-shadow .22s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ic { width: 54px; height: 54px; margin-bottom: 16px; }
.card h3 { font-size: var(--fs-h3); margin: 0 0 10px; }
.card p { color: var(--ink-soft); font-size: .98rem; margin: 0; }
.card-tag { font-size: .8rem; color: var(--sage-600); font-weight: 700; }

/* 服务卡片 */
.service-card { display:flex; flex-direction:column; }
.service-card .pill { display:inline-block; align-self:flex-start; font-size:.78rem; font-weight:700; color:var(--sage-700); background:var(--sage-100); padding:5px 12px; border-radius:100px; margin-bottom:14px; }
.service-card ul { list-style:none; padding:0; margin: 14px 0 0; }
.service-card li { font-size:.92rem; color:var(--ink-soft); padding-left:22px; position:relative; margin-bottom:7px; }
.service-card li::before { content:""; position:absolute; left:0; top:.55em; width:8px; height:8px; border-radius:50%; background:var(--sage-300); }
.service-card .na { color: var(--warn-tx); }
.service-card .na::before { background: var(--warn-bd); }
.service-card .more { margin-top:auto; padding-top:16px; font-weight:600; }

/* —— 保障条 —— */
.assure { display:grid; grid-template-columns: repeat(4,1fr); gap:20px; }
.assure-item { text-align:center; padding: 26px 18px; background: var(--white); border:1px solid var(--line); border-radius: var(--radius); }
.assure-item .ic { width:48px; height:48px; margin:0 auto 14px; }
.assure-item h4 { font-size:1.05rem; margin:0 0 7px; }
.assure-item p { font-size:.9rem; color:var(--ink-soft); margin:0; }

/* —— 服务边界对照 —— */
.boundary { display:grid; grid-template-columns: 1fr 1fr; gap:0; border-radius: var(--radius-l); overflow:hidden; border:1px solid var(--line); box-shadow: var(--shadow-s); }
.boundary-col { padding: 36px; }
.boundary-col.can { background: linear-gradient(160deg, var(--sage-50), var(--sage-100)); }
.boundary-col.cant { background: var(--cream-2); }
.boundary-col h3 { display:flex; align-items:center; gap:10px; margin:0 0 18px; font-size:1.2rem; }
.boundary-col h3 .b { width:30px; height:30px; border-radius:50%; display:grid; place-items:center; color:#fff; font-weight:800; flex:none; }
.boundary-col.can h3 .b { background: var(--sage-500); }
.boundary-col.cant h3 .b { background: var(--clay-400); }
.boundary-col ul { list-style:none; padding:0; margin:0; }
.boundary-col li { padding:11px 0 11px 28px; position:relative; border-top:1px dashed var(--line); color:var(--ink-soft); font-size:.97rem; }
.boundary-col li:first-child { border-top:none; }
.boundary-col li::before { position:absolute; left:0; top:11px; font-weight:800; }
.boundary-col.can li::before { content:"✓"; color: var(--sage-500); }
.boundary-col.cant li::before { content:"—"; color: var(--clay-400); }

/* —— 咨询师卡片 —— */
.counselor-card { background:var(--white); border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; box-shadow:var(--shadow-s); transition: transform .22s, box-shadow .22s; display:flex; flex-direction:column; }
.counselor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.counselor-card .photo { aspect-ratio: 4/3.2; background: var(--sage-100); }
.counselor-card .photo img { width:100%; height:100%; object-fit:cover; }
.counselor-card .body { padding: 22px; display:flex; flex-direction:column; flex:1; }
.counselor-card .name { font-size:1.18rem; font-weight:700; margin:0 0 3px; }
.counselor-card .role { font-size:.86rem; color:var(--sage-600); font-weight:600; margin-bottom:12px; }
.counselor-card .meta { font-size:.88rem; color:var(--ink-soft); margin:0 0 5px; display:flex; gap:7px; }
.counselor-card .meta b { color:var(--ink); font-weight:600; min-width:54px; flex:none; }
.counselor-card .tags { display:flex; flex-wrap:wrap; gap:6px; margin:12px 0 16px; }
.counselor-card .tags span { font-size:.76rem; background:var(--sage-50); color:var(--sage-700); border:1px solid var(--sage-100); padding:4px 10px; border-radius:100px; }
.counselor-card .foot { margin-top:auto; display:flex; align-items:center; justify-content:space-between; padding-top:14px; border-top:1px solid var(--line); }
.counselor-card .price b { color:var(--sage-700); font-size:1.1rem; }
.counselor-card .price small { color:var(--ink-mute); font-size:.8rem; }
.verify { display:inline-flex; align-items:center; gap:5px; font-size:.78rem; color:var(--sage-600); font-weight:600; }

/* —— 流程时间线 —— */
.timeline { position:relative; max-width: 760px; margin: 0 auto; }
.timeline::before { content:""; position:absolute; left:23px; top:10px; bottom:10px; width:2px; background:var(--sage-200); }
.step { position:relative; padding: 0 0 30px 64px; }
.step:last-child { padding-bottom:0; }
.step .num { position:absolute; left:0; top:0; width:48px; height:48px; border-radius:50%; background:var(--sage-500); color:#fff; display:grid; place-items:center; font-weight:800; box-shadow: 0 6px 14px rgba(106,141,87,.3); }
.step h4 { margin:6px 0 6px; font-size:1.1rem; }
.step p { margin:0; color:var(--ink-soft); font-size:.96rem; }

/* —— 价格表 —— */
.price-table { width:100%; border-collapse:collapse; background:var(--white); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-s); border:1px solid var(--line); }
.price-table th, .price-table td { padding:16px 20px; text-align:left; border-bottom:1px solid var(--line); font-size:.97rem; }
.price-table th { background:var(--sage-50); color:var(--sage-800); font-weight:700; font-size:.9rem; }
.price-table tr:last-child td { border-bottom:none; }
.price-table td b { color:var(--sage-700); }

/* —— 提示框 —— */
.note { border-radius: var(--radius); padding: 20px 24px; font-size:.95rem; line-height:1.7; display:flex; gap:14px; align-items:flex-start; }
.note .ic { width:24px; height:24px; flex:none; margin-top:2px; }
.note--warn { background: var(--warn-bg); border:1px solid var(--warn-bd); color: var(--warn-tx); }
.note--info { background: var(--sage-50); border:1px solid var(--sage-200); color: var(--sage-800); }
.note--crisis { background: var(--crisis-bg); border:1px solid var(--crisis-bd); color: var(--crisis-tx); }
.note strong { font-weight:700; }

/* —— 文章卡 —— */
.article-card { background:var(--white); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-s); transition:transform .2s,box-shadow .2s; }
.article-card:hover { transform:translateY(-4px); box-shadow:var(--shadow); }
.article-card .thumb { aspect-ratio:16/9; }
.article-card .thumb img,.article-card .thumb svg { width:100%; height:100%; object-fit:cover; }
.article-card .body { padding:22px; }
.article-card .cat { font-size:.78rem; color:var(--sage-600); font-weight:700; }
.article-card h3 { font-size:1.12rem; margin:8px 0 8px; }
.article-card .by { font-size:.82rem; color:var(--ink-mute); display:flex; gap:10px; flex-wrap:wrap; }

/* —— 表单 —— */
.form-card { background:var(--white); border:1px solid var(--line); border-radius:var(--radius-l); padding: clamp(26px,4vw,44px); box-shadow:var(--shadow); }
.field { margin-bottom:20px; }
.field label { display:block; font-weight:600; font-size:.95rem; margin-bottom:8px; color:var(--ink); }
.field label .req { color: var(--crisis-tx); }
.field .hint { font-size:.82rem; color:var(--ink-mute); font-weight:400; margin-top:4px; }
.input, select, textarea {
  width:100%; font-family:inherit; font-size:1rem; color:var(--ink);
  padding: 12px 15px; border:1.5px solid var(--line); border-radius: var(--radius-s);
  background:var(--cream); transition:border-color .2s, box-shadow .2s;
}
.input:focus, select:focus, textarea:focus { outline:none; border-color:var(--sage-400); box-shadow:0 0 0 4px var(--sage-100); background:#fff; }
.radio-row { display:flex; gap:10px; flex-wrap:wrap; }
.radio-pill { position:relative; }
.radio-pill input { position:absolute; opacity:0; }
.radio-pill span { display:block; padding:10px 18px; border:1.5px solid var(--line); border-radius:100px; cursor:pointer; font-size:.92rem; color:var(--ink-soft); transition:all .18s; }
.radio-pill input:checked + span { background:var(--sage-100); border-color:var(--sage-400); color:var(--sage-700); font-weight:600; }
.check { display:flex; gap:11px; align-items:flex-start; padding:13px 16px; border:1.5px solid var(--line); border-radius:var(--radius-s); margin-bottom:11px; background:var(--cream); cursor:pointer; }
.check input { margin-top:3px; width:18px; height:18px; accent-color:var(--sage-500); flex:none; }
.check .t { font-size:.92rem; color:var(--ink-soft); }
.check .t b { color:var(--ink); display:block; font-weight:600; margin-bottom:2px; }

/* —— FAQ —— */
.faq { background:var(--white); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.faq details { border-bottom:1px solid var(--line); }
.faq details:last-child { border-bottom:none; }
.faq summary { padding:20px 24px; font-weight:600; cursor:pointer; list-style:none; display:flex; justify-content:space-between; align-items:center; gap:14px; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:"+"; font-size:1.4rem; color:var(--sage-500); flex:none; transition:transform .2s; }
.faq details[open] summary::after { transform:rotate(45deg); }
.faq .ans { padding:0 24px 22px; color:var(--ink-soft); font-size:.96rem; }

/* —— CTA 区块 —— */
.cta-band { background: linear-gradient(150deg, var(--sage-600), var(--sage-700)); color:#fff; border-radius: var(--radius-l); padding: clamp(34px,5vw,60px); text-align:center; position:relative; overflow:hidden; }
.cta-band h2 { color:#fff; font-size:var(--fs-h2); margin:0 0 14px; }
.cta-band p { color: rgba(255,255,255,.9); max-width:560px; margin:0 auto 26px; }
.cta-band .hero-actions { justify-content:center; }

/* —— 页脚 —— */
.footer { background: var(--sage-900); color: #c8d3bf; font-size:.9rem; padding-top:60px; }
.footer a { color:#dfe7d6; }
.footer a:hover { color:#fff; }
.footer-top { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap:36px; padding-bottom:40px; border-bottom:1px solid rgba(255,255,255,.1); }
.footer h5 { color:#fff; font-size:.95rem; margin:0 0 16px; letter-spacing:.02em; }
.footer ul { list-style:none; padding:0; }
.footer li { margin-bottom:9px; }
.footer .fbrand { display:flex; align-items:center; gap:10px; margin-bottom:16px; }
.footer .fbrand img { width:36px; height:36px; }
.footer .fbrand b { color:#fff; font-size:1.1rem; }
.footer .org { line-height:1.9; }
.footer .org .label { color:#8ba07a; }
.footer-crisis { background: rgba(162,59,50,.18); border:1px solid rgba(230,179,173,.3); border-radius:var(--radius); padding:16px 20px; margin: 24px 0 0; color:#f1dcd9; font-size:.88rem; }
.footer-bottom { padding:22px 0; display:flex; flex-wrap:wrap; gap:10px 24px; justify-content:space-between; align-items:center; font-size:.82rem; color:#8ba07a; border-top:1px solid rgba(255,255,255,.06); }
.footer-bottom .links { display:flex; gap:16px; flex-wrap:wrap; }
.footer-disc { background: var(--sage-900); padding-bottom:24px; }
.footer-disc .container { font-size:.8rem; color:#7d9069; line-height:1.7; border-top:1px dashed rgba(255,255,255,.1); padding-top:20px; }

/* —— 页内 hero 小标题 —— */
.page-hero { background: linear-gradient(165deg, var(--sage-50), var(--clay-50)); padding: clamp(46px,6vw,76px) 0; }
.page-hero .crumb { font-size:.85rem; color:var(--ink-mute); margin-bottom:14px; }
.page-hero .crumb a { color:var(--sage-600); }
.page-hero h1 { font-size:var(--fs-h2); margin:0 0 14px; max-width:760px; }
.page-hero p { color:var(--ink-soft); max-width:680px; font-size:1.06rem; margin:0; }

/* —— 杂项 —— */
.lead { font-size:1.08rem; color:var(--ink-soft); }
.divider { height:1px; background:var(--line); margin:40px 0; border:none; }
.tag-list { display:flex; flex-wrap:wrap; gap:8px; }
.tag-list span { font-size:.82rem; background:var(--sage-50); color:var(--sage-700); border:1px solid var(--sage-100); padding:5px 13px; border-radius:100px; }
.stat-row { display:flex; gap:40px; flex-wrap:wrap; }
.stat b { display:block; font-size:2rem; color:var(--sage-600); font-weight:800; }
.stat span { font-size:.88rem; color:var(--ink-mute); }
.prose p { color:var(--ink-soft); }
.prose h3 { margin:32px 0 12px; }
.anchor-top { padding-top: 12px; }

/* —— 响应式 —— */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; gap:36px; padding-top:48px; padding-bottom:48px; }
  .hero-visual { order:-1; max-width:480px; margin:0 auto; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .assure { grid-template-columns: repeat(2,1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size:16px; }
  .nav-links, .nav-cta .btn--ghost { display:none; }
  .nav-toggle { display:block; }
  .nav.open .nav-links { display:flex; position:absolute; top:100%; left:0; right:0; flex-direction:column; background:var(--cream); border-bottom:1px solid var(--line); padding:12px 24px 18px; gap:2px; box-shadow:var(--shadow); }
  .nav.open .nav-links a { padding:13px; }
  .grid-2, .grid-3, .grid-4, .assure { grid-template-columns: 1fr; }
  .boundary { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap:28px; }
  .topbar .container { font-size:.78rem; }
  .stat-row { gap:24px; }
}

/* —— 动效（尊重无障碍偏好）—— */
@media (prefers-reduced-motion: no-preference) {
  .has-js .reveal { opacity:0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .has-js .reveal.in { opacity:1; transform:none; }
}
:focus-visible { outline: 3px solid var(--sage-400); outline-offset: 2px; border-radius: 4px; }
