:root {
  --orange: #e8622a;
  --orange-dark: #cf4f1c;
  --orange-soft: #fdf0e9;
  --ink: #1f2329;
  --ink-2: #4b5563;
  --ink-3: #8a94a6;
  --line: #e8ebf0;
  --bg: #f6f7f9;
  --white: #fff;
  --green: #16a34a;
  --blue: #2563eb;
  --amber: #d97706;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--ink); font-size: 14px; -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
.muted { color: var(--ink-3); font-size: 13px; }

/* ---------- 登录 ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(1000px 500px at 20% 0%, #fff2ea, #f6f7f9 60%); }
.login-card { width: 360px; background: var(--white); padding: 30px; border-radius: 16px; box-shadow: var(--shadow); }
.login-card label { display: block; margin: 22px 0 8px; font-size: 13px; color: var(--ink-2); }
.login-card input { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; outline: none; }
.login-card input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.login-tip { color: var(--ink-3); font-size: 12px; margin-top: 14px; line-height: 1.6; }

.brand { display: flex; gap: 12px; align-items: center; }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(140deg, #f27b3d, var(--orange-dark)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.brand strong { display: block; font-size: 16px; }
.brand small { color: var(--ink-3); font-size: 12px; }
.brand.small .brand-mark { width: 34px; height: 34px; font-size: 16px; border-radius: 9px; }

/* ---------- 布局 ---------- */
.app { display: grid; grid-template-columns: 224px 1fr; min-height: 100vh; }
.sidebar {
  background: #fff; border-right: 1px solid var(--line); padding: 20px 14px;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.sidebar .brand { padding: 4px 8px 18px; }
#nav { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; flex: 1; }
.nav-item { padding: 10px 12px; border-radius: 8px; color: var(--ink-2); font-size: 14px; cursor: pointer; transition: .15s; }
.nav-item:hover { background: #f5f6f8; color: var(--ink); }
.nav-item.active { background: var(--orange-soft); color: var(--orange-dark); font-weight: 600; }
.logout { border: 1px solid var(--line); background: #fff; color: var(--ink-3); padding: 9px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.logout:hover { color: var(--ink); border-color: #d5d9e0; }

/* 当前登录身份 */
.who { margin: 10px 0 10px; padding: 10px 12px; border-radius: 8px; background: #f7f8fa; border: 1px solid var(--line); }
.who-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.who-role { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 26px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar h1 { font-size: 17px; }
.view { padding: 22px 26px 60px; }

/* ---------- 通用组件 ---------- */
.btn { border: 1px solid var(--line); background: #fff; color: var(--ink-2); padding: 8px 14px; border-radius: 8px; cursor: pointer; font-size: 13px; transition: .15s; white-space: nowrap; }
.btn:hover { border-color: #cfd4dc; color: var(--ink); }
.btn.primary { background: var(--orange); border-color: var(--orange); color: #fff; font-weight: 600; }
.btn.primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--orange-dark); }
.btn.ghost:hover { background: var(--orange-soft); }
.btn.danger { color: #dc2626; border-color: #f2d5d5; background: #fef4f4; }
.btn.sm { padding: 5px 10px; font-size: 12px; border-radius: 6px; }
.btn.block { width: 100%; margin-top: 18px; padding: 11px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.card-hd { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-bd { padding: 18px; }
.grid { display: grid; gap: 14px; }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid.c4 { grid-template-columns: repeat(2, 1fr); } }

.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat .k { color: var(--ink-3); font-size: 12.5px; }
.stat .v { font-size: 26px; font-weight: 700; margin-top: 6px; letter-spacing: -.02em; }
.stat .v small { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.stat.accent { background: linear-gradient(135deg, #fff6f1, #fff); border-color: #f8dccd; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; color: var(--ink-3); font-weight: 600; padding: 10px 14px; background: #fafbfc; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid #f2f4f7; vertical-align: middle; font-size: 13.5px; }
tr:hover td { background: #fcfcfd; }
.tbl-wrap { overflow-x: auto; }

.tag { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 12px; background: #f2f4f7; color: var(--ink-2); margin-right: 4px; }
.tag.orange { background: var(--orange-soft); color: var(--orange-dark); }
.tag.green { background: #e9f8ef; color: #15803d; }
.tag.blue { background: #eef3ff; color: #1d4ed8; }
.tag.amber { background: #fef6e7; color: #b45309; }
.tag.red { background: #fdeceb; color: #b91c1c; }
.tag.gray { background: #f2f4f7; color: #6b7280; }

.input, select.input, textarea.input {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13.5px;
  font-family: inherit; outline: none; background: #fff; color: var(--ink);
}
.input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
textarea.input { resize: vertical; min-height: 70px; line-height: 1.6; }
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; }
.row { display: flex; gap: 10px; align-items: center; }

/* ---------- 弹窗 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(17, 24, 39, .45); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; z-index: 100; overflow: auto; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 860px; box-shadow: 0 24px 64px rgba(16, 24, 40, .24); }
.modal.wide { max-width: 1040px; }
.modal-hd { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-hd h3 { font-size: 16px; }
.modal-bd { padding: 20px; max-height: 72vh; overflow: auto; }
.modal-ft { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.icon-btn { border: none; background: transparent; font-size: 18px; color: var(--ink-3); cursor: pointer; line-height: 1; }

/* ---------- 每日行程编辑器 ---------- */
.day-editor { border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 12px; background: #fcfcfd; }
.day-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.day-badge { background: var(--orange-soft); color: var(--orange-dark); font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 6px; }
.day-editor .field { margin-bottom: 10px; }
.day-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- 上传区 ---------- */
.dropzone { border: 2px dashed #e2e5ea; border-radius: 12px; padding: 40px; text-align: center; background: #fcfcfd; cursor: pointer; transition: .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--orange); background: var(--orange-soft); }
.dropzone .big { font-size: 30px; }
.dropzone p { margin: 8px 0 0; color: var(--ink-3); font-size: 13px; }

/* ---------- 目的地树 ---------- */
.tree-node { padding: 8px 10px; border-radius: 8px; display: flex; align-items: center; gap: 10px; }
.tree-node:hover { background: #f7f8fa; }
.tree-children { margin-left: 22px; border-left: 1px dashed #e6e9ee; padding-left: 10px; }
.lvl { font-size: 11px; padding: 1px 7px; border-radius: 4px; }
.lvl.continent { background: var(--orange-soft); color: var(--orange-dark); }
.lvl.country { background: #eef3ff; color: #1d4ed8; }
.lvl.city { background: #eef7f1; color: #15803d; }

.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px); background: #1f2329; color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 13px; opacity: 0; transition: .25s; pointer-events: none; z-index: 300; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: #b91c1c; }

.empty { padding: 44px; text-align: center; color: var(--ink-3); font-size: 13px; }
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
@media (max-width: 980px) { .split { grid-template-columns: 1fr; } }
.demand-box { background: #fbfbfc; border: 1px solid var(--line); border-radius: 10px; padding: 14px; line-height: 1.7; white-space: pre-wrap; }
.pill-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { padding: 6px 12px; border-radius: 20px; font-size: 13px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink-2); }
.pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- 行程预览（手机框 · 复刻小程序详情页） ---------- */
.preview-wrap { display: flex; gap: 22px; align-items: flex-start; }
.phone-frame { width: 375px; flex-shrink: 0; background: #f7f8fa; border: 8px solid #1f2329; border-radius: 34px; overflow: hidden; box-shadow: 0 16px 44px rgba(16, 24, 40, .18); }
.phone-status { height: 30px; background: #1f2329; color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 0 18px; font-size: 11.5px; letter-spacing: .02em; }
.phone-nav { height: 40px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 14.5px; font-weight: 600; border-bottom: 1px solid #eef0f3; }
.phone-body { height: 640px; overflow-y: auto; scrollbar-width: none; }
.phone-body::-webkit-scrollbar { width: 0; }

/* 封面（rpx 按 0.5 换算为 px，与小程序 wxss 一致） */
.mp-hero { position: relative; height: 210px; }
.mp-hero img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.mp-shade { position: absolute; left: 0; right: 0; top: 0; bottom: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .55) 100%); }
.mp-hero-text { position: absolute; left: 16px; right: 16px; bottom: 18px; }
.mp-hero-tags { display: flex; flex-wrap: wrap; margin-bottom: 7px; }
.mp-hero-tag { font-size: 10px; color: #fff; background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .35); padding: 2px 7px; border-radius: 3px; margin: 0 6px 4px 0; }
.mp-hero-title { color: #fff; font-size: 22px; font-weight: 700; line-height: 1.3; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.mp-hero-sub { color: rgba(255, 255, 255, .88); font-size: 12px; margin-top: 5px; }
/* 渐变占位色（与小程序 app.wxss 相同） */
.g0 { background: linear-gradient(135deg, #2b3a67, #5b7db1); }
.g1 { background: linear-gradient(135deg, #1f4e5f, #2f8f9d); }
.g2 { background: linear-gradient(135deg, #6b4226, #b98b5e); }
.g3 { background: linear-gradient(135deg, #4a2b52, #8f6b9e); }
.g4 { background: linear-gradient(135deg, #23423a, #5b8a6f); }
.g5 { background: linear-gradient(135deg, #3b3f46, #6f747d); }
.g6 { background: linear-gradient(135deg, #2d3e50, #4a6b8a); }
.g7 { background: linear-gradient(135deg, #5a2b2b, #a15c4a); }

/* 信息卡 */
.mp-info-card { margin: -14px 12px 0; position: relative; background: #fff; border-radius: 12px; padding: 14px; box-shadow: 0 4px 15px rgba(16, 24, 40, .07); }
.mp-info-grid { display: flex; }
.mp-info-item { flex: 1; text-align: center; position: relative; }
.mp-info-item + .mp-info-item::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: #eef0f3; }
.mp-info-v { font-size: 20px; font-weight: 700; letter-spacing: -.3px; }
.mp-info-v.price { color: #e8622a; }
.mp-unit { font-size: 11px; font-weight: 500; color: #8a94a6; margin-left: 2px; }
.mp-info-k { font-size: 11px; color: #8a94a6; margin-top: 3px; }
.mp-loc-row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 11px; border-top: 1px solid #f2f4f7; font-size: 11px; color: #8a94a6; }
.mp-seasons { color: #d4551f; }
.mp-summary { margin-top: 10px; font-size: 13px; color: #4b5563; line-height: 1.75; }

/* 每日时间轴 */
.mp-block { margin: 12px 12px 0; background: #fff; border-radius: 12px; padding: 14px; }
.mp-block-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.mp-day { display: flex; }
.mp-day-left { width: 38px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; }
.mp-day-badge { width: 34px; height: 22px; border-radius: 4px; background: rgba(232, 98, 42, .1); color: #d4551f; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.mp-day-line { flex: 1; width: 1px; background: #eef0f3; margin: 6px 0; }
.mp-day-body { flex: 1; padding: 0 0 17px 9px; }
.mp-day-title { font-size: 14px; font-weight: 600; line-height: 1.5; }
.mp-day-city { font-size: 11px; color: #8a94a6; margin-top: 2px; }
.mp-day-desc { font-size: 12px; color: #6b7280; line-height: 1.7; margin-top: 5px; }
.mp-day-imgs { display: flex; gap: 6px; overflow-x: auto; margin-top: 8px; scrollbar-width: none; }
.mp-day-imgs::-webkit-scrollbar { height: 0; }
.mp-day-img { width: 132px; height: 88px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: #f6f7f9; display: block; }
.mp-day-imgs.one .mp-day-img { width: 100%; height: auto; aspect-ratio: 16 / 10; }
.mp-day-section { margin-top: 7px; display: flex; }
.mp-day-label { width: 28px; flex-shrink: 0; font-size: 11px; color: #9aa3b0; line-height: 22px; }
.mp-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.mp-chip { font-size: 11px; color: #4b5563; background: #f6f7f9; padding: 3px 8px; border-radius: 4px; }
.mp-chip.hotel { background: #fdf6ef; color: #a8663a; }
.mp-day-meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.mp-meta-item { font-size: 11px; color: #8a94a6; }

/* 相似线路 */
.mp-rel-scroll { display: flex; overflow-x: auto; scrollbar-width: none; }
.mp-rel-scroll::-webkit-scrollbar { height: 0; }
.mp-rel-card { width: 130px; margin-right: 10px; flex-shrink: 0; }
.mp-rel-cover { position: relative; height: 85px; border-radius: 8px; overflow: hidden; }
.mp-rel-cover img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.mp-rel-name { position: absolute; left: 8px; right: 8px; bottom: 7px; color: #fff; font-size: 11px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-rel-meta { font-size: 11px; color: #8a94a6; margin-top: 5px; }

/* 底部操作栏（预览态） */
.mp-action-bar { position: sticky; bottom: 0; background: #fff; padding: 8px 12px 12px; display: flex; align-items: center; box-shadow: 0 -3px 12px rgba(16, 24, 40, .06); margin-top: 12px; }
.mp-icon-act { width: 46px; display: flex; flex-direction: column; align-items: center; font-size: 10px; color: #6b7280; cursor: default; }
.mp-heart { font-size: 17px; color: #c6ccd6; line-height: 1.2; }
.mp-share-icon { font-size: 16px; color: #6b7280; line-height: 1.2; }
.mp-act-buttons { flex: 1; display: flex; gap: 8px; margin-left: 6px; }
.mp-act-btn { flex: 1; height: 40px; line-height: 40px; font-size: 13px; text-align: center; border-radius: 999px; }
.mp-btn-ghost { border: 1px solid #e8622a; color: #e8622a; background: #fff; }
.mp-btn-primary { background: #e8622a; color: #fff; font-weight: 600; }

/* 右侧信息面板 */
.preview-side { flex: 1; min-width: 260px; }
.preview-side .card { margin-bottom: 12px; }
.side-kv { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed #eef0f3; font-size: 13px; }
.side-kv:last-child { border-bottom: none; }
.side-kv .k { color: var(--ink-3); }
.ver-item { padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; font-size: 12.5px; }

/* 编辑器 · 当日图片 */
.thumb-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.thumb { position: relative; width: 84px; height: 56px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #f6f7f9; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-x {
  position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%;
  border: none; background: rgba(17, 24, 39, .62); color: #fff; font-size: 11px; line-height: 18px;
  cursor: pointer; padding: 0;
}
.thumb-x:hover { background: #dc2626; }
.thumb-add {
  width: 84px; height: 56px; border-radius: 8px; border: 1px dashed #cbd2dc; background: #fbfbfc;
  color: var(--ink-3); font-size: 14px; cursor: pointer; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; line-height: 1.2;
}
.thumb-add small { font-size: 11px; }
.thumb-add:hover { border-color: var(--orange); color: var(--orange-dark); background: var(--orange-soft); }
.day-editor .thumb-row + .row .input { height: 32px; font-size: 12.5px; }

/* ---------- AI 解析 / 上传 ---------- */
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack > .card { margin: 0; }
.engine-chip {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px;
  border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.engine-chip.on { background: #eaf7ef; color: #15803d; border: 1px solid #c9ebd5; }
.engine-chip.off { background: #f4f5f7; color: var(--ink-3); border: 1px solid var(--line); }
.hint-warn { color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 8px 10px; font-size: 12.5px; line-height: 1.7; margin: 12px 0 0; }
.hint-warn a { color: var(--orange-dark); font-weight: 600; }
.parse-result { border-color: #e8ebf0; background: #fcfcfd; }
.parse-result.ai { border-color: #f8dccd; background: #fffaf7; }
.parse-loading { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 13px; padding: 10px 2px; }
.spinner {
  width: 15px; height: 15px; border-radius: 50%; flex: 0 0 auto;
  border: 2px solid #e6e8ec; border-top-color: var(--orange); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.steps { font-size: 13px; color: var(--ink-2); line-height: 1.9; }
.steps b {
  display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: var(--orange-soft); color: var(--orange-dark); font-size: 11px; margin-right: 6px;
}
.steps > div { margin-bottom: 4px; }
textarea.input.paste-box { width: 100%; height: 200px; min-height: 200px; resize: vertical; line-height: 1.8; font-size: 13px; }
.kv-line { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed #eef0f3; }
.kv-line:last-of-type { border-bottom: none; }
.kv-line span { color: var(--ink-3); }
.tag.amber { background: #fff4e5; color: #b45309; }

/* 开关 */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; background: #d7dbe2; border-radius: 999px; transition: .18s; cursor: pointer; }
.switch i::after {
  content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: .18s; box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.switch input:checked + i { background: var(--orange); }
.switch input:checked + i::after { transform: translateX(18px); }

.cfg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin-top: 16px; }
.cfg-grid .field { margin: 0; }
.cfg-grid .input, .cfg-grid select { width: 100%; }
code { background: #f2f4f7; padding: 1px 5px; border-radius: 4px; font-size: 12px; }
@media (max-width: 1100px) { .cfg-grid { grid-template-columns: 1fr; } }

/* ---------- 角色权限 ---------- */
.role-card { margin-bottom: 16px; }
.role-hd { align-items: flex-start; }
.perm-group { margin-top: 4px; }
.perm-group + .perm-group { margin-top: 16px; }
.perm-group-hd { font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: .04em; margin-bottom: 8px; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.perm {
  display: flex; align-items: center; gap: 8px; padding: 9px 11px; font-size: 13px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; transition: .14s;
}
.perm:hover { border-color: #d7dbe2; }
.perm.on { background: var(--orange-soft); border-color: #f5d3c1; color: var(--orange-dark); }
.perm input { width: 15px; height: 15px; margin: 0; accent-color: var(--orange); cursor: pointer; flex: 0 0 auto; }
.perm.locked { opacity: .55; cursor: not-allowed; }
.perm.locked input { cursor: not-allowed; }
.perm-picker { max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.perm.locked.on { background: #fff; border-color: var(--line); color: var(--ink-2); }
.perm-picker { scrollbar-width: thin; }

/* ---------- 需求订单跟进 ---------- */
.order-status-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 10px 14px; margin-bottom: 14px; font-size: 13px;
  background: #fafbfc; border: 1px solid var(--line); border-radius: 10px;
}
.order-actions {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px; border: 1px dashed var(--line); border-radius: 10px;
}
.audit-box { width: 100%; }
.audit-title { font-size: 13px; color: var(--ink-2); line-height: 1.7; margin-bottom: 10px; }
.audit-box .input { width: 100%; }

.timeline { position: relative; padding-left: 18px; margin-bottom: 4px; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: #e8ebf0; }
.tl-item { position: relative; padding: 0 0 14px 14px; }
.tl-dot {
  position: absolute; left: -17px; top: 8px; width: 9px; height: 9px; border-radius: 50%;
  background: #c7ccd6; border: 2px solid #fff; box-shadow: 0 0 0 1px #e8ebf0;
}
.tl-dot.green { background: #22a06b; }
.tl-dot.blue { background: #3b6fd4; }
.tl-dot.amber { background: #e08b1a; }
.tl-dot.red { background: #d64545; }
.tl-dot.gray { background: #b6bcc8; }
.tl-body { background: #fafbfc; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.tl-hd { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tl-hd b { font-size: 13px; margin-left: 6px; }
.tl-text { margin-top: 6px; font-size: 13px; color: var(--ink-2); line-height: 1.7; white-space: pre-wrap; }
/* 没有方案版本时，订单详情用单栏铺满，避免右侧大片空白 */
.split.single { grid-template-columns: 1fr; }
.split.single > div:last-child { display: none; }

/* 个人信息：二维码预览 */
.who.clickable { cursor: pointer; transition: border-color .15s, background .15s; }
.who.clickable:hover { border-color: #f0b27a; background: #fff7f0; }
.qr-box {
  height: 210px; border: 1px dashed var(--line); border-radius: 10px;
  background: #fafbfc; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.qr-img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.qr-empty { font-size: 13px; color: var(--ink-3); }
