:root {
  --brand: #0f766e;
  --brand-2: #0d9488;
  --brand-deep: #0b3f3a;
  --brand-soft: #e6f5f2;
  --accent: #f59e0b;
  --accent-soft: #fef3c7;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e2e8f0;
  --line-soft: #eef2f7;
  --bg: #f6f8f8;
  --card: #ffffff;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --success: #059669;
  --success-soft: #ecfdf5;
  --info: #2563eb;
  --info-soft: #eff6ff;
  --warning: #d97706;
  --warning-soft: #fffbeb;
  --sidebar: #0b2422;
  --sidebar-2: #0e302c;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin: 0; }
button { cursor: pointer; }
::selection { background: var(--brand); color: white; }

.icon { flex: none; vertical-align: middle; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.bold { font-weight: 700; }
.nowrap { white-space: nowrap; }
.text-right { text-align: right; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.flex { display: flex; align-items: center; }
.between { display: flex; align-items: center; justify-content: space-between; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ============ 通用按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 10px; padding: 9px 16px;
  font-size: 13px; font-weight: 600; line-height: 1.2; transition: .18s ease;
  white-space: nowrap; user-select: none;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 22%, transparent); }
.btn-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--brand) 88%, black); transform: translateY(-1px); }
.btn-secondary { background: var(--brand-soft); color: var(--brand); border-color: color-mix(in srgb, var(--brand) 16%, transparent); }
.btn-secondary:hover { background: color-mix(in srgb, var(--brand) 16%, white); }
.btn-ghost { background: #fff; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted-2); background: #f8fafc; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-warning { background: var(--accent); color: #422006; }
.btn-sm { padding: 6px 11px; font-size: 12px; border-radius: 8px; }
.btn-lg { padding: 12px 22px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; color: var(--muted); display: inline-flex; align-items: center; justify-content: center;
  transition: .18s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--muted-2); background: #f8fafc; }
.link { color: var(--brand); font-weight: 600; cursor: pointer; }
.link:hover { text-decoration: underline; }
.link-muted { color: var(--muted); cursor: pointer; }
.link-muted:hover { color: var(--ink); }

/* ============ 布局 ============ */
.app-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: linear-gradient(165deg, var(--sidebar) 0%, var(--sidebar-2) 100%);
  color: #dbe7e4; display: flex; flex-direction: column; z-index: 40;
  scrollbar-width: thin; scrollbar-color: #26514b transparent;
}
.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-thumb { background: #26514b; border-radius: 5px; }
.brand-block { padding: 22px 18px 16px; display: flex; align-items: center; gap: 11px; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--brand-2), var(--brand));
  color: #fff; font-size: 20px; font-weight: 800; box-shadow: 0 6px 14px rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.2);
}
.brand-text { min-width: 0; }
.brand-text strong { display: block; font-size: 16px; letter-spacing: .3px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text span { display: block; font-size: 10px; color: #8fb6b0; letter-spacing: 1.2px; text-transform: uppercase; margin-top: 1px; }
.area-switch { margin: 0 12px 8px; padding: 3px; display: flex; gap: 3px; background: rgba(255,255,255,.06); border-radius: 9px; }
.area-switch a { flex: 1; text-align: center; padding: 6px 4px; font-size: 11px; border-radius: 7px; color: #a9c6c1; }
.area-switch a.active { background: rgba(255,255,255,.13); color: #fff; font-weight: 600; }
.side-nav { flex: 1; padding: 8px 10px 18px; }
.nav-group { margin-top: 14px; }
.nav-group-title { font-size: 10px; letter-spacing: 1.6px; color: #6f9993; padding: 0 10px 6px; font-weight: 600; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px;
  color: #b9d1cd; font-size: 13px; margin-bottom: 2px; transition: .16s; position: relative;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 55%, transparent), rgba(255,255,255,.04)); color: #fff; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.nav-item.active::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: #7ee0d3; }
.nav-item .icon { opacity: .9; }
.nav-badge { margin-left: auto; font-size: 10px; background: #f59e0b; color: #422006; border-radius: 8px; padding: 1px 6px; font-weight: 700; }
.sidebar-foot { padding: 12px; border-top: 1px solid rgba(255,255,255,.07); }
.side-user { display: flex; align-items: center; gap: 9px; padding: 6px; border-radius: 10px; }
.side-user:hover { background: rgba(255,255,255,.05); }
.side-user-info { min-width: 0; flex: 1; }
.side-user-info strong { display: block; font-size: 12px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user-info span { display: block; font-size: 10px; color: #86aba5; }

.main { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.topbar {
  height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 26px;
  background: rgba(255,255,255,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft);
  position: sticky; top: 0; z-index: 30;
}
.topbar h1 { font-size: 17px; font-weight: 700; letter-spacing: -.2px; }
.topbar-sub { font-size: 11px; color: var(--muted); margin-top: 1px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.top-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font-size: 11px; font-weight: 600; }
.menu-toggle { display: none; }
.top-avatar { display: flex; align-items: center; gap: 8px; padding: 3px 3px 3px 8px; border: 1px solid var(--line); border-radius: 99px; background: #fff; }
.top-avatar span { font-size: 12px; font-weight: 600; padding-right: 6px; }
.page { padding: 24px 26px 48px; max-width: 1480px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.page-head h2 { font-size: 24px; letter-spacing: -.6px; font-weight: 700; }
.page-head p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sidebar-overlay { display: none; }

/* ============ 卡片与网格 ============ */
.card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px 0; }
.card-head h3 { font-size: 15px; font-weight: 700; }
.card-head p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.card-actions { display: flex; gap: 7px; align-items: center; }
.card-body { padding: 18px 20px; }
.card-body.tight { padding: 12px 16px; }
.card-body.flush { padding: 0; }
.card-foot { padding: 12px 20px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center; }
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); }
.grid-main-3 { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stat-card {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.stat-card::after { content: ''; position: absolute; right: -30px; top: -40px; width: 100px; height: 100px; border-radius: 50%; background: var(--brand-soft); opacity: .55; }
.stat-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; }
.stat-icon { width: 30px; height: 30px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; position: relative; z-index: 1; }
.stat-value { font-size: 25px; font-weight: 750; letter-spacing: -.7px; margin: 9px 0 4px; position: relative; z-index: 1; }
.stat-foot { display: flex; gap: 7px; align-items: center; font-size: 11px; color: var(--muted); position: relative; z-index: 1; }
.trend-up { color: var(--success); background: var(--success-soft); padding: 1px 6px; border-radius: 5px; font-weight: 600; }
.tone-amber .stat-icon { background: var(--accent-soft); color: var(--warning); }
.tone-blue .stat-icon { background: var(--info-soft); color: var(--info); }
.tone-purple .stat-icon { background: #f5f3ff; color: #7c3aed; }
.tone-rose .stat-icon { background: #fff1f2; color: #e11d48; }
.tone-ink .stat-icon { background: #f1f5f9; color: var(--ink-2); }

/* ============ 表格 ============ */
.table-wrap { width: 100%; overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th {
  text-align: left; color: var(--muted); font-weight: 600; font-size: 11px; letter-spacing: .4px;
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fafcfc; white-space: nowrap;
}
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.data tbody tr:hover { background: #fbfdfd; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data .right { text-align: right; }
table.data .center { text-align: center; }
.table-actions { display: flex; gap: 5px; justify-content: flex-end; flex-wrap: wrap; }
.name-cell { display: flex; align-items: center; gap: 9px; min-width: 0; }
.name-cell strong { font-size: 13px; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.name-cell span { display: block; font-size: 11px; color: var(--muted); }
.avatar {
  width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--avatar, var(--brand)) 12%, white);
  color: var(--avatar, var(--brand)); display: inline-grid; place-items: center; font-weight: 700; font-size: 14px; flex: none;
  border: 1px solid color-mix(in srgb, var(--avatar, var(--brand)) 16%, white);
}
.avatar-sm { width: 26px; height: 26px; border-radius: 8px; font-size: 11px; }
.avatar-lg { width: 48px; height: 48px; border-radius: 13px; font-size: 19px; }
.table-empty { padding: 40px 20px; }

/* ============ 表单 ============ */
.form-grid { display: grid; gap: 15px; }
.form-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label { font-size: 12px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 4px; }
.field > label em { color: var(--danger); font-style: normal; }
.field .hint { font-size: 11px; color: var(--muted); line-height: 1.5; }
.field.full { grid-column: 1 / -1; }
input.input, select.input, textarea.input {
  width: 100%; border: 1px solid var(--line); border-radius: 9px; background: #fff;
  padding: 10px 12px; font-size: 13px; color: var(--ink); outline: none; transition: .16s;
  min-height: 40px;
}
textarea.input { min-height: 92px; resize: vertical; }
input.input:focus, select.input:focus, textarea.input:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 13%, transparent);
}
input.input::placeholder, textarea.input::placeholder { color: var(--muted-2); }
input.input:disabled, select.input:disabled { background: #f8fafc; color: var(--muted); cursor: not-allowed; }
.input-group { display: flex; align-items: stretch; }
.input-group input { border-radius: 9px 0 0 9px; }
.input-group .btn { border-radius: 0 9px 9px 0; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.check input { margin: 2px 0 0; accent-color: var(--brand); width: 15px; height: 15px; }
.radio-cards { display: grid; gap: 10px; }
.radio-card { border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; cursor: pointer; display: flex; gap: 10px; align-items: flex-start; transition: .16s; background: #fff; }
.radio-card:hover { border-color: var(--brand); }
.radio-card input { margin-top: 3px; accent-color: var(--brand); }
.radio-card strong { display: block; font-size: 13px; }
.radio-card span { color: var(--muted); font-size: 11px; }
.form-actions { display: flex; gap: 9px; justify-content: flex-end; padding-top: 4px; }
.form-note { padding: 12px 14px; background: #f8fafc; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: 12px; }
.filter-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.filter-bar .input { min-height: 34px; padding: 6px 10px; font-size: 12px; width: auto; }
.filter-bar .search { min-width: 220px; flex: 1; max-width: 320px; }
.search-wrap { position: relative; }
.search-wrap .icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted-2); }
.search-wrap input { padding-left: 32px; }

/* ============ 徽章/标签 ============ */
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; line-height: 1.7; white-space: nowrap; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-muted { background: #f1f5f9; color: var(--muted); }
.tag { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 5px; font-size: 10px; background: #f1f5f9; color: var(--muted); }
.tag-brand { background: var(--brand-soft); color: var(--brand); }
.tag-amber { background: var(--accent-soft); color: var(--warning); }
.tag-rose { background: #fff1f2; color: #e11d48; }
.tag-blue { background: var(--info-soft); color: var(--info); }

/* ============ 空状态/骨架 ============ */
.empty { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty-icon { width: 58px; height: 58px; border-radius: 20px; background: #f1f5f9; display: grid; place-items: center; margin: 0 auto 12px; color: var(--muted-2); }
.empty h4 { font-size: 14px; color: var(--ink-2); margin-bottom: 4px; }
.empty p { font-size: 12px; max-width: 320px; margin: 0 auto 14px; }
.skeleton-page { padding: 20px 0; }
.sk { background: linear-gradient(90deg, #eef2f7 25%, #f8fafc 50%, #eef2f7 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 8px; }
.sk-title { width: 220px; height: 28px; margin-bottom: 20px; }
.sk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.sk-card { height: 108px; border-radius: 14px; }
.sk-line { height: 14px; margin-bottom: 10px; }
.sk-line:nth-child(3) { width: 80%; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.spinner { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: spin .7s linear infinite; }
.spinner.sm { width: 13px; height: 13px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ 图表 ============ */
.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding: 10px 4px 0; }
.bar-chart.compact { height: 120px; gap: 6px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; min-width: 0; }
.bar-value { font-size: 10px; color: var(--muted); height: 16px; white-space: nowrap; }
.bar-track { width: 100%; max-width: 38px; flex: 1; display: flex; align-items: flex-end; background: #f8fafc; border-radius: 7px 7px 4px 4px; overflow: hidden; }
.bar-fill { width: 100%; background: linear-gradient(180deg, var(--brand-2), var(--brand)); border-radius: 7px 7px 4px 4px; min-height: 4px; transition: .4s; }
.bar-col:nth-child(even) .bar-fill { background: linear-gradient(180deg, #5eead4, var(--brand-2)); }
.bar-label { font-size: 10px; color: var(--muted); margin-top: 6px; white-space: nowrap; }
.donut-wrap { display: flex; align-items: center; gap: 22px; }
.donut { width: 138px; height: 138px; border-radius: 50%; position: relative; flex: none; }
.donut-hole { position: absolute; inset: 24px; background: #fff; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px var(--line-soft); }
.donut-hole strong { font-size: 19px; letter-spacing: -.4px; }
.donut-hole span { font-size: 10px; color: var(--muted); }
.donut-legend { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.donut-legend div { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.donut-legend i { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.donut-legend span { color: var(--muted); flex: 1; }
.donut-legend b { font-size: 12px; }
.progress { height: 7px; background: #eef2f7; border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.progress-amber { background: var(--accent) !important; }
.progress-blue { background: var(--info) !important; }
.progress-rose { background: #e11d48 !important; }

/* ============ 分账条 ============ */
.split-strip { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: #f1f5f9; }
.split-strip span { height: 100%; min-width: 2px; }
.split-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; margin-top: 14px; }
.split-legend div { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.split-legend i { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.split-legend span { color: var(--muted); flex: 1; }
.split-legend b { font-size: 12px; }

/* ============ 详情行 / 时间线 ============ */
.info-list { display: flex; flex-direction: column; }
.info-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line-soft); font-size: 12px; }
.info-row:last-child { border-bottom: 0; }
.info-row > span { color: var(--muted); flex: none; }
.info-row > b { font-weight: 600; text-align: right; word-break: break-all; }
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 5px; bottom: 5px; width: 1px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 15px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -19px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.timeline-item.active::before { background: var(--brand); }
.timeline-item strong { display: block; font-size: 12px; }
.timeline-item span { font-size: 11px; color: var(--muted); }

/* ============ 弹窗 ============ */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(7, 20, 19, .48); backdrop-filter: blur(3px);
  z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; transition: opacity .18s;
}
.modal-backdrop.show { opacity: 1; }
.modal {
  width: 100%; max-height: 88vh; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; transform: translateY(10px) scale(.98); transition: .2s;
}
.modal-backdrop.show .modal { transform: none; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 22px 0; }
.modal-head h3 { font-size: 17px; letter-spacing: -.3px; }
.modal-head p { font-size: 12px; color: var(--muted); margin-top: 3px; }
.modal-body { padding: 18px 22px; overflow-y: auto; }
.modal-foot { padding: 13px 22px; border-top: 1px solid var(--line-soft); display: flex; justify-content: flex-end; gap: 8px; }
.modal-foot .btn { min-width: 82px; }
.confirm-text { color: var(--ink-2); font-size: 13px; line-height: 1.7; }
.modal .form-grid { gap: 13px; }

/* ============ Toast ============ */
.toast-stack { position: fixed; right: 20px; bottom: 24px; z-index: 200; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 9px; background: #0f172a; color: #fff;
  border-radius: 11px; padding: 11px 15px; font-size: 12px; box-shadow: var(--shadow-lg);
  transform: translateY(8px); opacity: 0; transition: .2s; max-width: 360px;
}
.toast.show { transform: none; opacity: 1; }
.toast-success .icon { color: #6ee7b7; }
.toast-error { background: #7f1d1d; }
.toast-error .icon { color: #fecaca; }
.toast-info { background: #1e3a8a; }
.toast-info .icon { color: #bfdbfe; }

/* ============ Tabs / 筛选 ============ */
.tabs { display: flex; gap: 4px; padding: 4px; background: #f1f5f9; border-radius: 10px; width: fit-content; max-width: 100%; overflow-x: auto; }
.tab { border: 0; background: transparent; color: var(--muted); padding: 6px 12px; border-radius: 7px; font-size: 12px; white-space: nowrap; display: flex; align-items: center; gap: 5px; }
.tab.active { background: #fff; color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }
.tab em { font-style: normal; font-size: 10px; color: var(--muted); background: #f1f5f9; padding: 0 5px; border-radius: 99px; }
.pagination { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: 11px; color: var(--muted); border-top: 1px solid var(--line-soft); }
.pagination > div { display: flex; gap: 6px; }

/* ============ 登录 / 认证 ============ */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.08fr .92fr; background: #f7faf9; }
.auth-hero {
  position: relative; overflow: hidden; padding: 46px 56px; color: #fff;
  background: radial-gradient(1000px 600px at 15% 10%, #11786f 0%, #0b3f3a 45%, #082824 100%);
  display: flex; flex-direction: column;
}
.auth-hero::before { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); right: -100px; top: -100px; }
.auth-hero::after { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; border: 1px solid rgba(255,255,255,.06); right: 60px; bottom: -150px; }
.auth-brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.auth-brand .brand-logo { width: 44px; height: 44px; font-size: 22px; }
.auth-brand strong { font-size: 18px; display: block; }
.auth-brand span { font-size: 10px; color: #8fc0b9; letter-spacing: 2px; text-transform: uppercase; }
.auth-copy { margin: auto 0; position: relative; z-index: 1; max-width: 560px; padding: 40px 0; }
.auth-copy .eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); font-size: 11px; color: #b6ded8; margin-bottom: 20px; }
.auth-copy h1 { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.22; letter-spacing: -1.5px; font-weight: 750; }
.auth-copy h1 em { font-style: normal; color: #fbbf24; }
.auth-copy p { color: #a9cbc6; font-size: 14px; margin-top: 18px; line-height: 1.8; max-width: 460px; }
.auth-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 34px; }
.auth-feature { border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); border-radius: 12px; padding: 13px 14px; }
.auth-feature .icon { color: #5eead4; margin-bottom: 7px; }
.auth-feature strong { display: block; font-size: 12px; color: #e6f4f1; }
.auth-feature span { font-size: 10px; color: #86aba5; }
.auth-metrics { display: flex; gap: 34px; margin-top: 38px; position: relative; z-index: 1; }
.auth-metrics strong { font-size: 23px; display: block; letter-spacing: -.5px; }
.auth-metrics span { font-size: 10px; color: #86aba5; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 36px 28px; }
.auth-card { width: 100%; max-width: 430px; }
.auth-card h2 { font-size: 26px; letter-spacing: -.7px; }
.auth-card > p { color: var(--muted); font-size: 13px; margin: 6px 0 24px; }
.auth-card .field { margin-bottom: 14px; }
.auth-switch { text-align: center; margin-top: 16px; color: var(--muted); font-size: 12px; }
.auth-switch a { color: var(--brand); font-weight: 600; }
.auth-links { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 18px; font-size: 12px; }
.demo-box { margin-top: 26px; border: 1px dashed var(--line); border-radius: 12px; padding: 12px; background: #fbfdfd; }
.demo-box > span { font-size: 10px; color: var(--muted); letter-spacing: .5px; }
.demo-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.demo-chip { border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 5px 8px; font-size: 10px; color: var(--ink-2); }
.demo-chip:hover { border-color: var(--brand); color: var(--brand); }
.demo-chip b { display: block; font-size: 10px; font-weight: 600; }
.demo-chip span { color: var(--muted); font-size: 9px; }
.auth-side-note { margin-top: 16px; font-size: 11px; color: var(--muted); text-align: center; line-height: 1.6; }

/* ============ 公共站点 ============ */
.site { background: #f7faf9; min-height: 100vh; }
.site-nav { height: 68px; max-width: 1180px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 30px; }
.site-nav .brand-block { padding: 0; }
.site-nav .brand-text strong { color: var(--ink); }
.site-nav .brand-text span { color: var(--muted); }
.site-links { display: flex; gap: 24px; margin-left: 16px; }
.site-links a { font-size: 13px; color: var(--ink-2); }
.site-links a:hover { color: var(--brand); }
.site-actions { margin-left: auto; display: flex; gap: 8px; }
.hero { position: relative; overflow: hidden; padding: 74px 24px 60px; }
.hero::before { content: ''; position: absolute; width: 700px; height: 700px; background: radial-gradient(circle, rgba(13,148,136,.12), transparent 65%); top: -320px; right: -140px; }
.hero::after { content: ''; position: absolute; width: 500px; height: 500px; background: radial-gradient(circle, rgba(245,158,11,.09), transparent 65%); bottom: -300px; left: -140px; }
.hero-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 50px; position: relative; z-index: 1; }
.hero-copy .eyebrow { display: inline-flex; gap: 7px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 5px 11px; font-size: 11px; color: var(--brand); font-weight: 600; box-shadow: var(--shadow-sm); }
.hero-copy h1 { font-size: clamp(34px, 4.4vw, 58px); letter-spacing: -2.2px; line-height: 1.13; margin-top: 18px; font-weight: 780; }
.hero-copy h1 em { font-style: normal; color: var(--brand); position: relative; }
.hero-copy h1 em::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 9px; background: #fde68a; z-index: -1; border-radius: 3px; }
.hero-copy > p { font-size: 15px; color: var(--muted); margin-top: 18px; line-height: 1.85; max-width: 500px; }
.hero-cta { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.hero-proof { display: flex; gap: 28px; margin-top: 32px; }
.hero-proof div strong { font-size: 20px; display: block; }
.hero-proof div span { font-size: 10px; color: var(--muted); }
.hero-visual { position: relative; }
.hero-dash { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 18px; transform: rotate(1deg); }
.hero-dash-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.hero-dash-head strong { font-size: 12px; }
.hero-dash-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 14px; }
.hero-mini { border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px; background: #fbfdfd; }
.hero-mini span { font-size: 9px; color: var(--muted); }
.hero-mini strong { display: block; font-size: 17px; letter-spacing: -.4px; margin-top: 2px; }
.hero-mini small { font-size: 9px; color: var(--success); }
.hero-split { margin-top: 10px; padding: 10px; background: #f8fafc; border-radius: 10px; }
.hero-split .split-strip { height: 8px; }
.hero-float { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md); padding: 9px 12px; display: flex; gap: 8px; align-items: center; font-size: 11px; }
.hero-float .dot { width: 26px; height: 26px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.hero-float strong { display: block; font-size: 11px; }
.hero-float span { font-size: 9px; color: var(--muted); }
.hero-float.one { left: -32px; bottom: 40px; }
.hero-float.two { right: -22px; top: 36px; }
.site-section { max-width: 1180px; margin: 0 auto; padding: 58px 24px; }
.site-section-head { max-width: 620px; margin-bottom: 32px; }
.site-section-head .eyebrow { font-size: 10px; letter-spacing: 2px; color: var(--brand); font-weight: 700; text-transform: uppercase; }
.site-section-head h2 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -1px; margin-top: 8px; }
.site-section-head p { color: var(--muted); margin-top: 9px; line-height: 1.8; font-size: 14px; }
.module-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.module-card { background: #fff; border: 1px solid var(--line-soft); border-radius: 13px; padding: 16px; transition: .2s; }
.module-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand) 25%, white); }
.module-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 10px; }
.module-card strong { font-size: 13px; display: block; }
.module-card p { font-size: 10px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.split-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: #fff; border: 1px solid var(--line-soft); border-radius: 22px; padding: 34px; box-shadow: var(--shadow-sm); }
.split-panel h2 { font-size: 28px; letter-spacing: -1px; }
.split-panel p { color: var(--muted); line-height: 1.8; margin-top: 10px; font-size: 13px; }
.split-example { background: #f8fafc; border-radius: 14px; padding: 18px; }
.split-example .split-strip { height: 14px; }
.split-example-row { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 14px; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; position: relative; }
.plan-card.hot { border-color: var(--brand); box-shadow: 0 14px 40px color-mix(in srgb, var(--brand) 12%, transparent); transform: translateY(-4px); }
.plan-card .hot-tag { position: absolute; top: -10px; right: 18px; background: var(--accent); color: #422006; font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.plan-card h3 { font-size: 16px; }
.plan-card .price { font-size: 32px; font-weight: 750; letter-spacing: -1.2px; margin: 10px 0 3px; }
.plan-card .price small { font-size: 12px; font-weight: 500; color: var(--muted); }
.plan-card ul { list-style: none; padding: 16px 0 0; margin: 16px 0 0; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 8px; }
.plan-card li { font-size: 12px; color: var(--ink-2); display: flex; gap: 7px; align-items: flex-start; }
.plan-card li .icon { color: var(--success); margin-top: 1px; }
.site-cta { max-width: 1180px; margin: 20px auto 50px; padding: 0 24px; }
.site-cta-inner { background: radial-gradient(800px 300px at 20% 20%, #11786f, #0b3f3a); border-radius: 22px; padding: 44px; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.site-cta-inner h2 { font-size: 30px; letter-spacing: -1px; }
.site-cta-inner p { color: #a9cbc6; margin-top: 6px; font-size: 13px; }
.site-footer { border-top: 1px solid var(--line); padding: 26px 24px; text-align: center; font-size: 11px; color: var(--muted); }
.public-brand-bar { background: color-mix(in srgb, var(--brand) 7%, white); border-bottom: 1px solid color-mix(in srgb, var(--brand) 12%, white); padding: 8px 24px; text-align: center; font-size: 11px; color: var(--brand); }

/* ============ 申请 / 支付 ============ */
.apply-page { min-height: 100vh; background: #f7faf9; }
.apply-wrap { max-width: 920px; margin: 0 auto; padding: 30px 22px 60px; }
.apply-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.apply-card { background: #fff; border: 1px solid var(--line-soft); border-radius: 20px; box-shadow: var(--shadow-sm); overflow: hidden; }
.apply-banner { padding: 26px 30px; background: linear-gradient(120deg, #0b3f3a, #11786f); color: #fff; }
.apply-banner h1 { font-size: 26px; letter-spacing: -.7px; }
.apply-banner p { color: #a9cbc6; margin-top: 5px; font-size: 12px; }
.apply-body { padding: 26px 30px 30px; }
.apply-steps { display: flex; gap: 2px; margin-bottom: 24px; }
.apply-step { flex: 1; text-align: center; font-size: 10px; color: var(--muted); padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.apply-step.active { color: var(--brand); border-color: var(--brand); font-weight: 600; }
.plan-select { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plan-option { border: 1px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; background: #fff; position: relative; transition: .16s; }
.plan-option:hover { border-color: var(--brand); }
.plan-option.selected { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.plan-option strong { display: block; font-size: 13px; }
.plan-option .p { font-size: 20px; font-weight: 750; margin: 4px 0 2px; letter-spacing: -.5px; }
.plan-option span { font-size: 10px; color: var(--muted); }
.pay-page { min-height: 100vh; background: #f6f8f8; padding: 30px 20px; display: flex; align-items: flex-start; justify-content: center; }
.pay-card { width: 100%; max-width: 470px; background: #fff; border: 1px solid var(--line-soft); border-radius: 20px; box-shadow: var(--shadow-md); overflow: hidden; }
.pay-head { padding: 20px 24px; border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center; }
.pay-head strong { font-size: 14px; }
.pay-body { padding: 26px 24px; }
.pay-amount { text-align: center; padding: 8px 0 24px; }
.pay-amount span { font-size: 11px; color: var(--muted); }
.pay-amount strong { display: block; font-size: 40px; letter-spacing: -1.8px; margin-top: 6px; }
.pay-biz { background: #f8fafc; border-radius: 11px; padding: 13px 15px; margin-bottom: 20px; }
.pay-method { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; margin-bottom: 9px; cursor: pointer; }
.pay-method.selected { border-color: var(--brand); background: var(--brand-soft); }
.pay-method .pay-logo { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: #ecfdf5; color: #059669; }
.pay-method .pay-logo.alipay { background: #eff6ff; color: #2563eb; }
.pay-method strong { display: block; font-size: 12px; }
.pay-method span { font-size: 10px; color: var(--muted); }
.pay-method input { margin-left: auto; accent-color: var(--brand); }
.pay-note { font-size: 10px; color: var(--muted); text-align: center; margin-top: 14px; line-height: 1.7; }
.pay-success { text-align: center; padding: 14px 0; }
.pay-success .check-circle { width: 64px; height: 64px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; margin: 0 auto 14px; }
.pay-success h3 { font-size: 18px; }
.pay-success p { color: var(--muted); font-size: 12px; margin-top: 4px; }

/* ============ 代理/平台特殊 ============ */
.hero-band { background: linear-gradient(120deg, #0b3f3a, #0f766e 70%, #0d9488); border-radius: 18px; padding: 24px 26px; color: #fff; position: relative; overflow: hidden; }
.hero-band::after { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); right: -80px; top: -120px; }
.hero-band h2 { font-size: 22px; letter-spacing: -.5px; }
.hero-band p { color: #b6d9d4; font-size: 12px; margin-top: 5px; max-width: 560px; }
.hero-band .hero-band-actions { margin-top: 18px; display: flex; gap: 8px; position: relative; z-index: 1; }
.hero-band .btn-ghost { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: #fff; }
.hero-band .btn-ghost:hover { background: rgba(255,255,255,.16); }
.hero-band .btn-primary { background: #fff; color: var(--brand-deep); box-shadow: none; }
.hero-band-stats { display: flex; gap: 32px; margin-top: 22px; position: relative; z-index: 1; }
.hero-band-stats strong { display: block; font-size: 20px; letter-spacing: -.5px; }
.hero-band-stats span { font-size: 10px; color: #a9cbc6; }
.onboarding-banner { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 13px; background: var(--warning-soft); border: 1px solid #fde68a; color: #78350f; margin-bottom: 18px; }
.onboarding-banner .icon { margin-top: 2px; }
.onboarding-banner strong { font-size: 13px; display: block; }
.onboarding-banner p { font-size: 12px; margin-top: 2px; color: #92400e; }
.onboarding-banner .btn { margin-left: auto; flex: none; }
.module-mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.module-mini { border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px; display: flex; gap: 8px; align-items: center; background: #fff; }
.module-mini .mi { width: 30px; height: 30px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.module-mini strong { display: block; font-size: 11px; }
.module-mini span { font-size: 9px; color: var(--muted); }
.module-mini.disabled { opacity: .5; }
.brand-preview { border-radius: 16px; padding: 22px; color: #fff; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, black)); }
.brand-preview .bp-logo { width: 46px; height: 46px; border-radius: 13px; background: rgba(255,255,255,.16); display: grid; place-items: center; font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.brand-preview h3 { font-size: 21px; }
.brand-preview p { color: rgba(255,255,255,.7); font-size: 11px; margin-top: 3px; }
.brand-preview .bp-phone { margin-top: 18px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 10px 12px; font-size: 11px; }
.qr-box { width: 150px; height: 150px; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 8px; margin: 0 auto; }
.qr-grid { width: 100%; height: 100%; background-image: linear-gradient(45deg, #0f172a 25%, transparent 25%), linear-gradient(-45deg, #0f172a 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #0f172a 75%), linear-gradient(-45deg, transparent 75%, #0f172a 75%); background-size: 12px 12px; background-position: 0 0, 0 6px, 6px -6px, -6px 0; }
.status-steps { display: flex; flex-direction: column; gap: 0; }
.status-step { display: flex; gap: 12px; padding-bottom: 18px; position: relative; }
.status-step:not(:last-child)::before { content: ''; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.status-step.done:not(:last-child)::before { background: var(--brand); }
.status-step .dot { width: 24px; height: 24px; border-radius: 50%; background: #f1f5f9; color: var(--muted); display: grid; place-items: center; font-size: 10px; flex: none; z-index: 1; }
.status-step.done .dot { background: var(--brand); color: #fff; }
.status-step strong { font-size: 12px; display: block; }
.status-step span { font-size: 10px; color: var(--muted); }

/* ============ 业主端 ============ */
.owner-hero { background: radial-gradient(700px 300px at 15% 0%, color-mix(in srgb, var(--brand) 85%, white), var(--brand-deep)); border-radius: 20px; padding: 24px; color: #fff; position: relative; overflow: hidden; }
.owner-hero::after { content: ''; position: absolute; width: 240px; height: 240px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); right: -60px; top: -80px; }
.owner-hero-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 1; }
.owner-hero h2 { font-size: 23px; letter-spacing: -.5px; }
.owner-hero p { color: rgba(255,255,255,.72); font-size: 11px; margin-top: 4px; }
.owner-credit-card { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); border-radius: 13px; padding: 14px 16px; margin-top: 20px; backdrop-filter: blur(8px); position: relative; z-index: 1; }
.owner-credit-card span { font-size: 10px; color: rgba(255,255,255,.7); }
.owner-credit-card strong { display: block; font-size: 30px; letter-spacing: -1px; margin: 2px 0; }
.owner-credit-card small { font-size: 10px; color: #a7f3d0; }
.owner-house { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; background: rgba(255,255,255,.13); font-size: 10px; color: #e6f4f1; }
.quick-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.quick-item { background: #fff; border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px 8px; text-align: center; transition: .16s; }
.quick-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: color-mix(in srgb, var(--brand) 25%, white); }
.quick-item .qi { width: 37px; height: 37px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin: 0 auto 7px; }
.quick-item strong { font-size: 11px; }
.quick-item span { display: block; font-size: 9px; color: var(--muted); margin-top: 1px; }
.product-card { background: #fff; border: 1px solid var(--line-soft); border-radius: 13px; overflow: hidden; transition: .18s; }
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-img { height: 120px; background: linear-gradient(135deg, var(--brand-soft), #f8fafc); display: grid; place-items: center; color: var(--brand); font-size: 20px; font-weight: 700; position: relative; }
.product-img span { position: absolute; left: 9px; top: 9px; }
.product-info { padding: 10px 11px 12px; }
.product-info strong { font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-info p { font-size: 10px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-price { display: flex; align-items: baseline; gap: 5px; margin-top: 7px; }
.product-price b { color: #dc2626; font-size: 16px; letter-spacing: -.3px; }
.product-price s { font-size: 10px; color: var(--muted-2); }
.product-price .fund { margin-left: auto; font-size: 9px; color: var(--brand); background: var(--brand-soft); padding: 1px 5px; border-radius: 4px; }
.order-card { background: #fff; border: 1px solid var(--line-soft); border-radius: 13px; padding: 14px 15px; }
.order-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.order-card-head strong { font-size: 12px; }
.order-card-items { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; margin-top: 9px; border-top: 1px dashed var(--line-soft); border-bottom: 1px dashed var(--line-soft); }
.order-card-items .oi { display: flex; gap: 8px; align-items: center; }
.order-card-items .oi-img { width: 38px; height: 38px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.order-card-items strong { font-size: 11px; display: block; }
.order-card-items span { font-size: 9px; color: var(--muted); }
.order-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.bill-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--line-soft); border-radius: 12px; }
.bill-icon { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--warning); display: grid; place-items: center; flex: none; }
.bill-card strong { font-size: 13px; display: block; }
.bill-card span { font-size: 10px; color: var(--muted); }
.bill-amount { margin-left: auto; text-align: right; }
.bill-amount b { display: block; font-size: 15px; }
.bill-amount span { font-size: 9px; }
.house-card { background: #fff; border: 1px solid var(--line-soft); border-radius: 13px; padding: 16px; }
.house-card .hc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.house-card h4 { font-size: 15px; }
.house-card p { font-size: 11px; color: var(--muted); margin-top: 3px; }
.house-card .hc-stats { display: flex; gap: 22px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-soft); }
.house-card .hc-stats strong { display: block; font-size: 15px; }
.house-card .hc-stats span { font-size: 9px; color: var(--muted); }
.announce-item { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--line-soft); }
.announce-item:last-child { border-bottom: 0; padding-bottom: 0; }
.announce-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); margin-top: 6px; flex: none; }
.announce-item strong { font-size: 12px; display: block; }
.announce-item p { font-size: 10px; color: var(--muted); margin-top: 2px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============ 官网/品牌空间顶部切换 ============ */
.brand-space-bar { background: var(--brand); color: #fff; text-align: center; padding: 6px 14px; font-size: 11px; }
.brand-space-bar a { text-decoration: underline; opacity: .9; }

/* ============ 响应式 ============ */
@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-grid { grid-template-columns: repeat(3, 1fr); }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { gap: 24px; }
  .hero-float.one { left: -10px; }
  .hero-float.two { right: -8px; }
}
@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 264px; transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .sidebar-overlay { display: block; position: fixed; inset: 0; background: rgba(7,20,19,.4); z-index: 39; opacity: 0; pointer-events: none; transition: .2s; }
  .sidebar-overlay.show { opacity: 1; pointer-events: auto; }
  .menu-toggle { display: inline-flex; }
  .topbar { padding: 0 16px; height: 58px; }
  .page { padding: 18px 16px 40px; }
  .page-head h2 { font-size: 21px; }
  .grid-main, .grid-main-3 { grid-template-columns: 1fr; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .auth-panel { min-height: 100vh; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero { padding-top: 42px; }
  .split-panel { grid-template-columns: 1fr; padding: 24px; gap: 20px; }
  .site-links { display: none; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card.hot { transform: none; }
  .site-cta-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 720px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-grid.cols-2, .form-grid.cols-3 { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .topbar h1 { font-size: 15px; }
  .top-chip { display: none; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .stat-value { font-size: 21px; }
  .split-legend { grid-template-columns: 1fr; }
  .module-mini-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-select { grid-template-columns: 1fr; }
  .apply-body, .apply-banner { padding: 20px; }
  .auth-panel { padding: 24px 18px; }
  .owner-hero { padding: 20px; }
  .hero-proof { gap: 18px; flex-wrap: wrap; }
  .site-section { padding: 40px 18px; }
  .hero { padding: 34px 18px 40px; }
  .hero-copy h1 { font-size: 34px; letter-spacing: -1.4px; }
  .site-nav { gap: 10px; padding: 0 16px; }
  .site-actions .btn-ghost { display: none; }
  .toast-stack { left: 14px; right: 14px; bottom: 14px; }
  .toast { max-width: none; }
  .donut-wrap { flex-direction: column; align-items: flex-start; }
  .bar-chart { gap: 5px; }
  .modal { max-height: 92vh; }
  .modal-head, .modal-body, .modal-foot { padding-left: 16px; padding-right: 16px; }
}

@media print {
  .sidebar, .topbar, .page-actions, .btn { display: none !important; }
  .app-shell { display: block; }
  .page { padding: 0; }
}


/* product grid */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.product-grid.compact { gap: 10px; }
@media (max-width: 1180px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; } }

/* mobile auth fixes */
body { overflow-x: hidden; }
.auth-panel { min-width: 0; width: 100%; }
.auth-card { min-width: 0; }
@media (max-width: 720px) {
  .auth-links { flex-wrap: wrap; gap: 8px; }
  .demo-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-chip { min-width: 0; }
  .auth-card { width: 100%; }
  .site-nav { height: auto; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
  .site-actions { margin-left: auto; }
}

@media (max-width: 720px) {
  .auth-panel { padding: 28px 16px; justify-content: flex-start; align-items: flex-start; }
  .auth-card { width: calc(100vw - 32px); max-width: calc(100vw - 32px); }
  .auth-card .input { max-width: 100%; }
  .auth-links { font-size: 11px; }
  .auth-links .link { white-space: normal; }
}

/* 业主端装修底部导航 */
.owner-bottom-nav { display: none; }
@media (max-width: 980px) {
  .owner-bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
    justify-content: space-around; box-shadow: 0 -8px 24px rgba(15,23,42,.06);
  }
  .owner-bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 9px; color: var(--muted); padding: 3px 0; }
  .owner-bottom-nav a.active { color: var(--brand); font-weight: 600; }
  .area-owner .page { padding-bottom: 92px; }
}
