/* ============================================================
   煤机贸易管理系统 · 全局样式（响应式：手机 / 电脑）
   商务深蓝主题
   ============================================================ */
:root {
  --primary: #1565C0;
  --primary-dark: #0D47A1;
  --deep: #1A237E;
  --accent-teal: #00897B;
  --accent-amber: #F9A825;
  --accent-red: #E53935;
  --accent-purple: #7B1FA2;
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --text: #212121;
  --muted: #616161;
  --border: #E0E0E0;
  --shadow: 0 2px 8px rgba(13, 40, 92, 0.08);
  --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", -apple-system, sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(21,101,192,.12), transparent 42%),
    radial-gradient(circle at 88% 18%, rgba(123,31,162,.10), transparent 38%),
    radial-gradient(circle at 70% 90%, rgba(0,137,123,.08), transparent 40%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }
a { color: var(--primary); text-decoration: none; }

/* ---------- 通用 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 8px; font-size: 15px; font-weight: 600;
  padding: 12px 20px; transition: opacity .15s, transform .05s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn-block { width: 100%; }
.btn-outline {
  background: #fff; color: var(--primary); border: 1px solid var(--primary);
}
.btn-outline:hover:not(:disabled) { background: #EAF2FB; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.field input {
  width: 100%; padding: 12px 14px; font-size: 15px; border: 1px solid var(--border);
  border-radius: 8px; outline: none; background: #fff; transition: border .15s;
}
.field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(21,101,192,.12); }
.field .field-error { font-size: 12px; color: var(--accent-red); margin-top: 4px; min-height: 16px; }
.input-group { display: flex; gap: 10px; }
.input-group input { flex: 1; }
.input-group .btn-code {
  white-space: nowrap; padding: 12px 14px; font-size: 13px; font-weight: 600;
  background: #fff; color: var(--primary); border: 1px solid var(--primary); border-radius: 8px;
}
.input-group .btn-code:disabled { color: var(--muted); border-color: var(--border); cursor: not-allowed; }

.form-error {
  display: none; background: #FDECEA; color: #B3261E; border: 1px solid #F5C6C0;
  border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px;
}
.form-error.show { display: block; }

/* ---------- 登录页 ---------- */
.login-wrap {
  min-height: 100vh; display: flex; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 18% 22%, rgba(33,150,243,.45), transparent 45%),
    radial-gradient(circle at 82% 78%, rgba(156,39,176,.40), transparent 45%),
    radial-gradient(circle at 60% 50%, rgba(0,137,123,.25), transparent 50%),
    linear-gradient(135deg, #0A1A45 0%, #0D2A6B 50%, #1A237E 100%);
}
/* 登录区底层飘浮光晕（磨砂玻璃透出的内容） */
.login-wrap::before, .login-wrap::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); z-index: 0; pointer-events: none;
}
.login-wrap::before {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(100,181,246,.55), rgba(100,181,246,0) 70%);
  top: -160px; left: 18%;
  animation: floatA 14s ease-in-out infinite alternate;
}
.login-wrap::after {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(186,104,200,.50), rgba(186,104,200,0) 70%);
  bottom: -140px; right: 12%;
  animation: floatB 18s ease-in-out infinite alternate;
}
@keyframes floatA { from { transform: translate(0,0); } to { transform: translate(60px, 40px); } }
@keyframes floatB { from { transform: translate(0,0); } to { transform: translate(-50px, -30px); } }

.brand-panel {
  flex: 1.15; color: #fff; display: flex; flex-direction: column; justify-content: center;
  padding: 64px 56px; position: relative; z-index: 1; overflow: hidden;
  /* 磨砂玻璃质感：半透明深蓝 + 高斯模糊 + 饱和增强 */
  background: linear-gradient(135deg, rgba(13,71,161,.42) 0%, rgba(26,35,126,.34) 60%, rgba(40,53,147,.30) 100%);
  backdrop-filter: blur(26px) saturate(170%);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  border-right: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}
.brand-panel::before {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: rgba(255,255,255,0.05); right: -140px; top: -140px;
}
.brand-panel::after {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255,255,255,0.05); left: -80px; bottom: -80px;
}
.brand-logo {
  display: inline-flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700;
  margin-bottom: 40px; position: relative; z-index: 1;
}
.brand-logo .logo-mark {
  width: 42px; height: 42px; border-radius: 10px; background: rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.brand-title { font-size: 40px; font-weight: 700; line-height: 1.3; margin-bottom: 14px; position: relative; z-index: 1; }
.brand-sub { font-size: 16px; color: rgba(255,255,255,.75); margin-bottom: 44px; position: relative; z-index: 1; }
.brand-points { list-style: none; position: relative; z-index: 1; }
.brand-points li {
  display: flex; align-items: flex-start; gap: 10px; font-size: 14px;
  color: rgba(255,255,255,.88); margin-bottom: 14px;
}
.brand-points .pt-icon {
  flex: none; width: 22px; height: 22px; border-radius: 6px; background: rgba(255,255,255,.16);
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.login-panel {
  width: 500px; display: flex; flex-direction: column;
  justify-content: center; padding: 48px 56px; position: relative; z-index: 1;
  /* 浅色磨砂玻璃：半透明白 + 模糊，透出底层光晕 */
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: inset 1px 0 0 rgba(255,255,255,.5), -8px 0 30px rgba(10,26,69,.18);
}
.login-card h1 { font-size: 22px; color: var(--deep); margin-bottom: 4px; }
.login-card .login-tip { font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.login-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.login-tabs button {
  background: none; border: none; padding: 10px 4px; margin-right: 26px; font-size: 15px;
  color: var(--muted); border-bottom: 2px solid transparent; font-weight: 600;
}
.login-tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }
.login-foot { text-align: center; font-size: 12px; color: #9E9E9E; margin-top: 28px; }
.back-to-login { display: block; text-align: center; font-size: 13px; margin-top: 16px; }

/* ---------- 看板页 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50; color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 56px;
  /* 磨砂玻璃顶栏：半透明深蓝 + 模糊，滚动内容透出 */
  background: rgba(26,35,126,.72);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border-bottom: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 4px 20px rgba(13,40,92,.10);
}
.topbar .tb-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.topbar .tb-brand .logo-mark {
  width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.topbar .tb-page { font-size: 13px; color: rgba(255,255,255,.6); border-left: 1px solid rgba(255,255,255,.2); padding-left: 14px; margin-left: 4px; }
.topbar .tb-right { display: flex; align-items: center; gap: 14px; }
.user-chip {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.1); border-radius: 20px; padding: 5px 14px 5px 6px;
}
.user-chip .avatar {
  width: 28px; height: 28px; border-radius: 50%; background: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}
.btn-logout {
  background: rgba(255,255,255,.12); color: #fff; border: none; border-radius: 8px;
  padding: 7px 14px; font-size: 13px;
}
.btn-logout:hover { background: rgba(255,255,255,.22); }

.page { max-width: 1200px; margin: 0 auto; padding: 24px 24px 48px; }
.greet-card {
  color: #fff; border-radius: var(--radius);
  padding: 22px 26px; margin-bottom: 20px; position: relative; overflow: hidden;
  /* 磨砂玻璃问候卡：半透明深蓝渐变 + 模糊 + 高光描边 */
  background: linear-gradient(120deg, rgba(21,101,192,.78), rgba(26,35,126,.70));
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 8px 28px rgba(13,40,92,.16), inset 0 1px 0 rgba(255,255,255,.18);
}
/* 问候卡右上角高光，增强磨砂质感 */
.greet-card::after {
  content: ""; position: absolute; top: -40px; right: -40px; width: 160px; height: 160px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%);
  pointer-events: none;
}
.greet-card .g-hi { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.greet-card .g-sub { font-size: 13px; color: rgba(255,255,255,.78); }

.section-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: var(--deep); margin: 26px 0 14px; }
.section-title::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--primary); }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.kpi-card {
  background: var(--surface); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); border-top: 3px solid var(--primary); position: relative;
}
.kpi-card .k-label { font-size: 13px; color: var(--muted); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.kpi-card .k-value { font-size: 26px; font-weight: 700; color: var(--deep); font-variant-numeric: tabular-nums; }
.kpi-card .k-extra { font-size: 12px; color: var(--muted); margin-top: 8px; }
.kpi-card.c-teal { border-top-color: var(--accent-teal); }
.kpi-card.c-amber { border-top-color: var(--accent-amber); }
.kpi-card.c-purple { border-top-color: var(--accent-purple); }
.kpi-card .k-icon { position: absolute; right: 16px; top: 16px; font-size: 20px; opacity: .35; }

.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; min-width: 0;
}
.rank-list { list-style: none; }
.rank-list li {
  display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border);
}
.rank-list li:last-child { border-bottom: none; }
.rank-no {
  flex: none; width: 22px; height: 22px; border-radius: 6px; background: #EAF2FB; color: var(--primary);
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.rank-no.top1 { background: var(--accent-red); color: #fff; }
.rank-no.top2 { background: #F57C00; color: #fff; }
.rank-no.top3 { background: var(--accent-amber); color: #fff; }
.rank-main { flex: 1; min-width: 0; }
.rank-name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-bar { height: 6px; border-radius: 3px; background: #EEF2F7; margin-top: 6px; overflow: hidden; }
.rank-bar span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #64B5F6, var(--primary)); }
.rank-amt { font-size: 14px; font-weight: 700; color: var(--deep); font-variant-numeric: tabular-nums; white-space: nowrap; }

.remind-list { list-style: none; }
.remind-list li {
  display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--border);
  font-size: 13px; align-items: flex-start;
}
.remind-list li:last-child { border-bottom: none; }
.remind-tag {
  flex: none; font-size: 11px; font-weight: 700; border-radius: 5px; padding: 2px 8px; margin-top: 2px;
}
.remind-tag.t-red { background: #FDECEA; color: #C62828; }
.remind-tag.t-amber { background: #FFF6E0; color: #B28704; }
.remind-tag.t-teal { background: #E0F2F1; color: #00695C; }
.remind-tag.t-blue { background: #EAF2FB; color: #1565C0; }

.module-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.module-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 14px; text-align: center; position: relative; opacity: .72;
}
.module-item .m-icon { font-size: 24px; margin-bottom: 8px; }
.module-item .m-name { font-size: 14px; font-weight: 600; color: var(--text); }
.module-item .m-desc { font-size: 11px; color: var(--muted); margin-top: 3px; }
.module-item .m-badge {
  position: absolute; top: 10px; right: 10px; font-size: 10px; background: #ECEFF1;
  color: #78909C; border-radius: 4px; padding: 1px 6px;
}

.empty-state { text-align: center; padding: 36px 10px; color: var(--muted); font-size: 13px; }
.empty-state .es-icon { font-size: 30px; margin-bottom: 8px; opacity: .5; }

.loading-state { text-align: center; padding: 40px; color: var(--muted); font-size: 14px; }
.loading-state .spinner {
  width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--primary);
  border-radius: 50%; margin: 0 auto 12px; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 响应式（手机） ---------- */
@media (max-width: 900px) {
  .login-wrap { flex-direction: column; }
  .brand-panel { flex: none; padding: 34px 26px; }
  .brand-title { font-size: 26px; margin-bottom: 8px; }
  .brand-sub { margin-bottom: 18px; font-size: 14px; }
  .brand-points { display: none; }
  .brand-logo { margin-bottom: 18px; }
  .login-panel { width: 100%; padding: 30px 22px 44px; }
  .two-col { grid-template-columns: 1fr; }
  .page { padding: 16px 14px 40px; }
  .topbar { padding: 0 14px; }
  .topbar .tb-page { display: none; }
  .user-chip .uc-name { display: none; }
  .kpi-card .k-value { font-size: 22px; }
}

/* ============================================================
   迭代二：业务模块页通用（页头 / 页签 / 数据表 / 弹窗 / 行编辑器）
   ============================================================ */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h2 { font-size: 20px; color: var(--deep); }
.page-head .ph-tip { font-size: 12px; color: var(--muted); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar .search-input {
  padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; outline: none; min-width: 220px; background: #fff;
}
.toolbar .search-input:focus { border-color: var(--primary); }
.toolbar select {
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; background: #fff; outline: none;
}
.archive-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.archive-tabs button {
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  padding: 8px 18px; font-size: 14px; color: var(--muted); font-weight: 600;
}
.archive-tabs button.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.card-table { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px 10px 12px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 680px; }
.data-table th {
  text-align: left; padding: 11px 10px; background: #F5F7FA; color: var(--deep);
  font-weight: 700; white-space: nowrap; border-bottom: 2px solid var(--border);
}
.data-table td { padding: 10px; border-bottom: 1px solid #ECEFF1; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: #FAFBFD; }
.td-money { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.td-no { font-weight: 700; color: var(--primary); white-space: nowrap; }

.btn-mini {
  border: none; background: #EAF2FB; color: var(--primary); font-size: 12px;
  font-weight: 600; border-radius: 6px; padding: 5px 10px; margin-right: 6px; white-space: nowrap;
}
.btn-mini.danger { background: #FDECEA; color: #C62828; }
.btn-mini:hover { opacity: .85; }

.pill { display: inline-block; font-size: 11px; border-radius: 5px; padding: 2px 8px; font-weight: 700; white-space: nowrap; }
.pill.p-grey { background: #ECEFF1; color: #607D8B; }
.pill.p-blue { background: #EAF2FB; color: #1565C0; }
.pill.p-green { background: #E8F5E9; color: #2E7D32; }
.pill.p-amber { background: #FFF6E0; color: #B28704; }
.pill.p-red { background: #FDECEA; color: #C62828; }

.modal-mask {
  position: fixed; inset: 0; background: rgba(13, 40, 92, .45); display: none;
  align-items: flex-start; justify-content: center; z-index: 100;
  padding: 28px 14px; overflow-y: auto;
}
.modal-mask.open { display: flex; }
.modal {
  background: #fff; border-radius: 14px; width: 100%; max-width: 720px;
  padding: 24px 26px; box-shadow: 0 12px 40px rgba(13, 40, 92, .25);
}
.modal h3 { font-size: 17px; color: var(--deep); margin-bottom: 18px; }
.modal .modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .span2 { grid-column: span 2; }
.form-grid textarea, .form-grid select {
  width: 100%; padding: 11px 12px; font-size: 14px; border: 1px solid var(--border);
  border-radius: 8px; outline: none; background: #fff; font-family: inherit;
}
.form-grid textarea { min-height: 64px; resize: vertical; }

.line-editor { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-top: 6px; }
.line-head, .line-row {
  display: grid; grid-template-columns: 1.6fr .7fr 1fr 1fr 36px;
  gap: 8px; align-items: center; padding: 8px 10px;
}
.line-head { background: #F5F7FA; font-size: 12px; color: var(--deep); font-weight: 700; }
.line-row { border-bottom: 1px solid #ECEFF1; }
.line-row:last-child { border-bottom: none; }
.line-row input, .line-row select {
  width: 100%; padding: 8px; font-size: 13px; border: 1px solid var(--border);
  border-radius: 6px; outline: none; background: #fff; min-width: 0;
}
.line-row .lr-amt { font-size: 13px; font-weight: 700; color: var(--deep); text-align: right; white-space: nowrap; }
.line-row .lr-del {
  border: none; background: #FDECEA; color: #C62828; border-radius: 6px;
  width: 30px; height: 30px; font-size: 14px; line-height: 1;
}
.total-bar { display: flex; justify-content: flex-end; align-items: center; gap: 18px; padding: 12px 10px 2px; font-size: 14px; flex-wrap: wrap; }
.total-bar b { font-size: 17px; color: var(--deep); }

.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 16px; }
.detail-item { background: #F5F7FA; border-radius: 8px; padding: 10px 12px; }
.detail-item .d-k { font-size: 12px; color: var(--muted); }
.detail-item .d-v { font-size: 14px; font-weight: 600; margin-top: 2px; word-break: break-all; }
.status-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.status-row .pill { font-size: 12px; padding: 4px 10px; }
.status-row .sr-label { font-size: 12px; color: var(--muted); }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; margin-bottom: 12px; font-weight: 600; }

.module-item.link { opacity: 1; border-color: var(--primary); cursor: pointer; transition: transform .1s, box-shadow .15s; display: block; }
.module-item.link:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(21, 101, 192, .18); }
.module-item.link .m-badge { background: #E8F5E9; color: #2E7D32; }

.toast {
  position: fixed; left: 50%; bottom: 36px; transform: translateX(-50%);
  background: rgba(33, 33, 33, .92); color: #fff; font-size: 14px;
  border-radius: 8px; padding: 11px 22px; z-index: 200; box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.toast.ok { background: #2E7D32; }
.toast.err { background: #C62828; }

/* ---------- 凭证照片上传 / 浏览 ---------- */
.photo-uploader { display: flex; flex-wrap: wrap; gap: 10px; }
.ph-thumb {
  position: relative; width: 76px; height: 76px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border); background: #EEF2F7; cursor: zoom-in; flex: none;
}
.ph-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-thumb.ph-error {
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #90A4AE; cursor: default;
}
.ph-del {
  position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border: none;
  border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px;
  line-height: 1; display: flex; align-items: center; justify-content: center;
}
.ph-del:hover { background: #C62828; }
.ph-add {
  width: 76px; height: 76px; border: 1.5px dashed #90A4AE; border-radius: 8px;
  background: #FAFBFD; color: #607D8B; font-size: 11px; font-weight: 600;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.ph-add:hover { border-color: var(--primary); color: var(--primary); }
.pv-group-label {
  font-size: 13px; font-weight: 700; color: var(--deep);
  margin: 12px 0 8px; padding-left: 8px; border-left: 3px solid var(--primary);
}
.pv-group-label:first-child { margin-top: 0; }

/* 登录页身份徽章（输入手机号后即时显示） */
.id-badge {
  margin-top: 6px; min-height: 18px; font-size: 12.5px; font-weight: 700; line-height: 1.4;
}
.id-badge.ok { color: #2E7D32; }
.id-badge.bad { color: #C62828; }

/* 数量输入超限实时提示 */
.line-row input.input-invalid { border-color: #C62828 !important; background: #FDECEA; }

/* 行编辑器 · 介绍人模式（多一列伙伴单价） */
.line-head.partner, .line-row.partner { grid-template-columns: 1.4fr .6fr .9fr .9fr 1fr 36px; }

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span2 { grid-column: span 1; }
  .line-head { display: none; }
  .line-row { grid-template-columns: 1fr 70px 90px 36px; }
  .line-row.partner { grid-template-columns: 1fr 56px 76px 76px 36px; }
  .line-row .lr-amt { display: none; }
  .modal { padding: 18px 14px; }
  .toolbar .search-input { min-width: 0; flex: 1; }
  .toolbar select { flex: 1; }
}
