/* 一茶万象 · 长卷：左侧竖排的境名是节拍，右侧是留白里的文字；茶色只用在茶本身和“下一步”上。 */
:root {
  --paper: #eceee8;      /* 雾：带一点青的纸 */
  --paper-2: #e2e5dd;
  --ink: #1d211e;        /* 岩墨 */
  --ink-2: #555d57;
  --ink-3: #8a918b;
  --line: rgba(29, 33, 30, .14);
  --tea: #8a4b1b;        /* 岩茶汤色 */
  --tea-ink: #6f3a12;
  --tea-soft: rgba(138, 75, 27, .10);
  --moss: #5e6b55;
  --on-tea: #f6efe4;
  /* 画布里的器物 */
  --cup-hi: #f3f1ea;
  --cup-lo: #b8b4a8;
  --liquor-hi: #c98a45;
  --liquor-lo: #4a2208;
  --shadow: rgba(29, 33, 30, .22);
  --motif: rgba(29, 33, 30, .55);
  /* 播放时的夜茶席 */
  --stage: #171916;
  --stage-ink: #e7e4da;
  --stage-ink-2: #8f958c;
  --stage-line: rgba(231, 228, 218, .16);

  --f-display: "Noto Serif SC", "Songti SC", "STSong", serif;
  --f-body: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --f-ui: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  --s-1: clamp(.78rem, .74rem + .15vw, .84rem);
  --s0: clamp(1rem, .96rem + .2vw, 1.08rem);
  --s1: clamp(1.2rem, 1.1rem + .4vw, 1.4rem);
  --s2: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem);
  --s3: clamp(2.3rem, 1.6rem + 3vw, 4.2rem);

  --gutter: clamp(16px, 5vw, 72px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121412; --paper-2: #1a1d1a; --ink: #e6e3da; --ink-2: #a3a89f; --ink-3: #6d736b;
    --line: rgba(230, 227, 218, .13); --tea: #d08c4b; --tea-ink: #e3a468; --tea-soft: rgba(208, 140, 75, .12);
    --moss: #8f9c83; --on-tea: #1a120a;
    --cup-hi: #57554f; --cup-lo: #262622; --liquor-hi: #b9793a; --liquor-lo: #2e1505;
    --shadow: rgba(0, 0, 0, .55); --motif: rgba(230, 227, 218, .5);
    --stage: #0c0d0b; --stage-ink: #e7e4da; --stage-ink-2: #7e847b; --stage-line: rgba(231, 228, 218, .14);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121412; --paper-2: #1a1d1a; --ink: #e6e3da; --ink-2: #a3a89f; --ink-3: #6d736b;
  --line: rgba(230, 227, 218, .13); --tea: #d08c4b; --tea-ink: #e3a468; --tea-soft: rgba(208, 140, 75, .12);
  --moss: #8f9c83; --on-tea: #1a120a;
  --cup-hi: #57554f; --cup-lo: #262622; --liquor-hi: #b9793a; --liquor-lo: #2e1505;
  --shadow: rgba(0, 0, 0, .55); --motif: rgba(230, 227, 218, .5);
  --stage: #0c0d0b; --stage-ink: #e7e4da; --stage-ink-2: #7e847b; --stage-line: rgba(231, 228, 218, .14);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: var(--s0);
  line-height: 1.9;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, canvas { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--tea); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
::selection { background: var(--tea-soft); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 6px 12px; z-index: 50; }
.skip:focus { left: 16px; }

/* ——— 顶栏 ——— */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter) 14px;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: opacity .9s var(--ease), border-color .4s;
}
.bar.scrolled { border-bottom-color: var(--line); }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark-seal {
  width: 26px; height: 26px; display: grid; place-items: center;
  font-family: var(--f-display); font-size: 15px; line-height: 1;
  color: var(--on-tea); background: var(--tea); border-radius: 50%;
}
.mark-name { font-family: var(--f-display); font-size: 1.15rem; letter-spacing: .18em; }
.bar-nav { display: flex; gap: 22px; margin-left: auto; font-family: var(--f-ui); font-size: var(--s-1); letter-spacing: .2em; }
.bar-nav a { text-decoration: none; color: var(--ink-2); transition: color .3s; }
.bar-nav a:hover { color: var(--ink); }
.bar-lead { font-family: var(--f-ui); font-size: var(--s-1); letter-spacing: .2em; color: var(--ink-3); text-decoration: none; padding-left: 20px; border-left: 1px solid var(--line); transition: color .3s; }
.bar-lead:hover { color: var(--ink); }
.bar-cta {
  font-family: var(--f-ui); font-size: var(--s-1); letter-spacing: .14em; text-decoration: none;
  padding: 7px 16px; border: 1px solid var(--tea); color: var(--tea-ink); border-radius: 999px;
  transition: background .3s, color .3s;
}
.bar-cta:hover { background: var(--tea); color: var(--on-tea); }
@media (max-width: 760px) {
  .bar-nav { display: none; }
  .bar-lead { font-family: var(--f-ui); font-size: var(--s-1); letter-spacing: .2em; color: var(--ink-3); text-decoration: none; padding-left: 20px; border-left: 1px solid var(--line); transition: color .3s; }
.bar-lead:hover { color: var(--ink); }
.bar-cta { margin-left: auto; }
}

/* ——— 通用 ——— */
.eyebrow { font-family: var(--f-ui); font-size: var(--s-1); letter-spacing: .32em; color: var(--ink-3); margin: 0; }
.display {
  font-family: var(--f-display); font-weight: 400; font-size: var(--s3);
  line-height: 1.32; letter-spacing: .06em; margin: 0; text-wrap: balance;
}
.h2 {
  font-family: var(--f-display); font-weight: 400; font-size: var(--s2);
  line-height: 1.45; letter-spacing: .08em; margin: 0; text-wrap: balance;
}
.prose { max-width: 34em; color: var(--ink-2); margin: 0; }
.fine { font-family: var(--f-ui); font-size: var(--s-1); color: var(--ink-3); margin: 0; letter-spacing: .06em; line-height: 1.8; max-width: 44em; }
.lede { font-size: var(--s1); line-height: 1.85; color: var(--ink-2); max-width: 22em; margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-ui); font-size: .95rem; letter-spacing: .12em; text-decoration: none;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn:active { transform: scale(.98); }
.btn-tea { background: var(--tea); color: var(--on-tea); }
.btn-tea:hover { background: var(--tea-ink); }
.btn-line { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); }
.btn[disabled] { opacity: .35; pointer-events: none; }

/* 左边竖排境名，右边内容 */
.sec {
  display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: clamp(16px, 4vw, 64px);
  padding: clamp(80px, 12vw, 168px) var(--gutter) 0;
  max-width: 1280px; margin: 0 auto;
}
.sec-mark {
  writing-mode: vertical-rl; margin: 0; justify-self: center;
  font-family: var(--f-display); font-size: 1.05rem; letter-spacing: .6em; color: var(--tea);
  position: sticky; top: 110px; align-self: start;
  padding-top: .3em; border-right: 1px solid var(--tea); padding-right: 10px;
}
.sec-body { display: grid; gap: 28px; min-width: 0; align-content: start; }
@media (max-width: 640px) {
  .sec { grid-template-columns: minmax(0, 1fr); }
  .sec-mark { writing-mode: horizontal-tb; position: static; justify-self: start; border-right: 0; padding: 0; letter-spacing: .5em; font-size: .95rem; }
}

/* ——— 开篇 ——— */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center;
  gap: clamp(24px, 5vw, 80px);
  padding: calc(120px + env(safe-area-inset-top, 0px)) var(--gutter) 40px;
  max-width: 1280px; margin: 0 auto;
}
.hero-text { display: grid; gap: 28px; min-width: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.hero-note { font-family: var(--f-ui); font-size: var(--s-1); color: var(--ink-3); letter-spacing: .12em; margin: 0; }
.hero-cup { margin: 0; position: relative; display: grid; gap: 10px; justify-items: center; }
.cup-canvas { width: min(100%, 540px); aspect-ratio: 1; cursor: pointer; touch-action: manipulation; }
.hero-vertical {
  position: absolute; right: 0; top: 4%; margin: 0;
  writing-mode: vertical-rl; font-family: var(--f-display); font-size: clamp(1.4rem, 1rem + 1.5vw, 2.2rem);
  letter-spacing: .7em; color: var(--ink);
}
.hero-cup figcaption { font-family: var(--f-ui); font-size: var(--s-1); color: var(--ink-3); letter-spacing: .16em; }
.hero-text > * { animation: rise 1.6s var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: .15s; }
.hero-text > :nth-child(3) { animation-delay: .35s; }
.hero-text > :nth-child(4) { animation-delay: .55s; }
.hero-text > :nth-child(5) { animation-delay: .7s; }
@keyframes rise { from { opacity: .001; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: calc(96px + env(safe-area-inset-top, 0px)); }
  .hero-cup { order: -1; }
  .cup-canvas { width: min(78vw, 400px); }
  .hero-vertical { font-size: 1.2rem; }
}

/* ——— 入席 ——— */
.sit-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); max-width: 760px; }
.sit-card {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: grid; gap: 8px; align-content: start; padding: 28px 28px 24px;
  background: var(--paper); transition: background .4s var(--ease);
}
.sit-card:hover { background: var(--paper-2); }
.sit-card:focus-visible { outline: 2px solid var(--tea); outline-offset: -2px; }
.sit-dur { font-family: var(--f-ui); font-size: var(--s-1); color: var(--ink-3); letter-spacing: .12em; }
.sit-dur b { font-family: var(--f-display); font-weight: 400; font-size: 3rem; color: var(--tea); letter-spacing: 0; margin-right: 6px; line-height: 1; }
.sit-name { font-family: var(--f-display); font-size: var(--s1); letter-spacing: .1em; }
.sit-desc { color: var(--ink-2); font-size: .95rem; line-height: 1.8; }
.sit-go { font-family: var(--f-ui); font-size: var(--s-1); color: var(--tea-ink); letter-spacing: .16em; padding-top: 8px; }
@media (max-width: 560px) { .sit-options { grid-template-columns: minmax(0, 1fr); } }

/* ——— 同茶 ——— */
.same-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(24px, 5vw, 72px); }
.same-text { display: grid; gap: 24px; min-width: 0; }
.same-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); }
.same-tabs button {
  background: none; border: 0; padding: 10px 22px 12px; margin-bottom: -1px;
  font-family: var(--f-display); font-size: 1.15rem; letter-spacing: .2em; color: var(--ink-3);
  border-bottom: 1px solid transparent; transition: color .3s, border-color .3s;
}
.same-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--tea); }
.same-line { margin: 0; min-height: 3.8em; color: var(--ink); font-size: var(--s1); line-height: 1.8; transition: opacity .5s; }
.same-proof { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-family: var(--f-ui); font-size: var(--s-1); color: var(--ink-3); letter-spacing: .1em; }
.same-proof code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: .85rem; color: var(--tea-ink); padding: 2px 8px; border: 1px solid var(--line); border-radius: 4px; }
.same-figure { margin: 0; }
.same-canvas { width: 100%; aspect-ratio: 5 / 4; }
.same-coda { grid-column: 2; margin: 8px 0 0; color: var(--ink-2); max-width: 34em; }
@media (max-width: 860px) {
  .same-grid { grid-template-columns: minmax(0, 1fr); }
  .same-coda { grid-column: 1; }
}

/* ——— 八境时间轴 ——— */
.rail-wrap { overflow-x: auto; padding-bottom: 4px; }
.rail { list-style: none; margin: 0; padding: 0; display: flex; min-width: 640px; height: 132px; border-top: 1px solid var(--ink); }
.rail li { min-width: 0; }
.rail button {
  all: unset; box-sizing: border-box; cursor: pointer; height: 100%; width: 100%;
  display: grid; align-content: start; gap: 6px; padding: 14px 8px 0 10px;
  border-left: 1px solid var(--line); transition: background .4s var(--ease);
  position: relative;
}
.rail li:first-child button { border-left-color: var(--ink); }
.rail button::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px;
  background: var(--tea); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.rail button:hover { background: var(--paper-2); }
.rail button[aria-pressed="true"] { background: var(--tea-soft); }
.rail button[aria-pressed="true"]::before { transform: scaleX(1); }
.rail button:focus-visible { outline: 2px solid var(--tea); outline-offset: -2px; }
.rail-name { font-family: var(--f-display); font-size: 1.1rem; letter-spacing: .12em; writing-mode: vertical-rl; }
.rail-min { font-family: var(--f-ui); font-size: .7rem; color: var(--ink-3); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.rail .is-kong button { background: repeating-linear-gradient(90deg, transparent 0 6px, var(--line) 6px 7px); }
.rail .is-kong button[aria-pressed="true"] { background: var(--tea-soft); }
.rail-scale { display: flex; justify-content: space-between; min-width: 640px; font-family: var(--f-ui); font-size: .7rem; color: var(--ink-3); padding-top: 6px; font-variant-numeric: tabular-nums; }
.rail-wrap { display: grid; }
.rail-detail { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 28px; align-items: baseline; max-width: 760px; min-height: 8em; }
.rail-detail .rd-time { font-family: var(--f-ui); font-size: var(--s-1); color: var(--ink-3); font-variant-numeric: tabular-nums; letter-spacing: .1em; }
.rail-detail .rd-name { font-family: var(--f-display); font-size: var(--s2); letter-spacing: .12em; margin: 0; }
.rail-detail .rd-sub { color: var(--ink-3); font-family: var(--f-ui); font-size: var(--s-1); letter-spacing: .2em; margin: 0; }
.rail-detail blockquote { grid-column: 1 / -1; margin: 6px 0 0; padding-left: 20px; border-left: 1px solid var(--tea); color: var(--ink); font-size: var(--s1); line-height: 1.85; }
.rail-detail.swap > * { animation: rise .8s var(--ease) both; }

/* ——— 空境：唯一的大胆之处。整屏几乎是空的。 ——— */
.kong { padding: clamp(140px, 22vw, 280px) var(--gutter); display: grid; place-items: center; transition: background 2s var(--ease); }
.kong-inner { display: grid; justify-items: center; gap: 48px; text-align: center; }
.kong-lines { margin: 0; font-family: var(--f-display); font-size: var(--s1); letter-spacing: .5em; line-height: 2.4; color: var(--ink-3); transition: opacity 2.4s var(--ease); }
.kong-last { margin: 0; font-family: var(--f-display); font-size: var(--s3); letter-spacing: .4em; color: var(--ink); transition: opacity 3s var(--ease) .6s; }
.kong-note { margin: 0; max-width: 22em; font-family: var(--f-ui); font-size: var(--s-1); line-height: 1.9; letter-spacing: .08em; color: var(--ink-3); }
.kong-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tea); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .5; } 50% { transform: scale(2.2); opacity: 1; } }
body.in-kong .bar, body.in-kong .pill { opacity: 0; pointer-events: none; }
body.in-kong .kong-lines { opacity: .15; }
body.in-kong .kong { background: var(--paper-2); }

/* ——— 茶单 ——— */
.menu-list { display: grid; border-top: 1px solid var(--ink); }
.m-row {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.8fr) minmax(0, .9fr) auto;
  gap: 12px 32px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line);
}
.m-row.is-main { background: linear-gradient(90deg, var(--tea-soft), transparent 70%); padding-left: 16px; margin-left: -16px; }
.m-name { font-family: var(--f-display); font-size: var(--s1); letter-spacing: .12em; margin: 0; }
.m-sub { display: block; font-family: var(--f-ui); font-size: var(--s-1); color: var(--ink-3); letter-spacing: .14em; margin-top: 4px; }
.m-desc { margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.8; }
.m-dur { font-family: var(--f-ui); font-size: var(--s-1); color: var(--ink-2); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.m-dur small { display: block; color: var(--ink-3); }
.m-price { font-family: var(--f-display); font-size: var(--s1); color: var(--tea-ink); text-align: right; white-space: nowrap; letter-spacing: .04em; }
.m-price .g-back { display: block; margin-left: auto; margin-top: 6px; }
.m-price small { display: block; font-family: var(--f-ui); font-size: .7rem; color: var(--ink-3); letter-spacing: .1em; }
.m-tag { font-family: var(--f-ui); font-size: .68rem; letter-spacing: .2em; color: var(--tea-ink); border: 1px solid var(--tea); border-radius: 999px; padding: 1px 8px; margin-left: 8px; vertical-align: 3px; }
.m-soon { display: block; margin-left: auto; margin-top: 6px; font-family: var(--f-ui); font-size: var(--s-1); letter-spacing: .16em; color: var(--ink-3); }
.m-group { font-family: var(--f-ui); font-size: var(--s-1); letter-spacing: .3em; color: var(--moss); padding: 22px 0 4px; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) {
  .m-row { grid-template-columns: minmax(0, 1fr) auto; }
  .m-desc { grid-column: 1 / -1; order: 3; }
  .m-dur { order: 2; grid-column: 1; }
  .m-price { grid-row: 1; grid-column: 2; }
}

/* ——— 引路 ——— */
.guide-head { display: grid; gap: 14px; }
.guide-card {
  border: 1px solid var(--line); background: var(--paper-2); border-radius: 4px;
  max-width: 880px; overflow: hidden;
}
.guide-progress { height: 2px; background: var(--line); }
.guide-progress span { display: block; height: 100%; background: var(--tea); width: 0; transition: width .8s var(--ease); }
.guide-stage { padding: clamp(24px, 5vw, 52px); display: grid; gap: 26px; min-height: 420px; align-content: start; }
.guide-stage > * { animation: rise .7s var(--ease) both; }
.g-step { font-family: var(--f-ui); font-size: var(--s-1); letter-spacing: .24em; color: var(--ink-3); margin: 0; font-variant-numeric: tabular-nums; }
.g-q { font-family: var(--f-display); font-size: var(--s2); letter-spacing: .08em; line-height: 1.45; margin: 0; font-weight: 400; text-wrap: balance; }
.g-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.g-opt {
  all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 4px;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper);
  transition: border-color .3s, background .3s, transform .4s var(--ease);
}
.g-opt:hover { border-color: var(--ink-2); }
.g-opt:focus-visible { outline: 2px solid var(--tea); outline-offset: 2px; }
.g-opt[aria-pressed="true"] { border-color: var(--tea); background: var(--tea-soft); }
.g-opt b { font-weight: 400; font-size: 1.05rem; }
.g-opt span { font-family: var(--f-ui); font-size: var(--s-1); color: var(--ink-3); letter-spacing: .04em; line-height: 1.6; }
.g-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.g-back { background: none; border: 0; font-family: var(--f-ui); font-size: var(--s-1); letter-spacing: .16em; color: var(--ink-3); padding: 6px 0; }
.g-back:hover { color: var(--ink); }
@media (max-width: 560px) { .g-opts { grid-template-columns: minmax(0, 1fr); } }

.rec { display: grid; gap: 18px; }
.rec-label { font-family: var(--f-ui); font-size: var(--s-1); letter-spacing: .3em; color: var(--tea-ink); margin: 0; }
.rec-name { font-family: var(--f-display); font-size: var(--s3); letter-spacing: .08em; line-height: 1.25; margin: 0; font-weight: 400; }
.rec-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--f-ui); font-size: var(--s-1); color: var(--ink-2); letter-spacing: .08em; margin: 0; }
.rec-meta b { font-weight: 400; color: var(--tea-ink); }
.rec-why { margin: 0; color: var(--ink); max-width: 36em; font-size: 1.02rem; }
.rec-alt { margin: 0; font-family: var(--f-ui); font-size: var(--s-1); color: var(--ink-3); letter-spacing: .06em; }
.rec-alt button { background: none; border: 0; padding: 0; color: var(--tea-ink); text-decoration: underline; text-underline-offset: 4px; font: inherit; }
.rec-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.slot {
  all: unset; box-sizing: border-box; cursor: pointer; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--paper); display: grid; gap: 2px; font-family: var(--f-ui); transition: border-color .3s, background .3s;
}
.slot:hover { border-color: var(--ink-2); }
.slot:focus-visible { outline: 2px solid var(--tea); outline-offset: 2px; }
.slot[aria-pressed="true"] { border-color: var(--tea); background: var(--tea-soft); }
.slot b { font-weight: 400; font-size: .95rem; font-variant-numeric: tabular-nums; }
.slot span { font-size: .75rem; color: var(--ink-3); letter-spacing: .06em; }
.slots-title { font-family: var(--f-ui); font-size: var(--s-1); letter-spacing: .2em; color: var(--ink-3); margin: 0; }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label { font-family: var(--f-ui); font-size: var(--s-1); letter-spacing: .16em; color: var(--ink-2); }
.field label em { font-style: normal; color: var(--ink-3); letter-spacing: .04em; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 0; border-bottom: 1px solid var(--ink-3); border-radius: 0; padding: 10px 2px; width: 100%;
}
.field textarea { resize: vertical; min-height: 64px; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--tea); box-shadow: 0 1px 0 var(--tea); }
.field .err { font-family: var(--f-ui); font-size: .75rem; color: var(--tea-ink); min-height: 1em; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.total { font-family: var(--f-ui); font-size: var(--s-1); color: var(--ink-2); letter-spacing: .08em; }
.total b { font-family: var(--f-display); font-weight: 400; font-size: 1.4rem; color: var(--tea-ink); margin-left: 6px; }
@media (max-width: 560px) { .form { grid-template-columns: minmax(0, 1fr); } }

.done { display: grid; gap: 20px; }
.done-seal {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-display); font-size: 1.6rem; color: var(--on-tea); background: var(--tea);
}
.ticket { border: 1px dashed var(--ink-3); border-radius: 4px; padding: 18px 20px; font-family: var(--f-ui); font-size: .9rem; line-height: 2; white-space: pre-wrap; background: var(--paper); margin: 0; overflow-wrap: anywhere; }
.prep { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--ink-2); }
.prep a, .field .fine a { color: var(--tea-ink); text-underline-offset: 3px; }
.g-booked { margin: 0; max-width: 40em; font-family: var(--f-ui); font-size: var(--s-1); letter-spacing: .06em; color: var(--ink-2); padding: 10px 14px; border-left: 2px solid var(--tea); background: var(--tea-soft); }
.g-booked .g-back { margin-left: 12px; padding: 0; }
.needs { border: 0; margin: 0; padding: 0; }
.needs legend { font-family: var(--f-ui); font-size: var(--s-1); letter-spacing: .16em; color: var(--ink-2); padding: 0; margin-bottom: 10px; }
.needs legend em { font-style: normal; color: var(--ink-3); letter-spacing: .04em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { font-family: var(--f-ui); font-size: .85rem; line-height: 1.5; letter-spacing: .02em; color: var(--ink-2); padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); transition: border-color .3s, background .3s, color .3s; }
.chip:hover span { border-color: var(--ink-2); }
.chip input:checked + span { border-color: var(--tea); background: var(--tea-soft); color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--tea); outline-offset: 2px; }
.agree { gap: 12px; padding: 18px 18px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-family: var(--f-ui); font-size: .9rem; letter-spacing: .04em; color: var(--ink); line-height: 1.6; }
.check input { margin: 3px 0 0; width: 18px; height: 18px; flex: none; accent-color: var(--tea); }
.check em { display: block; font-style: normal; font-size: var(--s-1); color: var(--ink-3); }
.prep li::before { content: "·"; color: var(--tea); margin-right: 10px; }

/* ——— 约定 ——— */
.vows { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 0 48px; }
.vows div { padding: 22px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.vows dt { font-family: var(--f-display); font-size: var(--s1); letter-spacing: .12em; }
.vows dd { margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.85; }

/* ——— 常问 ——— */
.faq-list { display: grid; max-width: 760px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 20px 0; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--f-ui); color: var(--tea); transition: transform .4s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 0 0 22px; color: var(--ink-2); max-width: 36em; }

/* ——— 尾 ——— */
.foot { margin-top: clamp(120px, 16vw, 220px); padding: clamp(80px, 12vw, 140px) var(--gutter) calc(48px + env(safe-area-inset-bottom, 0px)); background: var(--stage); color: var(--stage-ink); display: grid; gap: 80px; }
.foot-line { margin: 0; font-family: var(--f-display); font-size: var(--s2); letter-spacing: .3em; line-height: 2; text-align: center; }
.foot-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--f-ui); font-size: var(--s-1); color: var(--stage-ink-2); letter-spacing: .12em; border-top: 1px solid var(--stage-line); padding-top: 20px; }
.foot-meta p { margin: 0; }

/* ——— 浮动引路 ——— */
.pill {
  position: fixed; right: var(--gutter); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 15;
  font-family: var(--f-ui); font-size: .85rem; letter-spacing: .14em; text-decoration: none;
  padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--paper);
  box-shadow: 0 10px 30px var(--shadow); transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.pill.away { opacity: 0; transform: translateY(12px); pointer-events: none; }


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
/* 首屏副标题下面的一句短话 */
.lede-2 { margin: 14px 0 0; font-family: var(--f-display, serif); font-size: var(--s1); letter-spacing: .2em; color: var(--ink-3, var(--ink-2)); }
/* 顶栏：所有文字都在一行，手机上收紧间距 */
.mark-name, .bar-nav a, .bar-lead, .bar-cta { white-space: nowrap; }
.mark, .bar-lead, .bar-cta { flex: none; }
.bar-lead-2 { border-left: 0; padding-left: 0; color: var(--ink-2); }
@media (max-width: 760px) {
  .bar { gap: 14px; }
  .mark { gap: 8px; }
  .mark-name { font-size: 1.05rem; letter-spacing: .12em; }
  .bar-lead { letter-spacing: .1em; padding-left: 14px; }
  .bar-lead-2 { padding-left: 0; }
  .bar-cta { padding: 6px 12px; letter-spacing: .08em; }
}
@media (max-width: 349px) {
  .bar { gap: 10px; }
  .mark-name { display: none; }
}
/* 手机上“音频”“引境台”“帮我选课”字放大，看得清 */
@media (max-width: 760px) {
  .bar-lead, .bar-cta { font-size: 15px; letter-spacing: .06em; }
  .bar-lead { color: var(--ink-2); }
}
@media (max-width: 400px) {
  .bar { gap: 12px; }
  .mark-name { font-size: 1rem; letter-spacing: .08em; }
  .bar-lead { padding-left: 12px; }
}
@media (max-width: 374px) { .bar { gap: 9px; } .mark-name { font-size: .95rem; letter-spacing: .04em; } .bar-lead { padding-left: 9px; } .bar-cta { padding: 6px 10px; } }
/* 右下角改成“回到顶部”圆形按钮 */
.pill.to-top { width: 48px; height: 48px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line); background: var(--paper-2, var(--paper)); color: var(--ink); cursor: pointer; }
.pill.to-top:hover { border-color: var(--tea); }

/* ===== 配色方案 B（浅色）/ 方案 C（深色）· 作者 2026-10-09 =====
   豆蔻青 #9FB7B1 × 暖木棕 #A78468；纸纱白底、深茶墨字、岩砂灰辅助。深色模式用方案 C 的深松墨。 */
:root {
  --paper: #f5f0e8;      /* 纸纱白：页面背景 */
  --paper-2: #e6ece8;    /* 分区背景：晨雾灰绿 #D7E2DE 往纸面调淡一点，大面积不发闷 */
  --ink: #2f322e;        /* 深茶墨：标题、正文 */
  --ink-2: #5c564f;      /* 岩砂灰加深：辅助文字，看得清 */
  --ink-3: #91857a;      /* 岩砂灰：最次要的小字 */
  --line: rgba(145, 133, 122, .32);   /* 边框 / 分割线 ≈ #CFC6BC */
  --tea: #a78468;        /* 暖木棕：主按钮 */
  --tea-ink: #7a5b43;    /* 暖木棕当文字用时加深 */
  --tea-soft: rgba(167, 132, 104, .12);
  --moss: #536964;       /* 深雾青：当文字用的青色 */
  --on-tea: #fffdf9;
  --shadow: rgba(47, 50, 46, .18);
  --motif: rgba(47, 50, 46, .5);
  --stage: #2f322e;      /* 深色区块：深茶墨 */
  --stage-ink: #f5f0e8;
  --stage-ink-2: #b7c6c2;
  --stage-line: rgba(245, 240, 232, .16);
  --sage: #9fb7b1;       /* 豆蔻青：选中、悬停、进度 */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #223031; --paper-2: #2e403e; --ink: #f5f0e8; --ink-2: #c9d4d0; --ink-3: #9fb0ac;
    --line: rgba(183, 198, 194, .18); --tea: #a78468; --tea-ink: #d6b597; --tea-soft: rgba(167, 132, 104, .16);
    --moss: #9fb7b1; --on-tea: #1f2a2a; --sage: #9fb7b1;
    --shadow: rgba(0, 0, 0, .45); --motif: rgba(245, 240, 232, .45);
    --stage: #1b2627; --stage-ink: #f5f0e8; --stage-ink-2: #b7c6c2; --stage-line: rgba(183, 198, 194, .16);
  }
}
:root[data-theme="dark"] {
  --paper: #223031; --paper-2: #2e403e; --ink: #f5f0e8; --ink-2: #c9d4d0; --ink-3: #9fb0ac;
  --line: rgba(183, 198, 194, .18); --tea: #a78468; --tea-ink: #d6b597; --tea-soft: rgba(167, 132, 104, .16);
  --moss: #9fb7b1; --on-tea: #1f2a2a; --sage: #9fb7b1;
  --shadow: rgba(0, 0, 0, .45); --motif: rgba(245, 240, 232, .45);
  --stage: #1b2627; --stage-ink: #f5f0e8; --stage-ink-2: #b7c6c2; --stage-line: rgba(183, 198, 194, .16);
}
.bar-cta:hover, .btn-tea:hover { filter: brightness(1.06); }

/* ===== 首页真实茶杯（2026-10-09）：照片打底，WebGL 水纹只在茶汤里、只在有水纹时出现 ===== */
.tea-photo {
  position: relative; width: min(100%, 540px); aspect-ratio: 1; cursor: pointer; touch-action: manipulation;
  -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
  /* 照片四边慢慢淡到页面底色，不留方框 */
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
}
.tea-photo img, .tea-photo canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tea-photo img { object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.tea-photo canvas { opacity: 0; pointer-events: none; }
.tea-photo canvas.on { opacity: 1; }
@media (max-width: 860px) { .tea-photo { width: min(86vw, 440px); } }
/* 同茶：同一只真实茶杯；切到梅境、菊境时，四周浮现梅枝、菊花的线描（叠在照片上，不挡点击） */
.same-wrap { position: relative; width: min(100%, 520px); aspect-ratio: 1; margin: 0 auto; }
.same-wrap .tea-photo { width: 100%; }
.same-wrap .tea-motif { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* 同茶 · 梅境 / 菊境：作者给的两张画，从杯子后面伸出来（杯子那一圈用遮罩挖空），按标签慢慢浮现 */
.same-wrap { container-type: inline-size; }
.same-flowers {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  -webkit-mask-image: radial-gradient(circle at 47.5% 42.4%, transparent 24.5cqw, #000 27.5cqw);
          mask-image: radial-gradient(circle at 47.5% 42.4%, transparent 24.5cqw, #000 27.5cqw);
}
.same-flowers img { position: absolute; height: auto; opacity: 0; transition: opacity 1.4s var(--ease), transform 1.8s var(--ease); }
.same-plum { left: -6%; bottom: 2%; width: 52%; transform: translate(-2%, 2%); }
.same-mum { right: -8%; bottom: 0; width: 50%; transform: translate(2%, 2%); }
.same-wrap[data-motif="plum"] .same-plum, .same-wrap[data-motif="mum"] .same-mum { opacity: .9; transform: none; }
@media (prefers-reduced-motion: reduce) { .same-flowers img { transition: none; } }
.same-plum { left: 0; bottom: 1%; width: 46%; }
.same-mum { right: 0; bottom: 0; width: 44%; }

/* ===== 2026-10-09 手机首页微调、深色模式茶杯 ===== */
/* 手机上：“正念美学 · 茶道”大一点、深一点；“点一下茶面试试”往上收到茶杯下方（照片下半是投影留白） */
@media (max-width: 860px) {
  .hero .eyebrow { font-size: .95rem; letter-spacing: .26em; color: var(--ink-2); }
  .hero-cup { gap: 0; }
  .hero-cup figcaption { position: relative; margin-top: -19%; z-index: 1; }
}
/* 深色模式：茶杯照片本是浅色底，在深色页面上像一盏灯——调暗一点、光圈收小一点 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tea-photo {
    filter: brightness(.82) saturate(.95);
    -webkit-mask-image: radial-gradient(closest-side, #000 48%, rgba(0,0,0,.55) 66%, transparent 86%);
            mask-image: radial-gradient(closest-side, #000 48%, rgba(0,0,0,.55) 66%, transparent 86%);
  }
}
:root[data-theme="dark"] .tea-photo {
  filter: brightness(.82) saturate(.95);
  -webkit-mask-image: radial-gradient(closest-side, #000 48%, rgba(0,0,0,.55) 66%, transparent 86%);
          mask-image: radial-gradient(closest-side, #000 48%, rgba(0,0,0,.55) 66%, transparent 86%);
}
@media (max-width: 860px) { .hero-cup { margin-bottom: -12%; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tea-photo {
    filter: brightness(.7) saturate(.92);
    -webkit-mask-image: radial-gradient(closest-side, #000 40%, rgba(0,0,0,.45) 58%, transparent 76%);
            mask-image: radial-gradient(closest-side, #000 40%, rgba(0,0,0,.45) 58%, transparent 76%);
  }
}
:root[data-theme="dark"] .tea-photo {
  filter: brightness(.7) saturate(.92);
  -webkit-mask-image: radial-gradient(closest-side, #000 40%, rgba(0,0,0,.45) 58%, transparent 76%);
          mask-image: radial-gradient(closest-side, #000 40%, rgba(0,0,0,.45) 58%, transparent 76%);
}
