/* ==========================================================================
   国希-商机平台 · 交互原型样式表
   仅用于原型演示，非生产样式
   ========================================================================== */

:root {
  --brand: #1677ff;
  --brand-d: #0e5fd8;
  --brand-l: #e8f2ff;
  --green: #00b578;
  --green-l: #e6f9f2;
  --orange: #ff8f1f;
  --orange-l: #fff3e6;
  --red: #f5222d;
  --red-l: #fff1f0;
  --purple: #722ed1;
  --purple-l: #f4ecff;
  --gold: #d4a017;
  --gold-l: #fdf6e3;

  --ink: #1a1d24;
  --ink-2: #4a5160;
  --ink-3: #7c8494;
  --ink-4: #a8b0bf;
  --line: #eceef2;
  --bg: #f5f6f8;
  --card: #ffffff;

  --r-s: 8px;
  --r-m: 12px;
  --r-l: 16px;
  --r-xl: 22px;
  --sh-1: 0 1px 2px rgba(20, 25, 40, .04), 0 2px 8px rgba(20, 25, 40, .04);
  --sh-2: 0 4px 16px rgba(20, 25, 40, .10);
  --sh-3: 0 12px 40px rgba(20, 25, 40, .18);
  --ff: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--ff);
  color: var(--ink);
  background: #e9ecf2;
  font-size: 14px;
  line-height: 1.55;
  min-height: 100vh;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
h1,h2,h3,h4,p { margin: 0; }
a { color: var(--brand); text-decoration: none; }
[hidden] { display: none !important; }

/* ============================ 原型控制条 ============================ */
.proto-bar {
  position: sticky; top: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 18px;
  background: #171a21; color: #fff;
  box-shadow: var(--sh-2);
  flex-wrap: wrap;
}
.pb-left { display: flex; align-items: center; gap: 10px; }
.pb-logo {
  font-weight: 700; letter-spacing: 1px; font-size: 13px;
  background: linear-gradient(135deg, #1677ff, #4c9bff);
  padding: 3px 9px; border-radius: 6px;
}
.pb-title { font-size: 13px; color: #dfe3ea; }
.pb-badge {
  font-size: 11px; padding: 2px 8px; border-radius: 20px;
  background: rgba(0, 181, 120, .16); color: #4fd6a5; border: 1px solid rgba(79, 214, 165, .3);
}
.pb-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pb-field { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #aab2c0; }
.pb-field select {
  background: #262b35; color: #fff; border: 1px solid #363c48;
  border-radius: 7px; padding: 5px 9px; font-size: 12px; outline: none;
}
.pb-btn {
  font-size: 12px; padding: 6px 12px; border-radius: 7px;
  background: #1677ff; color: #fff; transition: .15s;
}
.pb-btn:hover { background: #3f8dff; }
.pb-btn-ghost { background: transparent; border: 1px solid #3a4150; color: #cfd6e2; }
.pb-btn-ghost:hover { background: #262b35; }

/* ============================ 手机壳 ============================ */
.phone-stage {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 34px; padding: 30px 20px 60px;
  min-height: calc(100vh - 52px);
}
.phone {
  position: relative; width: 390px; height: 844px; flex: 0 0 auto;
  background: #0d0f13; border-radius: 46px; padding: 11px;
  box-shadow: 0 24px 70px rgba(15, 20, 35, .34), 0 0 0 2px #2a2f3a inset;
}
.phone-notch {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 118px; height: 26px; background: #0d0f13;
  border-radius: 0 0 16px 16px; z-index: 30;
}
.phone-screen {
  position: relative; width: 100%; height: 100%;
  background: var(--bg); border-radius: 36px; overflow: hidden;
}
.phone-home {
  position: absolute; bottom: 17px; left: 50%; transform: translateX(-50%);
  width: 118px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.5); z-index: 30;
}

/* 舞台侧栏 */
.stage-side {
  width: 300px; flex: 0 0 auto;
  display: flex; flex-direction: column; gap: 14px;
  padding-top: 6px;
  max-height: 844px; overflow: auto;
}
.side-card {
  background: #fff; border-radius: var(--r-l); padding: 15px 16px; box-shadow: var(--sh-1);
}
.side-card h4 { font-size: 13px; color: var(--ink); margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.side-card .side-sub { font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.side-steps { list-style: none; margin: 10px 0 0; padding: 0; counter-reset: s; }
.side-steps li {
  position: relative; padding: 0 0 12px 24px; font-size: 12px; color: var(--ink-2); line-height: 1.5;
}
.side-steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 1px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand-l); color: var(--brand); font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.side-steps li::after {
  content: ''; position: absolute; left: 7.5px; top: 19px; bottom: 2px; width: 1px; background: var(--line);
}
.side-steps li:last-child::after { display: none; }
.side-steps li b { color: var(--ink); }
.side-steps li.is-done::before { background: var(--green); color: #fff; }
.side-kv { display: flex; justify-content: space-between; font-size: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.side-kv:last-child { border-bottom: none; }
.side-kv span { color: var(--ink-3); }
.side-kv b { color: var(--ink); font-weight: 600; }
.side-note {
  font-size: 11px; color: var(--ink-3); background: var(--gold-l);
  border-left: 3px solid var(--gold); padding: 8px 10px; border-radius: 0 6px 6px 0; line-height: 1.6;
}

/* ============================ 应用框架 ============================ */
.app { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); }

.nav {
  flex: 0 0 auto; position: relative; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  height: 86px; padding: 34px 12px 12px;
  background: #fff; border-bottom: 1px solid var(--line);
}
.nav.nav-plain { background: transparent; border-bottom: none; }
.nav.nav-brand { background: linear-gradient(135deg, #1677ff, #3f8dff); border-bottom: none; }
.nav.nav-brand .nav-title { color: #fff; }
.nav.nav-brand .nav-back { color: #fff; }
.nav.nav-brand .nav-action { color: #fff; }
.nav-back {
  width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; color: var(--ink); line-height: 1;
}
.nav-back:active { background: rgba(0,0,0,.05); }
.nav-title { flex: 1; font-size: 16.5px; font-weight: 600; text-align: center; margin-right: 30px; }
.nav-title.has-action { margin-right: 0; }
.nav-action { font-size: 13px; color: var(--brand); flex: 0 0 auto; padding: 4px 2px; }
.nav-slot-l { width: 30px; flex: 0 0 auto; }

.body {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch; scroll-behavior: smooth;
}
.body::-webkit-scrollbar { width: 0; }
.body-pad { padding: 12px; }
.body-pad-b { padding-bottom: 90px; }

/* 底部标签栏 */
.tabbar {
  flex: 0 0 auto; display: flex; align-items: stretch;
  height: 62px; padding-bottom: 4px;
  background: #fff; border-top: 1px solid var(--line);
}
.tabbar-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 10.5px; color: var(--ink-4); position: relative;
}
.tabbar-item .ti-ico { font-size: 19px; line-height: 1; }
.tabbar-item.is-on { color: var(--brand); font-weight: 600; }
.tabbar-item .ti-dot {
  position: absolute; top: 8px; right: 50%; margin-right: -20px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px;
  background: var(--red); color: #fff; font-size: 10px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.tabbar-item.is-cta { flex: 1.1; }
.tabbar-item.is-cta .ti-ico {
  width: 42px; height: 42px; border-radius: 50%; margin-top: -16px;
  background: linear-gradient(135deg, #1677ff, #4c9bff); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(22, 119, 255, .38); font-size: 22px;
}
.tabbar-item.is-cta span:last-child { margin-top: 0; color: var(--brand); font-weight: 600; }

/* ============================ 通用组件 ============================ */
.card {
  background: var(--card); border-radius: var(--r-l);
  padding: 14px; box-shadow: var(--sh-1); margin-bottom: 10px;
}
.card-tight { padding: 12px; }
.card-flat { box-shadow: none; border: 1px solid var(--line); }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.card-head h3 { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.card-head .more { font-size: 12px; color: var(--ink-3); }
.card-foot { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }

.sec-title {
  font-size: 12.5px; color: var(--ink-3); font-weight: 600;
  padding: 4px 4px 8px; letter-spacing: .2px;
}
.sec-title.row { display: flex; align-items: center; justify-content: space-between; }
.sec-title.row a { font-size: 12px; font-weight: 400; }

.divider { height: 1px; background: var(--line); margin: 12px 0; }
.divider-dash { height: 1px; background: repeating-linear-gradient(90deg, var(--line) 0 4px, transparent 4px 8px); margin: 12px 0; }
.spacer-8 { height: 8px; } .spacer-12 { height: 12px; } .spacer-20 { height: 20px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.tc { text-align: center; } .tr { text-align: right; }
.muted { color: var(--ink-3); } .muted-2 { color: var(--ink-4); }
.fs-11 { font-size: 11px; } .fs-12 { font-size: 12px; } .fs-13 { font-size: 13px; } .fs-16 { font-size: 16px; }
.bold { font-weight: 600; }
.price { color: var(--red); font-weight: 700; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.price::before { content: '¥'; font-size: .76em; margin-right: 1px; }
.flex { display: flex; } .flex-1 { flex: 1; } .aic { align-items: center; } .jcb { justify-content: space-between; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.wrap { flex-wrap: wrap; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }

.tag {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10.5px; font-weight: 600; line-height: 1;
  padding: 4px 7px; border-radius: 5px; background: var(--brand-l); color: var(--brand);
  white-space: nowrap;
}
.tag-green { background: var(--green-l); color: var(--green); }
.tag-orange { background: var(--orange-l); color: var(--orange); }
.tag-red { background: var(--red-l); color: var(--red); }
.tag-purple { background: var(--purple-l); color: var(--purple); }
.tag-gold { background: var(--gold-l); color: var(--gold); }
.tag-gray { background: #f2f3f5; color: var(--ink-3); }
.tag-line { background: transparent; border: 1px solid currentColor; }

.badge-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: 42px; padding: 0 18px; border-radius: 21px;
  font-size: 14.5px; font-weight: 600; background: var(--brand); color: #fff;
  transition: .15s; width: 100%;
}
.btn:active { transform: scale(.985); }
.btn-primary { background: linear-gradient(135deg, #1677ff, #3f8dff); }
.btn-green { background: linear-gradient(135deg, #00b578, #22c98d); }
.btn-danger { background: linear-gradient(135deg, #f5222d, #ff5c5c); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost-brand { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.btn-gray { background: #f2f3f5; color: var(--ink-2); }
.btn-sm { height: 32px; font-size: 12.5px; border-radius: 16px; padding: 0 13px; width: auto; }
.btn-xs { height: 26px; font-size: 11.5px; border-radius: 13px; padding: 0 10px; width: auto; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { background: #e5e7eb !important; color: #a8b0bf !important; pointer-events: none; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

.btn-bar {
  position: sticky; bottom: 0; z-index: 15;
  padding: 10px 12px 12px; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-top: 1px solid var(--line);
  display: flex; gap: 10px; align-items: center;
}
.btn-bar .bar-info { flex: 1; min-width: 0; }
.btn-bar .bar-info .lbl { font-size: 11px; color: var(--ink-3); }
.btn-bar .btn { width: auto; padding: 0 22px; flex: 0 0 auto; }

/* 列表 */
.list { background: #fff; border-radius: var(--r-l); box-shadow: var(--sh-1); overflow: hidden; }
.list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-bottom: 1px solid var(--line);
  transition: background .12s;
}
.list-item:last-child { border-bottom: none; }
.list-item:active { background: #fafbfc; }
.li-ico {
  width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
  background: var(--brand-l);
}
.li-main { flex: 1; min-width: 0; }
.li-title { font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.li-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.li-right { flex: 0 0 auto; text-align: right; font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.li-arrow { color: var(--ink-4); font-size: 15px; }
.li-arrow::after { content: '›'; }

/* 表单 */
.form { background: #fff; border-radius: var(--r-l); box-shadow: var(--sh-1); overflow: hidden; }
.form-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 13px 14px; border-bottom: 1px solid var(--line); min-height: 50px;
}
.form-row:last-child { border-bottom: none; }
.form-row.align-top { align-items: flex-start; }
.fr-label { flex: 0 0 88px; font-size: 13.5px; color: var(--ink-2); padding-top: 2px; }
.fr-label.req::after { content: '*'; color: var(--red); margin-left: 2px; }
.fr-ctrl { flex: 1; min-width: 0; }
.fr-ctrl input[type=text], .fr-ctrl input[type=tel], .fr-ctrl input[type=number],
.fr-ctrl input[type=date], .fr-ctrl textarea, .fr-ctrl select {
  width: 100%; border: none; outline: none; background: transparent;
  font-size: 14px; padding: 2px 0; resize: none;
}
.fr-ctrl input::placeholder, .fr-ctrl textarea::placeholder { color: var(--ink-4); }
.fr-ctrl textarea { line-height: 1.6; min-height: 62px; }
.fr-tip { font-size: 11px; color: var(--ink-4); margin-top: 4px; line-height: 1.5; }
.fr-tip.warn { color: var(--orange); }
.fr-tip.err { color: var(--red); }
.fr-ico { flex: 0 0 auto; color: var(--ink-4); font-size: 15px; }
.fr-val { font-size: 14px; text-align: right; flex: 1; }
.fr-err { font-size: 11.5px; color: var(--red); margin-top: 4px; }

.checkbox { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.cb-box {
  flex: 0 0 auto; width: 18px; height: 18px; border-radius: 5px; margin-top: 1px;
  border: 1.5px solid var(--ink-4); display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: transparent; transition: .15s;
}
.cb-box.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }

.stepper { display: flex; align-items: center; gap: 10px; }
.stepper .st-btn {
  width: 30px; height: 30px; border-radius: 8px; background: #f2f3f5;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.stepper .st-val { font-size: 15px; font-weight: 600; min-width: 58px; text-align: center; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-size: 12.5px; padding: 6px 12px; border-radius: 16px;
  background: #f2f3f5; color: var(--ink-2); border: 1px solid transparent; transition: .15s;
}
.chip.is-on { background: var(--brand-l); color: var(--brand); border-color: rgba(22,119,255,.35); font-weight: 600; }
.chip-s { font-size: 11.5px; padding: 4px 10px; }

.switch {
  width: 44px; height: 25px; border-radius: 13px; background: #d9dde5;
  position: relative; transition: .18s; flex: 0 0 auto;
}
.switch::after {
  content: ''; position: absolute; top: 2.5px; left: 2.5px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: .18s;
}
.switch.is-on { background: var(--brand); }
.switch.is-on::after { left: 21.5px; }

/* 商机卡片 */
.opp-card {
  background: #fff; border-radius: var(--r-l); padding: 14px;
  box-shadow: var(--sh-1); margin-bottom: 10px; position: relative; transition: .15s;
}
.opp-card:active { transform: scale(.995); }
.opp-card .oc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.opp-card .oc-name { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.opp-card .oc-desc {
  font-size: 12.5px; color: var(--ink-2); margin-top: 7px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.opp-card .oc-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 9px; font-size: 11.5px; color: var(--ink-3); }
.opp-card .oc-meta i { font-style: normal; }
.opp-card .oc-bot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 11px; padding-top: 10px; border-top: 1px dashed var(--line);
}
.opp-card .oc-price { font-size: 17px; }
.opp-card .oc-apply { font-size: 11.5px; color: var(--ink-3); }

.ribbon {
  position: absolute; top: 0; right: 0; font-size: 10px; font-weight: 700;
  padding: 3px 9px; border-radius: 0 var(--r-l) 0 10px; color: #fff;
}
.ribbon-blue { background: var(--brand); }
.ribbon-orange { background: var(--orange); }
.ribbon-green { background: var(--green); }
.ribbon-purple { background: var(--purple); }
.ribbon-gray { background: var(--ink-4); }
.ribbon-red { background: var(--red); }

/* 数据统计 */
.stat-row { display: flex; gap: 10px; }
.stat {
  flex: 1; background: #fff; border-radius: var(--r-m); padding: 11px 8px;
  text-align: center; box-shadow: var(--sh-1);
}
.stat .st-num { font-size: 19px; font-weight: 700; font-family: ui-monospace, Menlo, monospace; }
.stat .st-lbl { font-size: 11px; color: var(--ink-3); margin-top: 1px; }

.hero {
  background: linear-gradient(160deg, #1677ff 0%, #3f8dff 55%, #62a5ff 100%);
  padding: 0 14px 46px; color: #fff; position: relative;
}
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 26px;
  background: var(--bg); border-radius: 20px 20px 0 0;
}
.hero-user { display: flex; align-items: center; gap: 11px; padding: 6px 2px 14px; }
.hero-avatar {
  width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 600;
  border: 1.5px solid rgba(255,255,255,.5);
}
.hero-name { font-size: 16px; font-weight: 600; }
.hero-sub { font-size: 11.5px; opacity: .88; }
.hero-stats {
  display: flex; background: rgba(255,255,255,.15); border-radius: var(--r-m);
  padding: 11px 0; backdrop-filter: blur(4px);
}
.hero-stats .hs { flex: 1; text-align: center; position: relative; }
.hero-stats .hs + .hs::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: rgba(255,255,255,.25);
}
.hero-stats .hs b { display: block; font-size: 17px; font-family: ui-monospace, Menlo, monospace; }
.hero-stats .hs span { font-size: 11px; opacity: .85; }

.pull-up { margin-top: -34px; position: relative; z-index: 5; padding: 0 12px; }

.todo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.todo-item {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 10px 2px; border-radius: var(--r-m); position: relative;
}
.todo-item:active { background: #fafbfc; }
.todo-item .td-ico { font-size: 21px; line-height: 1; position: relative; }
.todo-item .td-lbl { font-size: 11px; color: var(--ink-2); text-align: center; }
.todo-item .td-num {
  position: absolute; top: 4px; right: 50%; margin-right: -24px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px;
  background: var(--red); color: #fff; font-size: 10px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}

/* 步骤条 */
.steps { display: flex; align-items: center; margin: 4px 0 2px; }
.step { flex: 1; text-align: center; position: relative; font-size: 10.5px; color: var(--ink-4); }
.step .sp-dot {
  width: 21px; height: 21px; border-radius: 50%; margin: 0 auto 5px;
  background: #eef0f4; color: var(--ink-4); font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; position: relative; z-index: 2;
}
.step::before {
  content: ''; position: absolute; top: 10px; left: -50%; width: 100%; height: 2px; background: #eef0f4; z-index: 1;
}
.step:first-child::before { display: none; }
.step.is-done .sp-dot { background: var(--green); color: #fff; }
.step.is-done::before { background: var(--green); }
.step.is-on .sp-dot { background: var(--brand); color: #fff; box-shadow: 0 0 0 4px rgba(22,119,255,.14); }
.step.is-on { color: var(--brand); font-weight: 600; }
.step.is-on::before { background: var(--green); }

/* 时间线 */
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 10px; width: 1.5px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 14px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -18.5px; top: 4px;
  width: 9px; height: 9px; border-radius: 50%; background: #d9dde5; border: 2px solid #fff;
}
.tl-item.is-on::before { background: var(--brand); box-shadow: 0 0 0 3px rgba(22,119,255,.16); }
.tl-item.is-done::before { background: var(--green); }
.tl-item.is-warn::before { background: var(--orange); }
.tl-item.is-err::before { background: var(--red); }
.tl-time { font-size: 11px; color: var(--ink-4); }
.tl-title { font-size: 13.5px; font-weight: 500; margin-top: 1px; }
.tl-desc { font-size: 12px; color: var(--ink-3); margin-top: 2px; line-height: 1.55; }

/* 倒计时 */
.countdown {
  display: flex; align-items: center; gap: 6px; font-size: 12px;
  background: var(--orange-l); color: var(--orange); font-weight: 600;
  padding: 7px 11px; border-radius: 9px;
}
.countdown.is-urgent { background: var(--red-l); color: var(--red); }
.countdown .cd-ico { font-size: 13px; }
.countdown .cd-txt { font-weight: 600; letter-spacing: .2px; }

/* 通知条 */
.notice {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; line-height: 1.6; padding: 10px 12px; border-radius: var(--r-m);
  background: var(--brand-l); color: var(--brand-d); margin-bottom: 10px;
}
.notice-warn { background: var(--orange-l); color: #b96a00; }
.notice-red { background: var(--red-l); color: #c11; }
.notice-green { background: var(--green-l); color: #00794f; }
.notice-gold { background: var(--gold-l); color: #8a6a00; }
.notice .nt-ico { flex: 0 0 auto; font-size: 14px; line-height: 1.4; }

/* 信息行 */
.kv { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: 13px; }
.kv + .kv { border-top: 1px dashed var(--line); }
.kv-k { flex: 0 0 84px; color: var(--ink-3); }
.kv-v { flex: 1; min-width: 0; word-break: break-all; }
.kv-v.mono { font-family: ui-monospace, Menlo, monospace; }

/* 脱敏 / 锁定 */
.locked {
  display: flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 13px;
}
.locked .lk-ico { font-size: 13px; }
.masked { letter-spacing: 1px; color: var(--ink-4); }
.blur-lock {
  position: relative; overflow: hidden; border-radius: var(--r-m);
  background: repeating-linear-gradient(45deg, #f7f8fa, #f7f8fa 8px, #f2f3f6 8px, #f2f3f6 16px);
  border: 1px dashed #d9dde5; padding: 14px; text-align: center;
}
.blur-lock .bl-ico { font-size: 22px; }
.blur-lock .bl-t { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }

/* 关系卡 */
.rel-bar {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px; font-size: 12.5px;
  border-radius: var(--r-m); margin-bottom: 10px;
}
.rel-pub { background: var(--purple-l); color: var(--purple); }
.rel-take { background: var(--green-l); color: #00794f; }
.rel-apply { background: var(--brand-l); color: var(--brand-d); }
.rel-none { background: #f2f3f5; color: var(--ink-3); }

/* 空态 */
.empty { text-align: center; padding: 54px 20px; color: var(--ink-3); }
.empty .em-ico { font-size: 42px; opacity: .35; }
.empty .em-t { font-size: 13.5px; margin-top: 10px; }
.empty .em-s { font-size: 12px; color: var(--ink-4); margin-top: 4px; line-height: 1.6; }

/* 筛选条 */
.filter-bar {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px;
  background: #fff; border-bottom: 1px solid var(--line);
}
.filter-bar::-webkit-scrollbar { height: 0; }
.filter-bar .chip { flex: 0 0 auto; }
.search-bar {
  display: flex; align-items: center; gap: 7px;
  background: #f2f3f5; border-radius: 18px; padding: 8px 13px; margin: 0 0 2px;
}
.search-bar input { flex: 1; border: none; background: transparent; outline: none; font-size: 13px; }
.search-bar .sb-ico { color: var(--ink-4); font-size: 14px; }

/* 进度 */
.progress { height: 5px; border-radius: 3px; background: #eef0f4; overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 3px; background: var(--brand); }
.progress > i.green { background: var(--green); }

/* 头像 */
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(135deg, #4c9bff, #1677ff); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
}
.avatar-lg { width: 46px; height: 46px; font-size: 17px; }
.avatar-green { background: linear-gradient(135deg, #22c98d, #00b578); }
.avatar-orange { background: linear-gradient(135deg, #ffb04c, #ff8f1f); }
.avatar-purple { background: linear-gradient(135deg, #9d6bff, #722ed1); }

/* 评分 */
.stars { color: #ffb400; font-size: 12px; letter-spacing: 1px; }

/* 上传 */
.upload-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.upload-box {
  aspect-ratio: 1; border-radius: var(--r-m); border: 1px dashed #d9dde5;
  background: #fafbfc; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--ink-4); font-size: 10.5px;
}
.upload-box .ub-ico { font-size: 20px; }
.upload-ph {
  aspect-ratio: 1; border-radius: var(--r-m); background: linear-gradient(135deg, #e8eef7, #dbe6f5);
  display: flex; align-items: center; justify-content: center; font-size: 22px; color: #9cb4d4;
  position: relative; overflow: hidden;
}
.upload-ph .up-del {
  position: absolute; top: 2px; right: 2px; width: 17px; height: 17px; border-radius: 50%;
  background: rgba(0,0,0,.45); color: #fff; font-size: 10px;
  display: flex; align-items: center; justify-content: center;
}

/* 分段控件 */
.seg { display: flex; background: #f2f3f5; border-radius: 10px; padding: 3px; }
.seg-item {
  flex: 1; text-align: center; font-size: 12.5px; padding: 6px 4px;
  border-radius: 8px; color: var(--ink-2); transition: .15s;
}
.seg-item.is-on { background: #fff; color: var(--brand); font-weight: 600; box-shadow: var(--sh-1); }

/* Tab 横向 */
.tabs { display: flex; gap: 2px; background: #fff; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs::-webkit-scrollbar { height: 0; }
.tab {
  flex: 0 0 auto; padding: 12px 14px; font-size: 13.5px; color: var(--ink-3);
  position: relative; white-space: nowrap;
}
.tab.is-on { color: var(--brand); font-weight: 600; }
.tab.is-on::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 22px; height: 2.5px; border-radius: 2px; background: var(--brand);
}
.tab .tb-num {
  display: inline-block; min-width: 15px; height: 15px; padding: 0 4px; margin-left: 3px;
  border-radius: 8px; background: var(--red); color: #fff; font-size: 10px; line-height: 15px;
  vertical-align: 1px;
}

/* 消息 */
.msg-item { display: flex; gap: 11px; padding: 13px 14px; background: #fff; border-bottom: 1px solid var(--line); }
.msg-ico {
  width: 38px; height: 38px; border-radius: 11px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.msg-main { flex: 1; min-width: 0; }
.msg-t { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.msg-d { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; line-height: 1.55; }
.msg-time { font-size: 11px; color: var(--ink-4); flex: 0 0 auto; }
.msg-unread { position: relative; }
.msg-unread::after {
  content: ''; position: absolute; left: 3px; top: 15px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--red);
}

/* 弹窗 / 抽屉 */
.overlay {
  position: absolute; inset: 0; background: rgba(15,20,30,.42); z-index: 100;
  animation: fade .18s ease;
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 110;
  background: #fff; border-radius: 20px 20px 0 0; max-height: 82%;
  display: flex; flex-direction: column; animation: up .22s cubic-bezier(.2,.8,.3,1);
}
@keyframes up { from { transform: translateY(100%) } to { transform: translateY(0) } }
.sheet-head {
  flex: 0 0 auto; padding: 15px 16px 10px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.sheet-head h3 { font-size: 15.5px; font-weight: 600; }
.sheet-body { flex: 1; overflow-y: auto; padding: 14px 16px; }
.sheet-foot { flex: 0 0 auto; padding: 11px 16px 16px; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.sheet-foot .btn { flex: 1; }

.modal {
  position: absolute; inset: 0; z-index: 120; background: rgba(15,20,30,.45);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal-card {
  background: #fff; border-radius: var(--r-l); width: 100%; max-width: 330px;
  box-shadow: var(--sh-3); overflow: hidden; animation: pop .18s ease;
}
@keyframes pop { from { transform: scale(.94); opacity: .6 } to { transform: scale(1); opacity: 1 } }
.modal-head { padding: 15px 16px 8px; display: flex; align-items: center; justify-content: space-between; }
.modal-head h3 { font-size: 15.5px; font-weight: 600; }
.modal-body { padding: 0 16px 16px; font-size: 13.5px; color: var(--ink-2); line-height: 1.7; max-height: 60vh; overflow-y: auto; }
.modal-body h4 { font-size: 13.5px; color: var(--ink); margin: 12px 0 4px; }
.modal-foot { padding: 10px 16px 16px; display: flex; gap: 10px; }
.modal-foot .btn { flex: 1; }
.icon-btn { font-size: 15px; color: var(--ink-3); padding: 2px 6px; }

.toast {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 200;
  background: rgba(20,24,32,.88); color: #fff; padding: 12px 20px; border-radius: 12px;
  font-size: 13.5px; max-width: 74%; text-align: center; line-height: 1.6;
  animation: fade .15s ease;
}

/* 结果页 */
.result { text-align: center; padding: 46px 26px 20px; }
.result .rs-ico {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center; font-size: 34px;
  background: var(--green-l);
}
.result .rs-ico.err { background: var(--red-l); }
.result .rs-ico.wait { background: var(--orange-l); }
.result .rs-t { font-size: 18px; font-weight: 600; }
.result .rs-s { font-size: 13px; color: var(--ink-3); margin-top: 8px; line-height: 1.7; }

/* 用户协议 */
.doc { font-size: 13px; color: var(--ink-2); line-height: 1.85; }
.doc h4 { font-size: 14px; color: var(--ink); margin: 16px 0 6px; }
.doc p { margin: 0 0 8px; }

/* ============================ 运营后台 ============================ */
.admin-stage { padding: 18px; min-height: calc(100vh - 52px); }
.admin-app {
  display: flex; background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: var(--sh-2); min-height: calc(100vh - 90px); max-width: 1560px; margin: 0 auto;
}
.aside {
  width: 208px; flex: 0 0 auto; background: #1b1f27; color: #c6cdd9;
  display: flex; flex-direction: column; padding: 14px 0;
}
.aside-brand { padding: 4px 18px 16px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid #2a2f3a; }
.aside-brand .ab-logo {
  width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg,#1677ff,#4c9bff);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff;
}
.aside-brand .ab-t { font-size: 13.5px; font-weight: 600; color: #fff; }
.aside-brand .ab-s { font-size: 10.5px; color: #7c8494; }
.aside-group { padding: 14px 18px 5px; font-size: 10.5px; color: #6b7484; letter-spacing: .6px; }
.aside-nav { flex: 1; overflow-y: auto; padding-bottom: 10px; }
.aside-nav::-webkit-scrollbar { width: 0; }
.an-item {
  display: flex; align-items: center; gap: 9px; padding: 9px 18px; font-size: 13px;
  cursor: pointer; transition: .13s; position: relative;
}
.an-item:hover { background: #232833; color: #fff; }
.an-item.is-on { background: #1677ff; color: #fff; font-weight: 600; }
.an-item .an-ico { width: 17px; text-align: center; font-size: 14px; }
.an-item .an-badge {
  margin-left: auto; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px;
  background: var(--red); color: #fff; font-size: 10px; line-height: 17px; text-align: center;
}

.amain { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #f5f6f8; }
.ahead {
  flex: 0 0 auto; background: #fff; border-bottom: 1px solid var(--line);
  padding: 0 20px; height: 56px; display: flex; align-items: center; justify-content: space-between;
}
.ahead .ah-t { font-size: 16px; font-weight: 600; }
.ahead .ah-sub { font-size: 12px; color: var(--ink-3); margin-left: 10px; font-weight: 400; }
.ahead-r { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--ink-3); }
.abody { flex: 1; overflow-y: auto; padding: 16px 20px 30px; }

.panel { background: #fff; border-radius: var(--r-m); box-shadow: var(--sh-1); padding: 16px; margin-bottom: 14px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.panel-head h3 { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.panel-head .ph-sub { font-size: 12px; color: var(--ink-3); font-weight: 400; margin-left: 6px; }

.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpi {
  background: #fff; border-radius: var(--r-m); padding: 15px 16px; box-shadow: var(--sh-1);
  position: relative; overflow: hidden;
}
.kpi .kp-lbl { font-size: 12px; color: var(--ink-3); }
.kpi .kp-num { font-size: 25px; font-weight: 700; margin-top: 5px; font-family: ui-monospace, Menlo, monospace; }
.kpi .kp-num small { font-size: 13px; font-weight: 600; }
.kpi .kp-delta { font-size: 11.5px; margin-top: 3px; }
.kpi .kp-delta.up { color: var(--green); }
.kpi .kp-delta.down { color: var(--red); }
.kpi .kp-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand); }
.kpi.g .kp-bar { background: var(--green); } .kpi.o .kp-bar { background: var(--orange); }
.kpi.r .kp-bar { background: var(--red); } .kpi.p .kp-bar { background: var(--purple); }

.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th {
  text-align: left; font-weight: 600; color: var(--ink-3); font-size: 12px;
  padding: 9px 10px; background: #fafbfc; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: none; }
table.tbl tbody tr:hover { background: #fafbfc; }
table.tbl td.nowrap, table.tbl th.nowrap { white-space: nowrap; }
table.tbl .t-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.link-btn { color: var(--brand); font-size: 12.5px; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--red); }
.link-btn.muted { color: var(--ink-3); }

.abody .toolbar { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.inp, select.inp {
  height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 13px; outline: none; background: #fff; min-width: 0;
}
.inp:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22,119,255,.1); }
textarea.inp { height: auto; padding: 9px 11px; line-height: 1.6; resize: vertical; width: 100%; }
.toolbar .grow { flex: 1; }

.btn-a {
  height: 34px; padding: 0 15px; border-radius: 8px; font-size: 13px; font-weight: 500;
  background: var(--brand); color: #fff; display: inline-flex; align-items: center; gap: 5px;
}
.btn-a:hover { background: var(--brand-d); }
.btn-a.ghost { background: #fff; color: var(--ink-2); border: 1px solid var(--line); }
.btn-a.ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-a.danger { background: var(--red); }
.btn-a.green { background: var(--green); }
.btn-a.sm { height: 28px; font-size: 12.5px; padding: 0 11px; border-radius: 7px; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 18px; }
.fg { display: flex; flex-direction: column; gap: 6px; }
.fg label { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.fg .hint { font-size: 11.5px; color: var(--ink-4); }

.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 168px; padding: 10px 0 0; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar-col .bc-bar {
  width: 100%; max-width: 38px; border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #4c9bff, #1677ff); transition: .3s;
}
.bar-col .bc-lbl { font-size: 11px; color: var(--ink-3); }
.bar-col .bc-val { font-size: 11px; color: var(--ink-2); font-weight: 600; }

.hbar { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 12.5px; }
.hbar .hb-lbl { flex: 0 0 96px; color: var(--ink-2); }
.hbar .hb-track { flex: 1; height: 8px; background: #f0f2f5; border-radius: 4px; overflow: hidden; }
.hbar .hb-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #4c9bff, #1677ff); }
.hbar .hb-val { flex: 0 0 62px; text-align: right; font-family: ui-monospace, Menlo, monospace; color: var(--ink-2); }

.perm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.perm-item { border: 1px solid var(--line); border-radius: var(--r-s); padding: 11px 12px; }
.perm-item .pm-t { font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; }
.perm-item .pm-d { font-size: 11.5px; color: var(--ink-3); margin-top: 5px; line-height: 1.55; }

.tl-log { font-size: 12.5px; }
.tl-log .tl-row { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.tl-log .tl-row:last-child { border-bottom: none; }
.tl-log .lr-time { flex: 0 0 132px; color: var(--ink-4); font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; }

.note-inline {
  font-size: 12px; color: var(--ink-3); background: #fafbfc; border: 1px solid var(--line);
  border-radius: var(--r-s); padding: 10px 12px; line-height: 1.7;
}

/* ==========================================================================
   全页面总览（Sitemap）
   ========================================================================== */
.sitemap {
  position: absolute; inset: 0; overflow-y: auto; background: #f0f2f6; padding: 0 0 40px;
}
.sitemap::-webkit-scrollbar { width: 8px; }
.sitemap::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 4px; }
.sm-head {
  background: linear-gradient(160deg, #1677ff 0%, #3f8dff 60%, #62a5ff 100%);
  color: #fff; padding: 22px 24px 20px; margin-bottom: 16px;
}
.sm-logo {
  font-size: 12px; font-weight: 700; letter-spacing: 1px; padding: 3px 8px; border-radius: 6px;
  background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.45);
}
.sm-title { font-size: 20px; font-weight: 700; }
.sm-badge {
  font-size: 11px; padding: 3px 9px; border-radius: 12px;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.4);
}
.sm-sub { font-size: 12.5px; opacity: .92; margin-top: 8px; line-height: 1.7; max-width: 720px; }
.sm-btn {
  height: 34px; padding: 0 15px; border-radius: 17px; font-size: 12.5px; font-weight: 600;
  background: rgba(255,255,255,.2); color: #fff; border: 1px solid rgba(255,255,255,.5);
}
.sm-btn:hover { background: rgba(255,255,255,.32); }
.sm-btn-primary { background: #fff; color: var(--brand); border-color: #fff; }
.sm-btn-primary:hover { background: #f0f6ff; }
.sm-btn-ghost { background: transparent; }
.sm-stats { display: flex; gap: 26px; margin-top: 18px; flex-wrap: wrap; }
.sm-stat b { display: block; font-size: 22px; font-family: ui-monospace, Menlo, monospace; }
.sm-stat span { font-size: 11.5px; opacity: .88; }

.sm-toc {
  display: flex; gap: 8px; flex-wrap: wrap; padding: 0 24px 6px;
}
.sm-toc-item {
  display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 10px;
  background: #fff; box-shadow: var(--sh-1); font-size: 12.5px; color: var(--ink); min-width: 108px;
}
.sm-toc-item:hover { box-shadow: var(--sh-2); transform: translateY(-1px); }
.sm-toc-item b { font-weight: 600; }
.sm-toc-item span { font-size: 11px; color: var(--ink-3); }

.sm-group { padding: 20px 24px 0; }
.sm-group-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.sm-group-head h2 { font-size: 15.5px; font-weight: 700; }
.sm-group-head p { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.sm-count {
  font-size: 11.5px; color: var(--brand); background: var(--brand-l); padding: 4px 10px;
  border-radius: 12px; font-weight: 600; white-space: nowrap;
}

.sm-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 14px;
}
.sm-card {
  background: #fff; border-radius: 14px; padding: 0 0 12px; overflow: hidden; text-align: left;
  box-shadow: var(--sh-1); transition: .16s; display: block; width: 100%;
}
.sm-card:hover { box-shadow: var(--sh-3); transform: translateY(-2px); }
.sm-card-static { cursor: default; padding-bottom: 12px; }
.sm-card-static:hover { transform: none; box-shadow: var(--sh-1); }
.sm-shot {
  position: relative; height: 168px; background: #eef1f6; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.sm-frame-wrap {
  position: absolute; inset: 0; opacity: 0; transition: opacity .25s;
}
.sm-frame-wrap.is-ready { opacity: 1; }
.sm-frame { border: 0; pointer-events: none; background: #fff; }
.sm-shot-ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--ink-4); font-size: 12px;
  background: repeating-linear-gradient(45deg, #f4f6f9, #f4f6f9 10px, #eef1f6 10px, #eef1f6 20px);
}
.sm-shot-tag {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  font-size: 10px; padding: 3px 7px; border-radius: 8px; color: #fff; background: rgba(22,119,255,.86);
}
.sm-meta { padding: 10px 12px 0; }
.sm-name { font-size: 13.5px; font-weight: 600; }
.sm-desc { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.55; min-height: 32px; }
.sm-role { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.sm-role .mono { font-size: 10.5px; color: var(--ink-4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sm-persp-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 0; }
.sm-persp-head b { font-size: 13.5px; }
.sm-card-static .sm-desc { padding: 0 12px; min-height: 0; margin-top: 4px; }
.sm-persp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 8px; padding: 10px 12px 0; }
.sm-mini { text-align: left; }
.sm-mini-shot {
  position: relative; height: 104px; border-radius: 8px; overflow: hidden; background: #eef1f6;
  border: 1px solid var(--line);
}
.sm-mini-name { font-size: 12px; font-weight: 600; margin-top: 5px; }
.sm-mini-role { font-size: 10.5px; color: var(--ink-3); }
.sm-mini:hover .sm-mini-shot { border-color: var(--brand); }

.sm-foot { padding: 26px 24px 0; }

/* 嵌入模式：隐藏外壳装饰，最大化内容区 */
body.is-embed { background: #fff; }
body.is-embed .proto-bar { display: none !important; }
body.is-embed .phone-stage { padding: 0; min-height: 100vh; align-items: flex-start; }
body.is-embed .phone { transform: none; box-shadow: none; border-radius: 0; padding: 0; width: 390px; height: 844px; }
body.is-embed .phone-notch, body.is-embed .phone-home { display: none; }
body.is-embed .phone-screen { border-radius: 0; }
body.is-embed .admin-stage { padding: 0; }
body.is-embed .admin-app { border-radius: 0; box-shadow: none; min-height: 100vh; max-width: none; }
body.is-embed .stage-side { display: none !important; }

/* 悬浮：全页面总览入口 */
.sm-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 850;
  height: 40px; padding: 0 16px; border-radius: 20px;
  background: #1b1f27; color: #fff; font-size: 12.5px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(20,25,40,.28); display: flex; align-items: center; gap: 6px;
}
.sm-fab:hover { background: #2a303c; }
body.is-embed .sm-fab { display: none; }

/* 响应式 */
@media (max-width: 1180px) {
  .stage-side { display: none; }
}
@media (max-width: 760px) {
  .phone { transform: scale(.86); transform-origin: top center; }
  .proto-bar { gap: 8px; }
  .pb-title { display: none; }
}
