
/* ============================================================
   山泉知行工坊 · 设计系统
   单一来源：所有页面共用本文件
   ============================================================ */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --ink:        #1f2933;
  --ink-2:      #323f4b;
  --sub:        #616e7c;
  --sub-soft:   #7b8794;
  --accent:     #0f6b5c;
  --accent-2:   #0b564a;
  --accent-lt:  #e9f3f0;
  --accent-lt2: #f2f8f6;
  --line:       #e4e7eb;
  --line-soft:  #f0f2f5;
  --bg:         #ffffff;
  --bg-soft:    #fafbfc;
  --warn:       #b06a00;

  --wrap:       1080px;
  --wrap-text:  760px;
  --radius:     10px;
  --radius-sm:  6px;

  --fs-h1: clamp(30px, 4.2vw, 44px);
  --fs-h2: clamp(23px, 2.6vw, 30px);
  --fs-h3: 19px;
  --fs-lead: 18px;
  --fs-body: 16px;
  --fs-sm: 14.5px;
  --fs-xs: 13px;

  --shadow-sm: 0 1px 2px rgba(31, 41, 51, .04);
  --shadow-md: 0 4px 16px rgba(31, 41, 51, .06);
  --shadow-lg: 0 12px 36px rgba(31, 41, 51, .10);

  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui,
          -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:        #e8edf2;
    --ink-2:      #cfd7df;
    --sub:        #9aa7b4;
    --sub-soft:   #82909d;
    --accent:     #4fbfa8;
    --accent-2:   #6fd2bd;
    --accent-lt:  #17332e;
    --accent-lt2: #12211f;
    --line:       #2b3742;
    --line-soft:  #212b34;
    --bg:         #131a20;
    --bg-soft:    #182129;
    --warn:       #e0a44a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .35);
    --shadow-lg: 0 12px 36px rgba(0, 0, 0, .45);
  }
  .portrait-card img { filter: brightness(.94); }
}

/* ---------- 2. 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.78;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1;
}

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

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-2); }

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

::selection { background: var(--accent-lt); color: var(--ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--wrap-text); margin: 0 auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: #fff; padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- 3. 头部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--accent);
  color: #fff; display: grid; place-items: center;
  font-size: 19px; font-weight: 600; letter-spacing: 0;
  flex-shrink: 0;
}
.brand-name { font-weight: 650; font-size: 16px; letter-spacing: .01em; }
.brand-sub { font-size: 11.5px; color: var(--sub); letter-spacing: .08em; margin-top: -2px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--sub); font-size: 15px; padding: 8px 12px;
  border-radius: var(--radius-sm); transition: all .15s ease;
}
.nav a:hover { color: var(--accent); background: var(--accent-lt2); }
.nav a[aria-current="page"]:not(.nav-cta) { color: var(--accent); font-weight: 600; }
.nav .nav-cta {
  margin-left: 8px; background: var(--accent); color: #fff;
  font-weight: 500; padding: 9px 18px;
}
.nav .nav-cta:hover,
.nav .nav-cta[aria-current="page"] { background: var(--accent-2); color: #fff; }
.nav .nav-cta[aria-current="page"] { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .28); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 8px 10px; cursor: pointer;
  color: var(--ink); font-size: 15px; line-height: 1;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; margin: 3px 0; transition: .2s; }

@media (max-width: 860px) {
  .nav {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px; box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-radius: var(--radius-sm); }
  .nav .nav-cta { margin: 8px 0 0; text-align: center; }
  .nav-toggle { display: block; }
}

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 8px; font-size: 15.5px; font-weight: 500;
  border: 1px solid transparent; transition: all .16s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-2); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: var(--accent-lt); color: var(--accent); }
.btn-ghost:hover { background: var(--accent-lt2); color: var(--accent-2); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 10px 18px; font-size: 14.5px; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 5. 版式 ---------- */
.sec-label {
  font-size: var(--fs-xs); letter-spacing: .13em; color: var(--accent);
  font-weight: 650; text-transform: uppercase; margin-bottom: 10px;
}
h1 { font-size: var(--fs-h1); line-height: 1.25; font-weight: 750; letter-spacing: -.015em; }
h2 { font-size: var(--fs-h2); line-height: 1.35; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: var(--fs-h3); line-height: 1.45; font-weight: 650; }
.lead { font-size: var(--fs-lead); color: var(--sub); line-height: 1.72; }
.lead strong { color: var(--ink); font-weight: 600; }
.sec-intro { margin-top: 12px; color: var(--sub); max-width: 720px; }
.prose p { margin-top: 16px; color: var(--ink-2); }
.prose p:first-child { margin-top: 0; }
.small { font-size: var(--fs-sm); color: var(--sub); }
.tiny { font-size: var(--fs-xs); color: var(--sub-soft); }

section { padding: 72px 0; border-top: 1px solid var(--line); }
section.no-line { border-top: none; }
.section-head { max-width: 760px; }
.section-foot { margin-top: 32px; }

/* ---------- 6. 首屏 ---------- */
.hero { padding-block: 76px 64px; }
.hero-grid {
  display: grid; grid-template-columns: 1.12fr .88fr;
  gap: 56px; align-items: center;
}
.hero h1 { max-width: 620px; }
.hero .lead { margin-top: 20px; max-width: 560px; }
.hero .actions { margin-top: 30px; }

.portrait-card {
  position: relative; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  aspect-ratio: 4 / 5; background: var(--bg-soft);
}
.portrait-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.portrait-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 20px 16px; font-size: 13px; color: #fff;
  background: linear-gradient(to top, rgba(12, 32, 28, .78), rgba(12, 32, 28, 0));
}
.portrait-card figcaption b { font-weight: 600; letter-spacing: .02em; }

.trust-bar {
  margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--line);
}
.trust {
  display: flex; flex-wrap: wrap; align-items: center;
  column-gap: 26px; row-gap: 10px; font-size: var(--fs-sm); color: var(--sub);
  justify-content: space-between;
}
.trust span { display: inline-flex; align-items: center; }
.trust span + span::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); opacity: .55; margin-right: 12px;
}

@media (max-width: 860px) {
  .hero { padding-block: 48px 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .portrait-card { max-width: 340px; margin: 0 auto; }
  .trust span + span::before { display: none; }
  .trust { flex-direction: column; align-items: flex-start; row-gap: 7px; }
}

/* ---------- 7. 痛点 ---------- */
.pains { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pain {
  background: var(--bg-soft); border-left: 3px solid var(--accent);
  padding: 17px 20px; font-size: 15.5px; color: var(--ink-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.pains-note { margin-top: 26px; font-size: 15.5px; color: var(--sub); max-width: 780px; }
.pains-note strong { color: var(--ink); }
@media (max-width: 760px) { .pains { grid-template-columns: 1fr; } }

/* ---------- 8. 卡片 ---------- */
.cards { margin-top: 30px; display: grid; gap: 16px; }
.cards-2 { grid-template-columns: 1fr 1fr; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .cards-2, .cards-3, .cards-4 { grid-template-columns: 1fr; }
}

.card {
  display: block; padding: 26px 26px 24px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg); color: inherit;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
a.card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); color: inherit; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--sub); }
.card .card-meta {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft);
  font-size: var(--fs-xs); color: var(--sub-soft); display: flex; flex-wrap: wrap; gap: 6px 14px;
}
.card .card-arrow { margin-top: 14px; font-size: var(--fs-sm); color: var(--accent); font-weight: 500; }

/* ---------- 9. 表格 ---------- */
.table-wrap { margin-top: 28px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
thead th {
  text-align: left; padding: 13px 16px; background: var(--accent-lt);
  color: var(--accent); font-weight: 650; font-size: 13.5px;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
tbody td { padding: 15px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; color: var(--ink-2); }
tbody tr:last-child td { border-bottom: none; }
tbody td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
tbody td .meta { display: block; margin-top: 3px; font-size: var(--fs-xs); color: var(--sub-soft); font-weight: 400; }

/* ---------- 10. 服务详情 ---------- */
.svc { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.svc-head {
  padding: 22px 26px; background: var(--accent-lt2); border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.svc-head h3 { font-size: 20px; }
.svc-head .tag {
  font-size: var(--fs-xs); color: var(--accent); background: var(--bg);
  padding: 3px 10px; border-radius: 4px; font-weight: 500; border: 1px solid var(--line);
}
.svc-body { padding: 8px 26px 24px; }
.svc-row { padding: 16px 0; border-bottom: 1px dashed var(--line); }
.svc-row:last-child { border-bottom: none; }
.svc-row dt {
  font-size: var(--fs-xs); letter-spacing: .08em; color: var(--accent);
  font-weight: 650; margin-bottom: 6px;
}
.svc-row dd { font-size: 15.5px; color: var(--ink-2); }
.svc-row dd ul { margin: 6px 0 0 18px; }
.svc-row dd li { margin-top: 4px; }

/* ---------- 11. 流程 ---------- */
.steps { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-num { font-size: var(--fs-xs); font-weight: 700; color: var(--accent); letter-spacing: .1em; margin-bottom: 8px; }
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--sub); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ---------- 12. 案例 ---------- */
.case {
  margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 30px; background: var(--bg);
}
.case-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.case-title { font-size: 19px; font-weight: 700; }
.case-tag {
  font-size: 12.5px; color: var(--accent); background: var(--accent-lt);
  padding: 3px 10px; border-radius: 4px; font-weight: 500;
}
.case dl { margin-top: 18px; }
.case dt { font-size: var(--fs-xs); color: var(--accent); font-weight: 650; letter-spacing: .06em; margin-bottom: 4px; }
.case dd { font-size: 15.5px; color: var(--ink-2); }
.case-quote {
  margin-top: 20px; padding: 15px 18px; background: var(--accent-lt2);
  border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px; color: var(--ink); font-weight: 500;
}

/* ---------- 13. 关于我 ---------- */
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } .about-grid .portrait-card { max-width: 300px; } }

.creds { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; }
.cred { font-size: 15px; color: var(--sub); padding-left: 18px; position: relative; }
.cred::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
@media (max-width: 700px) { .creds { grid-template-columns: 1fr; } }

.panel {
  margin-top: 28px; padding: 24px 26px; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.panel .panel-title { font-size: var(--fs-xs); letter-spacing: .1em; color: var(--accent); font-weight: 650; margin-bottom: 12px; }
.panel .row { font-size: 15px; color: var(--ink-2); margin-bottom: 8px; }
.panel .row:last-child { margin-bottom: 0; }
.panel .names { font-weight: 650; letter-spacing: .03em; color: var(--ink); }

/* ---------- 14. 原则 ---------- */
.principles { margin-top: 26px; counter-reset: p; }
.principle {
  counter-increment: p; position: relative;
  padding: 22px 0 22px 56px; border-bottom: 1px solid var(--line-soft);
}
.principle::before {
  content: counter(p, decimal-leading-zero);
  position: absolute; left: 0; top: 24px;
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  color: var(--accent); opacity: .55; letter-spacing: .04em;
}
.principle h3 { font-size: 17.5px; line-height: 1.55; margin-bottom: 8px; }
.principle p { font-size: 15px; color: var(--sub); max-width: 720px; }

/* ---------- 15. FAQ ---------- */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary {
  cursor: pointer; font-size: 16px; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  color: var(--ink);
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--accent); font-size: 20px; font-weight: 400; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details p { margin-top: 12px; font-size: 15px; color: var(--sub); max-width: 720px; }

/* ---------- 16. 联系 ---------- */
.contact-grid {
  margin-top: 8px; display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px; align-items: start;
}

/* 二维码大卡 */
.qr-card {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 14px; padding: 22px 22px 20px; text-align: center;
  box-shadow: var(--shadow-sm);
}
.qr-card-title {
  font-size: var(--fs-xs); letter-spacing: .12em; color: var(--accent);
  font-weight: 650; margin-bottom: 16px;
}
.qr-card img {
  width: 100%; height: auto; border-radius: 8px;
  background: #fff; border: 1px solid var(--line);
}
.qr-card-cap {
  margin-top: 14px; font-size: var(--fs-sm); color: var(--sub); line-height: 1.65;
}
.qr-ph {
  aspect-ratio: 1; border: 2px dashed var(--line); border-radius: 8px;
  display: grid; place-items: center; color: var(--sub-soft); font-size: var(--fs-xs);
  text-align: center; padding: 18px; line-height: 1.6;
}

/* 联系方式列表 */
.contact-list { display: flex; flex-direction: column; gap: 30px; padding-top: 6px; }
.contact-item .label {
  font-size: var(--fs-xs); letter-spacing: .1em; color: var(--accent);
  font-weight: 650;
}
.contact-item .value { font-size: 16.5px; margin-top: 5px; color: var(--ink); }
.contact-item .value a { color: var(--ink); border-bottom: 1px solid var(--line); }
.contact-item .value a:hover { color: var(--accent); border-color: var(--accent); }
.contact-item .hint { font-size: var(--fs-sm); color: var(--sub); margin-top: 6px; max-width: 460px; }

/* 腾讯会议行 */
.meeting-row {
  margin-top: 8px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.meeting-num {
  font-family: var(--mono); font-size: 26px; font-weight: 650;
  letter-spacing: .04em; color: var(--ink); line-height: 1.2;
}
.copy-btn {
  font-family: inherit; font-size: 13.5px; color: var(--accent);
  background: var(--accent-lt); border: 1px solid transparent;
  border-radius: 6px; padding: 8px 14px; cursor: pointer;
  transition: all .15s ease; white-space: nowrap;
}
.copy-btn:hover { background: var(--accent-lt2); border-color: var(--accent); }
.copy-btn.copied { background: var(--accent); color: #fff; }

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .qr-card { max-width: 300px; margin: 0 auto; }
  .meeting-num { font-size: 22px; }
}

/* ---------- 17. CTA 区 ---------- */
.cta-band {
  margin: 0; padding: 64px 0; border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--accent-lt2), var(--bg));
}
.cta-band h2 { max-width: 620px; }
.cta-band .lead { margin-top: 14px; max-width: 620px; }
.cta-band .actions { margin-top: 28px; }

/* ---------- 17.5 CTA 区二维码 ---------- */
.cta-grid {
  display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center;
}
.cta-qr { text-align: center; }
.cta-qr img {
  width: 180px; height: 180px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; padding: 8px;
  box-shadow: var(--shadow-md);
}
.cta-qr-cap { margin-top: 10px; font-size: var(--fs-xs); color: var(--sub); }
@media (max-width: 800px) {
  .cta-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-qr { justify-self: start; }
}

/* ---------- 18. 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line); padding: 44px 0 52px;
  background: var(--bg-soft);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px;
  font-size: var(--fs-sm); color: var(--sub);
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--ink); }
.footer-col h4 {
  font-size: var(--fs-xs); letter-spacing: .1em; color: var(--sub-soft);
  font-weight: 650; text-transform: uppercase; margin-bottom: 12px;
}
.footer-col a { display: block; color: var(--sub); padding: 4px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: var(--fs-xs); color: var(--sub-soft);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- 19. 页头（内页） ---------- */
.page-head { padding: 60px 0 44px; border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 780px; }
.page-head .lead { margin-top: 16px; max-width: 700px; }
.crumbs { font-size: var(--fs-xs); color: var(--sub-soft); margin-bottom: 18px; }
.crumbs a { color: var(--sub-soft); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 8px; opacity: .6; }

/* ---------- 20. 打印 ---------- */
@media print {
  .site-header, .nav, .nav-toggle, .cta-band, .site-footer, .actions, .trust { display: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
  section { padding: 18pt 0; border-top: 1px solid #ccc; page-break-inside: avoid; }
  a { color: #000; text-decoration: underline; }
  .card, .case, .svc { break-inside: avoid; }
}

/* ---------- 21. 动效（尊重系统设置） ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
