/* BGK CRM 管理端样式（无外部依赖） */
:root {
  --primary: #2563eb;
  --primary-dark: #1e46b4;
  --sidebar-bg: #0f1e3d;
  --sidebar-text: #b7c3da;
  --sidebar-active: #1d3557;
  --bg: #f2f4f8;
  --card: #ffffff;
  --border: #e3e7ee;
  --text: #1f2937;
  --text-sub: #6b7280;
  --danger: #dc2626;
  --success: #16a34a;
  --warning: #d97706;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font: 14px/1.6 "Segoe UI", "Microsoft YaHei", system-ui, sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--primary); text-decoration: none; }
a.link { color: var(--primary); }
a.link:hover { text-decoration: underline; }

/* ---------- 壳 ---------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 220px; flex-shrink: 0; background: var(--sidebar-bg); color: var(--sidebar-text); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 18px 16px; color: #fff; font-size: 17px; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.08); }
.logo-mark { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, #3b82f6, #8b5cf6); color: #fff; font-weight: 800; }
.sidebar-nav { flex: 1; padding: 10px 8px; }
.nav-group-title { padding: 12px 12px 4px; font-size: 11px; letter-spacing: 2px; color: rgba(255,255,255,.38); border-top: 1px solid rgba(255,255,255,.07); margin-top: 8px; }
.nav-group-title:first-child { border-top: none; margin-top: 0; padding-top: 4px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin: 2px 0; border-radius: 8px; color: var(--sidebar-text); font-size: 14px; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: var(--sidebar-active); color: #fff; font-weight: 600; }
.nav-icon { width: 20px; text-align: center; }
.sidebar-footer { padding: 12px 16px; font-size: 12px; color: rgba(255,255,255,.35); }
.main-area { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 0 24px; height: 56px; background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.topbar-title { font-size: 16px; font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-bell { position: relative; font-size: 18px; text-decoration: none; }
.bell-badge {
  position: absolute; top: -6px; right: -10px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--danger); color: #fff;
  font-size: 10px; line-height: 16px; text-align: center; font-weight: 700;
}
.user-chip strong { font-size: 13px; }
.user-chip em { font-style: normal; color: var(--text-sub); font-size: 12px; margin-left: 6px; }
.content { padding: 20px 24px 40px; flex: 1; }

/* ---------- 组件 ---------- */
.alert { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 13px; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.btn { display: inline-flex; align-items: center; gap: 5px; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); color: var(--text); font-size: 13px; cursor: pointer; transition: .15s; }
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: #fef2f2; border-color: var(--danger); color: var(--danger); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { color: var(--primary); }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-block { width: 100%; justify-content: center; }
.inline-form { display: inline; }

.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 18px; overflow-x: auto; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.panel-head h2 { font-size: 15px; }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 1100px) { .panel-grid { grid-template-columns: 1fr; } }

.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 18px; }
@media (max-width: 1280px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; color: var(--text); display: flex; flex-direction: column; gap: 4px; }
.stat-card:hover { border-color: var(--primary); }
.stat-label { color: var(--text-sub); font-size: 12px; }
.stat-value { font-size: 24px; font-weight: 700; }
.stat-sub { color: var(--text-sub); font-size: 12px; }

/* ---------- 表格 ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 600; color: var(--text-sub); padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 9px 10px; border-bottom: 1px solid #f0f2f6; vertical-align: middle; white-space: nowrap; }
.table tr:hover td { background: #f8faff; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table td.wrap { white-space: normal; word-break: break-word; max-width: 200px; }
.table td.td-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.table td.td-name a { font-weight: 600; }

/* 徽章精调 */
.badge {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 2px 10px; border-radius: 999px; font-size: 12px;
    font-weight: 500; letter-spacing: .3px; line-height: 1.6; white-space: nowrap;
}
.badge-green  { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.badge-red    { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.badge-orange { background: #ffedd5; color: #c2410c; border: 1px solid #fed7aa; }
.badge-blue   { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-gray   { background: #f3f4f6; color: #4b5563; border: 1px solid #e5e7eb; }
.badge-purple { background: #ede9fe; color: #6d28d9; border: 1px solid #ddd6fe; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.table-toolbar .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* 范围筛选组（数值/日期成对输入框） */
.range-group {
    display: flex; align-items: center; gap: 0;
    border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.range-group .range-input {
    border: none; border-radius: 0; padding: 7px 10px; font-size: 13px;
    min-width: 90px; background: #fff; color: var(--text); font-family: inherit;
}
.range-group .range-input:focus { outline: none; background: #f8faff; }
.range-group .range-sep {
    width: 18px; height: 100%; min-height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: #f0f2f6; color: var(--text-sub); font-size: 11px; flex-shrink: 0;
}
.range-group .range-input:first-child { border-right: 1px solid var(--border); }
.range-group .range-input:last-child { border-left: 1px solid var(--border); }
.range-group .range-op {
    border: none; background: #f0f2f6; padding: 7px 4px 7px 8px; font-size: 13px;
    color: var(--text); font-family: inherit; cursor: pointer; outline: none; flex-shrink: 0;
    max-width: 130px;
}
.range-group .range-op + .range-input { border-left: 1px solid var(--border); }
.range-group:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }

.empty { color: var(--text-sub); text-align: center; padding: 22px 0; font-size: 13px; }
.text-danger { color: var(--danger); }
.text-sub { color: var(--text-sub); }

/* ---------- 表单 ---------- */
.form-panel { max-width: 960px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 24px; }
@media (max-width: 860px) { .form-grid { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 14px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.form-group label .req { color: var(--danger); margin-left: 2px; }
.form-control { width: 100%; padding: 8px 11px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; background: #fff; color: var(--text); font-family: inherit; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
textarea.form-control { min-height: 84px; resize: vertical; }
.form-actions { display: flex; gap: 10px; margin-top: 8px; }
.form-hint { color: var(--text-sub); font-size: 12px; margin-top: 4px; }
.customer-search-wrap { position: relative; }
.customer-picker-search { margin-bottom: 6px; }
.customer-suggestions {
    position: absolute; z-index: 30; top: calc(100% - 2px); left: 0; right: 0;
    max-height: 280px; overflow-y: auto; padding: 4px; background: #fff;
    border: 1px solid var(--border); border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .14);
}
.customer-suggestions[hidden] { display: none; }
.customer-suggestion { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 6px; background: none; text-align: left; color: var(--text); font: inherit; cursor: pointer; }
.customer-suggestion:hover, .customer-suggestion[aria-selected="true"] { background: #eff6ff; color: var(--primary); }
.customer-suggestions-empty { padding: 10px; color: var(--text-sub); font-size: 12px; }
.customer-contact-head, .customer-contact-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.customer-contact-head label { margin-bottom: 5px; }
.customer-contact-head a, .customer-contact-refresh { font-size: 12px; white-space: nowrap; }
.customer-contact-refresh { border: 0; background: none; color: var(--primary); cursor: pointer; padding: 3px 0; }
.customer-contact-refresh:hover { text-decoration: underline; }
.customer-contact-head [hidden], .customer-contact-refresh[hidden] { display: none; }
.customer-optional { color: var(--text-sub); font-size: 12px; font-weight: 400; }
.menu-table-scroll { width: 100%; overflow-x: auto; }
.menu-table { min-width: 1080px; }
.menu-table td { vertical-align: middle; }
.menu-table td:nth-child(2) .form-control { min-width: 118px; }
.menu-table td:nth-child(4) .form-control { min-width: 76px; }
.menu-table td:nth-child(5) .form-control { min-width: 76px; }
.menu-table td:nth-child(6) .form-control { min-width: 168px; }
.menu-table td:nth-child(9) .form-control { min-width: 88px; }
.menu-table .menu-route { max-width: 180px; font-size: 11px; overflow-wrap: anywhere; }
.menu-table .menu-toggle { text-align: center; }
.menu-table .menu-toggle input { width: 18px; height: 18px; accent-color: var(--primary); }

/* 筛选栏 */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; }
.filter-item { display: flex; flex-direction: column; gap: 4px; }
.filter-item label { font-size: 12px; color: var(--text-sub); }
.filter-item .form-control { min-width: 130px; width: auto; }

/* 分页 */
.pagination { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; }
.pagination a, .pagination span { padding: 5px 10px; border-radius: 7px; border: 1px solid var(--border); background: var(--card); color: var(--text); }
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .disabled { color: #bbb; pointer-events: none; }
.pagination-info { color: var(--text-sub); margin-left: auto; }

/* 详情页 */
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-item { padding: 8px 0; border-bottom: 1px dashed #eef1f5; font-size: 13px; }
.detail-item .k { color: var(--text-sub); display: inline-block; min-width: 90px; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin: 18px 0 14px; }
.tabs a { padding: 8px 16px; color: var(--text-sub); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tabs a.active { color: var(--primary); border-color: var(--primary); font-weight: 600; }
.timeline { list-style: none; }
.timeline li { position: relative; padding: 0 0 16px 22px; border-left: 2px solid var(--border); margin-left: 8px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.timeline .tl-meta { color: var(--text-sub); font-size: 12px; }
.timeline .tl-body { margin-top: 3px; font-size: 13px; white-space: pre-wrap; word-break: break-word; }

/* 待办 */
.todo-form { display: flex; gap: 8px; margin-bottom: 10px; }
.todo-form input[type="text"] { flex: 1; }
.todo-list { list-style: none; }
.todo-list li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dashed #eef1f5; }
.todo-check { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--border); background: #fff; color: transparent; cursor: pointer; font-size: 11px; line-height: 1; }
.todo-check:hover { border-color: var(--success); color: var(--success); }
.todo-text { flex: 1; font-size: 13px; }
.todo-del { border: none; background: none; color: #c0c6d0; cursor: pointer; font-size: 16px; }
.todo-del:hover { color: var(--danger); }
.todo-list em { font-style: normal; font-size: 12px; color: var(--text-sub); }

/* 登录页（分屏：左系统介绍 + 右表单） */
.login-page {
  display: flex; align-items: center; justify-content: center; min-height: 100vh;
  padding: 28px 20px;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(139, 92, 246, .25), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(59, 130, 246, .3), transparent 55%),
    linear-gradient(160deg, #0f1e3d 0%, #1d3557 55%, #2563eb 130%);
}
.login-shell {
  display: flex; width: 100%; max-width: 1020px;
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(2, 8, 30, .5);
}
.login-intro {
  flex: 1.15; padding: 44px 42px 30px;
  background: linear-gradient(165deg, #10233f 0%, #16304f 60%, #1d3a63 100%);
  color: #e7edf7; display: flex; flex-direction: column;
}
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.login-brand .logo-mark { width: 46px; height: 46px; font-size: 20px; }
.login-brand h1 { font-size: 1.25rem; color: #fff; }
.login-brand p { color: rgba(231, 237, 247, .6); font-size: .78rem; }
.intro-tagline { font-size: .92rem; line-height: 1.8; color: rgba(231, 237, 247, .85); margin-bottom: 22px; }
.intro-feats { list-style: none; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.intro-feats li { display: flex; flex-direction: column; gap: 2px; padding-left: 26px; position: relative; }
.intro-feats li::before { content: "✔"; position: absolute; left: 0; top: 1px; color: #4ade80; font-weight: 700; }
.intro-feats strong { font-size: .9rem; color: #fff; }
.intro-feats span { font-size: .78rem; color: rgba(231, 237, 247, .55); }
.intro-quote {
  margin-top: 20px; padding: 10px 14px; border-radius: 10px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1);
  font-size: .8rem; color: rgba(231, 237, 247, .85);
}
.intro-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; font-size: .75rem; color: rgba(231, 237, 247, .45); }
.intro-foot a { color: #93c5fd; text-decoration: none; }
.intro-foot a:hover { text-decoration: underline; }
.login-panel { flex: 1; background: #fff; padding: 48px 44px 30px; display: flex; flex-direction: column; justify-content: center; }
.login-panel input {
  width: 100%; padding: 11px 13px; font-size: .9rem;
  border: 1px solid var(--border); border-radius: 9px; background: #fff;
  font-family: inherit; color: var(--text);
}
.login-panel input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.login-panel h2 { font-size: 1.3rem; margin-bottom: 4px; }
.login-sub { color: var(--text-sub); font-size: .85rem; margin-bottom: 22px; }
.login-links { display: flex; gap: 18px; margin-top: 18px; font-size: .82rem; }
.login-links a { color: var(--primary); text-decoration: none; }
.login-links a:hover { text-decoration: underline; }
.login-tip { margin-top: 14px; text-align: center; color: var(--text-sub); font-size: .75rem; }
@media (max-width: 880px) {
  .login-shell { flex-direction: column; max-width: 460px; }
  .login-intro { padding: 28px 26px 20px; }
  .intro-feats { gap: 8px; }
  .intro-feats span { display: none; }
  .intro-feats li::before { top: 0; }
  .intro-quote, .intro-foot span { display: none; }
  .intro-foot { margin-top: 14px; justify-content: center; }
  .login-panel { padding: 28px 26px 22px; }
}

/* 系统介绍页（公开 /about） */
.about-page { background: #f4f7fb; min-height: 100vh; color: #15253f; }
.about-wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.about-hero { position: relative; overflow: hidden; color: #fff; padding: 18px 0 74px; background: #0b1c3a; }
.about-hero::before, .about-hero::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.about-hero::before { width: 620px; height: 620px; right: -180px; top: -390px; background: rgba(65, 119, 255, .32); filter: blur(2px); }
.about-hero::after { width: 460px; height: 460px; left: -300px; bottom: -350px; background: rgba(105, 73, 214, .3); }
.about-nav { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; min-height: 46px; }
.about-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.about-brand .logo-mark { width: 38px; height: 38px; border-radius: 11px; font-size: 17px; }
.about-brand strong, .about-brand small { display: block; }
.about-brand strong { font-size: .98rem; letter-spacing: .02em; }
.about-brand small { margin-top: 1px; color: rgba(224, 233, 250, .62); font-size: .68rem; }
.about-nav-links { display: flex; align-items: center; gap: 22px; font-size: .78rem; }
.about-nav-links a { color: rgba(238, 244, 255, .72); }
.about-nav-links a:hover { color: #fff; }
.about-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); align-items: center; gap: 72px; padding-top: 72px; }
.about-hero-copy { max-width: 650px; }
.about-kicker { display: inline-block; color: #9cbcff; font-size: .68rem; font-weight: 750; letter-spacing: .18em; }
.about-kicker-dark { color: #3569c5; }
.about-hero h1 { max-width: 620px; margin-top: 15px; color: #fff; font-size: clamp(2.25rem, 5vw, 4.1rem); line-height: 1.14; letter-spacing: -.055em; }
.about-hero h1 em { color: #8db1ff; font-style: normal; }
.about-hero-copy > p { max-width: 600px; margin-top: 21px; color: rgba(224, 233, 250, .76); font-size: 1rem; line-height: 1.9; }
.about-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 29px; }
.about-actions .btn { min-height: 44px; padding: 10px 18px; border-radius: 10px; }
.about-btn-main { box-shadow: 0 8px 20px rgba(20, 86, 224, .32); }
.about-btn-ghost { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .26); color: #fff; }
.about-btn-ghost:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .42); color: #fff; }
.about-hero-note { display: flex; align-items: center; gap: 8px; margin-top: 21px; color: rgba(224, 233, 250, .55); font-size: .74rem; }
.about-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #61dbb5; box-shadow: 0 0 0 5px rgba(97, 219, 181, .12); }
.about-hero-panel { padding: 25px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.045)); box-shadow: 0 20px 60px rgba(0, 0, 0, .18); backdrop-filter: blur(12px); }
.about-panel-label { color: rgba(224, 233, 250, .66); font-size: .72rem; letter-spacing: .12em; }
.about-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 23px; }
.about-flow span { padding: 9px 10px; border: 1px solid rgba(174, 201, 255, .25); border-radius: 8px; background: rgba(255,255,255,.08); color: #f3f7ff; font-size: .79rem; }
.about-flow i { color: #89adff; font-size: .86rem; font-style: normal; }
.about-panel-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
.about-panel-stats div { display: flex; flex-direction: column; gap: 3px; }
.about-panel-stats strong { color: #fff; font-size: 1.35rem; letter-spacing: -.03em; }
.about-panel-stats span { color: rgba(224, 233, 250, .58); font-size: .7rem; }
.about-main { padding: 0 0 56px; }
.about-section { padding-top: 70px; }
.about-section-head { max-width: 650px; }
.about-section-head h2 { margin-top: 8px; color: #172b4d; font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.035em; }
.about-section-head p { margin-top: 9px; color: #687b95; font-size: .88rem; line-height: 1.8; }
.about-section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 25px; max-width: none; }
.about-section-head-row > p { max-width: 300px; margin: 0; text-align: right; }
.about-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 31px; padding: 21px 0; border-top: 1px solid #dce5ef; border-bottom: 1px solid #dce5ef; }
.about-step { position: relative; min-height: 118px; padding: 0 25px 0 0; }
.about-step + .about-step { padding-left: 25px; border-left: 1px solid #dce5ef; }
.about-step b { color: #3569c5; font-size: .72rem; letter-spacing: .1em; }
.about-step strong { display: block; margin-top: 13px; color: #1c355b; font-size: 1rem; }
.about-step span { display: block; margin-top: 6px; color: #73859c; font-size: .78rem; line-height: 1.65; }
.about-module-group { margin-top: 31px; }
.about-group-head { display: grid; grid-template-columns: 210px minmax(150px, .5fr) 1fr; align-items: baseline; gap: 24px; margin-bottom: 13px; padding-bottom: 11px; border-bottom: 1px solid #dce5ef; }
.about-group-head > span { color: #6c83a3; font-size: .65rem; font-weight: 750; letter-spacing: .15em; }
.about-group-head h3 { color: #203c67; font-size: 1.1rem; }
.about-group-head p { margin: 0; color: #7789a0; font-size: .8rem; }
.about-modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.about-module { display: flex; gap: 13px; min-height: 105px; padding: 17px; border: 1px solid #dfe7f1; border-radius: 12px; background: #fff; transition: border-color .16s, box-shadow .16s, transform .16s; }
.about-module:hover { border-color: #9dbaf0; box-shadow: 0 9px 25px rgba(36, 79, 143, .08); transform: translateY(-2px); }
.about-module-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 9px; background: #edf3ff; color: #3569c5; }
.about-module-icon svg { width: 18px; height: 18px; }
.about-module h4 { color: #203a60; font-size: .91rem; }
.about-module p { margin-top: 5px; color: #74869d; font-size: .76rem; line-height: 1.65; }
.about-highlights-section { padding-bottom: 4px; }
.about-highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 25px; }
.about-highlight { display: flex; gap: 15px; padding: 19px; border: 1px solid #dce7f4; border-radius: 12px; background: linear-gradient(135deg, #fff, #f4f8ff); }
.about-highlight > span { color: #5b83d6; font-size: .7rem; font-weight: 750; letter-spacing: .08em; }
.about-highlight h3 { color: #233e67; font-size: .91rem; }
.about-highlight p { margin-top: 5px; color: #71849c; font-size: .78rem; line-height: 1.7; }
.about-security { display: grid; grid-template-columns: 1.2fr .8fr; gap: 38px; align-items: center; margin-top: 70px; padding: 30px; border-radius: 16px; background: #112a52; color: #fff; }
.about-security h2 { margin-top: 8px; color: #fff; font-size: 1.45rem; letter-spacing: -.03em; }
.about-security p { max-width: 640px; margin-top: 8px; color: rgba(228, 236, 250, .7); font-size: .8rem; line-height: 1.8; }
.about-security-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.about-security-list span { padding: 8px 10px; border: 1px solid rgba(174, 201, 255, .24); border-radius: 7px; color: #c9d9fa; font-size: .72rem; }
.about-quote { display: flex; align-items: center; gap: 17px; margin-top: 28px; padding: 13px 17px; border: 1px solid #f2dfab; border-radius: 10px; background: #fffbef; }
.about-quote span { color: #a16d17; font-size: .7rem; font-weight: 700; white-space: nowrap; }
.about-quote p { color: #7d5b22; font-size: .82rem; }
.about-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 42px; padding-top: 19px; border-top: 1px solid #dce5ef; color: #8191a5; font-size: .74rem; }
.about-foot div { display: flex; gap: 18px; }
.about-foot a { color: #4777c8; }
@media (max-width: 900px) {
  .about-hero-grid { grid-template-columns: 1fr; gap: 35px; padding-top: 55px; }
  .about-hero-panel { max-width: 600px; }
  .about-modules { grid-template-columns: repeat(2, 1fr); }
  .about-group-head { grid-template-columns: 170px minmax(120px, .6fr) 1fr; gap: 15px; }
}
@media (max-width: 680px) {
  .about-wrap { width: min(100% - 30px, 560px); }
  .about-hero { padding-bottom: 49px; }
  .about-nav-links a:nth-child(-n+2) { display: none; }
  .about-hero-grid { padding-top: 46px; }
  .about-hero h1 { font-size: 2.35rem; }
  .about-hero-copy > p { font-size: .88rem; line-height: 1.8; }
  .about-flow { gap: 6px; }
  .about-flow span { padding: 7px 8px; font-size: .7rem; }
  .about-panel-stats strong { font-size: 1.1rem; }
  .about-section { padding-top: 49px; }
  .about-section-head-row { display: block; }
  .about-section-head-row > p { margin-top: 8px; text-align: left; }
  .about-steps { grid-template-columns: repeat(2, 1fr); row-gap: 21px; }
  .about-step { min-height: 96px; padding-right: 13px; }
  .about-step + .about-step { padding-left: 13px; }
  .about-step:nth-child(3) { padding-left: 0; border-left: 0; }
  .about-step strong { margin-top: 8px; }
  .about-group-head { display: block; }
  .about-group-head h3 { margin-top: 6px; }
  .about-group-head p { margin-top: 4px; }
  .about-modules, .about-highlights { grid-template-columns: 1fr; }
  .about-security { grid-template-columns: 1fr; gap: 22px; margin-top: 50px; padding: 23px 19px; }
  .about-security-list { justify-content: flex-start; }
  .about-foot { display: block; line-height: 1.8; }
  .about-foot div { margin-top: 7px; }
}
/* 错误页 */
.error-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--bg); }
.error-card { text-align: center; background: var(--card); padding: 44px 60px; border-radius: 16px; box-shadow: var(--shadow); }
.error-code { font-size: 56px; font-weight: 800; color: var(--primary); opacity: .25; }
.error-card h1 { margin: 6px 0 10px; font-size: 20px; }
.error-card p { color: var(--text-sub); margin-bottom: 20px; }

/* 树形 */
.tree-list { list-style: none; }
.tree-list li { padding: 6px 0; border-bottom: 1px dashed #eef1f5; }
.tree-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* 订单明细行 */
.order-form-panel { max-width: 1060px; padding: 22px 24px; }
.order-form-section-head { margin: 2px 0 15px; }
.order-form-section-head:not(:first-child) { border-top: 1px solid var(--border); padding-top: 20px; margin-top: 9px; }
.order-form-section-head h2 { font-size: 16px; line-height: 1.4; }
.order-form-section-head p { color: var(--text-sub); font-size: 12px; margin-top: 3px; }
.items-table .form-control { min-width: 80px; }
.order-items-scroll { width: 100%; overflow-x: auto; }
.order-items-table { min-width: 760px; table-layout: fixed; }
.order-items-table td { white-space: normal; vertical-align: top; }
.order-items-table .form-control { display: block; width: 100%; min-width: 0; }
.order-items-table .order-product-cell .item-name { margin-top: 8px; }
.order-items-table [data-amount] { background: #f7f8fa; }
.order-items-table .order-remove-row { white-space: nowrap; }
.order-items-table .order-remove-row:disabled { opacity: .45; cursor: not-allowed; }
.order-items-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.order-items-footer strong { font-size: 15px; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .order-items-footer { flex-wrap: wrap; } }
@media (max-width: 700px) { .order-form-panel { padding: 17px; } }
.mono { font-family: Consolas, monospace; }

/* 表单辅助说明 */
.form-help { display: block; margin-top: 5px; color: var(--text-sub); font-size: 12px; line-height: 1.5; }
.form-control[readonly] { background: #f7f8fa; color: var(--text-sub); cursor: not-allowed; }
