@import url('fonts.css');

/* ============ 设计令牌（方案A：深色侧栏企业级 SaaS 风） ============ */
:root {
  --primary: #2563EB;
  --primary-light: #EFF6FF;
  --primary-dark: #1D4ED8;
  --cyan: #22D3EE;
  --ink: #0F172A;
  --warning: #F59E0B;
  --warning-light: #FFFBEB;
  --success: #10B981;
  --success-light: #ECFDF5;
  --danger: #EF4444;
  --danger-light: #FEF2F2;
  --text-1: #0F172A;
  --text-2: #475569;
  --text-3: #94A3B8;
  --bg-page: #F3F5F9;
  --bg-card: #FFFFFF;
  --border: #E2E8F0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(15,23,42,.05), 0 8px 24px rgba(15,23,42,.05);
  --shadow-lg: 0 12px 40px rgba(15,23,42,.12);
  --side-w: 240px;
  --top-h: 64px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg-page); color: var(--text-1); font-size: 14px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
::selection { background: rgba(37,99,235,.18); }

/* ===== 登录页 ===== */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: #0A1220;
  background-image:
    radial-gradient(720px 420px at 18% -10%, rgba(37,99,235,.35), transparent 60%),
    radial-gradient(640px 400px at 90% 110%, rgba(34,211,238,.18), transparent 60%),
    linear-gradient(rgba(148,163,184,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.05) 1px, transparent 1px);
  background-size: auto, auto, 32px 32px, 32px 32px;
  padding: 20px;
}
.login-box {
  background: #fff; border-radius: 20px; padding: 44px 40px 36px;
  width: 420px; max-width: 100%;
  box-shadow: 0 24px 64px rgba(2,6,23,.55);
}
.login-box .logo-area { text-align: center; margin-bottom: 28px; }
.login-box .logo-area::before {
  content: 'OPC'; display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin: 0 auto 14px;
  background: linear-gradient(135deg, #2563EB 0%, #22D3EE 100%);
  color: #fff; font-weight: 800; font-size: 17px; letter-spacing: .02em;
  border-radius: 15px; box-shadow: 0 8px 20px rgba(37,99,235,.35);
}
.login-box .logo-area .title { font-size: 20px; font-weight: 700; color: var(--ink); }
.login-box .logo-area .sub { font-size: 13px; color: var(--text-3); margin-top: 6px; }
.login-box .form-item { margin-bottom: 16px; }
.login-box .form-item label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.login-box .form-item input {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px; outline: none; transition: all .15s;
  background: #F8FAFC;
}
.login-box .form-item input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.login-box .btn-login {
  width: 100%; padding: 12px; background: var(--primary); color: #fff;
  border: none; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all .15s; margin-top: 8px;
  box-shadow: 0 6px 16px rgba(37,99,235,.3);
}
.login-box .btn-login:hover { background: var(--primary-dark); }
.login-box .tip {
  margin-top: 20px; padding: 12px 14px; background: var(--primary-light);
  border-radius: var(--radius-sm); font-size: 12px; color: var(--primary-dark); line-height: 1.8;
}
.login-error { color: var(--danger); font-size: 13px; margin-top: 8px; display: none; }

/* ===== 管理后台：顶栏 ===== */
.admin-topbar {
  position: fixed; top: 0; left: var(--side-w); right: 0; height: var(--top-h);
  background: rgba(255,255,255,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); z-index: 900;
  display: flex; align-items: center; gap: 14px; padding: 0 28px;
}
.at-hamburger {
  display: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
  background: #fff; color: var(--text-2); font-size: 16px; cursor: pointer;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.at-titles { min-width: 0; }
.at-title { font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: .01em; line-height: 1.3; }
.at-sub { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.at-search {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  width: 230px; padding: 8px 12px; background: #F1F5F9; border: 1px solid transparent;
  border-radius: 10px; color: var(--text-3); font-size: 13px; cursor: text; transition: all .15s;
}
.at-search:hover { border-color: var(--border); background: #fff; }
.at-search svg { flex-shrink: 0; }
.at-search .key {
  margin-left: auto; font-size: 11px; color: var(--text-3);
  border: 1px solid var(--border); border-radius: 5px; padding: 0 5px; background: #fff;
}
.at-bell {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; color: var(--text-2);
  cursor: pointer; transition: background .15s;
}
.at-bell:hover { background: #F1F5F9; }
.at-bell .dot {
  position: absolute; top: 7px; right: 8px; width: 8px; height: 8px;
  background: var(--danger); border-radius: 50%; border: 2px solid #fff;
}
.at-user { position: relative; display: flex; align-items: center; gap: 10px; padding-left: 12px; border-left: 1px solid var(--border); cursor: pointer; }
.at-avatar {
  width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(135deg, #2563EB, #22D3EE);
  color: #fff; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.at-user-info { line-height: 1.3; }
.at-user-info .name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.at-user-info .role { font-size: 11.5px; color: var(--text-3); }
.at-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 160px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 6px; display: none;
}
.at-user:hover .at-dropdown { display: block; }
.at-dropdown a {
  display: flex; align-items: center; gap: 9px; padding: 9px 12px;
  border-radius: 8px; font-size: 13px; color: var(--text-2); transition: all .12s;
}
.at-dropdown a:hover { background: var(--primary-light); color: var(--primary); }
.at-dropdown a.danger:hover { background: var(--danger-light); color: var(--danger); }
.at-dropdown .sep { height: 1px; background: var(--border); margin: 4px 8px; }

/* ===== 管理后台：深色侧栏 ===== */
.admin-layout { display: flex; padding-top: var(--top-h); min-height: 100vh; }
.admin-sidebar {
  width: var(--side-w); background: linear-gradient(180deg, #0B162A 0%, #0A1220 100%);
  position: fixed; top: 0; bottom: 0; left: 0; overflow-y: auto; z-index: 1000;
  display: flex; flex-direction: column;
}
.admin-sidebar::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(148,163,184,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.055) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 60%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 60%);
}
.admin-sidebar > * { position: relative; z-index: 1; }
.admin-sidebar::-webkit-scrollbar { width: 4px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(148,163,184,.25); border-radius: 4px; }

.side-logo { display: flex; align-items: center; gap: 11px; padding: 20px 20px 16px; }
.logo-mark {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px;
  background: linear-gradient(135deg, #2563EB 0%, #22D3EE 100%);
  color: #fff; font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(37,99,235,.4);
}
.logo-text { color: #F1F5F9; font-size: 14.5px; font-weight: 800; letter-spacing: .01em; line-height: 1.35; }
.logo-sub { font-size: 10.5px; color: #64748B; letter-spacing: .06em; }

.side-nav { flex: 1; overflow-y: auto; min-height: 0; padding: 2px 0 8px; }
.side-nav::-webkit-scrollbar { width: 4px; }
.side-nav::-webkit-scrollbar-thumb { background: rgba(148,163,184,.25); border-radius: 4px; }
.side-section { padding: 0 12px; }
.side-section-title {
  font-size: 10.5px; color: #526079; letter-spacing: .14em;
  padding: 16px 10px 7px; text-transform: uppercase;
}
.side-link {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; border-radius: 10px; margin-bottom: 2px;
  color: #94A3B8; font-size: 13.5px; transition: all .15s; cursor: pointer;
}
.side-link:hover { background: rgba(255,255,255,.06); color: #E2E8F0; }
.side-link.active {
  background: linear-gradient(90deg, rgba(37,99,235,.30), rgba(34,211,238,.10));
  color: #fff; font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(96,165,250,.30);
}
.side-link.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #60A5FA, #22D3EE);
}
.side-icon { width: 18px; height: 18px; flex-shrink: 0; opacity: .85; }
.side-link.active .side-icon { opacity: 1; color: #60A5FA; }
.side-badge {
  margin-left: auto; background: var(--danger); color: #fff;
  font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(239,68,68,.22);
}
.side-cta {
  flex-shrink: 0; margin: 10px 12px 0; padding: 15px 14px; border-radius: 14px;
  background: linear-gradient(135deg, #1E40AF 0%, #1D4ED8 60%, #0EA5E9 100%);
  position: relative; overflow: hidden;
}
.side-cta::before {
  content: ''; position: absolute; right: -24px; top: -24px; width: 88px; height: 88px;
  border-radius: 50%; background: rgba(255,255,255,.09);
}
.side-cta::after {
  content: ''; position: absolute; right: 14px; bottom: -30px; width: 64px; height: 64px;
  border-radius: 50%; background: rgba(34,211,238,.16);
}
.side-cta .cta-title { color: #fff; font-size: 13px; font-weight: 700; position: relative; z-index: 1; }
.side-cta .cta-sub { color: rgba(255,255,255,.65); font-size: 11.5px; margin: 3px 0 10px; position: relative; z-index: 1; }
.side-cta .cta-btn {
  display: inline-block; background: #fff; color: #1D4ED8; font-size: 12px; font-weight: 700;
  padding: 5px 13px; border-radius: 8px; position: relative; z-index: 1; transition: transform .15s;
}
.side-cta .cta-btn:hover { transform: translateY(-1px); }
.side-status {
  flex-shrink: 0; margin: auto 12px 14px; padding: 11px 13px; display: flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 12px;
}
.side-status .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #34D399; flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(52,211,153,.18);
  animation: side-pulse 2s ease-out infinite;
}
@keyframes side-pulse {
  0% { box-shadow: 0 0 0 0 rgba(52,211,153,.35); }
  70% { box-shadow: 0 0 0 7px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}
.side-status .text { font-size: 12px; color: #94A3B8; white-space: nowrap; }
.side-status .ver { margin-left: auto; font-size: 10.5px; color: #526079; }
.side-scrim { display: none; position: fixed; inset: 0; background: rgba(2,6,23,.55); z-index: 990; }
.side-scrim.show { display: block; }

/* ===== 管理后台：主区 ===== */
.admin-main { flex: 1; margin-left: var(--side-w); padding: 28px; min-width: 0; }
.page-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; color: var(--ink); }

/* ===== 卡片 ===== */
.card {
  background: var(--bg-card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px; margin-bottom: 16px;
}
.card-title { font-size: 15.5px; font-weight: 700; margin-bottom: 16px; color: var(--ink); }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.card-head .card-title { margin-bottom: 0; }
.card-head .card-sub { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }

/* ===== 配置标签页 ===== */
.config-tabs { display: flex; flex-wrap: wrap; gap: 4px; background: #fff; border-radius: 12px; padding: 5px; box-shadow: var(--shadow); margin-bottom: 20px; border: 1px solid var(--border); position: sticky; top: var(--top-h); z-index: 20; }
.config-tab {
  background: none; border: none; padding: 9px 18px; font-size: 13.5px;
  color: var(--text-2); cursor: pointer; border-radius: 9px; transition: all .15s;
}
.config-tab:hover { color: var(--primary); background: var(--primary-light); }
.config-tab.active { color: #fff; background: var(--primary); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-form { margin-top: 4px; }

/* ===== 二维码配置上传区 ===== */
.qrcode-uploader {
  border: 2px dashed var(--border); border-radius: var(--radius-sm);
  padding: 14px 20px; text-align: center; cursor: pointer;
  color: var(--text-3); font-size: 13px; background: #F8FAFC; transition: all .2s;
}
.qrcode-uploader:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.qrcode-preview { margin-top: 10px; min-height: 150px; display: flex; align-items: center; justify-content: center; }
.qrcode-preview img { width: 150px; height: 150px; object-fit: contain; border-radius: 10px; border: 1px solid var(--border); background: #fff; padding: 4px; }

/* ===== 统计卡片 ===== */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card {
  background: #fff; border-radius: var(--radius); padding: 20px 22px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
  border: 1px solid rgba(226,232,240,.6);
}
.stat-card .s-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.s-icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.stat-card .s-icon.blue { background: var(--primary-light); color: var(--primary); }
.stat-card .s-icon.cyan { background: #ECFEFF; color: #0891B2; }
.stat-card .s-icon.amber { background: var(--warning-light); color: var(--warning); }
.stat-card .s-icon.emerald { background: var(--success-light); color: var(--success); }
.stat-card .s-icon.rose { background: var(--danger-light); color: var(--danger); }
.stat-card .s-num {
  font-size: 30px; font-weight: 800; letter-spacing: -.02em;
  color: var(--ink); line-height: 1.15; margin-top: 12px;
  font-variant-numeric: tabular-nums;
}
.stat-card .s-label { font-size: 13px; color: var(--text-2); margin-top: 2px; font-weight: 500; }
.stat-card .s-sub { font-size: 12px; color: var(--text-3); margin-top: 7px; display: flex; align-items: center; gap: 5px; }
.s-sub .up { color: var(--success); font-weight: 700; }
.s-sub .down { color: var(--danger); font-weight: 700; }
.stat-card .s-spark { position: absolute; right: 14px; bottom: 14px; opacity: .9; }
.stat-card .mini-badge {
  position: absolute; top: 16px; right: 16px; font-size: 11px; font-weight: 700;
  padding: 2px 9px; border-radius: 999px;
}
.stat-card .mini-badge.warn { background: var(--danger-light); color: var(--danger); }
/* 深色主视觉卡片 */
.stat-card.hero {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 52%, #0EA5E9 100%);
  border: none; color: #fff;
}
.stat-card.hero::before {
  content: ''; position: absolute; right: -46px; top: -46px; width: 170px; height: 170px;
  border-radius: 50%; background: rgba(255,255,255,.08);
}
.stat-card.hero::after {
  content: ''; position: absolute; right: 54px; bottom: -64px; width: 140px; height: 140px;
  border-radius: 50%; background: rgba(34,211,238,.18);
}
.stat-card.hero .s-top, .stat-card.hero .s-num, .stat-card.hero .s-label, .stat-card.hero .s-sub { position: relative; z-index: 1; }
.stat-card.hero .s-icon { background: rgba(255,255,255,.16); color: #fff; }
.stat-card.hero .s-num { color: #fff; }
.stat-card.hero .s-label { color: rgba(255,255,255,.78); }
.stat-card.hero .s-sub { color: rgba(255,255,255,.6); }
.stat-card.hero .s-sub .up { color: #A7F3D0; }
.stat-card.hero .s-sub .down { color: #FECACA; }
.stat-card.hero .mini-badge { background: rgba(255,255,255,.18); color: #fff; }
/* 兼容旧结构 */
.stat-card .num { font-size: 28px; font-weight: 800; color: var(--ink); }
.stat-card .label { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.stat-card.primary .num { color: var(--primary); }
.stat-card.warning .num { color: var(--warning); }
.stat-card.success .num { color: var(--success); }
.stat-card.danger .num { color: var(--danger); }

/* ===== 图表卡片 ===== */
.dash-grid { display: grid; grid-template-columns: 1.9fr 1fr; gap: 16px; align-items: stretch; margin-bottom: 16px; }
.chart-wrap { position: relative; }
.chart-wrap svg { display: block; width: 100%; height: auto; }
.chart-tip {
  position: absolute; display: none; background: #0F172A; color: #fff;
  font-size: 12px; padding: 7px 11px; border-radius: 8px; pointer-events: none;
  transform: translate(-50%, -145%); white-space: nowrap; z-index: 5;
  box-shadow: 0 8px 20px rgba(2,6,23,.35);
}
.chart-tip::after {
  content: ''; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: #0F172A; border-bottom: none;
}
.chart-tip b { font-weight: 800; }
.chart-tip .t-sub { color: #94A3B8; }
.seg { display: inline-flex; background: #F1F5F9; border-radius: 10px; padding: 3px; gap: 2px; }
.seg button {
  border: none; background: transparent; padding: 5px 13px; border-radius: 8px;
  font-size: 12.5px; color: var(--text-2); cursor: pointer; font-family: inherit; transition: all .15s;
}
.seg button:hover { color: var(--ink); }
.seg button.active { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 1px 4px rgba(15,23,42,.1); }
.legend-row { display: flex; align-items: center; gap: 16px; margin-top: 12px; font-size: 12.5px; color: var(--text-2); flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 7px; }
.legend-dot { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
/* 环形图 */
.donut-wrap { position: relative; width: 190px; height: 190px; margin: 4px auto 0; }
.donut-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-wrap .d-track { fill: none; stroke: #F1F5F9; stroke-width: 16; }
.donut-wrap .d-seg { fill: none; stroke-width: 16; stroke-linecap: butt; transition: stroke-dasharray .6s; }
.donut-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px;
}
.dc-num { font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.dc-num small { font-size: 15px; font-weight: 700; color: var(--text-3); }
.dc-label { font-size: 12px; color: var(--text-3); }
.donut-legend { margin-top: 16px; }
.dl-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 2px; font-size: 13px; border-bottom: 1px dashed #F1F5F9;
}
.dl-row:last-child { border-bottom: none; }
.dl-row .k { display: flex; align-items: center; gap: 9px; color: var(--text-2); }
.dl-row .k i { width: 9px; height: 9px; border-radius: 3px; font-style: normal; }
.dl-row .v { font-weight: 700; color: var(--ink); }
.dl-row .v small { color: var(--text-3); font-weight: 500; margin-left: 3px; }
/* 待办列表 */
.todo-item { display: flex; gap: 11px; padding: 11px 0; border-bottom: 1px dashed #F1F5F9; }
.todo-item:last-child { border-bottom: none; }
.todo-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex-shrink: 0; }
.todo-dot.amber { background: var(--warning); box-shadow: 0 0 0 3px var(--warning-light); }
.todo-dot.blue { background: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.todo-body { flex: 1; min-width: 0; }
.todo-title { font-size: 13.5px; color: var(--text-1); font-weight: 500; }
.todo-title b { font-weight: 700; }
.todo-time { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.todo-empty { text-align: center; color: var(--text-3); font-size: 13px; padding: 26px 0; }

/* ===== 表格 ===== */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #F1F5F9; }
th {
  background: #F8FAFC; font-weight: 600; color: var(--text-2); font-size: 12px;
  letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
}
tr:hover td { background: #F8FAFC; }
tr:last-child td { border-bottom: none; }
.table-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  color: #fff; font-size: 13px; font-weight: 700;
}
.av-1 { background: linear-gradient(135deg, #2563EB, #22D3EE); }
.av-2 { background: linear-gradient(135deg, #F59E0B, #FB923C); }
.av-3 { background: linear-gradient(135deg, #10B981, #34D399); }
.av-4 { background: linear-gradient(135deg, #8B5CF6, #A78BFA); }
.av-5 { background: linear-gradient(135deg, #EF4444, #F87171); }
.cell-main { font-weight: 600; color: var(--ink); }
.cell-sub { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.cell-flex { display: flex; align-items: center; gap: 11px; }

/* ===== 药丸状态 ===== */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill-success { background: var(--success-light); color: #059669; }
.pill-warning { background: var(--warning-light); color: #D97706; }
.pill-danger { background: var(--danger-light); color: var(--danger); }
.pill-primary { background: var(--primary-light); color: var(--primary); }
.pill-info { background: #ECFEFF; color: #0891B2; }
.pill-secondary { background: #F1F5F9; color: var(--text-2); }
.pill-secondary::before { display: none; }

/* ===== 标签（旧） ===== */
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.tag-success { background: var(--success-light); color: #059669; }
.tag-warning { background: var(--warning-light); color: #D97706; }
.tag-danger { background: var(--danger-light); color: var(--danger); }
.tag-primary { background: var(--primary-light); color: var(--primary); }
.tag-info { background: #ECFEFF; color: #0891B2; }
.tag-secondary { background: #F1F5F9; color: var(--text-2); }
.lease-tag-line { margin-top: 6px; }

/* ===== 租约提醒条（前台全站） ===== */
.lease-banner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 16px; padding: 12px 16px;
  border-radius: 12px; border: 1px solid; font-size: 13.5px; font-weight: 500;
}
.lease-banner .ic { width: 16px; height: 16px; flex-shrink: 0; }
.lease-banner .lb-text { flex: 1; min-width: 200px; }
.lease-banner .lb-link { font-weight: 600; text-decoration: none; white-space: nowrap; }
.lease-expired { background: #FEF2F2; border-color: #FECACA; color: #B91C1C; }
.lease-expired .ic, .lease-expired .lb-link { color: #B91C1C; }
.lease-expiring { background: #FFFBEB; border-color: #FDE68A; color: #B45309; }
.lease-expiring .ic, .lease-expiring .lb-link { color: #B45309; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: #fff; color: var(--text-2);
  font-size: 13.5px; font-weight: 500; cursor: pointer; transition: all .15s; font-family: inherit;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn-primary {
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(37,99,235,.25);
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-sm { padding: 5px 12px; font-size: 12.5px; border-radius: 8px; }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-success:hover { background: #059669; color: #fff; }
.btn-danger { background: #fff; color: var(--danger); border-color: #FCA5A5; }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-group { display: flex; gap: 8px; }
.btn:disabled, .btn.is-disabled {
  opacity: .55; cursor: not-allowed; box-shadow: none;
}
.btn:disabled:hover { border-color: var(--border); color: var(--text-2); }
.btn-primary:disabled, .btn-primary.is-disabled { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== 表单 ===== */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-item { display: flex; flex-direction: column; gap: 6px; }
.form-item.full { grid-column: 1 / -1; }
.form-item label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.form-item label .req { color: var(--danger); margin-left: 2px; }
.form-item input, .form-item select, .form-item textarea {
  padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; outline: none; transition: all .15s; font-family: inherit; background: #fff;
}
.form-item input:focus, .form-item select:focus, .form-item textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-item textarea { resize: vertical; min-height: 80px; }
.form-actions { display: flex; gap: 10px; margin-top: 8px; }

/* ===== 筛选栏 ===== */
.filter-bar { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.filter-bar select, .filter-bar input {
  padding: 7px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 13px; outline: none; background: #fff; font-family: inherit;
}
.filter-bar select:focus, .filter-bar input:focus { border-color: var(--primary); }

/* ===== 上传区 ===== */
.upload-box {
  border: 2px dashed var(--border); border-radius: var(--radius-sm);
  padding: 24px; text-align: center; color: var(--text-3); font-size: 13px;
  cursor: pointer; transition: all .15s; background: #F8FAFC;
}
.upload-box:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.upload-box.uploaded { border-style: solid; border-color: var(--success); color: #059669; background: var(--success-light); }

/* ===== 开关 ===== */
.switch { position: relative; width: 44px; height: 24px; background: #CBD5E1; border-radius: 12px; cursor: pointer; transition: background .2s; display: inline-block; }
.switch.on { background: var(--primary); }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch.on::after { transform: translateX(20px); }

/* ===== 提示条 ===== */
.alert { padding: 11px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 13px; }
.alert-warning { background: var(--warning-light); color: #B45309; }
.alert-info { background: var(--primary-light); color: var(--primary-dark); }
.alert-success { background: var(--success-light); color: #059669; }

/* ===== Toast提示 ===== */
.toast {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
  background: rgba(15,23,42,0.85); color: #fff; padding: 10px 24px;
  border-radius: 10px; font-size: 14px; z-index: 9999;
  opacity: 0; transition: opacity .3s; pointer-events: none;
  backdrop-filter: blur(6px);
}
.toast.show { opacity: 1; }

/* ===== 入驻者端（方案A：深色顶栏 + 左侧导航） ===== */
.ic { width: 18px; height: 18px; flex-shrink: 0; }

/* ---- 顶栏 ---- */
.top-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 64px; z-index: 1000;
  background: #0B1526;
  background-image:
    radial-gradient(720px 260px at 12% -40%, rgba(37,99,235,.45), transparent 65%),
    radial-gradient(600px 240px at 88% -60%, rgba(34,211,238,.18), transparent 65%),
    linear-gradient(90deg, #0B1526 0%, #0F1E36 100%);
  border-bottom: 1px solid rgba(148,163,184,.14);
}
.tb-inner {
  max-width: 1240px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: 18px; padding: 0 24px;
}
.tb-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.tb-logo {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, #2563EB 0%, #22D3EE 100%);
  color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .02em;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(37,99,235,.4);
}
.tb-brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.tb-brand-text .bname { font-size: 16px; font-weight: 800; color: #F8FAFC; letter-spacing: .01em; white-space: nowrap; }
.tb-brand-text .bsub { font-size: 11px; color: #94A3B8; letter-spacing: .06em; white-space: nowrap; }
.tb-spacer { flex: 1; }
.tb-actions { display: flex; align-items: center; gap: 10px; }
.tb-icon {
  position: relative; width: 40px; height: 40px; border-radius: 11px;
  border: 1px solid rgba(148,163,184,.22); background: rgba(255,255,255,.04);
  display: flex; align-items: center; justify-content: center;
  color: #CBD5E1; transition: all .15s;
}
.tb-icon:hover { color: #fff; border-color: rgba(34,211,238,.55); background: rgba(34,211,238,.1); }
.tb-icon .ic { width: 19px; height: 19px; }
.tb-icon .dot {
  position: absolute; top: 8px; right: 9px; width: 8px; height: 8px;
  background: #F43F5E; border: 2px solid #0B1526; border-radius: 50%;
}
.tb-user { position: relative; }
.tb-user-btn {
  display: flex; align-items: center; gap: 10px; padding: 3px 4px 3px 6px;
  background: transparent; border: none; cursor: pointer; font-family: inherit;
}
.tb-avatar {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, #2563EB 0%, #22D3EE 100%);
  color: #fff; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
}
.tb-user-info { display: flex; flex-direction: column; line-height: 1.3; text-align: left; min-width: 0; }
.tb-name { font-size: 13.5px; font-weight: 600; color: #F1F5F9; white-space: nowrap; }
.tb-org {
  font-size: 11px; color: #94A3B8; max-width: 150px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tb-caret { width: 15px; height: 15px; color: #94A3B8; transition: transform .2s; }
.tb-user.open .tb-caret { transform: rotate(180deg); }
.tb-dropdown {
  position: absolute; right: 0; top: calc(100% + 12px); width: 212px;
  background: #fff; border: 1px solid var(--border); border-radius: 13px;
  box-shadow: 0 18px 48px rgba(2,6,23,.22); padding: 6px;
  display: none; z-index: 1200;
}
.tb-user.open .tb-dropdown { display: block; }
.tb-dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: 9px; font-size: 13px; color: var(--text-2);
}
.tb-dropdown a:hover { background: #F8FAFC; color: var(--ink); }
.tb-dropdown a .ic { color: var(--text-3); }
.tb-dropdown a.danger { color: var(--danger); }
.tb-dropdown a.danger .ic { color: var(--danger); }
.tb-dropdown a.danger:hover { background: var(--danger-light); }
.td-count {
  margin-left: auto; background: var(--danger); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 18px;
  padding: 0 7px; border-radius: 999px;
}
.td-sep { height: 1px; background: #F1F5F9; margin: 5px 8px; }

/* ---- 页面容器 ---- */
.client-wrap { max-width: 1240px; margin: 0 auto; padding: 88px 24px 40px; }
.home-layout {
  display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 20px; align-items: start;
}
.home-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }
.home-menu {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px; box-shadow: var(--shadow);
}
.home-menu-label {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  color: var(--text-3); padding: 9px 12px 7px;
}
.home-menu-item {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  font-size: 13.5px; font-weight: 500; color: var(--text-2);
  transition: all .15s; white-space: nowrap;
}
.home-menu-item .ic { width: 18px; height: 18px; opacity: .72; }
.home-menu-item:hover { background: #F8FAFC; color: var(--ink); }
.home-menu-item:hover .ic { opacity: 1; }
.home-menu-item.active {
  background: linear-gradient(90deg, #EAF2FF 0%, #F6FAFF 100%);
  color: var(--primary-dark); font-weight: 700;
}
.home-menu-item.active::before {
  content: ''; position: absolute; left: 0; top: 9px; bottom: 9px;
  width: 3px; border-radius: 3px; background: var(--primary);
}
.home-menu-item.active .ic { opacity: 1; color: var(--primary); }
.home-help {
  position: relative; overflow: hidden; border-radius: var(--radius);
  padding: 20px; color: #fff;
  background: linear-gradient(135deg, #1E40AF 0%, #2563EB 62%, #0EA5E9 100%);
  box-shadow: 0 14px 32px rgba(37,99,235,.28);
}
.home-help::before {
  content: ''; position: absolute; right: -48px; top: -48px;
  width: 140px; height: 140px; border-radius: 50%;
  background: rgba(255,255,255,.1);
}
.home-help::after {
  content: ''; position: absolute; right: 26px; bottom: -60px;
  width: 110px; height: 110px; border-radius: 50%;
  background: rgba(34,211,238,.2);
}
.hh-title { position: relative; z-index: 1; font-size: 14.5px; font-weight: 700; }
.hh-sub { position: relative; z-index: 1; font-size: 12px; color: rgba(255,255,255,.75); margin-top: 4px; }
.hh-btn {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px;
  margin-top: 14px; padding: 7px 13px; border-radius: 9px;
  background: #fff; color: var(--primary-dark); font-size: 12.5px; font-weight: 700;
  transition: all .15s; max-width: 100%;
}
.hh-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(2,6,23,.22); }
.hh-btn .ic { width: 15px; height: 15px; }
.hh-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-panels { min-width: 0; }
.home-panel { display: none; }
.home-panel.active { display: block; }

/* ---- 欢迎横幅 ---- */
.client-hero {
  position: relative; overflow: hidden; margin-bottom: 20px;
  border-radius: var(--radius); padding: 30px 34px; color: #fff;
  background: linear-gradient(115deg, #1D4ED8 0%, #2563EB 48%, #0EA5E9 100%);
  box-shadow: 0 18px 44px rgba(37,99,235,.28);
}
.client-hero::before {
  content: ''; position: absolute; right: -90px; top: -130px;
  width: 340px; height: 340px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05);
}
.client-hero::after {
  content: ''; position: absolute; right: 70px; bottom: -160px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,.4), transparent 65%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 13px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  font-size: 12px; font-weight: 600; backdrop-filter: blur(4px);
}
.hero-badge .hb-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #34D399; box-shadow: 0 0 0 3px rgba(52,211,153,.22);
}
.hero-badge.warn .hb-dot { background: #FBBF24; box-shadow: 0 0 0 3px rgba(251,191,36,.25); }
.hero-badge.danger .hb-dot { background: #F87171; box-shadow: 0 0 0 3px rgba(248,113,113,.25); }
.hero-body {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 28px; margin-top: 16px;
}
.hero-greet { font-size: 29px; font-weight: 800; line-height: 1.28; letter-spacing: -.01em; }
.hero-desc { font-size: 13.5px; color: rgba(255,255,255,.82); margin-top: 9px; max-width: 620px; line-height: 1.7; }
.hero-desc b { color: #fff; font-weight: 800; }
.hero-stats { display: flex; gap: 40px; text-align: right; flex-shrink: 0; padding-bottom: 2px; }
.hero-stat .num {
  font-size: 30px; font-weight: 800; line-height: 1;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.hero-stat .num small { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.7); margin-left: 3px; }
.hero-stat .lbl { font-size: 12px; color: rgba(255,255,255,.65); margin-top: 7px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 10px;
  background: #fff; color: var(--primary-dark);
  font-size: 12.5px; font-weight: 700; transition: all .15s;
}
.hero-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(2,6,23,.2); }
.hero-btn.ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.hero-btn.ghost:hover { background: rgba(255,255,255,.2); }
.hero-btn .ic { width: 15px; height: 15px; }

/* ---- 通用卡片 ---- */
.c-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px; margin-bottom: 20px;
}
.c-card:last-child { margin-bottom: 0; }
.c-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 8px;
}
.c-title { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.c-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12.5px; color: var(--text-3); transition: color .15s;
}
.c-link:hover { color: var(--primary); }
.c-link .ic { width: 14px; height: 14px; }
.c-grid2 {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 20px; margin-bottom: 20px;
}
.c-grid2 .c-card { margin-bottom: 0; height: 100%; }
.c-empty { text-align: center; color: var(--text-3); font-size: 13px; padding: 34px 0; }

/* ---- 入驻信息 ---- */
.ci-row { display: flex; align-items: flex-start; gap: 13px; padding: 13px 0; border-bottom: 1px dashed #EDF1F5; }
.ci-row:last-child { border-bottom: none; }
.ci-ico {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.ci-ico.amber { background: var(--warning-light); color: var(--warning); }
.ci-ico .ic { width: 18px; height: 18px; }
.ci-label { font-size: 12px; color: var(--text-3); line-height: 1.5; }
.ci-value { font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 2px; word-break: break-all; }
.ci-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---- 通知公告列表 ---- */
.c-notices { display: flex; flex-direction: column; }
.c-notice-link {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0; border-bottom: 1px dashed #EDF1F5;
  font-size: 13.5px; color: var(--text-2); transition: color .15s;
}
.c-notice-link:last-child { border-bottom: none; }
.c-notice-link:hover { color: var(--primary); }
.cn-dot { width: 7px; height: 7px; border-radius: 50%; background: #CBD5E1; flex-shrink: 0; }
.c-notice-link.is-top .cn-dot { background: var(--warning); }
.cn-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- 快捷服务 ---- */
.quick-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.quick-tile {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 14px 6px; border-radius: 12px;
  font-size: 12.5px; color: var(--text-2); transition: all .15s;
}
.quick-tile:hover { background: #F8FAFC; color: var(--primary); transform: translateY(-1px); }
.quick-ico {
  width: 44px; height: 44px; border-radius: 13px;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.quick-ico .ic { width: 20px; height: 20px; }

/* ---- 新闻列表 ---- */
.nm-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed #EDF1F5; }
.nm-row:last-child { border-bottom: none; }
.nm-row:first-child { padding-top: 6px; }
.nm-row:hover .nm-title { color: var(--primary); }
.nm-thumb {
  width: 96px; height: 68px; flex-shrink: 0; border-radius: 10px;
  object-fit: cover; background: #EEF2F7;
}
.nm-thumb-ph {
  width: 96px; height: 68px; flex-shrink: 0; border-radius: 10px;
  background: linear-gradient(135deg, #2563EB, #22D3EE);
  color: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center;
}
.nm-thumb-ph .ic { width: 26px; height: 26px; }
.nm-body { flex: 1; min-width: 0; }
.nm-title {
  font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.55;
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  transition: color .15s;
}
.nm-title .tag { flex-shrink: 0; }
.nm-sum {
  font-size: 12.5px; color: var(--text-3); margin-top: 4px; line-height: 1.6;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.nm-meta { font-size: 11.5px; color: var(--text-3); margin-top: 7px; display: flex; align-items: center; gap: 10px; }

/* ---- 页头 ---- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.ph-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.page-head h1 { font-size: 21px; font-weight: 800; color: var(--ink); line-height: 1.35; letter-spacing: -.01em; }
.ph-sub { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }
.back-link {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: #fff; border: 1px solid var(--border); color: var(--text-2);
  display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.back-link:hover { color: var(--primary); border-color: var(--primary); }

/* ---- 文章详情 ---- */
.c-article { padding: 30px 34px; }
.article-title {
  font-size: 24px; font-weight: 800; line-height: 1.45;
  color: var(--ink); letter-spacing: -.01em; word-break: break-word;
}
.article-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--text-3); margin-top: 12px;
}
.article-cover {
  width: 100%; max-height: 360px; object-fit: cover;
  border-radius: 14px; margin: 22px 0 0; display: block;
}
.article-summary {
  margin: 20px 0 0; padding: 14px 18px; background: #F8FAFC;
  border-left: 3px solid var(--primary); border-radius: 0 10px 10px 0;
  font-size: 13.5px; color: var(--text-2); line-height: 1.8;
}
.article-content { margin-top: 22px; padding-top: 22px; border-top: 1px solid #F1F5F9; }
.article-plain { font-size: 14.5px; color: var(--text-2); line-height: 1.9; white-space: pre-wrap; word-break: break-word; }

/* ---- 公告手风琴 ---- */
.notice-list { display: flex; flex-direction: column; gap: 10px; }
.news-item {
  background: #fff; border: 1px solid var(--border); border-radius: 13px;
  padding: 16px 20px; box-shadow: var(--shadow); transition: all .15s;
}
.news-item:hover { border-color: #BFDBFE; }
.news-item .title {
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
}
.news-item .date { font-size: 11.5px; color: var(--text-3); margin-top: 5px; }
.news-item .notice-content {
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed #E8EDF3;
  font-size: 13.5px; color: var(--text-2); line-height: 1.85;
  white-space: pre-wrap; word-break: break-word;
}
.news-item.open { background: #F8FAFC; border-color: #BFDBFE; border-left: 3px solid var(--primary); }
.news-item.is-top { border-left: 3px solid var(--warning); }

/* ---- 二维码 ---- */
.qr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.qr-card {
  border: 1px solid var(--border); border-radius: 14px;
  padding: 26px 20px; text-align: center; background: #FBFCFE;
}
.qr-card img {
  width: 150px; height: 150px; object-fit: contain;
  border-radius: 12px; border: 1px solid var(--border);
  background: #fff; padding: 5px; display: block; margin: 0 auto 14px;
}
.qr-card .qr-label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.qr-card .qr-sub { font-size: 12px; color: var(--text-3); margin-top: 3px; }

/* ---- 共享空间 ---- */
.booking-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.booking-item {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 20px 18px; cursor: pointer; transition: all .18s; box-shadow: var(--shadow);
}
.booking-item:hover { transform: translateY(-3px); border-color: #BFDBFE; box-shadow: 0 14px 32px rgba(37,99,235,.12); }
.booking-item .bico {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.booking-item .name { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.booking-item .meta { font-size: 12px; color: var(--text-3); margin-top: 5px; }
.booking-item .price { font-size: 12.5px; color: var(--warning); font-weight: 700; margin-top: 10px; }
.booking-item .free { font-size: 12.5px; color: var(--success); font-weight: 700; margin-top: 10px; }

/* ---- 园区联系 ---- */
.contact-rows { display: flex; flex-direction: column; }
.contact-row {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0; border-bottom: 1px dashed #EDF1F5;
}
.contact-row:last-child { border-bottom: none; }
.contact-ico {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.contact-k { font-size: 12px; color: var(--text-3); }
.contact-v { font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 2px; word-break: break-all; }

/* ---- 园区负责人 ---- */
.contact-managers { margin-top: 16px; }
.cm-head { margin-bottom: 12px; }
.cm-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: var(--ink);
}
.cm-title .ic { width: 18px; height: 18px; color: var(--primary); }
.cm-sub { font-size: 12.5px; color: var(--text-3); margin-top: 4px; }
.manager-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px;
}
.manager-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px;
}
.manager-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #2563EB, #4F8DF9); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
}
.manager-body { min-width: 0; }
.manager-name {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 15px; font-weight: 700; color: var(--ink);
}
.manager-pos {
  font-size: 11.5px; font-weight: 600; color: var(--primary);
  background: var(--primary-light); border-radius: 999px; padding: 2px 8px;
}
.manager-line {
  display: flex; align-items: center; gap: 6px; margin-top: 8px;
  font-size: 13px; color: var(--text-2); word-break: break-all;
}
.manager-line .ic { width: 14px; height: 14px; color: var(--text-3); }
a.manager-line { color: var(--ink); text-decoration: none; }
a.manager-line:hover { color: var(--primary); }

/* ---- 我的预约 ---- */
.booking-status-tabs {
  display: flex; gap: 4px; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 5px; margin-bottom: 16px; box-shadow: var(--shadow);
  overflow-x: auto;
}
.booking-status-tabs a {
  flex: 1; min-width: 74px; text-align: center; padding: 9px 14px;
  border-radius: 9px; font-size: 13px; color: var(--text-2);
  white-space: nowrap; transition: all .15s;
}
.booking-status-tabs a:hover { color: var(--primary); background: var(--primary-light); }
.booking-status-tabs a.active {
  background: var(--primary); color: #fff; font-weight: 600;
  box-shadow: 0 4px 12px rgba(37,99,235,.25);
}
.booking-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; box-shadow: var(--shadow); margin-bottom: 12px;
}
.booking-card .top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.booking-card .room { display: flex; align-items: center; gap: 11px; min-width: 0; }
.room-ico {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.room-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.room-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.bk-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px; background: #F8FAFC; border-radius: 10px; padding: 12px 16px;
}
.bk-item { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.bk-k { color: var(--text-3); font-size: 12px; flex-shrink: 0; }
.bk-v { color: var(--text-1); font-weight: 600; }
.bk-reject {
  margin-top: 12px; padding: 10px 14px; border-radius: 9px;
  background: var(--danger-light); color: var(--danger); font-size: 12.5px;
}
.bk-actions { margin-top: 14px; text-align: right; }

/* ---- 站内通知 ---- */
.notif-list { display: flex; flex-direction: column; }
.notif-item {
  display: flex; gap: 14px; padding: 16px 2px; align-items: flex-start;
  border-bottom: 1px dashed #EDF1F5;
}
.notif-item:last-child { border-bottom: none; }
.notif-ico {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  background: #F1F5F9; color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
}
.notif-item.unread .notif-ico { background: var(--primary-light); color: var(--primary); }
.notif-body { flex: 1; min-width: 0; }
.notif-title {
  font-size: 14px; font-weight: 500; color: var(--text-1);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.notif-item.unread .notif-title { font-weight: 700; color: var(--ink); }
.notif-meta {
  font-size: 12px; color: var(--text-3); margin-top: 4px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.notif-side { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* ---- 表单 ---- */
.c-form .form-item { margin-bottom: 16px; }
.c-form .form-item label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.c-form .form-item input, .c-form .form-item textarea {
  width: 100%; background: #F8FAFC; padding: 10px 13px;
}
.c-form .form-item input:focus, .c-form .form-item textarea:focus { background: #fff; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-hint { text-align: center; font-size: 12px; color: var(--text-3); margin-top: 12px; }
.btn-block { width: 100%; justify-content: center; padding: 12px; font-size: 14.5px; }

/* ---- 时间段选择 ---- */
.time-slots { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.time-slot {
  padding: 9px 16px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 13px; color: var(--text-2); cursor: pointer; transition: all .15s;
  background: #fff; user-select: none;
}
.time-slot:hover { border-color: var(--primary); color: var(--primary); }
.time-slot.selected {
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(37,99,235,.25);
}
.time-slot.disabled {
  color: var(--text-3); background: #F1F5F9; border-color: #EEF2F6; cursor: not-allowed;
}

/* ---- 场地信息 ---- */
.venue-head { display: flex; align-items: flex-start; gap: 14px; }
.venue-ico {
  width: 48px; height: 48px; border-radius: 13px; flex-shrink: 0;
  background: linear-gradient(135deg, #2563EB, #22D3EE); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.venue-name { font-size: 17px; font-weight: 700; color: var(--ink); }
.venue-tags { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.venue-desc { font-size: 12.5px; color: var(--text-3); margin-top: 8px; line-height: 1.7; }

/* ===== 新闻详情富文本内容 ===== */
.news-detail-content {
  font-size: 15px; line-height: 1.85; color: var(--text-1);
  word-break: break-word;
}
.news-detail-content img { max-width: 100%; height: auto; border-radius: 8px; }
.news-detail-content p { margin: 0 0 12px; }
.news-detail-content ul, .news-detail-content ol { padding-left: 24px; margin: 0 0 12px; }
.news-detail-content a { color: var(--primary); }

/* ===== 新闻表单：摘要+封面图同行（后台） ===== */
.summary-cover-row { display: flex; gap: 16px; align-items: stretch; }
.summary-cover-row textarea { flex: 1; height: 140px; resize: vertical; }
.cover-uploader {
  width: 220px; height: 140px; flex-shrink: 0;
  border: 2px dashed #ddd; border-radius: 8px; background: #FAFAFA;
  cursor: pointer; color: #999; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.cover-uploader:hover { border-color: var(--primary); color: var(--primary); }
.cover-uploader .cover-name { font-size: 12px; margin-top: 6px; word-break: break-all; padding: 0 8px; }

/* ===== 分页 ===== */
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 20px; list-style: none; padding: 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 6px 13px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 13px; color: var(--text-2); cursor: pointer; transition: all .15s;
}
.pagination a:hover, .pagination .current,
.pagination li.active span { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination li.disabled span { color: var(--text-3); cursor: not-allowed; }
.pagination-wrap { margin-top: 4px; }

/* ===== 模态框 ===== */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(2,6,23,0.5); z-index: 5000; display: none;
  align-items: center; justify-content: center; backdrop-filter: blur(2px);
}
.modal-overlay.show { display: flex; }
.modal-box {
  background: #fff; border-radius: var(--radius); padding: 24px;
  width: 500px; max-width: 90%; max-height: 80vh; overflow-y: auto;
}
.modal-title { font-size: 17px; font-weight: 700; margin-bottom: 20px; color: var(--ink); }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

/* ===== 登录页辅助 ===== */
.login-badge {
  display: inline-block; padding: 3px 12px;
  background: var(--primary-light); color: var(--primary-dark);
  border-radius: 999px; font-size: 12px; font-weight: 600; margin-bottom: 10px;
}
.login-foot { margin-top: 16px; text-align: center; }
.login-foot a { color: var(--text-3); font-size: 12.5px; }
.login-foot a:hover { color: var(--primary); }

/* ===== 响应式 ===== */
@media (max-width: 1200px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .client-wrap { padding: 80px 14px 28px; }
  .home-layout { display: block; }
  .home-side { position: static; margin-bottom: 14px; gap: 12px; }
  .home-menu {
    display: flex; gap: 8px; background: transparent; border: none;
    box-shadow: none; padding: 0; overflow-x: auto; scrollbar-width: none;
  }
  .home-menu::-webkit-scrollbar { display: none; }
  .home-menu-label { display: none; }
  .home-menu-item {
    flex-shrink: 0; padding: 8px 15px; border-radius: 999px;
    background: #fff; border: 1px solid var(--border);
    font-size: 12.5px; box-shadow: var(--shadow);
  }
  .home-menu-item .ic { width: 15px; height: 15px; }
  .home-menu-item.active {
    background: var(--primary); border-color: var(--primary);
    color: #fff; box-shadow: 0 6px 16px rgba(37,99,235,.28);
  }
  .home-menu-item.active::before { display: none; }
  .home-menu-item.active .ic { color: #fff; }
  .home-help { display: none; }
  .hero-body { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero-stats { text-align: left; gap: 32px; }
  .c-grid2 { grid-template-columns: 1fr; gap: 16px; }
  .c-card { padding: 18px; }
  .client-hero { padding: 24px; }
  .hero-greet { font-size: 24px; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .booking-grid { grid-template-columns: repeat(2, 1fr); }
  .qr-grid { grid-template-columns: 1fr; }
  .c-article { padding: 22px; }
  .article-title { font-size: 20px; }
  .tb-user-info { display: none; }
  .tb-caret { display: none; }
  .tb-inner { padding: 0 16px; gap: 12px; }
  .tb-brand-text .bname { font-size: 15px; }
  .tb-brand-text .bsub { display: none; }
  .tb-logo { width: 36px; height: 36px; border-radius: 11px; font-size: 11px; }
  .tb-actions { gap: 8px; }
  .tb-icon { width: 38px; height: 38px; }
  .tb-avatar { width: 36px; height: 36px; }
}

@media (max-width: 768px) {
  .admin-sidebar { transform: translateX(-100%); transition: transform .2s; z-index: 1020; }
  .admin-sidebar.open { transform: translateX(0); box-shadow: 24px 0 48px rgba(2,6,23,.35); }
  .admin-topbar { left: 0; padding: 0 14px; }
  .at-hamburger { display: flex; }
  .at-search, .at-user-info { display: none; }
  .at-user { border-left: none; padding-left: 0; }
  .admin-main { margin-left: 0; padding: 16px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { padding: 16px; }
  .stat-card .s-num { font-size: 24px; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-stats { gap: 26px; }
  .hero-stat .num { font-size: 25px; }
  .hero-actions { width: 100%; }
  .hero-btn { flex: 1; justify-content: center; padding: 10px 12px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .bk-grid { grid-template-columns: 1fr; gap: 8px; }
  .notif-side .tag { display: none; }
  .notif-item { gap: 11px; }
  .notif-ico { width: 36px; height: 36px; }
  .nm-thumb, .nm-thumb-ph { width: 84px; height: 62px; }
  .booking-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .booking-item { padding: 16px 14px; }
  .booking-item .name { font-size: 13.5px; }
  .c-card { padding: 16px; }
  .c-head { margin-bottom: 6px; }
  .page-head h1 { font-size: 19px; }
  .c-article { padding: 18px; }
  .article-cover { max-height: 220px; }
  .qr-card img { width: 130px; height: 130px; }
  .ci-row { padding: 11px 0; }
}

@media (max-width: 480px) {
  .client-wrap { padding: 78px 10px 24px; }
  .tb-inner { padding: 0 12px; }
  .tb-brand-text .bname { font-size: 14px; }
  .client-hero { padding: 20px; }
  .hero-greet { font-size: 21px; }
  .hero-desc { font-size: 12.5px; }
  .hero-badge { font-size: 11px; }
  .hero-stats { gap: 22px; }
  .hero-stat .num { font-size: 23px; }
  .quick-grid { gap: 2px; }
  .quick-tile { font-size: 12px; padding: 12px 4px; }
  .quick-ico { width: 40px; height: 40px; }
  .booking-status-tabs a { min-width: 64px; padding: 8px 10px; font-size: 12.5px; }
  .booking-card { padding: 16px; }
  .c-notice-link { font-size: 13px; }
  .news-item { padding: 14px 16px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card .s-icon { width: 36px; height: 36px; }
  .stat-card .s-num { font-size: 22px; }
  .at-title { font-size: 15px; }
}

/* 公告手风琴展开热区 */
.notice-list .news-item { cursor: pointer; }

/* ===== 接单平台 ===== */
.tab-bar {
  display: flex; gap: 6px; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 5px; margin-bottom: 16px;
  width: max-content; max-width: 100%; overflow-x: auto;
}
.tab-link { padding: 7px 18px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.tab-link:hover { color: var(--primary); }
.tab-link.active { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(37,99,235,.25); }

.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { padding: 6px 14px; border: 1px solid var(--border); background: #fff; border-radius: 999px; font-size: 13px; color: var(--text-2); }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.need-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.need-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow);
}
.need-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.need-price { font-size: 20px; font-weight: 800; color: var(--primary); }
.need-title { font-size: 15.5px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.need-desc {
  font-size: 13px; color: var(--text-2); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.desc-more {
  align-self: flex-start; margin-top: -4px; padding: 0; border: 0; background: none;
  font-size: 12.5px; color: var(--primary); font-weight: 500; cursor: pointer;
}
.desc-more:hover { text-decoration: underline; }
.need-price-line { font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.need-price-line b { font-size: 16px; color: var(--ink); }
.need-imgs { display: flex; gap: 8px; flex-wrap: wrap; }
.need-imgs img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.need-detail-box { width: 640px; }
.nd-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.nd-title { font-size: 18px; font-weight: 700; line-height: 1.45; color: var(--ink); margin-bottom: 8px; }
.nd-price { font-size: 13px; color: var(--text-2); margin-bottom: 16px; }
.nd-price b { font-size: 20px; color: var(--primary); }
.nd-desc { font-size: 13.5px; color: var(--text-2); line-height: 1.8; white-space: pre-wrap; word-break: break-word; }
.nd-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.nd-imgs img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); cursor: zoom-in; }
.nd-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-3); }
.nd-meta span { display: inline-flex; align-items: center; gap: 4px; }
.need-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--text-3); }
.need-meta span { display: inline-flex; align-items: center; gap: 4px; }
.need-note {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #D97706;
  background: var(--warning-light); border-radius: 8px; padding: 6px 10px; align-self: flex-start;
}
.need-contact {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2);
  background: #F8FAFC; border: 1px dashed var(--border); border-radius: 10px; padding: 8px 12px; align-self: flex-start;
}
.need-invoice-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.need-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.pay-box {
  display: flex; flex-direction: column; gap: 10px; align-self: stretch;
  background: #F8FAFC; border: 1px dashed var(--border); border-radius: 12px; padding: 12px 14px;
}
.pay-acct-head { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.pay-acct { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.pay-acct-empty { flex-direction: row; align-items: center; gap: 6px; font-size: 12.5px; color: #B45309; background: var(--warning-light); border: none; padding: 8px 12px; }
.pa-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.pa-qr { width: 110px; height: 110px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.pay-status-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pay-box .need-actions { margin-top: 0; padding-top: 0; }

/* 竞价列表 */
.bid-list { display: flex; flex-direction: column; gap: 12px; max-height: 60vh; overflow-y: auto; }
.bid-item { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.bid-item.bid-winner { border-color: var(--success); background: var(--success-light, #ECFDF5); }
.bid-item-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.bid-price { font-size: 18px; font-weight: 800; color: var(--primary); }
.bid-name { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-2); margin-left: auto; }
.bid-remark { font-size: 13px; color: var(--text-2); line-height: 1.6; margin: 4px 0; padding: 6px 10px; background: var(--bg-2, #F8FAFC); border-radius: 8px; }
.bid-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--text-3); }
.bid-meta span { display: inline-flex; align-items: center; gap: 4px; }
.bid-item .need-actions { margin-top: 8px; padding-top: 0; }

.img-viewer {
  position: fixed; inset: 0; z-index: 6000; display: none;
  align-items: center; justify-content: center; padding: 40px;
  background: rgba(2,6,23,.72); cursor: zoom-out;
}
.img-viewer.show { display: flex; }
.img-viewer img {
  max-width: min(92vw, 1000px); max-height: 86vh; border-radius: 12px;
  background: #fff; box-shadow: 0 24px 60px rgba(2,6,23,.45); cursor: default;
}
.iv-close {
  position: absolute; top: 20px; right: 24px; width: 40px; height: 40px;
  border-radius: 50%; border: none; background: rgba(255,255,255,.16); color: #fff;
  font-size: 24px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.iv-close:hover { background: rgba(255,255,255,.3); }

.bill-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.bill-stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.bill-stat.highlight { background: linear-gradient(135deg, #2563EB, #1D4ED8); border-color: transparent; }
.bill-stat.highlight .bs-label, .bill-stat.highlight .bs-sub { color: rgba(255,255,255,.75); }
.bill-stat.highlight .bs-value { color: #fff; }
.bs-label { font-size: 12.5px; color: var(--text-3); margin-bottom: 6px; }
.bs-value { font-size: 24px; font-weight: 800; color: var(--ink); }
.bs-sub { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }

.account-list { display: flex; flex-direction: column; }
.account-row { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid #F1F5F9; }
.account-row:last-child { border-bottom: none; }
.ar-ico {
  width: 42px; height: 42px; border-radius: 12px; background: var(--primary-light);
  color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ar-main { flex: 1; min-width: 0; }
.ar-name { font-size: 14px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ar-no { font-size: 12.5px; color: var(--text-3); margin-top: 3px; word-break: break-all; }
.ar-qrcode { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.ar-actions { display: flex; gap: 8px; flex-shrink: 0; }

.withdraw-form { max-width: 560px; display: flex; flex-direction: column; gap: 12px; }
.withdraw-form .btn { align-self: flex-start; }
.withdraw-list { display: flex; flex-direction: column; }
.withdraw-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 14px 4px; border-bottom: 1px solid #F1F5F9; }
.withdraw-row:last-child { border-bottom: none; }
.wr-line1 { font-size: 16px; font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.wr-line2 { font-size: 12.5px; color: var(--text-2); margin-top: 4px; }
.wr-line3 { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.wr-reject { font-size: 12px; color: var(--danger); margin-top: 6px; background: var(--danger-light); border-radius: 8px; padding: 6px 10px; }
.wr-side { flex-shrink: 0; }

.img-pick {
  width: 72px; height: 72px; border: 1.5px dashed var(--border); border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--text-3); cursor: pointer; font-size: 11px; background: #FAFBFC; transition: all .15s;
}
.img-pick:hover { border-color: var(--primary); color: var(--primary); }
.img-pick-wide { width: 100%; height: 64px; flex-direction: row; gap: 8px; font-size: 13px; }
.img-pick-list { display: flex; gap: 10px; flex-wrap: wrap; }
.img-pick-item { position: relative; }
.img-pick-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); }
.img-pick-item span {
  position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--danger); color: #fff; font-size: 13px; line-height: 20px; text-align: center; cursor: pointer;
}

.account-types { display: flex; gap: 10px; flex-wrap: wrap; }
.acct-type input { display: none; }
.acct-type-box {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  border: 1px solid var(--border); border-radius: 10px; font-size: 13px; color: var(--text-2); cursor: pointer;
}
.acct-type input:checked + .acct-type-box { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.checkbox-line { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); cursor: pointer; padding-top: 26px; }
.checkbox-line input { width: 15px; height: 15px; accent-color: var(--primary); }
.c-form .form-item.checkbox-item { justify-content: flex-end; }
.c-form .form-item .checkbox-line { width: auto; align-self: flex-start; padding-top: 0; min-height: 42px; }
.c-form .form-item .checkbox-line input[type="checkbox"] {
  width: 16px; height: 16px; min-width: 16px; padding: 0; margin: 0; flex: 0 0 auto;
}

@media (max-width: 900px) {
  .need-grid { grid-template-columns: 1fr; }
  .bill-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-row { flex-wrap: wrap; }
  .ar-actions { width: 100%; justify-content: flex-end; }
}
@media (max-width: 480px) {
  .tab-bar { width: 100%; }
  .tab-link { flex: 1; text-align: center; padding: 7px 8px; font-size: 12.5px; }
  .withdraw-row { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
}
