/* ============================================================
   金鉴代理中心 · 视觉系统
   色板严格取自 brand/BRAND.md，不得自造
   ============================================================ */
:root {
  --ink: #330006;
  --red: #9E000C;
  --red-deep: #7A0009;
  --paper: #FBF8F3;
  --paper-2: #F2EDE3;
  --line: #E2D9CB;
  --gray: #6B6259;
  --white: #FFFFFF;

  --ok: #3F6B4A;
  --warn: #A86A16;
  --danger: #9E000C;

  --r: 4px;
  --shadow: 0 1px 2px rgba(51, 0, 6, .04), 0 6px 18px rgba(51, 0, 6, .05);
  --serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--red); text-decoration: none; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 15px; }

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.serif { font-family: var(--serif); }

/* ============================ 登录页 ============================ */
.login-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
}
.login-brand {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-brand::after {
  content: "";
  position: absolute; inset: auto -10% -30% -10%;
  height: 62%;
  background: radial-gradient(ellipse at 50% 100%, rgba(158, 0, 12, .55), transparent 68%);
  pointer-events: none;
}
.login-brand img { width: 216px; display: block; position: relative; z-index: 1; }
.login-slogan {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .34em;
  color: rgba(251, 248, 243, .62);
  margin-top: 22px;
  position: relative; z-index: 1;
}
.login-pitch {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.42;
  letter-spacing: .06em;
  position: relative; z-index: 1;
  max-width: 10.5em;
}
.login-pitch em { font-style: normal; color: #E8C9A0; }
.login-meta {
  display: flex; gap: 40px; position: relative; z-index: 1;
  font-size: 12px; letter-spacing: .12em; color: rgba(251, 248, 243, .45);
}
.login-meta b { display: block; font-size: 22px; letter-spacing: 0; color: rgba(251, 248, 243, .9); font-weight: 500; }
.login-panel {
  display: flex; align-items: center; justify-content: center;
  padding: 48px 40px;
}
.login-form { width: 100%; max-width: 348px; }
.login-form h1 {
  font-family: var(--serif);
  font-size: 28px; font-weight: 500; margin: 0 0 6px; letter-spacing: .08em;
}
.login-form .sub { color: var(--gray); font-size: 13px; margin-bottom: 32px; }

/* ============================ 表单 ============================ */
.field { margin-bottom: 16px; }
.label {
  display: block; font-size: 12px; letter-spacing: .08em;
  color: var(--gray); margin-bottom: 6px;
}
.label .req { color: var(--red); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--white); color: var(--ink);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--red); box-shadow: 0 0 0 3px rgba(158, 0, 12, .08);
}
.textarea { min-height: 84px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: #B8AFA3; }
.input:disabled, .select:disabled, .textarea:disabled {
  background: #F5F1E9; color: #A9A096; cursor: not-allowed; opacity: .85;
}
.select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' stroke='%236B6259' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.hint { font-size: 12px; color: var(--gray); margin-top: 6px; }
.hint.warn { color: var(--warn); }
.hint.err { color: var(--danger); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

/* ============================ 按钮 ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  font-size: 14px; cursor: pointer; transition: all .15s;
  white-space: nowrap;
}
.btn:hover { border-color: #C9BCA9; background: #FDFBF7; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--danger); border-color: #E7C9C9; }
.btn-danger:hover { background: #FDF3F3; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-lg { padding: 12px 20px; font-size: 15px; }

/* ============================ 主框架 ============================ */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 228px; flex: 0 0 228px;
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.sidebar .sb-brand { padding: 26px 22px 22px; border-bottom: 1px solid rgba(251, 248, 243, .1); }
.sidebar .sb-brand img { width: 138px; display: block; }
.sidebar .sb-slogan {
  font-family: var(--serif); font-size: 10px; letter-spacing: .3em;
  color: rgba(251, 248, 243, .42); margin-top: 10px;
}
.nav { padding: 14px 0; flex: 1; overflow-y: auto; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 22px; color: rgba(251, 248, 243, .68);
  font-size: 14px; letter-spacing: .04em;
  border-left: 2px solid transparent; transition: all .15s;
}
.nav a:hover { color: var(--paper); background: rgba(251, 248, 243, .05); }
.nav a.on { color: #fff; background: rgba(158, 0, 12, .28); border-left-color: var(--red); }
.nav a .ic { width: 16px; text-align: center; opacity: .8; font-size: 14px; }
.nav .nav-group { padding: 16px 22px 6px; font-size: 10px; letter-spacing: .18em; color: rgba(251, 248, 243, .3); }
.sb-user {
  padding: 14px 22px; border-top: 1px solid rgba(251, 248, 243, .1);
  font-size: 12px; color: rgba(251, 248, 243, .55);
}
.sb-user b { display: block; font-size: 14px; color: var(--paper); font-weight: 500; letter-spacing: .04em; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 60px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; background: rgba(251, 248, 243, .9);
  backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20;
}
.topbar h2 { font-family: var(--serif); font-size: 19px; font-weight: 500; margin: 0; letter-spacing: .08em; }
.topbar .tb-right { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--gray); }
.content { padding: 24px 28px 80px; max-width: 1320px; width: 100%; }

/* ============================ 卡片与统计 ============================ */
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow);
}
.card-pad { padding: 20px 22px; }
.card-h {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px; border-bottom: 1px solid var(--line);
}
.card-h h3 {
  margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .06em;
}
.card-h .sub { font-size: 12px; color: var(--gray); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.home-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.team-grid { display: grid; grid-template-columns: 1fr 340px; gap: 16px; }
.prog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 18px; position: relative; overflow: hidden;
}
.stat .k { font-size: 12px; color: var(--gray); letter-spacing: .06em; }
.stat .v {
  font-size: 30px; font-weight: 500; letter-spacing: -.01em; margin-top: 4px;
  font-variant-numeric: tabular-nums; line-height: 1.15;
}
.stat .v small { font-size: 13px; color: var(--gray); font-weight: 400; margin-left: 4px; }
.stat .d { font-size: 12px; color: var(--gray); margin-top: 2px; }
.stat.accent { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.stat.accent .k, .stat.accent .d { color: rgba(251, 248, 243, .55); }
.stat.accent .v { color: #E8C9A0; }
.stat.red { border-left: 3px solid var(--red); }

/* ============================ 标签 ============================ */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 2px; font-size: 11.5px;
  letter-spacing: .04em; border: 1px solid var(--line);
  background: var(--paper-2); color: var(--gray); white-space: nowrap;
}
.chip.red { background: #FBEDED; border-color: #EFD3D3; color: var(--red); }
.chip.green { background: #EDF3EE; border-color: #D4E3D7; color: var(--ok); }
.chip.amber { background: #FBF2E6; border-color: #EBD9BE; color: var(--warn); }
.chip.ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip.line { background: transparent; }

/* ============================ 列表 ============================ */
.list { display: flex; flex-direction: column; }
.item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 22px; border-bottom: 1px solid var(--line);
  cursor: pointer; transition: background .12s;
}
.item:last-child { border-bottom: none; }
.item:hover { background: #FDFBF7; }
.item .avatar {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 2px;
  background: var(--paper-2); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-family: var(--serif); letter-spacing: .04em;
}
.item .body { flex: 1; min-width: 0; }
.item .t { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.item .t b { font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.item .m { font-size: 12.5px; color: var(--gray); margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }
.item .r { font-size: 12px; color: var(--gray); text-align: right; white-space: nowrap; }
.item .r b { display: block; color: var(--ink); font-size: 14px; }

.empty { padding: 56px 24px; text-align: center; color: var(--gray); }
.empty .t { font-family: var(--serif); font-size: 16px; color: var(--ink); margin-bottom: 6px; letter-spacing: .06em; }
.empty .s { font-size: 13px; }

/* ============================ 筛选栏 ============================ */
.filters {
  display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; align-items: center;
}
.filters .input, .filters .select { width: auto; min-width: 130px; padding: 7px 12px; font-size: 13px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--white); }
.seg button {
  padding: 7px 14px; border: none; background: transparent; cursor: pointer;
  font-size: 13px; color: var(--gray); border-right: 1px solid var(--line);
}
.seg button:last-child { border-right: none; }
.seg button.on { background: var(--ink); color: var(--paper); }

/* ============================ 抽屉 / 弹层 ============================ */
.mask {
  position: fixed; inset: 0; background: rgba(51, 0, 6, .34);
  z-index: 90; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.mask.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; z-index: 91; background: var(--paper);
  right: 0; top: 0; bottom: 0; width: min(560px, 100%);
  transform: translateX(100%); transition: transform .26s cubic-bezier(.3, .8, .3, 1);
  display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(51, 0, 6, .16);
}
.sheet.on { transform: none; }
.sheet-h {
  padding: 18px 24px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--white);
}
.sheet-h h3 { margin: 0; font-family: var(--serif); font-size: 18px; font-weight: 500; letter-spacing: .06em; }
.sheet-b { flex: 1; overflow-y: auto; padding: 20px 24px 40px; }
.sheet-f { padding: 14px 24px; border-top: 1px solid var(--line); background: var(--white); display: flex; gap: 10px; }
.close-x {
  width: 32px; height: 32px; border: 1px solid var(--line); background: var(--white);
  border-radius: 2px; cursor: pointer; color: var(--gray); font-size: 16px; line-height: 1;
}

/* ============================ 表格 ============================ */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }

/* 成交卡片（手机端用，替代宽表格） */
.deal-card {
  padding: 13px 16px; border-bottom: 1px solid var(--line);
}
.deal-card:last-child { border-bottom: none; }
.deal-card .dl1 { display: flex; align-items: baseline; gap: 8px; }
.deal-card .dl1 b { font-size: 15px; letter-spacing: .02em; }
.deal-card .dl1 .amt { margin-left: auto; font-size: 16px; font-variant-numeric: tabular-nums; }
.deal-card .dl2 { margin-top: 7px; display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--gray); }
.deal-card .dl2 b { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 500; }
.deal-card .dl2 .hi { color: var(--red); }
.deal-card .dl3 { margin-top: 5px; font-size: 11.5px; color: var(--gray); display: flex; gap: 10px; }
.tbl th {
  text-align: left; font-weight: 500; color: var(--gray); font-size: 12px;
  letter-spacing: .06em; padding: 10px 12px; border-bottom: 1px solid var(--line);
  background: var(--paper-2); white-space: nowrap;
}
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: #FDFBF7; }

/* ============================ 提示 ============================ */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 16px);
  background: var(--ink); color: var(--paper); padding: 10px 20px;
  border-radius: 2px; font-size: 13.5px; letter-spacing: .02em;
  opacity: 0; pointer-events: none; transition: all .22s; z-index: 200;
  max-width: 90vw; text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--red); }

.banner {
  padding: 12px 16px; border-radius: 2px; font-size: 13px;
  border: 1px solid var(--line); background: var(--paper-2); color: var(--gray);
  margin-bottom: 16px; display: block; line-height: 1.75;
}
.banner.red { background: #FBEDED; border-color: #EFD3D3; color: var(--red-deep); }
.banner.amber { background: #FBF2E6; border-color: #EBD9BE; color: #7A4E0E; }

/* ============================ 作战地图 ============================ */
.map-hero {
  background: var(--ink); color: var(--paper);
  border-radius: var(--r); padding: 26px 28px; margin-bottom: 20px;
  position: relative; overflow: hidden;
}
.map-hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(158, 0, 12, .42), transparent 66%);
}
.map-hero .mh-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; position: relative; z-index: 1; }
.map-hero h1 {
  font-family: var(--serif); font-size: 26px; font-weight: 500; margin: 0 0 6px; letter-spacing: .14em;
}
.map-hero .sub { font-size: 12px; color: rgba(251, 248, 243, .55); letter-spacing: .08em; }
.map-kpis { display: flex; gap: 40px; margin-top: 26px; position: relative; z-index: 1; flex-wrap: wrap; }
.map-kpi .k { font-size: 11px; letter-spacing: .12em; color: rgba(251, 248, 243, .5); white-space: nowrap; }
.map-kpi .v { font-size: 30px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.map-kpi .v small { font-size: 13px; color: rgba(251, 248, 243, .5); margin-left: 3px; }
.map-kpi.hot .v { color: #E8C9A0; }

.maptabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.maptabs button {
  padding: 12px 20px; border: none; background: none; cursor: pointer;
  font-size: 14px; color: var(--gray); border-bottom: 2px solid transparent;
  white-space: nowrap; letter-spacing: .04em;
}
.maptabs button.on { color: var(--ink); border-bottom-color: var(--red); font-weight: 600; }

/* 楼层热力矩阵 */
.matrix-wrap { overflow-x: auto; }
.matrix { border-collapse: separate; border-spacing: 3px; font-size: 12px; }
.matrix th {
  font-weight: 500; font-size: 11.5px; color: var(--gray); padding: 4px 6px;
  letter-spacing: .04em; white-space: nowrap;
}
.matrix th.rowh { text-align: right; color: var(--gray); font-size: 11px; }
.matrix td {
  width: 46px; height: 34px; text-align: center; border-radius: 2px;
  font-variant-numeric: tabular-nums; font-size: 12.5px; cursor: default;
  transition: transform .12s;
}
.matrix td:hover { transform: scale(1.08); }
.matrix td.blank { background: transparent; border: 1px dashed var(--line); color: #C9BCA9; }
.heat-0 { background: #F2EDE3; color: #B8AFA3; }
.heat-1 { background: #F3E2DE; color: #7A3B32; }
.heat-2 { background: #E9C9C3; color: #6E2A22; }
.heat-3 { background: #D9A199; color: #4A120C; }
.heat-4 { background: #BE6A60; color: #fff; }
.heat-5 { background: #9E000C; color: #fff; }

.dorm-card {
  border: 1px solid var(--line); border-radius: var(--r); background: var(--white);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 8px;
}
.dorm-card.blankb { border-style: dashed; background: #FCFAF6; }
.dorm-card .dc-h { display: flex; justify-content: space-between; align-items: baseline; }
.dorm-card .dc-h b { font-size: 15px; letter-spacing: .04em; }
.dorm-card .dc-h span { font-size: 12px; color: var(--gray); }
.dorm-card .dc-num { display: flex; gap: 14px; font-size: 12px; color: var(--gray); }
.dorm-card .dc-num b { color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.dorm-card .dc-bar { height: 4px; background: var(--paper-2); border-radius: 2px; overflow: hidden; }
.dorm-card .dc-bar i { display: block; height: 100%; background: var(--red); }
.floors-dots { display: flex; gap: 3px; flex-wrap: wrap; }
.floors-dots i {
  width: 15px; height: 15px; border-radius: 1px; display: block;
}

/* 专业渗透 */
.major-row { display: grid; grid-template-columns: 132px 1fr 78px; gap: 14px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.major-row:last-child { border-bottom: none; }
.major-row .mn { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.major-row .mn small { display: block; font-size: 11px; color: var(--gray); }
.major-track { height: 20px; background: var(--paper-2); border-radius: 2px; position: relative; overflow: hidden; }
.major-fill { height: 100%; background: var(--ink); opacity: .82; border-radius: 2px 0 0 2px; }
.major-fill.over { background: var(--red); opacity: 1; }
.major-fill.near { background: #A86A16; opacity: .9; }
.major-quota {
  position: absolute; top: 0; bottom: 0; width: 2px; background: var(--red);
  box-shadow: 0 0 0 2px rgba(158, 0, 12, .14);
}
.major-row .mv { text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; }
.major-row .mv small { display: block; font-size: 11px; color: var(--gray); }

/* 排行 */
.rank-row { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.rank-row:last-child { border-bottom: none; }
.rank-row .no {
  width: 24px; font-family: var(--serif); font-size: 15px; color: var(--gray); text-align: center;
}
.rank-row .no.top { color: var(--red); font-weight: 600; }
.rank-row .who { width: 120px; font-size: 13.5px; }
.rank-row .who small { display: block; font-size: 11px; color: var(--gray); }
.rank-row .barbox { flex: 1; height: 8px; background: var(--paper-2); border-radius: 4px; overflow: hidden; }
.rank-row .barbox i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), #C0413A); border-radius: 4px; }
.rank-row .vals { width: 150px; text-align: right; font-size: 12px; color: var(--gray); font-variant-numeric: tabular-nums; }
.rank-row .vals b { color: var(--ink); font-size: 14px; }

/* 进度 */
.prog-block { padding: 14px 0; border-bottom: 1px solid var(--line); }
.prog-block:last-child { border-bottom: none; }
.prog-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.prog-top .pn { font-size: 15px; letter-spacing: .04em; }
.prog-top .pv { font-size: 13px; color: var(--gray); font-variant-numeric: tabular-nums; }
.prog-top .pv b { font-size: 20px; color: var(--ink); font-weight: 500; }
.prog-track { height: 10px; background: var(--paper-2); border-radius: 5px; overflow: hidden; position: relative; }
.prog-track i { display: block; height: 100%; background: var(--ink); border-radius: 5px; }
.prog-track i.warm { background: linear-gradient(90deg, var(--red), #C0413A); }
.prog-meta { display: flex; gap: 4px 16px; font-size: 11.5px; color: var(--gray); margin-top: 6px; flex-wrap: wrap; }

/* 时间轴 */
.timeline { position: relative; padding-left: 8px; }
.tl-node { display: flex; gap: 14px; padding: 9px 0; position: relative; }
.tl-node .dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--line);
  margin-top: 5px; flex: 0 0 9px; position: relative; z-index: 1;
}
.tl-node .dot.passed { background: var(--ink); }
.tl-node .dot.next { background: var(--red); box-shadow: 0 0 0 4px rgba(158, 0, 12, .14); }
.tl-node::before {
  content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 1px; background: var(--line);
}
.tl-node:first-child::before { top: 14px; }
.tl-node:last-child::before { bottom: calc(100% - 14px); }
.tl-node .tx { flex: 1; font-size: 13px; }
.tl-node .tx b { font-size: 13.5px; letter-spacing: .04em; }
.tl-node .tx small { display: block; color: var(--gray); font-size: 11.5px; }
.tl-node .dd { font-size: 12px; color: var(--gray); font-variant-numeric: tabular-nums; }

/* ============================ 移动端 ============================ */
.mobile-top { display: none; }
.tabbar { display: none; }

@media (max-width: 900px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-brand { padding: 40px 28px 48px; min-height: 260px; }
  .login-pitch { font-size: 25px; margin-top: 26px; max-width: none; line-height: 1.5; }
  .login-meta { gap: 26px; margin-top: 26px; }
  .login-meta b { font-size: 18px; }
  .login-panel { padding: 32px 24px 48px; }
  .login-form { max-width: 100%; }

  .sidebar { display: none; }
  .shell { flex-direction: column; }
  .topbar { display: none; }
  .mobile-top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 18px; background: var(--ink); color: var(--paper);
    position: sticky; top: 0; z-index: 30;
  }
  .mobile-top .mt-l { display: flex; align-items: center; gap: 10px; }
  .mobile-top .mt-l img { height: 22px; }
  .mobile-top .mt-r { font-size: 12px; color: rgba(251, 248, 243, .6); }
  .content { padding: 16px 14px 90px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .home-grid, .team-grid, .prog-grid { display: flex; flex-direction: column; }
  .home-grid > .card:last-child { order: -1; }
  .stat .v { font-size: 24px; }
  .card-pad { padding: 16px; }
  .card-h { padding: 14px 16px; }
  .item { padding: 12px 16px; }
  .row2, .row3 { grid-template-columns: 1fr; gap: 10px; }
  .sheet { width: 100%; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--white); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a {
    flex: 1; padding: 9px 0 8px; text-align: center; font-size: 10.5px;
    color: var(--gray); letter-spacing: .02em;
  }
  .tabbar a .ic { display: block; font-size: 17px; line-height: 1.35; }
  .tabbar a.on { color: var(--red); }
  .major-row { grid-template-columns: 96px 1fr 48px; gap: 8px; }
  .rank-row .who { width: 86px; }
  .rank-row .vals { width: 110px; }
  .map-hero { padding: 20px 18px; }
  .map-hero h1 { font-size: 21px; }
  .map-kpis { gap: 22px; margin-top: 18px; }
  .map-kpi .v { font-size: 23px; }
  .filters .input, .filters .select { min-width: 0; flex: 1; }
  .tbl { font-size: 12px; min-width: 660px; }
  .tbl th, .tbl td { padding: 8px 10px; white-space: nowrap; }
}

@media (max-width: 380px) {
  .stat-grid { grid-template-columns: 1fr; }
}
