/* 拾光奶茶 · Shiguang Boba — 全站样式 */
:root {
  --ink: #2f1d12;
  --ink-2: #6a4c39;
  --ink-3: #9c7f6b;
  --cream: #fff8ef;
  --paper: #ffffff;
  --line: rgba(63, 39, 22, 0.12);
  --brown: #7a4222;
  --caramel: #c8762f;
  --gold: #e8b567;
  --taro: #8f6fc0;
  --matcha: #6f9448;
  --berry: #d8546f;
  --mango: #e8952c;
  --shadow-s: 0 2px 8px rgba(68, 39, 20, 0.06);
  --shadow-m: 0 14px 34px -18px rgba(68, 39, 20, 0.4);
  --shadow-l: 0 34px 70px -34px rgba(68, 39, 20, 0.55);
  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;
  --head-h: 74px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --serif: "Iowan Old Style", Georgia, "Songti SC", "Noto Serif SC", serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1180px, 100% - 44px); margin-inline: auto; }
.muted { color: var(--ink-2); }
.tiny { font-size: 0.8rem; }
.serif { font-family: var(--serif); font-style: italic; }
.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;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink);
  color: #fff; padding: 10px 18px; border-radius: 999px; transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--caramel); outline-offset: 3px; border-radius: 6px; }

/* ---------- 通用组件 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; letter-spacing: 0.02em; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn-primary {
  background: linear-gradient(130deg, #8b4a24, var(--caramel) 55%, #e0a35c);
  color: #fff8ef; box-shadow: var(--shadow-m);
}
.btn-primary:hover { box-shadow: 0 18px 34px -16px rgba(139, 74, 36, 0.75); }
.btn-ghost { background: rgba(255, 255, 255, 0.7); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--caramel); color: var(--brown); }
.btn-dark { background: var(--ink); color: #fff6e9; }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--caramel);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px; justify-content: space-between; margin-bottom: 42px; }
.section-head h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); }
.section-head p { color: var(--ink-2); max-width: 46ch; margin-top: 10px; }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l);
  box-shadow: var(--shadow-s);
}

.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.75); font-size: 0.88rem;
  font-weight: 600; color: var(--ink-2); transition: all 0.18s ease;
}
.chip:hover { border-color: var(--caramel); color: var(--brown); transform: translateY(-1px); }
.chip[aria-pressed="true"], .chip.is-active {
  background: var(--ink); border-color: var(--ink); color: #fff6e9; box-shadow: var(--shadow-s);
}

.tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem;
  font-weight: 700; letter-spacing: 0.04em; background: rgba(200, 118, 47, 0.12); color: #8b4a24;
}
.tag--taro { background: rgba(143, 111, 192, 0.16); color: #5f4590; }
.tag--matcha { background: rgba(111, 148, 72, 0.16); color: #4d6b30; }
.tag--berry { background: rgba(216, 84, 111, 0.14); color: #a83a52; }
.tag--cool { background: rgba(60, 130, 190, 0.13); color: #2b6a9c; }

.price { font-family: var(--serif); font-weight: 700; color: var(--brown); font-size: 1.4rem; letter-spacing: 0; }
.price small { font-size: 0.72em; font-family: var(--font); opacity: 0.7; margin-right: 2px; }
.strike { color: var(--ink-3); text-decoration: line-through; font-size: 0.85rem; font-family: var(--serif); }

/* ---------- 页头 ---------- */
.site-head {
  position: sticky; top: 0; z-index: 100; height: var(--head-h);
  background: rgba(255, 248, 239, 0.82); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent; transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-head.is-stuck { border-color: var(--line); box-shadow: 0 10px 30px -26px rgba(68, 39, 20, 0.9); }
.head-inner { display: flex; align-items: center; gap: 26px; height: var(--head-h); }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: 0.02em; }
.brand img { width: 42px; height: 42px; }
.brand .bt { display: flex; flex-direction: column; }
.brand .bt b { font-size: 1.12rem; line-height: 1.2; color: var(--ink); }
.brand .bt em { font-style: normal; font-size: 0.64rem; letter-spacing: 0.3em; color: var(--ink-3); text-transform: uppercase; }
.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: 6px; }
.nav a {
  position: relative; display: block; padding: 9px 15px; border-radius: 999px; font-weight: 600;
  color: var(--ink-2); transition: color 0.18s ease, background 0.18s ease;
}
.nav a:hover { color: var(--ink); background: rgba(200, 118, 47, 0.1); }
.nav a[aria-current="page"] { color: var(--brown); background: rgba(200, 118, 47, 0.14); }
.head-actions { display: flex; align-items: center; gap: 10px; }
.cart-pill {
  position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px 10px 14px;
  border-radius: 999px; background: var(--ink); color: #fff6e9; font-weight: 700; font-size: 0.9rem;
  border: 0; transition: transform 0.18s ease, background 0.18s ease;
}
.cart-pill:hover { transform: translateY(-2px); background: #432a1a; }
.cart-count {
  min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px; background: var(--gold);
  color: #3a220f; font-size: 0.75rem; display: grid; place-items: center; line-height: 1;
}
.cart-count.is-bump { animation: bump 0.42s cubic-bezier(0.34, 1.7, 0.5, 1); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--paper); align-items: center; justify-content: center;
}
.nav-toggle span { position: relative; display: block; width: 19px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.22s ease; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 19px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.22s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(-90deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-90deg); opacity: 0; }

/* ---------- 首页 Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 54px 0 84px; }
.hero-bg { position: absolute; inset: -30% -10% auto -10%; height: 720px; z-index: -1; pointer-events: none; }
.hero-bg span {
  position: absolute; border-radius: 50%; filter: blur(6px); opacity: 0.5;
  background: radial-gradient(circle at 35% 30%, #ffe9c9, rgba(255, 233, 201, 0));
}
.hero-bg span:nth-child(1) { width: 480px; height: 480px; top: -60px; left: -80px; }
.hero-bg span:nth-child(2) { width: 360px; height: 360px; top: 120px; right: -60px; background: radial-gradient(circle at 40% 30%, #f6e2fb, rgba(246, 226, 251, 0)); }
.hero-bg span:nth-child(3) { width: 260px; height: 260px; bottom: -90px; left: 38%; background: radial-gradient(circle at 40% 30%, #e4efda, rgba(228, 239, 218, 0)); }
.hero-grid { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.15rem); letter-spacing: -0.03em; }
.hero h1 em {
  font-style: normal; position: relative; color: var(--brown); white-space: nowrap; isolation: isolate;
}
.hero h1 em::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 0.06em; height: 0.34em; z-index: -1;
  background: linear-gradient(90deg, rgba(232, 181, 103, 0.75), rgba(216, 84, 111, 0.45));
  border-radius: 8px; transform: skew(-12deg) scaleX(var(--u, 1)); transform-origin: left;
  animation: underline 1.1s 0.35s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
@keyframes underline { from { transform: skew(-12deg) scaleX(0); } }
.hero-lead { margin-top: 22px; font-size: 1.06rem; color: var(--ink-2); max-width: 44ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 44px; padding-top: 26px; border-top: 1px dashed var(--line); }
.hero-stats b { display: block; font-family: var(--serif); font-size: 1.9rem; line-height: 1; color: var(--brown); }
.hero-stats span { font-size: 0.82rem; color: var(--ink-3); }

.hero-art { position: relative; display: grid; place-items: center; min-height: 380px; }
.hero-art .cup {
  width: min(400px, 84%); filter: drop-shadow(0 38px 44px rgba(96, 55, 24, 0.22));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(-10px); } 50% { transform: translateY(10px); } }
.hero-badge {
  position: absolute; width: 116px; height: 116px; right: 2%; top: 4%;
  filter: drop-shadow(0 12px 18px rgba(96, 55, 24, 0.28)); animation: spin 22s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line);
  box-shadow: var(--shadow-m); font-size: 0.84rem; font-weight: 700; animation: float 7s ease-in-out infinite;
}
.float-chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--matcha); display: block; }
.float-chip.a { left: -2%; top: 22%; animation-delay: -2s; }
.float-chip.b { left: 4%; bottom: 12%; animation-delay: -4s; }
.float-chip.b i { background: var(--berry); }
.float-chip.c { right: 6%; bottom: 2%; animation-delay: -1s; }
.float-chip.c i { background: var(--gold); }

.swatches { display: flex; align-items: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.swatch {
  width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.9); padding: 0;
  box-shadow: var(--shadow-m); overflow: hidden; transition: transform 0.2s ease, outline-color 0.2s ease;
  outline: 2px solid transparent; outline-offset: 3px;
}
.swatch:hover { transform: translateY(-3px) scale(1.05); }
.swatch[aria-pressed="true"] { outline-color: var(--ink); }
.swatch img { width: 100%; height: 100%; object-fit: cover; }
.swatch-note { font-size: 0.86rem; color: var(--ink-2); }
.swatch-note b { color: var(--ink); }

/* ---------- 跑马灯 ---------- */
.marquee { background: var(--ink); color: #f7e6cf; overflow: hidden; padding: 15px 0; position: relative; }
.marquee-track { display: flex; width: max-content; gap: 40px; animation: slide 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { display: flex; align-items: center; gap: 40px; font-weight: 700; letter-spacing: 0.14em; font-size: 0.9rem; white-space: nowrap; }
.marquee-track li::after { content: "◆"; color: var(--caramel); font-size: 0.66rem; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- 榜单 ---------- */
.rank-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.rank-card { position: relative; padding: 26px 22px 22px; display: flex; flex-direction: column; gap: 12px; transition: transform 0.24s ease, box-shadow 0.24s ease; overflow: hidden; }
.rank-card::before {
  content: ""; position: absolute; inset: auto -30% -55% auto; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, var(--glow, #ffe6c4), rgba(255, 230, 196, 0));
}
.rank-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-l); }
.rank-num {
  font-family: var(--serif); font-size: 3rem; line-height: 0.8; color: var(--caramel); opacity: 0.35; font-weight: 700;
}
.rank-card img { width: 118px; margin: -6px auto 2px; position: relative; }
.rank-card h3 { font-size: 1.08rem; }
.rank-card .desc { font-size: 0.86rem; color: var(--ink-2); flex: 1; }
.rank-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; }
.bar { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--ink-3); }
.bar em { font-style: normal; width: 74px; height: 6px; border-radius: 6px; background: rgba(63, 39, 22, 0.1); overflow: hidden; display: block; }
.bar em i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--gold), var(--caramel)); }

/* ---------- 口味测试 ---------- */
.quiz { position: relative; background: linear-gradient(160deg, #fff4e4, #f6ecff 60%, #eef6e6); border: 1px solid var(--line); border-radius: 34px; padding: 46px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; overflow: hidden; }
.quiz h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.quiz-panel { background: rgba(255, 255, 255, 0.86); border-radius: 26px; padding: 28px; box-shadow: var(--shadow-m); }
.quiz-progress { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--ink-3); margin-bottom: 16px; }
.quiz-progress em { flex: 1; height: 6px; border-radius: 6px; background: rgba(63, 39, 22, 0.12); overflow: hidden; }
.quiz-progress em i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--caramel), var(--berry)); transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.quiz-q { font-size: 1.2rem; font-weight: 800; margin-bottom: 18px; }
.quiz-opts { display: grid; gap: 10px; }
.quiz-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line); background: #fff; font-weight: 600; transition: all 0.18s ease; }
.quiz-opt:hover { border-color: var(--caramel); background: #fffaf3; transform: translateX(4px); }
.quiz-opt span.k { width: 26px; height: 26px; flex: none; border-radius: 8px; background: rgba(200, 118, 47, 0.14); color: var(--brown); display: grid; place-items: center; font-size: 0.8rem; font-weight: 800; }
.quiz-result { display: none; gap: 20px; align-items: center; }
.quiz-result.is-on { display: flex; animation: pop 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes pop { from { opacity: 0; transform: scale(0.92) translateY(12px); } }
.quiz-result img { width: 116px; flex: none; }
.quiz-art { display: grid; place-items: center; }
.quiz-art img { width: min(280px, 78%); filter: drop-shadow(0 26px 30px rgba(96, 55, 24, 0.2)); }
.quiz-list { display: grid; gap: 12px; margin-top: 22px; }
.quiz-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.94rem; color: var(--ink-2); }
.quiz-list b { color: var(--ink); }
.quiz-list i { font-style: normal; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #ffeccd; display: grid; place-items: center; font-size: 0.72rem; font-weight: 800; margin-top: 2px; }

/* ---------- 工艺时间线 ---------- */
.craft { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.craft-item { padding: 30px 26px; border-radius: var(--r-l); background: var(--paper); border: 1px solid var(--line); position: relative; }
.craft-item::before {
  counter-increment: step; content: "0" counter(step); position: absolute; right: 22px; top: 16px;
  font-family: var(--serif); font-size: 2.4rem; color: rgba(63, 39, 22, 0.1); font-weight: 700;
}
.craft-item h3 { font-size: 1.14rem; margin-bottom: 10px; }
.craft-item p { font-size: 0.92rem; color: var(--ink-2); }
.craft-icon { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(140deg, #ffe9cc, #f7d9e6); margin-bottom: 16px; }

/* ---------- 门店 ---------- */
.store-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 26px; }
.field-inline { display: inline-flex; align-items: center; gap: 9px; font-size: 0.9rem; color: var(--ink-2); }
select.pick, input.txt {
  padding: 11px 15px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper);
  min-width: 150px; transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
select.pick:focus, input.txt:focus { border-color: var(--caramel); box-shadow: 0 0 0 4px rgba(200, 118, 47, 0.14); outline: none; }
.store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.store { padding: 26px; display: flex; flex-direction: column; gap: 12px; transition: transform 0.22s ease, box-shadow 0.22s ease; }
.store:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); }
.store h3 { font-size: 1.1rem; }
.store .meta { font-size: 0.88rem; color: var(--ink-2); display: grid; gap: 6px; }
.open-flag { display: inline-flex; align-items: center; gap: 7px; font-size: 0.8rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; width: max-content; }
.open-flag.on { background: rgba(111, 148, 72, 0.16); color: #46682b; }
.open-flag.off { background: rgba(150, 130, 120, 0.16); color: #6b5a50; }
.open-flag i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.store-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; }

/* ---------- 会员卡 ---------- */
.member { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: stretch; }
.member-card { position: relative; overflow: hidden; border-radius: 30px; padding: 38px; color: #ffeed6; background: linear-gradient(135deg, #3f2716, #6d3a1c 55%, #b4703a); box-shadow: var(--shadow-l); }
.member-card::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; right: -110px; bottom: -150px; background: rgba(255, 214, 160, 0.16); }
.member-card h3 { font-size: 1.6rem; margin-bottom: 12px; }
.member-card ul { display: grid; gap: 10px; margin: 22px 0 26px; position: relative; }
.member-card li { display: flex; gap: 10px; align-items: baseline; font-size: 0.95rem; opacity: 0.94; }
.member-card li::before { content: "◆"; color: var(--gold); font-size: 0.6rem; }
.stamp-card { padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.stamp { aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(63, 39, 22, 0.22); display: grid; place-items: center; font-size: 0.78rem; color: var(--ink-3); transition: all 0.25s ease; }
.stamp.is-on { border-style: solid; border-color: var(--caramel); background: radial-gradient(circle at 35% 30%, #ffe4bb, #f4c98d); color: #7a4222; font-weight: 800; }
.slider { display: flex; align-items: center; gap: 14px; }
input[type="range"] { flex: 1; accent-color: var(--caramel); height: 26px; }

/* ---------- 底部 CTA & footer ---------- */
.cta-band { text-align: center; padding: 74px 30px; border-radius: 36px; background: radial-gradient(120% 160% at 50% -30%, #ffe6c2, #fff8ef 62%); border: 1px solid var(--line); }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-band p { color: var(--ink-2); margin: 14px auto 28px; max-width: 44ch; }
.site-foot { background: var(--ink); color: #e9d6bf; padding: 66px 0 28px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; }
.site-foot h4 { color: #fff3e0; font-size: 0.96rem; margin-bottom: 16px; letter-spacing: 0.06em; }
.site-foot a { color: #d9c2a8; font-size: 0.9rem; }
.site-foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site-foot li { margin-bottom: 10px; font-size: 0.9rem; }
.foot-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.foot-brand img { width: 46px; }
.foot-bottom { margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255, 240, 220, 0.14); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 0.82rem; color: #b39a7f; }

/* ---------- 菜单页 ---------- */
.page-head { padding: 52px 0 10px; }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
.page-head p { color: var(--ink-2); max-width: 56ch; margin-top: 14px; }
.crumbs { font-size: 0.82rem; color: var(--ink-3); display: flex; gap: 8px; align-items: center; margin-bottom: 18px; }
.crumbs a:hover { color: var(--brown); }
.toolbar { position: sticky; top: calc(var(--head-h) - 4px); z-index: 60; padding: 16px 20px; margin: 26px 0 34px; display: grid; gap: 14px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-m); }
.toolbar-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search-box { position: relative; flex: 1 1 260px; min-width: 220px; }
.search-box input { width: 100%; padding: 12px 14px 12px 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); }
.search-box input:focus { outline: none; border-color: var(--caramel); box-shadow: 0 0 0 4px rgba(200, 118, 47, 0.14); }
.search-box svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); opacity: 0.5; }
.result-line { font-size: 0.85rem; color: var(--ink-3); }
.result-line b { color: var(--brown); }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.p-card { display: flex; flex-direction: column; padding: 22px; gap: 14px; transition: transform 0.24s ease, box-shadow 0.24s ease; position: relative; }
.p-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-l); }
.p-card.is-hidden { display: none; }
.p-media { position: relative; border-radius: 22px; background: linear-gradient(160deg, #fff6e9, #f7eee4); display: grid; place-items: center; padding: 10px 0; }
.p-media img { width: 168px; transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.p-card:hover .p-media img { transform: translateY(-6px) rotate(-3deg) scale(1.04); }
.fav { position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.92); display: grid; place-items: center; transition: all 0.18s ease; }
.fav:hover { transform: scale(1.08); }
.fav svg { width: 19px; height: 19px; fill: none; stroke: var(--ink-3); stroke-width: 2; transition: all 0.18s ease; }
.fav[aria-pressed="true"] svg { fill: var(--berry); stroke: var(--berry); }
.ribbon { position: absolute; left: 12px; top: 12px; padding: 4px 11px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; background: var(--ink); color: #ffe9c6; }
.p-card h3 { font-size: 1.16rem; }
.p-en { font-family: var(--serif); font-style: italic; font-size: 0.82rem; color: var(--ink-3); }
.p-desc { font-size: 0.9rem; color: var(--ink-2); flex: 1; }
.p-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.opt-row { display: grid; gap: 6px; font-size: 0.82rem; color: var(--ink-2); }
.opt-row select { width: 100%; padding: 9px 11px; border-radius: 12px; border: 1px solid var(--line); background: #fffdf9; }
.opt-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.extras { display: flex; flex-wrap: wrap; gap: 8px; }
.extra { position: relative; }
.extra input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.extra span { display: inline-flex; gap: 5px; padding: 6px 12px; border-radius: 999px; border: 1px dashed var(--line); font-size: 0.78rem; transition: all 0.16s ease; }
.extra input:checked + span { background: rgba(200, 118, 47, 0.14); border-color: var(--caramel); border-style: solid; color: var(--brown); font-weight: 700; }
.extra input:focus-visible + span { outline: 3px solid var(--caramel); outline-offset: 2px; }
.p-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fffdf9; }
.stepper button { width: 34px; height: 34px; border: 0; background: transparent; font-weight: 800; color: var(--brown); transition: background 0.16s ease; }
.stepper button:hover { background: rgba(200, 118, 47, 0.14); }
.stepper output { min-width: 32px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.empty-state { text-align: center; padding: 70px 20px; display: none; }
.empty-state.is-on { display: block; }
.empty-state img { width: 150px; margin: 0 auto 20px; opacity: 0.9; }

/* ---------- 结算页 ---------- */
.checkout { display: grid; grid-template-columns: 1.35fr 0.85fr; gap: 30px; align-items: start; }
.cart-list { display: grid; gap: 16px; }
.cart-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; padding: 20px; align-items: start; }
.cart-row img { width: 96px; }
.cart-row h3 { font-size: 1.05rem; }
.cart-specs { font-size: 0.82rem; color: var(--ink-3); margin-top: 4px; }
.cart-note { margin-top: 10px; }
.cart-note input { width: 100%; padding: 9px 12px; border-radius: 12px; border: 1px dashed var(--line); background: #fffdf9; font-size: 0.85rem; }
.cart-right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.link-btn { border: 0; background: none; color: var(--ink-3); font-size: 0.82rem; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.link-btn:hover { color: var(--berry); }
.summary { padding: 26px; position: sticky; top: calc(var(--head-h) + 20px); display: grid; gap: 18px; }
.sum-line { display: flex; justify-content: space-between; font-size: 0.92rem; color: var(--ink-2); }
.sum-line b { color: var(--ink); font-variant-numeric: tabular-nums; }
.sum-line.is-off b, .sum-line.is-off { color: #2f7d4f; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; border-top: 1px dashed var(--line); font-weight: 800; }
.sum-total .price { font-size: 2rem; }
.coupon-row { display: flex; gap: 10px; }
.coupon-row input { flex: 1; min-width: 0; }
.msg { font-size: 0.82rem; min-height: 1.2em; }
.msg.err { color: #c0392b; }
.msg.ok { color: #2f7d4f; }
.form-card { padding: 30px; display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.86rem; font-weight: 700; color: var(--ink-2); }
.field label .req { color: var(--berry); }
.field input, .field textarea, .field select { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fffdf9; width: 100%; }
.field textarea { min-height: 88px; resize: vertical; }
.field .err-msg { font-size: 0.78rem; color: #c0392b; min-height: 1em; }
.field [aria-invalid="true"] { border-color: #d3604f; background: #fff7f5; }
.seg { display: inline-flex; padding: 4px; gap: 4px; background: rgba(63, 39, 22, 0.07); border-radius: 999px; }
.seg label { position: relative; padding: 9px 20px; border-radius: 999px; font-weight: 700; font-size: 0.88rem; color: var(--ink-2); cursor: pointer; transition: all 0.18s ease; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg input:checked + span { color: #fff6e9; }
.seg label span { display: block; border-radius: 999px; padding: 0 4px; transition: none; }
.seg label:has(input:checked) { background: var(--ink); color: #fff6e9; box-shadow: var(--shadow-s); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--caramel); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--ink-2); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--caramel); }
.done-card { display: none; padding: 46px; text-align: center; border-radius: 34px; }
.done-card.is-on { display: block; animation: pop 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
.done-card img { width: 140px; margin: 0 auto 18px; }
.track { display: grid; gap: 8px; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 30px 0; }
.track-step { text-align: center; font-size: 0.82rem; color: var(--ink-3); }
.track-step b { display: block; width: 34px; height: 34px; margin: 0 auto 8px; border-radius: 50%; background: rgba(63, 39, 22, 0.08); display: grid; place-items: center; font-size: 0.8rem; color: var(--ink-3); transition: all 0.35s ease; }
.track-step.is-on { color: var(--ink); font-weight: 700; }
.track-step.is-on b { background: linear-gradient(140deg, var(--caramel), var(--gold)); color: #fff; transform: scale(1.08); box-shadow: var(--shadow-m); }
.eta { font-family: var(--serif); font-size: 2.6rem; color: var(--brown); font-variant-numeric: tabular-nums; }
.order-no { letter-spacing: 0.14em; font-weight: 800; color: var(--brown); }

/* ---------- 悬浮购物车 & 提示 ---------- */
.float-cart {
  position: fixed; right: 24px; bottom: 24px; z-index: 90; display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px; border-radius: 999px; background: var(--ink); color: #fff2dd; font-weight: 800;
  box-shadow: var(--shadow-l); transform: translateY(120px); opacity: 0; transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}
.float-cart.is-on { transform: translateY(0); opacity: 1; }
.float-cart:hover { background: #452a17; }
.float-cart em { font-style: normal; font-family: var(--serif); color: var(--gold); }
.toast-zone { position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 120; display: grid; gap: 10px; justify-items: center; pointer-events: none; }
.toast {
  padding: 12px 22px; border-radius: 999px; background: rgba(47, 29, 18, 0.95); color: #fff3e2; font-size: 0.9rem;
  font-weight: 600; box-shadow: var(--shadow-l); display: flex; gap: 10px; align-items: center;
  animation: toastIn 0.32s cubic-bezier(0.22, 1, 0.36, 1); }
.toast.out { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(0.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-8px); } }

/* ---------- 滚动进场 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .rank-grid, .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .quiz { grid-template-columns: 1fr; padding: 32px; }
  .member { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav {
    position: fixed; inset: var(--head-h) 0 auto; background: rgba(255, 248, 239, 0.98);
    backdrop-filter: blur(16px); margin: 0; padding: 12px 22px 26px; border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1); box-shadow: var(--shadow-l);
  }
  .nav.is-open { transform: translateY(0); }
  .nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav a { padding: 14px 16px; border-radius: 16px; font-size: 1.02rem; }
  .nav-toggle { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-art { order: -1; }
  .hero-art .cup { width: min(300px, 70%); }
  .craft, .store-grid { grid-template-columns: 1fr; }
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .section { padding: 70px 0; }
}
@media (max-width: 620px) {
  .wrap { width: min(1180px, 100% - 32px); }
  .rank-grid, .menu-grid, .form-grid { grid-template-columns: 1fr; }
  .brand .bt { display: none; }
  .cart-pill span.lbl { display: none; }
  .head-inner { gap: 12px; }
  .hero h1 { font-size: 2.4rem; }
  .float-chip { display: none; }
  .quiz { padding: 22px; }
  .cart-row { grid-template-columns: 74px 1fr; }
  .cart-row img { width: 74px; }
  .cart-right { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .foot-grid { grid-template-columns: 1fr; }
  .stamps { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .track { grid-auto-flow: row; }
  .float-cart { right: 14px; left: 14px; bottom: 14px; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-head, .site-foot, .float-cart, .toolbar { display: none; }
}
