/* ==========================================================================
   品源富豪圈 H5 · 全局样式
   —— 与小程序 app.wxss 同一套设计令牌，单位换算：1rpx = 0.01rem，
      根字号 = min(视口宽, 430px) / 7.5，因此 750rpx 恒等于一个屏宽。
      也就是说：手机上与原版逐像素对齐，桌面上收在 430px 卡片里居中。
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: calc(min(100vw, 430px) / 7.5);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #EFECE7;
  -webkit-font-smoothing: antialiased;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", sans-serif;
}

/* 桌面端把整页收成一张手机宽度的卡片，避免极宽视口下文字被拉散 */
#shell {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
  background: #FFF8F4;
  box-shadow: 0 0 60px rgba(22, 35, 58, .10);
}

.page {
  --c-deep: #16233A;
  --c-ink: #2A3140;
  --c-muted: #7C879C;
  --c-faint: #A9A196;
  --c-orange: #FF6B35;
  --c-orange-deep: #D9491A;
  --c-orange-soft: #FFF1EA;
  --c-pink: #E0559B;
  --c-pink-soft: #FDEBF3;
  --c-steel: #5B6B8C;
  --c-steel-soft: #EEF1F6;
  --c-bg: #FFF8F4;
  --c-white: #FFFFFF;
  --c-line: #EFE4DB;
  --c-line2: #E6DCD2;
  --s: 1;

  font-size: calc(.3rem * var(--s));
  line-height: 1.7;
  color: var(--c-ink);
  background: var(--c-bg);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.page.big { --s: 1.35; }

.page.hc {
  --c-bg: #FFFFFF;
  --c-ink: #000000;
  --c-deep: #000000;
  --c-muted: #333333;
  --c-faint: #4A4A4A;
  --c-line: #000000;
  --c-line2: #666666;
  --c-orange: #C2410C;
  --c-orange-deep: #8A2B08;
  --c-orange-soft: #FFEDE3;
  --c-steel: #33415C;
  --c-steel-soft: #E8ECF3;
}

/* ---------------------------------------------------------------- 顶栏 */
.topbar { padding: .2rem .32rem .12rem; flex: none; }

.rowbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: .16rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .12rem;
  font-size: calc(.26rem * var(--s));
  color: var(--c-muted);
  letter-spacing: .01rem;
}

.brand .dot {
  width: .14rem;
  height: .14rem;
  border-radius: 50%;
  background: var(--c-orange);
  flex: none;
}

.links { display: flex; align-items: center; gap: .08rem; }

.ghostlink {
  font-size: calc(.26rem * var(--s));
  color: var(--c-muted);
  padding: .08rem .1rem;
  line-height: 1.4;
  cursor: pointer;
  background: none;
  border: 0;
  font-family: inherit;
}

.ghostlink:hover { color: var(--c-orange-deep); }

/* ---------------------------------------------------------------- 内容区 */
.stage {
  flex: 1;
  padding: .24rem .32rem .4rem;
  display: flex;
  flex-direction: column;
}

.stack { display: flex; flex-direction: column; gap: .2rem; }

/* stage 里的内容容器：撑满剩余高度，好让底部的声明行沉到页面底部 */
#body { flex: 1; display: flex; flex-direction: column; }

.mt8 { margin-top: .12rem; }
.mt16 { margin-top: .24rem; }
.mt24 { margin-top: .4rem; }

/* ---------------------------------------------------------------- 按钮 */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 1rem;
  border-radius: .24rem;
  font-size: calc(.34rem * var(--s));
  font-weight: 700;
  letter-spacing: .01rem;
  padding: 0 .24rem;
  text-align: center;
  line-height: 1.4;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
}

.btn:active { transform: scale(.985); filter: brightness(.97); }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }

.btn-primary {
  background: var(--c-orange);
  color: #FFFFFF;
  box-shadow: 0 .1rem .28rem rgba(255, 107, 53, .26);
}

.page.hc .btn-primary { box-shadow: none; border: .03rem solid #000000; }

.btn-ghost {
  background: var(--c-white);
  color: var(--c-deep);
  border: .03rem solid var(--c-line2);
}

.btn-sub {
  background: transparent;
  border: .02rem dashed var(--c-line2);
  color: var(--c-muted);
  min-height: .76rem;
  font-size: calc(.26rem * var(--s));
  font-weight: 400;
  border-radius: .18rem;
}

.bsub {
  font-size: calc(.22rem * var(--s));
  font-weight: 400;
  opacity: .88;
  margin-left: .14rem;
  letter-spacing: 0;
}

/* ---------------------------------------------------------------- 首屏 */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: .4rem 0;
}

.globe {
  width: 2.36rem;
  height: 2.36rem;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #3C5478, #16233A);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .48rem;
}

.globe .ring {
  width: 1.08rem;
  height: 1.08rem;
  border-radius: 50%;
  border: .04rem dashed rgba(255, 107, 53, .6);
  animation: bsc-spin 18s linear infinite;
}

.hero .h3 {
  font-size: calc(.52rem * var(--s));
  color: var(--c-deep);
  line-height: 1.36;
  font-weight: 800;
}

.hero .h3 .ln { display: block; }

.hero .p {
  font-size: calc(.26rem * var(--s));
  color: var(--c-muted);
  line-height: 1.9;
  margin-top: .28rem;
  padding: 0 .12rem;
}

/* ---------------------------------------------------------------- 文字层级 */
.q {
  font-size: calc(.38rem * var(--s));
  color: var(--c-deep);
  font-weight: 700;
  line-height: 1.45;
}

.qsub {
  font-size: calc(.26rem * var(--s));
  color: var(--c-muted);
  margin-top: .12rem;
  line-height: 1.7;
}

.hint {
  font-size: calc(.22rem * var(--s));
  color: var(--c-faint);
  line-height: 1.8;
  text-align: center;
}

.disc {
  font-size: calc(.22rem * var(--s));
  color: var(--c-faint);
  text-align: center;
  line-height: 1.7;
  margin-top: auto;
  padding-top: .4rem;
  flex: none;
}

.disc .dline { display: block; }
.disc1 { padding-top: .24rem; }

.morebar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .04rem;
  padding: .16rem 0 .04rem;
}

.morebar .mlink {
  font-size: calc(.24rem * var(--s));
  color: var(--c-muted);
  padding: .08rem .1rem;
  cursor: pointer;
  background: none;
  border: 0;
  font-family: inherit;
}

.morebar .mlink:hover { color: var(--c-orange-deep); }

.morebar .msep {
  font-size: calc(.24rem * var(--s));
  color: var(--c-faint);
}

/* ---------------------------------------------------------------- 选项卡 */
.opt {
  background: var(--c-white);
  border: .03rem solid var(--c-line);
  border-radius: .26rem;
  padding: .26rem .28rem;
  font-size: calc(.3rem * var(--s));
  color: var(--c-ink);
  display: flex;
  align-items: center;
  gap: .18rem;
  min-height: 1rem;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  width: 100%;
}

.opt.on {
  border-color: var(--c-orange);
  background: var(--c-orange-soft);
  color: var(--c-orange-deep);
  font-weight: 700;
}

.opt .k {
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: var(--c-orange-soft);
  color: var(--c-orange-deep);
  font-size: calc(.22rem * var(--s));
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.opt.on .k { background: var(--c-orange); color: #FFFFFF; }

/* ---------------------------------------------------------------- 报数路径 */
.path {
  background: var(--c-white);
  border: .03rem solid var(--c-line);
  border-radius: .26rem;
  padding: .26rem;
  display: flex;
  gap: .22rem;
  align-items: flex-start;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-family: inherit;
}

.path .ico {
  width: .72rem;
  height: .72rem;
  border-radius: .2rem;
  background: var(--c-orange-soft);
  color: var(--c-orange-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(.28rem * var(--s));
  font-weight: 700;
  flex: none;
}

.path .bd { flex: 1; min-width: 0; }

.path .bd .t1 {
  font-size: calc(.3rem * var(--s));
  color: var(--c-deep);
  font-weight: 700;
  display: block;
}

.path .bd .t2 {
  font-size: calc(.24rem * var(--s));
  color: var(--c-muted);
  display: block;
  margin-top: .06rem;
  line-height: 1.6;
}

/* ---------------------------------------------------------------- 滑块 */
.slideval {
  font-size: calc(.52rem * var(--s));
  font-weight: 800;
  color: var(--c-orange-deep);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.slideexact {
  margin-top: .06rem;
  text-align: center;
  font-size: calc(.24rem * var(--s));
  color: var(--c-muted);
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

.rng {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: .56rem;
  background: transparent;
  margin: .32rem 0 .1rem;
  cursor: pointer;
}

.rng::-webkit-slider-runnable-track {
  height: .12rem;
  border-radius: 999px;
  background: var(--c-line2);
}

.rng::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: .56rem;
  height: .56rem;
  border-radius: 50%;
  background: var(--c-orange);
  margin-top: -.22rem;
  box-shadow: 0 .04rem .12rem rgba(0, 0, 0, .22);
}

.rng::-moz-range-track {
  height: .12rem;
  border-radius: 999px;
  background: var(--c-line2);
}

.rng::-moz-range-thumb {
  width: .56rem;
  height: .56rem;
  border: 0;
  border-radius: 50%;
  background: var(--c-orange);
  box-shadow: 0 .04rem .12rem rgba(0, 0, 0, .22);
}

.slideticks {
  display: flex;
  justify-content: space-between;
  font-size: calc(.22rem * var(--s));
  color: var(--c-faint);
}

.stepper { display: flex; gap: .2rem; margin-top: .2rem; }

.stepbtn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: .84rem;
  border-radius: .2rem;
  border: .02rem solid var(--c-line);
  background: var(--c-white);
  color: var(--c-deep);
  font-size: calc(.3rem * var(--s));
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  font-family: inherit;
}

.stepbtn:active { border-color: var(--c-orange); background: var(--c-orange-soft); }

/* ---------------------------------------------------------------- 结果页 */
.srcbar {
  display: flex;
  justify-content: space-between;
  gap: .16rem;
  font-size: calc(.22rem * var(--s));
  color: var(--c-muted);
  background: var(--c-white);
  border: .02rem solid var(--c-line);
  border-radius: 999px;
  padding: .1rem .24rem;
}

.rk-cap {
  font-size: calc(.22rem * var(--s));
  color: var(--c-orange-deep);
  letter-spacing: .06rem;
  margin-bottom: .12rem;
}

.rk-num {
  font-size: calc(.68rem * var(--s));
  font-weight: 800;
  color: var(--c-deep);
  letter-spacing: -.02rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  word-break: break-all;
  cursor: pointer;
}

.rk-sub {
  font-size: calc(.26rem * var(--s));
  color: var(--c-muted);
  margin-top: .12rem;
  line-height: 1.7;
}

.tier {
  background: linear-gradient(135deg, #FFF3E9, #FDE7D8);
  border: .03rem solid #F6CDB2;
  border-radius: .32rem;
  padding: .28rem;
  text-align: center;
}

.page.hc .tier { background: var(--c-orange-soft); border-color: #000000; }

.tier .name {
  font-size: calc(.38rem * var(--s));
  font-weight: 800;
  color: var(--c-orange-deep);
  line-height: 1.35;
}

.tier .exp {
  font-size: calc(.26rem * var(--s));
  color: #8A6A55;
  margin-top: .12rem;
  line-height: 1.65;
}

.quote {
  background: var(--c-white);
  border-left: .08rem solid var(--c-pink);
  border-radius: 0 .24rem .24rem 0;
  padding: .24rem .28rem;
  font-size: calc(.26rem * var(--s));
  color: var(--c-ink);
  line-height: 1.75;
}

.gapbox {
  background: var(--c-white);
  border: .02rem solid var(--c-line);
  border-radius: .24rem;
  padding: .26rem .3rem;
}

.gapbox .t1 {
  font-size: calc(.3rem * var(--s));
  color: var(--c-deep);
  font-weight: 700;
}

.gapbox .sb {
  font-size: calc(.27rem * var(--s));
  color: var(--c-muted);
  display: block;
  margin-top: .1rem;
  line-height: 1.72;
}

/* ---------------------------------------------------------------- 报告页 */
.rep-head {
  background: var(--c-deep);
  color: #FFFFFF;
  border-radius: .28rem .28rem 0 0;
  padding: .28rem;
}

.page.hc .rep-head { background: #000000; }

.rep-head .no {
  font-size: calc(.22rem * var(--s));
  color: #9FB0CC;
  letter-spacing: .01rem;
  line-height: 1.6;
}

.rep-head .ttl {
  font-size: calc(.32rem * var(--s));
  margin-top: .12rem;
  line-height: 1.5;
  font-weight: 700;
}

.rep-body {
  background: var(--c-white);
  border: .02rem solid var(--c-line);
  border-top: 0;
  border-radius: 0 0 .28rem .28rem;
  padding: .28rem;
  font-size: calc(.26rem * var(--s));
  line-height: 1.95;
  color: var(--c-ink);
}

.rep-body .h5 {
  font-size: calc(.26rem * var(--s));
  color: var(--c-orange-deep);
  margin: .28rem 0 .12rem;
  letter-spacing: .02rem;
  font-weight: 700;
}

.rep-body .h5.first { margin-top: 0; }

.factor { display: flex; gap: .2rem; margin-bottom: .24rem; }

.factor .w {
  flex: none;
  width: 1.08rem;
  text-align: right;
  font-weight: 700;
  color: var(--c-orange-deep);
  font-variant-numeric: tabular-nums;
}

.factor .w.m { color: var(--c-pink); }
.factor .fl { flex: 1; min-width: 0; }

.fbar {
  height: .1rem;
  border-radius: .06rem;
  background: var(--c-orange-soft);
  margin-top: .12rem;
  overflow: hidden;
}

.fbar .fi { display: block; height: 100%; background: var(--c-orange); }
.fbar.m .fi { background: var(--c-pink); }

.sum {
  background: var(--c-orange-soft);
  border: .02rem dashed #F3C6AC;
  border-radius: .2rem;
  padding: .2rem .24rem;
  font-size: calc(.22rem * var(--s));
  color: #9A4A20;
  line-height: 1.8;
}

/* ---------------------------------------------------------------- 分享卡 */
.cardwrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: .24rem 0;
}

.cardcv {
  width: 5.6rem;
  height: 8.4rem;
  border-radius: .32rem;
  box-shadow: 0 .2rem .6rem rgba(22, 35, 58, .22);
  max-width: 100%;
}

/* ---------------------------------------------------------------- 设置行 */
.setrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .24rem;
  background: var(--c-white);
  border: .02rem solid var(--c-line);
  border-radius: .24rem;
  padding: .24rem .28rem;
  margin-bottom: .2rem;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-family: inherit;
}

.setrow .nm {
  font-size: calc(.3rem * var(--s));
  color: var(--c-deep);
  font-weight: 700;
}

.setrow .ds {
  font-size: calc(.22rem * var(--s));
  color: var(--c-muted);
  line-height: 1.6;
  margin-top: .04rem;
  display: block;
}

.setrow .txt { flex: 1; min-width: 0; }

.setrow .arr {
  font-size: calc(.34rem * var(--s));
  color: var(--c-line2);
  flex: none;
  margin-left: .16rem;
}

/* ---------------------------------------------------------------- 法务页 */
.tabs { display: flex; gap: .16rem; margin-bottom: .28rem; }

.tab {
  flex: 1;
  text-align: center;
  padding: .2rem .12rem;
  border-radius: .2rem;
  border: .03rem solid var(--c-line);
  background: var(--c-white);
  color: var(--c-muted);
  font-size: calc(.28rem * var(--s));
  cursor: pointer;
  font-family: inherit;
}

.tab.on {
  border-color: var(--c-orange);
  background: var(--c-orange-soft);
  color: var(--c-orange-deep);
  font-weight: 700;
}

.docsec { margin-bottom: .28rem; }

.docsec .docH {
  font-size: calc(.3rem * var(--s));
  color: var(--c-deep);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: .1rem;
}

.docsec .docP {
  display: block;
  font-size: calc(.26rem * var(--s));
  color: var(--c-ink);
  line-height: 1.85;
  margin-bottom: .1rem;
}

/* ---------------------------------------------------------------- 加载 / 空态 */
.loadwrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: .6rem 0;
}

.spinner {
  width: .88rem;
  height: .88rem;
  border-radius: 50%;
  border: .08rem solid var(--c-orange-soft);
  border-top-color: var(--c-orange);
  margin-bottom: .4rem;
  animation: bsc-spin .9s linear infinite;
}

@keyframes bsc-spin { to { transform: rotate(360deg); } }

.netdiag {
  margin-top: .16rem;
  font-size: .22rem;
  line-height: 1.5;
  color: #9AA3B2;
  word-break: break-all;
  padding: 0 .4rem;
}

.fadein { animation: bsc-fi .32s ease both; }

@keyframes bsc-fi {
  from { opacity: 0; transform: translateY(.12rem); }
  to { opacity: 1; transform: none; }
}

.errbox {
  background: var(--c-white);
  border: .02rem solid var(--c-line);
  border-radius: .24rem;
  padding: .32rem .28rem;
  text-align: center;
  width: 100%;
}

.errbox .et {
  font-size: calc(.28rem * var(--s));
  color: var(--c-deep);
  font-weight: 700;
  margin-bottom: .1rem;
}

.errbox .ed {
  font-size: calc(.24rem * var(--s));
  color: var(--c-muted);
  line-height: 1.7;
  margin-bottom: .24rem;
}

.devbar {
  font-size: calc(.2rem * var(--s));
  color: #9A4A20;
  background: var(--c-orange-soft);
  border: .02rem dashed #F3C6AC;
  border-radius: .16rem;
  padding: .12rem .2rem;
  line-height: 1.6;
  margin-top: .24rem;
}

/* ---------------------------------------------------------------- 浮层 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  max-width: 80vw;
  background: rgba(22, 35, 58, .92);
  color: #FFFFFF;
  font-size: .26rem;
  line-height: 1.6;
  padding: .18rem .28rem;
  border-radius: .16rem;
  z-index: 90;
  animation: bsc-fi .2s ease both;
  pointer-events: none;
}

.mask {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 26, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: .6rem;
}

.dlg {
  background: #FFFFFF;
  border-radius: .24rem;
  width: 100%;
  max-width: 6rem;
  padding: .36rem .32rem .24rem;
  animation: bsc-fi .2s ease both;
}

.dlg .dt {
  font-size: .34rem;
  font-weight: 700;
  color: #16233A;
  text-align: center;
}

.dlg .dc {
  font-size: .26rem;
  color: #7C879C;
  line-height: 1.7;
  margin: .2rem 0 .32rem;
  text-align: center;
}

.dlg .drow { display: flex; gap: .2rem; }

.dlg .dbtn {
  flex: 1;
  min-height: .84rem;
  border-radius: .18rem;
  border: .02rem solid #E6DCD2;
  background: #FFFFFF;
  color: #2A3140;
  font-size: .3rem;
  font-family: inherit;
  cursor: pointer;
}

.dlg .dbtn.pri { background: #FF6B35; border-color: #FF6B35; color: #FFFFFF; font-weight: 700; }
.dlg .dbtn.danger { background: #D9491A; border-color: #D9491A; color: #FFFFFF; font-weight: 700; }

/* 全屏加载遮罩：与小程序 showLoading 等价 */
.blocker {
  position: fixed;
  inset: 0;
  background: rgba(255, 248, 244, .82);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 95;
}

.blocker .txt {
  margin-top: .24rem;
  font-size: .26rem;
  color: #7C879C;
}
