@charset "UTF-8";
/* ==========================================================================
   u18ok.com H5 — 静态界面复刻 / base.css
   设计基准：375px 宽（与源站一致，源站 390px 实测字号 16.64px = 16 × 390/375）
   缩放规则：1rem = 100 设计像素（html font-size = min(100vw,420px)/3.75）
             → 12px 写成 .12rem，46px 写成 .46rem
   桌面预览：窗口 > 420px 时外壳锁定 420px 居中，内部等比放大到 420/375
   ========================================================================== */

:root {
  /* 主题令牌：源站 html.tenant-2979.light + .light 两层变量合并后的实测值 */
  --bg: #cce6dd;            /* --app-bg-color / --app-body-color */
  --card: #ffffff;          /* --app-second-color */
  --soft: #ebf2eb;          /* 首页快捷区 / tabbar 底色，源站写死 hex */
  --brand: #29b447;         /* --tenant-accent-color */
  --active: #22a047;        /* --app-active-color */
  --vice: #6a7897;          /* --app-vice-font-color */
  --assist: #8d9fc7;        /* --app-assist-color */
  --border: #e1eaf8;        /* --app-border-color */
  --ink: #000000;           /* --app-font-color */

  /* 渐变：源站变量拼接结果 */
  --grad90: linear-gradient(90deg, #22a047 0%, #34c158 100%);   /* --van-vice-button-primary-background-90 */
  --grad360: linear-gradient(360deg, #22a047 0%, #29b447 100%); /* --van-button-primary-background-360 */
  --grad-wallet: radial-gradient(102.98% 120.62% at 92.31% 0%, #17e841 0%, #14b17b 100%);
  /* --app-module-color：白底 + 左上角蓝色 20.8% 斜向高光 */
  --module: linear-gradient(353deg, rgba(51, 129, 255, 0.208) 6.42%, rgba(0, 0, 0, 0) 51.1%), #ffffff;

  --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, "Segoe UI", Arial, Roboto,
          "PingFang SC", miui, "Hiragino Sans GB", "Microsoft Yahei", sans-serif;

  /* 兼容别名：内联 sprite 里的图标用 var(--app-xxx, 默认值) 取色，保留原名可直接生效 */
  --app-brand-color: var(--brand);
  --app-active-color: var(--active);
  --app-assist-color: var(--assist);
  --app-vice-font-color: var(--vice);
  --app-border-color: var(--border);
  --app-second-color: var(--card);
  --app-bg-color: var(--bg);
  --app-font-color: var(--ink);
  --app-success-color: #3fac3f;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: .16rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; border: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }

/* 外壳：移动端铺满，桌面端锁定 420px 居中（内部尺寸按 420/375 放大） */
.app {
  position: relative;
  max-width: 420px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  overflow-x: hidden;
}

@media (min-width: 421px) {
  body { background: #b9dbcd; }
  .app { box-shadow: 0 0 40px rgba(0, 40, 25, .18); }
}

/* ---------- SVG 图标尺寸工具类（源站 use 引用内联 sprite，这里同样内联） ---------- */
.ic { display: block; flex: none; }
.ic--8  { width: .08rem;  height: .08rem; }
.ic--16 { width: .16rem;  height: .16rem; }
.ic--22 { width: .22rem;  height: .22rem; }
.ic--24 { width: .24rem;  height: .24rem; }
.ic--32 { width: .32rem;  height: .32rem; }
.ic--34 { width: .34rem;  height: .34rem; }

/* ---------- 通用胶囊按钮 ---------- */
.pill {
  display: flex;
  align-items: center;
  justify-content: center;
  height: .28rem;
  min-width: .58rem;
  padding: 0 .08rem;
  border-radius: 999px;
  font-size: .12rem;
  font-weight: 600;
  white-space: nowrap;
}
.pill--ghost { background: var(--card); color: var(--assist); }
.pill--primary { background: var(--grad90); color: #fff; }

/* ---------- 底部 Tabbar（三页共用） ---------- */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 10;
  display: flex;
  width: 100%;
  max-width: 420px;
  height: .6rem;
  transform: translateX(-50%);
  background: var(--soft);
}
.tabbar__item {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* 源站内容整体比居中位置低约 2px，这里补回 */
  padding-top: .04rem;
}
.tabbar__icon { width: .34rem; height: .34rem; object-fit: contain; }
.tabbar__label {
  margin-top: .02rem;
  font-size: .12rem;
  font-weight: 600;
  line-height: 1;
  color: var(--vice);
}
.tabbar__item.is-active .tabbar__label { color: var(--brand); font-weight: 700; }
/* 中间客服位：源站该列比其他列窄（实测 61.6px vs 82px），65px 图标向上溢出 */
.tabbar__item--bulge { flex: 0 0 .592rem; }
.tabbar__bulge { width: .65rem; height: .65rem; margin-top: -.1rem; object-fit: contain; }
