/* 沈丘商会小程序 · 可点击原型
   设计基调：白底 + 中国红点缀，层级清晰、字号偏大，兼顾中老年会员阅读 */

:root {
  --brand: #c0342c;
  --brand-dark: #8c1f19;
  --brand-soft: #fdf1ef;
  --gold: #b98a45;
  --gold-soft: #f8f1e4;
  --ink: #1d2129;
  --ink-2: #4e5969;
  --ink-3: #86909c;
  --line: #edf0f3;
  --bg: #f4f5f7;
  --card: #ffffff;
  --green: #2ba471;
  --blue: #2b6cb0;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(29, 33, 41, 0.06);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #eef0f3;
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- 原型外壳 ---------- */
.shell { display: flex; height: 100vh; overflow: hidden; }

.sidebar {
  width: 288px;
  flex: 0 0 288px;
  background: #12161c;
  color: #c9d1d9;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sidebar-head { padding: 20px 20px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.brand-mark { display: flex; align-items: center; gap: 10px; }
.seal {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), #e0574d);
  color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 17px; letter-spacing: -1px;
  box-shadow: 0 4px 12px rgba(192, 52, 44, 0.4);
}
.sidebar-head h1 { font-size: 15px; color: #fff; margin: 0; font-weight: 600; letter-spacing: 0.3px; }
.sidebar-head .sub { font-size: 11px; color: #7d8894; margin-top: 3px; }
.sidebar-body { overflow-y: auto; padding: 12px 0 40px; flex: 1; }
.sidebar-body::-webkit-scrollbar { width: 6px; }
.sidebar-body::-webkit-scrollbar-thumb { background: #2c333c; border-radius: 3px; }
.nav-group-label {
  padding: 14px 20px 8px; font-size: 11px; letter-spacing: 1px;
  color: #6b7684; text-transform: uppercase;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 20px; cursor: pointer; font-size: 13px;
  border-left: 3px solid transparent; color: #b8c2cd;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.nav-item.active { background: rgba(192, 52, 44, 0.18); border-left-color: var(--brand); color: #fff; }
.nav-item .idx { font-size: 10px; color: #6b7684; width: 16px; font-variant-numeric: tabular-nums; }
.nav-item .pill {
  margin-left: auto; font-size: 9px; padding: 1px 5px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.08); color: #9aa5b1;
}
.nav-item .pill.p2 { background: rgba(43, 108, 176, 0.25); color: #9cc6f0; }
.nav-item .pill.adm { background: rgba(185, 138, 69, 0.2); color: #e0be8d; }

.stage { flex: 1; overflow: auto; padding: 28px 32px 60px; position: relative; }
.stage-top {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 18px; flex-wrap: wrap;
}
.stage-top h2 { margin: 0; font-size: 19px; font-weight: 600; }
.stage-top p { margin: 4px 0 0; font-size: 12px; color: var(--ink-3); }
.stage-tools { display: flex; gap: 8px; align-items: center; }
.tool-btn {
  border: 1px solid #dde2e8; background: #fff; border-radius: 8px;
  padding: 7px 12px; font-size: 12px; color: var(--ink-2); cursor: pointer;
}
.tool-btn:hover { border-color: var(--brand); color: var(--brand); }

.viewer { display: flex; gap: 28px; align-items: flex-start; justify-content: center; flex-wrap: wrap; }

/* ---------- 手机外框 ---------- */
.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.phone {
  width: 375px; height: 812px; border-radius: 46px; background: #fff;
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 24px 60px rgba(20, 26, 35, 0.22), 0 0 0 10px #1c1f24, 0 0 0 11px #2b3038;
}
.phone-caption { font-size: 11px; color: var(--ink-3); }

.statusbar {
  height: 46px; flex: 0 0 46px; display: flex; align-items: center;
  justify-content: space-between; padding: 0 20px 0 26px;
  font-size: 12px; font-weight: 600; background: #fff; position: relative; z-index: 5;
}
.statusbar .notch {
  position: absolute; left: 50%; top: 8px; transform: translateX(-50%);
  width: 96px; height: 26px; border-radius: 14px; background: #111;
}
.statusbar .sb-right { display: flex; gap: 5px; align-items: center; font-size: 11px; }
.sb-battery { width: 20px; height: 10px; border: 1px solid #111; border-radius: 2px; position: relative; }
.sb-battery::after { content: ""; position: absolute; inset: 1.5px 4px 1.5px 1.5px; background: #111; border-radius: 1px; }

.navbar {
  height: 44px; flex: 0 0 44px; display: flex; align-items: center; justify-content: center;
  position: relative; background: #fff; font-size: 16px; font-weight: 600; z-index: 4;
}
.navbar .back {
  position: absolute; left: 12px; top: 0; height: 44px; width: 32px;
  display: grid; place-items: center; cursor: pointer; color: var(--ink);
}
.navbar .nav-right {
  position: absolute; right: 14px; top: 0; height: 44px; display: flex; align-items: center;
  font-size: 12px; color: var(--ink-3); gap: 12px;
}
.navbar.on-dark { background: transparent; color: #fff; position: absolute; left: 0; right: 0; top: 46px; }
.navbar.on-dark .back { color: #fff; }

.screen { flex: 1; overflow-y: auto; overflow-x: hidden; background: var(--bg); position: relative; scroll-behavior: smooth; }
.screen::-webkit-scrollbar { width: 0; }
.screen.flush { background: #fff; }

/* ---------- 底部 tab ---------- */
.tabbar {
  flex: 0 0 58px; height: 58px; display: flex; background: #fff;
  border-top: 1px solid var(--line); padding-bottom: 4px; z-index: 6;
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 10px; color: #9aa3ad; cursor: pointer;
}
.tab .ico { width: 22px; height: 22px; }
.tab.active { color: var(--brand); font-weight: 600; }
.tab.active .ico { stroke-width: 2.1; }

/* ---------- 通用块 ---------- */
.pad { padding: 12px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card + .card { margin-top: 12px; }
.card-pad { padding: 14px; }
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.between { justify-content: space-between; }
.center { justify-content: center; }
.wrap-row { flex-wrap: wrap; }
.g4 { gap: 4px; } .g6 { gap: 6px; } .g8 { gap: 8px; } .g10 { gap: 10px; } .g12 { gap: 12px; } .g16 { gap: 16px; }
.flex1 { flex: 1; min-width: 0; }
.mt4 { margin-top: 4px; } .mt6 { margin-top: 6px; } .mt8 { margin-top: 8px; }
.mt10 { margin-top: 10px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; }
.muted { color: var(--ink-3); }
.ink2 { color: var(--ink-2); }
.t10 { font-size: 10px; } .t11 { font-size: 11px; } .t12 { font-size: 12px; }
.t13 { font-size: 13px; } .t14 { font-size: 14px; } .t15 { font-size: 15px; }
.t16 { font-size: 16px; } .t17 { font-size: 17px; } .t18 { font-size: 18px; } .t20 { font-size: 20px; }
.b5 { font-weight: 500; } .b6 { font-weight: 600; } .b7 { font-weight: 700; }
.tc { text-align: center; } .tr { text-align: right; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp2 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.divider { height: 1px; background: var(--line); margin: 12px 0; }
.dot-split::before { content: "·"; margin: 0 5px; color: #c4cad2; }

.sec-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 12px 8px; }
.sec-head h3 { margin: 0; font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.sec-head h3::before {
  content: ""; width: 3px; height: 14px; border-radius: 2px;
  background: var(--brand); display: inline-block;
}
.sec-more { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 2px; cursor: pointer; }

.ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico-lg { width: 22px; height: 22px; }

.tag {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; line-height: 1; padding: 3px 6px; border-radius: 4px;
  background: #f2f3f5; color: var(--ink-2); white-space: nowrap;
}
.tag.red { background: var(--brand-soft); color: var(--brand); }
.tag.gold { background: var(--gold-soft); color: #8a6327; }
.tag.green { background: #eaf7f1; color: var(--green); }
.tag.blue { background: #eef4fb; color: var(--blue); }
.tag.line { background: transparent; border: 1px solid var(--line); color: var(--ink-3); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  border: none; border-radius: 8px; padding: 9px 16px; font-size: 14px;
  font-family: inherit; cursor: pointer; background: #f2f3f5; color: var(--ink);
}
.btn-primary { background: var(--brand); color: #fff; font-weight: 500; }
.btn-primary:active { background: var(--brand-dark); }
.btn-outline { background: #fff; border: 1px solid var(--brand); color: var(--brand); }
.btn-block { display: flex; width: 100%; padding: 12px; font-size: 15px; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 6px; }
.btn-disabled { background: #f2f3f5; color: #b8c0c8; }
.btn-gold { background: linear-gradient(100deg, #c9a05a, #b0742f); color: #fff; }

/* 首页 */
.home-hero { position: relative; height: 188px; overflow: hidden; }
.home-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-hero .mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 12, 10, 0.55) 0%, rgba(20, 12, 10, 0.1) 40%, rgba(140, 31, 25, 0.86) 100%);
}
.home-hero .txt { position: absolute; left: 16px; bottom: 26px; right: 16px; color: #fff; }
.home-hero .txt h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: 2px; }
.home-hero .txt p { margin: 4px 0 0; font-size: 11px; opacity: 0.86; letter-spacing: 1px; }
.home-hero .seal-badge {
  position: absolute; right: 16px; bottom: 30px; width: 54px; height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-size: 9px; text-align: center; line-height: 1.25;
}
.home-top {
  position: absolute; top: 46px; left: 0; right: 0; z-index: 4;
  display: flex; align-items: center; justify-content: space-between; padding: 8px 16px;
  color: #fff;
}
.home-top .brand { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.home-top .brand .mini-seal {
  width: 26px; height: 26px; border-radius: 6px; background: var(--brand);
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.searchbar {
  display: flex; align-items: center; gap: 6px; background: #fff;
  border-radius: 18px; padding: 7px 12px; font-size: 12px; color: var(--ink-3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.searchbar .ico { width: 14px; height: 14px; }

.qa-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 4px; padding: 16px 10px; }
.qa { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.qa .bubble {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.qa:nth-child(4n + 2) .bubble { background: #eef4fb; color: #2b6cb0; }
.qa:nth-child(4n + 3) .bubble { background: #f8f1e4; color: #a97c33; }
.qa:nth-child(4n + 4) .bubble { background: #eaf7f1; color: #2ba471; }
.qa span { font-size: 11.5px; color: var(--ink-2); }
.qa .bubble .ico { width: 22px; height: 22px; }

.notice {
  display: flex; align-items: center; gap: 8px; background: #fff; margin: 0 12px;
  border-radius: 10px; padding: 9px 12px; font-size: 12px; color: var(--ink-2);
  box-shadow: var(--shadow);
}
.notice .tag { flex: 0 0 auto; }

.news-item { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.news-item:last-child { border-bottom: none; }
.news-item img { width: 104px; height: 76px; border-radius: 8px; object-fit: cover; flex: 0 0 104px; background: #e9ecef; }
.news-item h4 { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.42; }
.news-item .meta { font-size: 11px; color: var(--ink-3); margin-top: 8px; display: flex; gap: 8px; align-items: center; }

.hscroll { display: flex; gap: 10px; overflow-x: auto; padding: 4px 12px 12px; }
.hscroll::-webkit-scrollbar { height: 0; }
.member-card-mini {
  flex: 0 0 132px; background: #fff; border-radius: 10px; padding: 12px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; cursor: pointer;
}
.avatar {
  width: 34px; height: 34px; border-radius: 9px; flex: 0 0 34px;
  display: grid; place-items: center; font-size: 13px; font-weight: 600;
  background: linear-gradient(140deg, #f6e7e4, #edd3cf); color: var(--brand-dark);
}
.avatar.blue { background: #e8f0f9; color: #295d8c; }
.avatar.green { background: #e6f4ed; color: #217a55; }
.avatar.gold { background: #f7eedd; color: #8a6327; }
.avatar.lg { width: 52px; height: 52px; border-radius: 12px; font-size: 18px; flex: 0 0 52px; }

.act-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; }
.act-card img { width: 100%; height: 118px; object-fit: cover; display: block; }
.act-card .bd { padding: 10px 12px 12px; }
.act-card h4 { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.act-meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-3); }

/* 名录 */
.filter-bar {
  display: flex; gap: 8px; padding: 10px 12px; background: #fff; position: sticky; top: 0; z-index: 3;
  border-bottom: 1px solid var(--line); overflow-x: auto;
}
.filter-bar::-webkit-scrollbar { height: 0; }
.chip {
  flex: 0 0 auto; font-size: 12px; padding: 5px 11px; border-radius: 14px;
  background: #f2f3f5; color: var(--ink-2); cursor: pointer; white-space: nowrap;
}
.chip.active { background: var(--brand); color: #fff; }
.chip.ghost { background: #fff; border: 1px solid var(--line); }

.company-row { display: flex; gap: 10px; padding: 12px; background: #fff; border-bottom: 1px solid var(--line); cursor: pointer; }
.company-row .logo {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  font-size: 15px; font-weight: 600; background: #f2f3f5; color: var(--ink-2); flex: 0 0 44px;
}
.company-row h4 { margin: 0; font-size: 14px; font-weight: 500; }
.company-row .sub { font-size: 11px; color: var(--ink-3); margin-top: 5px; }

/* 详情页 */
.detail-cover { width: 100%; height: 200px; object-fit: cover; display: block; }
.detail-title { font-size: 19px; font-weight: 700; line-height: 1.4; margin: 0; }
.detail-meta { display: flex; gap: 10px; font-size: 11px; color: var(--ink-3); margin-top: 10px; }
.prose { font-size: 14.5px; line-height: 1.85; color: #2b3038; }
.prose p { margin: 0 0 12px; }
.prose h4 { font-size: 15px; margin: 18px 0 8px; }
.prose .quote { border-left: 3px solid var(--brand); background: #fafafa; padding: 10px 12px; border-radius: 0 8px 8px 0; font-size: 13px; color: var(--ink-2); }

.sticky-actions {
  position: sticky; bottom: 0; background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px); border-top: 1px solid var(--line);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: center;
}

.kv { display: flex; gap: 8px; font-size: 13px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--ink-3); flex: 0 0 76px; }
.kv .v { flex: 1; color: var(--ink); }

/* 表单 */
.form-item { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.form-item:last-child { border-bottom: none; }
.form-item label { flex: 0 0 84px; font-size: 14px; color: var(--ink); }
.form-item .req::before { content: "*"; color: var(--brand); margin-right: 2px; }
.form-item .val { flex: 1; font-size: 14px; color: var(--ink); text-align: right; }
.form-item .val.ph { color: #b8c0c8; }
.form-item .arrow { color: #c4cad2; }
.input {
  border: 1px solid #e3e6ea; border-radius: 8px; padding: 11px 12px; font-size: 14px;
  width: 100%; font-family: inherit; background: #fff; color: var(--ink);
}
.input::placeholder { color: #b8c0c8; }
.textarea { min-height: 92px; resize: none; line-height: 1.6; }
.field-label { font-size: 13px; color: var(--ink-2); margin: 14px 0 6px; }
.uploader {
  width: 84px; height: 84px; border: 1px dashed #d6dbe1; border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: #9aa3ad; font-size: 11px; background: #fafbfc;
}
.uploader .ico { width: 18px; height: 18px; }
.uploaded { width: 84px; height: 84px; border-radius: 8px; position: relative; overflow: hidden; background: #eef0f3; }
.uploaded img { width: 100%; height: 100%; object-fit: cover; }
.uploaded .x {
  position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.5); color: #fff; font-size: 10px; display: grid; place-items: center;
}
.switch { width: 40px; height: 24px; border-radius: 12px; background: var(--brand); position: relative; }
.switch::after { content: ""; position: absolute; right: 2px; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch.off { background: #dfe3e8; }
.switch.off::after { right: auto; left: 2px; }

.steps { display: flex; align-items: center; padding: 16px 12px; background: #fff; }
.step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; position: relative; }
.step .num {
  width: 22px; height: 22px; border-radius: 50%; background: #eef0f3; color: var(--ink-3);
  display: grid; place-items: center; font-size: 11px; font-weight: 600; z-index: 2;
}
.step span { font-size: 10.5px; color: var(--ink-3); }
.step.done .num { background: var(--brand); color: #fff; }
.step.done span { color: var(--brand); }
.step::before {
  content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 1px; background: #e5e8ec;
}
.step:first-child::before { display: none; }
.step.done::before { background: var(--brand); }

.timeline { padding-left: 4px; }
.tl-item { display: flex; gap: 10px; position: relative; padding-bottom: 18px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item .dot {
  width: 9px; height: 9px; border-radius: 50%; background: #d7dce2; margin-top: 5px; flex: 0 0 9px; z-index: 2;
}
.tl-item.done .dot { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.tl-item::before { content: ""; position: absolute; left: 4px; top: 12px; bottom: 0; width: 1px; background: #e5e8ec; }
.tl-item:last-child::before { display: none; }

/* 会员卡 */
.member-pass {
  margin: 12px; border-radius: 16px; padding: 18px 18px 16px; color: #fff;
  background: linear-gradient(135deg, #8c1f19 0%, #c0342c 55%, #a4462f 100%);
  position: relative; overflow: hidden; box-shadow: 0 12px 26px rgba(140, 31, 25, 0.28);
}
.member-pass::after {
  content: ""; position: absolute; right: -40px; bottom: -60px; width: 180px; height: 180px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.16);
}
.member-pass::before {
  content: ""; position: absolute; right: -20px; top: -70px; width: 150px; height: 150px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.05);
}
.member-pass .mp-top { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 2px; opacity: 0.85; }
.member-pass h3 { margin: 12px 0 2px; font-size: 19px; font-weight: 600; }
.member-pass .mp-meta { font-size: 11px; opacity: 0.85; margin-top: 2px; }
.member-pass .mp-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 18px; font-size: 11px; opacity: 0.9; }
.qr {
  width: 62px; height: 62px; border-radius: 8px; background: #fff; padding: 4px;
  background-image: repeating-linear-gradient(0deg, #1b1b1b 0 3px, #fff 3px 6px), repeating-linear-gradient(90deg, #1b1b1b 0 3px, #fff 3px 6px);
  background-blend-mode: multiply; box-shadow: 0 2px 8px rgba(0,0,0,.16);
}

/* 服务页 */
.sq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 12px 12px; }
.sq-item { background: #fff; border-radius: 12px; padding: 14px; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center; cursor: pointer; }
.sq-item .bubble { width: 38px; height: 38px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: 0 0 38px; }
.sq-item h4 { margin: 0; font-size: 13.5px; font-weight: 500; }
.sq-item p { margin: 2px 0 0; font-size: 10.5px; color: var(--ink-3); }

/* 消息 */
.msg-item { display: flex; gap: 10px; padding: 14px 12px; background: #fff; border-bottom: 1px solid var(--line); }
.msg-item .bubble { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: 0 0 36px; }
.msg-item h4 { margin: 0; font-size: 13.5px; font-weight: 500; }
.msg-item p { margin: 3px 0 0; font-size: 11.5px; color: var(--ink-3); }
.msg-item .time { font-size: 10px; color: #b0b8c1; }
.unread-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

/* 二期标识 */
.p2-banner {
  display: flex; gap: 8px; align-items: center; background: #eef4fb; color: #245f92;
  font-size: 11px; padding: 8px 12px; border-bottom: 1px solid #dce8f5;
}
.p2-banner b { font-weight: 600; }

/* 说明面板 */
.info-panel {
  width: 320px; flex: 0 0 320px; background: #fff; border-radius: 14px;
  padding: 20px; box-shadow: 0 10px 30px rgba(20, 26, 35, 0.08); position: sticky; top: 0;
}
.info-panel .ip-kicker { font-size: 10px; letter-spacing: 1.4px; color: var(--ink-3); text-transform: uppercase; }
.info-panel h3 { margin: 6px 0 4px; font-size: 18px; }
.info-panel .ip-sub { font-size: 12px; color: var(--ink-3); }
.info-panel .ip-block { margin-top: 16px; }
.info-panel .ip-block h5 { margin: 0 0 8px; font-size: 12px; color: var(--ink-3); font-weight: 500; letter-spacing: .4px; }
.info-panel ul { margin: 0; padding-left: 16px; font-size: 12.5px; color: var(--ink-2); line-height: 1.75; }
.info-panel li { margin-bottom: 4px; }
.req-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.req-chip { font-size: 11px; background: #f4f5f7; border-radius: 5px; padding: 3px 7px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.req-chip.hot { background: var(--brand-soft); color: var(--brand); }

/* toast */
.toast {
  position: absolute; left: 50%; bottom: 100px; transform: translateX(-50%) translateY(6px);
  background: rgba(20, 24, 30, 0.86); color: #fff; font-size: 12px; padding: 9px 16px;
  border-radius: 20px; opacity: 0; transition: all 0.22s; pointer-events: none; z-index: 30; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 管理后台 ---------- */
.browser-wrap { width: 100%; overflow: auto; }
.browser {
  width: 1240px; background: #f0f2f5; border-radius: 10px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(20, 26, 35, 0.18); zoom: 0.66;
}
.browser-bar { height: 38px; background: #e8ebef; display: flex; align-items: center; gap: 8px; padding: 0 14px; }
.browser-bar .dots { display: flex; gap: 6px; }
.browser-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: #c9ced6; display: block; }
.browser-bar .url {
  flex: 1; height: 22px; background: #fff; border-radius: 11px; font-size: 11px;
  color: var(--ink-3); display: flex; align-items: center; padding: 0 12px; max-width: 420px; margin: 0 auto;
}
.admin { display: flex; min-height: 760px; background: #f0f2f5; font-size: 13px; }
.admin-side { width: 196px; flex: 0 0 196px; background: #1f2733; color: #aab4c0; padding: 16px 0; }
.admin-side .logo { display: flex; gap: 8px; align-items: center; padding: 0 16px 18px; color: #fff; font-size: 13px; font-weight: 600; }
.admin-side .logo .seal { width: 26px; height: 26px; font-size: 13px; border-radius: 6px; }
.admin-nav { padding: 6px 10px; border-radius: 6px; margin: 2px 8px; display: flex; gap: 8px; align-items: center; font-size: 12.5px; cursor: pointer; }
.admin-nav.active { background: rgba(192, 52, 44, 0.9); color: #fff; }
.admin-nav .ico { width: 15px; height: 15px; opacity: .9; }
.admin-main { flex: 1; min-width: 0; padding: 18px 22px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.admin-head h2 { margin: 0; font-size: 18px; font-weight: 600; }
.admin-head .crumb { font-size: 11.5px; color: #8b95a1; margin-top: 3px; }
.admin-user { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #4e5969; }
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { background: #fff; border-radius: 8px; padding: 14px 16px; }
.kpi .label { font-size: 12px; color: #8b95a1; }
.kpi .num { font-size: 24px; font-weight: 600; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .num small { font-size: 12px; font-weight: 400; color: #8b95a1; margin-left: 4px; }
.kpi .trend { font-size: 11px; margin-top: 4px; color: #2ba471; }
.kpi .trend.down { color: #d4380d; }
.panel { background: #fff; border-radius: 8px; padding: 16px; }
.panel h3 { margin: 0 0 12px; font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.panel h3 a { font-size: 12px; color: #8b95a1; font-weight: 400; cursor: pointer; }
.grid-2 { display: grid; grid-template-columns: 1.55fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

table.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.tbl th { text-align: left; font-weight: 500; color: #8b95a1; font-size: 12px; padding: 9px 10px; background: #fafbfc; border-bottom: 1px solid #eef0f3; }
table.tbl td { padding: 11px 10px; border-bottom: 1px solid #f2f4f6; color: #1d2129; }
table.tbl tr:hover td { background: #fafbfc; }
table.tbl .ops { color: var(--brand); cursor: pointer; }
table.tbl .ops span + span { margin-left: 10px; }
.tbl-toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.tbl-toolbar .input { width: 220px; padding: 7px 10px; font-size: 12.5px; }
.tbl-toolbar .spacer { flex: 1; }
.abtn { border: 1px solid #e3e6ea; background: #fff; border-radius: 5px; padding: 6px 12px; font-size: 12px; color: #4e5969; cursor: pointer; font-family: inherit; }
.abtn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.abtn.sm { padding: 4px 9px; font-size: 11.5px; }
.pagination { display: flex; justify-content: flex-end; gap: 6px; margin-top: 14px; font-size: 12px; color: #4e5969; align-items: center; }
.pagination span { padding: 3px 8px; border: 1px solid #e3e6ea; border-radius: 4px; background: #fff; cursor: pointer; }
.pagination span.on { background: var(--brand); color: #fff; border-color: var(--brand); }

.bar-chart { display: flex; align-items: flex-end; gap: 14px; height: 168px; padding: 8px 4px 0; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar-col .bar { width: 100%; max-width: 34px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #e06a60, var(--brand)); }
.bar-col .lbl { font-size: 10.5px; color: #8b95a1; }
.legend { display: flex; gap: 14px; font-size: 11px; color: #8b95a1; margin-top: 10px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 4px; }

.todo { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed #eef0f3; font-size: 12.5px; }
.todo:last-child { border-bottom: none; }
.todo .n { width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 11px; display: grid; place-items: center; flex: 0 0 20px; }
.todo .tm { color: #8b95a1; font-size: 11px; }

/* admin login */
.admin-login { min-height: 760px; display: flex; background: #fff; }
.admin-login .left {
  flex: 1.1; background: linear-gradient(150deg, #8c1f19 0%, #b32d25 60%, #7a2a20 100%);
  color: #fff; padding: 64px 56px; position: relative; overflow: hidden; display: flex; flex-direction: column;
}
.admin-login .left::after {
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.15);
}
.admin-login .left h1 { font-size: 30px; margin: 26px 0 10px; letter-spacing: 2px; }
.admin-login .left p { font-size: 13px; opacity: 0.8; line-height: 1.9; max-width: 360px; }
.admin-login .right { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-form { width: 340px; }
.login-form h2 { margin: 0 0 6px; font-size: 21px; }
.login-form .sub { color: #8b95a1; font-size: 12.5px; margin-bottom: 26px; }
.login-form .fld { margin-bottom: 16px; }
.login-form .fld label { display: block; font-size: 12px; color: #4e5969; margin-bottom: 6px; }
.login-form .input { padding: 11px 12px; }
.login-form .abtn.primary { width: 100%; padding: 11px; font-size: 13.5px; margin-top: 6px; }
.login-form .tip { font-size: 11px; color: #b0b8c1; margin-top: 18px; line-height: 1.7; }

.tabs-line { display: flex; gap: 18px; font-size: 13px; border-bottom: 1px solid #eef0f3; margin-bottom: 14px; }
.tabs-line span { padding: 8px 2px; color: #8b95a1; cursor: pointer; border-bottom: 2px solid transparent; }
.tabs-line span.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 500; }

.drawer { border: 1px solid #eef0f3; border-radius: 8px; padding: 14px; background: #fafbfc; }
.drawer .fld { margin-bottom: 12px; }
.drawer .fld label { font-size: 12px; color: #4e5969; display: block; margin-bottom: 5px; }
.toolbar-sim { display: flex; gap: 4px; padding: 6px 8px; border: 1px solid #e3e6ea; border-radius: 6px 6px 0 0; background: #fafbfc; font-size: 11px; color: #6b7684; }
.toolbar-sim span { padding: 2px 6px; border-radius: 3px; }
.toolbar-sim span:hover { background: #eef0f3; }
.editor-area { border: 1px solid #e3e6ea; border-top: none; border-radius: 0 0 6px 6px; min-height: 120px; padding: 12px; font-size: 12.5px; color: #4e5969; background: #fff; }

/* 响应式 */
@media (max-width: 1560px) {
  .info-panel { width: 280px; flex-basis: 280px; }
  .browser { zoom: 0.58; }
}
@media (max-width: 1180px) {
  .sidebar { width: 236px; flex-basis: 236px; }
  .info-panel { display: none; }
  .browser { zoom: 0.5; }
}
@media (max-width: 820px) {
  .shell { flex-direction: column; height: auto; overflow: visible; }
  .sidebar { width: 100%; flex-basis: auto; max-height: 240px; }
  .stage { padding: 16px; }
  .phone { zoom: 0.86; }
  .browser { zoom: 0.38; }
}

/* ---------- 原型补丁 ---------- */
.statusbar.on-hero {
  position: absolute; left: 0; right: 0; top: 0;
  background: transparent; color: #fff; z-index: 8;
}
.statusbar.on-hero .sb-battery { border-color: #fff; }
.statusbar.on-hero .sb-battery::after { background: #fff; }
.screen > .navbar, .screen .navbar { position: sticky; top: 0; }

.nav-item .flex1 { flex: 1; min-width: 0; }
.tool-btn:disabled { opacity: .4; cursor: default; border-color: #dde2e8; color: var(--ink-2); }
.phone-wrap { max-width: 100%; }
.viewer > .browser-wrap { flex: 1; min-width: 0; display: flex; justify-content: center; }

/* 后台在小屏下的信息面板压缩 */
@media (max-width: 1500px) {
  .viewer { gap: 20px; }
}
