/* 栖木瑜伽 Qimu Yoga —— 样式（练习作品 · 虚构品牌）
 * 概念：一天是一条弧线。晨 / 午 / 晚三种颜色贯穿课程、老师和课表。
 * 纯 CSS，无框架、无外部字体；中文正文用系统苹方，标题用系统宋体。
 */

/* ---------- 1. 设计变量 ---------- */
:root {
  color-scheme: light;

  --paper: #F1F2EC;
  --paper-2: #E6E9DF;
  --card: #FAFBF7;
  --white: #FFFFFF;
  --ink: #18241D;
  --ink-2: #46544B;
  --ink-3: #606A63;   /* 小字用：在 --paper 上 5.0:1、--paper-2 上 4.6:1（原 #6F7A72 只有 4.0:1） */
  --line: rgba(24, 36, 29, .14);
  --line-2: rgba(24, 36, 29, .08);

  --moss: #34543D;
  --moss-2: #28432F;
  --moss-3: #1B2F22;
  --leaf: #B5CDA4;

  /* 一天里的三段：晨（麦色）、午（鼠尾草绿）、晚（暮色蓝紫） */
  --dawn: #C9A43E;
  --dawn-ink: #7C6214;
  --dawn-soft: #F1E7C4;
  --noon: #6E9A7C;
  --noon-ink: #3F6B4D;
  --noon-soft: #DCE8D8;
  --dusk: #5A5D96;
  --dusk-ink: #464A83;
  --dusk-soft: #E1E1F0;

  --danger: #B3261E;
  --danger-soft: #FBEAE8;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Songti SC", "Noto Serif SC", "Source Han Serif SC", "Source Han Serif CN", STSong, SimSun, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --mono: Menlo, "SF Mono", Consolas, "Liberation Mono", monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1160px;
  --radius: 22px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 1px 2px rgba(24, 36, 29, .06), 0 28px 60px -32px rgba(24, 36, 29, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  /* 右上角一圈极淡的"日轮"，放在 body 上，顶栏半透明时也能透出来，不会出现接缝 */
  background:
    radial-gradient(900px 900px at calc(100% + 120px) -260px, rgba(201, 164, 62, .17), rgba(201, 164, 62, 0) 64%) no-repeat,
    var(--paper);
  color: var(--ink);
  font: 400 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
html.i18n-pending body { visibility: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, blockquote, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p, li, blockquote, summary, dd { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--dawn-soft); color: var(--ink); }

.wrap { width: min(var(--maxw), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- 3. 文字层级 ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--moss);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.display {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(40px, 5.3vw, 76px); line-height: 1.1; letter-spacing: -.012em;
  margin-top: 22px;
}
html[lang="en"] .display { font-size: clamp(38px, 5vw, 72px); line-height: 1.04; letter-spacing: -.02em; }
.h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(30px, 3.6vw, 46px); line-height: 1.2; letter-spacing: -.01em;
  margin-top: 16px; text-wrap: balance;
}
.section-lede { margin-top: 18px; font-size: 17px; color: var(--ink-2); max-width: 36em; }

/* ---------- 4. 按钮与链接 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border: 1px solid transparent; border-radius: 999px;
  background: var(--moss); color: #F7F8F3; text-decoration: none;
  font-size: 16px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  transition: background .2s, transform .2s var(--ease), box-shadow .2s;
  box-shadow: 0 10px 24px -14px rgba(27, 47, 34, .8);
}
.btn:hover { background: var(--moss-2); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-small { min-height: 38px; padding: 7px 16px; font-size: 14px; box-shadow: none; }
.btn-light { background: var(--paper); color: var(--moss-3); box-shadow: none; }
.btn-light:hover { background: var(--white); }
.btn-ghost { background: transparent; color: var(--moss); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover { background: var(--paper); border-color: var(--moss); }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--line); padding-bottom: 2px;
  transition: border-color .2s;
}
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover { border-color: var(--ink); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- 5. 顶栏 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(241, 242, 236, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.site-header.is-scrolled { border-color: var(--line-2); background: rgba(241, 242, 236, .92); }
/* 停在页面最顶上时顶栏完全透明：半透明底色会把右上角的日轮光晕切出一道横边。往下滚才加底色和毛玻璃（无 JS 时保持上面的默认样式） */
.site-header.is-top { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.bm-sun { fill: var(--dawn); }
.bm-branch { fill: none; stroke: var(--moss); stroke-width: 2.2; stroke-linecap: round; }
.brand-name { display: inline-flex; align-items: baseline; gap: 8px; }
.brand-zh { font-family: var(--serif); font-weight: 700; font-size: 21px; letter-spacing: .06em; }
.brand-en { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }

.site-nav { display: flex; gap: 30px; margin-left: auto; }
.site-nav a { text-decoration: none; font-size: 15px; color: var(--ink-2); padding: 6px 0; position: relative; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, .5); font-size: 13px; font-weight: 600; line-height: 1;
}
.lang-toggle span { padding: 7px 10px; border-radius: 999px; color: var(--ink-3); transition: background .2s, color .2s; }
.lang-toggle span.is-active { background: var(--ink); color: var(--paper); }
.lang-toggle:hover span:not(.is-active) { color: var(--ink); }

/* ---------- 6. Hero ---------- */
.hero { position: relative; padding: clamp(36px, 6.5vw, 84px) 0 clamp(64px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero-lede { margin-top: 26px; font-size: 18px; line-height: 1.8; color: var(--ink-2); max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 38px; }
.hero-facts {
  display: grid; grid-template-columns: repeat(3, max-content); gap: 10px 40px; margin-top: 44px; padding-top: 22px;
  border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--ink-3);
}
.hero-facts b { display: block; font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--ink); line-height: 1.2; }

/* 今天的课表卡片 */
.today {
  position: relative; background: var(--card); border: 1px solid var(--line-2);
  border-radius: 28px; padding: 26px 26px 22px; box-shadow: var(--shadow);
}
.today-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.today-title { font-family: var(--serif); font-size: 22px; font-weight: 700; }
.today-now { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.today-now time { color: var(--ink); font-size: 14px; }

.arc { width: 100%; height: auto; margin: 10px 0 6px; overflow: visible; }
.arc .arc-base { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; }
.arc .arc-past { fill: none; stroke: url(#qimuArcGrad); stroke-width: 3.5; stroke-linecap: round; }
.arc .tick { stroke: var(--ink-3); stroke-width: 1; opacity: .35; }
.arc .tick.major { opacity: .7; stroke-width: 1.4; }
.arc .hour { font: 500 11px var(--mono); fill: var(--ink-3); }
.arc .slot { stroke: var(--card); stroke-width: 3; }
.arc .slot.dawn { fill: var(--dawn); }
.arc .slot.noon { fill: var(--noon); }
.arc .slot.dusk { fill: var(--dusk); }
.arc .slot.is-done { fill: var(--paper-2); stroke: var(--ink-3); stroke-width: 1.2; }
.arc .halo { fill: none; stroke-width: 1.5; opacity: .5; animation: halo 2.4s ease-in-out infinite; }
.arc .halo.dawn { stroke: var(--dawn); } .arc .halo.noon { stroke: var(--noon); } .arc .halo.dusk { stroke: var(--dusk); }
.arc .sun-glow { fill: var(--dawn); opacity: .18; }
.arc .sun { fill: var(--dawn); stroke: var(--card); stroke-width: 3; }
.arc .sun.is-off { fill: var(--paper-2); stroke: var(--ink-3); stroke-width: 1.2; }
.arc .c-kicker { font: 600 12px var(--sans); fill: var(--ink-3); letter-spacing: .06em; }
.arc .c-time { font: 700 40px var(--serif); fill: var(--ink); }
.arc .c-name { font: 500 14px var(--sans); fill: var(--ink-2); }
@keyframes halo { 0%, 100% { opacity: .15; } 50% { opacity: .7; } }

.today-list { border-top: 1px solid var(--line-2); }
.today-item {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line-2);
}
.today-item .ti-time { font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.today-item .ti-time::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--ink-3)); flex: none; }
.today-item.dawn { --c: var(--dawn); } .today-item.noon { --c: var(--noon); } .today-item.dusk { --c: var(--dusk); }
.today-item .ti-name { font-weight: 600; font-size: 15px; line-height: 1.35; min-width: 0; }
.today-item .ti-sub { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-3); }
.today-item.is-done { color: var(--ink-3); }
.today-item.is-done .ti-name { font-weight: 400; }
.today-item.is-done .ti-time::before { background: transparent; box-shadow: inset 0 0 0 1px var(--ink-3); }
.ti-state { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.ti-state.is-now { color: var(--moss); font-weight: 600; }
.ti-book {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; line-height: 1.2;
  transition: background .2s, border-color .2s, color .2s;
}
.ti-book:hover { border-color: var(--moss); color: var(--moss); }
.today-item.is-next .ti-book { background: var(--moss); border-color: var(--moss); color: #F7F8F3; }
.today-item.is-next .ti-book:hover { background: var(--moss-2); }
.ti-tag {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; vertical-align: 1px;
  background: var(--dawn-soft); color: var(--dawn-ink); font-size: 11px; font-weight: 600; letter-spacing: .02em;
}
.today-foot { margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.today-closed { margin: 4px 0 6px; font-size: 13px; color: var(--ink-2); }

/* 首屏入场动画（只作用于首屏，不影响长截图） */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .8s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .hero-copy > :nth-child(5) { animation-delay: .24s; }
  .today { animation: rise .9s .15s var(--ease) both; }
  .arc .arc-past { stroke-dasharray: var(--len, 0) 2000; animation: draw 1.4s .35s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dasharray: 0 2000; } }

/* ---------- 7. 通用板块 ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-tint { background: var(--paper-2); }
.section-head { max-width: 760px; }

/* ---------- 8. 课程 ---------- */
.course-list { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--ink); }
.course {
  position: relative; display: grid; grid-template-columns: 132px minmax(0, 1fr) 300px; gap: 32px;
  padding: 34px 0; border-bottom: 1px solid var(--line);
}
.course::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0;
  background: var(--c, var(--moss)); transition: width .5s var(--ease);
}
.course:hover::before { width: 100%; }
.course:has(.t-dawn) { --c: var(--dawn); }
.course:has(.t-noon) { --c: var(--noon); }
.course:has(.t-dusk) { --c: var(--dusk); }
.course-time { font-size: 30px; line-height: 1.1; padding-top: 4px; }
.t-dawn { color: var(--dawn-ink); } .t-noon { color: var(--noon-ink); } .t-dusk { color: var(--dusk-ink); }
.course-name { font-family: var(--serif); font-size: 28px; font-weight: 700; line-height: 1.25; }
.course-desc { margin-top: 10px; color: var(--ink-2); max-width: 34em; }
.course-sched { margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.course-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-self: start; padding-top: 8px; }
.course-meta dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.course-meta dd { margin-top: 6px; font-size: 15px; font-weight: 600; }
.level { display: inline-flex; gap: 4px; height: 22px; align-items: center; }
.level i { width: 16px; height: 5px; border-radius: 3px; background: var(--line); }
.level[data-level="1"] i:nth-child(-n+1),
.level[data-level="2"] i:nth-child(-n+2),
.level[data-level="3"] i:nth-child(-n+3) { background: var(--moss); }

/* ---------- 9. 价目（深色带） ---------- */
.band { position: relative; overflow: hidden; background: var(--moss-3); color: #EEF1E8; padding: clamp(80px, 9vw, 120px) 0; }
.band::before, .band::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(238, 241, 232, .09);
}
.band::before { width: 980px; height: 980px; right: -420px; bottom: -640px; }
.band::after { width: 640px; height: 640px; right: -250px; bottom: -470px; border-color: rgba(201, 164, 62, .22); }
.pricing { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(40px, 7vw, 96px); align-items: start; }
.band .eyebrow { color: var(--leaf); }
.band .h2 { color: #F4F6EF; }
.band .section-lede { color: rgba(238, 241, 232, .72); }
.price-list { border-top: 1px solid rgba(238, 241, 232, .22); }
.price-list li { padding: 22px 0 20px; border-bottom: 1px solid rgba(238, 241, 232, .14); }
.price-row { display: flex; align-items: baseline; gap: 14px; }
.price-name { font-family: var(--serif); font-size: 22px; font-weight: 700; }
.leader { flex: 1 1 auto; min-width: 24px; border-bottom: 1px dotted rgba(238, 241, 232, .35); transform: translateY(-5px); }
.price { font-size: 24px; color: #EAD58E; white-space: nowrap; }
.price-note { margin-top: 4px; font-size: 14px; color: rgba(238, 241, 232, .62); }
.price-tag {
  display: inline-block; margin-left: 10px; padding: 2px 9px; border-radius: 999px; vertical-align: 4px;
  font: 600 12px/1.5 var(--sans); letter-spacing: .02em; color: var(--moss-3); background: #EAD58E; white-space: nowrap;
}
.fine-print { margin: 18px 0 28px; font-size: 13px; color: rgba(238, 241, 232, .5); }

/* ---------- 10. 老师 ---------- */
.teacher-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: clamp(40px, 5vw, 60px); }
.teacher {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: 14px 14px 22px; box-shadow: 0 1px 2px rgba(24, 36, 29, .04);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.teacher:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tone-dawn { --tone: var(--dawn); --tone-soft: var(--dawn-soft); --tone-ink: var(--dawn-ink); }
.tone-noon { --tone: var(--noon); --tone-soft: var(--noon-soft); --tone-ink: var(--noon-ink); }
.tone-dusk { --tone: var(--dusk); --tone-soft: var(--dusk-soft); --tone-ink: var(--dusk-ink); }
.t-mark {
  position: relative; overflow: hidden; height: 168px; border-radius: 14px;
  background:
    radial-gradient(120px 120px at 82% 22%, color-mix(in srgb, var(--tone) 40%, transparent), transparent 70%),
    var(--tone-soft);
  color: var(--tone-ink); font-family: "Songti SC", "Noto Serif SC", STSong, var(--serif); font-weight: 900;
  font-size: 176px; line-height: 1; padding-left: 18px; letter-spacing: 0;
  display: flex; align-items: flex-end;
}
.t-mark::after {
  /* 小时刻度，暗示老师常在的时段 */
  content: ""; position: absolute; left: 18px; right: 18px; top: 18px; height: 8px;
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--tone-ink) 45%, transparent) 0 1px, transparent 1px 12px);
}
.t-mark > span { transform: translateY(24%); display: block; }
.t-name { margin: 22px 10px 0; font-family: var(--serif); font-size: 26px; font-weight: 700; line-height: 1.2; }
.t-role { margin: 6px 10px 0; font-size: 14px; color: var(--ink-3); }
.t-quote { margin: 18px 10px 0; font-family: var(--serif); font-size: 17px; line-height: 1.7; color: var(--ink-2); }
html[lang="zh-CN"] .t-quote { font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", STSong, SimSun, serif; }
.t-when {
  margin: 22px 10px 0; padding-top: 14px; border-top: 1px solid var(--line-2); margin-top: auto;
  font-size: 13px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline;
}
.t-quote + .t-when { margin-top: 22px; }
.t-when .mono { color: var(--tone-ink); font-weight: 600; }

/* ---------- 11. FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 88px); }
.faq-head { align-self: start; position: sticky; top: 100px; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 24px 52px 24px 0; font-size: 18px; font-weight: 600; line-height: 1.5;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 1.6px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .3s;
}
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); opacity: 0; }
.faq-list summary:hover { color: var(--moss); }
.faq-list details p { padding: 0 52px 26px 0; color: var(--ink-2); max-width: 40em; }

/* ---------- 12. 预约 ---------- */
.book { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.steps { margin-top: 30px; counter-reset: s; }
.steps li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
.steps li:first-child { border-top: 1px solid var(--line-2); }
.step-n {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); font-size: 13px; color: var(--ink); background: var(--card); margin-top: 1px;
}
.demo-note {
  margin-top: 26px; padding: 14px 16px; border-radius: 14px; font-size: 13.5px; line-height: 1.65; color: var(--ink-2);
  background: repeating-linear-gradient(135deg, rgba(201, 164, 62, .08) 0 8px, transparent 8px 16px), var(--card);
  border: 1px dashed rgba(124, 98, 20, .35);
}

.form-card {
  background: var(--card); border: 1px solid var(--line-2); border-radius: 28px;
  padding: clamp(20px, 3.2vw, 36px); box-shadow: var(--shadow);
}
.form-card.is-prefilled { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(201, 164, 62, .55), var(--shadow); } 100% { box-shadow: 0 0 0 18px rgba(201, 164, 62, 0), var(--shadow); } }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { margin-bottom: 18px; min-width: 0; }
.field label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; }
.optional { margin-left: 6px; font-size: 12px; font-weight: 400; color: var(--ink-3); }
.field input[type="text"], .field input[type="date"], .field select, .field textarea {
  display: block; width: 100%; min-width: 0; min-height: 48px;
  padding: 11px 14px; font-size: 16px; line-height: 1.4;
  background: var(--white); border: 1px solid rgba(24, 36, 29, .2); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none; appearance: none;
}
.field input[type="date"] { -webkit-appearance: none; appearance: none; }
.field input::-webkit-date-and-time-value { text-align: left; }
.field textarea { resize: vertical; min-height: 92px; }
.field select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2346544B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
.field select:disabled { background-color: var(--paper); color: var(--ink-3); cursor: not-allowed; }
.field input::placeholder, .field textarea::placeholder { color: #9AA39C; }
.field input:hover, .field select:hover:not(:disabled), .field textarea:hover { border-color: rgba(24, 36, 29, .36); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--moss); box-shadow: 0 0 0 4px rgba(52, 84, 61, .14);
}
.field [aria-invalid="true"] { border-color: var(--danger) !important; background-color: #FFFBFA; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(179, 38, 30, .12); }
.field-error { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--danger); display: flex; gap: 6px; }
.field-error::before { content: "!"; flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; background: var(--danger); color: #fff; font: 700 11px/16px var(--sans); text-align: center; }
.field-error:empty { display: none; }
.field-hint { margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }
.field-hint:empty { display: none; }
.counter { text-align: right; }
.field-check { margin-top: 4px; }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 14px !important; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--moss); }
.check input[aria-invalid="true"] { outline: 2px solid var(--danger); outline-offset: 1px; border-radius: 4px; }
.form-alert { margin-bottom: 14px; padding: 12px 14px; border-radius: 12px; background: var(--danger-soft); color: var(--danger); font-size: 14px; }
.booking-form .btn-block { margin-top: 6px; min-height: 52px; font-size: 17px; }

.success { outline: none; }
.success-mark { width: 60px; height: 60px; }
.success-mark circle { fill: var(--noon-soft); stroke: var(--moss); stroke-width: 1.5; }
.success-mark path { fill: none; stroke: var(--moss); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 0; }
.success:not([hidden]) .success-mark path { animation: tick .6s .15s var(--ease) both; }
@keyframes tick { from { stroke-dashoffset: 40; } }
.success-title { margin-top: 18px; font-family: var(--serif); font-size: 30px; font-weight: 700; }
.success-text { margin-top: 8px; color: var(--ink-2); }
.success-summary { margin-top: 22px; border-top: 1px solid var(--line); }
.success-summary > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.success-summary dt { color: var(--ink-3); }
.success-summary dd { font-weight: 600; overflow-wrap: anywhere; }
.success-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 26px; }

/* ---------- 13. 页脚 ---------- */
.site-footer { background: var(--ink); color: rgba(238, 241, 232, .78); padding: 76px 0 30px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.brand-footer { color: #F4F6EF; }
.brand-footer .brand-en { color: rgba(238, 241, 232, .5); }
.site-footer .bm-branch { stroke: var(--leaf); }
.footer-tag { margin-top: 14px; font-family: var(--serif); font-size: 18px; color: rgba(238, 241, 232, .9); }
.footer-h { margin-bottom: 12px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--leaf); }
.site-footer a { color: inherit; text-decoration-color: rgba(238, 241, 232, .3); text-underline-offset: 3px; overflow-wrap: anywhere; }
.site-footer a:hover { color: #fff; text-decoration-color: currentColor; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  margin-top: 60px; padding-top: 22px; border-top: 1px solid rgba(238, 241, 232, .12);
  font-size: 13px; color: rgba(238, 241, 232, .55);
}

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1080px) {
  .course { grid-template-columns: 110px minmax(0, 1fr); }
  .course-meta { grid-column: 2; max-width: 420px; padding-top: 0; }
}
@media (max-width: 960px) {
  .hero-grid, .pricing, .faq, .book { grid-template-columns: minmax(0, 1fr); }
  .today { max-width: 560px; }
  .faq-head { position: static; }
  .teacher-grid { grid-template-columns: minmax(0, 1fr); }
  .teacher { display: grid; grid-template-columns: 180px minmax(0, 1fr); column-gap: 8px; align-items: start; }
  .teacher .t-mark { grid-row: 1 / span 5; height: 100%; min-height: 200px; }
  .teacher .t-when { margin-top: 18px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .site-nav { display: none; }
  .header-actions { margin-left: auto; }
  .header-inner { height: 60px; gap: 12px; }
  .course { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 28px 0; }
  .course-time { font-size: 22px; }
  .course-meta { grid-column: 1; max-width: none; padding-top: 6px; }
  .course-name { font-size: 24px; }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .brand-en { display: none; }
  .hero-lede { font-size: 16.5px; }
  .hero-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 14px; margin-top: 34px; font-size: 12.5px; }
  .hero-facts b { font-size: 21px; }
  .today { padding: 20px 16px 16px; border-radius: 22px; }
  .today-item { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; }
  .today-item .ti-time { font-size: 14px; gap: 6px; }
  /* 弧线是按 400 宽的 viewBox 缩放的，手机上只剩约 0.78 倍：字号写大一点，实际显示约 10–13px */
  .arc .hour { font-size: 13px; }
  .arc .c-kicker { font-size: 15px; }
  .arc .c-name { font-size: 17px; }
  .teacher { display: flex; align-items: stretch; }
  .teacher .t-mark { height: 132px; min-height: 0; font-size: 140px; }
  .band::before { width: 620px; height: 620px; right: -380px; bottom: -520px; }
  .band::after { display: none; }
  .price-name { font-size: 19px; }
  .price { font-size: 20px; }
  .faq-list summary { font-size: 16.5px; padding: 20px 40px 20px 0; }
  .faq-list details p { padding-right: 0; }
  .success-summary > div { grid-template-columns: 80px minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer-bottom { margin-top: 44px; }
}

/* ---------- 15. 后台 admin.html ---------- */
.admin-page { min-height: 100vh; display: flex; flex-direction: column; }
.admin-page main { flex: 1; }
.admin-top { display: flex; align-items: center; gap: 16px; height: 64px; }
.admin-top .back { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.admin-top .back:hover { color: var(--ink); }
.admin-top .sep { width: 1px; height: 20px; background: var(--line); }
.admin-top .lang-toggle { margin-left: auto; }
.admin-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; padding: 36px 0 26px; }
.admin-title { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: clamp(30px, 4vw, 42px); font-weight: 700; line-height: 1.15; }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font: 600 12px/1.5 var(--sans); letter-spacing: .06em;
  background: var(--dawn-soft); color: var(--dawn-ink); vertical-align: middle;
}
.admin-lede { margin-top: 10px; max-width: 46em; font-size: 14.5px; color: var(--ink-2); }
.live {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2);
  padding: 7px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-2);
}
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3FA266; box-shadow: 0 0 0 0 rgba(63, 162, 102, .5); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(63, 162, 102, .5); } 80%, 100% { box-shadow: 0 0 0 8px rgba(63, 162, 102, 0); } }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stat { background: var(--card); border: 1px solid var(--line-2); border-radius: 18px; padding: 18px 20px; }
.stat dt { font-size: 13px; color: var(--ink-3); }
.stat dd { margin-top: 4px; font-family: var(--serif); font-size: 36px; font-weight: 700; line-height: 1.1; }
.stat.is-accent dd { color: var(--dawn-ink); }
.stat .stat-sub { display: block; margin-top: 6px; font: 400 12.5px var(--sans); color: var(--ink-3); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 26px 0 14px; }
.search { position: relative; flex: 1 1 280px; min-width: 0; }
.search input {
  width: 100%; min-height: 44px; padding: 10px 14px 10px 40px; border-radius: 12px;
  border: 1px solid rgba(24, 36, 29, .2); background: var(--white); font-size: 15px;
}
.search input:focus { outline: none; border-color: var(--moss); box-shadow: 0 0 0 4px rgba(52, 84, 61, .14); }
.search svg { position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); stroke: var(--ink-3); fill: none; stroke-width: 2; }
.toolbar .btn { min-height: 44px; padding: 8px 16px; font-size: 14px; box-shadow: none; }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(179, 38, 30, .3); box-shadow: none; }
.btn-danger:hover { background: var(--danger-soft); }

.table-wrap { background: var(--card); border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; }
.bookings { width: 100%; border-collapse: collapse; font-size: 14px; }
.bookings th {
  text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--ink-3);
  padding: 12px 14px; background: var(--paper-2); border-bottom: 1px solid var(--line); white-space: nowrap;
}
.bookings td { padding: 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.bookings tr:last-child td { border-bottom: 0; }
.bookings tbody tr { transition: background .3s; }
.bookings tbody tr:hover { background: rgba(230, 233, 223, .45); }
.bookings .c-id { font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }
.bookings .c-created { white-space: nowrap; color: var(--ink-2); }
.bookings .c-created small { display: block; color: var(--ink-3); font-size: 12px; }
.bookings .c-name { font-weight: 600; white-space: nowrap; }
.bookings .c-contact { font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.bookings .c-when { white-space: nowrap; }
.bookings .c-when b { display: block; font-weight: 600; }
.bookings .c-note { color: var(--ink-2); max-width: 260px; overflow-wrap: anywhere; }
.bookings .c-note:empty::before { content: "—"; color: var(--ink-3); }
.course-chip { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.course-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--ink-3)); }
.course-chip.dawn { --c: var(--dawn); } .course-chip.noon { --c: var(--noon); } .course-chip.dusk { --c: var(--dusk); }
.tag-sample { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 6px; font-size: 11px; font-weight: 600; color: var(--ink-3); border: 1px solid var(--line); vertical-align: 1px; }
.status-btn {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.3;
  border: 1px solid transparent;
}
.status-btn::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-btn.is-new { background: var(--dawn-soft); color: var(--dawn-ink); }
.status-btn.is-confirmed { background: var(--noon-soft); color: var(--noon-ink); }
.status-btn:hover { border-color: currentColor; }
.bookings tr.is-new-row { animation: newrow 3.2s var(--ease); }
.bookings tr.is-new-row td:first-child { box-shadow: inset 3px 0 0 var(--dawn); }
@keyframes newrow { 0%, 30% { background: rgba(241, 231, 196, .95); } 100% { background: transparent; } }

.empty { padding: 56px 20px; text-align: center; color: var(--ink-3); }
.empty svg { width: 120px; margin: 0 auto 16px; }
.empty .e-arc { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; }
.empty .e-sun { fill: var(--dawn-soft); stroke: var(--dawn); stroke-width: 1.5; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 60; transform: translate(-50%, 20px); opacity: 0;
  padding: 11px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .5); transition: opacity .25s, transform .25s var(--ease); pointer-events: none;
  max-width: calc(100% - 32px);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.admin-foot { padding: 28px 0 36px; font-size: 13px; color: var(--ink-3); }

@media (max-width: 860px) {
  .table-wrap { background: transparent; border: 0; border-radius: 0; overflow: visible; }
  .bookings thead { display: none; }
  .bookings, .bookings tbody, .bookings tr, .bookings td { display: block; width: 100%; }
  .bookings tbody tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; margin-bottom: 12px; padding: 16px;
    background: var(--card); border: 1px solid var(--line-2); border-radius: 16px;
  }
  .bookings td { padding: 0; border: 0; }
  .bookings td::before { content: attr(data-label); display: block; font-size: 11.5px; letter-spacing: .04em; color: var(--ink-3); }
  .bookings .c-name, .bookings .c-status, .bookings .c-id { }
  /* 姓名和状态并排放在卡片第一行（不写 grid-row 的话，姓名会被挤到提交时间下面） */
  .bookings .c-name { grid-column: 1; grid-row: 1; font-size: 17px; white-space: normal; overflow-wrap: anywhere; }
  .bookings .c-name::before, .bookings .c-status::before, .bookings .c-id::before { display: none; }
  .bookings .c-status { grid-column: 2; grid-row: 1; justify-self: end; }
  .bookings .c-id { grid-column: 1 / -1; color: var(--ink-3); }
  .bookings .c-course, .bookings .c-when, .bookings .c-contact, .bookings .c-created, .bookings .c-note { grid-column: 1 / -1; margin-top: 8px; white-space: normal; }
  .bookings .c-when b { display: inline; margin-right: 6px; }
  .bookings .c-note { max-width: none; }
  .bookings .c-note:empty { display: none; }
  .bookings tr.is-new-row td:first-child { box-shadow: none; }
  .bookings tr.is-new-row { box-shadow: inset 3px 0 0 var(--dawn); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 14px; }
  .stat dd { font-size: 28px; }
}
@media (max-width: 480px) {
  .admin-top .brand-name { display: none; }
  .stat .stat-sub { display: none; }
  .toolbar .btn { flex: 1 1 auto; }
}

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

@media print {
  .site-header, .today, .form-card, .site-nav { display: none; }
  body { background: #fff; }
}
