:root {
  --ink: #1A1815;
  --green: #4A6E5A;
  --green-soft: #EAF1EC;
  --gold: #B89968;
  --gold-soft: #F5EEE2;
  --cinnabar: #A8443C;
  --cinnabar-soft: #F8EAE8;
  --paper: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #FAFAF8;
  --line: #E6E3DC;
  --line-soft: #EFEDE7;
  --text: #1A1815;
  --text-2: #6B6459;
  --text-3: #9C9488;
  --blue: #3E6B8C;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(26, 24, 21, .05), 0 8px 24px -12px rgba(26, 24, 21, .14);
  --shadow-lg: 0 24px 60px -24px rgba(26, 24, 21, .32);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: "Songti SC", "STSong", "SimSun", "NSimSun", "Noto Serif SC",
    "Source Han Serif SC", serif;
  background: var(--paper);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* ============================= 登录 ============================= */

.login-layer {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(1100px 520px at 12% -8%, #E7EFE9 0%, transparent 60%),
    radial-gradient(900px 480px at 92% 108%, #F5EEE2 0%, transparent 58%),
    var(--paper);
  z-index: 60;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 392px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px 34px 26px;
  box-shadow: var(--shadow-lg);
}

.login-brand { text-align: center; margin-bottom: 24px; }

.login-logo {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--green), #35563F);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  display: grid;
  place-items: center;
  letter-spacing: 1px;
}

.login-brand h1 { margin: 0; font-size: 21px; letter-spacing: 3px; }
.login-brand p { margin: 6px 0 0; color: var(--text-3); font-size: 12px; letter-spacing: .4px; }

.field { display: block; margin-bottom: 15px; }
.field > span {
  display: block;
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 6px;
  letter-spacing: .5px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--surface-2);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(74, 110, 90, .13);
  background: var(--surface);
}

.login-error {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--cinnabar);
  font-size: 12.5px;
  text-align: center;
}

.login-hint {
  margin: 14px 0 0;
  font-size: 11.5px;
  color: var(--text-3);
  text-align: center;
  line-height: 1.7;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

/* ============================= 布局 ============================= */

.app { display: flex; height: 100vh; overflow: hidden; }

.sidebar {
  width: 218px;
  flex: 0 0 218px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
}

.brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 18px; }

.brand-logo {
  width: 36px; height: 36px; border-radius: 11px;
  background: linear-gradient(145deg, var(--green), #35563F);
  color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 17px;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { font-size: 14.5px; letter-spacing: 1px; }
.brand-text small { color: var(--text-3); font-size: 11px; }

.nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  cursor: pointer;
  font-size: 13.5px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  transition: background .14s, color .14s;
}

.nav-item:hover { background: var(--surface-2); color: var(--text); }

.nav-item.active {
  background: var(--green-soft);
  color: #2F4A3A;
  font-weight: 600;
}

.nav-item .nav-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; opacity: .45; flex: 0 0 7px;
}

.nav-item.active .nav-dot { opacity: 1; }
.nav-sep { height: 1px; background: var(--line-soft); margin: 9px 4px; }

.sidebar-foot { border-top: 1px solid var(--line-soft); padding-top: 12px; }

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  margin-bottom: 9px;
}

.user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold-soft); color: #7A6034;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
}

.user-meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.user-meta strong { font-size: 12.5px; }
.user-meta small { font-size: 10.5px; color: var(--text-3); }

/* ============================= 主区 ============================= */

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 14px 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar-title h2 { margin: 0; font-size: 18px; letter-spacing: .5px; }
.topbar-title p { margin: 3px 0 0; font-size: 12px; color: var(--text-3); }

.topbar-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.inline-field { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.inline-field select,
.inline-field input {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  font-family: inherit;
  font-size: 12.5px;
  color: var(--text);
}
.inline-field select:focus,
.inline-field input:focus { outline: none; border-color: var(--green); }

.quick-range { display: flex; gap: 5px; }

.chip {
  padding: 5px 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-2);
  cursor: pointer;
  font-family: inherit;
  transition: all .14s;
}
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.active { background: var(--green); border-color: var(--green); color: #fff; }

.view { flex: 1; overflow-y: auto; padding: 20px 22px 40px; }

/* ============================= 组件 ============================= */

.btn {
  padding: 8px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all .14s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--text-3); }
.btn-primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn-primary:hover { background: #3E5F4C; border-color: #3E5F4C; }
.btn-danger { color: var(--cinnabar); border-color: #E8CFCC; background: var(--cinnabar-soft); }
.btn-danger:hover { background: #F3DCDA; }
.btn-ghost { background: var(--surface-2); }
.btn-block { width: 100%; }
.btn-sm { padding: 4px 9px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.icon-btn {
  border: none; background: none; font-size: 22px; line-height: 1;
  color: var(--text-3); cursor: pointer; padding: 0 4px;
}
.icon-btn:hover { color: var(--text); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.card-head h3 { margin: 0; font-size: 14px; letter-spacing: .4px; }
.card-head p { margin: 2px 0 0; font-size: 11.5px; color: var(--text-3); }
.card-head .head-actions { display: flex; gap: 7px; }

.grid { display: grid; gap: 14px; }
.grid-kpi { grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.mt { margin-top: 14px; }

/* KPI 卡片 */
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 16px 13px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.kpi::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--green);
}
.kpi.accent-gold::before { background: var(--gold); }
.kpi.accent-cinnabar::before { background: var(--cinnabar); }
.kpi.accent-blue::before { background: var(--blue); }

.kpi-label { font-size: 11.5px; color: var(--text-3); letter-spacing: .5px; margin-bottom: 7px; }
.kpi-value { font-size: 23px; font-weight: 700; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.kpi-value small { font-size: 12px; font-weight: 500; color: var(--text-3); margin-left: 3px; }
.kpi-sub { margin-top: 6px; font-size: 11.5px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }

.trend-up { color: var(--cinnabar); font-weight: 600; }
.trend-down { color: var(--green); font-weight: 600; }
.trend-flat { color: var(--text-3); }

/* 图表容器 */
.chart-wrap { position: relative; width: 100%; }
.chart-wrap.h-240 { height: 240px; }
.chart-wrap.h-200 { height: 200px; }
.chart-wrap.h-180 { height: 180px; }

/* 表格 */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  white-space: nowrap;
}
table.data th {
  background: var(--surface-2);
  color: var(--text-2);
  font-weight: 600;
  text-align: left;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  position: sticky; top: 0; z-index: 1;
}
table.data td {
  padding: 9px 11px;
  border-bottom: 1px solid var(--line-soft);
  font-variant-numeric: tabular-nums;
}
table.data tbody tr:hover { background: var(--surface-2); }
table.data td.num, table.data th.num { text-align: right; }
table.data td.actions { text-align: right; }
.empty { text-align: center; color: var(--text-3); padding: 34px 0; font-size: 13px; }

/* 标签 */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11.5px;
  line-height: 1.7;
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--line);
}
.tag-green { background: var(--green-soft); color: #35563F; border-color: #D3E2D7; }
.tag-gold { background: var(--gold-soft); color: #7A6034; border-color: #E8DAC0; }
.tag-red { background: var(--cinnabar-soft); color: #8B342D; border-color: #EBD2CF; }
.tag-blue { background: #E9F0F5; color: #33566F; border-color: #CFDEE8; }
.tag-gray { background: #F0EDE8; color: var(--text-2); }

/* 进度条 */
.bar { height: 6px; border-radius: 4px; background: var(--line-soft); overflow: hidden; min-width: 60px; }
.bar > i { display: block; height: 100%; border-radius: 4px; background: var(--green); }
.bar.gold > i { background: var(--gold); }
.bar.red > i { background: var(--cinnabar); }

/* 列表 */
.list { display: flex; flex-direction: column; gap: 2px; }
.list-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
}
.list-row:last-child { border-bottom: none; }
.list-row .lr-main { min-width: 0; }
.list-row .lr-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .lr-sub { color: var(--text-3); font-size: 11.5px; margin-top: 2px; }

/* 分页 */
.pager {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 12px; font-size: 12.5px; color: var(--text-2);
}
.pager .pager-btns { display: flex; gap: 6px; }

/* 弹窗 */
.modal {
  position: fixed; inset: 0; background: rgba(26, 24, 21, .38);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; z-index: 70; backdrop-filter: blur(2px);
}
.modal-box {
  background: var(--surface); border-radius: 16px; width: 100%;
  max-width: 640px; max-height: 88vh; display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.modal-narrow { max-width: 460px; }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line-soft);
}
.modal-head h3 { margin: 0; font-size: 15px; }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-foot {
  display: flex; justify-content: flex-end; gap: 9px;
  padding: 14px 20px; border-top: 1px solid var(--line-soft);
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.form-grid .span-2 { grid-column: span 2; }
.form-section { margin: 18px 0 4px; font-size: 12.5px; font-weight: 700; color: var(--text-2); letter-spacing: .4px; border-left: 3px solid var(--accent, #4A6E5A); padding-left: 9px; }
.form-section:first-of-type { margin-top: 6px; }

/* 绩效考核 · Q4 进度面板（时间进度 + 目标达成） */
.perf-progress { padding: 6px 2px 2px; }
.pp-row { display: flex; align-items: center; gap: 12px; margin: 10px 0; }
.pp-label { width: 64px; font-size: 13px; color: var(--text-2); font-weight: 600; flex: none; }
.pp-bar { flex: 1; height: 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.pp-fill { height: 100%; border-radius: 8px; transition: width .3s ease; }
.pp-fill.time { background: linear-gradient(90deg, #3E6B8C, #4A6E5A); }
.pp-fill.ach { background: linear-gradient(90deg, #B89968, #4A6E5A); }
.pp-val { width: 56px; text-align: right; font-weight: 700; font-size: 13px; flex: none; color: var(--text); }
.pp-timeline { display: flex; gap: 10px; margin-top: 16px; }
.pp-month { flex: 1; text-align: center; padding: 10px 6px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.pp-month .pp-m { font-weight: 700; font-size: 14px; color: var(--text); }
.pp-month .pp-ms { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.pp-month.done { opacity: .55; }
.pp-month.current { border-color: var(--green); background: var(--green-soft); box-shadow: 0 0 0 2px rgba(74, 110, 90, .18); }
.pp-month.current .pp-ms { color: var(--green); font-weight: 600; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 12px; color: var(--text-2); }
.hint { font-size: 12px; color: var(--text-3); line-height: 1.8; margin: 0 0 12px; }
.hint code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; font-size: 11.5px; }
.import-result { margin-top: 14px; font-size: 12.5px; line-height: 1.9; }
.import-result .ok { color: var(--green); font-weight: 600; }
.import-result .bad { color: var(--cinnabar); }

/* 提示条 */
.toast {
  position: fixed; top: 22px; left: 50%; transform: translate(-50%, -18px);
  background: var(--ink); color: #fff; padding: 10px 20px; border-radius: 9px;
  font-size: 13px; opacity: 0; pointer-events: none; transition: all .22s;
  z-index: 90; max-width: 70vw; box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--cinnabar); }

.skeleton {
  height: 14px; border-radius: 6px;
  background: linear-gradient(90deg, var(--line-soft) 25%, #F7F4EF 37%, var(--line-soft) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease infinite;
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.section-note {
  font-size: 12px; color: var(--text-3); margin: -6px 0 12px;
}

/* 经营概览 · 天气 + 激励语录横幅 */
.ov-banner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 16px 20px; border-radius: var(--radius); margin-bottom: 14px;
  background: linear-gradient(120deg, #2F4A3A 0%, #4A6E5A 52%, #3E6B8C 100%);
  color: #fff; box-shadow: var(--shadow); flex-wrap: wrap;
}
.ob-weather { display: flex; align-items: center; gap: 14px; }
.ob-weather .ob-icon { font-size: 32px; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,.2)); }
.ob-weather .ob-temp { font-size: 26px; font-weight: 700; letter-spacing: -.5px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ob-weather .ob-meta { font-size: 12.5px; opacity: .92; line-height: 1.5; }
.ob-weather .ob-city { font-weight: 600; }
.ob-quote {
  flex: 1; min-width: 220px; text-align: right; font-size: 13.5px; line-height: 1.6;
  font-style: italic; opacity: .97; padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, .22);
}
.ob-quote .ob-q-author { display: block; margin-top: 5px; font-size: 11.5px; opacity: .82; font-style: normal; }

/* 右上角消息提醒 */
.notify-wrap { position: relative; flex: none; }
.notify-btn {
  position: relative; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--text-2); cursor: pointer; transition: all .14s;
}
.notify-btn:hover { color: var(--green); border-color: var(--green); }
.notify-badge {
  position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px;
  padding: 0 4px; border-radius: 9px; background: var(--cinnabar); color: #fff;
  font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center;
  box-shadow: 0 0 0 2px var(--surface);
}
.notify-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: 330px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); z-index: 55; overflow: hidden;
}
.notify-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; border-bottom: 1px solid var(--line-soft); background: var(--surface-2);
}
.notify-head strong { font-size: 13px; }
.notify-count { font-size: 11.5px; color: var(--text-3); }
.notify-body { max-height: 320px; overflow-y: auto; padding: 4px 14px 10px; }
.notify-sec {
  font-size: 11px; color: var(--text-3); letter-spacing: .5px;
  margin: 10px 0 2px; padding-left: 2px; font-weight: 600;
}
.notify-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 2px; border-bottom: 1px solid var(--line-soft);
  cursor: pointer; border-radius: 6px; font-size: 12.5px;
}
.notify-item:hover { background: var(--surface-2); }
.notify-item:last-child { border-bottom: none; }
.notify-item .ni-main { min-width: 0; }
.notify-item .ni-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notify-item .ni-sub { color: var(--text-3); font-size: 11.5px; margin-top: 1px; }
.notify-item .ni-red { color: var(--cinnabar); font-weight: 600; }

/* ---------------- 绩效 · 可量化 KPI 自动回填预览 ---------------- */
.af-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 10px; background: var(--surface-2); }
.af-block:last-child { margin-bottom: 0; }
.af-head { font-size: 13px; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.af-ch { font-size: 11.5px; font-weight: 400; color: var(--text-3); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.af-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 8px; }
.af-cell { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 6px; padding: 7px 9px; }
.af-cell.manual { border-left-color: var(--line-2, #D8D2C6); opacity: .78; }
.af-k { font-size: 11.5px; color: var(--text-2); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.af-tag { font-size: 10px; line-height: 1.5; color: var(--green); border: 1px solid currentColor; border-radius: 3px; padding: 0 4px; }
.af-tag.gray { color: var(--text-3); border-color: var(--text-3); }
.af-v { font-size: 16px; font-weight: 600; margin-top: 3px; font-variant-numeric: tabular-nums; }
.af-t { font-size: 11px; color: var(--text-3); margin-top: 1px; }


/* ===================== 白底宋体 · 视觉体系 =====================
   白底 / 宋体 / 青绿与朱砂点睛 / 留白与细边框
   ================================================================ */

:root {
  --paper: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #FAFAF8;
  --line: #E6E3DC;
  --line-soft: #EFEDE7;
  --ink: #191712;
  --text-2: #6A6255;
  --text-3: #9A917F;
  --radius: 10px;
  --radius-sm: 6px;
  --serif: "Songti SC", "STSong", "SimSun", "NSimSun", "Noto Serif SC", "Source Han Serif SC", serif;
  --shadow: 0 1px 0 rgba(25, 23, 18, .04), 0 10px 30px -18px rgba(25, 23, 18, .22);
}

body {
  font-family: var(--serif);
  background: var(--paper);
}

/* 标题体系：宋体 + 疏朗字距 */
#page-title,
.login-brand h1,
.modal-head h3,
.card-head h3,
.brand-text strong,
.notify-head strong {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 2.5px;
}

#page-title { font-size: 22px; position: relative; padding-left: 14px; }
#page-title::before {
  content: "";
  position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 3px; border-radius: 2px;
  background: linear-gradient(180deg, var(--cinnabar), rgba(168, 68, 60, .25));
}
#page-desc { letter-spacing: .8px; color: var(--text-3); }

.login-brand h1 { letter-spacing: 8px; }
.login-brand p { letter-spacing: 2px; }

/* 侧栏：竖向题签，仿木匾 */
.sidebar {
  background: linear-gradient(180deg, #FFFDF8 0%, #F7F2E7 100%);
  border-right: 1px solid var(--line);
  box-shadow: 1px 0 0 rgba(25, 23, 18, .03);
}
.brand { border-bottom: 1px solid var(--line); position: relative; }
.brand::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -3px;
  border-bottom: 1px solid var(--line-soft);
}
.brand-logo,
.login-logo {
  background: linear-gradient(145deg, var(--cinnabar), #7E2E28);
  border-radius: 6px;
  font-family: var(--serif);
  letter-spacing: 0;
  box-shadow: 0 6px 16px -8px rgba(168, 68, 60, .8);
}
.brand-text strong { font-size: 16px; letter-spacing: 4px; }
.brand-text small { letter-spacing: 2px; color: var(--text-3); }

.nav-item {
  border-radius: 6px;
  font-family: var(--serif);
  letter-spacing: 1.6px;
  position: relative;
}
.nav-item.active::before {
  content: ""; position: absolute; left: -14px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; border-radius: 2px; background: var(--cinnabar);
}

/* 卡片：宣纸质地 + 朱砂细边 */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}
.card-head { border-bottom: 1px dashed var(--line); }
.card-head h3 { letter-spacing: 2px; }
.card-head p { letter-spacing: .6px; }

.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.kpi-label { letter-spacing: 1.6px; color: var(--text-2); }
.kpi-value { font-family: var(--serif); letter-spacing: .5px; }

/* 数据表：细线 + 留白 */
.data thead th {
  letter-spacing: 1.4px;
  font-family: var(--serif);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.data tbody td { border-bottom: 1px solid var(--line-soft); }

.tag { border-radius: 3px; letter-spacing: 1px; font-family: var(--serif); }

.topbar { border-bottom: 1px solid var(--line); background: rgba(253, 251, 246, .92); }

.ob-banner {
  background: linear-gradient(120deg, #FFFDF8 0%, #F4EFE2 62%, #F6EEE0 100%);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.ob-banner::after {
  content: ""; position: absolute; right: -40px; top: -60px; width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(74, 110, 90, .10), transparent 70%);
}
.ob-temp, .ob-city { font-family: var(--serif); }
.ob-quote { font-family: var(--serif); letter-spacing: 1.5px; }

/* ---------------- 二级页签（子模块） ---------------- */
.subtabs {
  display: flex; gap: 4px; margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
}
.subtab {
  appearance: none; border: none; background: transparent; cursor: pointer;
  font-family: var(--serif); font-size: 13.5px; letter-spacing: 1.6px; color: var(--text-2);
  padding: 9px 18px; border-radius: 6px 6px 0 0; position: relative; transition: color .18s, background .18s;
}
.subtab:hover { color: var(--ink); background: rgba(74, 110, 90, .06); }
.subtab.active { color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-bottom-color: var(--surface); margin-bottom: -1px; font-weight: 700; }
.subtab.active::after { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 2px; background: var(--cinnabar); }

/* ---------------- 完成进度表 ---------------- */
.pg-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; background: var(--surface-2); }
.pg-block:last-child { margin-bottom: 0; }
.pg-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.pg-title { font-family: var(--serif); font-size: 14.5px; font-weight: 700; letter-spacing: 1.6px; }
.pg-channel { font-size: 11.5px; font-weight: 400; color: var(--text-3); margin-left: 8px; letter-spacing: 1px; }
.pg-sub { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.pg-overall { font-family: var(--serif); font-size: 13px; font-weight: 700; letter-spacing: 1px; padding: 3px 10px; border-radius: 4px; border: 1px solid currentColor; }
.pg-overall.good { color: var(--green); }
.pg-overall.mid { color: var(--gold); }
.pg-overall.low { color: var(--cinnabar); }
.pg-row {
  display: grid; grid-template-columns: minmax(150px, 1.6fr) minmax(140px, 1fr) minmax(120px, 2fr) 62px;
  align-items: center; gap: 10px; padding: 6px 0; border-top: 1px dashed var(--line-soft);
}
.pg-name { font-size: 12.5px; letter-spacing: .8px; }
.pg-nums { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.pp-fill.warn { background: linear-gradient(90deg, var(--cinnabar), #C4817A); }

@media (max-width: 780px) {
  .pg-row { grid-template-columns: 1fr 1fr; }
  .pg-row .pp-bar, .pg-row .pp-val { grid-column: span 1; }
}

@media (max-width: 980px) {
  .sidebar { width: 64px; flex-basis: 64px; padding: 14px 8px; }
  .brand-text, .nav-item span:not(.nav-dot), .user-meta, #logout-btn { display: none; }
  .brand { justify-content: center; padding-bottom: 12px; }
  .nav-item { justify-content: center; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
}
