/* ==========================================================================
   巨小萌信任力训练法 · 网页版全局样式
   ⛔ 本文件是小程序 app.wxss + components/navbar 的逐行翻译（rpx÷2=px），
      不做任何自行排版。小程序改了 app.wxss，必须同步翻译到这里——
      「一个内核两个壳」：版式唯一事实源 = 小程序 wxml/wxss。
   ⛔ 红线：零 emoji、不用纯黑纯白作底。
   ========================================================================== */

/* ---------- 设计令牌（= app.wxss page{}） ---------- */
:root {
  --bg1: #FDF6EA;
  --bg2: #FAF8F1;
  --bg3: #F3E7D6;
  --paper: #FFFCF7;
  --paper2: #FFF8EF;
  --border: #F0E7DB;
  --border-strong: #E6DAC8;
  --ink: #4A4036;
  --ink2: #7A6F63;
  --ink-soft: #9E8E7A;
  --brand: #FF6B35;
  --brand-d: #E2541F;
  --brand-soft: #FFEFE8;
  --teal: #5E9A93;
  --gold: #E0A23C;
  --tab-off: #A99781;
  --sage-lite: #E6EFE2;
  --sage-ink: #4A6B41;
  --sky-lite: #E9F0EF;
  --sky-ink: #3D6E7C;
  --butter-lite: #FAF0DA;
  --butter-ink: #8A6A28;
  --clay: #C15B3F;
  --coral-lite: #F9E7DC;
  --coral-deep: #E8C3AC;
  --shadow-sm: 0 6px 16px rgba(139, 108, 76, .10);
  --shadow: 0 12px 34px rgba(139, 108, 76, .13);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: #FAF8F1;
  color: #4A4036;
  font-family: -apple-system, 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
  font-size: 13.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* 手机框宽（对齐小程序 375pt 设计宽）；PC 上居中呈现同一版式 */
.wrap {
  max-width: 375px;
  margin: 0 auto;
  min-height: 100vh;
}

button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
input { font-family: inherit; border: none; outline: none; }
img { display: block; }

/* ---------- 文字层级（= app.wxss） ---------- */
.t-h1 { font-size: 22px; font-weight: 900; color: var(--ink); line-height: 1.35; letter-spacing: .01em; }
.t-h2 { font-size: 18px; font-weight: 900; color: var(--ink); line-height: 1.4; }
.t-h3 { font-size: 16px; font-weight: 900; color: var(--ink); line-height: 1.4; }
.t-body { font-size: 13.5px; color: var(--ink2); line-height: 1.72; }
.t-sub { font-size: 12px; color: var(--ink-soft); line-height: 1.6; }
.t-tiny { font-size: 11px; color: var(--ink-soft); line-height: 1.6; }
.eyebrow { font-size: 11px; font-weight: 900; letter-spacing: .2em; color: var(--brand); }

/* ---------- 卡片（= app.wxss） ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  padding: 16px;
}
.card-lite {
  background: var(--paper2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
}

/* ---------- 分区标题（= app.wxss .sec） ---------- */
.sec { display: flex; align-items: center; margin: 20px 2px 0; }
.sec .sec-ic { width: 20px; height: 20px; flex: none; margin-right: 7px; }
.sec .sec-t { font-size: 16px; font-weight: 900; color: var(--ink); flex: 1; min-width: 0; }
.sec .sec-n { font-size: 11.5px; color: var(--ink-soft); flex: none; margin-left: 6px; }

/* ---------- 按钮（= app.wxss） ---------- */
.go {
  display: flex; align-items: center; justify-content: center; flex: none;
  background: var(--brand); border-radius: 999px; padding: 8px 11px;
  box-shadow: 0 4px 13px rgba(255, 107, 53, .32);
}
.go .go-t { font-size: 12px; font-weight: 900; color: #FFFFFF; line-height: 1; white-space: nowrap; }
.go .go-a { width: 12px; height: 12px; flex: none; margin-left: 3px; }

.btn-main {
  display: flex; align-items: center; justify-content: center;
  background: var(--brand); border-radius: 999px; padding: 14px 0;
  box-shadow: 0 6px 16px rgba(255, 107, 53, .30);
  width: 100%;
}
.btn-main .btn-t { font-size: 16px; font-weight: 900; color: #FFFFFF; letter-spacing: .02em; }

.btn-ghost {
  display: flex; align-items: center; justify-content: center;
  background: var(--paper); border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 13px 0; width: 100%;
}
.btn-ghost .btn-t { font-size: 15px; font-weight: 900; color: var(--ink); }

/* ---------- 入口卡（= app.wxss .ent） ---------- */
.ent {
  display: flex; align-items: center;
  background: var(--paper); border: 1px solid var(--border);
  border-radius: 20px; padding: 11px; margin-top: 12px;
  box-shadow: var(--shadow-sm); cursor: pointer;
}
.ent:active { transform: translateY(1px); }
.ent .ent-th { width: 58px; height: 58px; border-radius: 50%; overflow: hidden; flex: none; margin-right: 11px; background: var(--paper2); }
.ent .ent-th img { width: 100%; height: 100%; }
.ent .ent-tx { flex: 1; min-width: 0; margin-right: 8px; }
.ent .ent-b { font-size: 15px; font-weight: 900; color: var(--ink); line-height: 1.35; display: block; }
.ent .ent-s { font-size: 12.5px; color: var(--ink-soft); line-height: 1.35; margin-top: 2px; display: block; }

/* ---------- 底部承诺行（= app.wxss .promise） ---------- */
.promise { font-size: 11.5px; color: var(--ink-soft); text-align: center; letter-spacing: .04em; margin-top: 18px; }

/* ---------- 列表行（= app.wxss .li） ---------- */
.li { display: flex; align-items: center; padding: 14px 0; }
.li-line { border-top: 1px solid #F6EFE5; }
.li .li-ic { width: 22px; height: 22px; flex: none; margin-right: 10px; }
.li .li-tx { flex: 1; min-width: 0; }
.li .li-t { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.45; }
.li .li-s { display: block; font-size: 11.5px; color: var(--ink-soft); margin-top: 2px; }
.li .li-a { width: 14px; height: 14px; flex: none; margin-left: 6px; }

/* ---------- 标签 / 徽章（= app.wxss .chip） ---------- */
.chip { display: inline-flex; align-items: center; background: var(--brand-soft); border-radius: 999px; padding: 3px 9px; }
.chip .chip-t { font-size: 11px; font-weight: 900; color: var(--brand-d); line-height: 1.2; }
.chip-sage { background: var(--sage-lite); } .chip-sage .chip-t { color: var(--sage-ink); }
.chip-sky { background: var(--sky-lite); } .chip-sky .chip-t { color: var(--sky-ink); }
.chip-butter { background: var(--butter-lite); } .chip-butter .chip-t { color: var(--butter-ink); }

/* ---------- 工具（= app.wxss） ---------- */
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.mt20 { margin-top: 20px; } .mt24 { margin-top: 24px; }
.row { display: flex; align-items: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.flex1 { flex: 1; min-width: 0; }
.center { text-align: center; }

/* ============================================================
   常驻顶栏（= components/navbar 逐行翻译，back / brand 两模式）
   ============================================================ */
.nb-ph { width: 100%; }
.nb {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--paper);
  box-shadow: inset 0 -1px 0 var(--border);
}
.nb-bar { display: flex; align-items: center; height: 44px; padding-left: 18px; padding-right: 12px; }
.nb-logo { width: 40px; height: 40px; border-radius: 11px; flex: none; margin-right: 11px; box-shadow: 0 2px 8px rgba(139, 108, 76, .18); }
.nb-bk { width: 34px; height: 34px; flex: none; margin-right: 7px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.nb-bk:active { opacity: .6; }
.nb-bk-ic { width: 23px; height: 23px; }
.nb-tt { display: flex; flex-direction: column; justify-content: center; min-width: 0; flex: 1; }
.nb-t1 { font-size: 18px; font-weight: 900; color: var(--ink); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-t2 { font-size: 10.5px; color: var(--ink-soft); margin-top: 1px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .02em; }

/* ---------- 表单（= styles/form.wxss 逐行翻译，quiz 页与角色页共用） ---------- */
.hd-t { margin-top: 20px; font-size: 22px; font-weight: 900; color: var(--ink); line-height: 1.38; }
.hd-s { margin-top: 8px; font-size: 13px; color: var(--ink2); line-height: 1.65; }
.fd { padding: 14px 0; }
.fd-top { display: flex; align-items: center; }
.fd-l { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.fd-req { flex: none; font-size: 10.5px; font-weight: 900; color: var(--brand); margin-left: 6px; }
.fd-req-soft { color: var(--ink-soft); font-weight: 400; }
.fd-hint { margin-top: 4px; }
.fd-hint div { font-size: 11px; color: var(--ink-soft); line-height: 1.5; }
.fd-in {
  margin-top: 8px; width: 100%; height: 38px;
  background: var(--paper2); border: 1px solid var(--border); border-radius: 12px;
  padding: 0 12px; font-size: 14.5px; color: var(--ink);
}
.fd-in::placeholder { color: #BCAE9B; font-size: 13.5px; }
.fd-other { margin-top: 4px; }
.fd-other .fd-in { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; margin-top: 8px; }
.ch {
  background: var(--paper2); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 13px; margin: 0 7px 7px 0;
}
.ch div { font-size: 13px; color: var(--ink2); line-height: 1.3; }
.ch-on { background: var(--brand-soft); border-color: var(--brand); }
.ch-on div { color: var(--brand-d); font-weight: 900; }
.ch:active { opacity: .82; }
.field { margin-top: 12px; }

/* ---------- 角色页（= styles/role.wxss 逐行翻译） ---------- */
.rhero { position: relative; width: 100%; height: 200px; overflow: hidden; background: var(--bg3); }
.rhero-img { width: 100%; height: 100%; object-fit: cover; }
.rhero-scrim {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0) 40%,
    rgba(104, 58, 26, .28) 66%,
    rgba(70, 36, 14, .68) 100%);
}
.rhero-tx { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 20px 15px; }
.rhero-kw { display: block; font-size: 10.5px; letter-spacing: .2em; font-weight: 900; color: rgba(255, 255, 255, .86); }
.rhero-t {
  display: block; margin-top: 5px; font-size: 23px; font-weight: 900; letter-spacing: .02em;
  color: rgba(255, 255, 255, .97); line-height: 1.32; text-shadow: 0 1px 9px rgba(56, 26, 6, .34);
}
.rsub { display: block; margin-top: 16px; font-size: 14px; color: var(--ink2); line-height: 1.78; }
.rcta {
  display: flex; align-items: center; margin-top: 16px; padding: 14px;
  background: var(--paper2); border-color: #EFE2D6;
}
.rcta-tx { flex: 1; min-width: 0; margin-right: 8px; }
.rcta-t { display: block; font-size: 15px; font-weight: 900; color: var(--ink); line-height: 1.4; }
.rcta-s { display: block; font-size: 11.5px; color: var(--ink-soft); line-height: 1.4; margin-top: 3px; }
.rcta-a { width: 20px; height: 20px; flex: none; margin-left: 6px; opacity: .9; }

/* ---------- 轻提示（对齐 wx.showToast 黑色半透明胶囊） ---------- */
.toast {
  position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%);
  max-width: 76%; background: rgba(58, 50, 42, .88); color: #FFFFFF;
  font-size: 13px; line-height: 1.5; padding: 9px 18px; border-radius: 999px;
  z-index: 999; display: none; text-align: center;
}

/* ---------- 留资卡（网页版新增块，蚊批准的唯一自创区） ---------- */
.lead-card { margin-top: 18px; }
.lead-s { font-size: 12px; color: var(--ink-soft); line-height: 1.7; margin-top: 4px; }
.lead-ok { font-size: 13.5px; color: var(--sage-ink); line-height: 1.7; }
.fd-label { font-size: 12.5px; color: var(--ink); margin-bottom: 5px; }
.fd-input {
  width: 100%; box-sizing: border-box; height: 44px; padding: 0 14px;
  border: 2px solid var(--border); border-radius: 14px; outline: none;
  font-size: 14px; color: var(--ink); background: #FFFFFF;
}
.fd-input:focus { border-color: var(--brand); }
.fd-input::placeholder { color: #C9BBAA; }

/* ==========================================================================
   以下为网页自建块（无小程序对照源）：hub 首页 + 页脚注
   —— hub 是官网入口页，小程序没有对应页面；样式沿用设计令牌，不发明新视觉。
   ========================================================================== */
.wrap-wide { max-width: 480px; margin: 0 auto; }

.hub-hero { padding: 26px 0 18px; text-align: center; }
.hub-hero h1 { font-size: 24px; font-weight: 900; color: var(--ink); margin: 0; letter-spacing: .02em; }
.hub-hero p { font-size: 12.5px; color: var(--ink-soft); line-height: 1.7; margin: 8px 14px 0; }

.hub-cards { display: flex; flex-direction: column; gap: 14px; padding-bottom: 10px; }
.test-card {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  padding: 12px; cursor: pointer;
}
.test-card img { width: 96px; height: 96px; border-radius: 18px; object-fit: cover; flex: none; }
.tc-tag { display: inline-block; font-size: 10.5px; font-weight: 700; color: var(--brand); background: #FFE9DC; border-radius: 999px; padding: 2px 9px; }
.tc-t { font-size: 15.5px; font-weight: 900; color: var(--ink); margin-top: 6px; }
.tc-s { font-size: 11.5px; color: var(--ink-soft); line-height: 1.6; margin-top: 3px; }
.tc-go { font-size: 12.5px; font-weight: 700; color: var(--brand); margin-top: 7px; }

.footer-note { text-align: center; font-size: 11px; color: var(--ink-soft); padding: 18px 0 26px; line-height: 1.8; }
