/* ==========================================================================
   牦犀胶库存台账系统 —— 样式
   设计取向：工厂手机端优先，大按钮、高对比、少层级
   ========================================================================== */

:root {
  --green-900: #1d3f35;
  --green-800: #244c40;
  --green-700: #2e5c4e;
  --green-600: #3a7361;
  --green-100: #e6efeb;
  --green-50: #f1f6f4;

  --gold: #b8912f;
  --gold-soft: #f5edda;

  --red: #b8433a;
  --red-soft: #fbeceb;
  --blue: #2f6ea5;
  --blue-soft: #e9f1f8;

  --ink: #1f2321;
  --ink-2: #4a5450;
  --ink-3: #7d8783;
  --line: #e3e5e2;
  --bg: #f4f5f2;
  --card: #ffffff;

  --r: 12px;
  --r-lg: 16px;
  --shadow: 0 1px 2px rgba(20, 30, 26, 0.04), 0 4px 16px rgba(20, 30, 26, 0.06);
  --shadow-lift: 0 2px 6px rgba(20, 30, 26, 0.08), 0 12px 32px rgba(20, 30, 26, 0.1);
  --tab-h: 62px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ---------------------------------- 通用 ---------------------------------- */
.hidden {
  display: none !important;
}

.mono {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}

.center {
  text-align: center;
}

.muted {
  color: var(--ink-3);
}

.small {
  font-size: 12.5px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  font-weight: 500;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--green-600);
  color: var(--green-700);
}

.btn:active {
  transform: scale(0.98);
}

.btn.primary {
  background: var(--green-700);
  color: #fff;
  border-color: var(--green-700);
}

.btn.primary:hover {
  background: var(--green-800);
  color: #fff;
}

.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink-2);
}

.btn.ghost:hover {
  background: var(--green-50);
  color: var(--green-700);
}

.btn.danger {
  color: var(--red);
  border-color: #ecc9c6;
  background: #fff;
}

.btn.danger:hover {
  background: var(--red-soft);
}

.btn.sm {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: 8px;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
}

.input,
.select,
textarea.input {
  height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  width: 100%;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

textarea.input {
  height: auto;
  padding: 10px 12px;
  resize: vertical;
  min-height: 68px;
}

.input:focus,
.select:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(58, 115, 97, 0.12);
}

.card {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(227, 229, 226, 0.7);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  background: var(--green-50);
  color: var(--green-700);
}

.tag.gold {
  background: var(--gold-soft);
  color: var(--gold);
}

.tag.red {
  background: var(--red-soft);
  color: var(--red);
}

.tag.gray {
  background: #f0f1ef;
  color: var(--ink-3);
}

.tag.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

/* ---------------------------------- 登录 ---------------------------------- */
#login-view {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(1100px 500px at 15% -10%, #2e5c4e 0%, transparent 62%),
    radial-gradient(900px 460px at 105% 110%, #1d3f35 0%, transparent 58%),
    #16241f;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 20px;
  padding: 34px 30px 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
  animation: rise 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

.login-brand .mark {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--green-600), var(--green-900));
  display: grid;
  place-items: center;
  color: #f3e6c4;
  font-size: 25px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(29, 63, 53, 0.3);
}

.login-brand h1 {
  margin: 0;
  font-size: 19px;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.login-brand p {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: 1.5px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-form .input {
  height: 48px;
}

.login-err {
  background: var(--red-soft);
  color: var(--red);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  display: none;
}

.login-err.show {
  display: block;
}

.login-foot {
  margin-top: 20px;
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.7;
}

/* ---------------------------------- 主框架 ---------------------------------- */
#main-view {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--green-800);
  color: #fff;
  padding: 0 16px;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

.app-header .logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  font-size: 15px;
  flex: none;
}

.app-header .title {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-header .spacer {
  flex: 1;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 13px;
  cursor: pointer;
}

.user-chip .avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
}

.app-body {
  flex: 1;
  display: flex;
  min-height: 0;
}

.side-nav {
  display: none;
  width: 196px;
  flex: none;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 14px 10px;
  flex-direction: column;
  gap: 3px;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: 0.14s;
}

.side-nav a:hover {
  background: var(--green-50);
  color: var(--green-700);
}

.side-nav a.active {
  background: var(--green-700);
  color: #fff;
}

.side-nav a .ico {
  width: 18px;
  text-align: center;
  font-size: 15px;
}

.page {
  flex: 1;
  min-width: 0;
  padding: 16px 16px calc(var(--tab-h) + 28px);
  max-width: 100%;
}

.tab-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--tab-h);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  display: flex;
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom);
}

.tab-bar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--ink-3);
  text-decoration: none;
  font-size: 11px;
  transition: 0.14s;
}

.tab-bar a .ico {
  font-size: 19px;
  line-height: 1;
}

.tab-bar a.active {
  color: var(--green-700);
  font-weight: 600;
}

.tab-bar a.active .ico {
  transform: translateY(-1px);
}

@media (min-width: 900px) {
  .side-nav {
    display: flex;
  }
  .tab-bar {
    display: none;
  }
  .page {
    padding: 24px 28px 40px;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
  }
}

/* ---------------------------------- 页头 ---------------------------------- */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.page-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.2px;
}

.page-head .sub {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 3px;
}

.head-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---------------------------------- 指标卡 ---------------------------------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

@media (min-width: 700px) {
  .kpi-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
}

.kpi {
  background: var(--card);
  border-radius: var(--r);
  padding: 14px 15px;
  border: 1px solid rgba(227, 229, 226, 0.8);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.kpi .label {
  font-size: 12px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 5px;
}

.kpi .value {
  font-size: 24px;
  font-weight: 680;
  letter-spacing: -0.5px;
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.kpi .unit {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-3);
  margin-left: 3px;
}

.kpi .foot {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 4px;
}

.kpi.accent {
  background: linear-gradient(150deg, var(--green-700), var(--green-900));
  color: #fff;
  border-color: transparent;
}

.kpi.accent .label,
.kpi.accent .unit,
.kpi.accent .foot {
  color: rgba(255, 255, 255, 0.72);
}

.kpi.warn .value {
  color: var(--red);
}

/* ---------------------------------- 工具条 ---------------------------------- */
.toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
}

.toolbar .input,
.toolbar .select {
  height: 38px;
  width: auto;
  min-width: 122px;
  font-size: 13.5px;
}

.toolbar .grow {
  flex: 1;
  min-width: 150px;
}

.seg {
  display: inline-flex;
  background: #eceeeb;
  border-radius: 9px;
  padding: 3px;
  gap: 2px;
}

.seg button {
  padding: 6px 13px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
  transition: 0.15s;
}

.seg button.active {
  background: #fff;
  color: var(--green-700);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-weight: 600;
}

/* ---------------------------------- 表格 ---------------------------------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--r);
  background: #fff;
  border: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
}

table.data {
  font-size: 13.5px;
  min-width: 100%;
}

table.data thead th {
  background: var(--green-800);
  color: rgba(255, 255, 255, 0.94);
  font-weight: 500;
  font-size: 12.5px;
  text-align: left;
  padding: 10px 12px;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
}

table.data tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f1ef;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

table.data tbody tr:last-child td {
  border-bottom: none;
}

table.data tbody tr:hover {
  background: var(--green-50);
}

table.data tfoot td {
  padding: 10px 12px;
  background: #fafbf9;
  font-weight: 650;
  border-top: 2px solid var(--green-100);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

table.data td.num,
table.data th.num {
  text-align: right;
}

table.data td.strong {
  font-weight: 600;
  color: var(--green-800);
}

.empty {
  padding: 44px 20px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13.5px;
}

.empty .big {
  font-size: 30px;
  opacity: 0.4;
  display: block;
  margin-bottom: 8px;
}

/* ---------------------------------- 快速录入 ---------------------------------- */
.entry-wrap {
  max-width: 560px;
  margin: 0 auto;
}

.dir-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.dir-btn {
  height: 92px;
  border-radius: var(--r-lg);
  border: 2px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-2);
  transition: all 0.16s;
  box-shadow: var(--shadow);
}

.dir-btn .ico {
  font-size: 24px;
  line-height: 1;
}

.dir-btn small {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ink-3);
}

.dir-btn.in.active {
  border-color: var(--green-600);
  background: var(--green-50);
  color: var(--green-700);
}

.dir-btn.out.active {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: #8a6c1d;
}

.step {
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  animation: rise 0.3s ease;
}

.step-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
}

.step-no {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--green-700);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex: none;
}

.step-title {
  font-size: 14px;
  font-weight: 600;
}

.step-hint {
  font-size: 12px;
  color: var(--ink-3);
  margin-left: auto;
}

.mat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 9px;
}

.mat-btn {
  border: 1.5px solid var(--line);
  border-radius: 11px;
  background: #fff;
  padding: 11px 10px;
  text-align: left;
  transition: all 0.15s;
}

.mat-btn .nm {
  font-size: 14px;
  font-weight: 600;
  display: block;
  line-height: 1.3;
}

.mat-btn .st {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 3px;
  display: block;
}

.mat-btn.active {
  border-color: var(--green-600);
  background: var(--green-50);
  box-shadow: 0 0 0 3px rgba(58, 115, 97, 0.1);
}

.mat-btn.active .st {
  color: var(--green-700);
}

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  padding: 8px 13px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  transition: 0.15s;
}

.chip.active {
  border-color: var(--green-600);
  background: var(--green-700);
  color: #fff;
}

.chip .cnt {
  font-size: 11px;
  opacity: 0.72;
  margin-left: 3px;
}

.qty-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-box input {
  flex: 1;
  height: 62px;
  font-size: 30px;
  font-weight: 650;
  text-align: center;
  border-radius: 12px;
  border: 2px solid var(--line);
  outline: none;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
  background: #fcfdfc;
}

.qty-box input:focus {
  border-color: var(--green-600);
  background: #fff;
}

.qty-unit {
  font-size: 14px;
  color: var(--ink-3);
  min-width: 32px;
}

.qty-step {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 21px;
  color: var(--ink-2);
  display: grid;
  place-items: center;
  flex: none;
}

.qty-hint {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
}

.submit-bar {
  position: sticky;
  bottom: calc(var(--tab-h) + 8px);
  margin-top: 14px;
}

.btn-submit {
  width: 100%;
  height: 58px;
  border-radius: 14px;
  background: var(--green-700);
  color: #fff;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: 1px;
  box-shadow: 0 8px 22px rgba(46, 92, 78, 0.28);
  transition: 0.16s;
}

.btn-submit:active {
  transform: scale(0.985);
}

.btn-submit.gold {
  background: #a8802a;
  box-shadow: 0 8px 22px rgba(168, 128, 42, 0.28);
}

.btn-submit:disabled {
  background: #b7bdb9;
  box-shadow: none;
}

@media (min-width: 900px) {
  .submit-bar {
    position: static;
  }
}

.success-pop {
  position: fixed;
  inset: 0;
  background: rgba(18, 26, 23, 0.5);
  display: grid;
  place-items: center;
  z-index: 200;
  padding: 24px;
  animation: fade 0.2s ease;
}

.success-card {
  background: #fff;
  border-radius: 18px;
  padding: 32px 28px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lift);
  animation: rise 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.success-card .tick {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 30px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}

.success-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.success-card .msg {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
}

.success-card .msg b {
  color: var(--green-800);
  font-size: 17px;
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ---------------------------------- 图表 ---------------------------------- */
.chart-card {
  background: #fff;
  border-radius: var(--r);
  border: 1px solid var(--line);
  padding: 15px 16px;
  box-shadow: var(--shadow);
}

.chart-card h4 {
  margin: 0 0 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 130px;
  padding-top: 8px;
}

.bars .bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  height: 100%;
  justify-content: flex-end;
}

.bars .pair {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 100%;
  width: 100%;
  justify-content: center;
}

.bars .bar {
  width: 13px;
  border-radius: 3px 3px 0 0;
  min-height: 2px;
  transition: height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.bars .bar.in {
  background: var(--green-600);
}

.bars .bar.out {
  background: var(--gold);
}

.bars .lbl {
  font-size: 10.5px;
  color: var(--ink-3);
  white-space: nowrap;
}

.legend {
  display: flex;
  gap: 14px;
  font-size: 11.5px;
  color: var(--ink-3);
}

.legend i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: inline-block;
  margin-right: 4px;
}

/* ---------------------------------- 弹窗 ---------------------------------- */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(18, 26, 23, 0.42);
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 18px;
  animation: fade 0.18s ease;
  overflow-y: auto;
}

.modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-lift);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  animation: rise 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-head {
  padding: 17px 20px 13px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 620;
}

.modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.modal-foot {
  padding: 13px 20px 17px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 9px;
  justify-content: flex-end;
}

.modal-x {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: var(--ink-3);
  font-size: 18px;
  display: grid;
  place-items: center;
}

.modal-x:hover {
  background: #f2f3f1;
}

/* ---------------------------------- Toast ---------------------------------- */
#toast-wrap {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
  width: calc(100% - 32px);
  max-width: 460px;
}

.toast {
  background: #232b27;
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.24);
  animation: drop 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  max-width: 100%;
}

.toast.err {
  background: var(--red);
}

.toast.ok {
  background: var(--green-700);
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------------------------------- 杂项 ---------------------------------- */
.section-title {
  font-size: 14px;
  font-weight: 620;
  margin: 22px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: '';
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--green-600);
}

.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-bottom: 1px solid #f2f3f1;
  background: #fff;
}

.list-row:last-child {
  border-bottom: none;
}

.list-row .grow {
  flex: 1;
  min-width: 0;
}

.list-row .nm {
  font-size: 14px;
  font-weight: 550;
}

.list-row .meta {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}

.scroll-y {
  overflow-y: auto;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  display: inline-block;
}

@media print {
  .app-header,
  .tab-bar,
  .side-nav,
  .toolbar,
  .head-actions {
    display: none !important;
  }
  .page {
    padding: 0;
  }
}
