/* ============================================================
   GIMME ICE COFFEE — "冰室 ICE WORKS" Design System
   冷冽 · 海报感 · 硬阴影 · 活的后端
   配色：冰薄荷底 + 浓缩墨黑 + 柑橘橙
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* 色板 — 60% 冰底 / 30% 墨黑 / 10% 柑橘橙 */
  --paper:      #F1F4EE;   /* 冰底 */
  --paper-2:    #E7ECE2;   /* 次级底 */
  --card:       #FFFFFF;
  --ink:        #171310;   /* 浓缩墨黑 */
  --ink-2:      #3D362F;
  --ink-soft:   #6E655B;
  --orange:     #FF5A1F;   /* 柑橘橙 CTA */
  --orange-dk:  #E8480F;
  --ice:        #9FE0D6;   /* 冰薄荷 */
  --ice-deep:   #4FC2B0;
  --ice-pale:   #DFF2EC;
  --coffee:     #8B5E3C;
  --sun:        #FFC53D;
  --red:        #E5484D;
  --green:      #2F9E63;

  /* 字体 */
  --f-display: 'ZCOOL QingKe HuangYou', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --f-body: 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --f-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', 'Cascadia Mono', Consolas, monospace;

  /* 阴影 & 圆角 */
  --hard: 5px 5px 0 var(--ink);
  --hard-sm: 3px 3px 0 var(--ink);
  --hard-lg: 8px 8px 0 var(--ink);
  --soft: 0 12px 32px rgba(23,19,16,.10);
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px;

  /* 动效 */
  --ease-out: cubic-bezier(.22,1,.36,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --t-fast: .16s; --t-mid: .28s; --t-slow: .45s;

  /* 间距 */
  --sp-1: 8px; --sp-2: 16px; --sp-3: 24px; --sp-4: 40px; --sp-5: 64px; --sp-6: 96px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}
/* 全局噪点纹理（冰面质感） */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--orange); color: #fff; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; position: relative; z-index: 1; }

/* 滚动显现 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; } .reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; } .reveal[data-d="4"] { transition-delay: .32s; }

/* ============================================================
   顶部跑马灯（今日供应 LED 条）
   ============================================================ */
.ticker {
  background: var(--ink); color: var(--ice);
  overflow: hidden; white-space: nowrap;
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .08em;
  padding: 8px 0; border-bottom: 2px solid var(--ink);
  position: relative; z-index: 60;
}
.ticker-track { display: inline-flex; gap: 0; animation: ticker 28s linear infinite; will-change: transform; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { display: inline-block; padding: 0 1.6em; }
.ticker-track .hot { color: var(--sun); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ============================================================
   Header
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  transition: box-shadow var(--t-mid);
}
.header.scrolled { box-shadow: 0 6px 20px rgba(23,19,16,.10); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 11px; }
.logo-cup { width: 38px; height: 38px; flex: none; }
.logo-name { font-family: var(--f-display); font-size: 21px; letter-spacing: .02em; line-height: 1.1; }
.logo-name small { display: block; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .22em; color: var(--ink-soft); font-weight: 400; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 14.5px; font-weight: 500; position: relative; padding: 4px 0; }
.nav a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2.5px; background: var(--orange); transition: width var(--t-mid) var(--ease-out); }
.nav a:hover::after { width: 100%; }
.nav .admin-link { font-family: var(--f-mono); font-size: 12px; color: var(--ink-soft); border: 1.5px solid var(--ink-soft); border-radius: 999px; padding: 4px 12px; }
.nav .admin-link::after { display: none; }
.nav .admin-link:hover { color: var(--ink); border-color: var(--ink); }

/* 购物袋按钮 */
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--paper); border: 2px solid var(--ink);
  border-radius: 999px; padding: 8px 18px 8px 14px;
  font-size: 14px; font-weight: 700;
  transition: transform var(--t-fast) var(--ease-spring), background var(--t-fast);
}
.cart-btn:hover { transform: translateY(-1px); background: var(--ink-2); }
.cart-btn:active { transform: scale(.96); }
.cart-btn svg { width: 17px; height: 17px; }
.cart-badge {
  position: absolute; top: -7px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--orange); color: #fff; border: 2px solid var(--paper);
  border-radius: 999px; font-family: var(--f-mono); font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transform: scale(0); transition: transform var(--t-mid) var(--ease-spring);
}
.cart-badge.show { transform: scale(1); }
.cart-badge.pop { animation: pop .4s var(--ease-spring); }
@keyframes pop { 0% { transform: scale(1); } 45% { transform: scale(1.45); } 100% { transform: scale(1); } }

/* ============================================================
   开场（非对称海报，不是居中三件套）
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  padding: var(--sp-5) 0 var(--sp-6);
  background:
    radial-gradient(700px 480px at 88% 8%, rgba(159,224,214,.55), transparent 62%),
    radial-gradient(620px 460px at 4% 96%, rgba(255,90,31,.14), transparent 60%),
    var(--paper);
}
/* 漂浮冰块装饰 */
.hero .cube { position: absolute; border: 2px solid var(--ice-deep); border-radius: 6px; background: rgba(159,224,214,.35); animation: drift 9s ease-in-out infinite; z-index: 0; }
.hero .cube.c1 { width: 26px; height: 26px; top: 14%; left: 6%; transform: rotate(14deg); }
.hero .cube.c2 { width: 16px; height: 16px; top: 66%; left: 12%; transform: rotate(-10deg); animation-delay: -3s; }
.hero .cube.c3 { width: 20px; height: 20px; top: 22%; right: 8%; transform: rotate(24deg); animation-delay: -5s; }
.hero .cube.c4 { width: 12px; height: 12px; bottom: 18%; right: 16%; transform: rotate(-18deg); animation-delay: -7s; }
@keyframes drift { 0%,100% { translate: 0 0; } 50% { translate: 0 -16px; } }

.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: var(--sp-4); align-items: center; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em;
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px 15px;
  background: var(--card); margin-bottom: var(--sp-3);
}
.hero-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }

.hero-title { font-family: var(--f-display); line-height: 1.04; font-weight: 400; }
.hero-title .l1 { display: block; font-size: clamp(40px, 6.4vw, 76px); }
.hero-title .l2 {
  display: block; font-size: clamp(52px, 8.4vw, 104px);
  color: var(--orange); position: relative; display: inline-block;
}
.hero-title .l2::after {
  content: ''; position: absolute; left: -2%; bottom: 6px; width: 104%; height: 14px;
  background: var(--ice); z-index: -1; transform: skewX(-12deg);
}
.hero-outline {
  display: block; font-family: var(--f-display);
  font-size: clamp(24px, 3.4vw, 40px); letter-spacing: .06em; margin-top: 14px;
  color: transparent; -webkit-text-stroke: 1.6px var(--ink);
}
.hero-sub { margin: var(--sp-3) 0; font-size: 16.5px; color: var(--ink-2); max-width: 44ch; }
.hero-sub b { color: var(--orange-dk); }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  border: 2px solid var(--ink); border-radius: var(--r-md);
  padding: 13px 26px; font-size: 15.5px; font-weight: 700;
  transition: transform var(--t-fast) var(--ease-spring), box-shadow var(--t-fast), background var(--t-fast);
  box-shadow: var(--hard-sm);
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: var(--hard); }
.btn:active { transform: translate(2px,2px); box-shadow: 0 0 0 var(--ink); }
.btn-solid { background: var(--orange); color: var(--ink); }
.btn-solid:hover { background: var(--orange); }
.btn-ghost { background: var(--card); color: var(--ink); }

/* 数据条（非卡片） */
.hero-stats { display: flex; gap: 0; margin-top: var(--sp-4); border-top: 2px solid var(--ink); }
.hero-stats div { padding: 16px 26px 0 0; margin-right: 26px; border-right: 1.5px dashed rgba(23,19,16,.3); }
.hero-stats div:last-child { border-right: none; }
.hero-stats b { display: block; font-family: var(--f-mono); font-size: 24px; color: var(--ink); }
.hero-stats b em { font-style: normal; color: var(--orange-dk); }
.hero-stats span { font-size: 12px; color: var(--ink-soft); letter-spacing: .06em; }

/* 右侧：动画冰咖啡杯 */
.hero-art { position: relative; display: flex; justify-content: center; }
.cup-wrap { position: relative; width: min(380px, 84vw); }
.cup-wrap svg.main-cup { width: 100%; height: auto; filter: drop-shadow(10px 12px 0 rgba(23,19,16,.14)); }
/* 杯内元素动画 */
.ice-bob { animation: bob 3.4s ease-in-out infinite; }
.ice-bob.i2 { animation-delay: -1.2s; } .ice-bob.i3 { animation-delay: -2.2s; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-7px) rotate(3deg); } }
.bubble { animation: rise 4.2s ease-in infinite; opacity: 0; }
.bubble.b2 { animation-delay: -1.4s; } .bubble.b3 { animation-delay: -2.8s; }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .8; } 100% { transform: translateY(-120px); opacity: 0; } }
.drip { animation: drip 3s ease-in infinite; }
.drip.d2 { animation-delay: -1.5s; }
@keyframes drip { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(34px); opacity: 0; } }
.mist { animation: mist 5s ease-in-out infinite; }
.mist.m2 { animation-delay: -2.5s; }
@keyframes mist { 0%,100% { transform: translateX(0); opacity: .35; } 50% { transform: translateX(14px); opacity: .7; } }

/* 旋转贴纸徽章 */
.sticker {
  position: absolute; top: -18px; right: -8px; width: 108px; height: 108px;
  animation: spin 16s linear infinite; z-index: 2;
}
@keyframes spin { to { transform: rotate(360deg); } }
.temp-chip {
  position: absolute; bottom: 8%; left: -6%;
  background: var(--ink); color: var(--ice); border-radius: var(--r-md);
  font-family: var(--f-mono); font-size: 15px; font-weight: 700;
  padding: 9px 16px; box-shadow: var(--hard-sm); transform: rotate(-4deg);
  animation: drift 6s ease-in-out infinite;
}
.temp-chip small { display: block; font-size: 9.5px; letter-spacing: .16em; color: var(--paper); opacity: .7; font-weight: 400; }

/* ============================================================
   通用 Section 头
   ============================================================ */
.section { padding: var(--sp-6) 0; position: relative; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-4); flex-wrap: wrap; }
.sec-title { font-family: var(--f-display); font-size: clamp(34px, 4.6vw, 54px); line-height: 1.05; position: relative; }
.sec-title .en {
  display: block; font-size: clamp(15px, 1.8vw, 19px); letter-spacing: .3em;
  color: transparent; -webkit-text-stroke: 1.2px var(--ink-soft); margin-bottom: 6px;
}
.sec-title .mark { position: relative; z-index: 1; }
.sec-title .mark::after { content: ''; position: absolute; left: -3%; bottom: 4px; width: 106%; height: 12px; background: var(--ice); z-index: -1; transform: skewX(-12deg); }

/* ============================================================
   菜单
   ============================================================ */
.menu-section { background: var(--paper); }
.tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.tab {
  border: 2px solid var(--ink); background: var(--card); color: var(--ink);
  border-radius: 999px; padding: 9px 20px; font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 7px;
  transition: all var(--t-fast) var(--ease-spring);
}
.tab .cnt { font-family: var(--f-mono); font-size: 11px; background: var(--ice-pale); border-radius: 999px; padding: 1px 7px; color: var(--ink-2); }
.tab:hover { transform: translateY(-2px); box-shadow: var(--hard-sm); }
.tab.active { background: var(--ink); color: var(--paper); box-shadow: var(--hard-sm); }
.tab.active .cnt { background: var(--orange); color: #fff; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 24px; }

/* 商品卡：硬阴影海报卡 */
.p-card {
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-md);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--hard-sm);
  transition: transform var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease-out);
  opacity: 0; transform: translateY(18px);
}
.p-card.show { opacity: 1; transform: none; transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), box-shadow .25s; }
.p-card:hover { transform: translate(-3px,-3px); box-shadow: var(--hard); }
.p-media { position: relative; height: 172px; overflow: hidden; border-bottom: 2px solid var(--ink); background: var(--ice-pale); }
.p-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.p-card:hover .p-media img { transform: scale(1.07); }
.p-cat {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; font-weight: 700;
  background: var(--ink); color: var(--ice); border-radius: 4px; padding: 3px 9px;
}
.p-price {
  position: absolute; bottom: 10px; right: 10px; z-index: 2;
  font-family: var(--f-mono); font-size: 16px; font-weight: 700;
  background: var(--orange); color: var(--ink); border: 2px solid var(--ink);
  border-radius: var(--r-sm); padding: 3px 11px; box-shadow: 2px 2px 0 var(--ink);
}
.p-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.p-name { font-family: var(--f-display); font-size: 20px; line-height: 1.25; }
.p-name-en { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; color: var(--ink-soft); text-transform: uppercase; margin: 3px 0 8px; }
.p-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.6; flex: 1; }
.p-add {
  margin-top: 14px; width: 100%;
  background: var(--ink); color: var(--paper); border: 2px solid var(--ink);
  border-radius: var(--r-sm); padding: 10px 0; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background var(--t-fast), transform var(--t-fast) var(--ease-spring);
}
.p-add:hover { background: var(--orange); color: var(--ink); }
.p-add:active { transform: scale(.96); }
.p-add .plus { font-family: var(--f-mono); font-weight: 700; }

/* 骨架屏 */
.skel { border: 2px solid rgba(23,19,16,.12); border-radius: var(--r-md); overflow: hidden; background: var(--card); }
.skel .ph { background: linear-gradient(100deg, #eceae6 40%, #f7f6f3 50%, #eceae6 60%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.skel .ph.img { height: 172px; } .skel .ph.t { height: 18px; margin: 16px 18px 8px; width: 60%; }
.skel .ph.s { height: 12px; margin: 0 18px 18px; width: 85%; }

/* ============================================================
   关于（编辑式编号列表，不是均匀卡片）
   ============================================================ */
.about-section { background: var(--paper-2); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--sp-5); align-items: start; }
.about-left { position: sticky; top: 100px; }
.about-left p { color: var(--ink-2); margin-top: var(--sp-2); max-width: 38ch; }
.about-stamp {
  display: inline-block; margin-top: var(--sp-3);
  font-family: var(--f-display); font-size: 20px; color: var(--orange-dk);
  border: 2px dashed var(--orange-dk); border-radius: var(--r-sm);
  padding: 8px 18px; transform: rotate(-2.5deg);
}
.feat { display: flex; gap: var(--sp-3); padding: var(--sp-3) 0; border-bottom: 2px solid var(--ink); transition: padding-left var(--t-mid) var(--ease-out); }
.feat:first-child { border-top: 2px solid var(--ink); }
.feat:hover { padding-left: 14px; }
.feat-num { font-family: var(--f-mono); font-size: 34px; font-weight: 700; color: transparent; -webkit-text-stroke: 1.6px var(--ink-soft); line-height: 1; flex: none; width: 64px; transition: all var(--t-mid); }
.feat:hover .feat-num { -webkit-text-stroke-color: var(--orange); color: var(--orange); }
.feat h3 { font-family: var(--f-display); font-size: 23px; margin-bottom: 6px; }
.feat p { font-size: 14px; color: var(--ink-soft); }

/* ============================================================
   页脚（深色 + 巨型描边字跑马灯）
   ============================================================ */
.footer { background: var(--ink); color: var(--paper); padding-top: var(--sp-4); overflow: hidden; }
.foot-marquee { white-space: nowrap; overflow: hidden; padding: var(--sp-2) 0 var(--sp-4); }
.foot-marquee .track { display: inline-flex; animation: ticker 34s linear infinite reverse; }
.foot-marquee span {
  font-family: var(--f-display); font-size: clamp(56px, 9vw, 110px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(241,244,238,.4); padding: 0 .35em;
}
.foot-marquee span.fill { color: var(--orange); -webkit-text-stroke: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-4); padding: var(--sp-4) 0; border-top: 1.5px solid rgba(241,244,238,.2); }
.foot-grid h4 { font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em; color: var(--ice); margin-bottom: 16px; text-transform: uppercase; }
.foot-brand p { color: rgba(241,244,238,.65); font-size: 13.5px; max-width: 34ch; margin-top: 12px; }
.foot-list { list-style: none; }
.foot-list li { margin-bottom: 11px; font-size: 14px; color: rgba(241,244,238,.8); display: flex; gap: 10px; align-items: baseline; }
.foot-list .k { font-family: var(--f-mono); font-size: 11px; color: var(--ice-deep); flex: none; }
.foot-links a { display: block; padding: 5px 0; color: rgba(241,244,238,.8); font-size: 14px; width: fit-content; border-bottom: 1.5px solid transparent; transition: all var(--t-fast); }
.foot-links a:hover { color: var(--orange); border-bottom-color: var(--orange); transform: translateX(4px); }
.foot-bottom { border-top: 1.5px solid rgba(241,244,238,.2); padding: 18px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.foot-bottom p { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: rgba(241,244,238,.45); }
.foot-bottom a { color: rgba(241,244,238,.6); font-family: var(--f-mono); font-size: 11px; }
.foot-bottom a:hover { color: var(--orange); }

/* ============================================================
   悬浮购物袋条 + 底部抽屉（奶茶店点单 UX）
   ============================================================ */
.cartbar {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 90px);
  z-index: 80; width: min(560px, calc(100vw - 32px));
  background: var(--ink); color: var(--paper);
  border: 2px solid var(--ink); border-radius: var(--r-lg);
  box-shadow: 0 16px 40px rgba(23,19,16,.32);
  display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 20px;
  transition: transform var(--t-slow) var(--ease-spring);
}
.cartbar.show { transform: translate(-50%, 0); }
.cartbar-info { flex: 1; min-width: 0; }
.cartbar-info .n { font-size: 14px; font-weight: 700; }
.cartbar-info .n b { color: var(--ice); font-family: var(--f-mono); }
.cartbar-info .t { font-family: var(--f-mono); font-size: 19px; font-weight: 700; color: var(--sun); }
.cartbar-go {
  background: var(--orange); color: var(--ink); border: none; border-radius: var(--r-md);
  padding: 13px 26px; font-size: 15px; font-weight: 700; flex: none;
  transition: transform var(--t-fast) var(--ease-spring), background var(--t-fast);
}
.cartbar-go:hover { transform: scale(1.04); }
.cartbar-go:active { transform: scale(.96); }

/* 抽屉遮罩 & 面板 */
.sheet-mask { position: fixed; inset: 0; background: rgba(23,19,16,.5); z-index: 90; opacity: 0; pointer-events: none; transition: opacity var(--t-mid); backdrop-filter: blur(2px); }
.sheet-mask.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 50%; bottom: 0; transform: translate(-50%, 100%);
  z-index: 100; width: min(600px, 100vw);
  background: var(--paper); border: 2px solid var(--ink); border-bottom: none;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  max-height: 86vh; display: flex; flex-direction: column;
  transition: transform var(--t-slow) var(--ease-out);
  box-shadow: 0 -16px 48px rgba(23,19,16,.28);
}
.sheet.open { transform: translate(-50%, 0); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 14px; border-bottom: 2px solid var(--ink); }
.sheet-head h3 { font-family: var(--f-display); font-size: 24px; }
.sheet-head h3 small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; color: var(--ink-soft); margin-left: 8px; }
.sheet-close { width: 36px; height: 36px; border: 2px solid var(--ink); border-radius: 50%; background: var(--card); font-size: 17px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: all var(--t-fast) var(--ease-spring); }
.sheet-close:hover { background: var(--red); color: #fff; transform: rotate(90deg); }
.sheet-body { overflow-y: auto; padding: 18px 24px; flex: 1; }

/* 购物项 */
.c-item { display: flex; align-items: center; gap: 14px; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-md); padding: 10px 14px; margin-bottom: 12px; box-shadow: var(--hard-sm); }
.c-item img { width: 52px; height: 52px; object-fit: cover; border-radius: var(--r-sm); border: 1.5px solid var(--ink); flex: none; }
.c-item .nm { flex: 1; min-width: 0; }
.c-item .nm b { display: block; font-size: 14.5px; }
.c-item .nm span { font-family: var(--f-mono); font-size: 12.5px; color: var(--orange-dk); font-weight: 700; }
.stepper { display: flex; align-items: center; gap: 0; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--paper); flex: none; }
.stepper button { width: 32px; height: 32px; border: none; background: transparent; font-size: 16px; font-weight: 700; color: var(--ink); transition: background var(--t-fast); }
.stepper button:hover { background: var(--ice); }
.stepper .q { font-family: var(--f-mono); font-size: 14px; font-weight: 700; min-width: 28px; text-align: center; }

/* 快捷备注标签 */
.note-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 14px; }
.chip { border: 1.5px solid var(--ink); background: var(--card); border-radius: 999px; padding: 5px 14px; font-size: 12.5px; transition: all var(--t-fast) var(--ease-spring); }
.chip:hover { transform: translateY(-2px); }
.chip.on { background: var(--ice); box-shadow: 2px 2px 0 var(--ink); }

/* 表单 */
.f-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; color: var(--ink-soft); text-transform: uppercase; display: block; margin: 14px 0 6px; }
.f-label b { color: var(--red); }
.f-input {
  width: 100%; border: 2px solid var(--ink); border-radius: var(--r-sm);
  background: var(--card); padding: 12px 15px; font-size: 15px; font-family: inherit;
  transition: box-shadow var(--t-fast), transform var(--t-fast);
}
.f-input:focus { outline: none; box-shadow: var(--hard-sm); transform: translate(-1px,-1px); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.sheet-foot { border-top: 2px solid var(--ink); padding: 16px 24px 20px; background: var(--paper-2); }
.sheet-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.sheet-total span { font-size: 14px; color: var(--ink-soft); }
.sheet-total b { font-family: var(--f-mono); font-size: 26px; color: var(--orange-dk); }
.submit-btn {
  width: 100%; background: var(--orange); color: var(--ink); border: 2px solid var(--ink);
  border-radius: var(--r-md); padding: 15px; font-size: 16.5px; font-weight: 700;
  box-shadow: var(--hard-sm); transition: all var(--t-fast) var(--ease-spring);
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.submit-btn:hover:not(:disabled) { transform: translate(-2px,-2px); box-shadow: var(--hard); }
.submit-btn:active:not(:disabled) { transform: translate(2px,2px); box-shadow: none; }
.submit-btn:disabled { opacity: .6; cursor: wait; }
.submit-btn .spin { width: 16px; height: 16px; border: 2.5px solid var(--ink); border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.submit-btn.loading .spin { display: block; }

/* Toast */
.toast {
  position: fixed; top: 84px; left: 50%; transform: translate(-50%, -20px);
  z-index: 120; background: var(--ink); color: var(--paper);
  border-radius: 999px; padding: 10px 22px; font-size: 13.5px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(23,19,16,.3); opacity: 0; pointer-events: none;
  transition: all var(--t-mid) var(--ease-spring);
  display: flex; align-items: center; gap: 8px;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .tk { color: var(--ice); }

/* ============================================================
   订单状态页 — 小票 / 取餐单
   ============================================================ */
.order-page { padding: var(--sp-5) 0 var(--sp-6); min-height: 70vh; }
.ticket {
  max-width: 560px; margin: 0 auto; background: var(--card);
  border: 2px solid var(--ink); border-radius: var(--r-md);
  box-shadow: var(--hard-lg); position: relative; overflow: hidden;
}
/* 顶部撕边 */
.ticket::before {
  content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 12px;
  background: radial-gradient(circle at 8px -4px, transparent 9px, var(--card) 9px);
  background-size: 20px 12px; z-index: 2;
}
.ticket-head { background: var(--ink); color: var(--paper); padding: 26px 30px 20px; text-align: center; }
.ticket-head .brand { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .3em; color: var(--ice); }
.ticket-head h1 { font-family: var(--f-display); font-size: 30px; margin: 6px 0 4px; }
.ticket-head .oid { font-family: var(--f-mono); font-size: 15px; color: var(--sun); font-weight: 700; }
.ticket-head .otime { font-family: var(--f-mono); font-size: 11px; color: rgba(241,244,238,.55); margin-top: 6px; }

/* 状态杯 */
.cup-stage { padding: 34px 30px 10px; text-align: center; }
.cup-stage svg { width: 130px; margin: 0 auto; }
.status-msg { font-family: var(--f-display); font-size: 23px; margin-top: 18px; }
.status-msg .wait-dots i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); margin-left: 5px; animation: dotb 1.2s infinite; }
.status-msg .wait-dots i:nth-child(2) { animation-delay: .2s; } .status-msg .wait-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dotb { 0%,100% { transform: translateY(0); opacity:.4; } 50% { transform: translateY(-5px); opacity:1; } }
.eta { font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-soft); margin-top: 8px; letter-spacing: .06em; }
.status-msg.completed { color: var(--green); }
.status-msg.cancelled { color: var(--red); }
.status-msg.processing { color: var(--orange-dk); }

/* 进度时间线（竖向小票式） */
.timeline { margin: 26px 30px 0; border-top: 2px dashed rgba(23,19,16,.25); padding-top: 22px; }
.tl-step { display: flex; gap: 16px; position: relative; padding-bottom: 22px; }
.tl-step:last-child { padding-bottom: 4px; }
.tl-step::before { content: ''; position: absolute; left: 11px; top: 26px; bottom: 0; width: 2px; background: rgba(23,19,16,.15); }
.tl-step:last-child::before { display: none; }
.tl-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--ink); background: var(--card); flex: none; display: flex; align-items: center; justify-content: center; font-size: 11px; z-index: 1; transition: all var(--t-mid); }
.tl-step.done .tl-dot { background: var(--green); border-color: var(--green); color: #fff; }
.tl-step.active .tl-dot { background: var(--orange); border-color: var(--ink); animation: pulse-dot 1.6s infinite; }
@keyframes pulse-dot { 0%,100% { box-shadow: 0 0 0 0 rgba(255,90,31,.45); } 50% { box-shadow: 0 0 0 9px rgba(255,90,31,0); } }
.tl-step .lb { flex: 1; }
.tl-step .lb b { font-size: 15px; display: block; }
.tl-step .lb span { font-family: var(--f-mono); font-size: 11px; color: var(--ink-soft); }
.tl-step.pending .lb b { color: var(--ink-soft); }

/* 明细 */
.ticket-items { margin: 24px 30px 0; border-top: 2px dashed rgba(23,19,16,.25); padding-top: 18px; }
.ticket-items h3 { font-family: var(--f-mono); font-size: 11px; letter-spacing: .24em; color: var(--ink-soft); margin-bottom: 12px; }
.ti-row { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; font-size: 14.5px; }
.ti-row .nm { flex: none; }
.ti-row .dots { flex: 1; border-bottom: 2px dotted rgba(23,19,16,.3); transform: translateY(-4px); }
.ti-row .qty { font-family: var(--f-mono); font-size: 12px; color: var(--ink-soft); flex: none; }
.ti-row .pr { font-family: var(--f-mono); font-weight: 700; flex: none; }
.ti-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--ink); margin-top: 10px; padding: 14px 0 4px; }
.ti-total span { font-size: 14px; font-weight: 700; }
.ti-total b { font-family: var(--f-mono); font-size: 26px; color: var(--orange-dk); }
.ti-note { margin-top: 10px; background: var(--ice-pale); border: 1.5px dashed var(--ice-deep); border-radius: var(--r-sm); padding: 9px 13px; font-size: 13px; color: var(--ink-2); }
/* 条形码装饰 */
.barcode { margin: 26px 30px 0; height: 44px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 6px, transparent 6px 10px, var(--ink) 10px 13px, transparent 13px 16px); }
.ticket-foot { padding: 12px 30px 26px; text-align: center; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .2em; color: var(--ink-soft); }

.tips { max-width: 560px; margin: 26px auto 0; background: var(--ice-pale); border: 2px solid var(--ink); border-radius: var(--r-md); padding: 18px 24px; box-shadow: var(--hard-sm); }
.tips h4 { font-family: var(--f-display); font-size: 17px; margin-bottom: 8px; }
.tips li { font-size: 13px; color: var(--ink-2); margin-left: 18px; padding: 2.5px 0; }
.order-actions { max-width: 560px; margin: 22px auto 0; display: flex; gap: 12px; justify-content: center; }

/* ============================================================
   订单查询页
   ============================================================ */
.query-hero { text-align: left; margin-bottom: var(--sp-4); }
.query-box {
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-md);
  box-shadow: var(--hard); padding: 30px; max-width: 640px;
}
.query-form { display: flex; gap: 12px; }
.query-form .f-input { flex: 1; font-family: var(--f-mono); letter-spacing: .06em; }
.query-form .btn { flex: none; }
.q-order {
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-md);
  box-shadow: var(--hard-sm); padding: 18px 22px; margin-bottom: 16px; cursor: pointer;
  transition: transform var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease-out);
  display: block;
}
.q-order:hover { transform: translate(-3px,-3px); box-shadow: var(--hard); }
.q-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.q-top .id { font-family: var(--f-mono); font-weight: 700; font-size: 15px; }
.q-items { font-size: 13.5px; color: var(--ink-2); margin-bottom: 10px; }
.q-bottom { display: flex; justify-content: space-between; align-items: center; }
.q-bottom .tm { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-soft); }
.q-bottom .tt { font-family: var(--f-mono); font-weight: 700; font-size: 17px; color: var(--orange-dk); }
.q-note { margin-top: 10px; font-size: 12px; color: var(--ink-soft); background: var(--paper-2); border-radius: 6px; padding: 6px 10px; }
.badge { font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 3px 12px; border: 1.5px solid var(--ink); }
.badge.pending { background: var(--sun); }
.badge.processing { background: var(--ice); }
.badge.completed { background: var(--green); color: #fff; border-color: var(--green); }
.badge.cancelled { background: var(--paper-2); color: var(--ink-soft); border-color: var(--ink-soft); }
.empty { text-align: center; padding: 60px 20px; }
.empty .big { font-size: 52px; }
.empty p { font-family: var(--f-display); font-size: 21px; margin: 14px 0 4px; }
.empty span { font-size: 13px; color: var(--ink-soft); }

/* 子页面共用 header/footer 简化 */
.sub-header { background: var(--paper); border-bottom: 2px solid var(--ink); position: sticky; top: 0; z-index: 50; }
.sub-header .container { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.back-link { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--ink); border-radius: 999px; padding: 7px 16px; background: var(--card); transition: all var(--t-fast) var(--ease-spring); }
.back-link:hover { transform: translate(-2px,-2px); box-shadow: var(--hard-sm); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
  .hero-art { order: -1; margin-top: var(--sp-2); }
  .cup-wrap { width: min(280px, 70vw); }
  .about-grid { grid-template-columns: 1fr; gap: var(--sp-3); }
  .about-left { position: static; }
  .foot-grid { grid-template-columns: 1fr; gap: var(--sp-3); }
  .nav a:not(.admin-link) { display: none; }
}
@media (max-width: 600px) {
  .section { padding: var(--sp-5) 0; }
  .hero { padding: var(--sp-4) 0 var(--sp-5); }
  .hero-stats { flex-wrap: wrap; }
  .hero-stats div { margin-bottom: 10px; }
  .f-row { grid-template-columns: 1fr; }
  .query-form { flex-direction: column; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .ticket-head, .cup-stage, .timeline, .ticket-items, .barcode { padding-left: 20px; padding-right: 20px; }
  .barcode { margin-left: 20px; margin-right: 20px; }
}

/* 降低动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
