/* ==========================================================================
   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);
  border: 1px solid rgba(62, 224, 255, .2);
  box-shadow: var(--sh), 0 0 24px rgba(62, 224, 255, .07);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.plan:hover {
  transform: translateY(-3px); border-color: rgba(62, 224, 255, .46);
  box-shadow: var(--sh), 0 0 34px rgba(62, 224, 255, .18);
}
.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; } }

/* ==========================================================================
   个人主页
   ========================================================================== */
.pf-hero { padding: 54px 0 30px; position: relative; overflow: hidden; }
.pf-hero::before {
  content: ''; position: absolute; inset: -120px 0 auto 0; height: 420px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(520px 220px at 18% 30%, rgba(62, 224, 255, .16), transparent 70%),
    radial-gradient(480px 220px at 82% 10%, rgba(168, 119, 255, .16), transparent 70%);
}
.pf-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.pf-avatar {
  width: 104px; height: 104px; border-radius: 28px; flex: none; overflow: hidden;
  display: grid; place-items: center; box-shadow: var(--sh), 0 0 0 1px rgba(255, 255, 255, .06);
  background: linear-gradient(145deg, rgba(62, 224, 255, .18), rgba(168, 119, 255, .18));
}
.pf-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-avatar span { font-family: 'FragmentMono', monospace; font-size: 42px; color: var(--cyan); }
.pf-meta { min-width: 0; }
.pf-status {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--dim);
  font-family: 'FragmentMono', monospace; letter-spacing: .04em;
}
.pf-status i { width: 7px; height: 7px; border-radius: 50%; background: #35d07f; box-shadow: 0 0 10px rgba(53, 208, 127, .8); }
.pf-name { font-size: 40px; letter-spacing: -1px; margin: 8px 0 10px; }
.pf-bio { color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 620px; }
.pf-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

.entry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.entry {
  display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--r);
  box-shadow: var(--sh); transition: transform .25s ease, box-shadow .25s ease; position: relative;
}
.entry:hover { transform: translateY(-3px); box-shadow: var(--sh), 0 0 0 1px rgba(62, 224, 255, .3); }
.entry-ico {
  width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 8px;
  color: var(--cyan); background: rgba(62, 224, 255, .1); box-shadow: inset 0 0 0 1px rgba(62, 224, 255, .2);
}
.entry b { font-size: 16px; }
.entry small { color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.entry i { font-style: normal; font-size: 12.5px; color: var(--cyan); margin-top: 8px; font-family: 'FragmentMono', monospace; }

.pf-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.pf-notice, .pf-stats { padding: 22px; border-radius: var(--r); box-shadow: var(--sh); }
.pf-card-title { font-size: 13px; color: var(--dim); letter-spacing: .08em; margin-bottom: 12px; font-family: 'FragmentMono', monospace; }
.pf-notice p { color: var(--muted); font-size: 13.5px; line-height: 1.8; }
.link-more { display: inline-block; margin-top: 12px; font-size: 12.5px; color: var(--cyan); }
.pf-nums { display: flex; gap: 26px; flex-wrap: wrap; }
.pf-nums b { display: block; font-family: 'FragmentMono', monospace; font-size: 26px; color: var(--text); }
.pf-nums small { font-size: 12px; color: var(--dim); }

/* 全局搜索 */
.search-group { margin-bottom: 34px; }
.search-group-title {
  display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; margin-bottom: 14px;
}
.search-group-title span {
  font-family: 'FragmentMono', monospace; font-size: 11.5px; font-weight: 400; color: var(--cyan);
  background: rgba(62, 224, 255, .1); border-radius: 999px; padding: 2px 9px;
}

/* 移动端：导航内搜索 */
.nav-search { display: none; }
@media (max-width: 520px) {
  .nav.open .nav-search { display: flex; gap: 8px; width: 100%; padding-top: 6px; }
  .nav.open .nav-search .input { flex: 1 1 auto; height: 38px; }
  .nav.open .nav-search .btn { height: 38px; padding: 0 16px; white-space: nowrap; flex: 0 0 auto; }
  .pf-hero { padding: 34px 0 20px; }
  .pf-avatar { width: 76px; height: 76px; border-radius: 22px; }
  .pf-name { font-size: 30px; }
  .pf-cols { grid-template-columns: 1fr; }
  .pf-inner { gap: 18px; }
}

/* 后台分组与并排面板 */
.side-group {
  margin: 16px 12px 6px; font-size: 11px; letter-spacing: .16em; color: var(--dim);
  font-family: 'FragmentMono', monospace; opacity: .8;
}
.side nav .side-group:first-child { margin-top: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.stat small a { color: var(--cyan); }
@media (max-width: 1000px) { .two-col { grid-template-columns: 1fr; } .stat-grid { grid-template-columns: 1fr 1fr; } }

/* 首页两栏卡片等高 */
.pf-cols { align-items: stretch; }
.pf-notice, .pf-stats { display: flex; flex-direction: column; }
.pf-stats { height: 100%; }
.pf-nums { margin-top: auto; padding-top: 6px; }

/* 机场使用指南 */
.guide {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: space-between;
  padding: 24px; border-radius: var(--r-lg); margin-bottom: 28px;
  border: 1px solid rgba(62, 224, 255, .18);
  background: linear-gradient(180deg, rgba(62, 224, 255, .06), rgba(14, 19, 26, 0));
  box-shadow: var(--sh);
}
.guide-main { flex: 1 1 520px; min-width: 0; }
.guide-title { font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.guide-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-steps li { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.guide-steps em {
  flex: none; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center;
  font-style: normal; font-size: 12px; font-family: 'FragmentMono', monospace; color: var(--cyan);
  background: rgba(62, 224, 255, .12); box-shadow: inset 0 0 0 1px rgba(62, 224, 255, .22);
}
.guide-steps b { display: block; font-size: 13px; margin-bottom: 4px; }
.guide-steps span { font-size: 12px; color: var(--dim); line-height: 1.6; word-break: break-word; }
.guide-cta { flex: none; }
@media (max-width: 720px) {
  .guide { padding: 18px; gap: 16px; }
  .guide-steps { grid-template-columns: 1fr; gap: 12px; }
  .guide-cta { width: 100%; justify-content: center; }
}
.nav .ext { font-style: normal; font-size: 11px; opacity: .6; margin-left: 1px; }

/* 兑换码使用步骤 */
.voucher-steps {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
  display: grid; gap: 10px; font-size: 13px; color: var(--muted);
}
.voucher-steps div { display: flex; gap: 9px; align-items: flex-start; line-height: 1.6; }
.voucher-steps i {
  flex: none; width: 20px; height: 20px; border-radius: 7px; display: grid; place-items: center;
  font-style: normal; font-size: 11px; font-family: 'FragmentMono', monospace; color: var(--cyan);
  background: rgba(62, 224, 255, .1); box-shadow: inset 0 0 0 1px rgba(62, 224, 255, .2);
}
.voucher-steps b { color: var(--text); }
.voucher-steps .btn { justify-self: start; margin-top: 4px; }

/* 后台表单分段与快捷入口 */
.form-sec {
  grid-column: 1 / -1; font-size: 11.5px; color: var(--dim); letter-spacing: .12em;
  font-family: 'FragmentMono', monospace; padding: 8px 0 2px; margin-top: 4px;
  border-top: 1px solid var(--line);
}
.form-sec:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.quick-grid a {
  padding: 14px; border-radius: 12px; box-shadow: var(--sh-in); display: block;
  transition: box-shadow .2s, transform .2s;
}
.quick-grid a:hover { transform: translateY(-2px); box-shadow: var(--sh-in), 0 0 0 1px rgba(62, 224, 255, .3); }
.quick-grid b { display: block; font-size: 13px; margin-bottom: 4px; }
.quick-grid small { font-size: 11.5px; color: var(--dim); font-family: 'FragmentMono', monospace; }

/* 后台页签 */
.tabs-line { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs-line a {
  padding: 7px 14px; border-radius: 10px; font-size: 13px; color: var(--muted);
  box-shadow: var(--sh-in); transition: color .2s, box-shadow .2s;
}
.tabs-line a:hover { color: var(--text); }
.tabs-line a.on { color: var(--cyan); box-shadow: var(--sh-in), 0 0 0 1px rgba(62, 224, 255, .35); }

/* 后台卡片对比 + 勾选项 */
.main .card, .main .card--pad { box-shadow: var(--sh), 0 0 0 1px rgba(255, 255, 255, .045); }
.check { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: #3ee0ff; }

/* ---- 手机端：入口卡改横向紧凑行 + 页头只留 logo + 底部两卡上下排 ---- */
@media (max-width: 860px) {
  .pf-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .entry-grid { grid-template-columns: 1fr; gap: 10px; }
  .entry {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    grid-template-areas: "ico title arrow" "ico desc arrow";
    column-gap: 12px; row-gap: 3px; align-items: center;
    padding: 13px 15px; border-radius: 15px;
  }
  .entry:hover { transform: none; }
  .entry-ico { grid-area: ico; width: 42px; height: 42px; margin: 0; border-radius: 12px; }
  .entry b { grid-area: title; font-size: 14.5px; }
  .entry small {
    grid-area: desc; font-size: 12px; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .entry i { grid-area: arrow; margin: 0; font-size: 12px; white-space: nowrap; }
  .pf-notice, .pf-stats { padding: 16px; }
  .pf-nums { gap: 16px; }
  .pf-nums b { font-size: 22px; }
}

/* ---- 新版首页（亮哥小窝） ---- */
.hm-hero { position: relative; padding: 78px 0 46px; overflow: hidden; isolation: isolate; }
.hm-hero::before {
  content: ""; position: absolute; left: 50%; top: -220px; width: 900px; height: 620px;
  transform: translateX(-50%); z-index: -1; pointer-events: none; filter: blur(6px);
  background: radial-gradient(50% 50% at 50% 50%, rgba(62,224,255,.20), rgba(62,224,255,.06) 45%, transparent 72%);
}
.hm-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.10), transparent);
}
.hm-hero-in { text-align: center; max-width: 720px; margin: 0 auto; }
.hm-avatar {
  width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 20px; overflow: hidden;
  display: grid; place-items: center; background: rgba(62,224,255,.10);
  box-shadow: inset 0 0 0 1px rgba(62,224,255,.22), 0 0 34px rgba(62,224,255,.18);
}
.hm-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-avatar span { font-family: 'FragmentMono', monospace; font-size: 30px; color: var(--cyan); }
.hm-badge {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--dim); font-size: 11.5px;
  font-family: 'FragmentMono', monospace; letter-spacing: .06em;
}
.hm-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px rgba(74,222,128,.9); }
.hm-title { margin: 18px 0 0; font-size: clamp(38px, 6.4vw, 60px); line-height: 1.08; letter-spacing: -1.6px; font-weight: 800; }
.hm-sub { margin: 16px auto 0; max-width: 32em; color: var(--muted); font-size: 15px; line-height: 1.8; }
.hm-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hm-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hm-entries { padding: 6px 0 0; }
.hm-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.hm-sec-head h2 { font-size: 19px; letter-spacing: -.2px; }
.hm-sec-head span { font-family: 'FragmentMono', monospace; font-size: 10.5px; letter-spacing: .18em; color: var(--dim); white-space: nowrap; }

.hm-promise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 28px auto 52px; }
.hm-promise > div { padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.018); box-shadow: inset 0 0 0 1px var(--line); }
.hm-promise b { display: block; font-size: 13.5px; margin-bottom: 6px; color: var(--text); }
.hm-promise small { color: var(--muted); font-size: 12px; line-height: 1.6; }

@media (max-width: 860px) {
  .hm-hero { padding: 52px 0 34px; }
  .hm-hero::before { width: 680px; height: 460px; top: -180px; }
  .hm-promise { grid-template-columns: 1fr; gap: 10px; margin-bottom: 40px; }
}
@media (max-width: 520px) {
  .hm-avatar { width: 60px; height: 60px; border-radius: 18px; margin-bottom: 14px; }
  .hm-avatar span { font-size: 26px; }
  .hm-title { letter-spacing: -.9px; }
  .hm-sub { font-size: 14px; }
  .hm-cta { width: 100%; gap: 10px; }
  .hm-cta .btn { flex: 1 1 0; min-width: 0; }
  .hm-sec-head span { display: none; }
  .hm-promise { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hm-promise > div { padding: 12px 6px; text-align: center; }
  .hm-promise b { font-size: 12px; margin-bottom: 0; }
  .hm-promise small { display: none; }
}
/* ---- 灰机闲谈（站内一体化：与首页同一套视觉与布局） ---- */
.talk-hero { padding: 58px 0 28px; }
.talk-hero--single { padding: 44px 0 16px; }
.talk-avatar { width: 64px; height: 64px; border-radius: 20px; margin-bottom: 12px; }
.talk-avatar span { font-size: 26px; }
.talk-title { font-size: clamp(30px, 5.2vw, 46px); letter-spacing: -1.2px; }
.talk-hero--single .talk-title { font-size: clamp(26px, 4.2vw, 38px); }
.talk-hero .hm-sub { margin-top: 12px; }
.talk-hero .hm-tags { margin-top: 18px; }

.talk-list { display: flex; flex-direction: column; gap: 12px; }
.post-card {
  display: flex; align-items: center; gap: 16px; padding: 14px 16px;
  border-radius: 18px; background: rgba(255, 255, 255, .022);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .22s ease, box-shadow .22s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(62, 224, 255, .3), 0 0 26px rgba(62, 224, 255, .08); }
.pc-thumb { flex: 0 0 auto; width: 76px; height: 76px; border-radius: 14px; overflow: hidden; background: #0b1016; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.pc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-thumb--no { display: grid; place-items: center; }
.pc-thumb--no span { font-family: 'FragmentMono', monospace; font-size: 22px; color: var(--cyan); }
.pc-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.pc-date { font-size: 11px; color: var(--dim); font-family: 'FragmentMono', monospace; letter-spacing: .06em; }
.pc-main b { font-size: 15.5px; }
.pc-main small { color: var(--muted); font-size: 12.5px; line-height: 1.62; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-meta { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; font-size: 11px; color: var(--dim); font-family: 'FragmentMono', monospace; white-space: nowrap; }

.talk-single { max-width: 900px; padding: 4px 0 64px; }
.talk-back { display: inline-block; margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.talk-back:hover { color: var(--cyan); }
.talk-post { border-radius: 20px; }
.talk-content { font-size: 15.5px; line-height: 1.95; color: #cfd9e4; }
.talk-content p { margin: 0 0 16px; }
.talk-content p:last-child { margin-bottom: 0; }
.talk-content img { width: 100%; display: block; border-radius: 16px; box-shadow: 0 12px 34px rgba(0, 0, 0, .38); }
.talk-content figure { margin: 14px 0; }
.talk-content a { color: var(--cyan); }
.talk-content code { padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); font-size: 13px; }
.talk-content blockquote { margin: 16px 0; padding: 12px 16px; border-left: 2px solid rgba(62, 224, 255, .55); background: rgba(62, 224, 255, .05); border-radius: 0 12px 12px 0; color: var(--muted); }
.talk-content ul { margin: 14px 0; padding-left: 20px; }
.talk-content li { margin: 6px 0; }
.talk-block { margin: 16px 0; }

.talk-spoiler { padding: 0 5px; border-radius: 5px; background: rgba(255, 255, 255, .09); color: transparent; text-shadow: 0 0 10px rgba(220, 235, 255, .8); cursor: pointer; }
.talk-spoiler.on { color: inherit; text-shadow: none; background: rgba(62, 224, 255, .14); }
.talk-collapse { margin: 16px 0; border-radius: 14px; background: rgba(255, 255, 255, .02); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.talk-collapse summary { cursor: pointer; padding: 13px 16px; font-size: 13.5px; color: var(--cyan); list-style: none; }
.talk-collapse summary::-webkit-details-marker { display: none; }
.talk-collapse summary::before { content: '▸ '; }
.talk-collapse[open] summary::before { content: '▾ '; }
.talk-collapse-body { padding: 0 16px 16px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.talk-notice { margin: 16px 0; padding: 12px 16px; border-radius: 14px; background: rgba(62, 224, 255, .07); box-shadow: inset 0 0 0 1px rgba(62, 224, 255, .22); font-size: 13.5px; color: var(--cyan); }
.talk-file { display: inline-block; margin: 6px 0; color: var(--cyan); font-size: 13.5px; }

.talk-nav { display: flex; gap: 10px; margin: 12px 0 0; }
.talk-nav a { flex: 1 1 0; min-width: 0; padding: 12px 15px; border-radius: 14px; background: rgba(255, 255, 255, .018); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, transform .2s; }
.talk-nav a:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(62, 224, 255, .3); }
.talk-nav span { display: block; font-size: 11px; color: var(--dim); font-family: 'FragmentMono', monospace; margin-bottom: 4px; }
.talk-nav b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.talk-nav-next { text-align: right; }

.talk-cm-sec { margin-top: 38px; }
.talk-cm-sec .hm-sec-head { margin-bottom: 6px; }
.talk-cm-sec .hm-sec-head h2 em { font-style: normal; color: var(--dim); font-size: 13px; font-family: 'FragmentMono', monospace; margin-left: 4px; }

.cm-list { margin: 12px 0 0; padding: 6px 20px 10px; border-radius: 18px; background: rgba(255, 255, 255, .014); box-shadow: inset 0 0 0 1px var(--line); }
.cm { display: flex; gap: 10px; align-items: flex-start; margin: 15px 0; }
.cm-kids { margin-left: 46px; padding-left: 0; }
.cm-kids .cm { margin: 10px 0; }
.cm-av {
  position: relative; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%;
  background: var(--av, rgba(255, 255, 255, .1)); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .09);
}
.cm-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: var(--av, #2a3442); }
.cm--kid .cm-av { width: 30px; height: 30px; font-size: 12px; }
.cm-body { flex: 1 1 auto; min-width: 0; }
.cm-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 5px; }
.cm-name { font-size: 13.5px; font-weight: 650; color: var(--text); }
.cm-floor { font-size: 10.5px; color: var(--dim); font-family: 'FragmentMono', monospace; }
.cm-to { font-size: 11px; color: var(--dim); }
.cm-bubble {
  display: inline-block; max-width: min(100%, 620px); min-width: 76px;
  padding: 9px 13px 6px; border-radius: 14px 14px 14px 5px;
  background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--line);
}
.cm-text { font-size: 14px; line-height: 1.82; color: #ccd7e2; overflow-wrap: anywhere; }
.cm-text a { color: var(--cyan); }
.cm-img-btn { display: block; width: 240px; max-width: 100%; margin: 7px 0 4px; padding: 0; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); overflow: hidden; cursor: zoom-in; }
.cm-img-btn:active { transform: scale(.985); }
.cm-img { display: block; width: 100%; max-width: 100%; max-height: 330px; margin: 0; object-fit: contain; border-radius: 10px; background: rgba(255, 255, 255, .03); cursor: zoom-in; }
.cm-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 2px; }
.cm-foot time { font-size: 10.5px; color: var(--dim); font-family: 'FragmentMono', monospace; }
.cm-reply { border: 0; background: none; padding: 0; font-size: 11px; color: #6d9fbd; cursor: pointer; }
.cm-reply:hover { color: var(--cyan); }
.talk-empty { padding: 30px; text-align: center; color: var(--dim); font-size: 13px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); }

.talk-form { margin-top: 22px; padding: 20px 22px; border-radius: 18px; background: rgba(255, 255, 255, .022); box-shadow: inset 0 0 0 1px var(--line); }
.tf-reply:not([hidden]) { display: flex; }
.tf-reply { align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; padding: 8px 12px; border-radius: 11px; font-size: 12.5px; color: var(--cyan); background: rgba(62, 224, 255, .08); box-shadow: inset 0 0 0 1px rgba(62, 224, 255, .22); }
.tf-reply button { border: 0; background: none; color: var(--muted); font-size: 12px; cursor: pointer; }
.talk-form .tf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.talk-form .field { margin-bottom: 14px; }
.talk-form .tf-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.talk-form .tf-foot small { color: var(--dim); font-size: 11.5px; }
.talk-flash { margin: 10px 0 0; padding: 11px 15px; border-radius: 13px; font-size: 13px; }
.talk-flash.ok { color: var(--green); background: rgba(74, 222, 128, .08); box-shadow: inset 0 0 0 1px rgba(74, 222, 128, .25); }
.talk-flash.err { color: var(--red); background: rgba(248, 113, 113, .08); box-shadow: inset 0 0 0 1px rgba(248, 113, 113, .28); }

.cm-lightbox { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; background: rgba(3, 6, 10, .92); backdrop-filter: blur(4px); cursor: zoom-out; padding: 24px; }
.cm-lightbox.on { display: grid; }
.cm-lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }

@media (max-width: 640px) {
  .talk-hero { padding: 42px 0 22px; }
  .talk-avatar { width: 56px; height: 56px; border-radius: 17px; }
  .talk-form .tf-grid { grid-template-columns: 1fr; }
  .post-card { padding: 12px; gap: 12px; }
  .pc-thumb { width: 66px; height: 66px; border-radius: 12px; }
  .pc-meta { display: none; }
  .talk-content { font-size: 15px; line-height: 1.9; }
  .talk-single { padding-bottom: 46px; }
  .talk-form { padding: 16px; }
  .talk-nav { flex-direction: column; }
  .talk-nav-next { text-align: left; }
  .cm-av { width: 32px; height: 32px; font-size: 13px; }
  .cm-kids { margin-left: 40px; }
  .cm-bubble { max-width: 100%; }
  .cm-img { max-height: 280px; }
}

.talk-cm-sec + .talk-nav { margin: 26px 0 0; }

/* ---------- 频道消息卡 + 表情回应（对齐 bbs.92lg.cn 那套交互） ---------- */
.talk-feed { display: flex; flex-direction: column; gap: 14px; }
.msg-card { background: linear-gradient(180deg, #121a23, #0e1620); border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line), 0 14px 30px rgba(0, 0, 0, .35); overflow: hidden; }
.mc-head { padding: 15px 16px 0; }
.mc-aut { font-size: 13px; font-weight: 700; color: var(--cyan); letter-spacing: .2px; }
.mc-body { padding: 6px 16px 2px; }
.mc-body p { margin: 0 0 12px; }
.mc-body p:last-child { margin-bottom: 6px; }
.mc-body figure { margin: 6px 0 12px; }

.rx-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 8px 12px 10px; }
.rx-chip { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 3px 10px 3px 8px; border: 0; border-radius: 16px; background: rgba(255, 255, 255, .055); color: #93a9bc; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); transition: transform .12s ease, background .15s ease; }
.rx-chip img { width: 18px; height: 18px; }
.rx-chip i { font-style: normal; }
.rx-chip.on { background: rgba(62, 224, 255, .16); color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(62, 224, 255, .45); }
.rx-chip:active { transform: scale(.94); }
.rx-add { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .055); color: var(--muted); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.rx-add:active { transform: scale(.94); }
.rx-meta { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding-left: 8px; color: var(--dim); font-size: 10.5px; font-family: 'FragmentMono', monospace; white-space: nowrap; }
.rx-meta b { font-weight: 400; margin-left: 4px; }

.mc-discuss { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); color: #94a9bb; font-size: 13px; }
.mc-discuss svg { color: #7ea3bd; flex: 0 0 auto; }
.mc-discuss .chev { margin-left: auto; color: var(--dim); }
.mc-discuss:active { background: rgba(255, 255, 255, .03); }

.talk-rx { margin: 12px 0 2px; border-radius: 18px; background: rgba(255, 255, 255, .022); box-shadow: inset 0 0 0 1px var(--line); }
.talk-rx .rx-bar { padding: 10px 12px; }

body.rx-open { overflow: hidden; }
.rx-sheet { position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-end; justify-content: center; }
.rx-sheet[hidden] { display: none; }
.rx-mask { position: absolute; inset: 0; background: rgba(4, 8, 12, .62); backdrop-filter: blur(3px); }
.rx-panel { position: relative; width: min(560px, 100%); background: linear-gradient(180deg, #16202b, #111922); border-radius: 22px 22px 0 0; padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -18px 44px rgba(0, 0, 0, .6); animation: rx-up .22s ease; }
@keyframes rx-up { from { transform: translateY(26px); opacity: .5; } to { transform: none; opacity: 1; } }
.rx-head { display: flex; align-items: center; gap: 8px; margin: 0 2px 12px; }
.rx-head b { font-size: 14.5px; }
.rx-x { margin-left: auto; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .06); color: var(--muted); font-size: 16px; line-height: 1; }
.rx-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.rx-grid button { border: 0; background: rgba(255, 255, 255, .04); border-radius: 14px; padding: 9px 0; display: grid; place-items: center; transition: background .14s ease, transform .12s ease; }
.rx-grid button img { width: 27px; height: 27px; }
.rx-grid button.on { background: rgba(62, 224, 255, .16); box-shadow: inset 0 0 0 1px rgba(62, 224, 255, .45); }
.rx-grid button:active { transform: scale(.93); }
@media (min-width: 641px) { .rx-sheet { align-items: center; } .rx-panel { border-radius: 22px; max-width: 400px; } }
@media (max-width: 640px) { .mc-head { padding: 13px 13px 0; } .mc-body { padding: 5px 13px 2px; } .rx-bar { padding: 7px 10px 9px; } .mc-discuss { padding: 11px 13px; } }

/* ---------- 底部评论 dock（对齐 bbs 的紧凑输入条） ---------- */
.comment-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; pointer-events: none; }
.dock-form { pointer-events: auto; position: relative; width: 100%; margin: 0 auto; padding: 4px 14px calc(9px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; background: rgba(13, 19, 26, .96); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 -14px 34px rgba(0, 0, 0, .5); }
.dock-ident { display: flex; align-items: center; gap: 6px; width: 100%; height: 30px; padding: 0 2px; border: 0; background: none; color: var(--muted); font-size: 12px; text-align: left; }
.dock-ident .dock-chev { margin-left: auto; transition: transform .18s ease; }
.dock-ident[aria-expanded="true"] .dock-chev { transform: rotate(180deg); }
.dock-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 2px 0 9px; }
.dock-fields[hidden] { display: none; }
.dock-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--dim); }
.dock-fields .input { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 12px; }
.dock-reply { display: flex; align-items: center; gap: 8px; padding: 2px 2px 7px; color: var(--muted); font-size: 12px; }
.dock-reply[hidden] { display: none; }
.dock-reply b { color: var(--cyan); font-weight: 600; }
.dock-reply button { margin-left: auto; border: 0; background: none; color: var(--dim); font-size: 12px; padding: 2px 4px; }
.dock-row { display: flex; align-items: flex-end; gap: 8px; }
.dock-ico { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .06); color: var(--muted); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.dock-ico:active, .dock-send:active { transform: scale(.94); }
.dock-row .input { flex: 1 1 auto; min-height: 38px; height: 38px; max-height: 96px; padding: 9px 14px; font-size: 14px; line-height: 1.45; border-radius: 19px; resize: none; overflow-y: auto; }
.dock-send { flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: linear-gradient(160deg, var(--cyan), var(--cyan-deep)); color: #06222b; box-shadow: 0 6px 16px rgba(62, 224, 255, .25); }
.dock-send:disabled { opacity: .55; }
.dock-thumbs { display: flex; gap: 8px; padding: 4px 0 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dock-thumbs[hidden] { display: none; }
.dock-thumbs figure { position: relative; flex: 0 0 auto; width: 56px; height: 56px; margin: 0; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.dock-thumbs figure.loading { width: auto; height: 56px; padding: 0 12px; display: grid; place-items: center; font-size: 11px; color: var(--dim); }
.dock-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dock-thumbs button { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .62); color: #fff; font-size: 12px; line-height: 1; }

/* ---------- 表情弹窗（对齐 bbs 的「添加表情」） ---------- */
.emoji-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 18px; }
.emoji-modal[hidden] { display: none; }
.emoji-mask { position: absolute; inset: 0; background: rgba(3, 7, 12, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.emoji-card { position: relative; width: min(460px, 100%); max-height: min(78vh, 560px); display: flex; flex-direction: column; border-radius: 20px; background: #121a24; box-shadow: 0 24px 60px rgba(0, 0, 0, .62), inset 0 0 0 1px var(--line); animation: emojiIn .16s ease-out; }
@keyframes emojiIn { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.emoji-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 8px; }
.emoji-head b { font-size: 15px; letter-spacing: .2px; }
.emoji-x { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .07); color: var(--muted); font-size: 18px; line-height: 1; }
.emoji-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; padding: 2px 12px 10px; overflow-y: auto; }
.emoji-grid button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 7px 0 5px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .045); color: var(--dim); font-size: 10.5px; }
.emoji-grid button:active { background: rgba(62, 224, 255, .15); color: var(--cyan); }
.emoji-grid img { width: 27px; height: 27px; }
.emoji-note { margin: 0; padding: 9px 0 calc(10px + env(safe-area-inset-bottom)); text-align: center; font-size: 11.5px; color: var(--dim); border-top: 1px solid var(--line); }
html.emoji-open, html.emoji-open body { overflow: hidden; }
@media (min-width: 641px) { .dock-form { width: min(1180px, 100% - 48px); margin: 0 auto; padding: 7px 18px 12px; border-radius: 20px 20px 0 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 -18px 40px rgba(0, 0, 0, .5); } }


/* ---------- 2026-12-02 二次微调：图标放大 / 默认展开 / 禁 iOS 缩放 / 收紧间距 ---------- */
.dock-ico { width: 41px; height: 41px; }
.dock-ico svg { width: 24px; height: 24px; }
.dock-send { width: 41px; height: 41px; }
.dock-send svg { width: 21px; height: 21px; }
.dock-row .input, .dock-fields .input { font-size: 16px; }
.dock-fields .input { height: 38px; }
.dock-row .input { min-height: 41px; height: 41px; padding: 10px 16px; }
.rx-add { width: 32px; height: 32px; }
.rx-add svg { width: 20px; height: 20px; }
.talk-nav { display: none; }
body:has(.comment-dock) .site-footer { margin-top: 16px; }
.talk-cm-sec { margin-bottom: 0; }
.cm-list { padding-bottom: 2px; }
.cm { margin: 12px 0; }
.dock-ico, .dock-send, .rx-add, .rx-chip, .rx-grid button, .mc-discuss, .dock-ident { touch-action: manipulation; }

/* 评论页：隐藏页脚，字段两列，减少与输入条的空白 */
body:has(.comment-dock) .site-footer { display: none; }
body:has(.comment-dock) main { padding-bottom: 0; }
.dock-fields { gap: 8px 10px; }
.dock-fields label { min-width: 0; }
.dock-fields .input { width: 100%; min-width: 0; }

/* 笑脸再放大一档 */
.rx-add { width: 38px; height: 38px; }
.rx-add svg { width: 27px; height: 27px; }
.rx-chip { height: 32px; }
.rx-chip img { width: 19px; height: 19px; }
.dock-ico { width: 48px; height: 48px; }
.dock-ico svg { width: 31px; height: 31px; }
.dock-send { width: 48px; height: 48px; }
.dock-send svg { width: 24px; height: 24px; }
.dock-row .input { min-height: 48px; height: 48px; padding: 12px 17px; }
.rx-bar { gap: 7px; }

/* ---------- 正文图片：对齐 bbs 消息内的图片框（不是平铺满宽） ---------- */
.talk-content img { display: block; width: auto; height: auto; max-width: min(100%, 590px); max-height: 520px; margin: 12px auto; border-radius: 10px; object-fit: contain; background: rgba(255, 255, 255, .045); box-shadow: none; cursor: zoom-in; }
@media (max-width: 640px) { .talk-content img { max-height: 480px; } }

/* ---------- 消息卡按 bbs 收到 620，图片填满卡片内容区（框内图片） ---------- */
.msg-card, .talk-post { width: 100%; max-width: 620px; margin-left: auto; margin-right: auto; }
.talk-content img { width: 100%; max-width: 100%; height: auto; max-height: 520px; margin: 10px 0; }

/* 后台侧栏 · 便签站点 */
.side-notes { margin: 0 2px 12px; }
.side-notes-head { display: flex; align-items: center; justify-content: space-between; padding: 0 10px; margin-bottom: 2px; }
.side-notes-head span { font-size: 11px; letter-spacing: .16em; color: var(--dim); font-family: 'FragmentMono', monospace; opacity: .8; }
.notes-add {
  width: 22px; height: 22px; display: grid; place-items: center; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 15px; line-height: 1; transition: all .2s;
}
.notes-add:hover { color: var(--text); box-shadow: var(--sh-in-sm); }
.notes-list { display: grid; gap: 1px; }
.note-item { display: flex; align-items: center; border-radius: 10px; padding-right: 6px; }
.note-item:hover { background: rgba(255, 255, 255, .03); }
.note-item a {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; padding: 8px 4px 8px 12px;
  font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.note-item a:hover { color: var(--text); }
.note-item a i { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); opacity: .65; flex: 0 0 auto; }
.note-del {
  opacity: 0; border: 0; background: transparent; color: var(--dim); font-size: 15px; line-height: 1;
  cursor: pointer; padding: 3px 5px; border-radius: 7px; transition: all .15s;
}
.note-item:hover .note-del { opacity: 1; }
.note-del:hover { color: var(--red); }
.notes-empty { font-size: 12px; color: var(--dim); padding: 6px 12px; opacity: .75; }
.notes-form { display: grid; gap: 6px; margin: 6px 4px 0; padding: 8px; border-radius: 12px; box-shadow: var(--sh-in-sm); }
.notes-form input {
  width: 100%; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line);
  background: transparent; color: var(--text); font-size: 13px; outline: none;
}
.notes-form input:focus { border-color: var(--cyan); }
.notes-form-actions { display: flex; gap: 6px; margin-top: 2px; }
@media (max-width: 900px) {
  .side-notes { width: 100%; margin: 0 0 10px; }
  .notes-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .note-del { opacity: .6; }
}
.notes-list { max-height: 38vh; overflow-y: auto; scrollbar-width: thin; }
.notes-list::-webkit-scrollbar { width: 5px; }
.notes-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 3px; }
