/* ---------------- 外壳 ---------------- */
.shell {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 12px);
  position: relative;
}

@media (min-width: 760px) {
  body { background: #06070A; }
  .shell {
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    min-height: 100vh;
  }
}

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px var(--pad) 10px;
  background: rgba(10, 11, 15, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.top.scrolled { border-bottom-color: var(--line); }
.top-brand { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.top-brand b { font-size: 16px; font-weight: 700; letter-spacing: 0.5px; }
.top-brand span { font-size: 11px; color: var(--ink-3); letter-spacing: 0.6px; }
.top-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.icon-btn {
  width: 34px; height: 34px; border-radius: var(--r-full);
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
}
.icon-btn:active { transform: scale(0.94); }

.page { padding: 4px var(--pad) 0; }
.page-pad { padding: 0 var(--pad); }

/* ---------------- 底部四 tab ---------------- */
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: flex;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(12, 13, 18, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  max-width: 520px;
  margin: 0 auto;
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--ink-3);
  position: relative;
  border: 0;
  background: none;
  padding: 0;
  transition: color 0.18s var(--ease);
}
.tab b { font-size: 10.5px; font-weight: 500; letter-spacing: 0.4px; }
.tab.on { color: var(--accent); }
.tab.on::after {
  content: "";
  position: absolute;
  top: 6px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.tab .dot {
  position: absolute;
  top: 9px; right: 50%; margin-right: -18px;
  min-width: 15px; height: 15px; padding: 0 4px;
  border-radius: var(--r-full);
  background: var(--danger); color: #fff;
  font-size: 10px; line-height: 15px; text-align: center; font-weight: 600;
}
.tab .dot.plain { min-width: 7px; height: 7px; padding: 0; margin-right: -12px; }

.fab {
  position: fixed;
  right: max(18px, calc(50vw - 260px + 18px));
  bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 16px);
  z-index: 35;
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px -8px rgba(124, 92, 255, 0.7);
  transition: opacity 0.2s, transform 0.15s;
}
.fab:active { transform: scale(0.93); }
.fab.dim { opacity: 0.28; }
.fab.hide { display: none; }

/* ---------------- 通用组件 ---------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  transition: transform 0.12s, background 0.16s;
}
.btn:active { transform: scale(0.975); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn-primary { background: var(--accent); border-color: transparent; color: #fff; }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--danger); border-color: rgba(255, 107, 107, 0.35); background: rgba(255, 107, 107, 0.08); }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12px; border-radius: var(--r-xs); }
.btn-block { display: flex; width: 100%; }
.btn-lg { height: 46px; font-size: 15px; border-radius: var(--r-md); }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 28px; padding: 0 11px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 12px;
  white-space: nowrap;
}
.chip.on { background: var(--accent-soft); border-color: var(--accent-line); color: #CFC4FF; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }

.pill {
  display: inline-flex; align-items: center; gap: 4px;
  height: 21px; padding: 0 8px; border-radius: 6px;
  font-size: 11px; font-weight: 500;
  background: var(--surface-3); color: var(--ink-2);
}
.pill.ok { background: rgba(47, 214, 165, 0.13); color: var(--ok); }
.pill.warn { background: rgba(232, 179, 75, 0.14); color: var(--warn); }
.pill.danger { background: rgba(255, 107, 107, 0.13); color: var(--danger); }
.pill.accent { background: var(--accent-soft); color: #C9BCFF; }

.section-head {
  display: flex; align-items: baseline; gap: 8px;
  margin: 22px 0 10px;
}
.section-head h2 { font-size: 15px; font-weight: 700; margin: 0; letter-spacing: 0.2px; }
.section-head span { font-size: 11.5px; color: var(--ink-3); }
.section-head .more { margin-left: auto; font-size: 12px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 2px; }

.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }
.tiny { font-size: 11.5px; }
.hr { height: 1px; background: var(--line); margin: 14px 0; border: 0; }

/* 表单 */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field > label { font-size: 12.5px; color: var(--ink-2); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.field .req { color: var(--danger); font-size: 11px; }
.field .hint { font-size: 11.5px; color: var(--ink-3); }
.input, .textarea, .select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
  transition: border-color 0.16s, background 0.16s;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:focus, .textarea:focus { border-color: var(--accent-line); background: var(--surface-3); }
.textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.input.err, .textarea.err { border-color: rgba(255, 107, 107, 0.6); }

/* 弹层 */
.mask {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(4, 5, 8, 0.72);
  backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fade 0.18s var(--ease);
}
.mask.center { align-items: center; padding: 20px; }
.sheet {
  width: 100%; max-width: 520px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 8px 0 calc(14px + env(safe-area-inset-bottom, 0px));
  max-height: 88vh;
  display: flex; flex-direction: column;
  animation: up 0.24s var(--ease);
}
.mask.center .sheet {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  max-width: 340px;
  padding-bottom: 14px;
  animation: pop 0.2s var(--ease);
}
.sheet-grip { width: 36px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 4px auto 6px; }
.sheet-head { padding: 6px 18px 2px; }
.sheet-head h3 { margin: 0; font-size: 15.5px; font-weight: 700; }
.sheet-head p { margin: 3px 0 0; font-size: 12px; color: var(--ink-3); }
.sheet-body { padding: 12px 18px 4px; overflow-y: auto; }
.sheet-foot { padding: 10px 18px 4px; display: flex; gap: 10px; }
.sheet-foot .btn { flex: 1; }

@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(24px); opacity: 0.6; } }
@keyframes pop { from { transform: scale(0.96); opacity: 0.5; } }

/* 轻提示 */
.toast-wrap {
  position: fixed; left: 0; right: 0; top: 12px; z-index: 90;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}
.toast {
  max-width: 88%;
  padding: 9px 15px;
  border-radius: var(--r-full);
  background: rgba(30, 33, 42, 0.96);
  border: 1px solid var(--line-strong);
  font-size: 13px;
  box-shadow: var(--shadow-2);
  animation: drop 0.24s var(--ease);
}
.toast.ok { border-color: rgba(47, 214, 165, 0.4); color: #C7F5E6; }
.toast.error { border-color: rgba(255, 107, 107, 0.45); color: #FFD3D3; }
@keyframes drop { from { transform: translateY(-10px); opacity: 0; } }

/* 空状态 / 骨架 */
.empty { padding: 46px 20px; text-align: center; color: var(--ink-3); }
.empty .empty-ico {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line);
  display: grid; place-items: center; margin: 0 auto 12px; color: var(--ink-3);
}
.empty h3 { margin: 0 0 6px; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.empty p { margin: 0; font-size: 12px; line-height: 1.7; }
.sk { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--r-sm); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------------- 首页 ---------------- */
.hero { padding: 10px var(--pad) 2px; }
.hero h1 {
  margin: 0;
  font-size: 27px;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { margin: 8px 0 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.65; max-width: 34em; }
.hero-stats { display: flex; gap: 22px; margin-top: 16px; }
.hero-stats > div { display: flex; flex-direction: column; gap: 1px; }
.hero-stats b { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; }
.hero-stats span { font-size: 11px; color: var(--ink-3); }

.notice-bar {
  margin: 14px var(--pad) 0;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  background: rgba(232, 179, 75, 0.08);
  border: 1px solid rgba(232, 179, 75, 0.22);
  color: #F0D7A4;
  font-size: 11.5px;
  display: flex; gap: 8px; align-items: flex-start;
}

.type-rail {
  display: flex; gap: 10px;
  overflow-x: auto;
  padding: 4px var(--pad) 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.type-rail::-webkit-scrollbar { display: none; }
.type-card {
  flex: 0 0 108px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 12px 11px;
  display: flex; flex-direction: column; gap: 3px;
  position: relative; overflow: hidden;
}
.type-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--tc, var(--accent)); opacity: 0.85;
}
.type-card .tc-ico {
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--tc, var(--accent)) 18%, transparent);
  color: var(--tc, var(--accent));
  margin-bottom: 6px;
}
.type-card b { font-size: 13.5px; font-weight: 600; }
.type-card span { font-size: 10.5px; color: var(--ink-3); line-height: 1.45; }
.type-card .tc-n { position: absolute; right: 11px; top: 12px; font-size: 11px; color: var(--ink-3); }

.rec-rail {
  display: flex; gap: 12px; overflow-x: auto;
  padding: 4px var(--pad) 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.rec-rail::-webkit-scrollbar { display: none; }
.rec-card {
  flex: 0 0 236px; scroll-snap-align: start;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative;
}
.rec-card .rc-img { height: 118px; background: var(--surface-3); position: relative; }
.rec-card .rc-img img { width: 100%; height: 100%; object-fit: cover; }
.rec-card .rc-body { padding: 10px 12px 12px; }
.rec-card b { display: block; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-card .rc-meta { display: flex; align-items: center; gap: 8px; margin-top: 5px; font-size: 11px; color: var(--ink-3); }
.rec-badge {
  position: absolute; left: 10px; top: 10px;
  height: 20px; padding: 0 8px; border-radius: 6px;
  display: inline-flex; align-items: center;
  font-size: 10.5px; font-weight: 600;
  background: rgba(10, 11, 15, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(6px);
}
.rec-star {
  position: absolute; right: 10px; top: 10px;
  height: 20px; padding: 0 7px; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10.5px; font-weight: 600;
  background: rgba(124, 92, 255, 0.9);
  color: #fff;
}

/* 列表卡片 */
.list { display: flex; flex-direction: column; gap: 10px; }
.lc {
  display: flex; gap: 12px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  position: relative;
  transition: border-color 0.16s, transform 0.12s;
}
.lc:active { transform: scale(0.994); border-color: var(--line-strong); }
.lc-img {
  width: 74px; height: 74px; flex: 0 0 auto;
  border-radius: var(--r-sm);
  overflow: hidden; background: var(--surface-3);
  position: relative;
}
.lc-img img { width: 100%; height: 100%; object-fit: cover; }
.lc-img .lc-type {
  position: absolute; left: 0; bottom: 0; right: 0;
  font-size: 9.5px; text-align: center; padding: 3px 0;
  background: color-mix(in srgb, var(--tc, var(--accent)) 82%, #000);
  color: #fff; letter-spacing: 0.5px;
}
.lc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lc-main h3 {
  margin: 0; font-size: 14.5px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.lc-main .lc-desc {
  font-size: 12px; color: var(--ink-3); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lc-foot { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--ink-3); margin-top: auto; }
.lc-foot .sep { width: 2px; height: 2px; border-radius: 50%; background: var(--ink-3); }
.lc-foot .hot { color: var(--accent); font-weight: 600; }

/* ---------------- 档案 ---------------- */
.seg-wrap {
  position: sticky; top: 57px; z-index: 20;
  background: rgba(10, 11, 15, 0.92);
  backdrop-filter: blur(14px);
  padding: 10px var(--pad) 8px;
  border-bottom: 1px solid var(--line);
}
.seg-row { display: flex; gap: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 3px; }
.seg {
  flex: 1; height: 30px; border: 0; background: none; color: var(--ink-3);
  font-size: 12.5px; border-radius: 9px; font-weight: 500;
  white-space: nowrap;
}
.seg.on { background: var(--surface-3); color: var(--ink); box-shadow: var(--shadow-1); }
.filter-row { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.filter-row .chip { height: 26px; font-size: 11.5px; }
.filter-row .sort { margin-left: auto; display: flex; gap: 2px; }

/* ---------------- 榜单 ---------------- */
.rank-head {
  padding: 6px var(--pad) 14px;
}
.rank-head h1 { margin: 6px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -0.4px; }
.rank-head p { margin: 6px 0 0; font-size: 11.5px; color: var(--ink-3); }
.rank-list { display: flex; flex-direction: column; gap: 8px; }
.rank-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
}
.rank-row .no {
  width: 22px; text-align: center;
  font-size: 14px; font-weight: 700; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.rank-row.top1 { background: linear-gradient(100deg, rgba(232, 179, 75, 0.16), var(--surface) 58%); border-color: rgba(232, 179, 75, 0.3); }
.rank-row.top1 .no { color: var(--warn); }
.rank-row.top2 { background: linear-gradient(100deg, rgba(178, 190, 210, 0.13), var(--surface) 58%); }
.rank-row.top3 { background: linear-gradient(100deg, rgba(200, 140, 90, 0.13), var(--surface) 58%); }
.rank-row .rr-img { width: 40px; height: 40px; border-radius: 10px; overflow: hidden; background: var(--surface-3); flex: 0 0 auto; }
.rank-row .rr-img img { width: 100%; height: 100%; object-fit: cover; }
.rank-row .rr-main { flex: 1; min-width: 0; }
.rank-row .rr-main b { display: block; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row .rr-main span { font-size: 11px; color: var(--ink-3); }
.rank-row .rr-n { text-align: right; }
.rank-row .rr-n b { display: block; font-size: 15px; color: var(--accent); font-weight: 700; }
.rank-row .rr-n span { font-size: 10px; color: var(--ink-3); }
.mine-bar {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  display: flex; align-items: center; gap: 10px;
}
.mine-bar b { font-size: 15px; }
.mine-bar span { font-size: 11.5px; color: #C9BCFF; }

/* ---------------- 我的 ---------------- */
.profile-card {
  display: flex; align-items: center; gap: 13px;
  padding: 16px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
}
.avatar {
  width: 48px; height: 48px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center;
  background: linear-gradient(140deg, #7C5CFF, #4D7CFE);
  color: #fff; font-size: 18px; font-weight: 700;
}
.profile-main { flex: 1; min-width: 0; }
.profile-main b { font-size: 16px; font-weight: 700; display: block; }
.profile-main span { font-size: 11.5px; color: var(--ink-3); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.stat-cell {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 10px 12px;
}
.stat-cell b { display: block; font-size: 19px; font-weight: 700; letter-spacing: -0.3px; }
.stat-cell span { font-size: 10.5px; color: var(--ink-3); }

.quota-list { display: flex; flex-direction: column; gap: 8px; }
.quota-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line);
}
.quota-row .q-ico {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--tc, var(--accent)) 16%, transparent);
  color: var(--tc, var(--accent));
}
.quota-row b { font-size: 12.5px; font-weight: 500; }
.quota-row .q-dots { display: flex; gap: 3px; margin-left: auto; }
.q-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--surface-3); }
.q-dot.used { background: var(--tc, var(--accent)); }
.quota-row em { font-style: normal; font-size: 11px; color: var(--ink-3); min-width: 34px; text-align: right; }

.entry-row {
  display: flex; gap: 11px; padding: 11px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
}
.entry-row .er-img { width: 54px; height: 54px; border-radius: 9px; overflow: hidden; background: var(--surface-3); flex: 0 0 auto; }
.entry-row .er-img img { width: 100%; height: 100%; object-fit: cover; }
.entry-row .er-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.entry-row .er-main b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry-row .er-meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-3); }
.entry-row .er-acts { display: flex; gap: 6px; margin-top: 2px; }

.menu-list { display: flex; flex-direction: column; gap: 1px; background: var(--line); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.menu-item {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 14px; background: var(--surface);
  font-size: 13.5px; color: var(--ink); border: 0; width: 100%; text-align: left;
}
.menu-item .mi-ico { color: var(--ink-3); display: grid; place-items: center; }
.menu-item .mi-arrow { margin-left: auto; color: var(--ink-3); }
.menu-item .mi-sub { margin-left: auto; font-size: 11.5px; color: var(--ink-3); }

/* ---------------- 详情 ---------------- */
.d-hero { position: relative; height: 208px; background: var(--surface-3); margin: 0 calc(-1 * var(--pad)); }
.d-hero img { width: 100%; height: 100%; object-fit: cover; }
.d-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 11, 15, 0.15) 0%, rgba(10, 11, 15, 0.55) 55%, var(--bg) 100%);
}
.d-back {
  position: absolute; z-index: 3; left: var(--pad); top: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(10, 11, 15, 0.5); border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff; display: grid; place-items: center;
  backdrop-filter: blur(8px);
}
.d-head { position: relative; z-index: 2; margin-top: -46px; padding: 0 var(--pad); }
.d-type {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 10px; border-radius: var(--r-full);
  font-size: 11.5px; font-weight: 600;
  background: color-mix(in srgb, var(--tc, var(--accent)) 88%, #000);
  color: #fff;
}
.d-head h1 { margin: 10px 0 0; font-size: 23px; font-weight: 800; letter-spacing: -0.4px; line-height: 1.3; }
.d-sub { margin: 7px 0 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); }
.d-sub .sep { width: 2px; height: 2px; border-radius: 50%; background: var(--ink-3); }

.d-section { margin-top: 22px; }
.d-section h4 {
  margin: 0 0 9px; font-size: 12px; font-weight: 600; color: var(--ink-3);
  letter-spacing: 1px; text-transform: uppercase;
}
.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kv {
  padding: 11px 12px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line);
}
.kv span { display: block; font-size: 10.5px; color: var(--ink-3); margin-bottom: 3px; }
.kv b { font-size: 13.5px; font-weight: 600; word-break: break-all; }
.kv.wide { grid-column: 1 / -1; }

.d-intro { font-size: 13.5px; line-height: 1.85; color: #D9DCE2; white-space: pre-wrap; word-break: break-word; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gallery button { padding: 0; border: 0; background: var(--surface-3); border-radius: 9px; overflow: hidden; aspect-ratio: 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

.roster { display: flex; flex-direction: column; gap: 6px; }
.roster-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line);
}
.roster-row .av {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 11px; font-weight: 600;
  background: color-mix(in srgb, var(--tc, var(--accent)) 22%, transparent);
  color: var(--tc, var(--accent));
}
.roster-row b { font-size: 13px; font-weight: 500; }
.roster-row span { font-size: 11px; color: var(--ink-3); }
.roster-row em { margin-left: auto; font-style: normal; font-size: 12.5px; color: var(--ink-2); font-weight: 600; }

.data-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.data-block { padding: 13px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); }
.data-block b { display: block; font-size: 20px; font-weight: 700; color: var(--tc, var(--accent)); letter-spacing: -0.4px; }
.data-block span { font-size: 10.5px; color: var(--ink-3); }

.schedule-band {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border-radius: var(--r-md);
  background: color-mix(in srgb, var(--tc, var(--accent)) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--tc, var(--accent)) 30%, transparent);
}
.schedule-band .sb-ico { color: var(--tc, var(--accent)); }
.schedule-band b { display: block; font-size: 15px; font-weight: 700; }
.schedule-band span { font-size: 11px; color: var(--ink-3); }

.contact-card {
  margin-top: 18px; padding: 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line-strong);
}
.contact-card .cc-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); }
.contact-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.contact-row .cr-label { font-size: 11.5px; color: var(--ink-3); width: 34px; flex: 0 0 auto; }
.contact-row .cr-val { flex: 1; font-size: 16px; font-weight: 700; letter-spacing: 0.4px; word-break: break-all; }
.contact-lock { display: flex; flex-direction: column; gap: 10px; }
.contact-lock p { margin: 0; font-size: 12px; color: var(--ink-3); line-height: 1.7; }

.d-foot { margin: 22px 0 0; padding: 12px 0 4px; border-top: 1px solid var(--line); font-size: 11px; color: var(--ink-3); line-height: 1.8; }
.d-actions { display: flex; gap: 10px; margin-top: 14px; }
.d-actions .btn { flex: 1; }

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  max-width: 520px; margin: 0 auto;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 11, 15, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  display: flex; gap: 10px; align-items: center;
}
.dock .btn { flex: 1; }
.dock .dock-price { font-size: 11px; color: var(--ink-3); }

/* ---------------- 发布表单 ---------------- */
.step-head { padding: 4px 0 12px; }
.step-head h1 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -0.3px; }
.step-head p { margin: 6px 0 0; font-size: 12px; color: var(--ink-3); }
.type-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.type-pick button {
  text-align: left; padding: 14px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  display: flex; flex-direction: column; gap: 6px;
}
.type-pick button:active { transform: scale(0.98); }
.type-pick .tp-ico {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--tc, var(--accent)) 18%, transparent);
  color: var(--tc, var(--accent));
}
.type-pick b { font-size: 14px; font-weight: 600; }
.type-pick span { font-size: 11px; color: var(--ink-3); }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; margin-bottom: 14px; }
.form-card > h3 { margin: 0 0 12px; font-size: 12px; color: var(--ink-3); letter-spacing: 1px; font-weight: 600; }

.uploader {
  height: 132px; border-radius: var(--r-sm);
  border: 1px dashed var(--line-strong);
  background: var(--surface-2);
  display: grid; place-items: center;
  position: relative; overflow: hidden; cursor: pointer;
}
.uploader img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.uploader .up-hint { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink-3); font-size: 11.5px; }
.up-multi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.up-cell { aspect-ratio: 1; border-radius: 9px; overflow: hidden; position: relative; background: var(--surface-2); border: 1px dashed var(--line-strong); display: grid; place-items: center; color: var(--ink-3); }
.up-cell img { width: 100%; height: 100%; object-fit: cover; }
.up-cell .del { position: absolute; right: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; border: 0; display: grid; place-items: center; }

.tag-input { display: flex; gap: 8px; }
.hint-strip {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 10px 12px; border-radius: var(--r-sm);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  font-size: 11.5px; color: #CFC4FF; line-height: 1.6;
}
.submit-bar { position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(180deg, transparent, var(--bg) 30%); }

/* ---------------- 登录 ---------------- */
.auth-wrap { padding: 26px var(--pad) 0; }
.auth-brand { text-align: center; margin-bottom: 22px; }
.auth-brand .ab-mark {
  width: 52px; height: 52px; border-radius: 15px; margin: 0 auto 12px;
  background: linear-gradient(140deg, #7C5CFF, #4D7CFE);
  display: grid; place-items: center; font-size: 22px; font-weight: 800; color: #fff;
}
.auth-brand h1 { margin: 0; font-size: 20px; font-weight: 800; }
.auth-brand p { margin: 6px 0 0; font-size: 12px; color: var(--ink-3); }
.auth-tabs {
  display: flex; gap: 3px; padding: 3px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line); margin-bottom: 16px;
}
.auth-tabs button {
  flex: 1; height: 34px; border: 0; border-radius: 9px; background: none;
  color: var(--ink-3); font-size: 13px; font-weight: 500;
}
.auth-tabs button.on { background: var(--surface-3); color: var(--ink); }
.captcha-row { display: flex; gap: 10px; align-items: stretch; }
.captcha-row .input { flex: 1; }
.captcha-img {
  width: 104px; height: 44px; border-radius: var(--r-xs); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-2);
  display: grid; place-items: center; flex: 0 0 auto; padding: 0;
}
.auth-err {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 10px 12px; border-radius: var(--r-sm); margin-bottom: 12px;
  background: rgba(255, 107, 107, 0.1); border: 1px solid rgba(255, 107, 107, 0.32);
  color: #FFC9C9; font-size: 12px; line-height: 1.6;
  animation: shake 0.34s var(--ease);
}
.auth-err.hide { display: none; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  22% { transform: translateX(-5px); }
  55% { transform: translateX(4px); }
  78% { transform: translateX(-2px); }
}
.auth-foot { margin-top: 18px; text-align: center; font-size: 11.5px; color: var(--ink-3); line-height: 1.8; }

/* ---------------- 数据 / 助手 ---------------- */
.bar-chart { display: flex; align-items: flex-end; gap: 5px; height: 62px; margin-top: 10px; }
.bar-chart .bar {
  flex: 1; border-radius: 4px 4px 0 0;
  background: color-mix(in srgb, var(--accent) 55%, transparent);
  min-height: 3px; position: relative;
}
.bar-chart .bar.on { background: var(--accent); }
.bind-code {
  font-size: 30px; font-weight: 800; letter-spacing: 8px;
  color: var(--accent); text-align: center; padding: 10px 0 4px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 360px) {
  .hero h1 { font-size: 24px; }
  .d-head h1 { font-size: 20px; }
  .kv-grid, .data-blocks { grid-template-columns: 1fr; }
}
