/* 蜀都缘官网 · 页面样式
   色值一律取 tokens.css 变量（由 tokens.py 生成），本文件不写色值。
   字体策略：标题＝glyphc 转曲 SVG（渔阳体 W03，授权不含 Web Font 嵌入）；
   正文＝思源宋系统字体栈（OFL，访客机内回退）；小字＝思源黑栈。 */

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

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Serif SC", "Source Han Serif SC", "Source Han Serif CN",
               "Songti SC", "STSong", "SimSun", serif;
  font-size: 17px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; }

a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

.latin {
  font-family: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  letter-spacing: 0.3em;          /* §3.3 拉丁一律 0.3em 以上 */
  text-transform: uppercase;
}

.note {
  font-family: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
               "Microsoft YaHei", sans-serif;
  font-size: 13px;
  line-height: 1.7;
  color: var(--cha);
}

/* ── 页眉 ─────────────────────────────────────────── */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) clamp(24px, 6vw, 72px) 0;
}

.top .logo { width: clamp(140px, 14vw, 168px); height: auto; }  /* 横版屏幕宽 ≥140px（§2.4） */

.top-note {
  text-align: right;
  font-family: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
               "Microsoft YaHei", sans-serif;
  font-size: 13px;
  line-height: 1.7;
  color: var(--cha);
}

.top-note .latin { display: block; font-size: 13px; }

/* ── 版心 ─────────────────────────────────────────── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(24px, 6vw, 72px);
}

.sec { padding: clamp(72px, 12vh, 128px) 0; }

/* ── 首屏（仪式版：右题左文 + 朱印落款） ───────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(32px, 8vw, 96px);
  padding: clamp(56px, 10vh, 128px) 0 clamp(64px, 10vh, 112px);
}

.hero-left { max-width: 34em; }

.logo-shu { height: clamp(200px, 30vh, 320px); width: auto; margin-bottom: clamp(32px, 4vh, 48px); }

.brand-line {
  font-size: clamp(21px, 2.2vw, 25px);
  line-height: 1.8;
  color: var(--ink);
}

.hero-latin { margin-top: 24px; font-size: 13px; color: var(--cha); }

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vphrase { display: flex; flex-direction: column; align-items: center; }

.vphrase img {
  width: var(--vsize);
  height: var(--vsize);
  margin-bottom: calc(var(--vsize) * 0.06);   /* 竖排字距 0.06em（§3.3） */
}

.vphrase img:last-child { margin-bottom: 0; }

:root { --vsize: clamp(44px, 5.5vw, 57px); --seal: clamp(52px, 5vw, 64px); }

.seal {
  width: var(--seal);
  height: var(--seal);
  background: var(--zhu);                     /* 朱印：唯一实心色块（§5.2） */
  display: grid;
  place-items: center;
  margin-top: calc(var(--seal) * 0.6);        /* 印与题跋间距 0.6 印高 */
}

.seal img { width: 62%; height: 62%; }

/* ── 分隔金线（每节一条，长度 ≤ 内容区 70%） ───────── */
.rule {
  width: min(38%, 340px);
  height: 1px;
  margin: 0 auto;
  background: var(--line);
}

/* ── 节标题（glyphc 转曲，朱） ─────────────────────── */
.h2 {
  height: clamp(30px, 3.8vw, 38px);
  width: auto;
  margin-bottom: clamp(40px, 6vh, 64px);
}

/* ── 缘起 ─────────────────────────────────────────── */
.origin-grid {
  display: grid;
  grid-template-columns: minmax(160px, 260px) 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.mark { width: 100%; height: auto; }

.prose p { max-width: 34em; margin-bottom: 1em; }   /* 每行 ≤34 字（§3.4） */
.prose p:last-child { margin-bottom: 0; }

#yuanqi .note { margin-top: clamp(32px, 5vh, 48px); }

/* ── 我们做什么 ───────────────────────────────────── */
.lead {
  font-size: clamp(21px, 2.2vw, 25px);
  line-height: 1.8;
  margin-bottom: clamp(48px, 7vh, 72px);
}

.steps { list-style: none; }

.steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: clamp(16px, 3vw, 32px);
  padding: 28px 0;
}

.steps li + li { border-top: 1px solid var(--line); }

.no {
  font-family: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
               "Microsoft YaHei", sans-serif;
  font-size: 13px;
  color: var(--cha);
  padding-top: 5px;
}

.step-body h3 {
  font-weight: normal;
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 4px;
}

.step-body p { color: var(--yan); max-width: 34em; }

.close {
  margin-top: clamp(48px, 7vh, 72px);
  color: var(--yan);
}

/* ── 来喝茶（联系） ───────────────────────────────── */
.contact { text-align: center; }

.contact .h2 { margin-left: auto; margin-right: auto; }

.tel-label {
  font-family: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
               "Microsoft YaHei", sans-serif;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--cha);
  margin-bottom: 16px;
}

/* 电话：功能性数字 → 宋体（§3.5）；朱 · 点睛位（§4.2） */
.tel {
  display: inline-block;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  font-size: clamp(34px, 5.5vw, 57px);
  line-height: 1.25;
  letter-spacing: 0.05em;
  color: var(--zhu);
}

.who { margin-top: 28px; }

#lianxi .note { margin-top: 16px; }

/* ── 页脚 ─────────────────────────────────────────── */
.foot {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(48px, 8vh, 72px) clamp(24px, 6vw, 72px) clamp(56px, 8vh, 80px);
  text-align: center;
  font-family: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
               "Microsoft YaHei", sans-serif;
  font-size: 13px;
  line-height: 1.7;
  color: var(--cha);
}

.foot-latin { font-size: 13px; margin-bottom: 12px; }

.beian {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.beian a { color: var(--cha); }

/* 公安备案：官方图标在前、编号在后（beian.mps.gov.cn 要求） */
.gabaan img {
  display: inline-block;   /* 覆盖全局 img{display:block}，回到文字行内 */
  height: 16px;
  width: auto;
  margin-right: 4px;
  vertical-align: -3px;
}

/* ── 移动端 ───────────────────────────────────────── */
@media (max-width: 720px) {
  .hero {
    grid-template-columns: auto 1fr;
    gap: 32px;
  }

  .logo-shu { height: 180px; margin-bottom: 24px; }

  .hero-right { justify-self: end; }

  .origin-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .mark { max-width: 200px; margin: 0 auto; }

  .steps li { grid-template-columns: 36px 1fr; }
}
