    :root {
      --brand: #2f6bff;
      --brand-2: #2aa7ff;
      --bg: #f5f7fb;
      --text: #0f172a;
      --muted: #6b7280;
      --border: #e5e7eb;
      --ok: #16a34a;
      --warn: #f59e0b;
      --radius: 16px;
    }

    html,
    body {
      min-height: 100%;
    }

    body {
      margin: 0;
      font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Segoe UI", Roboto, Helvetica, Arial, "Microsoft YaHei", "Heiti SC", sans-serif;
      color: var(--text);
      background: var(--bg);
      -webkit-tap-highlight-color: transparent;
      /* 为 body 添加 padding-bottom 为底部导航留出空间 */
      padding-bottom: 60px;
      box-sizing: border-box;
    }
/* 微信专用覆盖层（非微信环境显示） */
    .wx-only {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, .65);
      color: #fff;
      display: none;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 24px;
      z-index: 9999
    }

    .wx-only .box {
      background: #111827;
      padding: 20px;
      border-radius: 14px;
      max-width: 420px
    }

    .wx-only h3 {
      margin: 0 0 8px;
      font-size: 18px
    }

    .wx-only p {
      margin: 0;
      font-size: 14px;
      color: #cbd5e1
    }
    .page {
      max-width: 480px;
      margin: 0 auto;
      min-height: 100%;
      display: flex;
      flex-direction: column;
      background: linear-gradient(to bottom, #3f8af5, #7aa0f3);
      /* 移除原有的底部间距 */
      margin-bottom: 0;
    }

    /* 顶部图片展示 */
    .hero {
      position: relative;
      background: #3f8af5;
      padding: 0;
      overflow: hidden;
      display: flex;
      justify-content: center;
    }

    .hero img {
      width: 100%;
      max-width: 480px;
      height: 60%;
      display: block;
    }

    /* 步骤条 */
    .steps {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 8px;
      margin-top: 14px
    }

    .step {
      display: flex;
      align-items: center;
      gap: 8px;
      color: #e5ecff
    }

    .dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #a5b4fc
    }

    .step.active {
      color: #fff
    }

    .step.active .dot {
      background: #fff
    }

    /* 支付金额显示 */
    .payment-amount {
      background: #e6f3ff;
      color: #0066cc;
      padding: 12px 16px;
      border-radius: 12px;
      text-align: center;
      font-size: 18px;
      font-weight: 700;
      margin: 8px 0;
      display: none;
      border: 1px solid #b3d9ff;
    }

    /* 按钮组 */
    .button-group {
      display: flex;
      justify-content: center;
      gap: 12px;
      margin-top: 16px;
    }

    .secondary-btn {
      width: 100%;
      border: 2px solid var(--brand);
      background: #fff;
      color: var(--brand);
      padding: 14px;
      border-radius: 14px;
      font-size: 17px;
      font-weight: 700;
      letter-spacing: .5px;
    }

    .secondary-btn:active {
      background: #f0f4ff;
    }

    /* 确认信息显示 */
    .confirm-info {
      background: #f8fafc;
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 16px;
      margin: 16px 0;
      display: none;
    }

    .info-item {
      display: flex;
      justify-content: space-between;
      margin-bottom: 8px;
      font-size: 14px;
    }

    .info-label {
      color: #64748b;
    }

    .info-value {
      color: #0f172a;
      font-weight: 500;
    }

    /* 卡片 */
    .card {
      background: #fff;
      box-shadow: 0 8px 24px rgba(17, 24, 39, .06);
      margin: -16px 16px 12px;
      padding: 16px 14px;
      border: 1px solid var(--border)
    }

    .type-select .type-options {
      display: flex;
      gap: 10px;
      justify-content: space-between;
      width: 100%;
    }

    .type-select input {
      display: none
    }

    .type-select label {
      flex: 1;
      padding: 8px 14px;
      border-radius: 8px;
      font-size: 13px;
      color: #334155;
      cursor: pointer;
      white-space: nowrap;
      text-align: center;
      border: 1px solid var(--border);
      background: #f8fafc;
    }

    .type-select input:checked+label {
      background: var(--brand);
      color: #fff;
      border-color: var(--brand)
    }

    .subtab {
      display: flex;
      gap: 12px;
      margin: 10px 0 8px
    }

    .subtab input {
      display: none
    }

    .subtab label {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 8px 10px;
      border: 1px solid var(--border);
      border-radius: 10px;
      font-size: 13px;
      color: #374151;
      cursor: pointer;
      background: #fff
    }

    .subtab input:checked+label {
      border-color: var(--brand);
      color: var(--brand)
    }

    /* 表单 */
    .form {
      display: grid;
      gap: 12px
    }

    .field {
      display: grid;
      gap: 6px
    }

    .field label {
      font-size: 13px;
      color: #374151;
      font-weight: bold
    }

    .input {
      display: flex;
      align-items: center;
      gap: 8px;
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 12px 12px;
      background: #fff
    }

    .input input {
      border: none;
      outline: none;
      flex: 1;
      font-size: 15px
    }

    /* 金额提示样式 */
    .input {
      position: relative;
    }

    .amount-hint {
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 12px;
      color: #64748b;
      background: #f8fafc;
      padding: 2px 6px;
      border-radius: 4px;
      border: 1px solid #e5e7eb;
    }

    .primary-btn {
      width: 100%;
      border: none;
      display: block;
      background: linear-gradient(90deg, var(--brand), var(--brand-2));
      color: #fff;
      padding: 14px;
      border-radius: 14px;
      font-size: 17px;
      font-weight: 700;
      letter-spacing: .5px
    }

    .primary-btn:active {
      transform: translateY(1px)
    }

    .primary-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed
    }

    /* 确认支付按钮 - 微信绿色 */
    .confirm-pay-btn {
      width: 100%;
      border: none;
      display: block;
      background: #07c160;
      color: #fff;
      padding: 14px;
      border-radius: 14px;
      font-size: 17px;
      font-weight: 700;
      letter-spacing: .5px;
    }

    .confirm-pay-btn:active {
      background: #06ae56;
      transform: translateY(1px);
    }

    /* 底部图片展示 */
    .reasons {
      margin: 0;
      background: #3f8af5;
      display: flex;
      justify-content: center;
    }

    .reasons img {
      width: 100%;
      max-width: 480px;
      height: auto;
      display: block;
    }

    /* 底部导航 - 修改为独立于页面容器 */
    .bottom-nav {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      background: white;
      border-top: 1px solid #eee;
      display: flex;
      justify-content: space-around;
      padding: 2px 0;
      z-index: 1000;
      height: 60px;
      box-sizing: border-box;
      /* 添加安全区域支持 */
      padding-bottom: env(safe-area-inset-bottom);
      transition: transform .2s ease;
    }

    body.kb-open .bottom-nav {
      transform: translateY(100%);
    }

    body.kb-open {
      padding-bottom: 0 !important;
    }

    .nav-item {
      flex: 1;
      /* 平均分配宽度 */
      display: flex;
      flex-direction: column;
      /* 图标在上，文字在下 */
      align-items: center;
      /* 水平居中 */
      justify-content: center;
      /* 垂直居中 */
      padding: 6px 0;
      color: #666;
    }

    .nav-item.active {
      opacity: 1;
      color: #318d4a;
    }

    .nav-icon {
      font-size: 20px;
      margin-bottom: 4px;
    }

    .nav-label {
      font-size: 12px;
    }

    

    @media (min-width: 768px) {

      /* 在大屏上仍保持移动布局且居中 */
      .page {
        background: linear-gradient(180deg, #e9efff, #f7f9ff 60%)
      }

      /* 大屏时居中显示底部导航 */
      .bottom-nav {
        left: 50%;
        transform: translateX(-50%);
        max-width: 480px;
      }
    }