/* ==========================================================================
   校里 Campus · 设计系统与页面样式
   暖色纸张底 + 珊瑚橘品牌色 + 深松绿点缀
   ========================================================================== */

:root {
  --bg: #f6f3ee;
  --bg-deep: #efe9e1;
  --surface: #fffdfa;
  --surface-2: #f4efe7;
  --surface-3: #ece5da;
  --ink: #211d18;
  --ink-2: #3b342d;
  --muted: #7d746a;
  --muted-2: #a2988c;
  --line: #e8e0d4;
  --line-strong: #d9cebf;
  --brand: #ef5b3c;
  --brand-dark: #d8482a;
  --brand-soft: #ffe9e1;
  --brand-tint: #fff4ef;
  --teal: #226b5b;
  --teal-dark: #174b40;
  --teal-soft: #e3f1ec;
  --gold: #c08a2e;
  --gold-soft: #fbf0d8;
  --danger: #cf3f3f;
  --danger-soft: #fde8e6;
  --success: #2f7d5e;
  --success-soft: #e4f3eb;
  --info: #3d6d9e;
  --info-soft: #e7f0f9;
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 4px 16px rgba(58, 42, 26, 0.05);
  --shadow-md: 0 14px 38px rgba(58, 42, 26, 0.09);
  --shadow-lg: 0 30px 80px rgba(45, 32, 20, 0.16);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --tabbar-h: 68px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: clip;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(1100px 620px at 6% -8%, #ffe3d4 0%, rgba(255, 227, 212, 0) 62%),
    radial-gradient(900px 560px at 104% -4%, #e0efe9 0%, rgba(224, 239, 233, 0) 58%),
    linear-gradient(180deg, #f8f5f0 0%, var(--bg) 46%, #f3efe8 100%);
  background-attachment: fixed;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll { overflow: hidden; }

::selection { background: #ffd3c4; color: var(--ink); }

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

:focus-visible {
  outline: 3px solid rgba(239, 91, 60, 0.35);
  outline-offset: 2px;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 26px; height: 26px; }

.noscript {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--surface);
  padding: 30px;
  text-align: center;
  z-index: 9999;
}

/* --------------------------------------------------------------------------
   启动页
   -------------------------------------------------------------------------- */
.boot {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  text-align: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.boot.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-mark {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  animation: boot-float 2.6s ease-in-out infinite;
}
.boot-word {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-left: 0.12em;
}
.boot-tip { font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }
.boot-tip::after {
  content: "";
  display: inline-block;
  width: 1.2em;
  text-align: left;
  animation: dots 1.4s steps(4) infinite;
}
@keyframes dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
}
@keyframes boot-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

/* --------------------------------------------------------------------------
   顶栏 / 底部导航
   -------------------------------------------------------------------------- */
.app { min-height: 100dvh; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
  background: rgba(248, 245, 240, 0.78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.topbar.is-scrolled { border-bottom-color: var(--line); background: rgba(248, 245, 240, 0.92); }
.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
}
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  box-shadow: 0 6px 18px rgba(239, 91, 60, 0.22);
  flex: none;
}
.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-name { font-size: 19px; font-weight: 850; letter-spacing: 0.02em; line-height: 1.1; }
.brand-sub {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}
.topbar-spacer { flex: 1; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.72);
  display: grid;
  place-items: center;
  color: var(--ink-2);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.icon-btn:hover { background: var(--surface); border-color: var(--line-strong); transform: translateY(-1px); }
.icon-btn:active { transform: scale(0.95); }
.icon-btn .icon { width: 20px; height: 20px; }
.icon-btn.has-dot::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid var(--surface);
}
.avatar-btn {
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform 0.18s ease;
}
.avatar-btn:hover { transform: translateY(-1px); }
.login-chip {
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: transform 0.18s ease, background 0.18s ease;
}
.login-chip:hover { background: var(--brand); transform: translateY(-1px); }

.tabbar {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(520px, calc(100% - 28px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 7px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 253, 250, 0.9);
  box-shadow: 0 18px 46px rgba(48, 34, 21, 0.16);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.tab-item {
  border: 0;
  background: transparent;
  border-radius: 19px;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.tab-item .icon { width: 21px; height: 21px; }
.tab-item:hover { color: var(--ink); background: var(--surface-2); }
.tab-item.is-active { color: #fff; background: var(--ink); }
.tab-item.is-active .icon { stroke-width: 2; }
.tab-item:active { transform: scale(0.96); }
.tab-badge {
  position: absolute;
  transform: translate(16px, -11px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  font-weight: 700;
}
.tab-item { position: relative; }

/* --------------------------------------------------------------------------
   布局与通用组件
   -------------------------------------------------------------------------- */
.app-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 22px calc(var(--tabbar-h) + 74px);
  outline: none;
}
.app-main.is-booting { opacity: 0; }

.page { animation: fade-up 0.38s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.page-narrow { max-width: 820px; margin: 0 auto; }
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 6px 0 22px;
}
.page-head-copy { min-width: 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 8px;
}
.page-title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.12;
}
.page-sub { margin-top: 7px; color: var(--muted); font-size: 14px; max-width: 620px; }
.page-head-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }

.row { display: flex; align-items: center; gap: 10px; }
.row-top { align-items: flex-start; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.wrap { flex-wrap: wrap; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.small { font-size: 13px; }
.strong { font-weight: 700; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-12 { margin-bottom: 12px; }
.hidden { display: none !important; }
[hidden] { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.money { font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: -0.02em; }
.mono { font-variant-numeric: tabular-nums; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 22px; }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.panel-soft { background: var(--surface-2); border-color: transparent; }

.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 750;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition: transform 0.16s ease, filter 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { --btn-bg: var(--brand); box-shadow: 0 10px 24px rgba(239, 91, 60, 0.26); }
.btn-primary:hover { --btn-bg: var(--brand-dark); }
.btn-dark { --btn-bg: var(--ink); }
.btn-teal { --btn-bg: var(--teal); }
.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink-2);
  border-color: var(--line-strong);
}
.btn-ghost:hover { --btn-bg: var(--surface-2); }
.btn-soft { --btn-bg: var(--brand-soft); --btn-fg: var(--brand-dark); }
.btn-danger { --btn-bg: var(--danger); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 12.5px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-text {
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 13px;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-text:hover { text-decoration: underline; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 650;
  white-space: nowrap;
}
.pill-brand { background: var(--brand-soft); color: var(--brand-dark); }
.pill-teal { background: var(--teal-soft); color: var(--teal); }
.pill-gold { background: var(--gold-soft); color: #8a611f; }
.pill-danger { background: var(--danger-soft); color: var(--danger); }
.pill-success { background: var(--success-soft); color: var(--success); }
.pill-info { background: var(--info-soft); color: var(--info); }
.pill-warn { background: var(--gold-soft); color: #8a611f; }
.pill-dark { background: var(--ink); color: #fff; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.badge-dev { background: var(--ink); color: #ffd76a; }
.badge-admin { background: var(--teal-soft); color: var(--teal); }
.badge-merchant { background: var(--gold-soft); color: #855c16; }
.badge-user { background: var(--surface-2); color: var(--muted); }

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #55d6a9;
  box-shadow: 0 0 0 4px rgba(85, 214, 169, 0.18);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(85, 214, 169, 0.16); }
  50% { box-shadow: 0 0 0 8px rgba(85, 214, 169, 0.05); }
}

/* 头像 */
.avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  overflow: hidden;
  flex: none;
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 8px rgba(45, 32, 20, 0.08);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-xs { width: 28px; height: 28px; font-size: 11px; border-width: 1px; }
.avatar-sm { width: 36px; height: 36px; font-size: 13px; }
.avatar-lg { width: 64px; height: 64px; font-size: 22px; }
.avatar-xl { width: 84px; height: 84px; font-size: 30px; border-width: 3px; }
.avatar-banned {
  background: var(--danger) !important;
  color: #fff !important;
  font-size: 18px;
}
.avatar-banned.avatar-lg, .avatar-banned.avatar-xl { font-size: 30px; }
.avatar .avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.user-name { font-weight: 750; }
.user-name.banned { color: var(--danger); text-decoration: line-through; text-decoration-thickness: 1.5px; }

/* 表单 */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.label {
  font-size: 12.5px;
  font-weight: 750;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.label .req { color: var(--brand); }
.hint { font-size: 11.5px; color: var(--muted-2); line-height: 1.5; }
.input, .textarea, .select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(239, 91, 60, 0.12);
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.65; }
.select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%237d746a' stroke-width='2'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input-group { position: relative; }
.input-group .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  width: 18px;
  height: 18px;
}
.input-group .input { padding-left: 42px; }
.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.55;
  cursor: pointer;
  padding: 8px 0;
}
.checkbox input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--brand);
  flex: none;
}
.form-error {
  background: var(--danger-soft);
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12.5px;
  margin-bottom: 12px;
  display: none;
}
.form-error.is-on { display: block; }
.form-note { font-size: 11.5px; color: var(--muted); text-align: center; line-height: 1.6; }
.char-count { font-size: 11px; color: var(--muted-2); text-align: right; }

/* 状态标签 */
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
  background: var(--surface-2);
  color: var(--muted);
}
.status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.status-pending, .status-accepted { background: var(--gold-soft); color: #8a611f; }
.status-paid_pending { background: var(--info-soft); color: var(--info); }
.status-open, .status-active { background: var(--success-soft); color: var(--success); }
.status-in_service { background: var(--info-soft); color: var(--info); }
.status-delivered { background: var(--brand-soft); color: var(--brand-dark); }
.status-completed { background: var(--teal-soft); color: var(--teal); }
.status-cancelled, .status-closed, .status-exited, .status-rejected { background: var(--surface-2); color: var(--muted); }
.status-refund_pending { background: var(--danger-soft); color: var(--danger); }
.status-refunded { background: var(--danger-soft); color: var(--danger); }
.status-pending::before, .status-accepted::before { animation: blink 1.6s ease infinite; }
@keyframes blink { 50% { opacity: 0.3; } }

/* 空状态 / 加载 */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 9px;
  padding: 54px 20px;
  color: var(--muted);
}
.empty-art {
  width: 88px;
  height: 88px;
  border-radius: 30px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--surface-2), #fff);
  border: 1px solid var(--line);
  color: var(--muted-2);
  margin-bottom: 4px;
  transform: rotate(-3deg);
}
.empty-art .icon { width: 36px; height: 36px; }
.empty-title { font-size: 16px; font-weight: 800; color: var(--ink-2); }
.empty-text { font-size: 12.5px; max-width: 320px; line-height: 1.65; }
.empty .btn { margin-top: 8px; }

.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: var(--radius-md);
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.skeleton-card { height: 116px; margin-bottom: 12px; }

/* 通知条 */
.notice-slot { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  margin-top: 12px;
  border: 1px solid transparent;
  line-height: 1.5;
}
.notice .icon { width: 18px; height: 18px; flex: none; }
.notice-danger { background: var(--danger-soft); border-color: #f3c6c2; color: #8f2929; }
.notice-warn { background: var(--gold-soft); border-color: #eed9ab; color: #745116; }
.notice-info { background: var(--info-soft); border-color: #cfe1f2; color: #2c527a; }
.notice-brand { background: var(--brand-soft); border-color: #f7cdbf; color: #8c321d; }
.notice .btn { margin-left: auto; flex: none; }

/* --------------------------------------------------------------------------
   首页
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(700px 480px at 92% -20%, rgba(255, 142, 99, 0.55), transparent 60%),
    radial-gradient(500px 380px at 8% 118%, rgba(85, 214, 169, 0.16), transparent 60%),
    linear-gradient(135deg, #1e3933 0%, #235245 52%, #2d6655 100%);
  color: #fff;
  padding: clamp(26px, 4.6vw, 54px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  box-shadow: 0 30px 70px rgba(30, 57, 51, 0.24);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 0.8px, transparent 0.8px);
  background-size: 22px 22px;
  opacity: 0.09;
  mask-image: linear-gradient(120deg, #000 0%, transparent 55%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  right: -130px;
  bottom: -180px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 42px rgba(255, 255, 255, 0.045), 0 0 0 86px rgba(255, 255, 255, 0.025);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 62px);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.hero h1 em {
  font-style: normal;
  color: #ffb59e;
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 8px;
  background: rgba(255, 181, 158, 0.28);
  border-radius: 4px;
  z-index: -1;
}
.hero-lead {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(13px, 1.4vw, 15px);
  line-height: 1.75;
  max-width: 490px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-actions .btn-primary { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22); }
.hero-actions .btn-glass {
  --btn-bg: rgba(255, 255, 255, 0.1);
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}
.hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.hero-stat { display: flex; flex-direction: column; gap: 1px; }
.hero-stat b { font-size: 22px; font-weight: 850; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hero-stat span { font-size: 10.5px; color: rgba(255, 255, 255, 0.55); letter-spacing: 0.04em; }

.hero-panel {
  position: relative;
  z-index: 1;
  border-radius: 24px;
  background: rgba(255, 253, 250, 0.95);
  color: var(--ink);
  padding: 18px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.2);
  transform: rotate(1.2deg);
  transition: transform 0.35s ease;
}
.hero-panel:hover { transform: rotate(0deg) translateY(-3px); }
.hero-panel-head { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.hero-panel-head .live-dot { margin-left: auto; }
.hero-big {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 14px;
}
.hero-big b { font-size: 40px; line-height: 1; letter-spacing: -0.05em; font-weight: 850; }
.hero-big span { font-size: 12px; color: var(--muted); }
.hero-cat-list { display: grid; gap: 7px; margin-top: 16px; }
.hero-cat {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 11px;
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 650;
}
.hero-cat .icon { width: 15px; height: 15px; color: var(--teal); }
.hero-cat .price { margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 500; }
.hero-trust {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
  font-size: 10.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-trust .icon { color: var(--success); width: 14px; height: 14px; }

.home-section { margin-top: clamp(26px, 4vw, 42px); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 15px;
}
.section-title { font-size: clamp(19px, 2.3vw, 24px); font-weight: 850; letter-spacing: -0.03em; }
.section-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.section-more {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
}
.section-more:hover { color: var(--brand-dark); }
.section-more .icon { width: 14px; height: 14px; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.cat-tile {
  position: relative;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 20px;
  padding: 16px 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}
.cat-tile::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--tile-color, var(--brand));
  opacity: 0;
  transition: opacity 0.2s ease;
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.cat-tile:hover::after { opacity: 1; }
.cat-icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--tile-soft, var(--brand-soft));
  color: var(--tile-color, var(--brand-dark));
}
.cat-icon .icon { width: 23px; height: 23px; }
.cat-name { font-size: 12.5px; font-weight: 750; line-height: 1.2; }
.cat-desc { font-size: 10px; color: var(--muted); line-height: 1.35; display: none; }
@media (min-width: 1000px) { .cat-desc { display: block; } }

.invest-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 40px);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(239, 91, 60, 0.22), transparent 60%),
    linear-gradient(120deg, #201d19, #2c2620 60%, #3a2f25);
  color: #fff;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}
.invest-card::after {
  content: "校里";
  position: absolute;
  right: 18px;
  bottom: -38px;
  font-size: 150px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.035);
  letter-spacing: -0.06em;
  pointer-events: none;
  line-height: 1;
}
.invest-kicker { color: #ffb59e; }
.invest-title { font-size: clamp(24px, 3.4vw, 38px); font-weight: 850; line-height: 1.16; letter-spacing: -0.035em; }
.invest-text { color: rgba(255, 255, 255, 0.62); font-size: 13px; line-height: 1.8; margin-top: 12px; max-width: 520px; }
.invest-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.invest-point {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.78);
}
.invest-point .icon { width: 14px; height: 14px; color: #ffb59e; }
.invest-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.invest-side {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
}
.invest-step {
  display: flex;
  gap: 11px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}
.invest-step b { color: #fff; font-weight: 700; }
.invest-num {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 181, 158, 0.15);
  color: #ffb59e;
  font-size: 10px;
  font-weight: 800;
  flex: none;
}

/* 需求 / 服务卡片 */
.feed-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.feed-grid.single { grid-template-columns: 1fr; }
.request-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}
.request-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.request-top { display: flex; align-items: center; gap: 9px; }
.request-user { display: flex; align-items: center; gap: 8px; min-width: 0; }
.request-user-meta { display: flex; flex-direction: column; min-width: 0; }
.request-user-name { font-size: 12px; font-weight: 700; }
.request-user-sub { font-size: 10px; color: var(--muted-2); }
.request-time { margin-left: auto; font-size: 10px; color: var(--muted-2); white-space: nowrap; }
.request-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.request-desc { font-size: 12px; color: var(--muted); line-height: 1.65; }
.request-foot { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); }
.request-budget { display: flex; flex-direction: column; gap: 0; }
.request-budget span { font-size: 9.5px; color: var(--muted-2); letter-spacing: 0.06em; }
.request-budget b { font-size: 20px; font-weight: 850; letter-spacing: -0.04em; color: var(--brand-dark); }
.request-meta { display: flex; flex-direction: column; gap: 3px; font-size: 10.5px; color: var(--muted); }
.request-actions { margin-left: auto; display: flex; gap: 6px; }

.post-card {
  position: relative;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.post-cover {
  position: relative;
  min-height: 104px;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #ef5b3c, #f59a6d);
}
.post-cover[data-tone="teal"] { background: linear-gradient(135deg, #226b5b, #4fa78f); }
.post-cover[data-tone="gold"] { background: linear-gradient(135deg, #b78228, #e4b55d); }
.post-cover[data-tone="blue"] { background: linear-gradient(135deg, #406b96, #79a6cc); }
.post-cover[data-tone="violet"] { background: linear-gradient(135deg, #70558f, #a58bc4); }
.post-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-cover .icon { width: 34px; height: 34px; opacity: 0.9; }
.post-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.4) 0.7px, transparent 0.7px);
  background-size: 12px 12px;
  opacity: 0.18;
}
.post-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 2px 4px 2px 0; }
.post-cat { font-size: 10px; color: var(--brand-dark); font-weight: 750; letter-spacing: 0.04em; }
.post-title { font-size: 15px; font-weight: 800; line-height: 1.35; letter-spacing: -0.02em; }
.post-desc { font-size: 11.5px; color: var(--muted); line-height: 1.55; }
.post-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.post-price { font-size: 18px; font-weight: 850; color: var(--ink); letter-spacing: -0.04em; }
.post-price small { font-size: 10px; font-weight: 600; color: var(--muted); }
.post-merchant { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--muted); min-width: 0; }
.post-merchant .truncate { max-width: 130px; }
.post-cta { margin-left: auto; }

/* 分栏布局 */
.split-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.side-stack { display: grid; gap: 14px; position: sticky; top: 86px; }
.side-card { padding: 18px; }
.side-title { font-size: 13px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
.side-list { display: grid; gap: 8px; }
.side-item { display: flex; gap: 9px; align-items: center; padding: 9px; border-radius: 12px; background: var(--surface-2); font-size: 11.5px; }
.side-item .icon { color: var(--teal); width: 16px; height: 16px; }
.side-item b { margin-left: auto; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   服务广场
   -------------------------------------------------------------------------- */
.segmented {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.segmented button {
  border: 0;
  background: transparent;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.segmented button.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.segmented .count {
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 10px;
  display: grid;
  place-items: center;
  padding: 0 5px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.search-box {
  position: relative;
  flex: 1;
  min-width: 180px;
  max-width: 360px;
}
.search-box .icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--muted-2);
}
.search-box input {
  width: 100%;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0 14px 0 38px;
  font-size: 12.5px;
}
.search-box input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(239, 91, 60, 0.1); }
.chip-row { display: flex; gap: 7px; overflow-x: auto; padding: 2px 1px 6px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 650;
  color: var(--muted);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.18s ease;
}
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .icon { width: 14px; height: 14px; }

.fab {
  position: fixed;
  right: max(20px, calc((100vw - 1180px) / 2 + 20px));
  bottom: calc(var(--tabbar-h) + 34px);
  z-index: 55;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  background: var(--brand);
  color: #fff;
  font-weight: 750;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 16px 34px rgba(239, 91, 60, 0.36);
  transition: transform 0.18s ease, background 0.18s ease;
}
.fab:hover { transform: translateY(-2px); background: var(--brand-dark); }
.fab .icon { width: 19px; height: 19px; }

/* --------------------------------------------------------------------------
   订单
   -------------------------------------------------------------------------- */
.order-list { display: grid; gap: 12px; }
.order-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: grid;
  gap: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.order-card:hover { box-shadow: var(--shadow-md); }
.order-head { display: flex; align-items: center; gap: 9px; }
.order-cat { font-size: 10.5px; color: var(--muted); }
.order-no { font-size: 10px; color: var(--muted-2); }
.order-title { font-size: 15.5px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.4; }
.order-body { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.order-amount { font-size: 22px; font-weight: 850; letter-spacing: -0.04em; }
.order-amount small { font-size: 10px; font-weight: 600; color: var(--muted); }
.order-people { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted); }
.order-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 12px; border-top: 1px dashed var(--line); }
.order-foot .btn { margin-left: auto; }
.order-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: var(--muted-2);
}
.order-hint .icon { width: 13px; height: 13px; }

.timeline { display: grid; gap: 0; margin: 6px 0; }
.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  padding-bottom: 18px;
  font-size: 12px;
  color: var(--muted);
}
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 20px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.timeline-step:last-child::before { display: none; }
.timeline-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--surface);
  display: grid;
  place-items: center;
  font-size: 10px;
  color: var(--muted-2);
  z-index: 1;
}
.timeline-step.done .timeline-dot { background: var(--teal); border-color: var(--teal); color: #fff; }
.timeline-step.done::before { background: var(--teal); }
.timeline-step.now .timeline-dot { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
.timeline-step b { color: var(--ink-2); font-weight: 700; display: block; }
.timeline-step span { font-size: 10.5px; color: var(--muted-2); }
.timeline-step.done b, .timeline-step.now b { color: var(--ink); }

/* 订单详情 */
.order-detail-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr); gap: 18px; align-items: start; }
.detail-card { padding: 20px; }
.detail-title { font-size: 17px; font-weight: 850; letter-spacing: -0.02em; }
.kv-list { display: grid; gap: 10px; margin-top: 6px; }
.kv { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; font-size: 12px; }
.kv span { color: var(--muted); flex: none; }
.kv b { font-weight: 650; text-align: right; word-break: break-all; }
.fee-box { background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 14px; display: grid; gap: 6px; }
.fee-row { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.fee-row.total { border-top: 1px dashed var(--line-strong); padding-top: 6px; margin-top: 2px; color: var(--ink); font-weight: 750; }
.fee-row.total b { font-size: 16px; }

/* 聊天 */
.chat-card { display: flex; flex-direction: column; height: 480px; overflow: hidden; }
.chat-head { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 9px; }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background:
    radial-gradient(circle at 20% 10%, rgba(239, 91, 60, 0.04), transparent 40%),
    var(--surface-2);
  scroll-behavior: smooth;
}
.chat-empty { margin: auto; text-align: center; color: var(--muted-2); font-size: 11.5px; line-height: 1.7; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 86%; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg-bubble {
  padding: 9px 12px;
  border-radius: 14px 14px 14px 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.55;
  word-break: break-word;
  box-shadow: 0 2px 6px rgba(45, 32, 20, 0.04);
}
.msg.mine .msg-bubble {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  border-radius: 14px 14px 4px 14px;
}
.msg-meta { font-size: 9.5px; color: var(--muted-2); margin-top: 4px; display: flex; gap: 6px; }
.msg.mine .msg-meta { justify-content: flex-end; }
.chat-input {
  border-top: 1px solid var(--line);
  padding: 10px;
  display: flex;
  gap: 8px;
  align-items: flex-end;
  background: var(--surface);
}
.chat-input textarea {
  flex: 1;
  min-height: 40px;
  max-height: 100px;
  resize: none;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.5;
  background: var(--surface-2);
}
.chat-input textarea:focus { outline: none; border-color: var(--brand); background: var(--surface); }
.chat-send {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  border: 0;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
.chat-send:disabled { opacity: 0.4; }
.chat-closed-note { padding: 12px; text-align: center; font-size: 11px; color: var(--muted); background: var(--surface-2); border-top: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   个人中心
   -------------------------------------------------------------------------- */
.profile-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(22px, 3.4vw, 34px);
  background:
    radial-gradient(500px 280px at 100% 0%, rgba(255, 159, 117, 0.5), transparent 62%),
    linear-gradient(130deg, #22201c, #35302a 58%, #4a3d31);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}
.profile-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.4) 0.7px, transparent 0.7px);
  background-size: 20px 20px;
  opacity: 0.07;
  pointer-events: none;
}
.profile-id-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 7px; }
.profile-id {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-variant-numeric: tabular-nums;
}
.profile-id button { border: 0; background: transparent; color: inherit; padding: 0; display: grid; place-items: center; }
.profile-name { font-size: clamp(24px, 3vw, 32px); font-weight: 850; letter-spacing: -0.035em; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.profile-name.is-banned { color: #ff9b8f; text-decoration: line-through; text-decoration-thickness: 2px; }
.profile-bio { color: rgba(255, 255, 255, 0.58); font-size: 12px; margin-top: 5px; max-width: 460px; }
.profile-stats { display: flex; gap: 22px; margin-top: 20px; flex-wrap: wrap; }
.profile-stat b { font-size: 19px; font-weight: 850; display: block; letter-spacing: -0.03em; }
.profile-stat span { font-size: 10px; color: rgba(255, 255, 255, 0.5); }
.profile-hero-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; z-index: 1; }

.wallet-mini {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(85, 214, 169, 0.2), transparent 60%),
    linear-gradient(130deg, #1c3f36, #245a4b);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.wallet-mini-label { font-size: 10px; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.55); }
.wallet-mini-balance { font-size: 30px; font-weight: 850; letter-spacing: -0.04em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.wallet-mini-actions { margin-left: auto; display: flex; gap: 7px; }
.wallet-mini .btn-glass {
  --btn-bg: rgba(255, 255, 255, 0.12);
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.menu-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.menu-group + .menu-group { border-top: 8px solid var(--bg); }
.menu-label { padding: 14px 18px 6px; font-size: 10px; font-weight: 800; letter-spacing: 0.14em; color: var(--muted-2); text-transform: uppercase; }
.menu-item {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  text-align: left;
  transition: background 0.15s ease;
}
.menu-item:hover { background: var(--surface-2); }
.menu-item + .menu-item { border-top: 1px solid var(--line); }
.menu-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--ink-2);
  flex: none;
}
.menu-icon .icon { width: 19px; height: 19px; }
.menu-icon.brand { background: var(--brand-soft); color: var(--brand-dark); }
.menu-icon.teal { background: var(--teal-soft); color: var(--teal); }
.menu-icon.gold { background: var(--gold-soft); color: #8a611f; }
.menu-icon.danger { background: var(--danger-soft); color: var(--danger); }
.menu-copy { flex: 1; min-width: 0; }
.menu-title { font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.menu-desc { font-size: 10.5px; color: var(--muted); margin-top: 1px; }
.menu-arrow { color: var(--muted-2); }
.menu-arrow .icon { width: 17px; height: 17px; }
.menu-item.is-danger .menu-title { color: var(--danger); }

.guest-hero {
  text-align: center;
  padding: clamp(34px, 6vw, 68px) 22px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(500px 300px at 50% -20%, rgba(239, 91, 60, 0.2), transparent 65%),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.guest-art {
  width: 96px;
  height: 96px;
  border-radius: 32px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--brand-soft), #fff);
  box-shadow: inset 0 0 0 1px rgba(239, 91, 60, 0.12), 0 18px 36px rgba(239, 91, 60, 0.14);
  transform: rotate(-4deg);
}
.guest-art .icon { width: 44px; height: 44px; color: var(--brand); }
.guest-title { font-size: clamp(24px, 4vw, 34px); font-weight: 850; letter-spacing: -0.035em; }
.guest-text { color: var(--muted); font-size: 13px; line-height: 1.8; max-width: 440px; margin: 10px auto 22px; }
.guest-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   钱包
   -------------------------------------------------------------------------- */
.wallet-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 38px);
  color: #fff;
  background:
    radial-gradient(600px 320px at 92% -20%, rgba(255, 170, 120, 0.28), transparent 60%),
    radial-gradient(420px 280px at 10% 120%, rgba(85, 214, 169, 0.18), transparent 60%),
    linear-gradient(125deg, #182f2a, #214d41 55%, #2a5f50);
  box-shadow: var(--shadow-lg);
}
.wallet-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.35) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  opacity: 0.08;
  pointer-events: none;
}
.wallet-label { font-size: 10px; letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.55); text-transform: uppercase; }
.wallet-balance { font-size: clamp(40px, 7vw, 62px); font-weight: 850; letter-spacing: -0.05em; line-height: 1.1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.wallet-balance small { font-size: 18px; font-weight: 600; color: rgba(255, 255, 255, 0.6); letter-spacing: 0; }
.wallet-sub { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; color: rgba(255, 255, 255, 0.55); font-size: 11px; }
.wallet-actions { display: flex; gap: 9px; margin-top: 22px; flex-wrap: wrap; position: relative; z-index: 1; }
.wallet-actions .btn { min-height: 42px; }
.wallet-actions .btn-ghost { --btn-fg: #fff; border-color: rgba(255, 255, 255, 0.24); }
.wallet-actions .btn-ghost:hover { --btn-bg: rgba(255, 255, 255, 0.1); }
.wallet-fee-note {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  max-width: 600px;
}
.wallet-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.wallet-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 16px; }
.wallet-stat span { font-size: 10.5px; color: var(--muted); }
.wallet-stat b { display: block; font-size: 18px; font-weight: 800; margin-top: 3px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.wallet-stat b.negative { color: var(--danger); }

.tx-list { display: grid; }
.tx-row { display: flex; align-items: center; gap: 12px; padding: 14px 18px; }
.tx-row + .tx-row { border-top: 1px solid var(--line); }
.tx-icon {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--ink-2);
  flex: none;
}
.tx-icon.in { background: var(--success-soft); color: var(--success); }
.tx-icon.out { background: var(--brand-soft); color: var(--brand-dark); }
.tx-icon.fee { background: var(--gold-soft); color: #8a611f; }
.tx-icon .icon { width: 19px; height: 19px; }
.tx-copy { flex: 1; min-width: 0; }
.tx-title { font-size: 12.5px; font-weight: 650; }
.tx-note { font-size: 10px; color: var(--muted-2); margin-top: 1px; }
.tx-amount { text-align: right; }
.tx-amount b { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tx-amount b.in { color: var(--success); }
.tx-amount b.out { color: var(--ink); }
.tx-amount span { display: block; font-size: 9.5px; color: var(--muted-2); }

.withdraw-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.withdraw-row + .withdraw-row { border-top: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   服务商中心
   -------------------------------------------------------------------------- */
.merchant-status {
  border-radius: var(--radius-xl);
  padding: clamp(22px, 3.4vw, 32px);
  color: #fff;
  background:
    radial-gradient(500px 260px at 100% 0%, rgba(255, 190, 120, 0.35), transparent 60%),
    linear-gradient(125deg, #3a2a1c, #5c432b 60%, #7a5a38);
  box-shadow: var(--shadow-lg);
}
.merchant-status.is-active {
  background:
    radial-gradient(500px 260px at 100% 0%, rgba(85, 214, 169, 0.3), transparent 60%),
    linear-gradient(125deg, #1b3b32, #265b4b);
}
.merchant-status.is-rejected {
  background: linear-gradient(125deg, #4a2525, #6b3434);
}
.merchant-status h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 850; letter-spacing: -0.03em; }
.merchant-status p { color: rgba(255, 255, 255, 0.62); font-size: 12px; line-height: 1.7; margin-top: 6px; max-width: 560px; }
.merchant-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; }
.merchant-metric { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px; padding: 12px; }
.merchant-metric span { font-size: 10px; color: rgba(255, 255, 255, 0.55); }
.merchant-metric b { display: block; font-size: 20px; font-weight: 850; margin-top: 2px; letter-spacing: -0.03em; }

.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.benefit {
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.benefit .icon { color: var(--brand-dark); width: 21px; height: 21px; margin-bottom: 9px; }
.benefit b { display: block; font-size: 12.5px; }
.benefit span { display: block; font-size: 10.5px; color: var(--muted); line-height: 1.5; margin-top: 3px; }

.deposit-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
  border: 1px solid #eed9ab;
  font-size: 11.5px;
  line-height: 1.65;
  color: #6f4f17;
}
.deposit-box .icon { flex: none; width: 18px; height: 18px; }
.deposit-box b { font-weight: 800; }

/* --------------------------------------------------------------------------
   管理端 / 开发者端
   -------------------------------------------------------------------------- */
.console-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.console-title { font-size: clamp(24px, 3vw, 32px); font-weight: 850; letter-spacing: -0.035em; display: flex; align-items: center; gap: 9px; }
.console-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 5px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 18px;
  scrollbar-width: none;
}
.console-tabs::-webkit-scrollbar { display: none; }
.console-tab {
  border: 0;
  background: transparent;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.console-tab.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.console-tab .n {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  display: grid;
  place-items: center;
}
.console-tab.is-active .n { background: var(--brand); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: "";
  position: absolute;
  right: -12px;
  top: -12px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent, var(--brand-soft));
  opacity: 0.55;
}
.stat-card span { font-size: 10.5px; color: var(--muted); }
.stat-card b { font-size: 26px; font-weight: 850; letter-spacing: -0.04em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat-card small { font-size: 9.5px; color: var(--muted-2); }
.stat-card.brand { --accent: var(--brand-soft); }
.stat-card.teal { --accent: var(--teal-soft); }
.stat-card.gold { --accent: var(--gold-soft); }
.stat-card.danger { --accent: var(--danger-soft); }

.queue-list { display: grid; gap: 10px; }
.queue-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  display: grid;
  gap: 10px;
}
.queue-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.queue-title { font-size: 13.5px; font-weight: 750; min-width: 0; }
.queue-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.queue-body { font-size: 12px; color: var(--ink-2); line-height: 1.65; }
.queue-note {
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.queue-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.queue-id { font-size: 10px; color: var(--muted-2); font-variant-numeric: tabular-nums; }

.dev-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(120deg, #24211d, #3a3229);
  color: #fff;
  margin-bottom: 16px;
  font-size: 12px;
  line-height: 1.6;
}
.dev-banner .icon { color: #ffd76a; }
.dev-banner b { color: #ffd76a; }

.tab-loading { padding: 40px; text-align: center; color: var(--muted); font-size: 12px; }

/* --------------------------------------------------------------------------
   规则 / 通知 / 违规 / 封禁
   -------------------------------------------------------------------------- */
.rule-card {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow-sm);
}
.rule-version { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; color: var(--brand-dark); }
.rule-content {
  margin-top: 16px;
  font-size: 13px;
  line-height: 2;
  color: var(--ink-2);
  white-space: pre-wrap;
  word-break: break-word;
}
.rule-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }

.notice-list { display: grid; gap: 9px; }
.notice-card {
  display: flex;
  gap: 12px;
  padding: 15px 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.16s ease, background 0.16s ease;
}
.notice-card.unread { border-color: #f2c6b8; background: linear-gradient(120deg, #fff7f3, var(--surface)); }
.notice-card:hover { border-color: var(--line-strong); }
.notice-ico {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--ink-2);
  flex: none;
}
.notice-ico.brand { background: var(--brand-soft); color: var(--brand-dark); }
.notice-ico.teal { background: var(--teal-soft); color: var(--teal); }
.notice-ico.gold { background: var(--gold-soft); color: #8a611f; }
.notice-ico.danger { background: var(--danger-soft); color: var(--danger); }
.notice-copy { flex: 1; min-width: 0; }
.notice-title { font-size: 12.5px; font-weight: 750; }
.notice-text { font-size: 11.5px; color: var(--muted); line-height: 1.6; margin-top: 2px; white-space: pre-wrap; }
.notice-time { font-size: 9.5px; color: var(--muted-2); margin-top: 4px; }
.notice-swipe { align-self: flex-start; }

.violation-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px;
  border-radius: var(--radius-md);
  border: 1px solid #f2d2ce;
  background: linear-gradient(120deg, #fff7f6, var(--surface));
}
.violation-card .avatar { filter: grayscale(0.1); }
.violation-name { font-size: 13px; font-weight: 750; color: var(--danger); text-decoration: line-through; }
.violation-id { font-size: 10px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.violation-reason { font-size: 11.5px; color: var(--ink-2); line-height: 1.6; margin-top: 5px; }
.violation-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 7px; }

.ban-hero {
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 40px);
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(239, 91, 60, 0.28), transparent 60%),
    linear-gradient(130deg, #3a1616, #5a2020 55%, #712929);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.ban-hero h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 850; letter-spacing: -0.035em; }
.ban-hero p { color: rgba(255, 255, 255, 0.68); font-size: 12.5px; line-height: 1.8; margin-top: 8px; max-width: 560px; }
.ban-seal {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 900;
  color: #ffb1a0;
  margin-bottom: 16px;
  transform: rotate(-6deg);
}

/* --------------------------------------------------------------------------
   聊天大厅
   -------------------------------------------------------------------------- */
.hall-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(25, 20, 15, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: flex-end;
  animation: fade-in 0.2s ease both;
}
.hall-panel {
  width: min(430px, 100%);
  height: 100%;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(30, 22, 14, 0.2);
  animation: slide-left 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hall-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: calc(16px + env(safe-area-inset-top));
}
.hall-title { font-size: 16px; font-weight: 850; letter-spacing: -0.02em; }
.hall-sub { font-size: 10px; color: var(--muted); }
.hall-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background:
    radial-gradient(circle at 80% 10%, rgba(34, 107, 91, 0.05), transparent 40%),
    var(--surface-2);
}
.hall-msg { display: flex; gap: 8px; align-items: flex-start; max-width: 90%; }
.hall-msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.hall-msg-body { min-width: 0; }
.hall-msg-head { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.hall-msg-name { font-size: 10.5px; font-weight: 700; color: var(--muted); }
.hall-msg.mine .hall-msg-head { justify-content: flex-end; }
.hall-bubble {
  padding: 9px 12px;
  border-radius: 4px 14px 14px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.6;
  word-break: break-word;
}
.hall-msg.mine .hall-bubble { background: var(--teal); color: #fff; border-color: var(--teal); border-radius: 14px 4px 14px 14px; }
.hall-msg-time { font-size: 9px; color: var(--muted-2); margin-top: 3px; }
.hall-msg.mine .hall-msg-time { text-align: right; }
.hall-input {
  padding: 10px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  align-items: flex-end;
  background: var(--surface);
}
.hall-input textarea {
  flex: 1;
  min-height: 42px;
  max-height: 110px;
  resize: none;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 10px 12px;
  font-size: 12.5px;
  background: var(--surface-2);
}
.hall-input textarea:focus { outline: none; border-color: var(--teal); background: var(--surface); }
.hall-send {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  border: 0;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}

/* --------------------------------------------------------------------------
   弹窗 / 提示
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(28, 22, 16, 0.48);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.modal-overlay.is-open { opacity: 1; }
.modal {
  width: min(560px, 100%);
  max-height: min(88dvh, 900px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(0.985);
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.modal-overlay.is-open .modal { transform: translateY(0) scale(1); }
.modal-lg { width: min(760px, 100%); }
.modal-sm { width: min(430px, 100%); }
.modal-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.modal-head-copy { flex: 1; min-width: 0; }
.modal-title { font-size: 20px; font-weight: 850; letter-spacing: -0.03em; line-height: 1.25; }
.modal-sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.6; }
.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  display: grid;
  place-items: center;
  color: var(--muted);
  flex: none;
}
.modal-close:hover { background: var(--surface-3); color: var(--ink); }
.modal-body { font-size: 13px; }
.modal-actions { display: flex; gap: 9px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }
.modal-actions .btn { min-width: 96px; }
.modal-note { font-size: 11px; color: var(--muted); line-height: 1.65; margin-top: 10px; }

.toast-root {
  position: fixed;
  z-index: 400;
  left: 50%;
  top: calc(env(safe-area-inset-top) + 78px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  width: min(420px, calc(100% - 32px));
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.26s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  max-width: 100%;
}
.toast.is-out { animation: toast-out 0.2s ease both; }
.toast .icon { width: 17px; height: 17px; flex: none; }
.toast-success { background: #1f5d49; }
.toast-error { background: #7f2929; }
.toast-info { background: var(--ink); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(0.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-6px) scale(0.98); } }

/* 认证弹窗 */
.auth-modal { width: min(460px, 100%); padding: 0; overflow: hidden; }
.auth-top {
  padding: 26px 26px 18px;
  background:
    radial-gradient(300px 160px at 100% 0%, rgba(255, 153, 112, 0.45), transparent 65%),
    linear-gradient(135deg, #1f3933, #2a5a4b);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.auth-top::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 26px rgba(255, 255, 255, 0.04);
}
.auth-brand { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; color: rgba(255, 255, 255, 0.75); }
.auth-brand img { width: 28px; height: 28px; border-radius: 9px; }
.auth-title { font-size: 26px; font-weight: 850; letter-spacing: -0.035em; margin-top: 16px; line-height: 1.2; }
.auth-sub { font-size: 11.5px; color: rgba(255, 255, 255, 0.58); margin-top: 4px; }
.auth-body { padding: 22px 26px 26px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); margin-bottom: 18px; }
.auth-tab { border: 0; background: transparent; border-radius: 999px; min-height: 38px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.auth-tab.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.auth-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.auth-link { border: 0; background: transparent; color: var(--muted); font-size: 11px; padding: 3px; }
.auth-link:hover { color: var(--brand-dark); text-decoration: underline; }
.auth-alert {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
  color: #6f4f17;
  font-size: 11px;
  line-height: 1.6;
  margin-bottom: 14px;
}
.id-reveal {
  text-align: center;
  padding: 12px 0 4px;
}
.id-reveal .big-id {
  font-size: clamp(26px, 6vw, 36px);
  font-weight: 850;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  margin: 6px 0;
  word-break: break-all;
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .hero-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; transform: none; }
  .hero-panel-head { grid-column: 1 / -1; }
  .hero-big { margin-top: 0; }
  .hero-cat-list { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .hero-trust { grid-column: 1 / -1; margin-top: 0; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .split-layout { grid-template-columns: 1fr; }
  .side-stack { position: static; grid-template-columns: 1fr 1fr; }
  .order-detail-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .wallet-stats { grid-template-columns: repeat(2, 1fr); }
  .merchant-metrics { grid-template-columns: repeat(2, 1fr); }
  .feed-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .topbar-inner { padding: 10px 16px; gap: 10px; }
  .brand { min-width: 0; }
  .brand-text { min-width: 0; }
  .brand-logo { width: 36px; height: 36px; border-radius: 12px; }
  .brand-name { font-size: 17px; }
  .brand-sub { font-size: 8px; }
  .icon-btn { width: 38px; height: 38px; }
  .login-chip { height: 38px; padding: 0 14px; font-size: 12px; }
  .app-main { padding: 16px 16px calc(var(--tabbar-h) + 68px); }
  .notice-slot { padding: 0 16px; }
  .hero { border-radius: 26px; padding: 26px 22px; }
  .hero h1 { font-size: clamp(32px, 9vw, 42px); }
  .hero-panel { display: block; width: 100%; }
  .hero-cat-list { margin-top: 14px; grid-template-columns: 1fr; }
  .hero-cat { min-width: 0; }
  .hero-cat .price { max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero-stats { gap: 18px; margin-top: 24px; }
  .hero-stat b { font-size: 19px; }
  .invest-card { grid-template-columns: 1fr; padding: 24px 22px; gap: 20px; border-radius: 26px; }
  .invest-side { display: none; }
  .page-head { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 18px; }
  .page-head-actions { justify-content: flex-start; width: 100%; }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .cat-tile { padding: 14px 6px 12px; border-radius: 16px; gap: 7px; min-width: 0; }
  .cat-icon { width: 40px; height: 40px; border-radius: 13px; }
  .cat-name { font-size: 11px; }
  .section-head { margin-bottom: 12px; }
  .section-head > div { min-width: 0; }
  .section-title { overflow-wrap: anywhere; }
  .post-card { grid-template-columns: 88px minmax(0, 1fr); padding: 10px; gap: 11px; }
  .post-cover { min-height: 96px; border-radius: 13px; }
  .request-card { padding: 16px; }
  .order-card { padding: 16px; }
  .wallet-hero { border-radius: 26px; padding: 24px 22px; }
  .wallet-stats { grid-template-columns: 1fr 1fr; }
  .profile-hero { grid-template-columns: 1fr; border-radius: 26px; padding: 22px; }
  .profile-hero-actions { flex-direction: row; align-items: center; justify-content: flex-start; }
  .profile-stats { gap: 18px; }
  .side-stack { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr; }
  .form-row, .field-row { grid-template-columns: 1fr; }
  .page-title { font-size: 27px; }
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal {
    width: 100%;
    max-height: 92dvh;
    border-radius: 26px 26px 0 0;
    padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
    transform: translateY(100%);
  }
  .modal-overlay.is-open .modal { transform: translateY(0); }
  .auth-modal { border-radius: 26px 26px 0 0; }
  .auth-top { padding: 22px 20px 16px; }
  .auth-body { padding: 18px 20px 24px; }
  .toast-root { top: calc(env(safe-area-inset-top) + 68px); }
  .notice { flex-wrap: wrap; align-items: flex-start; }
  .notice > .icon { margin-top: 2px; }
  .notice > div { flex: 1 1 calc(100% - 36px); min-width: 0; }
  .notice .btn { margin-left: 30px; }
  .console-tabs { border-radius: 18px; }
  .queue-card { padding: 14px; }
  .stat-card b { font-size: 22px; }
  .wallet-mini { padding: 14px; }
  .wallet-mini-balance { font-size: 26px; }
  .wallet-mini-actions .btn { padding: 0 12px; min-height: 34px; font-size: 11.5px; }
  .profile-hero .avatar-xl { width: 68px; height: 68px; font-size: 24px; }
  .fab { right: 16px; bottom: calc(var(--tabbar-h) + 28px); }
  .hall-panel { width: 100%; }
  .order-detail-grid { gap: 12px; }
}

@media (max-width: 420px) {
  .top-actions { gap: 5px; }
  .icon-btn { width: 36px; height: 36px; }
  .brand-sub { display: none; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-actions .btn { flex: 1; }
  .wallet-actions .btn { flex: 1; }
  .tab-item { font-size: 10px; }
  .tab-item .icon { width: 19px; height: 19px; }
}

/* 动效 */
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-left { from { transform: translateX(30px); opacity: 0.6; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.site-footer {
  text-align: center;
  padding: 34px 16px 6px;
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.8;
  border-top: 1px solid var(--line);
}
.site-footer b { color: var(--muted); font-weight: 750; }

/* 收款二维码（只在收款时展示） */
.payment-qr-box {
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
  text-align: center;
}
.payment-qr-img {
  width: min(220px, 100%);
  max-height: 240px;
  margin: 0 auto;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #d8cdbf; border-radius: 10px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #c4b6a4; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }
