/* ================= 设计变量（日间 / 夜间） ================= */
:root {
  --ink: #0f1b2d;
  --ink-2: #1d3355;
  --accent: #12c99b;
  --accent-hi: #5cf2c8;
  --accent-ink: #0a7a5f;
  --accent-soft: #e3f8f1;
  --blue: #3b6ff5;
  --gold: #b7791f;
  --gold-soft: #fff4dc;
  --gold-line: #f3d9a4;
  --price: #ff5a1f;
  --danger: #e5484d;
  --danger-soft: #fdecec;

  --bg: #eef3fa;
  --bg-2: #f6f8fc;
  --card: #ffffff;
  --text: #121926;
  --text-2: #4a5468;
  --muted: #8b95a7;
  --line: #e6ebf2;
  --input: #f2f5f9;
  --chip: #ffffff;
  --shadow: 0 1px 2px rgba(15, 27, 45, .04), 0 6px 20px rgba(15, 27, 45, .06);
  --shadow-hover: 0 4px 10px rgba(15, 27, 45, .08), 0 16px 40px rgba(15, 27, 45, .12);
  --radius: 16px;
  --radius-sm: 10px;
  --tabbar-h: 64px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --accent-ink: #4fe0b6;
  --accent-soft: rgba(18, 201, 155, .14);
  --gold: #f0b65a;
  --gold-soft: rgba(240, 182, 90, .12);
  --gold-line: rgba(240, 182, 90, .35);
  --danger-soft: rgba(229, 72, 77, .16);
  --bg: #0b1220;
  --bg-2: #0f1828;
  --card: #141e30;
  --text: #e6ecf5;
  --text-2: #b4bfd1;
  --muted: #7d8aa0;
  --line: #233049;
  --input: #1b2740;
  --chip: #18243a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; font-size: 15px; line-height: 1.5; transition: background .2s; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
b, strong { font-weight: 650; }
[hidden], .hidden { display: none !important; }
.price, .num, .pc-stats b, .stat-strip b, .admin-grid b, .money-card b, .wallet-hero b { font-variant-numeric: tabular-nums; }

/* ================= 外框 ================= */
.wrap-inner { max-width: 1240px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 16px; }
.sp { flex: 1; }
#app { max-width: 1240px; margin: 0 auto; min-height: 70vh; padding-bottom: calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom)); }
.page { padding: 12px 16px; }
.narrow { max-width: 780px; margin: 0 auto; }

.topstrip { display: none; background: var(--card); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.topstrip .wrap-inner { height: 36px; gap: 22px; }
.topstrip a:hover { color: var(--accent-ink); }
.strip-user { font-weight: 600; color: var(--text); }
.theme-btn { display: inline-flex; align-items: center; gap: 4px; border: 0; background: var(--accent-soft); color: var(--accent-ink); border-radius: 999px; padding: 3px 10px; cursor: pointer; font-size: 12px; }
.theme-btn svg:nth-of-type(2), .theme-btn .t-light { display: none; }
[data-theme="dark"] .theme-btn svg:nth-of-type(1), [data-theme="dark"] .theme-btn .t-dark { display: none; }
[data-theme="dark"] .theme-btn svg:nth-of-type(2), [data-theme="dark"] .theme-btn .t-light { display: inline; }

.header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header .wrap-inner { height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 36px; height: 36px; flex: none; display: block; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 17px; letter-spacing: .5px; }
.brand-text small { font-size: 11px; color: var(--muted); letter-spacing: 1px; margin-top: 2px; }
.mainnav { display: none; gap: 4px; margin-left: 20px; }
.mainnav a { padding: 18px 16px; color: var(--text-2); position: relative; font-size: 15px; }
.mainnav a:hover { color: var(--text); }
.mainnav a.active { color: var(--text); font-weight: 700; }
.mainnav a.active::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }
.head-icons { display: flex; gap: 2px; }
.publish-btn { display: none; }

.marquee { background: linear-gradient(90deg, var(--gold-soft), transparent); border-bottom: 1px solid var(--line); color: var(--gold); font-size: 13px; }
.marquee .wrap-inner { height: 36px; gap: 10px; overflow: hidden; }
.marquee svg { flex: none; }
.mq { flex: 1; overflow: hidden; white-space: nowrap; display: flex; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.mq span { flex: none; padding-right: 80px; animation: marquee 30s linear infinite; }
@keyframes marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .mq span { animation: none; } }

.floatbar { display: none; }
.footer { display: none; }

.tabbar { position: fixed; bottom: 0; left: 0; right: 0; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--line); display: flex; z-index: 40; }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; color: var(--muted); position: relative; }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.active { color: var(--text); font-weight: 600; }
.tabbar a.active > svg { color: var(--accent); stroke-width: 2.2; }
.tabbar a.center { justify-content: flex-end; padding-bottom: 7px; color: var(--text); font-weight: 600; }
.center-btn { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent-hi), var(--accent)); color: var(--ink); box-shadow: 0 6px 18px rgba(18, 201, 155, .45), 0 0 0 4px var(--card); }
.center-btn svg { width: 28px !important; height: 28px !important; stroke-width: 2.4; }
.badge { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff;
  font-size: 10px; line-height: 17px; text-align: center; font-weight: 700; box-shadow: 0 0 0 2px var(--card); }

/* 手机端：只有一级页面显示顶部品牌栏 */
@media (max-width: 899px) {
  body:not(.is-root) .header { display: none; }
  .desktop-only { display: none !important; }
}
/* 登录注册页：只显示内容 */
body.bare .topstrip, body.bare .header, body.bare .marquee, body.bare .footer, body.bare .floatbar, body.bare .tabbar { display: none !important; }
body.bare #app { max-width: none; padding-bottom: 0; }

@media (min-width: 900px) {
  .topstrip { display: block; }
  .mainnav { display: flex; }
  .head-icons { display: none; }
  .publish-btn { display: inline-flex; }
  .tabbar { display: none; }
  .mobile-only { display: none !important; }
  #app { padding-bottom: 40px; }
  .page { padding: 22px 16px; }
  .footer { display: block; background: var(--card); border-top: 1px solid var(--line); margin-top: 24px; color: var(--text-2); font-size: 14px; }
  .footer .wrap-inner { padding-top: 32px; padding-bottom: 24px; align-items: flex-start; gap: 64px; }
  .foot-brand { flex: 1; max-width: 420px; }
  .foot-brand .brand-mark { display: inline-block; vertical-align: middle; }
  .foot-brand .brand-text { display: inline-flex; vertical-align: middle; margin-left: 8px; }
  .foot-brand p { margin: 12px 0 0; color: var(--muted); line-height: 1.7; }
  .foot-links { display: flex; flex-direction: column; gap: 8px; }
  .foot-links b { color: var(--text); margin-bottom: 4px; }
  .foot-links a:hover { color: var(--accent-ink); }
  .foot-copy { text-align: center; color: var(--muted); font-size: 12px; padding: 14px; border-top: 1px solid var(--line); }
}
@media (min-width: 1360px) {
  .floatbar { display: flex; flex-direction: column; position: fixed; right: 16px; top: 50%; transform: translateY(-50%); width: 92px; z-index: 30;
    background: var(--card); border-radius: 16px; box-shadow: var(--shadow-hover); overflow: hidden; }
  .fb-head { background: var(--ink); color: #fff; padding: 10px 6px; display: flex; justify-content: center; }
  .fb-head .brand-mark { width: 30px; height: 30px; }
  .fb-head .brand-text { display: none; }
  .floatbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 4px; border-bottom: 1px solid var(--line); text-align: center; position: relative; color: var(--text); }
  .floatbar a:hover { background: var(--accent-soft); }
  .floatbar a b { font-size: 12px; }
  .floatbar a small { font-size: 10px; color: var(--muted); }
  .floatbar .badge { top: 6px; left: auto; right: 14px; }
  .floatbar .fb-svc { background: var(--ink); color: #fff; border-bottom: 0; }
  .floatbar .fb-svc:hover { background: var(--ink-2); }
}

/* ================= 通用组件 ================= */
.card { background: var(--card); border-radius: var(--radius); padding: 18px; margin-bottom: 12px; box-shadow: var(--shadow); }
.card-title { font-weight: 700; font-size: 16px; margin: 0 0 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card-title small, .card-title .small { font-weight: 400; color: var(--muted); font-size: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 999px; padding: 10px 20px;
  background: linear-gradient(135deg, #3fe3b6, var(--accent)); color: var(--ink); font-weight: 650; cursor: pointer; white-space: nowrap; transition: filter .15s, transform .1s, box-shadow .15s; text-align: center; }
.btn:hover { filter: brightness(1.05); box-shadow: 0 6px 18px rgba(18, 201, 155, .28); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.block { width: 100%; padding: 13px; font-size: 16px; }
.btn.sm { padding: 7px 14px; font-size: 13px; }
.btn.ghost { background: var(--input); color: var(--text); }
.btn.dark { background: var(--ink); color: #fff; }
[data-theme="dark"] .btn.dark { background: #2a3b5c; }
.btn.danger { background: var(--danger); color: #fff; }
.btn.outline { background: transparent; color: var(--accent-ink); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn.outline-gold { background: var(--gold-soft); color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold-line); }
.btn.outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.btn.ghost:hover, .btn.dark:hover, .btn.outline:hover, .btn.danger:hover, .btn.outline-gold:hover { box-shadow: none; filter: brightness(.97); }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--text); flex: none; }
.icon-btn:hover { background: var(--input); }
.row { display: flex; align-items: center; gap: 8px; }
.row.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.link { color: var(--accent-ink); font-weight: 500; }
.plain { font-size: inherit !important; color: inherit !important; }
.price { color: var(--price); font-weight: 800; font-size: 22px; letter-spacing: -.3px; white-space: nowrap; }
.price.sm { font-size: 17px; }
.price small { font-size: .62em; font-weight: 700; }
.price em { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 3px; }
s { color: var(--muted); font-size: 12px; margin-left: 6px; }
.empty { text-align: center; color: var(--muted); padding: 48px 16px; }
.loading { text-align: center; padding: 40px; color: var(--muted); }
.tag { white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; font-size: 12px; line-height: 1.6; padding: 1px 8px; border-radius: 6px; background: var(--input); color: var(--text-2); font-weight: 500; }
.tag.green { background: var(--accent-soft); color: var(--accent-ink); }
.tag.red { background: var(--danger-soft); color: var(--danger); }
.tag.navy { background: rgba(59, 111, 245, .12); color: var(--blue); }
.tag.gold { background: var(--gold-soft); color: var(--gold); }
.tag a { color: inherit; margin-left: 2px; }
.role-tag { margin-left: 6px; font-size: 11px; padding: 0 6px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chip { flex: none; padding: 6px 15px; border-radius: 999px; background: var(--chip); border: 1px solid var(--line); cursor: pointer; font-size: 14px; color: var(--text-2); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
[data-theme="dark"] .chip.active { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar, .chips::-webkit-scrollbar, .hscroll::-webkit-scrollbar { display: none; }
.tabs a { padding: 10px 0 12px; color: var(--muted); font-size: 15px; position: relative; flex: none; }
.tabs .active { color: var(--text); font-weight: 700; }
.tabs .active::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); width: 20px; bottom: -1px; height: 3px; border-radius: 2px; background: var(--accent); }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); margin-bottom: 8px; cursor: pointer; background: none; border: 0; padding: 4px 0; font-size: 14px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 14px; }
.page-head .back { width: 100%; margin-bottom: 0; }
.page-head h1 { font-size: 22px; margin: 0; flex: 1; letter-spacing: .5px; }
.page-head > .muted { width: 100%; }

/* 表单 */
.field { margin-bottom: 16px; }
.field > label, .lbl { display: block; font-weight: 600; margin-bottom: 8px; font-size: 14px; }
.req { color: var(--danger); margin-right: 2px; }
.input { width: 100%; border: 1.5px solid transparent; background: var(--input); border-radius: var(--radius-sm); padding: 11px 14px; font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none; color: var(--text); }
.input.sm { width: auto; padding: 6px 12px; font-size: 13px; border-radius: 999px; }
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%238b95a7' stroke-width='2'%3E%3Cpath d='m3 4.5 3 3 3-3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(18, 201, 155, .14); }
.input::placeholder { color: var(--muted); opacity: .8; }
textarea.input { min-height: 96px; resize: vertical; }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.65; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg label { border: 1.5px solid var(--line); background: var(--card); border-radius: var(--radius-sm); padding: 6px 12px; cursor: pointer; font-size: 13px; }
.seg label input { display: none; }
.seg label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 0 18px; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.form-sec { font-weight: 700; margin: 6px 0 14px; padding-left: 10px; border-left: 3px solid var(--accent); }
.check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }
.uploader { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.uploader .thumb { aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; position: relative; background: var(--input); }
.uploader .thumb img { width: 100%; height: 100%; object-fit: cover; }
.uploader .thumb button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; }
.uploader .add { aspect-ratio: 1; border-radius: var(--radius-sm); border: 1.5px dashed var(--line); display: grid; place-items: center; color: var(--muted); cursor: pointer; font-size: 13px; text-align: center; }
.pw { position: relative; margin-bottom: 14px; }
.pw .input { padding-right: 46px; margin: 0 !important; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }

/* 弹窗 & 提示 */
.modal-mask { position: fixed; inset: 0; background: rgba(8, 14, 26, .55); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 100; padding: 16px; animation: fade .15s; }
.modal { background: var(--card); color: var(--text); border-radius: 20px; width: 100%; max-width: 400px; padding: 24px 22px 20px; text-align: center; max-height: 90vh; overflow-y: auto; box-shadow: 0 24px 64px rgba(0, 0, 0, .35); animation: pop .18s ease-out; }
.modal.wide { max-width: 560px; }
.modal.left { text-align: left; }
.modal h3 { margin: 0 0 12px; font-size: 18px; }
.modal p { color: var(--text-2); line-height: 1.7; margin: 0 0 8px; }
.modal-actions { justify-content: center; margin-top: 18px; }
.modal-actions .btn { flex: 1; }
.ann-head { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, var(--ink-2), var(--ink)); color: #fff; margin: -24px -22px 16px; padding: 18px 20px; border-radius: 20px 20px 0 0; }
.ann-head .brand-mark { width: 40px; height: 40px; }
.ann-head > div { flex: 1; }
.ann-head b { display: block; font-size: 16px; }
.ann-head small { color: #a9b8d1; }
.ann-body { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; line-height: 1.9; color: var(--text-2); max-height: 50vh; overflow-y: auto; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.toast { position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%); background: rgba(15, 27, 45, .92); color: #fff; padding: 11px 20px; border-radius: 12px; z-index: 200; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: 80vw; text-align: center; }
.toast.show { opacity: 1; }

/* ================= 登录注册 ================= */
.auth-wrap { min-height: 100vh; display: flex; background: var(--card); }
.auth-side { display: none; }
.auth { width: 100%; max-width: 440px; margin: 0 auto; padding: 32px 22px 40px; }
.auth-mobile-brand { display: flex; align-items: center; gap: 10px; margin: 8px 0 36px; }
.auth-mobile-brand .brand-mark { width: 44px; height: 44px; }
.auth h1 { font-size: 26px; margin: 0 0 4px; }
.auth > p.muted { margin: 0 0 28px; }
.auth .input { margin-bottom: 14px; }
.auth .foot { text-align: center; margin-top: 28px; color: var(--muted); }
.auth .foot a { color: var(--accent-ink); font-weight: 600; margin-left: 4px; }
@media (min-width: 900px) {
  .auth-side { display: flex; flex-direction: column; justify-content: center; flex: 1; padding: 64px; color: #fff; position: relative; overflow: hidden;
    background: radial-gradient(120% 80% at 0% 100%, rgba(18, 201, 155, .25), transparent 60%), linear-gradient(160deg, var(--ink-2), var(--ink)); }
  .auth-wrap.is-admin .auth-side { background: radial-gradient(120% 80% at 0% 100%, rgba(92, 120, 255, .22), transparent 60%), linear-gradient(160deg, #1a2440, #0a1020); }
  .auth-side::before { content: ""; position: absolute; inset: 0; opacity: .35; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 32px 32px; }
  .auth-side > * { position: relative; }
  .auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 56px; }
  .auth-brand .brand-mark { width: 48px; height: 48px; }
  .auth-brand .brand-text small { color: #8ea3c4; }
  .auth-side h2 { font-size: 34px; line-height: 1.35; margin: 0 0 28px; letter-spacing: 1px; }
  .auth-side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; color: #c8d3e6; }
  .auth-side li::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(18, 201, 155, .2); color: var(--accent-hi); font-size: 12px; margin-right: 10px; }
  .auth { flex: 0 0 480px; max-width: none; display: flex; flex-direction: column; justify-content: center; padding: 64px; }
  .auth-mobile-brand { display: none; }
}

/* ================= 首页 ================= */
.home-top { display: grid; gap: 12px; }
.home-menu { padding: 6px; display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; }
.home-menu a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 2px; border-radius: 12px; position: relative; text-align: center; }
.home-menu a:hover { background: var(--bg-2); }
.hm-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--accent-hi); flex: none; }
[data-theme="dark"] .hm-icon { background: #22314f; }
.hm-text b { font-size: 12.5px; display: block; }
.hm-text small, .home-menu .chev { display: none; }
.hot { position: absolute; top: 2px; right: 6px; font-size: 9px; font-style: normal; font-weight: 800; color: #fff; background: linear-gradient(135deg, #ff7a45, #ff3d6e); padding: 1px 5px; border-radius: 6px; }
.carousel { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 168px; box-shadow: var(--shadow); }
.slide { position: absolute; inset: 0; display: flex; align-items: center; padding: 22px 24px; color: #fff; opacity: 0; transition: opacity .6s; pointer-events: none; }
.slide.active { opacity: 1; pointer-events: auto; }
.slide.theme-ink { background: radial-gradient(90% 120% at 100% 0%, rgba(18, 201, 155, .4), transparent 55%), linear-gradient(135deg, var(--ink-2), var(--ink)); }
.slide.theme-violet { background: radial-gradient(80% 120% at 100% 0%, rgba(255, 255, 255, .35), transparent 50%), linear-gradient(135deg, #8b7cf6, #5b6cf0); }
.slide.theme-mint { background: radial-gradient(80% 120% at 100% 0%, rgba(255, 255, 255, .35), transparent 50%), linear-gradient(135deg, #2fd6a8, #0b9e7a); }
.slide.theme-amber { background: radial-gradient(80% 120% at 100% 0%, rgba(255, 255, 255, .35), transparent 50%), linear-gradient(135deg, #ffb547, #ff7a45); }
.slide-text { position: relative; z-index: 1; max-width: 72%; }
.slide h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: 1px; line-height: 1.25; }
.slide p { margin: 0 0 14px; opacity: .85; font-size: 13px; }
.slide-cta { display: inline-block; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .35); padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.slide-mark { position: absolute; right: -20px; bottom: -30px; width: 170px; height: 170px; opacity: .22; transform: rotate(-12deg); }
.slide-mark svg { width: 100%; height: 100%; }
.dots { position: absolute; bottom: 10px; left: 24px; display: flex; gap: 6px; z-index: 2; }
.dots button { width: 7px; height: 7px; border-radius: 4px; border: 0; background: rgba(255, 255, 255, .5); cursor: pointer; padding: 0; transition: width .2s; }
.dots button.active { width: 20px; background: #fff; }
.user-card { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.uc-head { display: flex; align-items: center; gap: 12px; }
.uc-head b { display: block; font-size: 16px; }
.uc-head small { color: var(--muted); }
.uc-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.uc-rows a { display: grid; grid-template-columns: auto 1fr; gap: 0 6px; align-items: center; background: var(--bg-2); border-radius: 12px; padding: 10px 12px; color: var(--text-2); }
.uc-rows a span { font-size: 12px; }
.uc-rows a b { grid-column: 1 / -1; font-size: 18px; color: var(--text); }
.uc-go { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.uc-go a { border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.uc-go b { font-size: 15px; }
.uc-go span { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .7); }
.go-rent { background: linear-gradient(135deg, #e3eeff, #c9dcff); color: #1e40af; }
.go-lease { background: linear-gradient(135deg, #e3f8f1, #bdf0de); color: var(--accent-ink); }
[data-theme="dark"] .go-rent { background: linear-gradient(135deg, #1d2d55, #22396e); color: #a8c3ff; }
[data-theme="dark"] .go-lease { background: linear-gradient(135deg, #12382f, #164638); color: #6ff5cf; }
[data-theme="dark"] .uc-go span { background: rgba(255, 255, 255, .12); }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin: 12px 0; padding: 12px 0; text-align: center; }
.stat-strip div + div { border-left: 1px solid var(--line); }
.stat-strip b { display: block; font-size: 18px; }
.stat-strip span { font-size: 11px; color: var(--muted); }
@media (min-width: 900px) {
  .home-top { grid-template-columns: 240px 1fr 300px; align-items: stretch; }
  .home-menu { grid-template-columns: 1fr; padding: 8px; }
  .home-menu a { flex-direction: row; text-align: left; gap: 12px; padding: 12px; }
  .hm-text { flex: 1; }
  .hm-text b { font-size: 15px; }
  .hm-text small { display: block; font-size: 12px; color: var(--muted); }
  .home-menu .chev { display: block; color: var(--muted); }
  .hot { top: 8px; right: 30px; }
  .carousel { min-height: 0; }
  .slide { padding: 40px; }
  .slide h2 { font-size: 34px; }
  .slide p { font-size: 15px; }
  .slide-mark { width: 260px; height: 260px; right: -10px; bottom: -50px; }
  .stat-strip b { font-size: 22px; }
}
.sec { margin-top: 22px; }
.sec-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.sec-head h2 { margin: 0; font-size: 20px; }
.sec-head .muted { font-size: 13px; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sec-head a { color: var(--accent-ink); font-size: 14px; flex: none; }
.hscroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.hscroll .pcard { flex: 0 0 320px; scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; gap: 14px; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

/* ================= 商品卡片 ================= */
.pcard { background: var(--card); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; cursor: pointer; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; border: 1px solid var(--line); }
.pcard:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.pc-img { position: relative; aspect-ratio: 16 / 9; background: #1a2333; overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; }
.pc-disc { position: absolute; left: 10px; top: 10px; background: linear-gradient(135deg, #ffd25a, #ffb020); color: #4a2b00; font-weight: 800; font-size: 13px; padding: 2px 10px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.pc-disc.lg { font-size: 16px; padding: 4px 14px; left: 14px; top: 14px; }
.pc-login { position: absolute; right: 10px; bottom: 10px; font-size: 11px; color: #fff; background: rgba(15, 27, 45, .75); padding: 2px 8px; border-radius: 6px; }
.pc-sold { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10, 16, 28, .55); color: #fff; font-weight: 700; letter-spacing: 2px; }
.pc-strip { display: flex; align-items: center; gap: 6px; padding: 7px 12px; background: var(--gold-soft); border-bottom: 1px solid var(--gold-line); color: var(--gold); font-size: 12px; white-space: nowrap; overflow: hidden; }
.pc-strip b { font-size: 13px; }
.pc-strip span { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; flex: 1; }
.pc-strip em { font-style: normal; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); border-radius: 5px; padding: 0 6px; }
.pc-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pc-title { font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 7px; line-height: 1.35; }
.pc-title.lg { font-size: 20px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; opacity: .5; }
.dot.on { background: #22c55e; opacity: 1; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.pc-remark { font-size: 12px; color: var(--muted); margin-top: -6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-skins { display: flex; flex-wrap: wrap; gap: 5px; max-height: 50px; overflow: hidden; }
.pc-skins span { font-size: 11px; padding: 1px 7px; border-radius: 5px; background: var(--bg-2); color: var(--text-2); border: 1px solid var(--line); }
.pc-skins .none { color: var(--muted); }
.pc-stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--bg-2); border-radius: 10px; padding: 8px 4px; }
.pc-stats div { padding: 0 5px; min-width: 0; }
.pc-stats div + div { border-left: 1px solid var(--line); }
.pc-stats span { display: block; font-size: 11px; color: var(--muted); }
.pc-stats b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-foot { display: flex; align-items: center; gap: 6px; margin-top: auto; }
.pc-price { flex: 1; min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; }
.pc-foot .btn.sm { padding: 7px 11px; }
.pcard.compact .pc-skins { max-height: 22px; }
.empty-shop { text-align: center; padding: 40px 20px; }
.empty-shop .brand-mark { width: 56px; height: 56px; margin: 0 auto 14px; }
.empty-shop h3 { margin: 0 0 6px; color: var(--text); }
.empty-shop p { margin: 0 0 20px; }

/* ================= 租号大厅 ================= */
.zone-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
@media (min-width: 900px) { .zone-cards { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.zone-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius); background: var(--card); border: 1.5px solid var(--line); cursor: pointer; text-align: left; box-shadow: var(--shadow); }
.zone-card b { display: block; font-size: 15px; }
.zone-card small { color: var(--muted); font-size: 12px; }
.zc-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--zc); background: color-mix(in srgb, var(--zc) 14%, transparent); flex: none; }
.zone-card.active { border-color: var(--zc); background: color-mix(in srgb, var(--zc) 8%, var(--card)); }
.filter-card { padding: 6px 18px; }
.filter-toggle { width: 100%; display: flex; align-items: center; gap: 6px; border: 0; background: none; padding: 10px 0; font-weight: 600; cursor: pointer; }
.filter-toggle span { margin-left: auto; color: var(--accent-ink); font-weight: 500; font-size: 13px; }
@media (max-width: 899px) { .filter-card:not(.open) .filter-body { display: none; } }
.frow { display: flex; gap: 8px; padding: 10px 0; border-bottom: 1px dashed var(--line); align-items: flex-start; }
.frow:last-child { border-bottom: 0; }
.flabel { flex: none; width: 76px; font-size: 13px; color: var(--muted); padding-top: 5px; }
.fopts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; flex: 1; }
.fopts button { border: 0; background: none; padding: 4px 11px; border-radius: 8px; font-size: 13px; cursor: pointer; color: var(--text-2); }
.fopts button:hover { color: var(--text); background: var(--bg-2); }
.fopts button.active { background: var(--blue); color: #fff; font-weight: 600; }
.fopts button.more { color: var(--accent-ink); }
.fopts .btn { padding: 6px 14px; }
.fopts .btn.ghost.active, .fopts .btn.active { background: initial; }
.frow.adv .input.sm { width: 110px; }
.sortbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--card); border-radius: var(--radius); padding: 6px 12px; margin: 12px 0; box-shadow: var(--shadow); }
.sorts { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.sorts button { border: 0; background: none; padding: 8px 12px; border-radius: 8px; cursor: pointer; color: var(--text-2); white-space: nowrap; font-size: 14px; }
.sorts button.active { color: var(--blue); font-weight: 700; background: rgba(59, 111, 245, .1); }
.sort-search { display: flex; align-items: center; gap: 6px; background: var(--input); border-radius: 999px; padding: 0 12px; color: var(--muted); }
.sort-search input { border: 0; background: none; outline: none; padding: 8px 0; width: 180px; color: var(--text); }
@media (max-width: 640px) { .sort-search { flex: 1; } .sort-search input { width: 100%; } }

/* ================= 商品详情 ================= */
.detail { display: grid; gap: 16px; }
@media (min-width: 900px) { .detail { grid-template-columns: 1.1fr 1fr; align-items: start; gap: 24px; } .detail > div:first-child { position: sticky; top: 80px; } }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: #0b1424; aspect-ratio: 4 / 3; position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding: 3px; }
.gallery-thumbs img { width: 76px; height: 57px; border-radius: 8px; object-fit: cover; cursor: pointer; opacity: .55; flex: none; }
.gallery-thumbs img.active { opacity: 1; outline: 2px solid var(--accent); outline-offset: 2px; }
.detail-price .price { font-size: 30px; }
.seller-card { display: flex; align-items: center; gap: 12px; }
.seller-card > div { flex: 1; }
.seller-card b { display: block; }
.seller-card small { color: var(--muted); }
.seller-card small.online { color: #16a34a; }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 16px; }
@media (min-width: 500px) { .kv { grid-template-columns: repeat(3, 1fr); } }
.kv div { font-weight: 600; }
.kv div span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 2px; font-weight: 400; }
.skin-group { display: flex; gap: 10px; margin-bottom: 10px; }
.skin-group > span { flex: none; width: 36px; color: var(--muted); font-size: 13px; padding-top: 2px; }
.skin-group > div { display: flex; flex-wrap: wrap; gap: 6px; }
.buybar { position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--card) 96%, transparent); backdrop-filter: blur(12px); padding: 10px 16px; display: flex; gap: 8px; align-items: center; border-top: 1px solid var(--line); margin: 0 -16px; z-index: 10; }
@media (min-width: 900px) { .buybar { position: static; margin: 0; border-radius: var(--radius); border: 0; box-shadow: var(--shadow); } }
.icon-act { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: none; cursor: pointer; color: var(--text-2); font-size: 11px; padding: 0 8px; }
.icon-act.on { color: #f43f5e; }
.icon-act.on svg { fill: currentColor; }

/* ================= 消息 ================= */
.conv { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.conv:last-child { border-bottom: 0; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #d9f7ee, #b5eedc); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; flex: none; position: relative; }
[data-theme="dark"] .avatar { background: linear-gradient(135deg, #17423a, #1d5a4b); color: var(--accent-hi); }
.avatar.xs { width: 26px; height: 26px; font-size: 12px; }
.avatar.lg { width: 52px; height: 52px; font-size: 20px; background: linear-gradient(135deg, var(--ink-2), var(--ink)); color: var(--accent-hi); }
.avatar.xl { width: 72px; height: 72px; font-size: 28px; background: linear-gradient(135deg, var(--accent-hi), var(--accent)); color: var(--ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.avatar.sys { background: linear-gradient(135deg, #e3ebff, #c9d8ff); color: var(--blue); }
.avatar.grp { background: linear-gradient(135deg, #fff1dc, #ffe0b5); color: #d97a12; }
.avatar.svc { background: linear-gradient(135deg, var(--ink-2), var(--ink)); color: var(--accent-hi); }
.avatar .badge { top: -3px; left: auto; right: -4px; }
.conv-body { flex: 1; min-width: 0; }
.conv-body b { display: block; margin-bottom: 3px; }
.conv-body p { margin: 0; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice { padding: 14px 0; border-bottom: 1px solid var(--line); }
.notice:last-child { border-bottom: 0; }
.notice b { display: block; margin-bottom: 4px; }
.notice p { margin: 0 0 6px; color: var(--text-2); line-height: 1.65; }
.chat { display: flex; flex-direction: column; height: calc(100vh - var(--tabbar-h) - 24px - env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .chat { height: calc(100vh - 160px); } }
.chat-head { padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.chat-product { display: flex; align-items: center; gap: 8px; margin-top: 8px; background: var(--card); padding: 8px; border-radius: 10px; }
.chat-product img { width: 48px; height: 36px; border-radius: 6px; object-fit: cover; }
.chat-list { flex: 1; overflow-y: auto; padding: 14px 0; display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 8px; max-width: 82%; }
.msg .avatar { width: 34px; height: 34px; font-size: 13px; }
.msg .bubble { background: var(--card); padding: 9px 13px; border-radius: 4px 14px 14px 14px; white-space: pre-wrap; word-break: break-word; line-height: 1.55; box-shadow: var(--shadow); }
.msg .who { font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg.me .bubble { background: var(--ink); color: #fff; border-radius: 14px 4px 14px 14px; }
[data-theme="dark"] .msg.me .bubble { background: #20604f; }
.msg.me .who { text-align: right; }
.msg.staff .avatar { background: linear-gradient(135deg, var(--ink-2), var(--ink)); color: var(--accent-hi); }
.msg.sysmsg { align-self: center; max-width: 92%; }
.msg.sysmsg .bubble { background: var(--input); color: var(--text-2); font-size: 12px; box-shadow: none; border-radius: 10px; text-align: center; }
.chat-input { display: flex; gap: 8px; padding: 10px 0; align-items: flex-end; }
.chat-input textarea { flex: 1; min-height: 44px; max-height: 120px; resize: none; background: var(--card); box-shadow: var(--shadow); }
.member-list { display: grid; gap: 10px; max-height: 46vh; overflow-y: auto; }
.member-list .row { justify-content: space-between; }
.member-list .row .row { justify-content: flex-start; }

/* ================= 个人中心 ================= */
.profile-card { padding: 0; overflow: hidden; }
.pf-top { display: flex; gap: 14px; align-items: flex-start; padding: 20px; }
.pf-info { flex: 1; min-width: 0; }
.pf-info b { font-size: 20px; }
.pf-info p { margin: 6px 0; color: var(--text-2); font-size: 14px; }
.pf-info small { color: var(--muted); }
.pf-counts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.pf-counts a { text-align: center; padding: 14px 0; color: var(--text-2); font-size: 13px; }
.pf-counts a + a { border-left: 1px solid var(--line); }
.pf-counts b { display: block; font-size: 22px; color: var(--text); }
.money-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-items: center; background: linear-gradient(135deg, var(--ink-2), var(--ink)); color: #fff; }
.money-card a small { color: #a9b8d1; font-size: 12px; display: block; }
.money-card a b { font-size: 22px; }
.mc-btns { grid-column: 1 / -1; display: flex; gap: 8px; }
.mc-btns .btn { flex: 1; }
.mc-btns .btn.ghost { background: rgba(255, 255, 255, .12); color: #fff; }
@media (min-width: 640px) { .money-card { grid-template-columns: repeat(3, 1fr) auto; } .mc-btns { grid-column: auto; } }
.iconrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 0; }
.iconrow a { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); text-align: center; }
.ir-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--bg-2); color: var(--text); transition: transform .15s; }
.iconrow a:hover .ir-icon { transform: translateY(-2px); }
.iconrow .c1 .ir-icon { background: #fff4dc; color: #c27a10; }
.iconrow .c2 .ir-icon { background: #e6efff; color: #3b6ff5; }
.iconrow .c3 .ir-icon { background: #e3f8f1; color: #0a9a73; }
.iconrow .c4 .ir-icon { background: #fde8ea; color: #d9455b; }
.iconrow .c5 .ir-icon { background: #f0e8ff; color: #7c4ff0; }
[data-theme="dark"] .iconrow [class^="c"] .ir-icon { background: var(--bg-2); }

/* 列表 / 订单 */
.list-item { background: var(--card); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
.list-item .row img { width: 76px; height: 57px; border-radius: 8px; object-fit: cover; flex: none; }
.li-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.status-tag { font-size: 13px; font-weight: 600; }
.status-unpaid, .status-pending, .status-refunding { color: #d97a12; }
.status-trading, .status-on { color: var(--accent-ink); }
.status-done, .status-sold { color: var(--blue); }
.status-cancelled, .status-off, .status-refunded { color: var(--muted); }
.status-rejected { color: var(--danger); }
.pay-card .pay-total { border-top: 1px dashed var(--line); padding-top: 12px; }
.estimate { color: #fff; border-radius: var(--radius); padding: 16px 18px; position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 8px); z-index: 5;
  background: radial-gradient(80% 140% at 100% 0%, rgba(18, 201, 155, .3), transparent 60%), linear-gradient(135deg, var(--ink-2), var(--ink)); box-shadow: 0 12px 32px rgba(15, 27, 45, .25); }
.estimate b { font-size: 28px; color: var(--accent-hi); }
@media (min-width: 900px) { .estimate { bottom: 16px; } }
.reply { background: var(--accent-soft); padding: 10px; border-radius: 8px; }

/* 钱包 */
.wallet-hero { background: linear-gradient(135deg, #fff1d6, #ffe0a8); color: #5a3a06; }
[data-theme="dark"] .wallet-hero { background: linear-gradient(135deg, #3b2d12, #4a3612); color: #ffd98f; }
.wallet-hero small { display: block; opacity: .8; }
.wallet-hero b { font-size: 34px; }
.wallet-hero p { margin: 12px 0 0; opacity: .85; }
.wallet-hero a { text-decoration: underline; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.two-col .card { margin-bottom: 12px; }
@media (max-width: 640px) { .lottery .two-col { grid-template-columns: 1fr; } }
.card.mini small { display: flex; align-items: center; gap: 4px; color: var(--muted); }
.card.mini b { font-size: 22px; }
.ledger { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ledger:last-child { border-bottom: 0; }
.ledger > span { font-size: 14px; min-width: 0; }
.ledger small { display: block; color: var(--muted); font-size: 12px; }
.ledger > b { text-align: right; flex: none; }
.ledger > b.plus { color: var(--accent-ink); }
.st-pending { color: #d97a12; } .st-paid { color: var(--accent-ink); } .st-rejected { color: var(--danger); }

/* 卡券 */
.coupon { display: flex; align-items: center; background: var(--card); border-radius: 14px; margin-bottom: 10px; box-shadow: var(--shadow); overflow: hidden; }
.cp-amt { width: 96px; flex: none; align-self: stretch; display: grid; place-items: center; background: linear-gradient(135deg, #ff7a45, #ff3d6e); color: #fff; font-size: 30px; font-weight: 800; }
.cp-amt small { font-size: 14px; }
.cp-info { flex: 1; padding: 14px; min-width: 0; }
.cp-info b { display: block; }
.cp-info span { font-size: 12px; color: var(--muted); }
.cp-st { padding: 0 14px; font-size: 13px; color: var(--accent-ink); font-weight: 600; }
.coupon.used, .coupon.expired { opacity: .55; }
.coupon.used .cp-amt, .coupon.expired .cp-amt { background: #9aa4b5; }
.coupon.used .cp-st, .coupon.expired .cp-st { color: var(--muted); }

/* 公告 / 常见问题 / 文档 */
.notice-row { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.notice-row:last-child { border-bottom: 0; }
.nr-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); flex: none; }
.notice-row b { display: block; }
.notice-row p { margin: 4px 0; color: var(--text-2); font-size: 13px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notice-row small { color: var(--muted); }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.pager a { min-width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--card); }
.pager a.active { background: var(--blue); color: #fff; }
.doc { line-height: 1.85; color: var(--text-2); }
.doc h2, .doc h3 { color: var(--text); }
.doc h2 { margin-top: 0; }
.doc-body { white-space: normal; }
.faq details { padding: 0; }
.faq summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 16px 18px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg:first-child { color: var(--accent-ink); flex: none; }
.faq summary b { flex: 1; }
.faq summary .chev { color: var(--muted); transition: transform .2s; }
.faq details[open] .chev { transform: rotate(90deg); }
.faq-a { padding: 0 18px 18px 46px; color: var(--text-2); line-height: 1.8; }

/* 行情 */
.chart-wrap { overflow-x: auto; }
.chart { width: 100%; min-width: 480px; height: auto; }
.chart text { fill: var(--muted); font-size: 11px; }
.chart .grid-line { stroke: var(--line); stroke-dasharray: 3 4; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; font-size: 13px; color: var(--text-2); margin-top: 6px; }
.legend i { display: inline-block; width: 12px; height: 4px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.hafu-day { padding: 12px 0; border-bottom: 1px solid var(--line); }
.hafu-day:last-child { border-bottom: 0; }
.hafu-day > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

/* 免押 / 俱乐部 / 抽奖 */
.vip-card { background: linear-gradient(135deg, var(--ink-2), var(--ink)); color: #fff; }
.vip-card small { color: #a9b8d1; display: block; }
.vip-card b { font-size: 36px; color: var(--accent-hi); display: block; }
.vip-card span { font-size: 13px; color: #c8d3e6; }
.perk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.perk-grid > div { background: var(--bg-2); border-radius: 12px; padding: 14px 10px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.perk-grid svg { color: var(--accent-ink); }
.perk-grid span { font-size: 12px; color: var(--muted); }
@media (max-width: 520px) { .perk-grid { grid-template-columns: 1fr; } .perk-grid > div { flex-direction: row; text-align: left; } .perk-grid span { margin-left: auto; text-align: right; } }
.club-hero { display: flex; gap: 14px; align-items: center; background: linear-gradient(135deg, #e6efff, #f4f7ff); }
[data-theme="dark"] .club-hero { background: linear-gradient(135deg, #18284a, #141e30); }
.club-hero h2 { margin: 0 0 4px; }
.club-hero p { margin: 0; color: var(--text-2); }
.checkin { display: flex; align-items: center; gap: 16px; justify-content: space-between; background: radial-gradient(90% 140% at 100% 0%, rgba(255, 255, 255, .3), transparent 50%), linear-gradient(135deg, #8b7cf6, #5b6cf0); color: #fff; }
.checkin h2 { margin: 0 0 4px; }
.checkin p { margin: 0 0 12px; opacity: .85; font-size: 13px; }
.checkin .btn:disabled { opacity: .7; }
.streak { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.streak span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); font-size: 12px; font-weight: 700; }
.streak span.on { background: #ffd25a; color: #4a2b00; }
.streak small { opacity: .85; margin-left: 4px; }
.lt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 420px; margin: 0 auto; }
.lt-cell { aspect-ratio: 1; border-radius: 14px; background: var(--bg-2); border: 2px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px; text-align: center; transition: all .1s; color: var(--text-2); }
.lt-cell b { font-size: 22px; color: var(--price); }
.lt-cell span { font-size: 11px; line-height: 1.3; }
.lt-cell.lit { border-color: #ffb020; background: var(--gold-soft); transform: scale(1.04); box-shadow: 0 0 0 4px rgba(255, 176, 32, .25); }
.lt-go { aspect-ratio: 1; border-radius: 14px; border: 0; cursor: pointer; background: linear-gradient(135deg, #ff7a45, #ff3d6e); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(255, 61, 110, .35); }
.lt-go b { font-size: 22px; }
.lt-go span { font-size: 12px; opacity: .9; }
.lt-go:disabled { background: #9aa4b5; box-shadow: none; cursor: not-allowed; }
.prize-pop { padding: 8px 0; }
.prize-pop b { font-size: 44px; color: var(--price); }
.prize-pop p { font-weight: 700; color: var(--text); }

/* ================= 管理后台 ================= */
.admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
@media (min-width: 900px) { .admin-grid { grid-template-columns: repeat(4, 1fr); } }
.admin-grid .card { margin: 0; }
.admin-grid b { font-size: 22px; display: block; margin-top: 2px; }
.admin-layout { display: grid; gap: 16px; }
.admin-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.an-group { display: contents; }
.an-group small { display: none; }
.admin-nav a { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--card); font-size: 14px; color: var(--text-2); border: 1px solid var(--line); }
.admin-nav a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.admin-nav i { font-style: normal; background: var(--danger); color: #fff; border-radius: 9px; padding: 0 6px; font-size: 11px; margin-left: 5px; }
.admin-main h2 { margin: 0 0 12px; font-size: 18px; }
@media (min-width: 900px) {
  .admin-layout { grid-template-columns: 200px 1fr; align-items: start; }
  .admin-nav { flex-direction: column; background: var(--card); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); position: sticky; top: 80px; }
  .an-group { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
  .an-group small { display: block; color: var(--muted); font-size: 12px; padding: 6px 10px 4px; }
  .admin-nav a { border: 0; background: none; border-radius: 10px; display: flex; justify-content: space-between; }
  .admin-nav a.active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
}
.banner-edit { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 10px; background: var(--bg-2); border-radius: 12px; margin-bottom: 8px; }
@media (min-width: 700px) { .banner-edit { grid-template-columns: 1.2fr 1.6fr 1fr .8fr; } }

/* 手机端细节修正 */
.header .publish-btn { display: none; }
@media (min-width: 900px) { .header .publish-btn { display: inline-flex; } }
@media (max-width: 640px) {
  .sortbar { padding: 8px; }
  .sorts { flex: 1 1 100%; }
  .sort-search { flex: 1; }
  .hm-text b { font-size: 12px; white-space: nowrap; }
  .home-menu a { padding: 10px 0; }
}
.pf-top { position: relative; }
.pf-top > .btn { flex: none; }
@media (max-width: 640px) {
  .pf-top { padding-right: 16px; }
  .pf-top > .btn { position: absolute; top: 14px; right: 14px; padding: 6px 10px; }
  .pf-info { padding-right: 70px; }
  .pf-info p { font-size: 13px; }
  .chart { min-width: 0; }
}
.row > input.input[type=date] { min-width: 0; flex: 1; }
.card-title small.block { display: block; width: 100%; }
.detail > div, .home-top > *, .admin-layout > * { min-width: 0; }
