/* LyraPass 官网 · 壁龛插花 —— 灰泥、松木、鸢尾蓝、青铜。纯静态，无脚本，无外部资源。 */

:root {
  color-scheme: light;
  --white: #fff;          /* 只用于主按钮字色，见 .btn-primary 处的说明 */
  --plaster: #e7e2d6;
  --plaster-deep: #ddd7c8;
  --ash: #b8b09f;
  --pine: #6e665b;
  --iris: #4f46e5;
  --iris-deep: #3730a3;
  --iris-light: #818cf8;
  --bronze: #2a2f28;
  --ink: #1a1a18;
  --ink-2: #4a473f;
  --wood: #3b332c;
  --wood-edge: #2c2520;
  --leaf: #6f7a5c;
  --leaf-deep: #4e5842;
  --line: #a9a294;
  --line-soft: #cbc4b4;

  --serif: "Songti SC", "STSong", "Hiragino Mincho ProN", "Noto Serif CJK SC",
    "Source Han Serif SC", "SimSun", "Iowan Old Style", "Palatino Linotype", "Baskerville",
    Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Segoe UI", system-ui, sans-serif;

  /* 字阶：十级。左列是 token，右列是它在页面上负责的角色。
     基准是 html 的 17px（≤560px 降 16px），下面的 rem 都相对它。 */
  --t-micro: 0.72rem;                          /* 加宽字距的小标签：导航副名、徽章、表头、页脚链接 */
  --t-label: 0.8rem;                           /* 小号说明与按钮文字 */
  --t-small: 0.9rem;                           /* 次要正文：能力列表、来源说明、长文表格、页脚 */
  --t-lede:  1.0625rem;                        /* 略大于正文：导语、插花标签名、左栏状态 */
  --t-title: 1.2rem;                           /* 三级标题与条目名 */
  --t-head:  1.6rem;                           /* 二级标题：版本名、长文 h2、如实告知每一条 */
  --t-glyph: clamp(1.8rem, 3vw, 2.4rem);       /* 真/副/体/空 的序号巨字 */
  --t-section: clamp(1.9rem, 3.4vw, 2.75rem);  /* 章节标题 */
  --t-page: clamp(2.4rem, 5vw, 3.75rem);       /* 长文页 h1 */
  --t-hero: clamp(3.25rem, 7.4vw, 6rem);       /* 首屏 h1 */

  --rail: 15rem;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --measure: 66ch;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  font: 17px/1.75 var(--sans);
  color: var(--ink);
  background-color: var(--plaster);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.25 0 0 0 0 0.22 0 0 0 0 0.16 0 0 0 0.16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--ash) var(--plaster);
}

body { margin: 0; min-height: 100vh; }

::selection { background: var(--iris); color: var(--plaster); }
:focus-visible { outline: 2px solid var(--iris); outline-offset: 3px; }

/* 跳过左栏直达正文：只有键盘焦点能把它拉下来，鼠标用户永远看不到。 */
.skip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  padding: 0.85rem 1.4rem;
  font-size: var(--t-micro);
  letter-spacing: 0.22em;
  text-decoration: none;
  color: var(--plaster);
  background: var(--ink);
  transform: translateY(-120%);
  transition: transform 0.25s var(--ease-out);
}
.skip:focus { transform: none; }
/* 正文里的链接用鸢尾蓝这一唯一强调色标出；导航、页脚、按钮、返回各自覆写 color。
   原先继承正文色 + 土灰下划线（对比度 1.67）在灰泥底上几乎看不见，等于没有可点提示。 */
a { color: var(--iris); text-decoration-color: var(--iris-light); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--iris); }
input, textarea { caret-color: var(--iris); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
  letter-spacing: 0.01em;
}
h1 { text-wrap: balance; }
.nb { display: inline-block; }

p { margin: 0; }
p + p { margin-top: 1em; }

/* ---------- 壳：左侧栏 + 内容 ---------- */

.shell {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  min-height: 100vh;
}

.rail {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  border-right: 1px solid var(--line-soft);
}

.mark {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}
.mark-icon { display: block; width: 2.25rem; height: 2.25rem; border-radius: 0.5rem; }
.mark picture { display: contents; }
.mark-kicker { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 10.5px; letter-spacing: 0.12em; color: var(--ink-2); }
.mark-name {
  font-family: var(--serif);
  font-size: var(--t-head);
  letter-spacing: 0.32em;
  line-height: 1;
}
.mark-sub {
  font-size: var(--t-micro);
  letter-spacing: 0.28em;
  color: var(--ink-2);
}

.nav {
  list-style: none;
  margin: 3.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}
.nav a {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--t-label);
  letter-spacing: 0.28em;
  text-decoration: none;
  color: var(--ink-2);
}
.nav a::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border: 1px solid var(--ink-2);
  border-radius: 50%;
  transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::before { border-color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::before { background: var(--ink); border-color: var(--ink); }

.rail-note {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  font-size: var(--t-label);
  line-height: 1.6;
  color: var(--ink-2);
}
.rail-note strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--t-lede);
  color: var(--ink);
  margin: 0.2rem 0 0.6rem;
}
.rail-note a { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; color: var(--iris); text-decoration: none; font-size: var(--t-micro); letter-spacing: 0.22em; }
.rail-note a svg { width: 1rem; height: 1rem; }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  min-height: 3.25rem;
  padding: 0 1.4rem 0 1.6rem;
  font-family: var(--sans);
  font-size: var(--t-label);
  letter-spacing: 0.26em;
  text-decoration: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out), border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; transition: transform 0.35s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
/* 主按钮字色是纯白，不是灰泥：并排比过，灰泥（6.55）在鸢尾蓝上明显发灰，
   主行动的分量被削掉一截；纯白 8.47。这是全站唯一一处纯白，只服务这一个按钮。 */
.btn-primary { background: var(--iris); border-color: var(--iris); color: var(--white); }
.btn-primary:hover { background: var(--iris-deep); border-color: var(--iris-deep); }
.btn-ghost:hover { background: var(--plaster-deep); }

/* ---------- 首屏：壁龛 ---------- */

.alcove {
  position: relative;
  background:
    radial-gradient(110% 80% at 72% 28%, rgba(255, 252, 244, 0.42), transparent 62%),
    radial-gradient(80% 70% at 8% 96%, rgba(74, 71, 63, 0.14), transparent 60%);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 8fr) 4rem;
  min-height: 100vh;
  padding: clamp(3rem, 9vh, 6.5rem) 0 0 var(--gutter);
  overflow: hidden;
  isolation: isolate;
}

.alcove::after {
  /* 台面 */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4.5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 35%, rgba(0, 0, 0, 0.22)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.18)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.02 0.6' numOctaves='2' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.9 0 0 0 0 0.8 0 0 0 0 0.6 0 0 0 0.14 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    var(--wood);
  background-size: auto, auto, 160px 160px, auto;
  border-top: 3px solid var(--wood-edge);
  box-shadow: inset 0 6px 10px -6px rgba(0, 0, 0, 0.45);
  z-index: 0;
}

.alcove-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 36rem;
  padding: 0 2rem 8rem 0;
}

.alcove h1 {
  font-size: var(--t-hero);
  line-height: 1.08;
  letter-spacing: 0.04em;
  margin: 0 0 1.75rem -0.05em;
}
.alcove h1 em { font-style: normal; color: var(--iris); }

.lede {
  font-size: var(--t-lede);
  max-width: 30rem;
  color: var(--ink-2);
}
.lede strong { color: var(--ink); font-weight: 500; }

.hero-pull {
  margin: 1.5rem 0 0;
  max-width: 24rem;
  color: var(--pine);
  font-family: var(--serif);
  font-size: var(--t-title);
  line-height: 1.45;
}
.hero-pull strong { color: var(--iris); font-weight: 400; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.5rem;
}
.actions .btn { min-width: 15.5rem; }

.status-line {
  margin-top: 1.5rem;
  font-size: var(--t-label);
  text-wrap: pretty;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.status-line::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.4rem;
  border: 1px solid var(--ink-2);
  border-radius: 50%;
  flex: none;
}

.vertical {
  position: relative;
  z-index: 2;
  justify-self: center;
  align-self: start;
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: var(--t-title);
  letter-spacing: 0.5em;
  color: var(--ink);
  padding-bottom: 1rem;
}
.vertical::after {
  content: "";
  display: block;
  width: 1px;
  height: 2.5rem;
  background: var(--ink);
  margin: 1.25rem auto 0;
}

/* 插花 */

.arrangement {
  position: relative;
  z-index: 1;
  align-self: end;
  width: min(100%, 44rem);
  justify-self: center;
  margin: 0 0 1.5rem;
}
.arrangement svg { display: block; width: 100%; height: auto; overflow: visible; }

.st-trunk { fill: var(--pine); }
.st-bark { fill: none; stroke: var(--bronze); stroke-width: 1.2; stroke-linecap: round; opacity: 0.55; }
.st-twig { fill: none; stroke: var(--pine); stroke-width: 3; stroke-linecap: round; }
.st-needle { fill: none; stroke: var(--leaf-deep); stroke-width: 1.4; stroke-linecap: round; }
.st-stem { fill: none; stroke: var(--leaf-deep); stroke-width: 2.2; stroke-linecap: round; }
.st-leaf { fill: var(--leaf); }
.st-petal { fill: var(--iris); }
.st-petal-lt { fill: var(--iris-light); }
.st-petal-line { fill: none; stroke: var(--iris-deep); stroke-width: 0.8; opacity: 0.7; }
.st-bowl-water { fill: #46503f; opacity: 0.85; }
.st-bowl-foot { fill: #1c201b; }
.st-lead { fill: none; stroke: var(--ink-2); stroke-width: 1; }
.st-dot { fill: var(--ink-2); }
.st-cloud { fill: none; stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 4; }

.g-shin, .g-soe, .g-tai { transition: opacity 0.45s var(--ease-out); }

/* 标签：带引线的四个注记 */
.notes { position: absolute; inset: 0; pointer-events: none; }
.note {
  position: absolute;
  pointer-events: auto;
  display: grid;
  gap: 0.15rem;
  max-width: 12rem;
  cursor: default;
  transition: opacity 0.45s var(--ease-out);
}
.note b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--t-lede);
  letter-spacing: 0.3em;
  color: var(--ink);
  line-height: 1.2;
}
.note b span { font-family: var(--sans); font-size: var(--t-micro); letter-spacing: 0.22em; color: var(--ink-2); margin-left: 0.2em; }
.note small {
  text-wrap: pretty;
  font-size: var(--t-label);
  line-height: 1.5;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
.note-shin { left: 0; top: 29.5%; }
.note-soe { left: 0; top: 55.5%; }
.note-tai { right: 0; top: 73%; text-align: right; max-width: 7.5rem; }
.note-ku { left: 64%; top: 7.5%; }
.note-ku b { color: var(--ink-2); }
/* 另外三条注记的引线走到枝上，落在一个实心点里。空的引线垂下去之后就没有了——
   它不指向任何东西，所以也不给它终点。这是全站唯一一条会消失的线。 */
.note-ku::after {
  content: "";
  display: block;
  width: 1px;
  height: 3.75rem;
  margin: 1.1rem 0 0 0.2rem;
  background: linear-gradient(to bottom, var(--ink-2), rgba(74, 71, 63, 0));
}

/* 悬停：一条线亮，其余退淡 */
.arrangement:has(.note-shin:hover) :is(.g-soe, .g-tai, .note-soe, .note-tai, .note-ku),
.arrangement:has(.note-soe:hover) :is(.g-shin, .g-tai, .note-shin, .note-tai, .note-ku),
.arrangement:has(.note-tai:hover) :is(.g-shin, .g-soe, .note-shin, .note-soe, .note-ku),
.arrangement:has(.note-ku:hover) :is(.g-shin, .g-soe, .g-tai, .note-shin, .note-soe, .note-tai) {
  opacity: 0.28;
}

/* 入场：枝条生长，鸢尾与注记依次现身 */
@media (prefers-reduced-motion: no-preference) {
  .g-shin { clip-path: inset(100% 0 0 0); animation: grow 1.6s var(--ease-out) 0.2s forwards; }
  .g-soe, .g-tai { opacity: 0; transform: translateY(14px); animation: rise 0.9s var(--ease-out) forwards; }
  .g-soe { animation-delay: 1.1s; }
  .g-tai { animation-delay: 1.35s; }
  .note { opacity: 0; animation: fade 0.8s var(--ease-out) forwards; }
  .note-shin { animation-delay: 1.5s; }
  .note-soe { animation-delay: 1.75s; }
  .note-tai { animation-delay: 1.95s; }
  .note-ku { animation-delay: 2.2s; }
  .alcove-copy > * { opacity: 0; transform: translateY(12px); animation: rise 0.9s var(--ease-out) forwards; }
  .alcove-copy > :nth-child(1) { animation-delay: 0.1s; }
  .alcove-copy > :nth-child(2) { animation-delay: 0.25s; }
  .alcove-copy > :nth-child(3) { animation-delay: 0.4s; }
  .alcove-copy > :nth-child(4) { animation-delay: 0.55s; }
}
@keyframes grow { to { clip-path: inset(-5% 0 0 0); } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- 章节 ---------- */

.section {
  padding: clamp(4rem, 9vw, 7.5rem) var(--gutter);
  border-top: 1px solid var(--line-soft);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 2rem var(--gutter);
  align-items: end;
  margin-bottom: 3rem;
}
.section h2 { font-size: var(--t-section); }
.section-head p { max-width: 34rem; color: var(--ink-2); }

/* 三条线，一面空墙 */
.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.lines li {
  display: grid;
  grid-template-columns: 5rem minmax(0, 14rem) minmax(0, 1fr);
  gap: 1rem var(--gutter);
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.lines .glyph {
  font-family: var(--serif);
  font-size: var(--t-glyph);
  line-height: 1;
  color: var(--pine);
}
.lines .glyph.is-ku { color: var(--ash); }
.lines h3 { font-size: var(--t-title); }
.lines h3 span { display: block; font-family: var(--sans); font-size: var(--t-micro); letter-spacing: 0.26em; color: var(--ink-2); margin-top: 0.4rem; }
.lines p { color: var(--ink-2); max-width: var(--measure); }
.lines p strong { color: var(--ink); font-weight: 500; }

/* 能放什么 */
.kinds {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.kinds li {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: var(--t-title);
}
.kinds li small { font-family: var(--sans); font-size: var(--t-micro); color: var(--ink-2); letter-spacing: 0.04em; }

/* 版本 */
.editions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.edition {
  padding: 2.25rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
}
.edition + .edition { padding-left: var(--gutter); border-left: 1px solid var(--line); }
.edition h3 { font-size: var(--t-head); }
.edition .fee {
  display: inline-block;
  margin: 0.9rem 0 1.4rem;
  padding: 0.3rem 0.7rem;
  font-size: var(--t-micro);
  letter-spacing: 0.24em;
  border: 1px solid var(--ink);
}
.edition .fee.is-free { background: var(--ink); color: var(--plaster); }
.edition p { color: var(--ink-2); padding-right: 1.5rem; }
.edition p strong { color: var(--ink); font-weight: 500; }
.edition ul { margin: 1.25rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; font-size: var(--t-small); }
.edition li { display: flex; gap: 0.7rem; align-items: baseline; }
.edition li::before { content: ""; flex: none; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--pine); transform: translateY(-0.1rem); }
.edition li.is-plain::before { background: transparent; border: 1px solid var(--pine); }

/* 如实告知 */
.candor {
  background: var(--plaster-deep);
}
.candor-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 3rem var(--gutter);
  align-items: start;
}
.candor h2 { font-size: var(--t-section); }
.candor .aside { color: var(--ink-2); max-width: 26rem; margin-top: 1.5rem; }
.candor ol { list-style: none; margin: 0; padding: 0; counter-reset: candor; }
.candor li {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0 var(--gutter);
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
}
/* 序号沿用「真 副 体 空」那一档巨字：同一个字号、同一支宋体、同一个松木色。
   list-style 关掉之后由 counter 自己画，读屏仍然读得到 ol/li 的结构。 */
.candor li::before {
  counter-increment: candor;
  content: counter(candor, simp-chinese-informal);
  font-family: var(--serif);
  font-size: var(--t-glyph);
  line-height: 1;
  color: var(--pine);
}
.candor li strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--t-head);
  line-height: 1.3;
  margin-bottom: 0.6rem;
}
.candor li p { color: var(--ink-2); max-width: 40rem; }

/* 迁移 */
.sources { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gutter); border-top: 1px solid var(--line); }
.sources li { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.sources b { font-family: var(--serif); font-weight: 400; font-size: var(--t-title); }
.sources span { color: var(--ink-2); font-size: var(--t-small); }
.import-rule { margin-top: 2.5rem; max-width: var(--measure); color: var(--ink-2); }
.import-rule strong { color: var(--ink); font-weight: 500; }

/* 下载 */
.downloads { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.downloads li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.downloads b { font-weight: 500; }
.downloads b small { font-weight: 400; color: var(--ink-2); margin-left: 0.6rem; font-size: var(--t-small); }
.downloads .soon {
  font-size: var(--t-micro);
  letter-spacing: 0.24em;
  color: var(--ink-2);
  border: 1px dashed var(--line);
  padding: 0.35rem 0.8rem;
}
.download-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem var(--gutter); }
.download-grid h3 { font-size: var(--t-title); margin-bottom: 1rem; }
.download-note { margin-top: 2.5rem; color: var(--ink-2); max-width: 30rem; }
.download-note .btn { margin-top: 1.5rem; }

/* ---------- 页脚 ---------- */
.foot {
  padding: 3rem var(--gutter) 3.5rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem var(--gutter);
  align-items: end;
  font-size: var(--t-small);
  color: var(--ink-2);
}
.foot-links { display: flex; flex-wrap: wrap; gap: 1.75rem; font-size: var(--t-micro); letter-spacing: 0.22em; }
.foot-links a { text-decoration: none; color: var(--ink); }
/* 中文短语撑得开 0.22em，邮箱地址撑不开：拉开之后 support@looke.cloud 要一个字母一个字母地拼。 */
.foot-links a[href^="mailto:"] { letter-spacing: 0.06em; }
.foot-links a:hover { color: var(--iris); }
.foot p { max-width: 36rem; }

/* ---------- 长文页（隐私 · 条款） ---------- */
.reading {
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter) clamp(4rem, 8vw, 6rem);
  max-width: calc(var(--measure) + 2 * var(--gutter));
}
.reading h1 { font-size: var(--t-page); letter-spacing: 0.03em; }
.reading .meta {
  margin: 1.25rem 0 2.5rem;
  font-size: var(--t-label);
  letter-spacing: 0.04em;
  color: var(--ink-2);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.reading .intro { font-size: var(--t-title); color: var(--ink-2); }
.reading .intro strong { color: var(--ink); font-weight: 500; }
.reading h2 {
  font-size: var(--t-head);
  margin: 3.5rem 0 1.1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.reading h3 { font-size: var(--t-title); margin: 2rem 0 0.6rem; }
.reading p, .reading li { color: var(--ink-2); }
.reading li strong, .reading p strong { color: var(--ink); font-weight: 500; }
.reading ul, .reading ol { padding-left: 1.4rem; margin: 0.75rem 0; }
.reading li { margin: 0.45rem 0; }
.reading li::marker { color: var(--pine); }
.reading code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--plaster-deep);
  padding: 0.1em 0.4em;
}
.reading table {
  border-collapse: collapse;
  width: 100%;
  font-size: var(--t-small);
  margin: 1.25rem 0;
  font-variant-numeric: tabular-nums;
}
.reading th, .reading td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.75rem 0.7rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
.reading th { font-weight: 500; color: var(--ink); }
.reading table.fees td:first-child, .reading table.fees th:first-child { white-space: nowrap; }
.reading table.data td:first-child, .reading table.data th:first-child { width: 22%; }
.reading table.data td:last-child, .reading table.data th:last-child { width: 27%; min-width: 7em; }
.reading table.fees td:last-child, .reading table.fees th:last-child { white-space: nowrap; width: 1%; }
.reading thead th { font-size: var(--t-micro); letter-spacing: 0.2em; color: var(--ink-2); font-weight: 400; }
.reading .en {
  margin-top: 4rem;
  padding: 2rem 0 0;
  border-top: 1px solid var(--ink);
}
.reading .en h2 { border: 0; padding: 0; margin: 0 0 0.75rem; font-size: var(--t-title); }
.reading .en p { color: var(--ink-2); }
.reading .back { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 3rem; font-size: var(--t-micro); letter-spacing: 0.22em; text-decoration: none; color: var(--iris); }
.reading .back svg { width: 1rem; height: 1rem; transform: scaleX(-1); }

/* 小屏时把注记改成台面下方的图例；大屏只给读屏 */
.legend {
  /* 大屏：只给读屏（视觉上由 .notes 承担）。小屏：还原为台面下方的图例。 */
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 2;
  border-top: 1px solid var(--line);
}
.legend li { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--line); }
.foot-note { margin-top: 1.25rem; }
.foot-filing { margin-top: 0.75rem; font-size: var(--t-micro); color: var(--ink-2); }
.foot-filing a { color: inherit; text-decoration: none; }
.foot-filing a:hover { text-decoration: underline; }
/* 长文页没有页脚区块，备案号直接跟在「返回首页」后面；给它一条线，
   免得读成正文的最后一段。 */
.reading .foot-filing {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
}
.legend b { display: block; font-family: var(--serif); font-weight: 400; letter-spacing: 0.25em; }
.legend small { color: var(--ink-2); font-size: var(--t-label); line-height: 1.5; display: block; margin-top: 0.2rem; }

/* ---------- 响应 ---------- */

@media (max-width: 1180px) {
  .alcove { grid-template-columns: minmax(0, 1fr) 3.5rem; grid-template-rows: auto auto; }
  .alcove-copy { padding-bottom: 2rem; align-self: start; }
  .vertical { grid-column: 2; grid-row: 1; }
  .arrangement { grid-column: 1 / -1; width: min(100%, 44rem); justify-self: end; padding-left: 0; }
}

@media (max-width: 900px) {
  :root { --rail: 0px; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    padding: 1.1rem var(--gutter);
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .mark { flex-direction: row; align-items: center; gap: 0.75rem; }
  .mark-icon { width: 1.6rem; height: 1.6rem; }
  .mark-kicker { display: none; }
  .mark-name { font-size: var(--t-title); }
  .mark-sub { display: none; }
  .nav { margin: 0 0 0 auto; display: flex; gap: 1.1rem; }
  .nav a { grid-template-columns: auto; font-size: var(--t-micro); letter-spacing: 0.18em; }
  .nav a::before { display: none; }
  .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.45em; text-decoration-color: var(--ink); }
  .rail-note { display: none; }

  /* 竖排标题与木台面撤下之后，斜上方的天光留着（它还在给首屏定方向），
     左下角那道积影去掉：这里的版面已经长到图例下方，积影会把图例压成一块脏灰。 */
  .alcove {
    min-height: 0;
    padding: clamp(2.5rem, 7vh, 4rem) var(--gutter) clamp(2rem, 6vw, 3rem);
    grid-template-columns: minmax(0, 1fr);
    background: radial-gradient(130% 42% at 70% 10%, rgba(255, 252, 244, 0.42), transparent 66%);
  }
  .alcove::after { display: none; }
  .alcove-copy { padding-right: 0; }
  .vertical { display: none; }
  .arrangement { width: calc(100% + 2 * var(--gutter)); margin: 2rem 0 0 calc(-1 * var(--gutter)); justify-self: stretch; }
  /* 台面收成插画底部 4.6% 的一条木色，只铺在那一条上——原先还铺了一层不透明灰泥，
     把首屏的天光切出一道横贯全宽的接缝。 */
  .arrangement svg {
    padding: 0 var(--gutter);
    background-image:
      linear-gradient(to top, rgba(0, 0, 0, 0.18), transparent 55%),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.02 0.6' numOctaves='2' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.9 0 0 0 0 0.8 0 0 0 0 0.6 0 0 0 0.14 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
      linear-gradient(to top, var(--wood) 0 86%, var(--wood-edge) 86%);
    background-repeat: no-repeat, repeat-x, no-repeat;
    background-position: bottom left, bottom left, bottom left;
    background-size: 100% 4.6%, 160px 4.6%, 100% 4.6%;
  }
  .arrangement figcaption { padding: 0 var(--gutter); }
  .notes { display: none; }
  .st-lead, .st-dot { display: none; }
  .legend { position: static; width: auto; height: auto; overflow: visible; clip: auto; clip-path: none; white-space: normal; margin-top: 0; border-top: 0; }

  .section-head { grid-template-columns: minmax(0, 1fr); align-items: start; margin-bottom: 2rem; }
  .moment-row { grid-template-columns: 7rem minmax(0, 1fr); gap: 1.25rem; padding: 1.5rem 0; }
  .moment-drawing { width: 7rem; height: 5.25rem; }
  .lines li { grid-template-columns: 3.5rem minmax(0, 1fr); }
  .lines li p { grid-column: 2; }
  .kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 九类条目排成两列会空出第十格。补一个同样带线的空格，格子才不会缺一个角。 */
  .kinds::after { content: ""; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .candor li { grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0 1.25rem; }
  .editions { grid-template-columns: minmax(0, 1fr); }
  .edition + .edition { padding-left: 0; border-left: 0; }
  .candor-inner { grid-template-columns: minmax(0, 1fr); }
  .sources { grid-template-columns: minmax(0, 1fr); }
  .download-grid { grid-template-columns: minmax(0, 1fr); }
  .foot { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

@media (max-width: 560px) {
  html { font-size: 16px; }
  /* 根字号降到 16px 之后 0.72rem 只剩 11.5px，低于可读下限；小标签跟着抬一档。 */
  :root { --t-hero: clamp(2.6rem, 13vw, 3.4rem); --t-micro: 0.78rem; }
  .actions .btn { width: 100%; min-width: 0; }
  .kinds { grid-template-columns: minmax(0, 1fr); }
  .kinds::after { display: none; }        /* 单列不缺格，补格反而多出一条空行 */
  .lines li { grid-template-columns: 2.75rem minmax(0, 1fr); }
  .sources li { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
  .legend { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}


/* ---------- 使用场景：三次轻取 ---------- */
.moments { background: rgba(221, 215, 200, 0.34); }
.moment-list { border-top: 1px solid var(--line); }
.moment-row {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}
.moment-drawing { width: 10rem; height: 7.5rem; color: var(--ink-2); }
.moment-row h3 { margin: 0 0 0.5rem; font-family: var(--serif); font-size: var(--t-title); font-weight: 400; }
.moment-row p { max-width: 42rem; margin: 0; color: var(--ink-2); }

/* ---------- 打印（隐私政策与服务条款会被真的打出来） ----------
   颜色一律走调色板 token：打印样式虽然屏幕上看不见，但机械检测器会把它一起读进去，
   写字面值会在报告里冒出「不在 DESIGN.md 里的颜色」。 */
@media print {
  html {
    color: var(--ink);
    background: var(--white);
    background-image: none;
  }
  .shell { display: block; }
  .rail, .skip, .reading .back, .notes, .vertical { display: none; }
  .reading { max-width: none; padding: 0; }
  .reading h2 { break-after: avoid; }
  .reading li, .reading tr { break-inside: avoid; }
  .reading code { background: none; border: 1px solid var(--line); }
  .reading a { color: var(--ink); text-decoration: underline; }
  /* 纸上点不了链接，把目标写出来；mailto 的地址正文里已经有了。 */
  .reading a[href^="http"]::after { content: "（" attr(href) "）"; font-size: 0.85em; }
  .reading a[href^="mailto:"]::after { content: ""; }
}
