/* 创舰学院 · 渠道分销系统 —— 小程序风格移动端 UI */
:root {
  --brand: #2b5cf6;
  --brand-deep: #1e46c0;
  --brand-grad: linear-gradient(135deg, #2b5cf6 0%, #4f8bff 100%);
  --gold: #f7a824;
  --bg: #f4f6fb;
  --card: #ffffff;
  --ink: #1c2333;
  --ink-2: #5a6478;
  --ink-3: #9aa3b8;
  --line: #edf0f7;
  --green: #10a54a;
  --green-bg: #e8f8ef;
  --orange: #f0821e;
  --orange-bg: #fdf1e4;
  --red: #e5484d;
  --red-bg: #fdecec;
  --blue-bg: #eaf1ff;
  --gray-bg: #f1f3f8;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(28, 42, 99, 0.06);
}

/* 协议与文件中心 */
.doc-center-page { padding-bottom: 28px; }
.doc-row { width: 100%; border: 0; border-top: 1px solid var(--line); background: transparent; padding: 13px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; color: var(--ink); }
.doc-row:first-of-type { border-top: 0; }
.doc-row b { display: block; font-size: 14px; line-height: 1.45; }
.doc-row small { display: block; margin-top: 4px; color: var(--ink-3); line-height: 1.45; }
.doc-state { flex: 0 0 auto; color: var(--brand); font-size: 12px; }
.doc-state em { font-style: normal; border-radius: 10px; padding: 2px 6px; }
.doc-state .ok { color: #078b4d; background: #e9f9f0; }
.doc-state .warn { color: #a96500; background: #fff4dd; }
.doc-content { font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.doc-content h1 { font-size: 21px; margin: 0 0 14px; line-height: 1.4; }
.doc-content h2 { font-size: 17px; margin: 22px 0 9px; line-height: 1.5; }
.doc-content h3 { font-size: 15px; margin: 18px 0 7px; }
.doc-content p { margin: 8px 0; }
.doc-content blockquote { margin: 10px 0; padding: 10px 12px; background: #f4f7fc; border-left: 3px solid var(--brand); color: var(--ink-2); }
.doc-content ul, .doc-content ol { padding-left: 22px; }
.doc-content a { color: var(--brand); }
.doc-content code { padding: 1px 4px; border-radius: 4px; background: #f2f4f8; }
.doc-table-line { margin: 0; padding: 3px 0; white-space: pre-wrap; font: 11px/1.5 ui-monospace, monospace; }
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; overscroll-behavior: none; -webkit-overflow-scrolling: auto; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: #e9edf5; color: var(--ink); font-size: 15px; line-height: 1.55;
  overscroll-behavior-y: none;
}

body.demo-mode::after {
  content: '演示环境 · 数据仅供展示';
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 54px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(120, 53, 15, .92);
  color: #fff;
  font-size: 11px;
  line-height: 1.35;
  box-shadow: 0 4px 12px rgba(120, 53, 15, .18);
  pointer-events: none;
  white-space: nowrap;
}
/* iOS:限制只允许垂直滚动,消除系统级水平滑动箭头 */
body.is-ios { touch-action: pan-y; }
/* ══ 窄屏（手机）：#phone-shell 透明无框，#app 全屏 ══ */
#phone-shell { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); display: flex; flex-direction: column; position: relative; overscroll-behavior: none; }
#app { flex: 1; display: flex; flex-direction: column; position: relative; overflow: hidden; overscroll-behavior: none; }

/* ══ 宽屏（电脑）：#phone-shell 变手机外框，装饰层显示 ══ */
@media (min-width: 520px) {
  body {
    background:
      radial-gradient(1200px 600px at 20% -10%, rgba(43,92,246,.12), transparent 60%),
      radial-gradient(800px 500px at 120% 110%, rgba(247,168,36,.10), transparent 60%),
      linear-gradient(180deg, #eef2fb 0%, #e4e9f4 100%);
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 24px 0;
  }
  #phone-shell {
    max-width: 440px;
    width: calc(100vw - 40px);
    height: calc(100vh - 48px);
    max-height: calc(100vh - 48px);
    background: var(--bg);
    border-radius: 48px;
    border: 11px solid #1c2333;
    box-shadow:
      0 0 0 2px #2c3342,
      0 30px 80px rgba(28,42,99,.22),
      0 8px 20px rgba(28,42,99,.14);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
  }
  /* 顶部状态栏：flex 第一个子元素，贴满手机框顶部 */
  #pf-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 30px;
    padding: 0 24px;
    background: #0b0e14;
    color: #fff;
    font-weight: 600;
    font-size: 13.5px;
    flex-shrink: 0;
    position: relative;
    z-index: 100;
  }
  /* 刘海 */
  .pf-notch {
    position: absolute; left: 50%; top: 0; transform: translateX(-50%);
    width: 124px; height: 30px;
    background: #1c2333;
    border-radius: 0 0 20px 20px;
  }
  .pf-time { letter-spacing: .3px; }
  .pf-right { display: flex; align-items: center; gap: 6px; }
  .pf-sig { font-size: 9px; letter-spacing: -1px; opacity: .9; line-height: 1; }
  .pf-wifi { font-size: 12px; }
  .pf-batt { display: inline-flex; align-items: center; gap: 1px; }
  .pf-batt-shell { display: inline-block; width: 24px; height: 11px; border: 1.2px solid #fff; border-radius: 3px; padding: 1px; }
  .pf-batt-fill { display: block; width: 82%; height: 100%; background: #fff; border-radius: 1px; }
  .pf-batt-cap { display: inline-block; width: 2px; height: 5px; background: #fff; border-top-right-radius: 1px; border-bottom-right-radius: 1px; }

  /* #app 中间区域：flex:1 撑满，内部 overflow 滚动 */
  #app { flex: 1; overflow: hidden; display: flex; flex-direction: column; }

  /* 底部 Home 指示条：flex 最后子元素，贴满手机框底部 */
  #pf-home {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    flex-shrink: 0;
    position: relative;
    z-index: 100;
  }
  .pf-home-indicator {
    width: 140px; height: 5px;
    background: #11151d;
    border-radius: 3px;
    opacity: .85;
  }

  /* 宽屏 tabbar：absolute 定位于手机壳内部底部 */
  #tab-slot { bottom: 0; }
  /* 宽屏 page 底部留位给 tabbar */
  .page { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important; }
  .page.no-tab { padding-bottom: 24px !important; }
  /* 宽屏 navbar：relative（取消窄屏的 fixed），flex-shrink 防压缩 */
  .navbar, .capsule-nav {
    position: relative !important;
    top: auto !important; left: auto !important; right: auto !important;
    transform: none !important;
    width: 100% !important; max-width: 100% !important;
    flex-shrink: 0;
  }
  /* 宽屏 tabbar：absolute 定位于手机壳内部（非 fixed） */
  #tab-slot {
    position: absolute !important;
    left: 0 !important; right: 0 !important; transform: none !important;
    width: 100% !important; max-width: 100% !important;
    bottom: 0;
  }
  /* 宽屏 page：取消 --nav-h 顶部留白（navbar 已变回 relative 占流） */
  .page {
    padding-top: 14px !important;
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .page.no-tab { padding-bottom: 24px !important; }
  /* 宽屏 login hero / boot 正常留位 */
  .login-hero { padding-top: 56px; padding-bottom: 56px; }
  .boot { padding-top: 40vh; }
  /* 宽屏 modal */
  .modal { max-width: 440px; max-height: 80%; border-radius: 20px 20px 0 0; }
}
.boot { padding: 40vh 0 0; text-align: center; color: var(--ink-3); }

/* ───── 顶部导航（固定定位）───── */
.navbar {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px;
  z-index: 40; background: var(--brand-grad); color: #fff;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px 12px;
  display: flex; align-items: center; gap: 10px;
}
.navbar .back { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; user-select: none; }
.navbar .title { font-size: 17px; font-weight: 600; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.navbar .nav-action { font-size: 13px; opacity: .95; cursor: pointer; padding: 4px 8px; border-radius: 8px; background: rgba(255,255,255,.16); }

/* ───── 首页顶部胶囊导航 ───── */
.capsule-nav {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px;
  z-index: 40; min-height: var(--nav-h); color: #fff; background: linear-gradient(135deg,#173b80,#2d5a95);
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 16px 8px;
  display: flex; align-items: center; justify-content: flex-start; gap: 10px;
}
.capsule-brand { min-width: 0; display: flex; align-items: center; gap: 9px; }
.capsule-mark { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.18); font-size: 11px; font-weight: 900; letter-spacing: .5px; }
.capsule-copy { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.capsule-copy b { max-width: 225px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.capsule-copy small { margin-top: 3px; color: rgba(255,255,255,.74); font-size: 9.5px; white-space: nowrap; }
/* ───── 页面容器（顶部/底部被固定元素占据，必须留白）───── */
:root {
  --nav-h: calc(env(safe-area-inset-top, 0px) + 48px);
  --tabbar-h: calc(env(safe-area-inset-bottom, 0px) + 64px);
}
.page {
  flex: 1; min-height: 0;
  padding: calc(var(--nav-h) + 14px) 14px calc(var(--tabbar-h) + 14px);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.page.no-tab {
  padding-top: calc(var(--nav-h) + 14px);
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
}
.page-title { font-size: 18px; font-weight: 700; margin: 4px 0 12px; }

/* ───── 卡片 ───── */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 12px; }
.card .card-title { font-size: 15px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
.card .card-title .more { font-size: 12px; color: var(--ink-3); font-weight: 400; cursor: pointer; }

/* ───── 佣金三列 ───── */
.money-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.money-grid .cell { text-align: center; padding: 12px 4px; background: var(--blue-bg); border-radius: 10px; }
.money-grid .cell .k { font-size: 11px; color: var(--ink-2); }
.money-grid .cell .v { font-size: 18px; font-weight: 800; color: var(--brand-deep); margin-top: 2px; }
.money-grid .cell.frozen .v { color: var(--orange); }
.money-grid .cell.due .v { color: var(--green); }
.money-foot { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--ink-3); }

/* ───── 统计块 ───── */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat-grid .stat { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.stat-grid .stat .k { font-size: 12px; color: var(--ink-2); }
.stat-grid .stat .v { font-size: 22px; font-weight: 800; margin-top: 4px; }
.stat-grid .stat .v small { font-size: 12px; font-weight: 400; color: var(--ink-3); }

/* ───── 列表 ───── */
.list-item { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: none; }
.list-item .li-main { flex: 1; min-width: 0; }
.list-item .li-title { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .li-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.list-item .li-right { text-align: right; font-size: 12px; color: var(--ink-2); white-space: nowrap; }

/* ───── 分组标题（佣金/奖励按类型分组） ───── */
.group-header { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; padding: 10px 0 4px; font-size: 13px; font-weight: 700; color: var(--brand-deep); border-top: 1px solid var(--line); }
.group-header:first-child { border-top: none; }
.group-header .group-count { font-size: 11px; font-weight: 400; color: var(--ink-3); }
.group-header .group-sub { font-size: 12px; font-weight: 600; color: var(--ink-1); }

/* ───── 状态标签 ───── */
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 1.6; }
.pill.blue { background: var(--blue-bg); color: var(--brand); }
.pill.green { background: var(--green-bg); color: var(--green); }
.pill.orange { background: var(--orange-bg); color: var(--orange); }
.pill.red { background: var(--red-bg); color: var(--red); }
.pill.gray { background: var(--gray-bg); color: var(--ink-3); }
.access-level-pill { margin-left: 4px; vertical-align: 1px; white-space: nowrap; }

/* ───── 进度条 ───── */
.progress-bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin: 6px 0; }
.progress-fill { height: 100%; background: var(--brand-grad); border-radius: 3px; transition: width .3s; }

/* ───── 按钮 ───── */
.btn {
  display: block; width: 100%; border: none; border-radius: 12px; padding: 13px;
  font-size: 16px; font-weight: 600; cursor: pointer; background: var(--brand-grad); color: #fff;
}
.btn:active { opacity: .85; }
.btn.plain { background: var(--blue-bg); color: var(--brand); }
.btn.danger { background: var(--red-bg); color: var(--red); }
.btn.ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink-2); }
.btn.sm { display: inline-block; width: auto; padding: 7px 14px; font-size: 13px; border-radius: 9px; }
.btn-row { display: flex; gap: 10px; margin-top: 12px; }
.btn-row .btn { flex: 1; }
.btn-row a.btn { text-align: center; text-decoration: none; }

/* ───── 表单 ───── */
.form-item { margin-bottom: 14px; }
.form-item label { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 6px; font-weight: 600; }
.form-item input, .form-item select, .form-item textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px;
  font-size: 14px; background: #fafbfd; color: var(--ink); outline: none; font-family: inherit;
}

/* 注册协议：关键内容强制黑体黑字，避免被弱化为普通提示。 */
.agreement-consent { margin: 18px 0 14px; padding: 12px; background: #f7f9ff; border: 1px solid #dbe4ff; border-radius: 10px; }
.agreement-link { appearance: none; border: 0; padding: 0; background: transparent; color: var(--brand-deep); font-size: 14px; font-weight: 800; text-decoration: underline; cursor: pointer; }
.agreement-key { margin: 7px 0; color: var(--ink-2); font-size: 12px; line-height: 1.65; }
.agreement-key strong, .agreement-document strong { color: #000; font-weight: 900; }
.agreement-check { display: flex; align-items: flex-start; gap: 7px; color: #111; font-size: 13px; font-weight: 700; line-height: 1.5; cursor: pointer; }
.agreement-check input { width: 16px; height: 16px; margin-top: 2px; flex: 0 0 auto; }
.agreement-document { height: min(56vh, 480px); overflow-y: auto; padding: 0 2px 8px; color: #2a3140; line-height: 1.8; font-size: 14px; }
.agreement-document h3 { margin: 16px 0 6px; color: #111; font-size: 15px; }
.agreement-document p { margin: 0 0 10px; }
.agreement-version { padding: 8px 10px; border-radius: 8px; background: var(--gray-bg); color: #111; font-size: 12px; font-weight: 800; }
.agreement-end { margin: 22px 0 4px; text-align: center; color: #111; font-weight: 800; }
.form-item input:focus, .form-item select:focus, .form-item textarea:focus { border-color: var(--brand); background: #fff; }
.form-item textarea { min-height: 72px; resize: vertical; }
.form-item .hint { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.seg { display: flex; background: var(--gray-bg); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button { flex: 1; border: none; background: transparent; padding: 8px 4px; border-radius: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.seg button.on { background: #fff; color: var(--brand); font-weight: 700; box-shadow: var(--shadow); }
#lg-seg { flex-wrap: wrap; }
#lg-seg button { flex: 1 1 calc(33.333% - 4px); }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; min-width: 0; }
.code-row .btn.sm { white-space: nowrap; }
.link { color: var(--brand); cursor: pointer; font-size: 13px; }
.link-button { appearance: none; border: 0; padding: 0; color: var(--brand); background: transparent; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.devcode-box { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--blue-bg); font-size: 12px; color: var(--ink-2); }
.devcode-box b { color: var(--brand); font-size: 16px; letter-spacing: 2px; }

/* ───── 智能体商城 ───── */
.cat-bar { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.cat-bar::-webkit-scrollbar { display: none; }
.cat-bar .cat { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--gray-bg); color: var(--ink-2); font-size: 13px; cursor: pointer; white-space: nowrap; }
.cat-bar .cat.on { background: var(--brand-grad); color: #fff; font-weight: 600; }
.mall-card .mc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mall-card .mc-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.mall-card .mc-desc { font-size: 14px; color: var(--ink-2); line-height: 1.6; margin-bottom: 10px; }
.mall-card .mc-meta { font-size: 12px; color: var(--ink-3); margin-bottom: 10px; }
.mall-card .mc-price { font-size: 18px; font-weight: 800; color: var(--brand); }
.mall-card .mc-price small { font-size: 11px; color: var(--ink-3); font-weight: 400; }
.md-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.md-head b { font-size: 16px; }
.md-head .mc-price { font-size: 20px; font-weight: 800; color: var(--brand); white-space: nowrap; }
.md-intro { font-size: 14px; color: var(--ink-2); line-height: 1.8; margin-bottom: 12px; }
.md-points { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.md-points .pt { font-size: 14px; color: var(--ink-2); line-height: 1.6; padding-left: 22px; position: relative; }
.md-points .pt::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 700; }
.md-buy { width: 100%; margin-top: 12px; padding: 13px; font-size: 15px; font-weight: 700; letter-spacing: 1px; }
.mall-card .btn-row { margin-top: 2px; }

/* ───── 首页轮播 / 快捷服务 / 数据公告 ───── */
.marketing-swiper { position: relative; overflow: hidden; border-radius: 18px; margin-bottom: 14px; box-shadow: 0 10px 24px rgba(28,42,99,.13); }
.marketing-track { display: flex; width: 100%; transition: transform .45s ease; }
.marketing-slide { appearance: none; border: 0; flex: 0 0 100%; min-height: 142px; padding: 20px 20px 27px; color: #fff; text-align: left; display: flex; flex-direction: column; align-items: flex-start; cursor: pointer; font-family: inherit; }
.marketing-slide::after { content: ''; position: absolute; width: 130px; height: 130px; right: -32px; top: -38px; border: 28px solid rgba(255,255,255,.11); border-radius: 50%; pointer-events: none; }
.slide-product { background: linear-gradient(135deg,#2657d8,#6b8dff); }
.slide-channel { background: linear-gradient(135deg,#087967,#22ad8c); }
.slide-alliance { background: linear-gradient(135deg,#7b3ec5,#cf65a3); }
.marketing-slide .banner-kicker { display: inline-flex; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.18); font-size: 10px; letter-spacing: .6px; }
.marketing-slide b { margin-top: 8px; font-size: 20px; line-height: 1.25; }
.marketing-slide small { margin-top: 6px; max-width: 87%; color: rgba(255,255,255,.85); font-size: 11.5px; line-height: 1.55; }
.marketing-slide em { margin-top: auto; color: #fff; font-size: 11px; font-style: normal; font-weight: 700; }
.marketing-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.marketing-dots i { width: 6px; height: 6px; border-radius: 4px; background: rgba(255,255,255,.48); transition: width .25s,background .25s; }
.marketing-dots i.on { width: 18px; background: #fff; }
.home-module { margin-bottom: 14px; }
.home-module-title { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 10px; font-size: 15px; font-weight: 800; }
.home-module-title span { font-size: 10px; color: var(--ink-3); font-weight: 500; }
.quick-service-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.quick-service { appearance: none; border: 0; border-radius: 14px; padding: 11px 4px 10px; min-width: 0; background: #fff; color: var(--ink); box-shadow: var(--shadow); display: flex; align-items: center; flex-direction: column; cursor: pointer; font-family: inherit; }
.quick-service .quick-ico { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 6px; border-radius: 13px; background: var(--blue-bg); font-size: 19px; }
.quick-service b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; }
.quick-service small { max-width: 100%; min-height: 15px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-3); font-size: 8.5px; }
.data-announcement-card { margin-bottom: 14px; padding: 15px; border-radius: 17px; background: linear-gradient(135deg,#fff,#f2f6ff); border: 1px solid #e8edfb; box-shadow: var(--shadow); }
.announcement-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
.announcement-grid div { min-width: 0; padding: 8px 2px; text-align: center; border-right: 1px solid var(--line); }
.announcement-grid div:last-child { border-right: 0; }
.announcement-grid b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--brand-deep); font-size: 16px; }
.announcement-grid small { color: var(--ink-3); font-size: 9px; }
.announcement-notice { margin-top: 10px; padding-top: 9px; border-top: 1px dashed #dfe6f7; color: var(--ink-2); font-size: 11px; line-height: 1.55; }
.banner-detail-grid { display: grid; gap: 8px; }
.banner-detail-grid div { padding: 10px 12px; border-radius: 10px; background: var(--gray-bg); }
.banner-detail-grid b { display: inline-block; width: 45px; color: var(--brand); }
.banner-detail-grid span { color: var(--ink-2); font-size: 13px; line-height: 1.6; }

/* ───── v1.18 客户旅程：首页需求、产品说明、我的服务 ───── */
.journey-hero { margin-bottom: 14px; padding: 20px; border-radius: 20px; color: #fff; background: linear-gradient(135deg,#173b80,#315f9b 58%,#2b5cf6); box-shadow: 0 12px 28px rgba(23,59,128,.18); }
.journey-hero .eyebrow { font-size: 11px; opacity: .78; letter-spacing: .8px; }
.journey-hero h1 { margin-top: 6px; font-size: 22px; line-height: 1.35; }
.journey-hero p { margin-top: 8px; color: rgba(255,255,255,.86); font-size: 13px; line-height: 1.7; }
.journey-hero .hero-actions { display: flex; gap: 8px; margin-top: 14px; }
.journey-hero .hero-actions button { appearance: none; min-height: 42px; padding: 9px 14px; border: 1px solid rgba(255,255,255,.48); border-radius: 12px; color: #fff; background: rgba(255,255,255,.13); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.journey-hero .hero-actions button.primary { color: #173b80; background: #fff; border-color: #fff; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin: 3px 2px 10px; }
.section-heading > div { display: flex; flex-direction: column; }
.section-heading b { font-size: 17px; line-height: 1.35; }
.section-heading small { margin-top: 2px; color: var(--ink-3); font-size: 11px; font-weight: 400; }
.section-heading .section-action { appearance: none; border: 0; background: transparent; color: var(--brand); font-size: 12px; cursor: pointer; }
.need-section { margin-bottom: 15px; }
.need-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.need-card { appearance: none; border: 1px solid #e6ebf6; border-radius: 16px; min-width: 0; min-height: 128px; padding: 14px 12px; background: #fff; color: var(--ink); box-shadow: var(--shadow); text-align: left; display: grid; grid-template-columns: 38px minmax(0,1fr) 10px; align-items: start; gap: 8px; font-family: inherit; cursor: pointer; }
.need-card:active { transform: scale(.985); }
.need-card .need-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-bg); font-size: 20px; }
.need-card b { display: block; font-size: 14px; line-height: 1.35; }
.need-card small { display: block; margin-top: 4px; color: var(--brand-deep); font-size: 11px; line-height: 1.4; }
.need-card em { display: block; margin-top: 5px; color: var(--ink-3); font-size: 10px; line-height: 1.45; font-style: normal; }
.need-card > i { align-self: center; color: var(--ink-3); font-size: 20px; font-style: normal; }
.need-b .need-icon { background: var(--green-bg); }
.need-c .need-icon { background: var(--orange-bg); }
.need-d .need-icon { background: var(--red-bg); }
.platform-summary { margin-bottom: 14px; padding: 13px 14px; border: 1px solid #e1e8f5; border-radius: 14px; background: #f8faff; color: var(--ink-2); font-size: 12px; line-height: 1.7; }
.platform-summary b { color: var(--ink); }
.cooperation-entry { margin-bottom: 15px; padding: 15px; border-radius: 16px; color: #fff; background: linear-gradient(135deg,#596579,#7a86a0); }
.cooperation-entry h3 { font-size: 16px; }
.cooperation-entry p { margin: 5px 0 12px; color: rgba(255,255,255,.82); font-size: 11px; line-height: 1.6; }
.cooperation-entry button { appearance: none; min-height: 40px; padding: 8px 13px; border: 1px solid rgba(255,255,255,.55); border-radius: 10px; color: #fff; background: rgba(255,255,255,.12); font: inherit; font-size: 12px; cursor: pointer; }
.product-section { margin-bottom: 16px; }
.product-card { margin-bottom: 10px; padding: 15px; border: 1px solid #e8ecf4; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.product-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.product-code { display: inline-grid; min-width: 34px; height: 27px; padding: 0 8px; place-items: center; border-radius: 9px; background: var(--blue-bg); color: var(--brand); font-size: 11px; font-weight: 800; }
.product-card h3 { margin-top: 8px; font-size: 16px; line-height: 1.45; }
.product-card > p { margin-top: 5px; color: var(--ink-2); font-size: 13px; line-height: 1.65; }
.product-fit { margin-top: 8px; padding: 8px 10px; border-radius: 9px; background: var(--gray-bg); color: var(--ink-2); font-size: 11px; line-height: 1.6; }
.product-fit b { color: var(--ink); }
.product-price { text-align: right; }
.product-price b { display: block; color: var(--brand-deep); font-size: 16px; line-height: 1.35; }
.product-price small { display: block; margin-top: 2px; color: var(--ink-3); font-size: 9.5px; line-height: 1.35; }
.compare-card { margin-bottom: 14px; padding: 15px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.compare-table { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.compare-row { display: grid; grid-template-columns: .85fr 1fr 1fr; min-height: 42px; border-top: 1px solid var(--line); align-items: stretch; }
.compare-row:first-child { border-top: 0; }
.compare-row > * { display: flex; align-items: center; padding: 8px; border-left: 1px solid var(--line); font-size: 11px; font-style: normal; line-height: 1.4; }
.compare-row > *:first-child { border-left: 0; color: var(--ink-3); }
.compare-head { background: #f6f8fd; }
.compare-head > * { color: var(--ink) !important; font-weight: 800; }
.compare-card .hint { margin-top: 9px; }
.product-detail > .product-price { margin: 8px 0 14px; padding: 12px; border-radius: 12px; background: var(--blue-bg); text-align: left; }
.product-detail > .product-price b { font-size: 20px; }
.product-detail > .product-price small { margin-top: 4px; font-size: 11px; }
.payment-breakdown { margin-bottom: 13px; padding: 12px; border: 1px solid #f4d7b7; border-radius: 12px; background: #fffaf5; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.payment-breakdown div span,.payment-breakdown div b { display: block; }
.payment-breakdown div span { color: var(--ink-3); font-size: 9px; }
.payment-breakdown div b { margin-top: 3px; font-size: 13px; }
.payment-breakdown p { grid-column: 1/-1; padding-top: 8px; border-top: 1px dashed #efcfac; color: #8a5a27; font-size: 10.5px; line-height: 1.55; }
.detail-list { display: grid; gap: 9px; margin-bottom: 13px; }
.detail-list section { padding: 10px 12px; border-radius: 11px; background: var(--gray-bg); }
.detail-list h4 { margin-bottom: 3px; color: var(--ink); font-size: 12px; }
.detail-list p { color: var(--ink-2); font-size: 12px; line-height: 1.65; }
.consult-strip { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 11px 12px; border-radius: 11px; background: #f8faff; font-size: 11px; }
.consult-strip span { color: var(--ink-2); }
.consult-strip a { flex: 0 0 auto; color: var(--brand); font-weight: 700; }
.about-card > p { margin: 8px 0 13px; color: var(--ink-2); line-height: 1.75; }
.about-entry { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.about-entry .card-title { margin-bottom: 5px; }
.entry-arrow { color: var(--ink-3); font-size: 30px; font-weight: 300; line-height: 1; }
.about-page { padding-top: 0; padding-bottom: calc(28px + env(safe-area-inset-bottom,0px)); overflow-y: auto; }
.about-hero { margin-bottom: 14px; padding: 22px 18px; border-radius: 18px; color: #fff; background: var(--brand-grad); box-shadow: 0 10px 28px rgba(43,92,246,.2); }
.about-hero h1 { margin: 0 0 8px; font-size: 21px; }
.about-hero p { margin: 0; color: rgba(255,255,255,.88); font-size: 13px; line-height: 1.75; }
.social-account-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 14px; }
.social-account-card { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.social-account-head { min-height: 65px; }
.social-account-head h3 { margin: 6px 0 0; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.social-platform { display: inline-block; margin-right: 6px; color: var(--brand); font-size: 12px; font-weight: 700; }
.social-account-id { margin-top: 3px; color: var(--ink-3); font-size: 11px; overflow-wrap: anywhere; }
.social-qr { display: grid; place-items: center; width: 100%; aspect-ratio: 1; margin: 10px 0; overflow: hidden; border-radius: 13px; background: #f6f8fc; }
.social-qr img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.social-qr.pending { border: 1px dashed #cbd3e2; color: var(--ink-3); text-align: center; }
.social-qr.pending b,.social-qr.pending small { display: block; }
.social-qr.pending b { color: var(--ink-2); font-size: 13px; }
.social-qr.pending small { margin-top: 5px; padding: 0 8px; font-size: 10px; line-height: 1.45; }
.social-actions { display: grid; gap: 7px; }
.social-actions .btn { width: 100%; min-height: 34px; padding: 7px 8px; font-size: 11px; }
.social-actions .btn[disabled] { opacity: .55; cursor: not-allowed; }
.about-legal .btn { width: 100%; margin-top: 12px; }
.about-page a { color: var(--brand); }
.service-focus { margin-bottom: 14px; padding: 16px; border-radius: 17px; color: #fff; background: linear-gradient(135deg,#1e46c0,#4079f1); box-shadow: 0 10px 24px rgba(43,92,246,.18); }
.service-focus h2 { font-size: 19px; }
.service-focus p { margin-top: 5px; color: rgba(255,255,255,.84); font-size: 12px; line-height: 1.6; }
.service-focus .focus-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 13px; }
.service-focus .focus-stats div { padding: 8px 4px; border-radius: 10px; background: rgba(255,255,255,.12); text-align: center; }
.service-focus .focus-stats b,.service-focus .focus-stats small { display: block; }
.service-focus .focus-stats b { font-size: 19px; }
.service-focus .focus-stats small { color: rgba(255,255,255,.76); font-size: 9px; }
.next-action { margin: 9px 0; padding: 10px 12px; border-left: 3px solid var(--orange); border-radius: 9px; background: var(--orange-bg); color: #88501d; font-size: 12px; line-height: 1.6; }
.provider-line { margin-top: 9px; padding-top: 9px; border-top: 1px dashed var(--line); color: var(--ink-2); font-size: 11px; line-height: 1.65; }
.legacy-service { border-left: 4px solid #9aa3b8; }
.service-empty { padding: 28px 18px; border: 1px dashed #dbe1ed; border-radius: 16px; background: #fff; text-align: center; color: var(--ink-2); }
.service-empty .emoji { display: block; margin-bottom: 8px; font-size: 34px; }

@media (max-width:360px) {
  .need-grid { grid-template-columns: 1fr; }
  .need-card { min-height: 104px; }
  .payment-breakdown { grid-template-columns: 1fr; }
  .payment-breakdown p { grid-column: auto; }
  .social-account-grid { grid-template-columns: 1fr; }
}

/* ───── 登录 ───── */
.login-scroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: calc(78px + env(safe-area-inset-bottom,0px)); }
.login-hero { background: var(--brand-grad); color: #fff; padding: calc(var(--nav-h) + 22px) 24px 28px; border-radius: 0 0 28px 28px; }
.login-hero .logo { font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.login-hero .sub { font-size: 13px; opacity: .85; margin-top: 6px; }
.login-home-modules { margin: -14px 14px 0; position: relative; z-index: 2; }
.login-card { margin: 14px 16px 0; background: #fff; border-radius: 18px; box-shadow: 0 8px 30px rgba(30, 70, 192, .12); padding: 22px 18px; }
.demo-accounts { margin: 16px 16px 0; font-size: 12px; color: var(--ink-3); }
.demo-accounts .acc { display: flex; justify-content: space-between; padding: 8px 10px; background: #fff; border-radius: 10px; margin-bottom: 6px; cursor: pointer; box-shadow: var(--shadow); }
.demo-accounts .acc b { color: var(--ink-2); font-weight: 600; }
.login-public-tabbar { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 50; display: flex; padding-bottom: env(safe-area-inset-bottom,0px); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); backdrop-filter: blur(10px); }
.login-public-tabbar button { appearance: none; border: 0; flex: 1; padding: 8px 0 6px; color: var(--ink-3); background: transparent; display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: inherit; cursor: pointer; }
.login-public-tabbar button.on { color: var(--brand); font-weight: 700; }
.login-public-tabbar .ico { font-size: 20px; line-height: 1; }
.login-public-tabbar .lbl { font-size: 10.5px; }

@media (min-width:520px) {
  .login-public-tabbar { position: absolute; left: 0; right: 0; transform: none; width: 100%; max-width: none; }
  .login-hero { padding-top: 22px; padding-bottom: 28px; }
}

/* ───── 注册表单扩展 ───── */
.reg-section-title { font-size: 14px; font-weight: 700; color: var(--brand); margin: 16px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.upload-box { position: relative; border: 2px dashed var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; }
.upload-box input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-preview { padding: 20px 12px; text-align: center; color: var(--ink-3); font-size: 14px; min-height: 60px; display: flex; align-items: center; justify-content: center; }
.map-picker { border: 2px dashed var(--line); border-radius: 10px; min-height: 60px; background: var(--bg); }

/* ───── 底部导航（固定定位）───── */
/* tabbar 固定容器：#app 外部（#phone-shell 内），root.innerHTML 擦不到 */
#tab-slot {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 50;
}
.tabbar {
  width: 100%;
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); display: flex;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tabbar .tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; cursor: pointer; color: var(--ink-3); }
.tabbar .tab .ico { font-size: 20px; line-height: 1; }
.tabbar .tab .lbl { font-size: 10.5px; }
.tabbar .tab.on { color: var(--brand); font-weight: 700; }
.tabbar .tab .badge { position: absolute; margin: -2px 0 0 14px; background: var(--red); color: #fff; font-size: 9px; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* ───── 进度/月份条 ───── */
.month-track { display: flex; gap: 6px; margin: 10px 0 4px; flex-wrap: wrap; }
.month-chip {
  flex: 1; min-width: 52px; text-align: center; padding: 8px 2px; border-radius: 10px;
  background: var(--gray-bg); font-size: 11px; color: var(--ink-3); position: relative;
}
.month-chip .mno { font-size: 13px; font-weight: 700; display: block; color: var(--ink-2); }
.month-chip.done { background: var(--green-bg); color: var(--green); }
.month-chip.done .mno { color: var(--green); }
.month-chip.waiting { background: var(--orange-bg); color: var(--orange); }
.month-chip.waiting .mno { color: var(--orange); }
.month-chip.now { outline: 2px dashed var(--brand); outline-offset: -2px; }

/* ───── 星级 ───── */
.stars { color: var(--gold); font-size: 16px; letter-spacing: 2px; }
.stars .off { color: #e3e6ee; }
.star-picker { display: flex; gap: 8px; font-size: 30px; color: #e3e6ee; }
.star-picker span { cursor: pointer; transition: transform .1s; }
.star-picker span.on { color: var(--gold); }

/* ───── 时间线/流水 ───── */
.flow-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.flow-item:last-child { border-bottom: none; }
.flow-item .fi-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex-shrink: 0; }
.flow-item .fi-dot.unfreeze { background: var(--green); }
.flow-item .fi-dot.record { background: var(--brand); }
.flow-item .fi-dot.pay { background: var(--gold); }
.flow-item .fi-dot.cancel, .flow-item .fi-dot.clawback { background: var(--red); }
.flow-item .fi-dot.defer, .flow-item .fi-dot.advance { background: var(--ink-3); }
.flow-item .fi-main { flex: 1; min-width: 0; }
.flow-item .fi-amt { font-weight: 700; white-space: nowrap; }
.flow-item .fi-amt.plus { color: var(--green); }
.flow-item .fi-amt.minus { color: var(--red); }

/* ───── 其他 ───── */
.empty { text-align: center; padding: 40px 0; color: var(--ink-3); font-size: 14px; }
.empty .emoji { font-size: 34px; display: block; margin-bottom: 8px; }
.kv { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; border-bottom: 1px dashed var(--line); }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--ink-2); }
.kv .v { font-weight: 600; text-align: right; }
.hint { font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.section-gap { height: 8px; }
.toast {
  position: absolute; left: 50%; bottom: 110px; transform: translateX(-50%) translateY(20px);
  background: rgba(28, 35, 51, .92); color: #fff; padding: 10px 20px; border-radius: 12px;
  font-size: 13.5px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 99; max-width: 86%; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.modal-mask { position: fixed; inset: 0; background: rgba(15, 20, 35, .5); z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.modal {
  background: #fff; width: 100%; max-width: 480px; border-radius: 20px 20px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  max-height: 82vh; overflow-y: auto;
}
.modal .modal-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.notice { background: var(--blue-bg); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--brand-deep); margin-bottom: 12px; line-height: 1.7; }
.notice.warn { background: var(--orange-bg); color: var(--orange); }
.review-card { background: var(--gray-bg); border-radius: 10px; padding: 10px 12px; margin-top: 8px; font-size: 14px; }
.review-card .rc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.review-card .rc-text { color: var(--ink-2); }
/* 居中弹窗（独立支付页） */
.modal-mask.center { align-items: center; padding: 16px; }
.center-modal {
  border-radius: 18px; max-height: 88vh; display: flex; flex-direction: column;
  padding: 0; overflow: hidden; box-shadow: 0 12px 40px rgba(15,20,35,.25);
}
.center-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.center-modal-title { font-size: 16px; font-weight: 700; }
.center-modal-body { overflow-y: auto; padding: 18px; flex: 1; min-height: 0; }
.center-modal-foot {
  flex-shrink: 0; padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); background: #fff;
}
.center-modal-foot .btn { width: 100%; padding: 13px; font-size: 15px; font-weight: 700; letter-spacing: 1px; }
/* 支付二维码页 */
.qr-pay-wrap { text-align: center; }
.qr-pay-wrap .qr-amount { font-size: 28px; font-weight: 800; color: var(--ink-1); margin: 4px 0 18px; letter-spacing: 1px; }
.qr-pay-wrap .qr-amount::before { content: '¥'; font-size: 18px; font-weight: 600; margin-right: 2px; }
.qr-pay-wrap .qr-box { display: inline-block; padding: 14px; border-radius: 14px; background: linear-gradient(135deg,#eef4ff,#f7faff); box-shadow: inset 0 0 0 1px rgba(50,100,200,.08); }
.qr-pay-wrap .qr-box img { width: 240px; height: 240px; border-radius: 10px; display: block; }
.qr-pay-wrap .qr-order { font-size: 12px; color: var(--ink-3); margin-top: 16px; }
.qr-pay-tips { text-align: left; margin-top: 18px; }
.qr-pay-tips .tip {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px;
  background: var(--orange-bg); color: var(--orange); font-size: 12.5px; line-height: 1.7;
}
.qr-pay-tips .tip + .tip { margin-top: 8px; background: var(--blue-bg); color: var(--brand-deep); }
.qr-pay-tips .tip i { font-style: normal; font-size: 15px; flex-shrink: 0; line-height: 1.7; }
