/* ==========================================================================
   妙克好味送 · Myeik Eats  设计系统
   设计语言：柚木棕 + 菩提叶绿 + 庙宇金，缅甸菱格织纹，米浆纸底
   ========================================================================== */

/* ---------- 0. 文字族（按 unicode-range 绑定本地系统字体） ---------- */
@font-face {
  font-family: "Myeik Myanmar";
  src: local("Myanmar Text"), local("Microsoft Myanmar UI"), local("Padauk"),
       local("Noto Sans Myanmar"), local("Pyidaungsu"), local("Padauk Myanmar");
  unicode-range: U+1000-109F, U+A9E0-A9FF, U+AA60-AA7F, U+AA80-AADF,
                 U+116D0-116FF, U+1E7E0-1E7FF;
  font-display: swap;
}
@font-face {
  font-family: "Myeik Indic";
  src: local("Nirmala UI"), local("Bangla"), local("Noto Sans Bengali"), local("Kokila");
  unicode-range: U+0980-09FF, U+0900-097F, U+0C00-0C7F, U+0D00-0D7F;
  font-display: swap;
}

/* ---------- 1. 令牌 ---------- */
:root {
  /* 品牌绿（菩提叶） */
  --g-900: #0F2E22;
  --g-800: #163D2D;
  --g-700: #1E5540;
  --g-600: #2A7055;
  --g-500: #38906E;
  --g-300: #8FC6AC;
  --g-100: #DCEFE5;
  --g-50:  #EEF8F2;

  /* 庙宇金 */
  --gold-700: #8A5A10;
  --gold-600: #B8801A;
  --gold-500: #D9A227;
  --gold-400: #E9BE55;
  --gold-200: #F5E3AE;
  --gold-100: #FBF2DA;

  /* 漆红（节庆/警示） */
  --r-700: #8C1D22;
  --r-600: #AE2A2A;
  --r-500: #C73A33;
  --r-100: #FBE6E4;

  /* 柚木棕 */
  --wood-800: #4A2E1B;
  --wood-700: #6B4527;
  --wood-600: #8C5C33;
  --wood-500: #A8763F;
  --wood-200: #E8D6BE;
  --wood-100: #F3E7D5;

  /* 中性 */
  --ink-900: #241F1A;
  --ink-800: #362F28;
  --ink-700: #4C423A;
  --ink-500: #7C7167;
  --ink-400: #9C9188;
  --ink-300: #C2B8AE;
  --line:   #E7DCCB;
  --line-2: #D9CBB4;
  --paper:  #FBF5EA;
  --paper-2:#F5ECDC;
  --card:   #FFFFFF;

  /* 语义 */
  --ok-600:#1E7A52; --ok-100:#E2F3EA;
  --info-600:#2C6BAF; --info-100:#E5EFFA;
  --warn-600:#B4740C; --warn-100:#FBEEDA;
  --err-600:#B4291F;  --err-100:#FBE4E2;

  /* 圆角 */
  --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 18px; --r-xl: 26px; --r-pill: 999px;

  /* 阴影 */
  --sh-1: 0 1px 2px rgba(36,31,26,.06), 0 1px 1px rgba(36,31,26,.04);
  --sh-2: 0 2px 8px rgba(36,31,26,.07), 0 1px 2px rgba(36,31,26,.05);
  --sh-3: 0 8px 24px rgba(36,31,26,.10), 0 2px 6px rgba(36,31,26,.05);
  --sh-4: 0 18px 48px rgba(20,35,28,.18), 0 4px 12px rgba(20,35,28,.08);
  --sh-gold: 0 6px 18px rgba(184,128,26,.28);

  /* 字体 —— 缅文/南亚文字走独立的 unicode-range 字体族，
     避免在中文或英文界面里落回中文字体而出现字形叠压 */
  --f-sc: "Myeik Myanmar", "Myeik Indic";
  --f-zh: var(--f-sc), "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --f-my: var(--f-sc), "Padauk", "Noto Sans Myanmar", "Myanmar Text", "Pyidaungsu", sans-serif;
  --f-en: var(--f-sc), "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Georgia", "Times New Roman", "Songti SC", "SimSun", serif;
  --f-num: "SF Mono", "Segoe UI", "Consolas", monospace;

  --header-h: 58px;
  --tabbar-h: 58px;
}

/* ---------- 2. 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--f-en);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-800);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang="zh"] body { font-family: var(--f-zh); }
html[lang="my"] body { font-family: var(--f-my); line-height: 1.75; }
html[lang="my"] .num, html[lang="my"] .price { font-family: var(--f-my); font-variant-numeric: tabular-nums; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
input, textarea, select { background: #fff; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; border-radius: 4px; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 3. 滚动条 ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-300); }

/* ---------- 4. 排版 ---------- */
.t-display { font-family: var(--f-serif); font-weight: 700; letter-spacing: .01em; }
.t-h1 { font-size: 22px; font-weight: 700; color: var(--ink-900); line-height: 1.3; }
.t-h2 { font-size: 17px; font-weight: 700; color: var(--ink-900); line-height: 1.35; }
.t-h3 { font-size: 14.5px; font-weight: 700; color: var(--ink-900); }
.t-body { font-size: 13.5px; color: var(--ink-700); }
.t-sm { font-size: 12.5px; color: var(--ink-500); }
.t-xs { font-size: 11.5px; color: var(--ink-400); }
.t-label {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--wood-600);
}
.t-muted { color: var(--ink-500); }
.t-ok { color: var(--ok-600); } .t-err { color: var(--err-600); } .t-warn { color: var(--warn-600); }
.t-gold { color: var(--gold-600); }
.t-center { text-align: center; }
.t-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 5. 纹样与装饰 ---------- */
.pattern-temple {
  background-image:
    repeating-linear-gradient(45deg, rgba(184,128,26,.10) 0 1px, transparent 1px 11px),
    repeating-linear-gradient(-45deg, rgba(184,128,26,.10) 0 1px, transparent 1px 11px);
}
.pattern-lotus {
  background-image:
    radial-gradient(circle at 50% 120%, rgba(217,162,39,.16) 0 18%, transparent 19%),
    radial-gradient(circle at 20% 120%, rgba(217,162,39,.11) 0 14%, transparent 15%),
    radial-gradient(circle at 80% 120%, rgba(217,162,39,.11) 0 14%, transparent 15%);
}
.divider-lotus {
  height: 14px; background-repeat: no-repeat; background-position: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='14' viewBox='0 0 120 14'%3E%3Cpath d='M60 13c-8 0-13-4-13-9 5 0 9 2 13 6 4-4 8-6 13-6 0 5-5 9-13 9z' fill='%23D9A227' opacity='.55'/%3E%3Cpath d='M30 13c-6 0-9-3-9-6 4 0 6 1 9 4 3-3 5-4 9-4 0 3-3 6-9 6z' fill='%23A8763F' opacity='.4'/%3E%3Cpath d='M90 13c-6 0-9-3-9-6 4 0 6 1 9 4 3-3 5-4 9-4 0 3-3 6-9 6z' fill='%23A8763F' opacity='.4'/%3E%3C/svg%3E");
}
.brand-mark { display: block; width: 34px; height: 34px; flex: none; }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 15px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
  background: var(--card); color: var(--ink-800);
  border: 1px solid var(--line-2);
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, opacity .18s;
}
.btn:hover { border-color: var(--wood-500); background: var(--paper-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-gold { background: linear-gradient(160deg, var(--gold-400), var(--gold-600)); border-color: var(--gold-600); color: #fff; box-shadow: var(--sh-gold); }
.btn-gold:hover { background: linear-gradient(160deg, var(--gold-500), var(--gold-700)); border-color: var(--gold-700); }
.btn-green { background: linear-gradient(160deg, var(--g-500), var(--g-700)); border-color: var(--g-700); color: #fff; box-shadow: 0 6px 16px rgba(30,85,64,.24); }
.btn-green:hover { background: linear-gradient(160deg, var(--g-400,var(--g-500)), var(--g-800)); }
.btn-danger { background: var(--r-600); border-color: var(--r-700); color: #fff; }
.btn-danger:hover { background: var(--r-700); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--g-700); }
.btn-ghost:hover { background: var(--g-50); border-color: transparent; }
.btn-soft { background: var(--g-50); border-color: transparent; color: var(--g-700); }
.btn-soft:hover { background: var(--g-100); }
.btn-sm { height: 29px; padding: 0 11px; font-size: 12.5px; border-radius: var(--r-xs); }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: var(--r-md); }
.btn-block { width: 100%; }
.btn-icon { width: 34px; padding: 0; }
.btn-round { border-radius: var(--r-pill); }

.icon-btn {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-500); transition: background .16s, color .16s;
}
.icon-btn:hover { background: var(--paper-2); color: var(--ink-900); }

/* ---------- 7. 卡片 / 面板 ---------- */
.card {
  background: var(--card); border-radius: var(--r-md);
  box-shadow: var(--sh-1); border: 1px solid rgba(231,220,203,.8);
}
.card-pad { padding: 14px; }
.card-hover { transition: box-shadow .2s, transform .2s; }
.card-hover:hover { box-shadow: var(--sh-3); transform: translateY(-2px); }
.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #FCF9F3);
}
.panel-title { font-size: 14.5px; font-weight: 700; color: var(--ink-900); display: flex; align-items: center; gap: 8px; }
.panel-title::before {
  content: ""; width: 3px; height: 14px; border-radius: 2px;
  background: linear-gradient(180deg, var(--gold-400), var(--gold-600));
}
.panel-body { padding: 16px; }
.panel-foot { padding: 12px 16px; border-top: 1px solid var(--line); background: var(--paper-2); }

/* ---------- 8. 徽标 / 标签 / 状态 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: var(--r-pill);
  font-size: 11.5px; font-weight: 700; line-height: 1.7;
  background: var(--paper-2); color: var(--ink-700);
}
.badge-gold { background: var(--gold-100); color: var(--gold-700); }
.badge-green { background: var(--g-50); color: var(--g-700); }
.badge-red { background: var(--r-100); color: var(--r-700); }
.badge-blue { background: var(--info-100); color: var(--info-600); }
.badge-warn { background: var(--warn-100); color: var(--warn-600); }
.badge-ink { background: var(--ink-900); color: var(--wood-100); }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 30px; padding: 0 12px; border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
  background: var(--paper-2); color: var(--ink-700);
  border: 1px solid transparent; transition: all .16s;
}
.chip:hover { background: var(--wood-100); }
.chip.active { background: var(--g-700); color: #fff; border-color: var(--g-800); }
.chip.gold.active { background: var(--gold-600); border-color: var(--gold-700); }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }

/* ---------- 9. 表单 ---------- */
.field { display: block; margin-bottom: 13px; }
.field-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-700); margin-bottom: 5px; }
.input, .select, .textarea {
  width: 100%; height: 38px; padding: 0 11px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: #fff; font-size: 13.5px; color: var(--ink-900);
  transition: border-color .16s, box-shadow .16s;
}
.textarea { height: auto; min-height: 78px; padding: 9px 11px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--g-500); box-shadow: 0 0 0 3px var(--g-100);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-300); }
.select { appearance: none; padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5 6 8.5 10 4.5' stroke='%237C7167' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
}
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }

.switch { position: relative; display: inline-block; width: 40px; height: 23px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute; inset: 0; background: var(--ink-300); border-radius: var(--r-pill);
  transition: background .2s;
}
.switch .track::before {
  content: ""; position: absolute; width: 17px; height: 17px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: var(--sh-1);
}
.switch input:checked + .track { background: var(--g-500); }
.switch input:checked + .track::before { transform: translateX(17px); }

.slider { width: 100%; appearance: none; height: 5px; border-radius: 3px; background: var(--line-2); }
.slider::-webkit-slider-thumb {
  appearance: none; width: 17px; height: 17px; border-radius: 50%;
  background: var(--gold-500); border: 2px solid #fff; box-shadow: var(--sh-2); cursor: pointer;
}

.radio-row { display: flex; flex-wrap: wrap; gap: 9px; }
.radio-card {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); cursor: pointer;
  font-size: 13px; transition: all .16s; background: #fff;
}
.radio-card:hover { border-color: var(--wood-500); }
.radio-card input { accent-color: var(--g-600); }
.radio-card.on { border-color: var(--g-500); background: var(--g-50); }

/* ---------- 10. 头像 / 缩略图 ---------- */
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff;
  background: linear-gradient(150deg, var(--g-500), var(--g-800));
  overflow: hidden;
}
.avatar.sq { border-radius: var(--r-sm); }
.avatar.lg { width: 54px; height: 54px; font-size: 19px; }
.avatar.xl { width: 68px; height: 68px; font-size: 24px; }
.avatar.gold { background: linear-gradient(150deg, var(--gold-400), var(--gold-700)); }
.avatar.wood { background: linear-gradient(150deg, var(--wood-500), var(--wood-800)); }
.avatar.red  { background: linear-gradient(150deg, var(--r-500), var(--r-700)); }
.avatar.blue { background: linear-gradient(150deg, #4A8AD0, #1F4E7D); }

.thumb {
  width: 64px; height: 64px; border-radius: var(--r-sm); flex: none;
  display: grid; place-items: center; font-size: 27px; overflow: hidden;
  background: var(--paper-2);
}
.thumb.lg { width: 92px; height: 92px; font-size: 38px; border-radius: var(--r-md); }
.thumb.sm { width: 46px; height: 46px; font-size: 21px; }

/* ---------- 11. 列表 / 行 ---------- */
.list { display: flex; flex-direction: column; }
.list-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  transition: background .14s;
}
.list-row:last-child { border-bottom: 0; }
.list-row.clickable:hover { background: var(--paper-2); cursor: pointer; }
.list-row .grow { flex: 1; min-width: 0; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.row-gap { display: flex; align-items: center; gap: 8px; }

.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13px; }
.kv + .kv { border-top: 1px dashed var(--line); }
.kv .k { color: var(--ink-500); }
.kv .v { color: var(--ink-900); font-weight: 600; text-align: right; }

/* ---------- 12. 标签页 ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; padding: 10px 14px; font-size: 13.5px; font-weight: 600;
  color: var(--ink-500); white-space: nowrap; transition: color .16s;
}
.tab:hover { color: var(--ink-800); }
.tab.active { color: var(--g-700); }
.tab.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2.5px;
  border-radius: 2px; background: linear-gradient(90deg, var(--gold-500), var(--g-500));
}
.tab .count {
  margin-left: 5px; font-size: 11px; padding: 1px 6px; border-radius: var(--r-pill);
  background: var(--r-500); color: #fff;
}

/* ---------- 13. 模态 / 抽屉 / 吐司 ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(28,24,20,.45);
  backdrop-filter: blur(2px); z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity .22s ease;
}
.overlay.show { opacity: 1; pointer-events: auto; }

.modal {
  position: fixed; z-index: 100; left: 50%; top: 50%;
  transform: translate(-50%, -46%) scale(.97);
  width: min(520px, calc(100vw - 32px)); max-height: min(84vh, 720px);
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-4);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.modal.show { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.modal-head { padding: 15px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.modal-body { padding: 18px; overflow-y: auto; flex: 1; }
.modal-foot { padding: 13px 18px; border-top: 1px solid var(--line); display: flex; gap: 9px; justify-content: flex-end; background: var(--paper-2); }

.sheet {
  position: fixed; z-index: 100; left: 0; right: 0; bottom: 0;
  background: var(--card); border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--sh-4); max-height: 88vh; display: flex; flex-direction: column;
  transform: translateY(102%); transition: transform .28s cubic-bezier(.32,.72,0,1);
}
.sheet.show { transform: translateY(0); }
.sheet-handle { width: 40px; height: 4px; border-radius: 2px; background: var(--ink-300); margin: 9px auto 3px; flex: none; }
.sheet-head { padding: 8px 18px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sheet-body { overflow-y: auto; padding: 0 18px 18px; }
.sheet-foot { padding: 13px 18px; border-top: 1px solid var(--line); display: flex; gap: 9px; background: var(--paper-2); }

.drawer {
  position: fixed; z-index: 100; top: 0; right: 0; bottom: 0;
  width: min(520px, 94vw); background: var(--card); box-shadow: var(--sh-4);
  display: flex; flex-direction: column;
  transform: translateX(102%); transition: transform .28s cubic-bezier(.32,.72,0,1);
}
.drawer.show { transform: translateX(0); }
.drawer-head { padding: 15px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px; }
.drawer-foot { padding: 13px 18px; border-top: 1px solid var(--line); display: flex; gap: 9px; justify-content: flex-end; background: var(--paper-2); }

.toast-wrap {
  position: fixed; z-index: 200; left: 50%; top: 22px; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--r-pill);
  background: rgba(30,25,20,.93); color: #fff; font-size: 13px; font-weight: 500;
  box-shadow: var(--sh-3); backdrop-filter: blur(6px);
  animation: toastIn .28s cubic-bezier(.2,.9,.3,1.2);
}
.toast.ok { background: rgba(30,122,82,.95); }
.toast.err { background: rgba(180,41,31,.95); }
.toast.gold { background: rgba(184,128,26,.96); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px) scale(.94); } to { opacity: 1; transform: none; } }
.toast.out { animation: toastOut .24s ease forwards; }
@keyframes toastOut { to { opacity: 0; transform: translateY(-8px); } }

/* ---------- 14. 空态 / 骨架 / 载入 ---------- */
.empty { padding: 48px 24px; text-align: center; color: var(--ink-400); }
.empty .emo { font-size: 44px; margin-bottom: 10px; opacity: .8; }
.empty .t { font-size: 14px; color: var(--ink-500); }

.skel { background: linear-gradient(90deg, var(--paper-2) 25%, #fff 50%, var(--paper-2) 75%); background-size: 300% 100%; animation: shimmer 1.3s infinite; border-radius: var(--r-sm); }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--line-2); border-top-color: var(--g-600);
  animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 15. 价格 / 评分 / 步进器 ---------- */
.price { font-weight: 700; color: var(--r-600); font-variant-numeric: tabular-nums; }
.price .cur { font-size: .74em; font-weight: 600; margin-right: 1px; }
.price.strike { color: var(--ink-400); text-decoration: line-through; font-weight: 500; }
.price .dec { font-size: .74em; }

.stars { display: inline-flex; gap: 1px; color: var(--gold-500); font-size: 12px; letter-spacing: .5px; }
.stars .off { color: var(--line-2); }

.stepper { display: inline-flex; align-items: center; gap: 8px; }
.stepper button {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-size: 15px; font-weight: 700; line-height: 1;
  background: var(--g-50); color: var(--g-700); transition: all .14s;
}
.stepper button:hover { background: var(--g-600); color: #fff; }
.stepper button.minus { background: var(--paper-2); color: var(--ink-500); }
.stepper button.minus:hover { background: var(--ink-300); color: #fff; }
.stepper .n { min-width: 15px; text-align: center; font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums; }

/* ---------- 16. 进度 / 时间线 ---------- */
.bar { height: 6px; border-radius: 3px; background: var(--paper-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--g-500), var(--g-700)); transition: width .5s ease; }
.bar.gold > i { background: linear-gradient(90deg, var(--gold-400), var(--gold-600)); }
.bar.red > i { background: linear-gradient(90deg, #E0705F, var(--r-600)); }

.timeline { display: flex; flex-direction: column; }
.tl-item { display: flex; gap: 12px; position: relative; padding-bottom: 16px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 5px; top: 16px; bottom: 0; width: 2px; background: var(--line);
}
.tl-item:last-child::before { display: none; }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--line-2); flex: none; margin-top: 3px; z-index: 1; }
.tl-item.done .tl-dot { background: var(--g-500); box-shadow: 0 0 0 3px var(--g-100); }
.tl-item.current .tl-dot { background: var(--gold-500); box-shadow: 0 0 0 3px var(--gold-100); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px var(--gold-100); } 50% { box-shadow: 0 0 0 6px rgba(217,162,39,.16); } }

/* ---------- 17. 栅格 ---------- */
.grid { display: grid; gap: 12px; }
.g-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.g-auto { grid-template-columns: repeat(auto-fill, minmax(190px,1fr)); }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-10 { gap: 10px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.grow { flex: 1; min-width: 0; }
.mt-4{margin-top:4px}.mt-8{margin-top:8px}.mt-12{margin-top:12px}.mt-16{margin-top:16px}.mt-20{margin-top:20px}
.mb-4{margin-bottom:4px}.mb-8{margin-bottom:8px}.mb-12{margin-bottom:12px}.mb-16{margin-bottom:16px}
.p-12{padding:12px}.p-16{padding:16px}.p-20{padding:20px}
.hstack { display: flex; align-items: center; }
.vstack { display: flex; flex-direction: column; }
.scroll-y { overflow-y: auto; }
.hide { display: none !important; }

/* ---------- 18. 表格 ---------- */
.table { font-size: 13px; }
.table th {
  text-align: left; padding: 10px 12px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--wood-600);
  background: var(--paper-2); border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr { transition: background .14s; }
.table tbody tr:hover { background: var(--paper-2); }
.table .right { text-align: right; }

/* ---------- 19. 语言切换器 ---------- */
.lang-switch { display: inline-flex; padding: 2px; background: var(--paper-2); border-radius: var(--r-pill); gap: 2px; }
.lang-switch button {
  padding: 4px 11px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700;
  color: var(--ink-500); transition: all .16s; letter-spacing: .02em;
}
.lang-switch button.active { background: var(--g-700); color: #fff; box-shadow: var(--sh-1); }
.lang-switch.light button.active { background: var(--gold-500); }

/* ---------- 20. 动效 ---------- */
.fade-in { animation: fadeIn .32s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pop-in { animation: popIn .3s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes popIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
.slide-up { animation: slideUp .3s cubic-bezier(.32,.72,0,1) both; }
@keyframes slideUp { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- 21. 响应式 ---------- */
@media (max-width: 720px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .g-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 420px) {
  .g-2, .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media print { .no-print { display: none !important; } }
