/* 糖块电竞 - 移动端优先 · 零构建静态站
   规则：只用系统字体与本地资源，不引外部 CDN，保证微信内置浏览器秒开 */

/* 糖块电竞主色基调：暗色 + 暗金 / 暗黄 */
:root {
  --bg: #0b0a07;
  --bg2: #131109;
  --card: #17150e;
  --card2: #1e1b11;
  --line: #2c2718;
  --txt: #f0e9d8;
  --dim: #a4977c;
  --brand: #d9a93c;
  --brand2: #a5741c;
  --warn: #d9a93c;
  --ok: #8fae55;
  --tabh: 58px;
  --r: 16px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0 0 calc(var(--tabh) + 16px + env(safe-area-inset-bottom)) 0;
  background:
    radial-gradient(115% 58% at 50% -6%, #1c1608 0%, rgba(11, 10, 7, 0) 52%) no-repeat,
    var(--bg);
  color: var(--txt);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
}

body.has-actionbar { padding-bottom: calc(var(--tabh) + 76px + env(safe-area-inset-bottom)); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }

::-webkit-scrollbar { display: none; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 560px; margin: 0 auto; padding: 0 14px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 10, 7, .88);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid rgba(217, 169, 60, .14);
}
.topbar .in {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
}
.backbtn {
  flex: 0 0 auto; margin-right: 2px;
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--card); color: var(--txt); cursor: pointer;
}
.backbtn svg { width: 17px; height: 17px; }
.backbtn:active { background: rgba(217, 169, 60, .14); color: var(--brand); }
.logo { display: flex; align-items: center; gap: 8px; min-width: 0; }
.logo img { width: 30px; height: 30px; object-fit: contain; }
.logo b { font-size: 16px; letter-spacing: .3px; white-space: nowrap; }
.dot-live {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--dim); white-space: nowrap;
}
.dot-live i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 0 3px rgba(47, 208, 138, .18);
}
.spacer { flex: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 999px; cursor: pointer;
  padding: 9px 14px; font-size: 14px; font-weight: 600;
  background: var(--card2); color: var(--txt);
  transition: transform .12s ease, opacity .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, #e0b64a 0%, var(--brand2) 100%);
  color: #231a05;
  box-shadow: 0 4px 16px rgba(217, 169, 60, .22);
}
.btn-block { display: flex; width: 100%; padding: 13px 14px; font-size: 16px; }
.btn-sm { padding: 6px 11px; font-size: 12.5px; }
.btn-ghost { background: transparent; border: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 26px 0 22px;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(46px); opacity: .5; z-index: 0;
}
.hero::before { width: 240px; height: 240px; background: var(--brand); top: -110px; right: -70px; opacity: .38; }
.hero::after { width: 200px; height: 200px; background: var(--brand2); bottom: -130px; left: -60px; }
.hero .wrap { position: relative; z-index: 1; }
.tagline {
  display: inline-block; font-size: 12px; letter-spacing: 1px; color: var(--brand);
  border: 1px solid rgba(217, 169, 60, .35); border-radius: 999px;
  padding: 4px 10px; margin-bottom: 14px; background: rgba(217, 169, 60, .08);
}
.hero h1 {
  margin: 0 0 10px; font-size: 30px; line-height: 1.24; letter-spacing: .6px;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; background: linear-gradient(135deg, var(--brand), var(--brand2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 0 0 14px; color: var(--dim); font-size: 14px; }
.hero-cta { display: flex; gap: 10px; }
.hero-cta .btn { flex: 1; padding: 7px 10px; font-size: 13.5px; gap: 5px; }
.hero-cta .btn svg { width: 16px; height: 16px; }

/* 首屏按钮下方的「可点击」提示 */
.hero .hero-tip {
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
  margin: 11px 0 0; font-size: 12px; line-height: 1.5; color: var(--dim);
}
.hero .hero-tip svg { width: 14px; height: 14px; color: var(--brand); flex: 0 0 auto; }
.hero .tipbadge {
  flex: 0 0 auto; font-size: 10.5px; letter-spacing: .3px;
  color: var(--brand); background: rgba(217, 169, 60, .1);
  border: 1px solid rgba(217, 169, 60, .32); border-radius: 6px; padding: 1px 6px;
}

/* ---------- 通用区块 ---------- */
.section { margin: 26px 0 0; }
.sec-head { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 12px; }
.sec-head h2 {
  margin: 0; font-size: 18.5px; letter-spacing: .5px;
  display: flex; align-items: center; gap: 9px;
}
.sec-head h2::before {
  content: ""; width: 4px; height: 17px; border-radius: 2px;
  background: linear-gradient(180deg, #e0b64a, var(--brand2));
  box-shadow: 0 0 10px rgba(224, 182, 74, .45);
}
.sec-head small { color: var(--dim); font-size: 12px; font-weight: 400; }
.sec-head .more { margin-left: auto; font-size: 13px; color: var(--dim); }
.sec-head .more:active { color: var(--brand); }


.feat {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 12px; border-radius: var(--r);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(224, 182, 74, .05), rgba(11, 10, 7, 0));
}
.feat .box {
  display: flex; align-items: center; gap: 7px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 11px;
}
.feat .box svg { width: 17px; height: 17px; color: var(--brand); flex: 0 0 auto; }
.feat .box { border-color: #302a1b; }
.feat .box b { font-size: 13px; font-weight: 600; line-height: 1.35; }

.steps { counter-reset: s; display: grid; gap: 10px; }
.steps .row {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
}
.steps .n {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 9px;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  background: linear-gradient(135deg, #e0b64a, var(--brand2));
  color: #231a05;
  box-shadow: 0 3px 10px rgba(217, 169, 60, .25);
}
.steps b { display: block; font-size: 14.5px; }
.steps p { margin: 2px 0 0; font-size: 12.5px; color: var(--dim); }

/* ---------- 分类 chips ---------- */
.chips {
  display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 2px 14px 10px; margin: 0 -14px; scrollbar-width: none;
}
.chips button {
  flex: 0 0 auto; border: 1px solid var(--line);
  background: linear-gradient(180deg, #1c1a11, var(--card));
  color: var(--dim); border-radius: 999px; padding: 7px 14px;
  font-size: 13.5px; cursor: pointer; transition: color .2s ease, border-color .2s ease;
}
.chips a { flex: 0 0 auto; border: 1px solid var(--line); background: linear-gradient(180deg, #1c1a11, var(--card)); color: var(--dim); border-radius: 999px; padding: 7px 14px; font-size: 13.5px; }
.chips.games button, .chips.games a { padding: 6px 12px; font-size: 13px; }
.chips a.on { background: linear-gradient(135deg, #e0b64a, var(--brand2)); color: #231a05; border-color: transparent; font-weight: 600; }
.chips button.on {
  background: linear-gradient(135deg, #e0b64a, var(--brand2)); color: #231a05; border-color: transparent; font-weight: 600;
}

.searchbar { position: relative; margin: 0 0 4px; }
.searchbar input {
  width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px 10px 36px; font-size: 14px; outline: none;
}
.searchbar svg { position: absolute; left: 11px; top: 11px; width: 16px; height: 16px; color: var(--dim); }

/* ---------- 顶栏搜索 ---------- */
.topsearch {
  flex: 1; min-width: 0; margin-left: 2px;
  display: flex; align-items: center; gap: 6px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 11px;
}
.topsearch svg { width: 15px; height: 15px; color: var(--dim); flex: 0 0 auto; }
.topsearch input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  font-size: 13px; color: var(--txt); -webkit-appearance: none; appearance: none;
}
.topsearch input::-webkit-search-cancel-button,
.bsearch input::-webkit-search-cancel-button { -webkit-appearance: none; }
.topsearch input::placeholder { color: #7d7561; }

/* ---------- 搜索页 ---------- */
.bsearch {
  position: sticky; top: 50px; z-index: 40;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 0;
  background: rgba(11, 10, 7, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.bsearch .field {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
}
.bsearch .field:focus-within { border-color: rgba(217, 169, 60, .5); }
.bsearch svg { width: 17px; height: 17px; color: var(--dim); flex: 0 0 auto; }
.bsearch input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  font-size: 15px; color: var(--txt); -webkit-appearance: none; appearance: none;
}
.bsearch .clear {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--card2); color: var(--dim); font-size: 15px; line-height: 1; display: none;
}
.bsearch .clear.on { display: block; }
.bsearch .cancel { flex: 0 0 auto; border: 0; background: transparent; color: var(--brand); font-size: 14px; cursor: pointer; }

.res-sum { font-size: 12.5px; color: var(--dim); margin: 4px 0 10px; }
.res-sum b { color: var(--brand); font-weight: 600; }
mark { background: rgba(217, 169, 60, .22); color: #ffe4a3; border-radius: 3px; padding: 0 1px; }
.recbtns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.recbtns .btn { flex: 1 1 auto; }
.recbtns a.btn { text-align: center; }


/* ---------- 服务/玩法卡片 ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.i-card {
  background: linear-gradient(180deg, #1c1a11, var(--card));
  border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
}
.i-card:active { transform: scale(.985); }
.i-card { transition: transform .15s ease, border-color .2s ease; }
.i-card .thumb { position: relative; aspect-ratio: 16 / 10; background: var(--card2); }
.i-card .thumb::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 10, 7, 0) 55%, rgba(11, 10, 7, .55) 100%);
}
.i-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.i-card .flag {
  position: absolute; left: 8px; top: 8px; font-size: 10.5px; font-weight: 700; padding: 3px 7px; border-radius: 6px;
  background: linear-gradient(135deg, #e0b64a, var(--brand2)); color: #231a05; letter-spacing: .3px;
}
.i-card .body { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.i-card h3 { margin: 0; font-size: 14.5px; line-height: 1.4; }
.i-card .meta { margin: 0; font-size: 11.5px; color: var(--dim); }
.i-card .foot { margin-top: auto; display: flex; align-items: baseline; gap: 6px; padding-top: 4px; }
.i-card .price { color: var(--brand); font-weight: 700; font-size: 17px; }
.i-card .price small { font-size: 11px; font-weight: 500; color: var(--dim); }
.i-card .unit { font-size: 11.5px; color: var(--dim); margin-left: auto; }

/* ---------- 资讯卡片 ---------- */
.p-list { display: grid; gap: 10px; }
.p-card {
  display: flex; gap: 11px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, #1c1a11, var(--card));
  border: 1px solid var(--line);
  border-radius: 14px; padding: 10px; cursor: pointer;
}
.p-card::before {
  content: ""; position: absolute; left: 0; top: 14%; bottom: 14%; width: 2px;
  border-radius: 2px; background: linear-gradient(180deg, #e0b64a, rgba(165, 116, 28, .1));
}
.p-card:active { transform: scale(.99); }
.p-card .thumb { flex: 0 0 96px; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--card2); }
.p-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.p-card .body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.p-card h3 {
  margin: 0; font-size: 15px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.p-card .desc {
  margin: 0; font-size: 12.5px; color: var(--dim);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.p-card .meta { margin-top: auto; font-size: 11.5px; color: #6f7789; display: flex; gap: 8px; }
.tagpill { display: inline-block; font-size: 10.5px; color: var(--brand); background: rgba(217, 169, 60, .13); border-radius: 5px; padding: 1px 6px; }

/* ---------- 须知 / FAQ ---------- */
.faq { display: grid; gap: 8px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 12px 0; font-size: 14.5px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--dim); font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 0 12px; font-size: 13.5px; color: var(--dim); }

.notice {
  display: flex; gap: 9px; background: rgba(217, 169, 60, .08);
  border: 1px solid rgba(217, 169, 60, .25); border-radius: 12px; padding: 10px 12px; margin-top: 14px;
}
.notice svg { flex: 0 0 auto; width: 16px; height: 16px; color: var(--warn); margin-top: 3px; }
.notice div { font-size: 12.5px; color: #d9cbaa; }

/* ---------- 联系卡片 ---------- */
.contact-grid { display: grid; gap: 10px; }
.c-box {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px;
  display: flex; gap: 12px; align-items: center;
}
.c-box .qr { flex: 0 0 74px; width: 74px; height: 74px; border-radius: 10px; background: #fff; padding: 4px; }
.c-box .tile {
  flex: 0 0 74px; width: 74px; height: 74px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(224, 182, 74, .16), rgba(165, 116, 28, .16));
  border: 1px solid rgba(217, 169, 60, .3);
}
.c-box .tile svg { width: 30px; height: 30px; color: var(--brand); }
.c-box .tile-img {
  flex: 0 0 74px; width: 74px; height: 74px; border-radius: 10px;
  background: #fff; padding: 12px; display: block;
  object-fit: contain;
}
/* 下单弹层：额外加价多选 */
.addon-head {
  margin: 14px 2px 8px; font-size: 13.5px; font-weight: 700;
  display: flex; align-items: baseline; gap: 8px;
}
.addon-head span { font-size: 11.5px; font-weight: 400; color: var(--dim); }
.addons { display: flex; flex-wrap: wrap; gap: 8px; }
.addon {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card2);
  color: var(--txt); font-size: 12.5px; font-family: inherit;
}
.addon em { font-style: normal; color: var(--dim); font-size: 11px; }
.addon b { font-size: 12px; font-weight: 700; color: var(--dim); }
.addon.on { border-color: rgba(var(--brand-rgb), .6); background: rgba(var(--brand-rgb), .12); }
.addon.on b { color: var(--brand); }
.addon.off { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.addons.single .addon { border-radius: 10px; }
.addon-note { margin: 8px 2px 0; font-size: 11.5px; color: var(--dim); }
.step-tip { margin: 0 2px 8px; font-size: 12px; color: var(--dim); }
.c-box .info { min-width: 0; flex: 1; }
.c-box b { display: block; font-size: 14.5px; }
.c-box p { margin: 2px 0 8px; font-size: 12.5px; color: var(--dim); }

/* ---------- 底部 tabbar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(13, 11, 7, .94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar .in { max-width: 560px; margin: 0 auto; display: flex; height: var(--tabh); }
.tabbar a { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #70788c; font-size: 11px; }
.tabbar a.on::after {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 18px; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, #e0b64a, var(--brand2));
}
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a.on { color: var(--brand); }
.tabbar a.on svg { filter: drop-shadow(0 0 6px rgba(217, 169, 60, .45)); }

/* ---------- 详情底部操作条 ---------- */
.actionbar {
  position: fixed; left: 0; right: 0; z-index: 55;
  bottom: calc(var(--tabh) + env(safe-area-inset-bottom));
  background: rgba(13, 11, 7, .95);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 10px 14px;
  display: flex; gap: 10px; align-items: center;
}
.actionbar .inner { max-width: 560px; margin: 0 auto; display: flex; gap: 10px; align-items: center; width: 100%; }
.actionbar .p { font-size: 12px; color: var(--dim); }
.actionbar .p b { display: block; color: var(--brand); font-size: 19px; line-height: 1.2; }
.actionbar .btn { flex: 1; padding: 12px 14px; font-size: 15.5px; }

/* ---------- 底部弹层 ---------- */
.mask {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .62); z-index: 70;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.mask.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  max-width: 560px; margin: 0 auto;
  background: var(--bg2); border-radius: 18px 18px 0 0;
  border-top: 1px solid var(--line);
  transform: translateY(101%);
  transition: transform .28s cubic-bezier(.32, .72, 0, 1);
  max-height: 84vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 6px 14px calc(18px + env(safe-area-inset-bottom));
  overscroll-behavior: contain;
}
.sheet.on { transform: translateY(0); }
.sheet .bar { width: 38px; height: 4px; border-radius: 2px; background: var(--line); margin: 6px auto 12px; }
.sheet h3 { margin: 0 0 4px; font-size: 17px; }
.sheet .sub { margin: 0 0 14px; font-size: 12.5px; color: var(--dim); }
.specs { display: grid; gap: 8px; margin-bottom: 14px; }
.spec {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 11px 12px;
}
.spec.on { border-color: var(--brand); background: rgba(217, 169, 60, .08); }
.spec .nm { font-size: 14px; }
.spec .nt { font-size: 11.5px; color: var(--dim); }
/* 两级联动矩阵选单（小时陪玩 / 无畏契约单价表） */
.mgroup { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 12px; margin-bottom: 10px; background: var(--card2); }
.mgroup-t { font-size: 12.5px; font-weight: 600; color: var(--brand); margin-bottom: 2px; }
.mlabel { font-size: 11.5px; color: var(--dim); margin: 9px 0 6px; }
.mchips { display: flex; flex-wrap: wrap; gap: 6px; }
.mchip { border: 1px solid var(--line); background: var(--card); color: var(--txt); border-radius: 999px; padding: 7px 12px; font-size: 12.5px; font-family: inherit; cursor: pointer; }
.mchip small { font-size: 10.5px; opacity: .7; margin-left: 3px; }
.mchip.on { border-color: var(--brand); color: var(--brand); background: rgba(217, 169, 60, .14); font-weight: 600; }
.mchip.on small { opacity: .9; }
.mchip.off { opacity: .35; text-decoration: line-through; }
.spec .pr { margin-left: auto; font-weight: 700; color: var(--brand); }
.spec-n {
  font-style: normal; font-size: 10.5px; margin-left: 5px; padding: 1px 5px; border-radius: 6px;
  background: rgba(217, 169, 60, .18); color: var(--brand); vertical-align: middle;
}
.specs.multi .spec { border-style: dashed; }
.hrs { display: flex; align-items: center; gap: 8px; }
.hrs-btn {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--txt); font-size: 19px; line-height: 1; font-family: inherit; cursor: pointer;
}
.hrs-btn:active { background: var(--card2); }
.hrs input {
  width: 74px; height: 42px; text-align: center; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--txt); font-size: 16px; font-weight: 700; font-family: inherit;
  outline: none; -moz-appearance: textfield; appearance: textfield;
}
.hrs input::-webkit-outer-spin-button, .hrs input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hrs input:focus { border-color: var(--brand); }
.hrs-u { font-size: 13px; color: var(--dim); }
.cost { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 10px 12px; }
.cost-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--dim); padding: 3px 0; }
.cost-row b { color: var(--txt); font-weight: 600; }
.cost-row.sum { border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 7px; }
.cost-row.grand { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; font-size: 14px; color: var(--txt); }
.cost-row.grand b { color: var(--brand); font-size: 17px; font-weight: 800; }
.allergy { font-size: 11.5px; color: #6f7789; margin: 10px 0 0; text-align: center; }

/* ---------- 文章正文 ---------- */
.post-head { padding: 18px 0 6px; }
.post-head h1 { margin: 8px 0 10px; font-size: 22px; line-height: 1.4; }
.post-meta { font-size: 12px; color: #6f7789; display: flex; gap: 10px; flex-wrap: wrap; }
.post-body { padding: 6px 0 8px; font-size: 15.5px; line-height: 1.85; color: #d6dae6; }
.post-body p { margin: 0 0 14px; }
.post-body h3 { font-size: 16.5px; margin: 22px 0 10px; color: #fff; border-left: 3px solid var(--brand); padding-left: 9px; }
.post-body img { border-radius: 12px; margin: 6px 0 14px; }
.post-body ul { margin: 0 0 14px; padding-left: 20px; }
.post-body li { margin-bottom: 6px; }
.post-body blockquote {
  margin: 0 0 14px; padding: 10px 12px; border-radius: 10px;
  background: var(--card); border-left: 3px solid var(--brand2); color: var(--dim); font-size: 14px;
}
.post-body a { color: var(--brand); text-decoration: underline; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

/* ---------- 顶栏导航项 ---------- */
.navlink {
  font-size: 13px; font-weight: 500; letter-spacing: .2px;
  color: var(--dim); white-space: nowrap;
  padding: 4px 8px; border-radius: 8px;
  transition: color .18s ease, background-color .18s ease;
}
.navlink:hover, .navlink.on { color: var(--brand); background: rgba(217, 169, 60, .1); }
@media (max-width: 360px) { .navlink { font-size: 12.5px; padding: 4px 6px; } }

/* ---------- 下单须知：居中模态框 ---------- */
.rmodal {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0, 0, 0, .66);
  display: flex; align-items: center; justify-content: center;
  padding: calc(50px + 12px) 12px calc(16px + env(safe-area-inset-bottom));
  opacity: 0; transition: opacity .22s ease;
}
.rmodal.on { opacity: 1; }
.rbox {
  width: 100%; max-width: 560px; margin: 0 auto;
  max-height: calc(100vh - 50px - 30px);
  display: flex; flex-direction: column;
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 18px 48px rgba(0, 0, 0, .55);
  overflow: hidden;
}
.rhead {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px;
  padding: 12px 12px 12px 16px;
  border-bottom: 1px solid var(--line); background: var(--bg2);
}
.rhead b { font-size: 16px; letter-spacing: .3px; }
.rclose {
  margin-left: auto; flex: 0 0 auto;
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--card); color: var(--dim); cursor: pointer;
}
.rclose svg { width: 16px; height: 16px; }
.rclose:active { background: rgba(217, 169, 60, .14); color: var(--brand); }
.rbody {
  flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
  font-size: 13.5px; line-height: 1.85; color: #d6dae6;
}
.rbody p { margin: 0 0 10px; }
.rbody strong { color: #fff; font-weight: 700; }
.r-t {
  margin: 0 0 14px; padding-bottom: 11px;
  font-size: 19px; font-weight: 700; letter-spacing: .5px; color: var(--txt);
  border-bottom: 1px solid var(--line);
}
.r-lead { margin: 0 0 8px; }
.r-h {
  margin: 22px 0 10px; padding-left: 9px;
  font-size: 15.5px; font-weight: 700; color: var(--txt);
  border-left: 3px solid var(--brand);
}
.r-lab { margin: 16px 0 8px; }
.r-lab strong { color: var(--brand); }
.r-ol { margin: 0 0 16px; padding-left: 20px; }
.r-ol li { margin-bottom: 10px; }
.r-ol li::marker { color: var(--brand); font-weight: 600; }
.r-sub { margin: 6px 0 0; font-size: 13px; color: var(--dim); }
.r-ind { padding-left: 16px; }
.r-line { margin: 0 0 6px; }
.r-hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
@media (max-width: 380px) {
  .rbody { font-size: 13px; padding: 14px 13px calc(18px + env(safe-area-inset-bottom)); }
  .r-t { font-size: 17.5px; }
}

.relrow { display: flex; gap: 10px; overflow-x: auto; padding: 4px 14px 2px; margin: 0 -14px; }

/* ---------- 页脚 ---------- */
.foot { margin: 34px 0 6px; padding: 20px 0 24px; border-top: 1px solid rgba(217, 169, 60, .16); color: #626a7d; font-size: 11.5px; text-align: center; line-height: 1.8; }
.foot-logo { height: 34px; margin: 0 auto 10px; opacity: .92; }
.foot .links { display: flex; justify-content: center; gap: 14px; margin-bottom: 8px; color: var(--dim); }
.foot .icp { margin-top: 2px; }
.foot .icp a {
  color: #7a8398; text-decoration: none;
  border-bottom: 1px dotted rgba(122, 131, 152, .55);
  padding-bottom: 1px;
}
.foot .icp a:hover, .foot .icp a:active { color: var(--brand); border-bottom-color: rgba(217, 169, 60, .6); }
.foot .icp-sep { margin: 0 6px; opacity: .45; }
.foot .icp-ent { color: #626a7d; }

.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(8px);
  background: rgba(32, 28, 16, .96); border: 1px solid var(--line); color: var(--txt);
  padding: 10px 16px; border-radius: 12px; font-size: 13.5px; z-index: 99;
  opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; max-width: 84vw; text-align: center;
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

.empty { text-align: center; color: var(--dim); font-size: 13.5px; padding: 40px 0; }

/* ---------- 详情内页通用块 ---------- */
.block { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-top: 12px; }
.block h3 { margin: 0 0 10px; font-size: 15.5px; display: flex; align-items: center; gap: 7px; }
.block h3 svg { width: 17px; height: 17px; color: var(--brand); }
.block ul { margin: 0; padding-left: 18px; font-size: 13.5px; color: #c4c9d8; }
.block li { margin-bottom: 5px; }
.kv { display: flex; gap: 10px; font-size: 13.5px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--dim); flex: 0 0 62px; }
.kv b { font-weight: 500; }
/* 规格说明里的 <b> 需要真的比周围重一档（外层 .kv b 是 500） */
.kv b small { font-weight: 400; }
.kv b small b { font-weight: 800; }
.gallery { display: flex; gap: 8px; overflow-x: auto; margin: 0 -14px; padding: 2px 14px; }
.gallery img { flex: 0 0 72%; border-radius: 12px; }

/* ---------- 二维码大图 ---------- */
.viewer {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center;
  background: rgba(0, 0, 0, .88); padding: 22px;
  opacity: 0; transition: opacity .2s ease;
}
.viewer.on { opacity: 1; }
.viewer .vbox { text-align: center; }
.viewer .vbox b { display: block; color: var(--txt); font-size: 16px; margin-bottom: 12px; }
.viewer .vbox img {
  width: min(78vw, 320px); margin: 0 auto 12px;
  background: #fff; padding: 10px; border-radius: 16px;
}
.viewer .vbox p { margin: 0 0 14px; font-size: 13px; color: var(--dim); }

/* ---------- 页面内编辑模式（网址加 ?edit=1） ---------- */
body.editmode { padding-bottom: calc(var(--tabh) + 80px + env(safe-area-inset-bottom)); }
body.editmode .ed {
  box-shadow: 0 0 0 1px rgba(217, 169, 60, .55);
  border-radius: 4px; cursor: text;
}
body.editmode .ed:active { background: rgba(217, 169, 60, .16); }
.editbar {
  position: fixed; left: 0; right: 0; z-index: 66;
  bottom: calc(var(--tabh) + env(safe-area-inset-bottom));
  background: rgba(13, 11, 7, .96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(217, 169, 60, .25); padding: 9px 14px;
}
body.has-actionbar .editbar { bottom: calc(var(--tabh) + 62px + env(safe-area-inset-bottom)); }
.editbar .inner { max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 8px; }
.editbar .cnt { font-size: 12.5px; color: var(--dim); margin-right: auto; white-space: nowrap; }
.editbar .cnt b { color: var(--brand); }

/* ---------- 资讯分页 ---------- */
.pager {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; align-items: center;
  padding: 20px 0 8px;
}
.pager button {
  min-width: 40px; padding: 9px 13px;
  border: 1px solid var(--line); border-radius: 10px;
  background: linear-gradient(180deg, #1c1a11, var(--card));
  color: var(--dim); font-size: 13.5px; font-family: inherit;
  cursor: pointer; transition: color .2s ease, border-color .2s ease;
}
.pager button.on {
  background: linear-gradient(135deg, #e0b64a, var(--brand2));
  color: #231a05; border-color: transparent; font-weight: 600;
}
.pager button:disabled { opacity: .32; cursor: default; }
.pager .tip { width: 100%; text-align: center; color: var(--dim); font-size: 12px; margin-top: 2px; }
