/* ============================================================
   九头鸟户外 · 高保真原型样式
   设计方向：深松林绿 + 日出琥珀
   ============================================================ */

:root {
  /* 品牌色 */
  --c-primary: #1F6F5C;
  --c-primary-d: #155445;
  --c-primary-l: #E6F2EE;
  --c-accent: #E8A33D;
  --c-accent-l: #FDF3E3;
  --c-accent-d: #C9821F;

  /* 语义色 */
  --c-danger: #D9534F;
  --c-danger-l: #FCEDEC;
  --c-success: #2E9E6B;
  --c-success-l: #E8F6EF;
  --c-warn: #E8A33D;
  --c-warn-l: #FDF3E3;
  --c-info: #3A7CA5;
  --c-info-l: #EAF3F9;

  /* 中性 */
  --c-ink: #1C2B27;
  --c-ink-2: #5A6B66;
  --c-ink-3: #93A19D;
  --c-line: #E3E8E6;
  --c-line-2: #EFF3F1;
  --c-bg: #F4F6F5;
  --c-card: #FFFFFF;

  /* 尺寸 */
  --w: 390px;
  --radius-card: 12px;
  --radius-btn: 10px;
  --radius-tag: 6px;
  --pad: 16px;

  --shadow: 0 1px 3px rgba(28,43,39,.06), 0 1px 2px rgba(28,43,39,.04);
  --shadow-lg: 0 8px 24px rgba(28,43,39,.12);
  --shadow-up: 0 -2px 12px rgba(28,43,39,.08);
}

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

html, body {
  margin: 0; padding: 0;
  background: #EDEFEE;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--c-ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ============ 内测工具条 ============ */
#toolbar {
  position: fixed; top: 0; left: 0; right: 0; height: 48px;
  background: #12211D; color: #fff;
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px; z-index: 9999;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
#toolbar .tb-brand {
  display: flex; align-items: center; gap: 6px;
  font-weight: 600; letter-spacing: .3px; margin-right: 4px;
}
#toolbar .tb-brand img {
  height: 22px; width: auto; border-radius: 5px;
  background: #fff; padding: 1px;
}
#toolbar .tb-seg {
  display: flex; background: rgba(255,255,255,.12); border-radius: 8px; padding: 2px;
}
#toolbar .tb-seg button {
  border: 0; background: transparent; color: rgba(255,255,255,.7);
  font-size: 12.5px; padding: 5px 12px; border-radius: 6px; cursor: pointer;
  font-family: inherit; transition: all .15s;
}
#toolbar .tb-seg button.on { background: #fff; color: #12211D; font-weight: 600; }
#toolbar .tb-spacer { flex: 1; }
#toolbar .tb-btn {
  border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff;
  font-size: 12.5px; padding: 5px 12px; border-radius: 7px; cursor: pointer;
  font-family: inherit;
}
#toolbar .tb-btn:hover { background: rgba(255,255,255,.12); }
#toolbar .tb-hint { color: rgba(255,255,255,.5); font-size: 12px; }

/* ============ 手机外框 ============ */
#stage {
  display: flex; justify-content: center; align-items: flex-start;
  padding: 72px 16px 40px; min-height: 100vh;
}
#phone {
  width: var(--w); max-width: 100%;
  height: 844px; max-height: calc(100vh - 112px);
  background: var(--c-card);
  border-radius: 32px;
  box-shadow: var(--shadow-lg), 0 0 0 8px #1C2B27, 0 0 0 9px #333;
  display: flex; flex-direction: column; overflow: hidden;
  position: relative;
}
@media (max-width: 460px) {
  #stage { padding: 52px 0 0; display: block; }
  #phone {
    width: 100%; height: calc(100vh - 52px); max-height: none;
    border-radius: 0; box-shadow: none;
  }
  /* 窄屏精简工具条 */
  #toolbar { height: 52px; padding: 0 8px; gap: 6px; flex-wrap: nowrap; }
  #toolbar .tb-brand span { display: none; }
  #toolbar .tb-hint { display: none; }
  #toolbar .tb-btn { padding: 5px 9px; font-size: 12px; white-space: nowrap; }
  #toolbar .tb-seg button { padding: 5px 9px; font-size: 12px; }
  #gallery { inset: 52px 0 0; padding: 16px 12px; }
  #gallery .g-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  #gallery .g-item { padding: 11px; }
}

/* 状态栏 */
.statusbar {
  height: 44px; flex: 0 0 44px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; font-size: 13px; font-weight: 600;
  background: var(--c-card); color: var(--c-ink);
  position: relative; z-index: 5;
}
.statusbar.dark { background: transparent; color: #fff; position: absolute; top: 0; left: 0; right: 0; }
.statusbar .sb-icons { display: flex; gap: 5px; align-items: center; font-size: 11px; letter-spacing: 1px; }

/* 防止任何子元素撑破手机框 */
#phone { max-width: 100%; }

/* ★ 关键：把 flex 高度约束从 #phone 传到 .screen。
   若 #app 不是 flex 容器，.screen 会被内容撑高、溢出被 #phone 裁掉，
   导致长页面完全无法滚动（这是之前"鼠标拖不动"的真正原因）。 */
#app {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.screen > .page { overflow-x: hidden; max-width: 100%; }
.hero, .card, .alert, .insurance-card { max-width: 100%; }
.field input, .field .val, .input-box { max-width: 100%; }
.row { max-width: 100%; }
.grow { min-width: 0; }

/* 导航栏 */
.navbar {
  height: 48px; flex: 0 0 48px;
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px; background: var(--c-card);
  border-bottom: 1px solid var(--c-line-2);
  position: relative; z-index: 4;
}
.navbar .nav-back {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 18px; color: var(--c-ink);
  flex: 0 0 auto; border: 0; background: transparent; font-family: inherit;
}
.navbar .nav-back:hover { background: var(--c-bg); }
.navbar .nav-title {
  font-size: 16.5px; font-weight: 600; flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.navbar .nav-right { font-size: 13px; color: var(--c-ink-2); flex: 0 0 auto; }

/* 内容区 */
.screen {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  background: var(--c-bg); position: relative;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(28,43,39,.34) transparent;
}
/* 显式画出滚动条 —— 之前设成 width:0 导致完全没有"下面还有内容"的提示 */
.screen::-webkit-scrollbar { width: 10px; }
.screen::-webkit-scrollbar-track { background: transparent; }
.screen::-webkit-scrollbar-thumb {
  background: rgba(28,43,39,.30);
  border-radius: 6px;
  border: 3px solid transparent;
  background-clip: content-box;
}
.screen::-webkit-scrollbar-thumb:hover { background: rgba(28,43,39,.55); background-clip: content-box; }

/* 底部渐隐提示：还有内容未看完时出现 */
.scroll-fade {
  position: absolute; left: 0; right: 0; z-index: 60;
  height: 46px; pointer-events: none;
  opacity: 0; transition: opacity .2s;
  background: linear-gradient(to top, rgba(244,246,245,.97) 0%, rgba(244,246,245,.72) 45%, rgba(244,246,245,0) 100%);
}
.scroll-fade.on { opacity: 1; }
.scroll-fade .sf-arrow {
  position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--c-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; box-shadow: 0 2px 8px rgba(28,43,39,.28);
  animation: sf-bounce 1.5s ease-in-out infinite;
}
@keyframes sf-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(3px); }
}
.page { padding-bottom: 24px; }

/* ============ 通用组件 ============ */
.card {
  background: var(--c-card); border-radius: var(--radius-card);
  margin: 12px var(--pad); padding: 14px;
  box-shadow: var(--shadow);
}
.card.tight { padding: 0; overflow: hidden; }
.card.no-pad { padding: 0; overflow: hidden; }

.sec-title {
  font-size: 15px; font-weight: 600; margin: 18px var(--pad) 8px;
  display: flex; align-items: center; gap: 6px;
}
.sec-title .more { margin-left: auto; font-size: 12.5px; color: var(--c-ink-3); font-weight: 400; }

.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; }
.grow { flex: 1; min-width: 0; }

.muted { color: var(--c-ink-2); font-size: 13px; }
.muted3 { color: var(--c-ink-3); font-size: 12.5px; }
.strong { font-weight: 600; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 标签 */
.tag {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; padding: 2px 7px; border-radius: var(--radius-tag);
  background: var(--c-line-2); color: var(--c-ink-2); font-weight: 500;
  white-space: nowrap;
}
.tag.green { background: var(--c-success-l); color: var(--c-success); }
.tag.amber { background: var(--c-accent-l); color: var(--c-accent-d); }
.tag.red { background: var(--c-danger-l); color: var(--c-danger); }
.tag.blue { background: var(--c-info-l); color: var(--c-info); }
.tag.outline { background: transparent; border: 1px solid var(--c-line); }

/* 差异化标记 */
.diff-mark {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 5px;
  background: linear-gradient(135deg, #E8A33D, #C9821F); color: #fff;
  letter-spacing: .2px;
}
.req-mark {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 5px;
  background: var(--c-info); color: #fff;
}

/* 按钮 */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 13px; border-radius: var(--radius-btn);
  border: 0; font-size: 16px; font-weight: 600; font-family: inherit;
  background: var(--c-primary); color: #fff; cursor: pointer;
  transition: background .15s, transform .1s;
}
.btn:active { transform: scale(.985); background: var(--c-primary-d); }
.btn.ghost { background: var(--c-card); color: var(--c-primary); border: 1.5px solid var(--c-primary); }
.btn.ghost:active { background: var(--c-primary-l); }
.btn.plain { background: var(--c-line-2); color: var(--c-ink); }
.btn.danger { background: var(--c-danger); }
.btn.sm { padding: 8px 14px; font-size: 13.5px; width: auto; border-radius: 8px; }
.btn.xs { padding: 5px 10px; font-size: 12.5px; width: auto; border-radius: 7px; }
.btn.disabled { background: var(--c-line); color: var(--c-ink-3); cursor: not-allowed; }
.btn.disabled:active { transform: none; background: var(--c-line); }

/* 底部固定操作条 */
.actionbar {
  flex: 0 0 auto; padding: 10px var(--pad);
  background: var(--c-card); box-shadow: var(--shadow-up);
  display: flex; align-items: center; gap: 10px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}

/* tabBar */
.tabbar {
  flex: 0 0 auto; height: 56px; display: flex;
  background: var(--c-card); border-top: 1px solid var(--c-line-2);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar .tab {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; cursor: pointer;
  font-size: 10.5px; color: var(--c-ink-3); border: 0; background: transparent;
  font-family: inherit; padding: 0;
}
.tabbar .tab .ic { font-size: 19px; line-height: 1; }
.tabbar .tab.on { color: var(--c-primary); font-weight: 600; }

/* 表单 */
.field {
  padding: 13px 0; border-bottom: 1px solid var(--c-line-2);
  display: flex; align-items: center; gap: 10px;
}
.field:last-child { border-bottom: 0; }
.field .label { width: 84px; flex: 0 0 84px; font-size: 14px; color: var(--c-ink); }
.field .label .req { color: var(--c-danger); margin-left: 2px; }
.field input, .field select, .field textarea {
  flex: 1; border: 0; outline: 0; font-size: 14px; font-family: inherit;
  color: var(--c-ink); background: transparent; min-width: 0;
}
.field input::placeholder, .field textarea::placeholder { color: var(--c-ink-3); }
.field .val { font-size: 14px; text-align: right; flex: 1; }
.field .arrow { color: var(--c-ink-3); font-size: 15px; }

.input-box {
  border: 1px solid var(--c-line); border-radius: 9px;
  padding: 10px 12px; font-size: 14px; width: 100%;
  font-family: inherit; outline: 0; background: var(--c-card);
}
.input-box:focus { border-color: var(--c-primary); }
textarea.input-box { resize: none; min-height: 76px; line-height: 1.5; }

.checkbox {
  display: flex; align-items: flex-start; gap: 9px;
  cursor: pointer; font-size: 13.5px; line-height: 1.45;
}
.checkbox .box {
  width: 19px; height: 19px; flex: 0 0 19px; border-radius: 5px;
  border: 1.5px solid var(--c-line); display: flex; align-items: center;
  justify-content: center; font-size: 12px; color: transparent;
  background: var(--c-card); margin-top: 1px; transition: all .15s;
}
.checkbox.on .box { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

/* 分段控件 */
.seg {
  display: flex; background: var(--c-line-2); border-radius: 9px; padding: 3px; gap: 2px;
}
.seg button {
  flex: 1; border: 0; background: transparent; padding: 8px 6px;
  font-size: 13.5px; border-radius: 7px; cursor: pointer;
  color: var(--c-ink-2); font-family: inherit; font-weight: 500;
  transition: all .15s;
}
.seg button.on { background: var(--c-card); color: var(--c-ink); font-weight: 600; box-shadow: var(--shadow); }

/* 列表项 */
.list-item {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 14px; border-bottom: 1px solid var(--c-line-2);
  cursor: pointer; background: var(--c-card);
}
.list-item:last-child { border-bottom: 0; }
.list-item:active { background: var(--c-bg); }
.avatar {
  width: 38px; height: 38px; border-radius: 10px; flex: 0 0 38px;
  background: var(--c-primary-l); color: var(--c-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
}

/* 保险卡 */
.insurance-card {
  margin: 12px var(--pad); border-radius: var(--radius-card);
  background: linear-gradient(135deg, #1F6F5C 0%, #2A8A72 100%);
  color: #fff; padding: 14px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.insurance-card::after {
  content: ''; position: absolute; right: -30px; top: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(232,163,61,.18);
}
.insurance-card .ic-head {
  display: flex; align-items: center; gap: 7px; font-size: 14.5px;
  font-weight: 600; margin-bottom: 10px; position: relative; z-index: 1;
}
.insurance-card .ic-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 9px 12px;
  position: relative; z-index: 1;
}
.insurance-card .ic-item .k { font-size: 11.5px; opacity: .78; }
.insurance-card .ic-item .v { font-size: 15px; font-weight: 600; margin-top: 1px; }
.insurance-card .ic-foot {
  margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.18);
  display: flex; align-items: center; gap: 10px; font-size: 12.5px;
  position: relative; z-index: 1;
}
.insurance-card .ic-foot a { color: #FFE0B0; text-decoration: none; }

/* 折叠面板 */
.collapse-head {
  display: flex; align-items: center; gap: 7px; cursor: pointer;
  font-size: 14px; font-weight: 600; user-select: none;
}
.collapse-head .chev { margin-left: auto; color: var(--c-ink-3); transition: transform .2s; font-size: 13px; }
.collapse-head.open .chev { transform: rotate(180deg); }
.collapse-body { display: none; margin-top: 11px; }
.collapse-body.open { display: block; }

/* 除外责任块 */
.exclusion {
  background: var(--c-danger-l); border-radius: 9px; padding: 11px 12px;
  margin-top: 10px; border-left: 3px solid var(--c-danger);
}
.exclusion .ex-t { font-size: 12.5px; font-weight: 700; color: var(--c-danger); margin-bottom: 5px; }
.exclusion ul { margin: 0; padding-left: 16px; }
.exclusion li { font-size: 12.5px; color: #8A3B38; line-height: 1.65; }

/* 警告条 */
.alert {
  display: flex; gap: 9px; padding: 11px 12px; border-radius: 9px;
  font-size: 13px; line-height: 1.5; margin: 10px var(--pad);
}
.alert .ai { flex: 0 0 auto; font-size: 15px; line-height: 1.3; }
.alert.warn { background: var(--c-warn-l); color: #8A5A12; border-left: 3px solid var(--c-warn); }
.alert.danger { background: var(--c-danger-l); color: #8A3B38; border-left: 3px solid var(--c-danger); }
.alert.info { background: var(--c-info-l); color: #2A5A78; border-left: 3px solid var(--c-info); }
.alert.success { background: var(--c-success-l); color: #1E6B49; border-left: 3px solid var(--c-success); }

/* 进度条 */
.progress {
  height: 6px; border-radius: 3px; background: var(--c-line-2);
  overflow: hidden; margin-top: 7px;
}
.progress > i {
  display: block; height: 100%; border-radius: 3px;
  background: var(--c-primary); transition: width .4s ease;
}
.progress.amber > i { background: var(--c-accent); }
.progress.red > i { background: var(--c-danger); }

/* 统计格 */
.stats { display: flex; gap: 8px; }
.stat {
  flex: 1; background: var(--c-bg); border-radius: 9px;
  padding: 10px 8px; text-align: center;
}
.stat .n { font-size: 19px; font-weight: 700; line-height: 1.2; }
.stat .l { font-size: 11px; color: var(--c-ink-2); margin-top: 2px; }
.stat.ok .n { color: var(--c-success); }
.stat.warn .n { color: var(--c-accent-d); }
.stat.bad .n { color: var(--c-danger); }

/* 步骤条 */
.steps { padding: 0 4px; }
.step { display: flex; gap: 11px; position: relative; padding-bottom: 18px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ''; position: absolute; left: 10px; top: 22px; bottom: 0;
  width: 2px; background: var(--c-line);
}
.step:last-child::before { display: none; }
.step .dot {
  width: 22px; height: 22px; border-radius: 50%; flex: 0 0 22px;
  background: var(--c-line-2); color: var(--c-ink-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700; z-index: 1;
}
.step.done .dot { background: var(--c-success); color: #fff; }
.step.now .dot { background: var(--c-primary); color: #fff; box-shadow: 0 0 0 4px var(--c-primary-l); }
.step .s-body { flex: 1; padding-top: 1px; }
.step .s-t { font-size: 14px; font-weight: 600; }
.step .s-d { font-size: 12.5px; color: var(--c-ink-2); margin-top: 3px; line-height: 1.55; }

/* 拨号大按钮 */
.call-btn {
  display: flex; align-items: center; gap: 11px; padding: 13px 14px;
  border-radius: 11px; background: var(--c-card); cursor: pointer;
  border: 1px solid var(--c-line); margin-bottom: 9px;
  transition: all .15s;
}
.call-btn:active { background: var(--c-bg); transform: scale(.99); }
.call-btn .ci {
  width: 38px; height: 38px; border-radius: 10px; flex: 0 0 38px;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.call-btn .ct { font-size: 14.5px; font-weight: 600; }
.call-btn .cs { font-size: 12px; color: var(--c-ink-2); margin-top: 1px; }
.call-btn .cgo { margin-left: auto; color: var(--c-primary); font-size: 13px; font-weight: 600; }
.call-btn.danger { border-color: #F3CFCE; background: #FFF9F9; }
.call-btn.danger .ci { background: var(--c-danger-l); }
.call-btn.danger .cgo { color: var(--c-danger); }
.call-btn.green .ci { background: var(--c-success-l); }
.call-btn.amber .ci { background: var(--c-accent-l); }
.call-btn.blue .ci { background: var(--c-info-l); }

/* 保单号大字 */
.policy-no {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 20px; font-weight: 700; letter-spacing: 1px;
  color: var(--c-ink); text-align: center; padding: 12px;
  background: var(--c-bg); border-radius: 10px; user-select: all;
  word-break: break-all;
}

/* 离线徽标 */
.offline-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; padding: 3px 8px;
  border-radius: 6px; background: var(--c-ink); color: #fff;
}
.offline-badge.on { background: var(--c-accent-d); }

/* 手机框内浮层 */
#phone.offline .statusbar::after {
  content: '离线模式'; position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%); font-size: 10px; font-weight: 700;
  background: var(--c-accent-d); color: #fff; padding: 2px 7px; border-radius: 5px;
}

/* Toast */
#toast {
  position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(10px);
  background: rgba(28,43,39,.92); color: #fff; font-size: 13.5px;
  padding: 10px 18px; border-radius: 9px; opacity: 0;
  transition: all .25s; pointer-events: none; z-index: 200;
  max-width: 82%; text-align: center; line-height: 1.45;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 弹层 */
.sheet-mask {
  position: absolute; inset: 0; background: rgba(28,43,39,.45);
  opacity: 0; pointer-events: none; transition: opacity .22s; z-index: 100;
}
.sheet-mask.show { opacity: 1; pointer-events: auto; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--c-card); border-radius: 18px 18px 0 0;
  padding: 18px var(--pad) calc(18px + env(safe-area-inset-bottom));
  transform: translateY(102%); transition: transform .26s cubic-bezier(.3,.8,.4,1);
  z-index: 101; max-height: 82%; overflow-y: auto;
}
.sheet.show { transform: translateY(0); }
.sheet .sh-title {
  font-size: 16px; font-weight: 600; margin-bottom: 4px;
  display: flex; align-items: center; gap: 7px;
}
.sheet .sh-sub { font-size: 12.5px; color: var(--c-ink-2); margin-bottom: 14px; }

/* 搜索框 */
.searchbar {
  display: flex; align-items: center; gap: 8px;
  background: var(--c-line-2); border-radius: 9px;
  padding: 9px 12px; margin: 10px var(--pad);
  font-size: 14px; color: var(--c-ink-3);
}
.searchbar input { border: 0; background: transparent; outline: 0; flex: 1; font-size: 14px; font-family: inherit; }

/* 章节：活动头图 */
.hero {
  height: 168px; background: linear-gradient(135deg, #1B4D40 0%, #2A8A72 55%, #4FAF91 100%);
  position: relative; display: flex; align-items: flex-end; padding: 14px;
  color: #fff; overflow: hidden;
}
/* hero 实拍图（衬底 + 渐变压暗，保证文字可读） */
.hero .hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 58%;
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top,
    rgba(8,24,19,.72) 0%,
    rgba(8,24,19,.34) 34%,
    rgba(8,24,19,.08) 62%,
    rgba(8,24,19,.30) 100%);
}
.hero .hero-pattern { z-index: 1; }
.hero .hero-body { z-index: 2; }
.hero .hero-logo { z-index: 2; }
.hero .hero-t, .hero .hero-brand, .hero .hero-s, .hero .hero-tag {
  text-shadow: 0 1px 8px rgba(0,0,0,.7), 0 1px 2px rgba(0,0,0,.5);
}

/* 首页 hero：更高，文字压在明确暗区上，确保可读 */
.hero.hero-home { height: 208px; padding: 0; align-items: flex-end; }
.hero.hero-home .hero-img { object-position: center 42%; }
.hero.hero-home .hero-shade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 62%; z-index: 1;
  background: linear-gradient(to top, rgba(6,20,16,.94) 0%, rgba(6,20,16,.82) 45%, rgba(6,20,16,0) 100%);
  pointer-events: none;
}
.hero.hero-home .hero-body {
  position: relative; z-index: 2; padding: 0 15px 15px;
}

/* 列表缩略图 */
.thumb {
  width: 62px; height: 46px; flex: 0 0 62px;
  border-radius: 9px; object-fit: cover;
  background: var(--c-line-2);
}
.hero .hero-pattern {
  position: absolute; inset: 0; opacity: .12;
  background-image: radial-gradient(circle at 20% 30%, #fff 1px, transparent 1px),
                    radial-gradient(circle at 70% 60%, #fff 1px, transparent 1px),
                    radial-gradient(circle at 45% 80%, #fff 1px, transparent 1px);
  background-size: 60px 60px, 80px 80px, 40px 40px;
}
.hero .hero-body { position: relative; z-index: 1; }
.hero .hero-t { font-size: 19px; font-weight: 700; line-height: 1.3; }
.hero .hero-s { font-size: 12.5px; opacity: .9; margin-top: 4px; }

/* 首页 hero：品牌层（不是活动层） */
.hero .hero-brand { font-size: 22px; font-weight: 800; letter-spacing: .5px; line-height: 1.2; }
.hero .hero-tag {
  display: inline-block; font-size: 11.5px; font-weight: 600;
  background: rgba(255,255,255,.2); padding: 2px 9px;
  border-radius: 20px; margin-top: 6px; letter-spacing: .5px;
}
.hero .hero-logo {
  width: 62px; height: 62px; flex: 0 0 62px;
  border-radius: 14px; background: #fff; padding: 3px;
  box-shadow: 0 3px 10px rgba(0,0,0,.18);
}

/* 网格总览 */
#gallery {
  position: fixed; inset: 48px 0 0; background: #EDEFEE; z-index: 999;
  overflow-y: auto; padding: 20px; display: none;
}
#gallery.show { display: block; }
#gallery h2 { font-size: 17px; margin: 0 0 4px; }
#gallery .g-sub { color: #66756F; font-size: 13px; margin-bottom: 18px; }
#gallery .g-group { font-size: 13px; font-weight: 700; color: #45534E; margin: 20px 0 10px; letter-spacing: .3px; }
#gallery .g-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px;
}
#gallery .g-item {
  background: #fff; border-radius: 11px; padding: 14px; cursor: pointer;
  box-shadow: var(--shadow); transition: all .15s; border: 1.5px solid transparent;
}
#gallery .g-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--c-primary); }
#gallery .g-item .g-id { font-size: 11px; color: var(--c-ink-3); font-family: ui-monospace, monospace; }
#gallery .g-item .g-name { font-size: 14.5px; font-weight: 600; margin: 3px 0 6px; }
#gallery .g-item .g-tags { display: flex; gap: 5px; flex-wrap: wrap; }
#gallery .g-foot { margin-top: 24px; font-size: 12.5px; color: #66756F; line-height: 1.7; }

/* 说明面板 */
.note {
  margin: 10px var(--pad); padding: 11px 12px; border-radius: 9px;
  background: #FFFDF7; border: 1px dashed #E8CFA0; font-size: 12.5px;
  color: #7A5A1E; line-height: 1.6;
}
.note b { color: #5C420F; }
.note .n-t { font-weight: 700; margin-bottom: 3px; display: flex; align-items: center; gap: 5px; }

/* 时间轴 */
.timeline { padding-left: 6px; }
.tl-item { display: flex; gap: 11px; position: relative; padding-bottom: 15px; }
.tl-item::before {
  content: ''; position: absolute; left: 5px; top: 16px; bottom: 0; width: 2px; background: var(--c-line);
}
.tl-item:last-child::before { display: none; }
.tl-item .tl-dot {
  width: 12px; height: 12px; border-radius: 50%; flex: 0 0 12px;
  background: var(--c-primary); margin-top: 4px; z-index: 1;
  box-shadow: 0 0 0 3px var(--c-primary-l);
}
.tl-item.red .tl-dot { background: var(--c-danger); box-shadow: 0 0 0 3px var(--c-danger-l); }
.tl-item.amber .tl-dot { background: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-l); }
.tl-item .tl-t { font-size: 13.5px; font-weight: 600; }
.tl-item .tl-d { font-size: 12.5px; color: var(--c-ink-2); margin-top: 2px; line-height: 1.5; }

/* 名单项 */
.person {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  border-bottom: 1px solid var(--c-line-2); background: var(--c-card);
}
.person:last-child { border-bottom: 0; }
.person .p-idx {
  width: 22px; flex: 0 0 22px; font-size: 12px; color: var(--c-ink-3);
  font-family: ui-monospace, monospace; text-align: right;
}
.person.unchecked { background: #FFFCF5; }
.person .p-name { font-size: 14.5px; font-weight: 600; }
.person .p-meta { font-size: 11.5px; color: var(--c-ink-2); margin-top: 1px; }

/* 底部弹层内的选项 */
.opt {
  display: flex; align-items: center; gap: 10px; padding: 12px 2px;
  border-bottom: 1px solid var(--c-line-2); cursor: pointer; font-size: 14.5px;
}
.opt:last-child { border-bottom: 0; }
.opt .o-check { margin-left: auto; color: var(--c-primary); font-weight: 700; }
.opt.on { color: var(--c-primary); font-weight: 600; }

/* 空状态 */
.empty { text-align: center; padding: 48px 24px; color: var(--c-ink-3); }
.empty .e-ic { font-size: 40px; opacity: .5; margin-bottom: 10px; }
.empty .e-t { font-size: 14px; }

/* ============ 转化机制组件 ============ */

/* 早鸟价区块 */
.price-block {
  margin: 12px var(--pad);
  background: var(--c-card); border-radius: var(--radius-card);
  padding: 14px; box-shadow: var(--shadow);
  border: 1.5px solid #F3D9AE;
  background: linear-gradient(180deg, #FFFBF3 0%, #FFFFFF 46%);
}
.price-main { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-now { font-size: 30px; font-weight: 800; color: var(--c-danger); letter-spacing: -.5px; }
.price-now .unit { font-size: 13px; font-weight: 500; color: var(--c-ink-2); }
.price-was {
  font-size: 14px; color: var(--c-ink-3); text-decoration: line-through;
}
.price-save {
  font-size: 11.5px; font-weight: 700; color: #8A5A12;
  background: var(--c-accent-l); padding: 2px 7px; border-radius: 6px;
}
.eb-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #E8A33D, #D9534F);
  padding: 3px 8px; border-radius: 6px;
}
.eb-count {
  display: flex; align-items: center; gap: 7px;
  margin-top: 11px; padding: 9px 11px;
  background: var(--c-danger-l); border-radius: 9px;
  font-size: 12.5px; color: #8A3B38; font-weight: 600;
}
.eb-count .cd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px; font-weight: 700; color: var(--c-danger);
  letter-spacing: .5px;
}
.price-divider { height: 1px; background: var(--c-line-2); margin: 12px 0; }
.price-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0; font-size: 13.5px;
}
.price-row .pr-l { color: var(--c-ink-2); display: flex; align-items: center; gap: 5px; }
.price-row .pr-v { font-weight: 600; }
.price-row .pr-v.hit { color: var(--c-danger); }
.price-row .pr-v.off { color: var(--c-ink-3); font-weight: 400; text-decoration: line-through; }

/* 余位告急 */
.stock-alert {
  display: flex; align-items: center; gap: 8px;
  margin: 12px var(--pad); padding: 10px 12px;
  border-radius: 9px; font-size: 13px; font-weight: 600;
  background: var(--c-danger-l); color: #8A3B38;
  border-left: 3px solid var(--c-danger);
}
.stock-alert.warn { background: var(--c-warn-l); color: #8A5A12; border-left-color: var(--c-warn); }
.stock-alert .sa-n { color: var(--c-danger); font-weight: 800; font-size: 15px; }
.stock-bar { height: 7px; border-radius: 4px; background: #F0D6D5; overflow: hidden; margin-top: 8px; }
.stock-bar > i { display: block; height: 100%; background: linear-gradient(90deg, #E8A33D, #D9534F); border-radius: 4px; }

/* 会员价提示 */
.member-tip {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 11px; border-radius: 9px; margin-top: 10px;
  background: linear-gradient(135deg, #2B354B, #1F2937); color: #FFE0B0;
  font-size: 12.5px;
}
.member-tip .mt-t { font-weight: 700; color: #fff; }
.member-tip .mt-badge {
  margin-left: auto; font-size: 10.5px; font-weight: 700;
  background: rgba(255,224,176,.18); padding: 2px 7px; border-radius: 5px; white-space: nowrap;
}

/* 倒计时数字块 */
.cd-box {
  display: inline-flex; align-items: center; gap: 2px;
  font-family: ui-monospace, Menlo, monospace; font-weight: 700;
}
.cd-box span {
  background: #3A2A14; color: #FFD79A; border-radius: 4px;
  padding: 1px 5px; font-size: 13px; min-width: 20px; text-align: center;
}

/* 优惠券选项 */
.coupon-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--c-line-2); cursor: pointer;
}
.coupon-opt:last-child { border-bottom: 0; }
.coupon-opt.disabled { opacity: .45; cursor: not-allowed; }
.coupon-amt {
  flex: 0 0 auto; min-width: 62px; text-align: center;
  color: var(--c-danger); font-weight: 800; font-size: 19px;
}
.coupon-amt small { font-size: 11px; font-weight: 500; }
.coupon-info { flex: 1; min-width: 0; }
.coupon-name { font-size: 14px; font-weight: 600; }
.coupon-cond { font-size: 11.5px; color: var(--c-ink-2); margin-top: 2px; }
.coupon-check { color: var(--c-primary); font-weight: 700; font-size: 15px; }

/* ============ 演示脚本 / 页面地图 ============ */
.demo-panel {
  margin: 12px var(--pad);
  border-radius: var(--radius-card);
  background: linear-gradient(160deg, #16342C 0%, #1F6F5C 100%);
  color: #fff; overflow: hidden;
  box-shadow: 0 6px 20px rgba(28,43,39,.18);
}
.demo-head {
  padding: 14px 15px 11px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.demo-head .dh-t {
  font-size: 15px; font-weight: 700;
  display: flex; align-items: center; gap: 7px;
}
.demo-head .dh-s {
  font-size: 11.5px; opacity: .78; margin-top: 4px; line-height: 1.55;
}
.demo-head .dh-badge {
  margin-left: auto; font-size: 10.5px; font-weight: 700;
  background: rgba(255,255,255,.18); padding: 2px 7px; border-radius: 5px;
}
.demo-sec {
  padding: 11px 15px 4px;
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
  opacity: .62; text-transform: uppercase;
}
.demo-step {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 15px; cursor: pointer;
  transition: background .15s;
}
.demo-step:active { background: rgba(255,255,255,.1); }
.demo-step .ds-n {
  width: 21px; height: 21px; flex: 0 0 21px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.demo-step.star .ds-n { background: var(--c-accent); color: #3A2700; }
.demo-step .ds-t { font-size: 13.5px; font-weight: 600; }
.demo-step .ds-d { font-size: 11px; opacity: .72; margin-top: 1px; line-height: 1.4; }
.demo-step .ds-go { margin-left: auto; opacity: .5; font-size: 13px; }
.demo-foot {
  padding: 11px 15px 14px;
  font-size: 11px; opacity: .62; line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,.12);
}

/* 悬浮：切到领队端 */
.fab-leader {
  position: absolute; right: 14px; bottom: 76px; z-index: 50;
  background: var(--c-accent); color: #3A2700;
  border: 0; border-radius: 22px; padding: 10px 15px;
  font-size: 12.5px; font-weight: 700; font-family: inherit;
  box-shadow: 0 4px 14px rgba(232,163,61,.45);
  cursor: pointer; display: flex; align-items: center; gap: 6px;
}
.fab-leader:active { transform: scale(.96); }

/* ============================================================
   裂变：分享面板 / 海报 / 邀请
   ============================================================ */
.share-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 4px; margin: 6px 0 14px; }
.share-item { text-align: center; cursor: pointer; padding: 6px 2px; border-radius: 10px; }
.share-item:active { background: var(--c-bg); }
.share-item .si-ic {
  width: 42px; height: 42px; margin: 0 auto 6px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center; font-size: 21px;
}
.share-item .si-t { font-size: 11px; color: var(--c-ink-2); }

.invite-box {
  background: linear-gradient(135deg, #16342C, #1F6F5C); border-radius: 12px;
  padding: 14px; text-align: center; color: #fff;
}
.invite-box .ib-l { font-size: 12px; opacity: .8; }
.invite-box .ib-code {
  font-family: ui-monospace, Menlo, monospace; font-size: 27px; font-weight: 800;
  letter-spacing: 5px; margin: 8px 0 6px; color: #FFD79A; cursor: pointer;
}
.invite-box .ib-hint { font-size: 11.5px; opacity: .75; }

/* 海报 */
.poster-wrap { padding: 14px var(--pad) 0; }
.poster {
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 8px 26px rgba(28,43,39,.16);
}
.po-hero { position: relative; height: 178px; overflow: hidden; }
.po-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.po-hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,20,16,.9) 0%, rgba(6,20,16,.3) 60%, rgba(6,20,16,.15) 100%);
}
.po-hero-txt { position: absolute; left: 14px; right: 14px; bottom: 12px; color: #fff; }
.po-brand { font-size: 11.5px; opacity: .9; letter-spacing: 1px; }
.po-title { font-size: 18px; font-weight: 800; line-height: 1.3; margin-top: 3px; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.po-body { padding: 14px; }
.po-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.po-now { font-size: 27px; font-weight: 800; color: var(--c-danger); }
.po-was { font-size: 14px; color: var(--c-ink-3); text-decoration: line-through; }
.po-eb { font-size: 11.5px; font-weight: 700; color: #8A5A12; background: var(--c-accent-l); padding: 2px 7px; border-radius: 6px; }
.po-meta { margin-top: 10px; font-size: 13px; color: var(--c-ink-2); line-height: 1.85; }
.po-qr-row {
  display: flex; align-items: center; gap: 12px; margin-top: 14px;
  padding-top: 14px; border-top: 1px dashed var(--c-line);
}
.po-qr { width: 100px; height: 100px; flex: 0 0 100px; border-radius: 8px; border: 1px solid var(--c-line-2); }
.po-qr-txt .po-qr-t { font-size: 13.5px; font-weight: 700; }
.po-qr-txt .po-qr-s { font-size: 12px; color: var(--c-ink-2); margin-top: 3px; }
.po-qr-txt .po-qr-s b { color: var(--c-danger); }
.po-foot {
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--c-line-2);
  font-size: 11px; color: var(--c-ink-3); text-align: center;
}

/* 邀请有礼 hero */
.invite-hero {
  margin: 12px var(--pad); padding: 18px 15px; border-radius: var(--radius-card);
  background: linear-gradient(150deg, #16342C 0%, #1F6F5C 55%, #2A8A72 100%);
  color: #fff; box-shadow: 0 6px 20px rgba(28,43,39,.2);
}
.invite-hero .ih-t { font-size: 19px; font-weight: 800; }
.invite-hero .ih-s { font-size: 12.5px; opacity: .9; margin-top: 6px; line-height: 1.7; }
.invite-hero .ih-s b { color: #FFD79A; }
.invite-hero .ih-code {
  display: flex; align-items: center; gap: 10px; margin-top: 14px;
  background: rgba(255,255,255,.14); border-radius: 10px; padding: 10px 12px; cursor: pointer;
}
.invite-hero .ihc-l { font-size: 12px; opacity: .8; }
.invite-hero .ihc-c {
  font-family: ui-monospace, Menlo, monospace; font-size: 20px; font-weight: 800;
  letter-spacing: 3px; color: #FFD79A; margin-left: auto;
}
.invite-hero .ihc-copy { font-size: 12px; background: rgba(255,255,255,.2); padding: 3px 9px; border-radius: 6px; }

/* ============================================================
   会员体系
   ============================================================ */
.member-card {
  margin: 12px var(--pad); border-radius: var(--radius-card); padding: 16px;
  background: linear-gradient(135deg, #2B354B 0%, #1F2937 60%, #3A2A14 100%);
  color: #fff; box-shadow: 0 6px 20px rgba(28,43,39,.24);
}
.member-card .mc-top { display: flex; align-items: flex-start; justify-content: space-between; }
.member-card .mc-level { font-size: 17px; font-weight: 800; color: #FFD79A; }
.member-card .mc-exp { font-size: 11.5px; opacity: .75; margin-top: 4px; }
.member-card .mc-points { text-align: right; }
.member-card .mcp-n { font-size: 23px; font-weight: 800; color: #FFD79A; line-height: 1.1; }
.member-card .mcp-l { font-size: 11px; opacity: .75; }
.member-card .mc-growth { margin-top: 15px; }
.member-card .mcg-txt { display: flex; justify-content: space-between; font-size: 11.5px; opacity: .82; margin-bottom: 6px; }
.member-card .mcg-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.16); overflow: hidden; }
.member-card .mcg-bar > i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #E8A33D, #FFD79A); }

.benefit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.benefit { display: flex; flex-direction: column; gap: 3px; }
.benefit .b-ic { font-size: 20px; }
.benefit .b-t { font-size: 13.5px; font-weight: 700; }
.benefit .b-d { font-size: 11.5px; color: var(--c-ink-2); line-height: 1.5; }

.level-row {
  display: flex; gap: 11px; padding: 12px 0;
  border-bottom: 1px solid var(--c-line-2);
}
.level-row:last-child { border-bottom: 0; }
.level-row.on { background: var(--c-accent-l); margin: 0 -14px; padding: 12px 14px; border-radius: 10px; }
.lv-badge {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px;
  background: var(--c-line-2); display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.level-row.on .lv-badge { background: #fff; }
.lv-name { font-size: 14.5px; font-weight: 700; }
.lv-req { font-size: 12px; color: var(--c-ink-2); margin-top: 2px; }
.lv-benefits { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }

/* ============================================================
   成团进度
   ============================================================ */
.group-box {
  margin: 12px var(--pad); padding: 13px 14px;
  background: var(--c-card); border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

/* ============================================================
   次卡 / 卡包
   ============================================================ */
.card-pack {
  margin: 12px var(--pad); padding: 14px; border-radius: var(--radius-card);
  background: var(--c-card); box-shadow: var(--shadow);
}
.card-pack.hot { border: 1.5px solid #F3D9AE; background: linear-gradient(180deg, #FFFBF3, #fff); }

/* ============================================================
   评价
   ============================================================ */
.stars { color: var(--c-accent); letter-spacing: 1px; }
.rating-bar-row { display: flex; align-items: center; gap: 7px; padding: 2px 0; font-size: 11.5px; color: var(--c-ink-2); }
.rating-bar { flex: 1; height: 6px; background: var(--c-line-2); border-radius: 3px; overflow: hidden; }
.rating-bar > i { display: block; height: 100%; background: var(--c-accent); border-radius: 3px; }

/* 成团进度：已达成的进度条用实心绿，避免与浅底混在一起看不清 */
.group-box .progress > i { background: var(--c-success); }
.group-box .progress.amber > i { background: var(--c-accent); }

/* ============================================================
   优惠券卡片
   ============================================================ */
.coupon-card {
  display: flex; align-items: center; gap: 11px;
  margin: 10px var(--pad); padding: 13px 14px;
  background: var(--c-card); border-radius: var(--radius-card);
  box-shadow: var(--shadow); border-left: 3px solid var(--c-danger);
}
.coupon-card.got { opacity: .6; border-left-color: var(--c-ink-3); }
.coupon-card.disabled { opacity: .5; border-left-color: var(--c-line); }
.coupon-card .cc-left {
  flex: 0 0 62px; text-align: center;
  border-right: 1px dashed var(--c-line); padding-right: 10px;
}
.coupon-card .cc-amt { font-size: 21px; font-weight: 800; color: var(--c-danger); line-height: 1.1; }
.coupon-card.disabled .cc-amt, .coupon-card.got .cc-amt { color: var(--c-ink-3); }
.coupon-card .cc-type { font-size: 10.5px; color: var(--c-ink-2); margin-top: 2px; }
.coupon-card .cc-body { flex: 1; min-width: 0; }
.coupon-card .cc-name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.coupon-card .cc-cond { font-size: 11.5px; color: var(--c-ink-2); margin-top: 3px; }

/* ============================================================
   通知计划
   ============================================================ */
.notice-row { display: flex; gap: 11px; padding-bottom: 14px; position: relative; }
.notice-row:last-child { padding-bottom: 0; }
.notice-row::before {
  content: ''; position: absolute; left: 4px; top: 14px; bottom: 0;
  width: 2px; background: var(--c-line);
}
.notice-row:last-child::before { display: none; }
.notice-row .nr-dot {
  width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px;
  background: var(--c-accent); margin-top: 4px; z-index: 1;
  box-shadow: 0 0 0 3px var(--c-accent-l);
}
.notice-row .nr-dot.sent { background: var(--c-success); box-shadow: 0 0 0 3px var(--c-success-l); }
.notice-row .nr-body {
  margin-top: 6px; padding: 8px 10px; background: var(--c-bg);
  border-radius: 8px; font-size: 12px; color: var(--c-ink-2); line-height: 1.6;
}

/* ============================================================
   拼团（阶梯价成团）
   ============================================================ */
.group-members { display: flex; gap: 9px; flex-wrap: wrap; }
.gm { text-align: center; width: 44px; }
.gm .gm-av {
  width: 44px; height: 44px; border-radius: 13px;
  background: var(--c-primary-l); color: var(--c-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
}
.gm .gm-n { font-size: 10px; color: var(--c-ink-2); margin-top: 4px; line-height: 1.25; }
.gm.gm-empty .gm-av {
  background: transparent; border: 1.5px dashed var(--c-line);
  color: var(--c-ink-3); font-size: 17px;
}

.tier-row {
  display: flex; gap: 11px; align-items: center;
  padding: 11px 0; border-bottom: 1px solid var(--c-line-2);
}
.tier-row:last-of-type { border-bottom: 0; }
.tier-row.on { background: var(--c-accent-l); margin: 0 -14px; padding: 11px 14px; border-radius: 10px; }
.tier-row .tr-badge {
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%;
  background: var(--c-line-2); color: var(--c-ink-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 700;
}
.tier-row.on .tr-badge { background: var(--c-success); color: #fff; }
.tier-row .tr-t { font-size: 14px; font-weight: 700; }
.tier-row .tr-d { font-size: 12px; color: var(--c-ink-2); margin-top: 3px; }

/* 领队端补充 */
.benefit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.benefit { display: flex; flex-direction: column; gap: 3px; }
.benefit .b-ic { font-size: 20px; }
.benefit .b-t { font-size: 13.5px; font-weight: 700; }
.benefit .b-d { font-size: 11.5px; color: var(--c-ink-2); line-height: 1.5; }
.rating-bar-row { display: flex; align-items: center; gap: 7px; padding: 3px 0; font-size: 12px; color: var(--c-ink-2); }
.rating-bar { flex: 1; height: 6px; background: var(--c-line-2); border-radius: 3px; overflow: hidden; display: block; }
.rating-bar > i { display: block; height: 100%; background: var(--c-accent); border-radius: 3px; }

/* ============================================================
   出行凭证
   ============================================================ */
.cred-card {
  margin: 12px var(--pad); background: var(--c-card);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 6px 22px rgba(28,43,39,.14);
  border: 1px solid var(--c-line);
}
.cred-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 15px; color: #fff;
  background: linear-gradient(135deg, #1F6F5C, #2A8A72);
}
.cred-head .cred-brand { font-size: 13px; font-weight: 700; letter-spacing: .5px; }
.cred-qr-wrap { text-align: center; padding: 18px 15px 12px; }
.cred-qr { width: 180px; height: 180px; border-radius: 10px; }
.cred-qr-hint { font-size: 12.5px; color: var(--c-ink-2); margin-top: 9px; }
.cred-no {
  margin: 0 15px; padding: 10px; border-radius: 9px;
  background: var(--c-bg); text-align: center;
}
.cred-no .cn-l { font-size: 11px; color: var(--c-ink-2); }
.cred-no .cn-v {
  font-family: ui-monospace, Menlo, monospace; font-size: 17px;
  font-weight: 700; letter-spacing: 1.5px; margin-top: 3px; user-select: all;
}
.cred-info { padding: 14px 15px 4px; }
.ci-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 7px 0; border-bottom: 1px solid var(--c-line-2); font-size: 13.5px;
}
.ci-row:last-child { border-bottom: 0; }
.ci-row .ci-l { color: var(--c-ink-2); flex: 0 0 64px; }
.ci-row .ci-v { text-align: right; font-weight: 500; }
.cred-foot {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 11px 15px 14px; margin-top: 8px;
  border-top: 1px dashed var(--c-line);
  font-size: 10.5px; color: var(--c-ink-3);
}

/* ============================================================
   上车签到（自主签到）
   ============================================================ */
.board-card {
  margin: 12px var(--pad); padding: 16px 14px;
  background: var(--c-card); border-radius: var(--radius-card);
  box-shadow: var(--shadow); text-align: center;
  border: 1.5px solid #F3D9AE;
  background: linear-gradient(180deg, #FFFBF3, #fff);
}
.board-card.done {
  border-color: #A8DCC0;
  background: linear-gradient(180deg, #F1FAF5, #fff);
}
.board-card .bc-tip { font-size: 13px; color: var(--c-ink-2); margin-bottom: 13px; }
.board-btn {
  width: 100%; padding: 18px; border: 0; border-radius: 14px;
  background: linear-gradient(135deg, #1F6F5C, #2A8A72);
  color: #fff; font-family: inherit; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  box-shadow: 0 5px 16px rgba(31,111,92,.3);
  transition: transform .12s;
}
.board-btn:active { transform: scale(.975); }
.board-btn .bb-ic { font-size: 30px; line-height: 1; }
.board-btn .bb-t { font-size: 19px; font-weight: 800; letter-spacing: 1px; }
.board-card .bc-window {
  font-size: 12px; color: var(--c-ink-2); margin-top: 11px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.board-card .bc-stat {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--c-line-2);
  font-size: 12px; color: var(--c-ink-2);
}
.board-card .bc-stat b { color: var(--c-primary); font-size: 14px; }
.board-card .bc-undo { color: var(--c-info); cursor: pointer; }
.board-card .bc-done { padding: 8px 0 4px; }
.board-card .bc-check {
  width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%;
  background: var(--c-success); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700;
  box-shadow: 0 0 0 6px var(--c-success-l);
}
.board-card .bc-t { font-size: 18px; font-weight: 800; color: var(--c-success); }
.board-card .bc-time { font-size: 12px; color: var(--c-ink-2); margin-top: 5px; }

/* ============================================================
   签到窗口控制（领队负责）
   ============================================================ */
.board-ctl {
  margin: 12px var(--pad); padding: 15px 14px;
  background: var(--c-card); border-radius: var(--radius-card);
  box-shadow: var(--shadow); border: 1.5px solid var(--c-line);
}
.board-ctl.open { border-color: #A8DCC0; background: linear-gradient(180deg, #F1FAF5, #fff); }
.board-ctl.closed { border-color: var(--c-line); background: var(--c-bg); }
.board-ctl .bctl-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.board-ctl .bctl-t { font-size: 15px; font-weight: 700; }
.board-ctl .bctl-desc { font-size: 13px; color: var(--c-ink-2); line-height: 1.65; margin-bottom: 13px; }
.board-ctl .bctl-progress { margin-bottom: 13px; }
.board-ctl .bctl-review {
  background: var(--c-bg); border-radius: 9px; padding: 11px 12px;
  font-size: 13.5px; margin-bottom: 12px;
}

/* 用户端：未开启 / 已截止 状态 */
.board-card.locked, .board-card.closed {
  border-color: var(--c-line);
  background: var(--c-card);
}
.board-card .bc-wait { padding: 8px 0 2px; }
.board-card .bc-wait-ic { font-size: 30px; line-height: 1; margin-bottom: 9px; }
.board-card .bc-wait .bc-t { font-size: 17px; font-weight: 700; color: var(--c-ink); }
.board-card .bc-wait-d { font-size: 12.5px; color: var(--c-ink-2); margin-top: 6px; line-height: 1.65; }
.board-card .bc-opener {
  font-size: 11.5px; color: var(--c-ink-3); margin-top: 11px;
  padding-top: 10px; border-top: 1px solid var(--c-line-2);
}

/* ============================================================
   签到窗口控制（领队负责）
   ============================================================ */
.board-ctl {
  margin: 12px var(--pad); padding: 15px 14px;
  background: var(--c-card); border-radius: var(--radius-card);
  box-shadow: var(--shadow); border: 1.5px solid var(--c-line);
}
.board-ctl.open { border-color: #A8DCC0; background: linear-gradient(180deg, #F1FAF5, #fff); }
.board-ctl.closed { background: var(--c-bg); }
.board-ctl .bctl-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.board-ctl .bctl-t { font-size: 15px; font-weight: 700; }
.board-ctl .bctl-desc { font-size: 13px; color: var(--c-ink-2); line-height: 1.65; margin-bottom: 13px; }
.board-ctl .bctl-progress { margin-bottom: 13px; }
.board-ctl .bctl-review { background: var(--c-bg); border-radius: 9px; padding: 11px 12px; font-size: 13.5px; margin-bottom: 12px; }

/* ============================================================
   支付结果页
   ============================================================ */
.pay-result { text-align: center; padding: 30px 16px 22px; }
.pay-result .pr-ic { font-size: 46px; line-height: 1; }
.pay-result .pr-t { font-size: 19px; font-weight: 800; margin-top: 11px; }
.pay-result .pr-d { font-size: 13px; color: var(--c-ink-2); margin-top: 7px; line-height: 1.6; padding: 0 12px; }
.pay-result .pr-tries { font-size: 12px; color: var(--c-ink-3); margin-top: 8px; }
.pay-result.confirming .pr-ic { animation: pr-pulse 1.4s ease-in-out infinite; }
@keyframes pr-pulse { 0%,100% { opacity: 1 } 50% { opacity: .45 } }

/* ============================================================
   退款档位
   ============================================================ */
.refund-tier {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--c-line-2); cursor: pointer;
}
.refund-tier:last-of-type { border-bottom: 0; }
.refund-tier.on { background: var(--c-accent-l); margin: 0 -16px; padding: 12px 16px; border-radius: 10px; }
.refund-tier.zero .rt-amt { color: var(--c-ink-3); }
.refund-tier .rt-left {
  flex: 0 0 62px; text-align: center;
  border-right: 1px dashed var(--c-line); padding-right: 10px;
}
.refund-tier .rt-amt { font-size: 18px; font-weight: 800; color: var(--c-danger); line-height: 1.15; }
.refund-tier.zero .rt-amt { color: var(--c-ink-3); }
.refund-tier .rt-rate { font-size: 10.5px; color: var(--c-ink-2); margin-top: 2px; }
.refund-tier .rt-t { font-size: 13.5px; font-weight: 600; }
.refund-tier .rt-d { font-size: 11.5px; color: var(--c-ink-2); margin-top: 3px; }
.refund-calc {
  margin-top: 14px; padding: 12px 13px; border-radius: 10px;
  background: var(--c-bg); border: 1px solid var(--c-line);
}
