/* 空愈心理官网 · 壹心理式视觉系统（紫蓝 + 白卡片） */
:root {
  --brand: #5a54d4;
  --brand-d: #3e3a9e;
  --brand-dd: #2c2a6e;
  --brand-l: #eeeefb;
  --brand-ll: #f5f5fd;
  --accent: #8b7ff0;
  --ink: #26262f;
  --ink-2: #55555f;
  --ink-3: #71717e;
  --bg: #f7f7fc;
  --card: #ffffff;
  --line: #e7e7f1;
  --line-2: #d8d8ea;
  --ok: #2f9d6e;
  --warn-bg: #fff7e8;
  --warn-ink: #8a6116;
  --r: 14px;
  --r-s: 9px;
  --shadow: 0 2px 14px rgba(62, 58, 158, 0.07);
  --shadow-h: 0 8px 28px rgba(62, 58, 158, 0.14);
  --sans: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); font-size: 15.5px; line-height: 1.85; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-d); }
ul, ol { padding-left: 1.4em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 860px; }

/* ---------- 无障碍 ---------- */
.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; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--brand-d); color: #fff; padding: 11px 16px; border-radius: var(--r-s); font-size: 14px; transition: top 0.2s; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- 顶栏 ---------- */
.topbar { background: linear-gradient(90deg, var(--brand-dd), var(--brand)); color: #fff; font-size: 12.5px; padding: 6px 0; text-align: center; letter-spacing: 0.04em; }
.topbar a { color: #fff; text-decoration: underline; }
.site-head { position: sticky; top: 0; z-index: 90; background: rgba(255,255,255,0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--ink); }
.logo .mark { width: 34px; height: 34px; object-fit: contain; flex: none; }
.logo small { font-size: 11px; color: var(--ink-3); font-weight: 400; letter-spacing: 0.14em; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { padding: 8px 13px; border-radius: 8px; color: var(--ink-2); font-size: 14.5px; white-space: nowrap; }
.nav a:hover { background: var(--brand-l); color: var(--brand-d); }
.nav a[aria-current="page"] { color: var(--brand-d); font-weight: 600; background: var(--brand-l); }
.head-cta { background: linear-gradient(135deg, var(--brand), var(--brand-d)); color: #fff !important; padding: 9px 18px !important; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); }
.head-cta:hover { filter: brightness(1.08); }
.burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--brand-dd) 0%, var(--brand) 62%, var(--accent) 100%); color: #fff; padding: 74px 0 86px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -160px; top: -120px; width: 480px; height: 480px; border-radius: 50%; border: 60px solid rgba(255,255,255,0.08); }
.hero::after { content: ""; position: absolute; right: 40px; bottom: -180px; width: 320px; height: 320px; border-radius: 50%; border: 40px solid rgba(255,255,255,0.06); }
.hero h1 { font-size: 40px; line-height: 1.35; font-weight: 700; letter-spacing: 0.02em; max-width: 640px; }
.hero h1 em { font-style: normal; color: #ffd98a; }
.hero p.sub { margin-top: 18px; font-size: 16.5px; max-width: 560px; color: rgba(255,255,255,0.88); }
.hero .h-ctas { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 13px 30px; border-radius: 999px; font-size: 15.5px; font-weight: 600; transition: transform 0.15s, box-shadow 0.15s; }
.btn:active { transform: scale(0.98); }
.btn--w { background: #fff; color: var(--brand-d); box-shadow: var(--shadow-h); }
.btn--w:hover { color: var(--brand-d); transform: translateY(-1px); }
.btn--ghost { border: 1.5px solid rgba(255,255,255,0.55); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn--p { background: linear-gradient(135deg, var(--brand), var(--brand-d)); color: #fff; box-shadow: var(--shadow); }
.btn--p:hover { color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-h); }
.hero-badges { margin-top: 36px; display: flex; gap: 26px; flex-wrap: wrap; font-size: 13.5px; color: rgba(255,255,255,0.85); }
.hero-badges b { display: block; font-size: 21px; color: #fff; }

/* ---------- 编号分节 ---------- */
.section { padding: 74px 0; }
.section--alt { background: #fff; }
.sec-head { max-width: 720px; margin-bottom: 44px; }
.sec-num { display: inline-flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.sec-num b { font-size: 26px; color: var(--brand); font-weight: 800; letter-spacing: 0.02em; }
.sec-num span { font-size: 12px; letter-spacing: 0.22em; color: var(--ink-3); text-transform: uppercase; }
.sec-head h2 { font-size: 29px; line-height: 1.4; font-weight: 700; }
.sec-head p { margin-top: 12px; color: var(--ink-2); font-size: 15.5px; }
.sec-link { margin-top: 30px; }
.more { font-size: 14.5px; font-weight: 600; }
.more::after { content: " →"; }

/* ---------- 卡片 ---------- */
.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(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 28px; display: flex; flex-direction: column; transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s; position: relative; }
.card:hover { box-shadow: var(--shadow-h); transform: translateY(-3px); border-color: var(--line-2); }
.card h3 { font-size: 19px; margin: 10px 0 10px; color: var(--ink); }
.card > a, .card h3 a { color: inherit; }
.card p { color: var(--ink-2); font-size: 14.5px; flex: 1; }
.card .num { font-size: 13px; font-weight: 800; color: var(--brand); letter-spacing: 0.1em; }
.card__tag { position: absolute; top: -11px; left: 24px; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; font-size: 12px; padding: 4px 13px; border-radius: 999px; }
.card__tag--soft { background: var(--brand-l); color: var(--brand-d); font-weight: 600; }
.card .price { margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.card .price b { color: var(--brand-d); font-size: 19px; }
.clink { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--brand); }
.clink::after { content: " ↗"; }

/* ---------- 图文分栏 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--r); box-shadow: var(--shadow-h); }
.feat { counter-reset: feat; margin-top: 22px; display: grid; gap: 12px; }
.feat li { list-style: none; counter-increment: feat; display: flex; gap: 13px; align-items: baseline; color: var(--ink-2); font-size: 15px; }
.feat li::before { content: "0" counter(feat); font-weight: 800; color: var(--brand); font-size: 13px; }

/* ---------- 痛点速配 ---------- */
.painmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pain { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 22px 18px; transition: box-shadow 0.2s, transform 0.2s; display: block; color: inherit; }
.pain:hover { box-shadow: var(--shadow-h); transform: translateY(-2px); color: inherit; }
.pain b { font-size: 16.5px; display: block; }
.pain span { font-size: 13.5px; color: var(--ink-3); display: block; margin-top: 5px; }
.pain em { font-style: normal; float: right; color: var(--brand); font-weight: 700; }

/* ---------- 课程卡（带图） ---------- */
.ccard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.2s, transform 0.2s; }
.ccard:hover { box-shadow: var(--shadow-h); transform: translateY(-3px); }
.ccard img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.ccard .cb { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.ccard h3 { font-size: 18px; }
.ccard p { color: var(--ink-2); font-size: 14px; flex: 1; margin-top: 6px; }
.ccard .meta { margin-top: 14px; display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; color: var(--ink-3); }
.ccard .meta b { color: var(--brand-d); font-size: 17px; }

/* ---------- 团队 ---------- */
.tcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-align: center; transition: box-shadow 0.2s, transform 0.2s; }
.tcard:hover { box-shadow: var(--shadow-h); transform: translateY(-3px); }
.tcard img { aspect-ratio: 2 / 3; object-fit: cover; width: 100%; }
.tcard .tb { padding: 14px 12px 18px; }
.tcard b { font-size: 15.5px; display: block; }
.tcard b i { font-style: normal; color: var(--ink-3); font-weight: 400; font-size: 13px; }
.tcard span { font-size: 12.5px; color: var(--ink-3); display: block; margin-top: 4px; }

/* ---------- 反馈卡 ---------- */
.voice { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 26px 22px; }
.voice h3 { font-size: 16px; margin-bottom: 10px; }
.voice p { color: var(--ink-2); font-size: 14.5px; }
.voice footer { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); }
.vtags { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.vtag { background: var(--brand-l); color: var(--brand-d); font-size: 12px; padding: 3px 12px; border-radius: 999px; }

/* ---------- 表格 ---------- */
.tbl { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); font-size: 14.5px; }
.tbl th { background: var(--brand-ll); text-align: left; padding: 13px 18px; color: var(--brand-dd); font-size: 13.5px; letter-spacing: 0.03em; }
.tbl td { padding: 13px 18px; border-top: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.tbl td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
.tblwrap { overflow-x: auto; border-radius: var(--r); box-shadow: var(--shadow); }

/* ---------- FAQ ---------- */
.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 14px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 15.5px; list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--brand); font-size: 22px; font-weight: 400; }
.faq[open] summary::after { content: "–"; }
.faq .a { padding: 0 22px 20px; color: var(--ink-2); font-size: 14.5px; }

/* ---------- 文章 ---------- */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 24px; margin: 44px 0 16px; padding-top: 8px; }
.prose h3 { font-size: 18.5px; margin: 32px 0 12px; }
.prose p { margin: 14px 0; color: var(--ink-2); }
.prose li { color: var(--ink-2); margin: 7px 0; }
.prose blockquote { border-left: 3px solid var(--brand); background: var(--brand-ll); padding: 14px 20px; border-radius: 0 var(--r-s) var(--r-s) 0; margin: 18px 0; color: var(--ink-2); }
.prose .tldr { background: var(--brand-ll); border: 1px solid var(--line-2); border-radius: var(--r); padding: 18px 22px; margin: 22px 0; font-size: 14.5px; }
.prose .tldr b { color: var(--brand-d); }
.meta-line { color: var(--ink-3); font-size: 13.5px; margin: 10px 0 26px; display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- 眉标/标签 ---------- */
.eyebrow { display: inline-block; background: var(--brand-l); color: var(--brand-d); font-size: 12.5px; font-weight: 600; padding: 4px 14px; border-radius: 999px; letter-spacing: 0.06em; }
.muted { color: var(--ink-3); }
.notice { background: var(--warn-bg); color: var(--warn-ink); border-radius: var(--r-s); padding: 13px 18px; font-size: 14px; margin: 20px 0; }
.quote { border-left: 3px solid var(--brand); background: #fff; padding: 18px 22px; border-radius: 0 var(--r-s) var(--r-s) 0; }
.quote footer { color: var(--ink-3); font-size: 13px; margin-top: 8px; }
.num-badge { display: inline-block; width: 30px; height: 30px; line-height: 30px; text-align: center; border-radius: 50%; background: var(--brand-l); color: var(--brand-d); font-weight: 700; font-size: 14px; margin-right: 10px; }

/* ---------- pagehead / 面包屑 ---------- */
.pagehead { background: linear-gradient(135deg, var(--brand-dd), var(--brand)); color: #fff; padding: 52px 0 46px; }
.pagehead h1 { font-size: 32px; margin-top: 14px; }
.pagehead p { color: rgba(255,255,255,0.85); margin-top: 10px; max-width: 640px; }
.crumb { font-size: 13px; }
.crumb a { color: rgba(255,255,255,0.75); }
.crumb a:hover { color: #fff; }
.crumb span { color: rgba(255,255,255,0.55); margin: 0 8px; }
.pagehead .crumb, .pagehead-light .crumb { color: rgba(255,255,255,0.8); }
.pagehead-light { padding: 44px 0 8px; }
.pagehead-light .crumb a { color: var(--ink-3); }
.pagehead-light .crumb a:hover { color: var(--brand); }
.pagehead-light .crumb span { color: var(--line-2); }

/* ---------- 照片墙 ---------- */
.photogrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.photogrid img { border-radius: var(--r-s); aspect-ratio: 4/3; object-fit: cover; width: 100%; cursor: zoom-in; transition: transform 0.2s; }
.photogrid img:hover { transform: scale(1.015); }

/* ---------- CTA 条 ---------- */
.cta-band { background: linear-gradient(135deg, var(--brand-dd), var(--brand)); color: #fff; border-radius: 18px; padding: 40px 44px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h3 { font-size: 22px; }
.cta-band p { color: rgba(255,255,255,0.82); font-size: 14.5px; margin-top: 6px; }

/* ---------- 证书 ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cert { background: #fff; border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px; text-align: center; font-size: 12.5px; color: var(--ink-2); }
.cert img { border-radius: 6px; aspect-ratio: 4/3; object-fit: cover; margin-bottom: 8px; width: 100%; cursor: zoom-in; }

/* ---------- 页脚 ---------- */
.site-foot { background: #1e1e28; color: #b9b9c6; margin-top: 80px; font-size: 14px; }
.foot-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding: 56px 0 40px; }
.site-foot h2 { font-size: 13px; color: #fff; letter-spacing: 0.14em; margin-bottom: 14px; font-weight: 600; }
.site-foot ul { list-style: none; }
.site-foot li { margin: 8px 0; }
.site-foot a { color: #b9b9c6; font-size: 13.5px; }
.site-foot a:hover { color: #fff; }
.foot-brand p { font-size: 13.5px; line-height: 1.9; color: #9a9aa8; margin-top: 12px; max-width: 300px; }
.foot-bottom { border-top: 1px solid #34343f; padding: 20px 0; font-size: 12.5px; color: #82828e; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot-bottom a { color: #9a9aa8; }

/* ---------- 浮动咨询 ---------- */
.float-consult { position: fixed; right: 22px; bottom: 26px; z-index: 80; background: linear-gradient(135deg, var(--brand), var(--brand-d)); color: #fff; padding: 12px 22px; border-radius: 999px; font-size: 14.5px; font-weight: 600; box-shadow: var(--shadow-h); }
.float-consult:hover { color: #fff; filter: brightness(1.08); }

/* ---------- 404 ---------- */
.p404 { text-align: center; padding: 130px 24px; }
.p404 h1 { font-size: 88px; color: var(--brand); font-weight: 800; }
.p404 p { color: var(--ink-2); margin: 16px 0 30px; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .painmap { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .photogrid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-in { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 31px; }
  .burger { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 20px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-h); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 15.5px; }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4, .painmap { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .hero { padding: 54px 0 64px; }
  .hero h1 { font-size: 26px; }
  .sec-head h2 { font-size: 23px; }
  .cta-band { padding: 30px 24px; }
}

/* ---------- 知识中心 · 列表式排版与翻页 ---------- */
.post-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 30px; }
.post-item { display: block; padding: 22px 2px; border-bottom: 1px solid var(--line); }
.post-item:last-child { border-bottom: 0; }
.post-item .pi-meta { display: flex; gap: 12px; align-items: center; font-size: 12.5px; color: var(--ink-3); }
.post-item .pi-meta time { font-variant-numeric: tabular-nums; }
.post-item .pi-tag { padding: 1px 10px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--brand-d); background: var(--brand-ll); }
.post-item h3 { margin: 8px 0 6px; font-size: 18.5px; color: var(--ink); transition: color 0.15s; }
.post-item:hover h3 { color: var(--brand); }
.post-item p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.75; }
.post-count { font-size: 13px; color: var(--ink-3); margin-left: 8px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 30px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; padding: 8px 14px; text-align: center; border: 1px solid var(--line-2); border-radius: var(--r-s); font-size: 14px; color: var(--ink-2); background: var(--card); }
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .cur { background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; border-color: var(--brand); font-weight: 700; }
.pager .gap { border: 0; background: none; }
