/* ==========================================================================
   RINM 发卡 · 深色拟态设计系统
   列表：变量 → 基础 → 组件 → 前台页面 → 后台 → 响应式
   ========================================================================== */

@font-face {
  font-family: 'SourceHanSans';
  src: url('https://lf-flow-web-cdn.doubao.com/obj/flow-doubao/doubao/infinite-canvas/fonts/v1/source-han-sans-sc-vf/source-han-sans-sc-vf.otf') format('opentype');
  font-display: swap;
  font-weight: 100 900;
}
@font-face {
  font-family: 'FragmentMono';
  src: url('https://lf-flow-web-cdn.doubao.com/obj/flow-doubao/doubao/infinite-canvas/fonts/v1/fragment-mono/fragment-mono-regular.ttf') format('truetype');
  font-display: swap;
  font-weight: 400;
}

:root {
  --bg: #0e131a;
  --bg-deep: #0a0e14;
  --panel: #0e131a;
  --panel-2: #121a23;
  --text: #e9f1f9;
  --muted: #8496a9;
  --dim: #5d6e80;
  --cyan: #3ee0ff;
  --cyan-deep: #1fb6d8;
  --violet: #a877ff;
  --green: #4ade80;
  --amber: #ffc857;
  --red: #ff6b81;
  --line: rgba(255, 255, 255, .06);
  --r: 18px;
  --r-lg: 24px;
  --sh: 10px 10px 24px rgba(0, 0, 0, .62), -8px -8px 18px rgba(255, 255, 255, .035);
  --sh-sm: 6px 6px 12px rgba(0, 0, 0, .55), -5px -5px 10px rgba(255, 255, 255, .03);
  --sh-in: inset 6px 6px 14px rgba(0, 0, 0, .66), inset -6px -6px 12px rgba(255, 255, 255, .028);
  --sh-in-sm: inset 3px 3px 7px rgba(0, 0, 0, .6), inset -3px -3px 6px rgba(255, 255, 255, .025);
  --glow-cyan: 0 0 24px rgba(62, 224, 255, .35);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'SourceHanSans', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(900px 480px at 82% -10%, rgba(62, 224, 255, .10), transparent 62%),
    radial-gradient(700px 420px at 6% 8%, rgba(168, 119, 255, .09), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: auto, auto, 46px 46px, 46px 46px;
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.mono { font-family: 'FragmentMono', ui-monospace, Menlo, monospace; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.tiny { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 20, .82);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: .02em; flex: 0 0 auto; white-space: nowrap; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 11px; background: var(--panel); box-shadow: var(--sh-sm);
  color: var(--cyan);
}
.brand-mark svg { width: 18px; height: 18px; }
.brand-logo { height: 34px; width: auto; max-width: 150px; object-fit: contain; display: block; border-radius: 8px; }
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--dim); letter-spacing: .22em; }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav a {
  padding: 8px 14px; border-radius: 12px; font-size: 14px; color: var(--muted);
  transition: color .2s, box-shadow .2s, background .2s;
}
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--text); box-shadow: var(--sh-in-sm); }
.header-cta { display: flex; gap: 10px; margin-left: 0; }
.hd-search { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.hd-search .input { width: 216px; height: 38px; border-radius: 12px; padding: 0 14px; font-size: 13px; }
.hd-search .btn { height: 38px; width: 42px; padding: 0; border-radius: 12px; flex: 0 0 auto; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 20px; height: 44px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--panel); color: var(--text); font-size: 14.5px; font-weight: 600;
  box-shadow: var(--sh-sm); transition: transform .15s, box-shadow .2s, color .2s;
}
.btn:hover { color: #fff; }
.btn:active { box-shadow: var(--sh-in-sm); transform: translateY(1px); }
.btn--primary {
  background: linear-gradient(135deg, var(--cyan), #7ff0ff 45%, #48c8ff);
  color: #04222c; box-shadow: 6px 6px 16px rgba(0, 0, 0, .55), -4px -4px 12px rgba(62, 224, 255, .16);
}
.btn--primary:hover { color: #04222c; filter: brightness(1.04); }
.btn--violet {
  background: linear-gradient(135deg, var(--violet), #c9a6ff);
  color: #190a2c;
}
.btn--ghost { background: transparent; box-shadow: var(--sh-in-sm); color: var(--muted); }
.btn--sm { height: 36px; padding: 0 14px; border-radius: 11px; font-size: 13px; }
.btn--block { width: 100%; }
.btn--lg { height: 52px; border-radius: 16px; font-size: 16px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: var(--sh-in-sm); }

/* ---------- 卡片 / 面板 ---------- */
.card { background: var(--panel); border-radius: var(--r); box-shadow: var(--sh); }
.card--pad { padding: 24px; }
.card--inset { box-shadow: var(--sh-in); border-radius: var(--r); background: var(--bg); }

/* ---------- 表单 ---------- */
.field { display: block; margin-bottom: 16px; }
.field > span.label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.input, .select, textarea.input {
  width: 100%; height: 44px; padding: 0 15px; border: 0; border-radius: 13px;
  background: #0b0f15; border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: var(--sh-in-sm);
  color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s;
}
textarea.input { height: auto; padding: 12px 15px; resize: vertical; line-height: 1.6; }
.input::placeholder { color: var(--muted); opacity: .85; }
.input:focus, .select:focus { border-color: rgba(62, 224, 255, .65); box-shadow: var(--sh-in-sm), 0 0 0 1px rgba(62, 224, 255, .35); }
.input-group { display: flex; gap: 10px; }
.input-group .input { flex: 1; }

.qty { display: inline-flex; align-items: center; gap: 0; border-radius: 13px; box-shadow: var(--sh-in-sm); overflow: hidden; }
.qty button {
  width: 42px; height: 44px; border: 0; background: transparent; color: var(--muted);
  font-size: 18px; cursor: pointer;
}
.qty button:hover { color: var(--cyan); }
.qty input {
  width: 38px; height: 44px; border: 0; background: transparent; text-align: center;
  font-family: 'FragmentMono', monospace; font-size: 15px; outline: none;
}

/* ---------- 标签 / 徽章 ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px;
  border-radius: 12px; font-size: 13.5px; color: var(--muted); cursor: pointer;
  box-shadow: var(--sh-sm); transition: all .2s; background: var(--panel);
}
.pill:hover { color: var(--text); }
.pill.on { color: var(--cyan); box-shadow: var(--sh-in-sm); }
.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 7px;
  font-size: 11.5px; color: var(--violet); background: rgba(168, 119, 255, .12);
  box-shadow: inset 0 0 0 1px rgba(168, 119, 255, .22);
}
.tag--cyan { color: var(--cyan); background: rgba(62, 224, 255, .1); box-shadow: inset 0 0 0 1px rgba(62, 224, 255, .2); }
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border-radius: 9px; font-size: 12px; box-shadow: var(--sh-in-sm);
}
.badge--ok { color: var(--green); }
.badge--wait { color: var(--amber); }
.badge--off { color: var(--dim); }
.badge--err { color: var(--red); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

/* ---------- 顶部工具条（已并入顶栏，保留以便回滚） ---------- */
.topbar {
  display: none; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; padding: 30px 0 22px;
}
.topbar .hero-search { margin-top: 0; flex: 0 1 440px; max-width: 440px; }
.topbar .hero-stats { margin-top: 0; gap: 30px; }

/* ---------- Hero（已停用，保留样式以便回滚） ---------- */
.hero { padding: 60px 0 44px; }
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; }
.hero-inner > div { max-width: 760px; }
.eyebrow {
  font-family: 'FragmentMono', monospace; font-size: 12px; letter-spacing: .34em;
  color: var(--cyan); text-transform: uppercase; margin-bottom: 16px;
}
.hero h1 { font-size: 46px; line-height: 1.18; letter-spacing: -.5px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--cyan); text-shadow: 0 0 30px rgba(62, 224, 255, .45); }
.hero p.lead { margin-top: 16px; color: var(--muted); font-size: 15.5px; max-width: 30em; }
.hero-search { margin-top: 26px; display: flex; gap: 12px; max-width: 470px; }
.hero-search .input { height: 46px; }
.hero-search .btn { flex: 0 0 auto; padding: 0 28px; white-space: nowrap; height: 46px; }
.hero-stats { display: flex; gap: 26px; margin-top: 26px; }
.hero-stats b { font-family: 'FragmentMono', monospace; font-size: 20px; color: var(--text); display: block; }
.hero-stats span { font-size: 12px; color: var(--dim); }

.hero-visual {
  position: relative; aspect-ratio: 1/.86; border-radius: 28px;
  background: radial-gradient(circle at 50% 45%, rgba(62, 224, 255, .12), transparent 62%), var(--panel);
  box-shadow: var(--sh); display: grid; place-items: center; overflow: hidden;
}
.hero-visual::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 34px 34px; mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 74%);
}
.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(62, 224, 255, .16); }
.ring.r1 { width: 62%; height: 62%; }
.ring.r2 { width: 78%; height: 78%; border-color: rgba(168, 119, 255, .14); }
.core {
  position: relative; z-index: 2; width: 108px; height: 108px; border-radius: 50%;
  display: grid; place-items: center; color: var(--cyan);
  background: var(--panel); box-shadow: var(--sh), inset 0 0 30px rgba(62, 224, 255, .16);
}
.core svg { width: 42px; height: 42px; }
.orbit-chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px;
  padding: 8px 13px; border-radius: 12px; background: var(--panel); box-shadow: var(--sh-sm);
  font-size: 12.5px; color: var(--muted);
}
.orbit-chip svg { width: 14px; height: 14px; color: var(--cyan); }
.orbit-chip.c1 { top: 16%; left: 8%; }
.orbit-chip.c2 { bottom: 18%; right: 7%; }
.orbit-chip.c3 { bottom: 12%; left: 14%; }
.orbit-chip.c3 svg { color: var(--violet); }

/* ---------- 公告 ---------- */
.notice-bar {
  display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-radius: 14px;
  box-shadow: var(--sh-in-sm); color: var(--muted); font-size: 13.5px; margin: 26px 0 34px;
}
.notice-bar b { color: var(--cyan); font-weight: 600; white-space: nowrap; flex: 0 0 auto; display: inline-flex; gap: 7px; align-items: center; }

/* ---------- 区块标题 ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-head h2 { font-size: 24px; letter-spacing: -.2px; }
.section-head p { color: var(--dim); font-size: 13px; margin-top: 4px; }

/* ---------- 商品网格 ---------- */
.goods-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 22px; }
.goods-card {
  display: flex; flex-direction: column; padding: 18px; border-radius: var(--r-lg);
  background: var(--panel); box-shadow: var(--sh); transition: transform .22s, box-shadow .22s;
}
.goods-card:hover { transform: translateY(-3px); box-shadow: 12px 14px 30px rgba(0, 0, 0, .66), -8px -8px 20px rgba(255, 255, 255, .04); }
.goods-cover {
  position: relative; height: 152px; border-radius: 16px; overflow: hidden;
  display: grid; place-items: center; color: var(--cyan);
  background: radial-gradient(circle at 50% 120%, rgba(62, 224, 255, .16), transparent 66%), var(--bg);
  box-shadow: var(--sh-in-sm);
}
.goods-cover.v { color: var(--violet); background: radial-gradient(circle at 50% 120%, rgba(168, 119, 255, .18), transparent 66%), var(--bg); }
.goods-cover svg { width: 54px; height: 54px; filter: drop-shadow(0 0 16px currentColor); }
.goods-cover .stock {
  position: absolute; top: 10px; right: 10px; font-size: 11.5px; color: var(--muted);
  background: rgba(10, 14, 20, .72); padding: 3px 9px; border-radius: 8px;
}
.goods-body { padding: 16px 4px 0; display: flex; flex-direction: column; flex: 1; }
.goods-body h3 { font-size: 16.5px; line-height: 1.45; }
.goods-body p { color: var(--dim); font-size: 13px; margin-top: 7px; flex: 1; }
.goods-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.price { color: var(--cyan); font-weight: 800; font-size: 22px; font-family: 'FragmentMono', monospace; letter-spacing: -.5px; }
.price small { font-size: 13px; margin-right: 2px; font-family: 'SourceHanSans', sans-serif; }
.price-old { color: var(--dim); font-size: 12px; text-decoration: line-through; margin-left: 7px; font-family: 'FragmentMono', monospace; }
.sales { color: var(--dim); font-size: 12px; }

/* ---------- 商品列表模板：横向列表 ---------- */
.goods-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.goods-row {
  display: flex; align-items: center; gap: 18px; padding: 16px 20px;
  border-radius: var(--r-lg); background: var(--panel); box-shadow: var(--sh-sm);
  transition: transform .2s, box-shadow .2s;
}
.goods-row:hover { transform: translateY(-2px); box-shadow: var(--sh); }
.row-icon {
  flex: 0 0 auto; width: 76px; height: 76px; border-radius: 16px; display: grid; place-items: center;
  color: var(--cyan);
  background: radial-gradient(circle at 50% 120%, rgba(62, 224, 255, .16), transparent 66%), var(--bg);
  box-shadow: var(--sh-in-sm);
}
.row-icon.v { color: var(--violet); background: radial-gradient(circle at 50% 120%, rgba(168, 119, 255, .18), transparent 66%), var(--bg); }
.row-icon svg { width: 34px; height: 34px; filter: drop-shadow(0 0 12px currentColor); }
.row-main { flex: 1; min-width: 0; }
.row-main h3 { font-size: 16px; }
.row-main p { color: var(--dim); font-size: 13px; margin-top: 5px; }
.row-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.chip { font-size: 11.5px; color: var(--muted); padding: 3px 9px; border-radius: 7px; box-shadow: var(--sh-in-sm); }
.row-buy { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 0 0 auto; }
.row-go { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--cyan); }

.goods-list .goods-row { padding: 14px 16px; gap: 14px; }
.goods-list .row-icon { width: 62px; height: 62px; border-radius: 14px; }
.goods-list .row-icon svg { width: 28px; height: 28px; }
.goods-list .row-main h3 { font-size: 15px; }
.goods-list .row-main p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goods-list .row-buy .price { font-size: 20px; }

/* ---------- 商品列表模板：票券卡片 ---------- */
.goods-tickets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.goods-ticket {
  position: relative; display: flex; flex-direction: column; border-radius: 20px;
  background: var(--panel); box-shadow: var(--sh); overflow: hidden;
  transition: transform .22s, box-shadow .22s;
}
.goods-ticket::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--violet)); opacity: .8;
}
.goods-ticket:hover { transform: translateY(-3px); box-shadow: 12px 14px 30px rgba(0, 0, 0, .66), -8px -8px 20px rgba(255, 255, 255, .04); }
.ticket-top { display: flex; align-items: flex-start; gap: 14px; padding: 20px 20px 16px; }
.ticket-icon {
  flex: 0 0 auto; width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  color: var(--cyan);
  background: radial-gradient(circle at 50% 120%, rgba(62, 224, 255, .16), transparent 66%), var(--bg);
  box-shadow: var(--sh-in-sm);
}
.ticket-icon.v { color: var(--violet); background: radial-gradient(circle at 50% 120%, rgba(168, 119, 255, .18), transparent 66%), var(--bg); }
.ticket-icon svg { width: 26px; height: 26px; filter: drop-shadow(0 0 10px currentColor); }
.ticket-info { flex: 1; min-width: 0; }
.ticket-head { display: flex; align-items: center; gap: 8px; }
.ticket-head h3 { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket-cat {
  flex: 0 0 auto; font-size: 11px; color: var(--cyan); padding: 2px 8px; border-radius: 6px;
  box-shadow: var(--sh-in-sm); opacity: .92;
}
.ticket-info p { color: var(--dim); font-size: 12.5px; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket-cut {
  position: relative; height: 24px;
  background:
    radial-gradient(circle at 0 50%, var(--bg-deep) 9px, transparent 9.5px),
    radial-gradient(circle at 100% 50%, var(--bg-deep) 9px, transparent 9.5px);
}
.ticket-cut::before { content: ''; position: absolute; left: 18px; right: 18px; top: 50%; border-top: 1px dashed rgba(255, 255, 255, .13); }
.ticket-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 20px 18px; }
.ticket-prices { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-width: 0; }
.ticket-prices .price { font-size: 21px; }
.ticket-prices .chip { font-size: 11px; }
.ticket-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px;
  border-radius: 11px; font-size: 12.5px; color: var(--cyan); font-weight: 600;
  box-shadow: var(--sh-sm); transition: box-shadow .2s, transform .2s;
}
.goods-ticket:hover .ticket-btn { box-shadow: var(--sh-in-sm); transform: translateX(1px); }
.ticket-btn svg { filter: drop-shadow(0 0 8px currentColor); }

.empty {
  padding: 60px 20px; text-align: center; color: var(--dim); border-radius: var(--r-lg);
  box-shadow: var(--sh-in); font-size: 14px;
}

/* ---------- 商品展示图 ---------- */
.cover-img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.goods-cover .cover-img, .row-icon .cover-img, .ticket-icon .cover-img { border-radius: 9px; }
.goods-cover:has(.cover-img) { padding: 0; background: none; box-shadow: none; height: 132px; }
.row-icon:has(.cover-img), .ticket-icon:has(.cover-img) { padding: 9px; }
.ticket-icon:has(.cover-img) { padding: 6px; }
.goods-cover { position: relative; }
.goods-cover:has(.cover-img) .stock { z-index: 2; }
.cover-prev {
  flex: 0 0 auto; width: 96px; height: 96px; border-radius: 14px; overflow: hidden;
  display: grid; place-items: center; color: var(--cyan);
  background: radial-gradient(circle at 50% 120%, rgba(62, 224, 255, .16), transparent 66%), var(--bg);
  box-shadow: var(--sh-in-sm);
}
.cover-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-prev__icon svg { width: 34px; height: 34px; }

/* ---------- 商品列表模板：橱窗大图 ---------- */
.goods-showcase { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.show-card {
  display: flex; flex-direction: column; border-radius: 20px; overflow: hidden;
  background: var(--panel); box-shadow: var(--sh); transition: transform .22s, box-shadow .22s;
}
.show-card:hover { transform: translateY(-3px); box-shadow: 12px 14px 30px rgba(0, 0, 0, .66), -8px -8px 20px rgba(255, 255, 255, .04); }
.show-media {
  position: relative; height: 168px; display: flex; align-items: center; justify-content: center;
  padding: 14px; color: var(--cyan);
  background: radial-gradient(circle at 50% 130%, rgba(62, 224, 255, .16), transparent 68%), var(--bg);
}
.show-media .cover-img { max-height: 140px; max-width: 100%; width: auto; height: auto; border-radius: 12px; box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
.show-media svg { width: 52px; height: 52px; filter: drop-shadow(0 0 18px currentColor); }
.show-cat {
  position: absolute; top: 12px; left: 12px; font-size: 11px; letter-spacing: .3px; color: var(--cyan);
  background: rgba(10, 14, 20, .78); padding: 4px 10px; border-radius: 8px; box-shadow: var(--sh-in-sm);
}
.show-out {
  position: absolute; top: 12px; right: 12px; font-size: 11px; color: var(--muted);
  background: rgba(10, 14, 20, .78); padding: 4px 9px; border-radius: 8px;
}
.show-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.show-body h3 { font-size: 16px; line-height: 1.45; }
.show-body p { color: var(--dim); font-size: 12.5px; margin-top: 6px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.show-foot { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.show-foot .price { font-size: 21px; }
.show-go {
  margin-left: auto; font-size: 12.5px; color: var(--cyan); padding: 5px 12px; border-radius: 9px;
  box-shadow: var(--sh-in-sm);
}

/* ---------- 商品列表模板：极简清单 ---------- */
.goods-min { border-radius: var(--r-lg); background: var(--panel); box-shadow: var(--sh-sm); overflow: hidden; }
.min-row {
  display: flex; align-items: center; gap: 14px; padding: 15px 22px 15px 18px;
  border-top: 1px solid var(--line); transition: background .18s;
}
.min-row:first-child { border-top: 0; }
.min-row:hover { background: rgba(62, 224, 255, .04); }
.min-row:hover .min-main b { color: var(--cyan); }
.min-dot {
  flex: 0 0 auto; width: 4px; height: 4px; border-radius: 50%;
  background: currentColor; color: var(--dim); transition: all .18s;
}
.min-row:hover .min-dot { color: var(--cyan); box-shadow: 0 0 8px currentColor; height: 16px; border-radius: 2px; }
.min-main { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.min-main b { font-size: 14.5px; font-weight: 600; transition: color .18s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.min-main em { font-style: normal; font-size: 11.5px; color: var(--dim); flex: 0 0 auto; }
.min-stock { font-size: 11.5px; color: var(--dim); flex: 0 0 auto; }
.min-price { font-size: 17px; font-weight: 800; color: var(--cyan); font-family: 'FragmentMono', monospace; flex: 0 0 auto; }
.min-price small { font-size: 11px; margin-right: 1px; font-family: 'SourceHanSans', sans-serif; }
.min-go { flex: 0 0 auto; color: var(--dim); display: flex; transition: color .18s, transform .18s; }
.min-row:hover .min-go { color: var(--cyan); transform: translateX(2px); }

/* ---------- 商品列表模板：图文并排 ---------- */
.goods-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.md-card {
  display: flex; align-items: stretch; gap: 14px; padding: 15px 16px;
  border-radius: 16px; background: linear-gradient(160deg, rgba(255,255,255,.022), transparent 46%), var(--panel); box-shadow: var(--sh-sm);
  transition: transform .2s, box-shadow .2s;
}
.md-card:hover { transform: translateY(-2px); box-shadow: var(--sh); }
.md-cover {
  flex: 0 0 auto; width: 116px; border-radius: 12px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; color: var(--cyan);
  background: radial-gradient(circle at 50% 125%, rgba(62, 224, 255, .17), transparent 68%), var(--bg);
  box-shadow: var(--sh-in-sm), inset 0 0 0 1px rgba(255, 255, 255, .045);
}
.md-cover .cover-img { max-width: calc(100% - 12px); max-height: 92px; width: auto; height: auto; border-radius: 8px; transition: transform .25s; }
.md-card:hover .md-cover .cover-img { transform: scale(1.045); }
.md-cover svg { width: 38px; height: 38px; filter: drop-shadow(0 0 14px currentColor); }
.md-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.md-body h3 {
  font-size: 15.5px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.md-body p {
  color: var(--dim); font-size: 12.5px; margin-top: 5px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.md-foot { display: flex; align-items: baseline; gap: 7px; margin-top: 10px; }
.md-foot .price { font-size: 19px; }

/* ---------- 商品列表模板：大图横幅 ---------- */
.goods-banner { display: grid; gap: 14px; }
.bnr {
  position: relative; display: flex; align-items: flex-end; gap: 16px;
  min-height: 118px; padding: 18px 20px; border-radius: 18px; overflow: hidden;
  background-position: center; background-size: cover; background-color: var(--panel);
  background-image: radial-gradient(circle at 88% 20%, rgba(168, 119, 255, .28), transparent 60%),
                    radial-gradient(circle at 8% 110%, rgba(62, 224, 255, .22), transparent 62%);
  box-shadow: var(--sh); transition: transform .22s, box-shadow .22s;
}
.bnr:hover { transform: translateY(-2px); box-shadow: 12px 14px 30px rgba(0, 0, 0, .66), -8px -8px 20px rgba(255, 255, 255, .04); }
.bnr-bg {
  position: absolute; inset: 0; z-index: 0;
  background-position: center; background-size: cover; background-repeat: no-repeat;
  filter: brightness(.9) saturate(1.15) blur(1px); opacity: .33;
  transform: scale(1.04); transition: transform .5s ease, opacity .3s;
}
.bnr.has-img:hover .bnr-bg { transform: scale(1.08); opacity: .46; }
.bnr-mask {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(8, 11, 16, .85) 0%, rgba(8, 11, 16, .55) 46%, rgba(8, 11, 16, .2) 100%);
}
.bnr-cat {
  position: absolute; top: 14px; left: 20px; z-index: 3; font-size: 11px; color: var(--cyan);
  background: rgba(10, 14, 20, .7); padding: 4px 10px; border-radius: 8px;
}
.bnr-text { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 6px; padding-right: 12px; min-width: 0; }
.bnr-text b { font-size: 17.5px; letter-spacing: -.2px; }
.bnr-text b, .bnr-text i { text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.bnr-text i { font-style: normal; font-size: 12.5px; color: #9fb0c2; }
.bnr-side { position: relative; z-index: 2; margin-left: auto; display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.bnr-price { font-size: 24px; font-weight: 800; color: var(--cyan); font-family: 'FragmentMono', monospace; }
.bnr-price small { font-size: 13px; margin-right: 2px; font-family: 'SourceHanSans', sans-serif; }
.bnr-go {
  font-size: 12.5px; color: #071016; padding: 8px 16px; border-radius: 10px; font-weight: 700;
  white-space: nowrap; background: linear-gradient(135deg, #5fe8ff, var(--cyan) 62%, #24c8ea);
  box-shadow: 0 8px 20px rgba(62, 224, 255, .26); transition: transform .18s, box-shadow .18s;
}
.bnr:hover .bnr-go { transform: translateX(-1px); box-shadow: 0 10px 24px rgba(62, 224, 255, .4); }

/* ---------- 商品列表模板：价签双列 ---------- */
.goods-price { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pr-card {
  display: flex; flex-direction: column; padding: 13px; border-radius: 18px;
  background: linear-gradient(165deg, rgba(255,255,255,.022), transparent 42%), var(--panel);
  box-shadow: var(--sh); transition: transform .22s, box-shadow .22s;
}
.pr-card:hover { transform: translateY(-3px); box-shadow: 12px 14px 30px rgba(0, 0, 0, .66), -8px -8px 20px rgba(255, 255, 255, .04); }
.pr-media {
  position: relative; height: 128px; border-radius: 13px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; color: var(--cyan);
  background: radial-gradient(circle at 50% 132%, rgba(62, 224, 255, .18), transparent 66%),
              radial-gradient(circle at 88% 6%, rgba(168, 119, 255, .16), transparent 54%), var(--bg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.pr-media .cover-img { max-width: calc(100% - 26px); max-height: 92px; width: auto; height: auto; border-radius: 8px; transition: transform .25s; }
.pr-card:hover .pr-media .cover-img { transform: scale(1.045); }
.pr-media svg { width: 46px; height: 46px; filter: drop-shadow(0 0 16px currentColor); }
.pr-tag {
  position: absolute; right: 8px; top: 8px; padding: 4px 10px; border-radius: 9px;
  font-size: 14px; font-weight: 800; color: #071016; background: var(--cyan);
  font-family: 'FragmentMono', monospace; box-shadow: 0 6px 16px rgba(62, 224, 255, .32);
}
.pr-tag small { font-size: 10px; margin-right: 1px; font-family: 'SourceHanSans', sans-serif; }
.pr-card h3 { font-size: 15px; margin: 10px 3px 0; line-height: 1.45; }
.pr-card p { font-size: 12px; color: var(--dim); margin: 5px 3px 3px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 36px 0 4px; }
.pg {
  min-width: 38px; height: 38px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px; font-size: 13px; color: var(--muted); box-shadow: var(--sh-sm);
  transition: color .2s, box-shadow .2s, transform .2s;
}
.pg:hover { color: var(--cyan); transform: translateY(-1px); }
.pg.on { color: var(--cyan); font-weight: 700; box-shadow: var(--sh-in-sm); }
.pg.is-off { opacity: .3; }
.pg.is-dot { box-shadow: none; min-width: 22px; padding: 0; }
.pg-total { flex: 0 0 100%; text-align: center; color: var(--dim); font-size: 12px; margin-top: 4px; }

/* ---------- 后台：模板选择 / LOGO ---------- */
.tpl-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 8px 0 18px; }
.tpl-opt {
  display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 14px;
  box-shadow: var(--sh-sm); cursor: pointer; transition: box-shadow .2s, color .2s;
}
.tpl-opt input { display: none; }
.tpl-opt b { font-size: 14.5px; }
.tpl-opt span { font-size: 12.5px; color: var(--dim); line-height: 1.6; }
.tpl-opt.on, .tpl-opt:has(input:checked) { box-shadow: var(--sh-in), 0 0 0 1px rgba(62, 224, 255, .38); }
.tpl-opt:has(input:checked) b { color: var(--cyan); }
.logo-prev {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px;
  border-radius: 12px; box-shadow: var(--sh-in-sm); color: var(--muted); font-size: 12.5px;
}
.logo-prev img { height: 34px; width: auto; max-width: 160px; object-fit: contain; }

/* ---------- 页脚 ---------- */
.site-footer { margin-top: 70px; padding: 34px 0 40px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; color: var(--dim); font-size: 13px; }
.footer-inner a:hover { color: var(--cyan); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- 详情页 ---------- */
.crumb { padding: 26px 0 0; font-size: 13px; color: var(--dim); display: flex; gap: 8px; }
.crumb a:hover { color: var(--cyan); }
.detail-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 30px; align-items: start; margin: 22px 0 0; }
.detail-cover {
  height: 200px; border-radius: var(--r-lg); display: grid; place-items: center;
  color: var(--cyan); background: radial-gradient(circle at 50% 120%, rgba(62, 224, 255, .18), transparent 66%), var(--panel);
  box-shadow: inset 4px 4px 14px rgba(0, 0, 0, .55), inset -3px -3px 10px rgba(255, 255, 255, .018);
  margin-bottom: 22px;
}
.detail-cover svg { width: 64px; height: 64px; filter: drop-shadow(0 0 20px currentColor); }
/* 有展示图时：去掉底板，图片按原比例居中、限高，不再占满整行 */
.detail-cover.has-img {
  height: auto; min-height: 0; padding: 0; width: fit-content; max-width: 100%;
  display: flex; align-items: center; justify-content: center;
  background: none; box-shadow: none;
}
.detail-cover.has-img .cover-img {
  max-height: 176px; max-width: 100%; width: auto; height: auto; border-radius: 16px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .05);
}
.detail-hero h1 { font-size: 30px; letter-spacing: -.3px; }
.detail-hero .sub { color: var(--muted); margin-top: 10px; }
.prose { color: #b9c7d6; font-size: 14.5px; line-height: 1.85; }
.prose p { margin: 0 0 12px; }
.prose ul { margin: 0 0 12px; padding-left: 18px; list-style: disc; }
.prose li { margin-bottom: 6px; }

.buy-box { position: sticky; top: 92px; padding: 22px; }
.buy-price { display: flex; align-items: baseline; gap: 9px; }
.buy-price .price { font-size: 32px; }
.buy-tag { margin-left: auto; font-size: 11.5px; color: var(--dim); white-space: nowrap; }
.buy-chips { display: flex; gap: 12px; margin-top: 7px; font-size: 12px; color: var(--dim); }
.buy-chips span { display: inline-flex; align-items: center; gap: 4px; }
.buy-chips span::before { content: ''; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .65; }
.qty-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.qty-row .qty { flex: 0 0 auto; }
.qty-row .qty input { width: 42px; }
.qty-row .input { flex: 1; min-width: 0; height: 44px; }
.qty-row .qpass { flex: 0 0 96px; }
.qty-row + .pay-types { margin-top: 12px; }
.pay-types { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pay-type {
  display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 14px; border-radius: 12px;
  box-shadow: var(--sh-sm); cursor: pointer; font-size: 13.5px; color: var(--muted);
}
.pay-type input { display: none; }
.pay-type svg { width: 17px; height: 17px; }
.pay-type.on, .pay-type:has(input:checked) { color: var(--cyan); box-shadow: var(--sh-in-sm); }
.pay-type.on svg, .pay-type:has(input:checked) svg { color: var(--cyan); }
.pay-type:has(input:checked) span { color: var(--cyan); }
.hr { height: 1px; background: var(--line); margin: 18px 0; }

/* ---------- 收银台 / 订单 ---------- */
.center-wrap { max-width: 760px; margin: 0 auto; }
.pay-stage { padding: 54px 0 20px; text-align: center; }
.loader-ring {
  width: 74px; height: 74px; margin: 0 auto 22px; border-radius: 50%;
  box-shadow: var(--sh-in); display: grid; place-items: center; color: var(--cyan);
}
.loader-ring svg { width: 30px; height: 30px; animation: spin 1.5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.order-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.order-head h1 { font-size: 26px; }
.kv { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 20px; }
.kv-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.kv-row:last-child { border-bottom: 0; }
.kv-row span { color: var(--dim); white-space: nowrap; }
.kv-row b { font-weight: 600; text-align: right; word-break: break-all; }
.card-secret {
  margin-top: 20px; padding: 18px; border-radius: 14px; box-shadow: var(--sh-in);
  font-family: 'FragmentMono', monospace; font-size: 13.5px; line-height: 1.9;
  white-space: pre-wrap; word-break: break-all; color: #c9f7ff; max-height: 260px; overflow: auto;
}
.copy-row { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

/* ---------- 提示条 ---------- */
.alert { padding: 13px 16px; border-radius: 12px; font-size: 13.5px; margin-bottom: 20px; box-shadow: var(--sh-in-sm); }
.alert--ok { color: var(--green); }
.alert--warn { color: var(--amber); }
.alert--err { color: var(--red); }

/* ==========================================================================
   后台
   ========================================================================== */
.admin-shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side {
  padding: 24px 16px; border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 6px; background: rgba(10, 14, 20, .6);
}
.side .brand { margin: 6px 8px 22px; }
.side nav { display: grid; gap: 6px; }
.side nav a {
  padding: 11px 14px; border-radius: 12px; font-size: 14px; color: var(--muted);
  display: flex; align-items: center; gap: 10px; transition: all .2s;
}
.side nav a:hover { color: var(--text); }
.side nav a.on { color: var(--text); box-shadow: var(--sh-in-sm); }
.side nav a.on svg { color: var(--cyan); }
.side nav svg { width: 17px; height: 17px; }
.side .side-foot { margin-top: auto; display: grid; gap: 8px; font-size: 12.5px; color: var(--dim); }
.main { padding: 26px 32px 60px; min-width: 0; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; }
.page-head p { color: var(--dim); font-size: 13px; margin-top: 3px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.stat { padding: 20px; border-radius: var(--r); box-shadow: var(--sh); }
.stat span { font-size: 12.5px; color: var(--dim); }
.stat b { display: block; font-family: 'FragmentMono', monospace; font-size: 26px; margin-top: 8px; letter-spacing: -.5px; }
.stat b.cy { color: var(--cyan); }
.stat b.vi { color: var(--violet); }

.table-card { border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; }
table.tb { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tb th, table.tb td { padding: 13px 14px; text-align: left; vertical-align: middle; }
table.tb th { font-size: 12px; color: var(--dim); font-weight: 500; letter-spacing: .06em; border-bottom: 1px solid var(--line); }
table.tb td { border-bottom: 1px solid rgba(255, 255, 255, .035); }
table.tb tr:last-child td { border-bottom: 0; }
table.tb tr:hover td { background: rgba(255, 255, 255, .015); }
.tb-wrap { overflow-x: auto; }
.tb-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mini {
  height: 30px; padding: 0 11px; border-radius: 9px; font-size: 12.5px; border: 0; cursor: pointer;
  background: var(--panel); color: var(--muted); box-shadow: var(--sh-sm); display: inline-flex; align-items: center;
}
.mini:hover { color: var(--text); }
.mini:active { box-shadow: var(--sh-in-sm); }
.mini--danger { color: var(--red); }
.mini--ok { color: var(--cyan); }
a.mini { text-decoration: none; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 20px; }
.form-grid .full { grid-column: 1 / -1; }
.settings-block { padding: 24px; border-radius: var(--r); box-shadow: var(--sh); margin-bottom: 22px; }
.settings-block h3 { font-size: 16px; margin-bottom: 4px; }
.settings-block > p { color: var(--dim); font-size: 12.5px; margin-bottom: 18px; }
.hint { color: var(--dim); font-size: 12px; margin-top: 6px; }

.login-stage { min-height: 100vh; display: grid; place-items: center; padding: 30px; }
.login-card { width: min(400px, 100%); padding: 34px 30px; border-radius: var(--r-lg); background: var(--panel-2); border: 1px solid var(--line); box-shadow: var(--sh); }
.login-card h1 { font-size: 21px; margin-bottom: 6px; }
.login-card > p { color: var(--dim); font-size: 13px; margin-bottom: 24px; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { aspect-ratio: 16/10; max-width: 560px; }
  .detail-grid { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; align-items: stretch; }
  .detail-main { display: contents; }
  .detail-cover { order: 1; height: 150px; margin-bottom: 0; }
  .detail-cover.has-img { width: 100%; padding: 0; }
  .detail-cover.has-img .cover-img { max-height: 140px; max-width: 100%; margin: 0 auto; }
  .detail-cover:not(.has-img) { display: none; }
  .detail-hero { order: 2; }
  .buy-col { order: 3; }
  .detail-desc { order: 4; margin-top: 0 !important; }
  .buy-box { position: static; padding: 16px; }
  .buy-price .price { font-size: 27px; }
  .qty-row { margin-top: 12px; gap: 6px; }
  .qty-row .qty button { width: 30px; }
  .qty-row .qty input { width: 30px; }
  .qty-row .input { height: 42px; padding: 0 11px; }
  .qty-row .qpass { flex: 0 0 104px; }
  .pay-types { gap: 8px; }
  .pay-type { height: 40px; }
  .pager { margin-top: 26px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; align-items: center; padding: 14px 18px; }
  .side .brand { margin: 0 18px 0 0; }
  .side nav { display: flex; flex-wrap: wrap; gap: 6px; }
  .side .side-foot { margin: 0 0 0 auto; display: flex; gap: 12px; }
  .main { padding: 22px 20px 50px; }
}

@media (max-width: 860px) {
  .header-inner { height: 62px; gap: 14px; }
  .nav { display: none; }
  .nav.open {
    display: flex; position: absolute; left: 16px; right: 16px; top: 66px; flex-direction: column;
    padding: 12px; border-radius: 16px; background: rgba(14, 19, 26, .98); box-shadow: var(--sh);
    border: 1px solid var(--line); margin: 0;
  }
  .nav.open a { width: 100%; }
  .menu-btn { display: inline-flex !important; }
  .header-cta .btn--sm { display: none; }
  .hd-search { margin-left: auto; flex: 1 1 auto; max-width: 270px; }
  .hd-search .input { width: 100%; height: 36px; font-size: 12.5px; padding: 0 12px; }
  .hd-search .btn { height: 36px; width: 38px; }
  .hero { padding: 34px 0 26px; }
  .hero h1 { font-size: 32px; }
  .hero p.lead { font-size: 14.5px; }
  .hero-stats { gap: 20px; }
  .hero-visual { display: none; }
  .goods-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
  .goods-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .show-media { height: 140px; padding: 10px; }
  .show-media .cover-img { max-height: 120px; }
  .detail-hero h1 { font-size: 24px; }
  .detail-cover { height: 170px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 12px; }
  /* iOS Safari：输入框字号 <16px 时聚焦会自动放大整页，统一提到 16px */
  .input, .select, textarea.input, .qty input, .hd-search .input { font-size: 16px; }
  .qty-row .qpass { flex: 0 0 92px; }
}

@media (max-width: 520px) {
  body { font-size: 14px; }
  .wrap { width: calc(100% - 28px); }
  .hero h1 { font-size: 27px; }
  .hero-search { flex-direction: column; }
  .hero-search .btn { width: 100%; }
  .hero-stats b { font-size: 17px; }
  .hd-search { max-width: none; }
  .brand { font-size: 15px; }
  .brand small { display: none; }
  .notice-bar { margin: 18px 0 26px; }
  .goods-list { grid-template-columns: 1fr; }
  .goods-tickets { grid-template-columns: 1fr; gap: 14px; }
  .goods-showcase, .goods-media, .goods-price { grid-template-columns: 1fr; gap: 14px; }
  .qty-row .qty button { width: 28px; }
  .qty-row .qty input { width: 28px; }
  .qty-row .qpass { flex: 0 0 90px; }
  .md-cover { width: 88px; }
  .md-cover .cover-img { max-height: 70px; }
  .bnr { flex-direction: column; align-items: stretch; gap: 7px; min-height: 0; padding: 13px 15px; }
  .bnr-cat { position: static; align-self: flex-start; margin-bottom: 2px; }
  .bnr-text { padding-right: 0; }
  .bnr-text b { font-size: 16px; }
  .bnr-side { width: 100%; margin-left: 0; justify-content: space-between; gap: 10px; }
  .bnr-price { font-size: 20px; }
  .bnr-go { padding: 7px 14px; }
  .pr-media { height: 118px; }
  .pr-media .cover-img { max-height: 94px; }
  .show-media { height: 116px; padding: 10px; }
  .show-media .cover-img { max-height: 96px; }
  .show-body { padding: 13px 15px 15px; }
  .show-foot { margin-top: 11px; padding-top: 11px; }
  .min-row { padding: 13px 16px 13px 14px; gap: 10px; }
  .min-main em, .min-stock { display: none; }
  .min-price { font-size: 16px; }
  .ticket-top { padding: 16px 16px 14px; gap: 12px; }
  .ticket-icon { width: 48px; height: 48px; border-radius: 13px; }
  .ticket-icon svg { width: 23px; height: 23px; }
  .ticket-head h3 { font-size: 15px; }
  .ticket-foot { padding: 2px 16px 16px; }
  .goods-list .goods-row { padding: 14px; gap: 12px; }
  .goods-list .row-icon { width: 56px; height: 56px; border-radius: 13px; }
  .goods-list .row-icon svg { width: 26px; height: 26px; }
  .goods-list .row-main h3 { font-size: 16px; }
  .goods-list .row-main p { white-space: normal; overflow: visible; text-overflow: clip; }
  .goods-list .row-buy .price { font-size: 19px; }
  .goods-row { flex-wrap: wrap; padding: 14px; gap: 12px; }
  .row-icon { width: 56px; height: 56px; border-radius: 13px; }
  .row-icon svg { width: 26px; height: 26px; }
  .row-main { flex: 1 1 calc(100% - 74px); }
  .row-buy { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
  .row-buy .price { font-size: 19px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .section-head h2 { font-size: 20px; }
  .goods-grid { grid-template-columns: 1fr; }
  .goods-cover { height: 118px; }
  .goods-card { padding: 15px; }
  .pill { height: 34px; padding: 0 13px; font-size: 13px; }
  .buy-box { padding: 20px; border-radius: var(--r); }
  .pay-types { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 15px; }
  .stat b { font-size: 21px; }
  .main { padding: 16px 14px 46px; }
  .card--pad { padding: 18px; }
  .kv-row { font-size: 13px; }
  .site-footer { margin-top: 46px; }
}

.menu-btn { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border: 0; border-radius: 12px; background: var(--panel); box-shadow: var(--sh-sm); color: var(--text); cursor: pointer; }
@media (min-width: 861px) { .menu-btn { display: none !important; } }

/* ==========================================================================
   一体站首页（官网 + 机场 + 商城）
   ========================================================================== */
.sec { padding: 46px 0 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-actions .btn { height: 46px; padding: 0 24px; }

/* 机场套餐 */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 20px; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 24px; border-radius: var(--r-lg); background: var(--panel); box-shadow: var(--sh);
  transition: transform .2s, box-shadow .2s;
}
.plan:hover { transform: translateY(-3px); }
.plan--hot { box-shadow: var(--sh), 0 0 0 1px rgba(62, 224, 255, .32), var(--glow-cyan); }
.plan-badge {
  position: absolute; top: -10px; right: 18px; padding: 3px 10px; border-radius: 8px;
  font-size: 11.5px; font-weight: 700; color: #04141a;
  background: linear-gradient(135deg, var(--cyan), #7ff0ff);
}
.plan-name { font-size: 17px; font-weight: 700; }
.plan-tags { display: flex; gap: 6px; flex-wrap: wrap; min-height: 22px; }
.plan-price { display: flex; align-items: baseline; gap: 2px; color: var(--cyan); font-family: 'FragmentMono', monospace; }
.plan-price small { font-size: 14px; }
.plan-price b { font-size: 34px; line-height: 1; letter-spacing: -1px; }
.plan-price i { font-style: normal; font-size: 12.5px; color: var(--dim); font-family: 'SourceHanSans', sans-serif; margin-left: 5px; }
.plan-list { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--muted); padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan-list b { color: var(--text); font-weight: 600; }
.plan .btn { margin-top: auto; }
.plans-note { margin-top: 14px; }

/* 购买流程 */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.flow-step { padding: 22px; border-radius: var(--r); background: var(--panel); box-shadow: var(--sh-in); }
.flow-step b { display: block; margin: 10px 0 6px; font-size: 15px; }
.flow-step p { color: var(--dim); font-size: 13px; }
.flow-n { font-family: 'FragmentMono', monospace; font-size: 12px; color: var(--cyan); letter-spacing: .2em; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq-item { border-radius: 14px; background: var(--panel); box-shadow: var(--sh-in-sm); padding: 0 18px; }
.faq-item summary {
  cursor: pointer; padding: 16px 0; font-size: 14.5px; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--cyan); font-family: 'FragmentMono', monospace; font-size: 16px; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 0 16px; color: var(--muted); font-size: 13.5px; line-height: 1.7; }

/* 底部 CTA */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 30px 32px; border-radius: var(--r-lg); box-shadow: var(--sh);
  background: radial-gradient(600px 200px at 15% 0%, rgba(62, 224, 255, .14), transparent 70%), var(--panel);
}
.cta-band h3 { font-size: 20px; }
.cta-band p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero h1 { font-size: 34px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .plans { grid-template-columns: 1fr 1fr; }
  .plan { padding: 18px; }
  .plan-price b { font-size: 28px; }
  .cta-band { padding: 22px; }
}
@media (max-width: 520px) {
  .hero { padding: 34px 0 10px; }
  .hero h1 { font-size: 28px; }
  .sec { padding: 34px 0 0; }
  .plans { grid-template-columns: 1fr; }
  .cta-band { padding: 20px; }
}

/* 移动端：顶栏防溢出（搜索框收进菜单侧，主页不挤压） */
@media (max-width: 520px) {
  .header-inner { gap: 10px; justify-content: space-between; }
  .hd-search { display: none; }
  .plan { padding: 18px; }
  .plan-price b { font-size: 30px; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 auto; }
}

/* 套餐页周期选择 */
.plan-cycle { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.plan-cycle .pay-type { height: auto; min-height: 44px; padding: 10px 8px; }
.plan-cycle .pay-type span { font-size: 12.5px; }
@media (max-width: 520px) { .plan-cycle { grid-template-columns: 1fr; } }
