/* 中凯线索通 · 酒红卡片风 */
:root {
  --wine: #8E5560;
  --wine-d: #6E4149;
  --wine-deep: #4A2C32;
  --wine-t: #F5EAEC;
  --wine-t2: #F9F1F2;
  --gold: #B98A46;
  --gold-t: #F7EFE3;
  --paper: #FBF9F8;
  --card: #FFFFFF;
  --line: #EFE8E5;
  --ink: #2B2220;
  --muted: #9A8B86;
  --green: #3E7C4F;
  --amber: #C77A3D;
  --shadow: 0 1px 3px rgba(122,74,82,.05), 0 10px 28px rgba(122,74,82,.07);
  --shadow-sm: 0 1px 2px rgba(122,74,82,.06);
  --r: 18px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.7 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
}
a { color: var(--wine); text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select {
  font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px;
  padding: 9px 14px; outline: none; width: 100%;
  transition: border-color .18s, box-shadow .18s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--wine); box-shadow: 0 0 0 3px rgba(123,34,48,.10);
}
textarea { resize: vertical; min-height: 90px; }

/* ---------- 顶栏 ---------- */
.topbar {
  background: linear-gradient(120deg, var(--wine-deep) 0%, var(--wine) 62%, #A2626C 100%);
  color: #F7EDEA; padding: 0 26px; height: 58px;
  display: flex; align-items: center; gap: 28px;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 4px 18px rgba(62,15,23,.22);
}
.brand { font-family: "Noto Serif SC", "Songti SC", serif; font-size: 19px; font-weight: 700; letter-spacing: 2px; display: flex; align-items: center; gap: 10px; }
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(185,138,70,.9); }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a {
  color: rgba(247,237,234,.82); padding: 7px 15px; border-radius: 999px;
  font-size: 14px; transition: all .18s;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.10); }
.nav a.on { color: #fff; background: rgba(255,255,255,.16); font-weight: 600; }
.userbox { display: flex; align-items: center; gap: 12px; font-size: 13px; color: rgba(247,237,234,.85); }
.userbox .role { background: rgba(185,138,70,.28); color: #EFD9B4; padding: 2px 10px; border-radius: 999px; font-size: 12px; }
.userbox button { color: rgba(247,237,234,.75); font-size: 13px; padding: 5px 10px; border-radius: 999px; }
.userbox button:hover { background: rgba(255,255,255,.12); color: #fff; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 30px 24px 70px; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card); border-radius: var(--r);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 22px 24px;
}
.card + .card { margin-top: 18px; }
.card-title {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 16px; font-weight: 700; color: var(--wine-d);
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.card-title::before { content: ""; width: 4px; height: 17px; border-radius: 3px; background: var(--wine); }
.card-title .sub { font-family: -apple-system, "PingFang SC", sans-serif; font-weight: 400; font-size: 12.5px; color: var(--muted); margin-left: auto; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--wine); color: #fff; border-radius: 999px;
  padding: 9px 22px; font-size: 14px; font-weight: 600;
  box-shadow: 0 3px 10px rgba(123,34,48,.24); transition: all .18s;
}
.btn:hover { background: var(--wine-d); transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; color: var(--wine); border: 1.5px solid rgba(123,34,48,.35); box-shadow: none; }
.btn.ghost:hover { background: var(--wine-t); border-color: var(--wine); }
.btn.gold { background: var(--gold); box-shadow: 0 3px 10px rgba(185,138,70,.28); }
.btn.gold:hover { background: #A3763A; }
.btn.sm { padding: 5px 14px; font-size: 13px; font-weight: 500; }
.btn.danger { background: #9E5550; }

/* ---------- 看板 ---------- */
.hello { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.hello h1 { font-family: "Noto Serif SC", "Songti SC", serif; font-size: 25px; font-weight: 700; color: var(--wine-deep); }
.hello .date { color: var(--muted); font-size: 13px; }
.statrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat {
  background: var(--card); border-radius: var(--r); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); padding: 16px 20px;
}
.stat .num { font-size: 30px; font-weight: 700; font-family: "Noto Serif SC", serif; color: var(--wine); line-height: 1.2; }
.stat .lbl { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.stat.g .num { color: var(--green); } .stat.gd .num { color: var(--gold); }

.grid2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .grid2 { grid-template-columns: 1fr; } }

/* 提醒卡 */
.remind {
  display: flex; align-items: center; gap: 12px;
  background: var(--wine-t2); border: 1px solid #F0DBDD; border-radius: 14px;
  padding: 11px 16px; margin-bottom: 10px; cursor: pointer; transition: all .15s;
}
.remind:hover { border-color: rgba(123,34,48,.35); transform: translateX(2px); }
.remind .ic { width: 34px; height: 34px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.remind .ic.w { background: var(--wine-t); } .remind .ic.g { background: var(--gold-t); }
.remind .t1 { font-weight: 600; font-size: 14px; color: var(--wine-d); }
.remind .t2 { font-size: 12.5px; color: var(--muted); }
.remind .cnt { margin-left: auto; font-size: 20px; font-weight: 700; font-family: "Noto Serif SC", serif; color: var(--wine); }
.remind.zero { opacity: .55; }

/* 洞察卡 */
.insight-box { background: linear-gradient(135deg, #FDF9F5, #FAF1EA); border: 1px solid #EFE2D4; border-radius: 16px; padding: 18px 20px; font-size: 14px; line-height: 1.9; color: #4A3A32; white-space: pre-wrap; }
.insight-box .tagline { display: inline-flex; align-items: center; gap: 6px; background: var(--gold-t); color: var(--gold); font-size: 12px; border-radius: 999px; padding: 2px 12px; margin-bottom: 10px; }
.insight-loading { color: var(--muted); font-size: 13px; }

/* 漏斗 */
.funnel-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.funnel-row:last-child { border-bottom: none; }
.funnel-row .name { width: 88px; font-size: 13.5px; font-weight: 600; color: var(--wine-d); flex-shrink: 0; }
.funnel-row .bar-wrap { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.bar { height: 8px; border-radius: 999px; background: var(--wine-t); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--wine), #A2626C); }
.bar.gold i { background: linear-gradient(90deg, var(--gold), #D0A868); }
.funnel-row .nums { font-size: 12.5px; color: var(--muted); flex-shrink: 0; width: 150px; text-align: right; white-space: nowrap; }
.funnel-row .nums b { color: var(--wine); }

/* ---------- 渠道 chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 4px 0 20px; }
.chip {
  padding: 6px 17px; border-radius: 999px; font-size: 13.5px;
  background: #fff; border: 1.5px solid var(--line); color: #6E5D58;
  transition: all .16s; cursor: pointer; user-select: none;
}
.chip:hover { border-color: rgba(123,34,48,.4); color: var(--wine); }
.chip.on { background: var(--wine); border-color: var(--wine); color: #fff; font-weight: 600; box-shadow: 0 3px 10px rgba(123,34,48,.22); }

/* ---------- 客户卡片 ---------- */
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; }
.ccard {
  background: var(--card); border-radius: var(--r); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); padding: 18px 20px; cursor: pointer;
  transition: transform .18s, box-shadow .18s, border-color .18s; position: relative;
}
.ccard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(123,34,48,.28); }
.ccard .head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ccard .avatar {
  width: 40px; height: 40px; border-radius: 13px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--wine), #A2626C); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700; font-family: "Noto Serif SC", serif;
}
.ccard .nm { font-weight: 700; font-size: 15.5px; color: var(--wine-deep); }
.ccard .co { font-size: 12.5px; color: var(--muted); }
.ccard .field { font-size: 13px; margin-top: 5px; display: flex; gap: 7px; line-height: 1.55; }
.ccard .field .k { color: var(--gold); font-weight: 600; flex-shrink: 0; }
.ccard .field .v { color: #5A4C47; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccard .tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.ccard .meta { margin-top: 10px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }

/* pills */
.pill { display: inline-flex; align-items: center; padding: 2.5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill.st-待跟进 { background: #FBF0E3; color: var(--amber); }
.pill.st-跟进中 { background: var(--wine-t); color: var(--wine); }
.pill.st-已转化 { background: #E9F3EB; color: var(--green); }
.pill.st-搁置 { background: #F0EDEB; color: #8A7A76; }
.pill.st-失效 { background: #F0EDEB; color: #B0A39E; }
.pill.ch { background: #F7F1EC; color: #8A6B3F; border: 1px solid #EFE3D2; font-weight: 500; }
.ptag { display: inline-flex; align-items: center; gap: 5px; background: var(--wine-t2); border: 1px solid #F0DBDD; color: var(--wine); border-radius: 999px; padding: 3px 12px; font-size: 12px; }
.ptag .dim { color: var(--gold); font-size: 11px; }
.ptag .x { cursor: pointer; opacity: .45; font-size: 13px; } .ptag .x:hover { opacity: 1; }

/* ---------- 时间线 ---------- */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--wine-t), #EFE0E2); border-radius: 2px; }
.tl-item { position: relative; padding: 0 0 20px; }
.tl-item::before {
  content: ""; position: absolute; left: -22.5px; top: 7px;
  width: 11px; height: 11px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--wine);
}
.tl-item.voice::before { border-color: var(--gold); }
.tl-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tl-head .who { font-weight: 700; font-size: 14px; color: var(--wine-d); }
.tl-head .when { font-size: 12px; color: var(--muted); }
.tl-head .pill { margin-left: 2px; }
.tl-body { margin-top: 7px; background: #FDFBFA; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: 13.5px; line-height: 1.8; color: #4A3C37; white-space: pre-wrap; }
.tl-raw { margin-top: 6px; font-size: 12px; color: var(--muted); background: #FAF8F6; border-radius: 9px; padding: 8px 13px; white-space: pre-wrap; }
.tl-outcome { margin-top: 6px; font-size: 12.5px; color: var(--gold); }

/* ---------- 录入弹层 ---------- */
.mask { position: fixed; inset: 0; background: rgba(62,15,23,.42); backdrop-filter: blur(3px); z-index: 100; display: none; align-items: flex-start; justify-content: center; padding: 6vh 18px; overflow-y: auto; }
.mask.show { display: flex; }
.modal { background: var(--card); border-radius: 22px; box-shadow: 0 24px 70px rgba(62,15,23,.35); width: 100%; max-width: 620px; padding: 26px 28px 24px; animation: pop .22s ease-out; }
@keyframes pop { from { transform: translateY(14px) scale(.985); opacity: 0; } to { transform: none; opacity: 1; } }
.modal h3 { font-family: "Noto Serif SC", serif; color: var(--wine-deep); font-size: 18px; margin-bottom: 16px; display: flex; align-items: center; gap: 9px; }
.modal h3::before { content: ""; width: 4px; height: 18px; background: var(--wine); border-radius: 3px; }
.form-row { margin-bottom: 13px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; color: var(--wine-d); margin-bottom: 6px; }
.form-row label .req { color: var(--wine); }
.form-row .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* 语音按钮 */
.voice-zone { display: flex; align-items: center; gap: 12px; }
.voice-btn {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--wine), #A2626C); color: #fff; font-size: 19px;
  box-shadow: 0 4px 14px rgba(123,34,48,.3); transition: all .18s;
}
.voice-btn:hover { transform: scale(1.05); }
.voice-btn.rec { animation: pulse 1.2s infinite; background: linear-gradient(135deg, #9E5550, #B36E67); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(158,85,80,.35); } 50% { box-shadow: 0 0 0 11px rgba(158,85,80,0); } }
.voice-status { font-size: 12.5px; color: var(--muted); }
.voice-status.rec { color: #9E5550; font-weight: 600; }

/* AI 对照预览 */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
@media (max-width: 640px) { .compare { grid-template-columns: 1fr; } }
.compare .pane { background: #FAF8F6; border: 1px solid var(--line); border-radius: 13px; padding: 12px 15px; font-size: 13px; line-height: 1.75; }
.compare .pane .cap { font-size: 12px; font-weight: 600; color: var(--gold); margin-bottom: 6px; }
.compare .pane.refined { background: var(--wine-t2); border-color: #F0DBDD; }
.compare .pane.refined .cap { color: var(--wine); }
.compare textarea { min-height: 120px; border: none; padding: 0; background: transparent; box-shadow: none !important; }

/* 查重提示 */
.dup-box { background: var(--gold-t); border: 1px dashed #DDBE8E; border-radius: 14px; padding: 14px 16px; margin-top: 8px; }
.dup-box .t { font-size: 13.5px; font-weight: 700; color: #8A6B3F; margin-bottom: 8px; }
.dup-item { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 11px; padding: 9px 13px; margin-bottom: 7px; font-size: 13px; }
.dup-item .why { color: var(--gold); font-size: 12px; }
.dup-item .btn { margin-left: auto; }

/* 空状态 */
.empty { text-align: center; color: var(--muted); padding: 46px 0; font-size: 14px; }
.empty .big { font-size: 34px; margin-bottom: 8px; opacity: .5; }

/* 搜索工具条 */
.toolbar { display: flex; gap: 11px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar input[type=text] { max-width: 320px; }
.toolbar select { width: auto; min-width: 110px; }

/* ---------- 问一问 ---------- */
.ask-hero { text-align: center; padding: 26px 0 6px; }
.ask-hero h1 { font-family: "Noto Serif SC", serif; font-size: 24px; color: var(--wine-deep); margin-bottom: 6px; }
.ask-hero p { color: var(--muted); font-size: 13.5px; }
.ask-bar { display: flex; gap: 11px; max-width: 640px; margin: 20px auto 8px; }
.ask-examples { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.ask-examples button { font-size: 12.5px; color: var(--wine); background: var(--wine-t2); border: 1px solid #F0DBDD; border-radius: 999px; padding: 5px 14px; }
.ask-examples button:hover { background: var(--wine-t); }
.answer-box { background: var(--card); border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 20px 24px; margin-bottom: 18px; }
.answer-box .cap { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--wine-d); margin-bottom: 10px; font-size: 14.5px; }
.answer-box .cap::before { content: "🤖"; }
.answer-text { font-size: 14px; line-height: 1.9; color: #4A3C37; white-space: pre-wrap; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }

/* ---------- 登录页 ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(140deg, var(--wine-deep) 0%, var(--wine-d) 40%, var(--wine) 100%); position: relative; overflow: hidden; }
.login-wrap::before, .login-wrap::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); }
.login-wrap::before { width: 420px; height: 420px; background: rgba(185,138,70,.16); top: -120px; right: -80px; }
.login-wrap::after { width: 340px; height: 340px; background: rgba(255,255,255,.07); bottom: -110px; left: -60px; }
.login-card { background: rgba(255,255,255,.97); border-radius: 26px; box-shadow: 0 30px 80px rgba(30,6,10,.5); padding: 40px 42px 36px; width: 100%; max-width: 400px; position: relative; z-index: 2; animation: pop .3s ease-out; }
.login-brand { text-align: center; margin-bottom: 26px; }
.login-brand .mark { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 17px; background: linear-gradient(135deg, var(--wine), #A2626C); color: #fff; font-size: 26px; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(123,34,48,.35); }
.login-brand h1 { font-family: "Noto Serif SC", serif; font-size: 21px; color: var(--wine-deep); letter-spacing: 3px; }
.login-brand p { font-size: 12.5px; color: var(--muted); margin-top: 4px; letter-spacing: 1px; }
.login-card .form-row { margin-bottom: 16px; }
.login-card .btn { width: 100%; justify-content: center; padding: 11px; font-size: 15px; }

/* ---------- 后台 ---------- */
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } }
.list-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; flex-wrap: wrap; }
.list-row:last-child { border-bottom: none; }
.list-row input[type=text], .list-row input[type=number] { padding: 6px 11px; font-size: 13px; border-radius: 9px; }
.switch { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.switch input { display: none; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: #E4D8D3; transition: .18s; cursor: pointer; }
.switch i::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: .18s; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.switch input:checked + i { background: var(--wine); }
.switch input:checked + i::after { left: 21px; }
.toast { position: fixed; bottom: 34px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--wine-deep); color: #F7EDEA; border-radius: 999px; padding: 10px 26px; font-size: 13.5px; box-shadow: 0 10px 30px rgba(62,15,23,.4); opacity: 0; pointer-events: none; transition: all .25s; z-index: 200; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.warn { background: #9E5550; }

/* ---------- 移动端适配 ---------- */
@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; height: auto; padding: 8px 14px; gap: 8px; }
  .nav { order: 3; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 6px 12px; white-space: nowrap; }
  .wrap { padding: 14px 12px 60px; }
  .card { padding: 14px 14px; border-radius: 16px; }
  .modal { padding: 18px 14px 16px; }
  .userbox { gap: 6px; font-size: 12px; }
  .userbox button { padding: 4px 6px; }

  /* 统计卡：手机一排四个，紧凑化 */
  .hello { margin-bottom: 12px; }
  .hello h1 { font-size: 20px; }
  .statrow { grid-template-columns: repeat(4, 1fr); gap: 7px; margin-bottom: 12px; }
  .stat { padding: 10px 4px; text-align: center; border-radius: 14px; }
  .stat .num { font-size: 20px; }
  .stat .lbl { font-size: 10.5px; margin-top: 1px; }
  .statrow-3 { grid-template-columns: repeat(3, 1fr) !important; }

  /* 内容重排：快速动作 → 要盯的客户 → AI 洞察 → 漏斗 */
  .grid2 { grid-template-columns: 1fr; gap: 10px; }
  .grid2 > div { display: contents; }
  .grid2 > div:nth-child(2) > .card:nth-child(2) { order: 1; }
  .grid2 > div:nth-child(1) > .card:nth-child(1) { order: 2; }
  .grid2 > div:nth-child(2) > .card:nth-child(1) { order: 3; }
  .grid2 > div:nth-child(1) > .card:nth-child(2) { order: 4; }

  .funnel-row .nums { width: 96px; font-size: 11.5px; }
  .card-title { flex-wrap: wrap; row-gap: 4px; }
  .section-gap { margin-top: 12px; }

  /* 语音建卡弹层：手机上下堆叠 */
  .vc-grid { grid-template-columns: 1fr !important; }
  .vc-grid .res-cat { width: 100%; }
  .qrow .qname { width: 72px; }
}

/* 详情页 */
.detail-head { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.detail-head .avatar { width: 62px; height: 62px; border-radius: 20px; background: linear-gradient(135deg, var(--wine), #A2626C); color: #fff; font-size: 27px; font-weight: 700; font-family: "Noto Serif SC", serif; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.detail-head .info { flex: 1; min-width: 220px; }
.detail-head h2 { font-family: "Noto Serif SC", serif; font-size: 22px; color: var(--wine-deep); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.detail-head .sub { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.need-supply { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
@media (max-width: 640px) { .need-supply { grid-template-columns: 1fr; } }
.ns { border-radius: 15px; padding: 14px 18px; }
.ns.need { background: var(--wine-t2); border: 1px solid #F0DBDD; }
.ns.supply { background: var(--gold-t); border: 1px solid #EFE0CB; }
.ns .cap { font-size: 12.5px; font-weight: 700; margin-bottom: 5px; }
.ns.need .cap { color: var(--wine); } .ns.supply .cap { color: #8A6B3F; }
.ns .val { font-size: 14px; line-height: 1.75; color: #4A3C37; white-space: pre-wrap; }
.tag-src { font-size: 11px; color: var(--muted); margin-left: 4px; }
/* ---------- 星图 ---------- */
.graph-toolbar { display:flex; align-items:center; gap:16px; padding:6px 12px 12px; flex-wrap:wrap; }
.legend { display:flex; align-items:center; gap:6px; font-size:12.5px; color:var(--muted); }
.legend .dot { width:11px; height:11px; border-radius:50%; display:inline-block; }
.legend .dot.wine { background:var(--wine); } .legend .dot.gold { background:var(--gold); }
.legend .line { width:22px; height:0; display:inline-block; }
.legend .line.w1 { border-top:1.5px solid rgba(160,120,110,.5); }
.legend .line.w3 { border-top:3px solid rgba(123,34,48,.6); }
.legend .line.dash { border-top:2px dashed rgba(185,138,70,.7); }

/* 渠道质量 */
.qrow { display:flex; align-items:center; gap:12px; padding:9px 0; border-bottom:1px dashed var(--line); font-size:13.5px; flex-wrap:wrap; }
.qrow:last-child { border-bottom:none; }
.qrow .qname { width:88px; font-weight:700; color:var(--wine-d); flex-shrink:0; }
.qrow .qnum { font-family:'Noto Serif SC',serif; font-weight:700; color:var(--wine); font-size:16px; }
.qrow .qverdict { font-size:12.5px; color:var(--gold); }
.qmini { font-size:11.5px; color:var(--muted); }

/* 详情页关系 */
.rel-row { display:flex; align-items:center; gap:9px; padding:7px 0; border-bottom:1px dashed var(--line); font-size:13.5px; }
.rel-row:last-child { border-bottom:none; }
.rel-row .x { cursor:pointer; opacity:.4; } .rel-row .x:hover { opacity:1; }

/* 自定义状态下拉 */
.status-drop { position:relative; display:inline-block; }
.status-menu { position:absolute; top:calc(100% + 6px); left:0; background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:0 14px 34px rgba(62,15,23,.18); padding:6px; z-index:60; min-width:130px; display:none; }
.status-menu.show { display:block; }
.status-menu button { display:flex; align-items:center; gap:8px; width:100%; text-align:left; padding:8px 14px; border-radius:9px; font-size:14px; color:var(--ink); }
.status-menu button:hover { background:var(--wine-t2); }
.status-menu button .cur { margin-left:auto; color:var(--wine); font-size:12px; }

.section-gap { margin-top: 20px; }
