:root {
  --primary: #0F2DB3;
  --primary-2: #2F56E6;
  --primary-dark: #0A1F7A;
  --accent: #FF8A3D;
  --danger: #E64B4B;
  --ink: #101B33;
  --sub: #4E5E75;
  --light: #7E8DA3;
  --glass: rgba(255, 255, 255, 0.66);
  --glass-border: rgba(255, 255, 255, 0.82);
  --hairline: rgba(28, 52, 130, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 720px at 12% 0%, rgba(47, 86, 230, 0.12), transparent 60%),
    radial-gradient(900px 620px at 95% 30%, rgba(139, 92, 246, 0.10), transparent 60%),
    linear-gradient(180deg, #F6F8FF 0%, #FFFFFF 40%, #F2F5FF 100%);
  min-height: 100vh;
  line-height: 1.6;
}

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶栏 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(28, 52, 130, 0.08);
}
.nav-inner { display: flex; align-items: center; height: 68px; gap: 32px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: var(--ink); text-decoration: none; }
.logo-badge {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: 0 8px 18px rgba(15, 45, 179, 0.35);
}
.nav-links { display: flex; gap: 26px; margin-left: 8px; }
.nav-links a { color: var(--sub); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--primary); }
.nav-cta { margin-left: auto; display: flex; gap: 12px; align-items: center; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; height: auto; padding: 10px 22px; border-radius: 22px;
  font-size: 15px; font-weight: 600; border: none; cursor: pointer; text-decoration: none;
  white-space: normal; overflow-wrap: break-word; word-break: break-word; line-height: 1.4;
  transition: transform .12s ease, box-shadow .15s ease;
  user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary-2) 0%, var(--primary) 55%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 45, 179, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.6);
  color: var(--primary);
  border: 1px solid rgba(15, 45, 179, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.btn-accent {
  background: linear-gradient(135deg, #FFA25E, #FF7A2E);
  color: #fff;
  box-shadow: 0 10px 22px rgba(255, 122, 46, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* ---------- Hero ---------- */
.hero { padding: 88px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(520px 320px at 78% 8%, rgba(47, 86, 230, 0.16), transparent 65%),
    radial-gradient(420px 300px at 20% 20%, rgba(139, 92, 246, 0.12), transparent 65%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; position: relative; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--primary);
  background: rgba(15, 45, 179, 0.08); border: 1px solid rgba(15, 45, 179, 0.16);
  padding: 6px 14px; border-radius: 20px; margin-bottom: 20px;
}
.hero h1 { font-size: 46px; line-height: 1.18; letter-spacing: -1px; font-weight: 800; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--primary-2), var(--primary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin-top: 20px; font-size: 17px; color: var(--sub); max-width: 560px; }
.hero-cta { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--light); }

.phone-card {
  background: linear-gradient(180deg, #EAF1FF 0%, #F4F7FF 46%, #EDF1FF 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  padding: 26px;
  box-shadow: 0 30px 70px rgba(15, 45, 179, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  position: relative;
}
.phone-card::after {
  content: ''; position: absolute; inset: 0; border-radius: 28px; pointer-events: none;
  background:
    radial-gradient(300px 180px at 85% -5%, rgba(61, 100, 255, 0.20), transparent 65%),
    radial-gradient(260px 200px at 10% 110%, rgba(15, 45, 179, 0.16), transparent 65%);
}
.pc-window {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 14px 34px rgba(28, 48, 120, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
}
.pc-window .bar { display: flex; gap: 6px; margin-bottom: 14px; }
.pc-window .bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.pc-window .bar i:nth-child(1) { background: #FF5F57; }
.pc-window .bar i:nth-child(2) { background: #FEBC2E; }
.pc-window .bar i:nth-child(3) { background: #28C840; }
.mini-rx { font-size: 13px; }
.mini-rx .row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed rgba(28, 52, 130, 0.10); }
.mini-rx .row:last-child { border-bottom: none; }
.mini-rx .row b { color: var(--primary); font-weight: 600; }
.mini-rx .head { text-align: center; font-weight: 700; color: var(--primary); padding-bottom: 8px; letter-spacing: 2px; }
.pc-window .btn { width: 100%; min-height: 40px; font-size: 14px; margin-top: 12px; }

/* ---------- 通用区块 ---------- */
.section { padding: 76px 0; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.sec-head h2 { font-size: 34px; letter-spacing: -0.5px; font-weight: 800; }
.sec-head p { margin-top: 12px; color: var(--sub); font-size: 16px; }
.sec-kicker {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--primary);
  letter-spacing: 2px; margin-bottom: 12px;
}

.stats-band {
  background: linear-gradient(135deg, #122FB0 0%, #0F2DB3 45%, #0A1F7A 100%);
  border-radius: 24px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 40px 32px; margin-top: 24px;
  box-shadow: 0 24px 60px rgba(15, 45, 179, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.stat { text-align: center; color: #fff; }
.stat .num { font-size: 34px; font-weight: 800; }
.stat .label { margin-top: 6px; font-size: 14px; opacity: 0.82; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, 0.18); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 12px 32px rgba(28, 48, 120, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(28, 48, 120, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.95); }
.card .icon {
  width: 52px; height: 52px; border-radius: 15px; font-size: 26px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  background: rgba(15, 45, 179, 0.08); border: 1px solid rgba(15, 45, 179, 0.14);
}
.card h3 { font-size: 19px; font-weight: 700; }
.card p { margin-top: 8px; font-size: 14px; color: var(--sub); line-height: 1.65; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.duo-panel {
  border-radius: 22px; padding: 32px; color: #fff;
  position: relative; overflow: hidden;
}
.duo-panel.store { background: linear-gradient(135deg, #1B3FD8 0%, #0F2DB3 48%, #0A1F7A 100%); box-shadow: 0 22px 54px rgba(15, 45, 179, 0.38); }
.duo-panel.consumer { background: linear-gradient(135deg, #2F56E6 0%, #4A66D9 50%, #6C5CE7 120%); box-shadow: 0 22px 54px rgba(47, 86, 230, 0.34); }
.duo-panel h3 { font-size: 22px; font-weight: 800; }
.duo-panel .d { margin-top: 10px; font-size: 14px; opacity: 0.9; line-height: 1.7; }
.duo-panel ul { margin-top: 16px; list-style: none; }
.duo-panel li { display: flex; gap: 10px; font-size: 14px; padding: 6px 0; opacity: 0.94; }
.duo-panel li::before { content: '✓'; color: #7FE0C3; font-weight: 700; }
.duo-panel .btn { margin-top: 22px; background: rgba(255, 255, 255, 0.95); color: var(--primary); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); }

.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.flow-step {
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: 18px;
  padding: 22px; position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.flow-step .n {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  color: #fff; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
  box-shadow: 0 6px 14px rgba(15, 45, 179, 0.35);
}
.flow-step h4 { font-size: 16px; font-weight: 700; }
.flow-step p { margin-top: 6px; font-size: 13px; color: var(--sub); line-height: 1.6; }

.privacy {
  display: flex; gap: 20px; align-items: center;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(28, 52, 130, 0.10);
  border-radius: 18px; padding: 24px 28px;
}
.privacy .shield { font-size: 38px; }
.privacy h4 { font-size: 17px; font-weight: 700; }
.privacy p { margin-top: 4px; font-size: 14px; color: var(--sub); }

.cta-band {
  text-align: center;
  background: linear-gradient(135deg, #122FB0 0%, #0F2DB3 45%, #0A1F7A 100%);
  border-radius: 28px; padding: 64px 32px; color: #fff;
  box-shadow: 0 30px 70px rgba(15, 45, 179, 0.38);
}
.cta-band h2 { font-size: 32px; font-weight: 800; }
.cta-band p { margin-top: 12px; font-size: 16px; opacity: 0.88; }
.cta-band .btn-row { margin-top: 28px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn { background: #fff; color: var(--primary); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22); }
.cta-band .btn.ghost { background: rgba(255, 255, 255, 0.14); color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); }

.footer {
  border-top: 1px solid rgba(28, 52, 130, 0.08);
  padding: 40px 0 56px; margin-top: 40px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer h5 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.footer a { display: block; color: var(--sub); text-decoration: none; font-size: 14px; padding: 4px 0; }
.footer a:hover { color: var(--primary); }
.footer .brand p { font-size: 13px; color: var(--light); margin-top: 10px; max-width: 320px; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(28, 52, 130, 0.08); font-size: 13px; color: var(--light); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- 录入页 ---------- */
.entry-hero { padding: 48px 0 24px; }
.entry-hero h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.5px; }
.entry-hero p { margin-top: 10px; color: var(--sub); }

.tabs { display: inline-flex; background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 14px; padding: 5px; gap: 4px; margin: 20px 0; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.tab {
  padding: 10px 26px; border-radius: 10px; font-size: 15px; font-weight: 600;
  color: var(--sub); cursor: pointer; user-select: none; transition: all .15s;
}
.tab.active { background: #fff; color: var(--primary); box-shadow: 0 6px 16px rgba(15, 45, 179, 0.16); }

.entry-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; align-items: start; }
.form-card { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 22px; padding: 28px; box-shadow: 0 16px 40px rgba(28, 48, 120, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.form-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--sub); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; height: 42px; padding: 0 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 12px; font-size: 14px; color: var(--ink);
  outline: none; box-shadow: inset 0 1px 2px rgba(28, 48, 120, 0.06);
  font-family: inherit;
}
.field textarea { height: auto; min-height: 72px; padding: 10px 14px; resize: vertical; }
.field input:focus, .field select:focus { border-color: rgba(15, 45, 179, 0.4); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.rx-table {
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px; overflow: hidden; margin: 6px 0 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  max-width: 560px;
}
.rx-tr { display: flex; border-bottom: 1px solid rgba(28, 52, 130, 0.08); }
.rx-tr:last-child { border-bottom: none; }
.rx-tr-head { background: rgba(15, 45, 179, 0.06); }
.rx-td { flex: 1; min-height: 40px; display: flex; align-items: center; justify-content: center; padding: 8px 10px; font-size: 13px; text-align: center; }
.rx-td-label { flex: 0 0 108px; background: rgba(15, 45, 179, 0.05); color: var(--sub); font-weight: 600; border-right: 1px solid rgba(28, 52, 130, 0.08); }
.rx-td-eye { font-weight: 700; color: var(--primary); letter-spacing: 1px; }
.rx-td-input { padding: 4px 6px; }
.rx-td-eye + .rx-td-eye, .rx-td-input + .rx-td-input { border-left: 1px solid rgba(28, 52, 130, 0.08); }
.rx-td-input input { width: 100%; height: 34px; border: none; outline: none; background: transparent; text-align: center; font-size: 14px; color: var(--ink); border-radius: 8px; }
.rx-td-input input:focus { background: rgba(15, 45, 179, 0.06); }
.rx-td-input .v { color: var(--primary); font-weight: 600; cursor: pointer; }

.consent {
  display: flex; gap: 10px; align-items: flex-start;
  background: rgba(15, 45, 179, 0.05);
  border: 1px solid rgba(15, 45, 179, 0.12);
  border-radius: 12px; padding: 12px 14px; margin: 12px 0 18px;
  font-size: 13px; color: var(--sub); line-height: 1.6;
}
.consent input { margin-top: 3px; accent-color: var(--primary); }
.consent b { color: var(--primary); }

.side-card { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 22px; padding: 24px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.side-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.record-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(28, 52, 130, 0.08); font-size: 14px; }
.record-item:last-child { border-bottom: none; }
.record-item .meta { color: var(--light); font-size: 12px; margin-top: 2px; }
.record-item .ops { display: flex; gap: 8px; }
.record-item .rec-rx { font-size: 12px; color: var(--sub); line-height: 1.7; margin-top: 4px; }
.record-item .rec-rx b { color: var(--text-main); font-family: "SF Mono", Menlo, Consolas, monospace; }
.record-item .rec-rx span { color: var(--primary); }
.record-item.rec-highlight { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 8px; background: rgba(15,45,179,.05); }
.op { font-size: 12px; color: var(--primary); cursor: pointer; padding: 3px 10px; border-radius: 10px; background: rgba(15, 45, 179, 0.08); }
.op.danger { color: var(--danger); background: rgba(230, 75, 75, 0.08); }
.empty-tip { text-align: center; color: var(--light); font-size: 13px; padding: 26px 0; }
.share-box { margin-top: 14px; font-size: 12px; color: var(--sub); background: rgba(255, 255, 255, 0.6); border: 1px dashed rgba(28, 52, 130, 0.2); border-radius: 10px; padding: 10px 12px; word-break: break-all; }

.toast-wrap { position: fixed; left: 50%; top: 24px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: rgba(10, 18, 46, 0.82); color: #fff; font-size: 14px;
  padding: 12px 22px; border-radius: 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  animation: fadeIn .2s;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- 客户管理 ---------- */
.search-pc {
  display: flex; gap: 10px; margin: 18px 0 16px; align-items: center;
}
.search-pc input {
  flex: 1; height: 44px; padding: 0 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 14px; font-size: 15px; color: var(--ink);
  outline: none; box-shadow: inset 0 1px 2px rgba(28, 48, 120, 0.06);
  font-family: inherit;
}
.search-pc input:focus { border-color: rgba(15, 45, 179, 0.4); }
.search-pc .btn { min-height: 44px; }
.cust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cust-card {
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: 18px;
  padding: 18px; cursor: pointer;
  box-shadow: 0 12px 28px rgba(28, 48, 120, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transition: transform .16s ease, box-shadow .16s ease;
}
.cust-card:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(28, 48, 120, 0.16); }
.cust-card .top { display: flex; align-items: center; gap: 12px; }
.cust-avatar {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: rgba(15, 45, 179, 0.10); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; border: 1px solid rgba(255, 255, 255, 0.9);
}
.cust-card .name { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.cust-card .phone { font-size: 13px; color: var(--light); margin-top: 2px; }
.cust-card .meta { margin-top: 12px; font-size: 12px; color: var(--sub); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cust-card .meta .tag2 { background: rgba(15, 45, 179, 0.08); border: 1px solid rgba(15, 45, 179, 0.14); border-radius: 8px; padding: 2px 9px; color: var(--primary); }
.cust-card .meta .count { margin-left: auto; color: var(--primary); font-weight: 700; }
.cust-detail-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.cust-detail-head .back { cursor: pointer; color: var(--primary); font-weight: 600; }
.detail-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; }
.dstat { background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(255, 255, 255, 0.85); border-radius: 14px; padding: 14px; text-align: center; }
.dstat .n { font-size: 22px; font-weight: 800; color: var(--primary); }
.dstat .l { font-size: 12px; color: var(--light); margin-top: 3px; }
.tl-item-pc { display: flex; gap: 12px; margin-bottom: 14px; }
.tl-rail-pc { width: 20px; display: flex; flex-direction: column; align-items: center; }
.tl-dot-pc { width: 12px; height: 12px; border-radius: 50%; margin-top: 16px; box-shadow: 0 0 0 4px rgba(255,255,255,0.8); }
.tl-line-pc { width: 2px; flex: 1; background: rgba(28, 52, 130, 0.12); min-height: 20px; }
.tl-card-pc { flex: 1; background: rgba(255, 255, 255, 0.62); border: 1px solid rgba(255, 255, 255, 0.85); border-radius: 14px; padding: 14px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9); }
.tl-card-pc .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.tl-type-pc { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 7px; background: rgba(15, 45, 179, 0.10); color: var(--primary); }
.rx-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 13px; }
.rx-mini .col b { color: var(--primary); }
.rx-mini .row { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed rgba(28, 52, 130, 0.10); }
.rx-mini .row:last-child { border-bottom: none; }

/* ---------- 弹窗 ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(8, 14, 38, 0.45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; overflow: auto;
}
.modal-pc {
  width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  padding: 20px 20px 24px;
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  box-shadow: 0 20px 60px rgba(15, 45, 179, 0.22);
}
.modal-mask {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(16, 27, 51, 0.45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; overflow: auto;
}
.modal-box {
  background: #fff; border-radius: 18px; padding: 22px 22px 24px;
  width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto;
  box-shadow: 0 24px 60px rgba(16, 27, 51, 0.28);
}
.modal-box h3 { font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.picker-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 10px; border-bottom: 1px solid rgba(28, 52, 130, 0.08);
  cursor: pointer; border-radius: 10px;
}
.picker-item:hover { background: rgba(15, 45, 179, 0.06); }
.picker-item .rec { margin-left: auto; font-size: 12px; color: var(--primary); font-weight: 700; }

/* ---------- 第三方系统对接 ---------- */
.itg-scopes { display: grid; gap: 10px; margin-top: 4px; }
.itg-check {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(15, 45, 179, 0.04);
  border: 1px solid rgba(28, 52, 130, 0.10);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.itg-check small { display: block; font-weight: 400; color: var(--light); font-size: 12px; }
.itg-check input { margin-top: 3px; accent-color: var(--primary); }
.itg-code {
  margin-top: 16px;
  background: linear-gradient(135deg, rgba(47, 86, 230, 0.08), rgba(15, 45, 179, 0.10));
  border: 1px dashed rgba(15, 45, 179, 0.35);
  border-radius: 12px; padding: 14px;
}
.itg-code-value {
  font-size: 20px; font-weight: 800; letter-spacing: 1.5px;
  color: var(--primary); text-align: center;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  user-select: all;
}

@media (max-width: 900px) {
  .hero-grid, .duo, .entry-grid { grid-template-columns: 1fr; }
  .cards, .flow { grid-template-columns: 1fr 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; gap: 24px; }
  .stat + .stat { border-left: none; }
  .hero h1 { font-size: 34px; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .cust-grid, .detail-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 14px; }
  .field-row { grid-template-columns: 1fr; }
  .field-row .field { min-width: 0; }
  .form-card { padding: 18px; border-radius: 18px; }
  .cust-grid { grid-template-columns: 1fr; }
  .cust-card { padding: 14px; }
  .rx-mini { flex-direction: column; gap: 8px; }
  .rx-mini .col { width: 100%; }
  .detail-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .btn-row, #detailBody .card .flex { flex-wrap: wrap; }
  #detailBody .card .flex > div:last-child { flex: 1 1 100%; justify-content: flex-start; }
  .search-pc { flex-wrap: wrap; }
  .search-pc input { flex: 1 1 100%; }
  .nav-inner { padding: 10px 0; }
  .nav-cta { gap: 6px; }
  .nav-cta .btn { padding: 8px 12px; font-size: 12px; }
  .rx-table { max-width: 100%; }
  .entry-hero h1 { font-size: 26px; }
}

/* PC 端不显示消费者底部导航（仅 H5/小程序用） */
@media (min-width: 992px) {
  #consumerBottomNav { display: none !important; }
}

.cmp-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.cmp-table th, .cmp-table td { padding: 6px 8px; border-bottom: 1px solid rgba(28,52,130,.08); text-align: center; }
.cmp-table th { background: rgba(15,45,179,.06); font-weight: 700; color: var(--sub); }
.cmp-table td:first-child, .cmp-table th:first-child { text-align: left; }

/* ---------- 客户时间线（横向）+ 消费记录节点 ---------- */
.timeline-h { position: relative; display: flex; gap: 18px; overflow-x: auto; padding: 18px 4px 20px; align-items: flex-start; }
.timeline-h::-webkit-scrollbar { height: 8px; }
.timeline-h::-webkit-scrollbar-thumb { background: rgba(15,45,179,.18); border-radius: 8px; }
.timeline-h::before { content: ''; position: absolute; top: 22px; left: 8px; right: 8px; height: 2px; background: linear-gradient(90deg, rgba(15,45,179,.16), rgba(15,45,179,.05)); }
.tl-h-item { flex: 0 0 292px; display: flex; flex-direction: column; align-items: center; position: relative; min-width: 0; }
.tl-h-dot { width: 16px; height: 16px; border-radius: 50%; margin-bottom: 12px; box-shadow: 0 0 0 5px rgba(255,255,255,.92), 0 0 12px rgba(15,45,179,.32); z-index: 2; }
.tl-h-card { width: 100%; background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.92); border-radius: 16px; padding: 14px 14px 12px; box-shadow: 0 10px 26px rgba(28,52,130,.10); }
.tl-h-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.tl-h-date { font-size: 12px; color: var(--light); }
.tl-h-sub { font-size: 12px; color: var(--light); margin-bottom: 6px; }
.rx-line { font-size: 14px; color: var(--primary); font-weight: 600; padding: 4px 0; font-family: "SF Mono", Menlo, Consolas, monospace; line-height: 1.5; }
.rx-line b { color: var(--text-main); font-size: 15px; }
.rx-line span { color: var(--sub); font-size: 12px; margin-left: 6px; }
.rx-line.sub { color: var(--sub); font-weight: 400; font-size: 12px; }
.tl-h-note { margin-top: 8px; font-size: 12px; color: #9A6A3A; background: rgba(255,240,220,.6); border-radius: 8px; padding: 7px 10px; }
.tl-h-note.muted { color: var(--sub); background: rgba(15,45,179,.04); }
.tl-h-actions { margin-top: 10px; display: flex; gap: 8px; justify-content: flex-end; border-top: 1px dashed rgba(28,52,130,.10); padding-top: 8px; }
.tl-order-no { font-size: 14px; font-weight: 800; color: var(--text-main); margin-bottom: 8px; }
.tl-order-items { border-top: 1px dashed rgba(28,52,130,.12); padding-top: 6px; }
.tl-order-item { display: flex; align-items: baseline; gap: 6px; padding: 4px 0; font-size: 12px; color: var(--sub); border-bottom: 1px dashed rgba(28,52,130,.08); }
.tl-order-item span:first-child { flex: 1; color: var(--text-main); font-weight: 600; }
.tl-order-item .tl-price { color: var(--danger); font-weight: 700; white-space: nowrap; }
.tl-order-total { margin-top: 8px; font-size: 12px; color: var(--sub); }
.tl-order-total b { color: var(--danger); }
.tl-order-empty { font-size: 12px; color: var(--sub); padding: 6px 0; }

/* ---------- 编辑记录弹窗（桌面友好） ---------- */
.edit-modal { max-width: 860px; max-height: 88vh; border-radius: 22px; display: flex; flex-direction: column; overflow: hidden; }
.edit-modal-head { padding: 18px 22px 12px; border-bottom: 1px solid rgba(28,52,130,.08); display: flex; justify-content: space-between; align-items: center; }
.edit-modal-body { padding: 16px 22px; overflow-y: auto; }
.edit-modal-foot { padding: 14px 22px 20px; border-top: 1px solid rgba(28,52,130,.08); display: flex; gap: 10px; }
.rx-edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rx-eye-panel { background: rgba(15,45,179,.04); border: 1px solid rgba(28,52,130,.10); border-radius: 14px; padding: 16px; }
.rx-eye-title { font-size: 15px; font-weight: 800; color: var(--primary); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(28,52,130,.10); }
.rx-eye-title.r { color: #E8762C; }
.rx-eye-title.l { color: #0F2DB3; }
.rx-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.rx-field label { display: block; font-size: 12px; font-weight: 600; color: var(--sub); margin-bottom: 5px; }
.rx-field input { width: 100%; height: 40px; border: 1px solid rgba(28,52,130,.14); border-radius: 10px; padding: 0 12px; font-size: 15px; text-align: center; font-family: "SF Mono", Menlo, Consolas, monospace; background: #fff; }
.rx-field input:focus { border-color: #0F2DB3; box-shadow: 0 0 0 3px rgba(15,45,179,.12); outline: none; }
.rx-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rx-summary { margin-top: 14px; background: rgba(15,45,179,.06); border: 1px dashed rgba(15,45,179,.30); border-radius: 12px; padding: 10px 14px; font-size: 13px; color: var(--sub); font-family: "SF Mono", Menlo, Consolas, monospace; }
.rx-summary b { color: var(--primary); }
.bio-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }

@media (max-width: 640px) {
  .rx-edit-grid { grid-template-columns: 1fr; }
  .bio-grid { grid-template-columns: 1fr 1fr; }
  .tl-h-item { flex-basis: 232px; }
}

/* ---------- 记录卡片（左右眼两栏 + 备注框 + 取镜时间框）+ 查看弹窗 ---------- */
.rx-record-body { margin-top: 4px; }
.rx-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
.rx-cell { display: flex; justify-content: space-between; align-items: baseline; padding: 5px 0; border-bottom: 1px dashed rgba(28,52,130,.10); font-size: 13px; }
.rx-cell .rx-k { color: var(--sub); }
.rx-cell .rx-v { font-weight: 700; color: var(--text-main); font-family: "SF Mono", Menlo, Consolas, monospace; }
.rx-cell.head { justify-content: center; font-weight: 800; color: var(--primary); border-bottom: 1px solid rgba(28,52,130,.14); font-size: 14px; padding-bottom: 8px; }
.rx-pdline { margin-top: 8px; font-size: 12px; color: var(--sub); }
.rx-note-box { margin-top: 10px; font-size: 13px; color: #9A6A3A; background: linear-gradient(135deg, rgba(255,240,220,.9), rgba(255,246,232,.7)); border: 1px solid rgba(232,118,44,.18); border-radius: 10px; padding: 9px 12px; }
.rx-time-box { margin-top: 8px; font-size: 12px; color: #0F2DB3; background: rgba(15,45,179,.06); border: 1px solid rgba(15,45,179,.16); border-radius: 10px; padding: 8px 12px; }
.view-modal { max-width: 640px; max-height: 88vh; border-radius: 22px; display: flex; flex-direction: column; overflow: hidden; }
.btn-danger { background: linear-gradient(135deg, #ff6a6a 0%, var(--danger) 60%, #c0392b 100%); color: #fff; box-shadow: 0 10px 24px rgba(230,75,75,.28), inset 0 1px 0 rgba(255,255,255,.2); }

@media (max-width: 640px) { .rx-grid2 { grid-template-columns: 1fr; } }
