/* ============ 老唐管理顾问 · 品牌网站样式（焕新版） ============ */
:root {
  --ink: #15202e;          /* 墨色（深蓝黑） */
  --ink-soft: #475264;     /* 次级文字 */
  --ink-faint: #8b95a4;    /* 弱化文字 */
  --paper: #f7f5f0;        /* 纸底 */
  --paper-2: #efece3;      /* 交错底色 */
  --card: #ffffff;         /* 卡片底 */
  --gold: #b8842e;         /* 主金 */
  --gold-deep: #946a1f;
  --gold-soft: #f2e8d2;
  --line: #e7e0d3;         /* 分隔线 */
  --shadow: 0 16px 40px rgba(21,32,46,.10);
  --shadow-sm: 0 6px 18px rgba(21,32,46,.07);
  --radius: 16px;
  --maxw: 1120px;

  /* 深色模式语义令牌 —— 此处为浅色值；深色模式的覆盖值见文件末尾 @media 块。
     必须先在 :root 声明浅色值，否则深浅切换时渐变会闪。 */
  --on-dark:        #f5efe2;   /* 深底主文字 */
  --on-dark-2:      #c3cad4;   /* 深底次级文字 */
  --on-dark-3:      #9aa5b3;   /* 深底弱化文字 */
  --on-dark-accent: #e6c877;   /* 深底金色高亮 */
  --surface-deep:    #15202e;   /* .stat / .quote 渐变起点 */
  --surface-deeper:  #1b2533;   /* .contact 渐变起点 */
  --surface-darkest: #11171f;   /* footer */
  --border-dark:   rgba(255,255,255,.12);
  --fill-dark:     rgba(255,255,255,.05);
  --gold-btn-text: #f5efe2;
  --line-gold:     #e3d3a6;    /* 金调边框 */
  --ink-2:         #2a394d;    /* 渐变次端点 */
  --nav-bg:        rgba(247,245,240,.88);
  --glow-gold:     rgba(184,132,46,.16);
  --glow-ink:      rgba(21,32,46,.06);
  --watermark:     rgba(21,32,46,.04);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.serif, h1, h2, h3, h4, .brand {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", "宋体", serif;
}

img { max-width: 100%; }
a { color: inherit; }

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

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}
.brand {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .5px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.brand .seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--surface-deep), var(--ink-2));
  color: #f3e9d2;
  font-size: 15px;
  border-radius: 9px;
  letter-spacing: 0;
  box-shadow: 0 4px 12px rgba(21,32,46,.25);
}
.brand small { color: var(--gold-deep); font-weight: 600; font-size: 12px; letter-spacing: 2px; }
.brand .brand-logo { width: 38px; height: 38px; border-radius: 50%; display: block; flex: 0 0 auto; box-shadow: 0 4px 12px rgba(21,32,46,.25); }
.nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-links a {
  text-decoration: none;
  font-size: 15px;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 9px;
  transition: all .18s;
  white-space: nowrap;
}
.nav-links a:hover { background: var(--gold-soft); color: var(--ink); }
.nav-links a.active { color: var(--gold-deep); font-weight: 600; }
.nav-links a.btn-mini {
  background: var(--ink); color: var(--on-dark); margin-left: 6px;
}
.nav-links a.btn-mini:hover { background: var(--gold-deep); color: #fff; }

/* 移动端汉堡按钮（桌面隐藏） */
.nav-toggle { display: none; }

/* ---------- 通用区块 ---------- */
section { padding: 76px 0; }
.section-alt { background: var(--paper-2); }
.eyebrow {
  display: inline-block;
  color: var(--gold-deep);
  font-size: 14px;
  letter-spacing: 4px;
  margin-bottom: 12px;
  font-weight: 600;
}
.section-title {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 14px;
}
.section-lead { color: var(--ink-soft); max-width: 720px; margin-bottom: 40px; }
.rule {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
  margin: 18px 0 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 100px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 88% -15%, var(--glow-gold), transparent 60%),
    radial-gradient(900px 420px at -10% 110%, var(--glow-ink), transparent 60%),
    var(--paper);
}
.hero::after {
  content: "庄敬自强";
  position: absolute;
  right: -28px;
  top: 44px;
  font-family: "Noto Serif SC","Songti SC","SimSun",serif;
  font-size: clamp(90px, 18vw, 200px);
  font-weight: 700;
  color: var(--watermark);
  letter-spacing: 8px;
  pointer-events: none;
  white-space: nowrap;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  border: 1px solid var(--line-gold);
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 22px;
  position: relative;
}
.hero h1 .accent { color: var(--gold-deep); }
.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-soft);
  max-width: 640px;
  margin-bottom: 36px;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.chip {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.chip b { color: var(--ink); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 15px 34px;
  border-radius: 11px;
  transition: all .2s;
  letter-spacing: .5px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--surface-deep), var(--ink-2));
  color: var(--on-dark);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--gold-deep), #b8842e); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--on-dark); }

/* ---------- 卡片网格 ---------- */
.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(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-gold); }
.card .no {
  font-family: "Noto Serif SC","Songti SC","SimSun",serif;
  font-size: 15px; color: var(--gold-deep); font-weight: 700; letter-spacing: 1px;
}
.card h3 { font-size: 19px; margin: 8px 0 10px; }
.card p { color: var(--ink-soft); font-size: 15px; }
.card .label { font-size: 13px; color: var(--ink-faint); letter-spacing: 1px; display:block; margin-bottom:4px; }

/* 问题卡：痛点 -> 方案 */
.pc .pain {
  font-weight: 600; color: var(--ink);
  padding-bottom: 12px; margin-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}
.pc .fix { color: var(--ink-soft); font-size: 14.5px; }
.pc .fix b { color: var(--gold-deep); }

/* 服务类型卡 */
.svc { position: relative; overflow: hidden; }
.svc .badge {
  position: absolute; top: 22px; right: 22px;
  font-size: 12px; color: var(--gold-deep);
  background: var(--gold-soft);
  padding: 4px 11px; border-radius: 999px; letter-spacing: 1px;
}
.svc h3 { margin-top: 2px; }

/* 为什么选我 */
.why .ico {
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-soft); border-radius: 13px;
  font-size: 25px; margin-bottom: 16px;
}

/* 业务详情列表 */
.detail {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 32px 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .22s, transform .22s;
}
.detail:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.detail-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.detail .dno {
  font-family: "Noto Serif SC","Songti SC","SimSun",serif;
  font-size: 26px; font-weight: 700; color: var(--gold);
  min-width: 44px;
}
.detail h3 { font-size: 21px; }
.detail-rows { margin-top: 18px; display: grid; gap: 12px; }
.drow { display: grid; grid-template-columns: 96px 1fr; gap: 14px; font-size: 15px; }
.drow .k { color: var(--gold-deep); font-weight: 600; }
.drow .v { color: var(--ink-soft); }

/* 实战记录时间线/章节 */
.chapter {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  padding: 34px 36px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
}
.chapter h3 { font-size: 23px; margin-bottom: 6px; }
.chapter .cn { color: var(--gold-deep); font-size: 14px; letter-spacing: 2px; font-weight: 700; display:block; margin-bottom: 6px; }
.chapter p { color: var(--ink-soft); margin: 14px 0 0; }
.chapter p.first { margin-top: 4px; }

/* 成果数据带 */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 8px; }
.stat {
  background: linear-gradient(150deg, var(--surface-deep), var(--ink-2));
  color: var(--on-dark);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat .v { font-family:"Noto Serif SC","Songti SC","SimSun",serif; font-size: 34px; font-weight: 800; color: var(--on-dark-accent); }
.stat .k { font-size: 14px; color: var(--on-dark-2); margin-top: 8px; letter-spacing: 1px; }

/* 说明书条目 */
.manual-card { padding: 34px 36px; }
.manual-card ul { list-style: none; margin-top: 6px; }
.manual-card li {
  position: relative;
  padding-left: 24px;
  margin: 12px 0;
  color: var(--ink-soft);
  font-size: 15.5px;
}
.manual-card li::before {
  content: "";
  position: absolute; left: 2px; top: 11px;
  width: 7px; height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}
.manual-card li b { color: var(--ink); }

/* 引用/座右铭 */
.quote {
  background: linear-gradient(150deg, var(--surface-deep), var(--ink-2));
  color: var(--on-dark);
  border-radius: var(--radius);
  padding: 48px 52px;
  position: relative;
  overflow: hidden;
}
.quote::before {
  content: "「";
  position: absolute; left: 18px; top: -6px;
  font-size: 120px; color: rgba(230,200,119,.18);
  font-family: "Noto Serif SC","Songti SC","SimSun",serif;
}
.quote p { font-size: 19px; line-height: 2; position: relative; }
.quote .src { color: var(--on-dark-2); font-size: 14px; margin-top: 16px; letter-spacing: 1px; }

/* 联系区 */
/* id 与 class 双写：contact/index.html 用的是 <section id="contact">（无 class），
   只写 .contact 会导致深色渐变从未生效，深色区块里的白字配浅色纸底，对比度仅 1.09:1。 */
.contact, #contact.contact {
  background: linear-gradient(140deg, var(--surface-deeper) 0%, #141c27 100%);
  color: var(--on-dark);
}
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.contact h2 { color: var(--on-dark); }
.contact .lead { color: var(--on-dark-2); margin-top: 12px; }
.contact-list { list-style: none; margin-top: 30px; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: baseline; }
.contact-list .k { color: var(--on-dark-3); min-width: 72px; font-size: 14px; letter-spacing: 1px; }
.contact-list .v { font-size: 17px; color: var(--on-dark); font-weight: 600; }
.contact-card {
  background: var(--fill-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 38px 34px;
  backdrop-filter: blur(4px);
}
.contact-card h3 { color: var(--on-dark); margin-bottom: 12px; }
.contact-card p { color: var(--on-dark-2); font-size: 15px; }
.contact-card .big {
  font-family: "Noto Serif SC","Songti SC","SimSun",serif;
  font-size: 30px; color: var(--on-dark-accent); font-weight: 700; letter-spacing: 1px; margin: 18px 0 4px;
}
.contact-card .note { font-size: 13px; color: var(--on-dark-3); }
/* 深色区块内的 eyebrow：必须走变量。
   曾用内联 style="color:#e6c877"，在白底上仅 1.63:1（远低于 AA 的 4.5:1），
   且内联样式会绕过 @media，深色模式下也无法调亮。 */
.eyebrow-light { color: var(--on-dark-accent); }

/* 页脚 */
footer {
  background: var(--surface-darkest);
  color: var(--on-dark-3);
  padding: 46px 0 30px;
  font-size: 14px;
}
footer .wrap { display: block; }
footer a { color: var(--on-dark-2); text-decoration: none; }
footer a:hover { color: var(--on-dark-accent); }

/* 面包屑/内页头 */
.page-head {
  padding: 80px 0 54px;
  background:
    radial-gradient(900px 400px at 80% -20%, var(--glow-gold), transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.page-head .crumb { font-size: 13px; color: var(--ink-faint); letter-spacing: 2px; margin-bottom: 16px; }
.page-head h1 { font-size: clamp(30px, 4.5vw, 46px); margin-bottom: 14px; }
.page-head .sub { color: var(--ink-soft); max-width: 680px; }

/* 正文排版（实战记录叙述） */
.prose p { margin: 18px 0; color: var(--ink-soft); font-size: 16px; }
.prose p:first-child { margin-top: 0; }
.callout {
  background: var(--gold-soft);
  border-left: 4px solid var(--gold);
  padding: 22px 26px;
  border-radius: 0 12px 12px 0;
  color: var(--ink);
  margin: 28px 0;
}
.callout b { color: var(--gold-deep); }

/* =============================================================================
   以下为站点重组新增：案例 / 作品 / 产品 / 隐私政策 / 多列页脚
   全部复用上方 :root 变量，不引入新色值
   ========================================================================== */

/* ---------- 案例卡 ---------- */
.case-card { position: relative; }
.case-status {
  display: inline-block;
  font-size: 12px; letter-spacing: 1px; font-weight: 600;
  padding: 4px 12px; border-radius: 999px;
}
.case-status.is-done { color: var(--gold-deep); background: var(--gold-soft); border: 1px solid var(--line-gold); }
.case-status.is-doing { color: var(--on-dark); background: var(--ink); }
.case-meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  margin: 12px 0 16px;
  font-size: 13px; color: var(--ink-faint); letter-spacing: .5px;
}
.case-meta span { white-space: nowrap; }

/* ---------- 作品卡 ---------- */
.wk-card { display: flex; flex-direction: column; }
.wk-kind {
  display: inline-block; align-self: flex-start;
  font-size: 12px; color: var(--gold-deep); letter-spacing: 2px;
  margin-bottom: 10px; font-weight: 600;
}
.wk-card .wk-body { color: var(--ink-soft); font-size: 15px; flex: 1; }
.wk-card .wk-link {
  margin-top: 18px; font-size: 14px; color: var(--gold-deep);
  font-weight: 600; text-decoration: none;
}
.wk-card .wk-link:hover { text-decoration: underline; }

/* ---------- 截图占位（虚线框，明确非成品）---------- */
.shot {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: var(--ink-faint); font-size: 14px; letter-spacing: 1px;
  padding: 20px;
}
.shot-cap { font-size: 13px; color: var(--ink-faint); text-align: center; margin-top: 10px; }
.shots-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ---------- 内容筹备中占位 ---------- */
.coming {
  border: 1.5px dashed var(--line);
  border-radius: 12px;
  background: var(--paper);
  padding: 20px 24px;
  color: var(--ink-soft); font-size: 14.5px;
}
.coming a { color: var(--gold-deep); font-weight: 600; }

/* ---------- 长页目录 ---------- */
.toc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.toc h4 { font-size: 14px; color: var(--gold-deep); letter-spacing: 2px; margin-bottom: 14px; }
.toc ol { list-style: none; display: grid; gap: 4px; }
.toc li { margin: 0; }
.toc a {
  display: block; padding: 7px 12px;
  text-decoration: none; color: var(--ink-soft); font-size: 15px;
  border-left: 2px solid transparent; border-radius: 0 6px 6px 0;
  transition: all .18s;
}
.toc a:hover { border-left-color: var(--gold); background: var(--gold-soft); color: var(--ink); }

/* ---------- 功能特性网格 ---------- */
.feat ul { list-style: none; }
.feat li {
  position: relative;
  padding-left: 24px;
  margin: 10px 0;
  color: var(--ink-soft); font-size: 15px;
}
.feat li::before {
  content: ""; position: absolute; left: 2px; top: 11px;
  width: 7px; height: 7px; background: var(--gold);
  transform: rotate(45deg);
}
.feat li b { color: var(--ink); }

/* ---------- 规格表 ---------- */
.spec { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.spec th, .spec td { border: 1px solid var(--line); padding: 13px 16px; text-align: left; vertical-align: top; }
.spec th {
  background: var(--gold-soft); color: var(--gold-deep);
  font-weight: 600; font-size: 14px; letter-spacing: 1px; white-space: nowrap;
}
.spec td { color: var(--ink-soft); background: var(--card); }

/* ---------- 时间线 ---------- */
.tl { border-left: 2px solid var(--line); margin-left: 8px; }
.tl-item { position: relative; padding: 0 0 26px 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -7px; top: 8px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--gold);
}
.tl-item h4 { font-size: 17px; margin-bottom: 4px; }
.tl-item p { color: var(--ink-soft); font-size: 15px; margin-top: 4px; }

/* ---------- 隐私政策正文 ---------- */
.legal { max-width: 820px; }
.legal .updated { color: var(--ink-faint); font-size: 13px; margin-top: 10px; }
.legal h2 {
  font-size: 22px; margin-top: 52px; margin-bottom: 14px;
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.legal h2 .n { font-size: 15px; color: var(--gold); letter-spacing: 1px; }
.legal h3 { font-size: 17px; margin-top: 28px; margin-bottom: 8px; }
.legal p { color: var(--ink-soft); font-size: 15.5px; margin: 14px 0; }
.legal ol, .legal ul { padding-left: 22px; margin: 14px 0; }
.legal li { color: var(--ink-soft); font-size: 15.5px; margin: 8px 0; }
.legal li b { color: var(--ink); }
.legal .legal-toc { margin: 34px 0 8px; }

/* ---------- 多列页脚 ---------- */
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr .9fr 1fr;
  gap: 32px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.foot-col h4 {
  color: var(--on-dark-accent); font-size: 13px; letter-spacing: 2px;
  font-weight: 600; margin-bottom: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
}
.foot-col a, .foot-col span {
  display: block; color: var(--on-dark-3); font-size: 14px;
  text-decoration: none; margin: 8px 0; line-height: 1.7;
}
.foot-col a:hover { color: var(--on-dark-accent); }
.foot-brand p { color: var(--on-dark-3); font-size: 14px; margin-top: 12px; line-height: 1.8; }
.foot-brand .brand { font-size: 17px; color: var(--on-dark); }
.foot-brand .brand small { color: var(--on-dark-accent); }
.foot-legal {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px 18px; padding-top: 22px;
  color: var(--on-dark-3); font-size: 13px;
}
.foot-legal a { color: #a9b4c1; text-decoration: none; margin: 0; }
.foot-legal a:hover { color: var(--on-dark-accent); }
.icp { white-space: nowrap; }
.foot-tx { color: var(--on-dark-3); font-size: 12px; }

/* ---------- 图片 ---------- */
/* 配图 + 图注。通栏排版，靠 figcaption 说明图的内容，
   避免图片在 1120px 容器里被限宽成一小块、两侧留白过多。 */
.photo-figure { margin: 26px 0 34px; }
.photo-figure .img-frame { width: 100%; }
.photo-figure figcaption {
  font-size: 13px; color: var(--ink-faint);
  margin-top: 12px; text-align: center; letter-spacing: .5px;
}

.photo-round {
  width: 190px; height: 190px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-soft);
  box-shadow: var(--shadow);
  display: block;
}
.img-frame {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--card);
}
.img-frame img { display: block; width: 100%; height: auto; }

/* 客户 logo：约束必须写在「内容盒」上。
   全局有 box-sizing: border-box，若height 与 padding 同写在一处，
   padding 会吃掉内容高度，400×396 的图被压进 48×38 的框 → 比例从 1.01 变 1.27（横向拉伸 26%）。
   做法：外层 .client-logo-badge 管白底与描边，内层 img 只按高度定尺寸、padding: 0。 */
.client-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px;
  flex: 0 0 auto;
  line-height: 0;
}
.client-logo {
  height: 40px;
  width: auto;
  max-width: none;
  padding: 0;
  display: block;
  opacity: .95;
}
/* logo + 受聘说明横向排布。用 flex 而不是内联 style，且给文字设 min-width:0
   —— 否则长中文在弹性布局里会被压成竖排（每行一字）。 */
.client-line {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 16px 0 6px;
}
.client-note {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.7;
  min-width: 0;
}
.client-note .dim { color: var(--ink-faint); font-size: 12.5px; }

/* ---------- 关于页头部：头像在左、文字在右（参照原站《使用说明书》布局） ---------- */
.about-head {
  display: flex;
  align-items: center;
  gap: 34px;
}
.about-head .photo-round {
  width: 148px; height: 148px;
  flex: 0 0 auto;
}
.about-head .about-text { min-width: 0; }
@media (max-width: 620px) {
  .about-head { flex-direction: column; align-items: flex-start; gap: 22px; }
  .about-head .photo-round { width: 118px; height: 118px; }
}

/* ---------- 响应式增补 ---------- */
@media (max-width: 860px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .shots-3 { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .foot-grid { grid-template-columns: 1fr; }
  .case-meta { gap: 6px 14px; }
  .legal h2 { margin-top: 42px; }
  .toc { padding: 22px 20px; }
  .spec th, .spec td { padding: 10px 12px; font-size: 14px; }
}

/* ---------- 滚动渐显（安全：无 JS / 偏好减少动效时内容默认可见） ---------- */
.reveal { opacity: 1; }
body.reveal-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
body.reveal-ready .reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero::after { font-size: 120px; opacity: .8; }
}

@media (max-width: 860px) {
  /* 移动端汉堡导航（断点由 780px 提前至 860px：导航项从 3 增至 6 项，
     780px 下仅余约 100px 余量，中文字宽差异下有溢出风险） */
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; margin-left: auto;
    background: transparent; border: 1px solid var(--line); border-radius: 11px;
    cursor: pointer; padding: 0;
  }
  .nav-toggle span {
    display: block; width: 20px; height: 2px; background: var(--ink);
    border-radius: 2px; margin: 0 auto; transition: transform .25s, opacity .25s;
  }
  .nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 10px 20px 18px; gap: 4px;
    max-height: 0; overflow: hidden; transition: max-height .32s ease;
    box-shadow: var(--shadow-sm);
  }
  .nav.menu-open .nav-links { max-height: 520px; }
  .nav-links a { width: 100%; text-align: left; padding: 13px 14px; }
  .nav-links a.btn-mini { margin-left: 0; text-align: center; margin-top: 6px; }
}

@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .stat { padding: 24px 16px; }
  .stat .v { font-size: 26px; }
  .brand small { display: none; }
  section { padding: 54px 0; }
  .hero { padding: 72px 0 64px; }
  .hero::after { font-size: 72px; right: -8px; top: 18px; }
  .drow { grid-template-columns: 1fr; gap: 2px; }
  .drow .k { font-size: 13px; }
  .chapter, .manual-card, .detail { padding: 26px 22px; }
  .quote { padding: 36px 28px; }
  .page-head { padding: 60px 0 40px; }
  .btn { padding: 13px 26px; width: 100%; text-align: center; }
  .hero-cta { flex-direction: column; }
}

@media (max-width: 380px) {
  .stats { grid-template-columns: 1fr; }
  .wrap { padding: 0 18px; }
}

/* =============================================================================
   深色模式（prefers-color-scheme: dark）
   -----------------------------------------------------------------------------
   刻意不用 light-dark()：访客多用微信内置浏览器与国产安卓机，老版本内核对
   light-dark() 是「静默失效」（不报错、直接回退浅色值），会造成深色模式下
   白字白底 —— 正是本节要修的病。@media 方案行为明确，且纯 CSS、零 JS。
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    /* 主令牌反转 */
    --ink:        #e8eaed;   /* 正文主色14.51:1 */
    --ink-soft:   #b0b8c4;   /* 次级文字  8.75:1 */
    --ink-faint:  #8b95a4;   /* 弱化文字  5.77:1 */
    --paper:      #141a22;   /* 页面主底（带蓝味，非纯黑）*/
    --paper-2:    #1e2733;   /* 交错底 */
    --card:       #212936;   /* 卡片底 */

    /* 金色系必须调亮：原 --gold-deep #946a1f 在深底上不可见 */
    --gold:       #d9a94a;   /* 装饰图形 8.10:1 */
    --gold-deep:  #e8be6a;   /* 标题强调 10.00:1 */
    --gold-soft:  #3a3220;   /* badge 底，承 --gold-deep 7.24:1 */

    --line:       #3d4757;   /* 边框 1.86:1 */
    --shadow:     0 16px 40px rgba(0,0,0,.55);
    --shadow-sm:  0 6px 18px rgba(0,0,0,.40);

    /* 语义令牌深色值 */
    --on-dark:        #f5efe2;   /* 深底主文字 10.23:1 */
    --on-dark-2:      #b8c0cc;   /* 深底次级   7.68:1 */
    --on-dark-3:      #97a1af;   /* 深底弱化   5.39:1 */
    --on-dark-accent: #f0d089;   /* 深底金字   9.45:1 */
    --surface-deep:    #232c39;   /* .stat / .quote */
    --surface-deeper:  #1b2533;   /* .contact */
    --surface-darkest: #0d1219;   /* footer 最深 */
    --border-dark:   rgba(255,255,255,.14);
    --fill-dark:     rgba(255,255,255,.06);
    --gold-btn-text: #14181f;    /* 金底上的深字 8.24:1 */
    --line-gold:     #6b5730;
    --ink-2:         #2e3a4d;
    --nav-bg:        rgba(20,26,34,.86);
    --glow-gold:     rgba(217,169,74,.11);
    --glow-ink:      rgba(0,0,0,.30);
    --watermark:     rgba(232,190,138,.055);  /* 黑水印在深底上是黑斑，必须转淡金 */
  }

  /* ---- 1. hero / page-head 光晕与水印 ---- */
  .page-head {
    background:
      radial-gradient(900px 400px at 80% -20%, var(--glow-gold), transparent 60%),
      var(--paper);
  }

  /* ---- 2. 品牌徽章：var(--ink) 作渐变起点，深色下会变浅 → 浅渐变配浅字看不见 ---- */
  .brand .seal {
    background: linear-gradient(135deg, #2a394d, #3a4a61);
    color: var(--on-dark);
  }

  /* ---- 3. 按钮 ---- */
  .btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-deep), var(--gold));
    color: var(--gold-btn-text);
  }
  .btn-ghost:hover { background: var(--ink); color: var(--on-dark); }
  .nav-links a.btn-mini { background: var(--ink); color: var(--on-dark); }
  .nav-links a.btn-mini:hover { background: var(--gold); color: var(--gold-btn-text); }

  /* ---- 4. quote 装饰符（「 符号需同步提亮）---- */
  .quote::before { color: rgba(240,208,137,.15); }

  /* ---- 5. 占位框 / 规格表 / 时间线 ---- */
  .spec td { background: var(--card); }
  .tl { border-left-color: var(--line); }
  .tl-item::before { background: var(--paper); border-color: var(--gold); }

  /* ---- 6. 客户 logo 白衬在深底上略刺眼，加一圈金调描边压住 ---- */
  .client-logo-badge { border-color: var(--line-gold); }

  /* ---- 7. 位图轻微压暗，避免浅色插画与头像在深底上刺眼 ----
        SVG 徽标不压暗；头像/插画/客户 logo 都保留原亮度以确保可辨识 */
  img:not(.brand-logo) { filter: brightness(.92) contrast(.97); }
  .brand-logo { filter: none; }
}
