﻿    /* ========== 全局基础样式 ========== */
    * { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
      color: #333;
      min-height: 100vh;
      min-height: 100dvh;
      background: #f5f6f8;
      padding-left: env(safe-area-inset-left);
      padding-right: env(safe-area-inset-right);
    }

    body.modal-open {
      overflow: hidden;
    }

    a { color: inherit; }

    /* 仅屏幕阅读器可见（验证码等隐藏标签） */
    .visually-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      clip-path: inset(50%);
      white-space: nowrap;
      border: 0;
    }

    .realname-field {
      border: none;
      padding: 0;
      margin: 0;
      min-width: 0;
    }

    .realname-field legend {
      display: block;
      margin-bottom: 8px;
      font-size: 14px;
      font-weight: 600;
      color: #333;
      padding: 0;
    }

    .container {
      width: 100%;
      max-width: 1100px;
      margin: 0 auto;
      padding: 0 16px;
    }

    /* 页面切换：默认只显示第一页 */
    .page-view { display: none; width: 100%; }
    .page-view.active {
      display: flex;
      justify-content: center;
      width: 100%;
    }

    .apply-card,
    .wait-card {
      width: 100%;
    }

    /* ========== 顶部导航栏 ========== */
    .topbar {
      position: relative;
      z-index: 50;
      background: rgba(255, 255, 255, 0.95);
      -webkit-backdrop-filter: blur(8px);
      backdrop-filter: blur(8px);
      border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .topbar-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-height: 64px;
      gap: 16px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
    }

    .brand-logo {
      width: 36px;
      height: 36px;
      border-radius: 8px;
      object-fit: cover;
    }

    .brand-title {
      font-size: 18px;
      font-weight: 700;
      color: #1a1a1a;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .navpill {
      display: inline-block;
      padding: 8px 16px;
      border-radius: 999px;
      text-decoration: none;
      font-size: 14px;
      color: #666;
      transition: background 0.2s, color 0.2s;
    }

    .navpill:hover { background: #f0f0f0; color: #333; }
    .navpill.active { background: #fff0e6; color: #ff6a00; font-weight: 600; }
    .navpill:focus-visible {
      outline: 2px solid #ff6a00;
      outline-offset: 2px;
    }

    /* ========== 主页面背景层 ========== */
    .page {
      position: relative;
      padding: 40px 0 56px;
      overflow-x: hidden;
    }

    .page-container {
      position: relative;
    }

    .bg-layer {
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at 20% 20%, rgba(255, 106, 0, 0.12), transparent 40%),
        radial-gradient(circle at 80% 10%, rgba(255, 180, 0, 0.1), transparent 35%),
        linear-gradient(180deg, #fff7f0 0%, #f5f6f8 60%);
      z-index: 0;
    }

    /* ========== 到账通知（从左往右穿屏而过） ========== */
    .floating-notifications {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100vh;
      height: 100dvh;
      pointer-events: none;
      z-index: 20;
      overflow: hidden;
    }

    .notification-item {
      position: absolute;
      left: 0;
      background: linear-gradient(180deg, #ff8f2a, #ff6a00);
      color: #fff;
      padding: 8px 16px;
      border-radius: 999px;
      font-size: 13px;
      font-weight: 800;
      box-shadow: 0 10px 22px rgba(255, 106, 0, 0.18);
      opacity: 0;
      transform: translateX(-100%);
      white-space: nowrap;
      letter-spacing: 0.3px;
      line-height: 1.3;
      -webkit-font-smoothing: antialiased;
    }

    .notification-item.show {
      animation: float-across 18s linear infinite;
    }

    .notification-item:nth-child(1) { top: 12%; }
    .notification-item:nth-child(2) { top: 22%; }
    .notification-item:nth-child(3) { top: 32%; }
    .notification-item:nth-child(4) { top: 42%; }
    .notification-item:nth-child(5) { top: 52%; }
    .notification-item:nth-child(6) { top: 62%; }
    .notification-item:nth-child(7) { top: 72%; }
    .notification-item:nth-child(8) { top: 82%; }

    @keyframes float-across {
      0% { transform: translateX(-100%); opacity: 0; }
      10% { opacity: 1; }
      90% { opacity: 1; }
      100% { transform: translateX(100vw); opacity: 0; }
    }

    /* ========== 第一页：申请表单卡片 ========== */
    .apply-card {
      position: relative;
      width: 100%;
      max-width: 560px;
      background: #fff;
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
      border: 1px solid rgba(0, 0, 0, 0.04);
    }

    .apply-title {
      margin: 0;
      background: linear-gradient(135deg, #ff6a00, #ff8f2a);
      color: #fff;
      text-align: center;
      font-size: 20px;
      font-weight: 700;
      padding: 18px 16px;
      letter-spacing: 0.5px;
    }

    .apply-body { padding: 24px 20px 28px; }

    /* ========== 第二页：等待申请卡片 ========== */
    .wait-card {
      position: relative;
      width: 100%;
      max-width: 560px;
      background: #fff;
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
      border: 1px solid rgba(0, 0, 0, 0.04);
    }

    .wait-body {
      padding: 36px 24px 28px;
      text-align: center;
    }

    .wait-icon {
      display: flex;
      justify-content: center;
      margin-bottom: 16px;
      animation: pulse 2s ease-in-out infinite;
    }

    @keyframes pulse {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.85; transform: scale(0.98); }
    }

    .wait-title {
      margin: 0 0 24px;
      font-size: 20px;
      font-weight: 700;
      color: #1a1a1a;
    }

    .wait-code {
      display: flex;
      gap: 10px;
      margin-bottom: 18px;
    }

    .wait-code-form {
      margin: 0;
    }

    .wait-code-input {
      flex: 1;
      min-width: 0;
    }

    .wait-code-input.is-locked,
    .wait-code-input:disabled {
      background: #f5f5f5;
      color: #999;
      cursor: not-allowed;
    }

    .wait-code-input:not(:disabled):not(.is-locked) {
      background: #fff;
      color: #333;
    }

    .wait-code-btn {
      flex-shrink: 0;
      min-width: 132px;
      height: 48px;
      padding: 0 12px;
      border: 1px solid #ff6a00;
      border-radius: 12px;
      background: #fff7f0;
      color: #ff6a00;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.2s, opacity 0.2s;
    }

    .wait-code-btn:disabled {
      opacity: 0.65;
      cursor: not-allowed;
      background: #f5f5f5;
      border-color: #e5e7eb;
      color: #999;
    }

    .wait-code-btn-full {
      flex: 1;
      width: 100%;
      min-width: 0;
    }

    .wait-code-btn:not(:disabled):hover {
      background: #ffe8d6;
    }

    .wait-code-btn:focus-visible {
      outline: 2px solid #ff6a00;
      outline-offset: 2px;
    }

    .wait-sub {
      font-size: 14px;
      color: #888;
      line-height: 1.6;
      margin-bottom: 22px;
    }

    .wait-submit-btn {
      width: 100%;
      height: 46px;
      margin: -4px 0 14px;
      border: none;
      border-radius: 12px;
      background: linear-gradient(135deg, #ff6a00, #ff8f2a);
      color: #fff;
      font-size: 16px;
      font-weight: 700;
      cursor: pointer;
      transition: opacity 0.2s, transform 0.15s;
    }

    .wait-submit-btn:hover {
      transform: translateY(-1px);
      opacity: 0.95;
    }

    .wait-submit-btn:disabled {
      opacity: 0.68;
      cursor: not-allowed;
      transform: none;
    }

    .wait-submit-btn:focus-visible {
      outline: 2px solid #ff6a00;
      outline-offset: 2px;
    }

    .wait-notice {
      text-align: left;
      background: #fff9f3;
      border: 1px solid rgba(255, 106, 0, 0.15);
      border-radius: 14px;
      padding: 14px 16px;
      margin-bottom: 16px;
    }

    .wait-notice-head {
      display: flex;
      align-items: center;
      gap: 8px;
      font-weight: 700;
      color: #ff6a00;
      margin-bottom: 8px;
      font-size: 15px;
    }

    .wait-notice-body {
      font-size: 14px;
      color: #555;
      line-height: 1.6;
    }

    /* ========== 表单元素 ========== */
    .form-group { margin-bottom: 18px; }

    .form-label {
      display: block;
      margin-bottom: 8px;
      font-size: 14px;
      font-weight: 600;
      color: #333;
    }

    .form-label-icon .i-dot { color: #ff6a00; margin-right: 4px; }
    .form-label-icon .i-phone { margin-right: 4px; }

    .form-control {
      width: 100%;
      height: 48px;
      padding: 0 14px;
      border: 1px solid #e5e7eb;
      border-radius: 12px;
      font-size: 16px;
      outline: none;
      transition: border-color 0.2s, box-shadow 0.2s;
      background: #fff;
    }

    .form-control:focus {
      border-color: #ff6a00;
      box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.12);
    }

    .form-control.is-invalid {
      border-color: #ef4444;
      box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
    }

    .field-error {
      display: none;
      margin-top: 6px;
      font-size: 12px;
      color: #ef4444;
    }

    .field-error.show { display: block; }

    .field-error[hidden] { display: none !important; }

    .form-control::-webkit-credentials-auto-fill-button,
    .form-control::-webkit-contacts-auto-fill-button {
      visibility: hidden;
      display: none !important;
      pointer-events: none;
    }

    .amount-row {
      display: grid;
      grid-template-columns: 1fr;
      gap: 12px;
      align-items: end;
    }

    @media (min-width: 640px) {
      .amount-row { grid-template-columns: 1.2fr 1fr; }
    }

    .amount-pills {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .amount-pill {
      border: 1px solid #e5e7eb;
      background: #fafafa;
      border-radius: 12px;
      padding: 12px 8px;
      cursor: pointer;
      font-size: 16px;
      font-weight: 700;
      line-height: 1.35;
      color: #1a1a1a;
      transition: all 0.2s;
    }

    .amount-pill small {
      display: block;
      font-size: 12px;
      font-weight: 600;
      color: #666;
      margin-top: 4px;
    }

    .amount-pill:hover { border-color: #ffb380; }
    .amount-pill.active {
      border-color: #ff6a00;
      background: #fff7f0;
      color: #ff6a00;
      box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.12);
    }

    .amount-pill.active small {
      color: #e85f00;
    }

    .amount-pill:focus-visible {
      outline: 2px solid #ff6a00;
      outline-offset: 2px;
    }

    /* ========== 收款码上传框 ========== */
    .ks-upload-input {
      position: absolute;
      width: 1px;
      height: 1px;
      opacity: 0;
      pointer-events: none;
    }

    .ks-upload-center {
      display: flex;
      justify-content: center;
      margin-top: 4px;
    }

    .ks-upload-box {
      width: 140px;
      height: 140px;
      border: 2px dashed #d1d5db;
      border-radius: 16px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      background: #fafafa;
      transition: border-color 0.2s, background 0.2s;
    }

    .ks-upload-box:hover {
      border-color: #ff6a00;
      background: #fffaf5;
    }

    .ks-upload-plus {
      font-size: 36px;
      line-height: 1;
      color: #ff6a00;
      font-weight: 300;
    }

    .ks-upload-hint {
      margin-top: 6px;
      font-size: 13px;
      color: #888;
    }

    .ks-upload-preview {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: none;
    }

    .ks-upload-box.has-image .ks-upload-plus,
    .ks-upload-box.has-image .ks-upload-hint { display: none; }

    .ks-upload-box.has-image .ks-upload-preview { display: block; }

    .form-text {
      margin-top: 8px;
      font-size: 12px;
      color: #999;
      text-align: center;
    }

    /* ========== 实名单选（自定义圆点样式） ========== */
    .radio-group {
      display: flex;
      gap: 28px;
      align-items: center;
    }

    .form-check {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      cursor: pointer;
      font-size: 15px;
      color: #333;
      user-select: none;
    }

    .form-check-input {
      position: absolute;
      width: 1px;
      height: 1px;
      opacity: 0;
      margin: 0;
    }

    .radio-mark {
      width: 20px;
      height: 20px;
      border: 2px solid #d1d5db;
      border-radius: 50%;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #fff;
      transition: border-color 0.2s, box-shadow 0.2s;
    }

    .radio-mark::after {
      content: "";
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: #ff6a00;
      transform: scale(0);
      transition: transform 0.2s ease;
    }

    .form-check:hover .radio-mark {
      border-color: #ffb380;
    }

    .form-check-input:checked + .radio-mark {
      border-color: #ff6a00;
      box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.12);
    }

    .form-check-input:checked + .radio-mark::after {
      transform: scale(1);
    }

    .form-check-input:focus-visible + .radio-mark {
      box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.22);
    }

    .radio-text {
      line-height: 1;
    }

    /* ========== 提交按钮 ========== */
    .btn-apply {
      width: 100%;
      height: 52px;
      margin-top: 8px;
      border: none;
      border-radius: 14px;
      background: linear-gradient(135deg, #ff6a00, #ff8f2a);
      color: #fff;
      font-size: 18px;
      font-weight: 700;
      cursor: pointer;
      transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
      box-shadow: 0 8px 20px rgba(255, 106, 0, 0.28);
    }

    .btn-apply:hover {
      transform: translateY(-1px);
      box-shadow: 0 10px 24px rgba(255, 106, 0, 0.35);
    }

    .btn-apply:active { transform: translateY(0); opacity: 0.92; }

    .btn-apply:disabled {
      opacity: 0.72;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    .btn-apply:focus-visible {
      outline: 3px solid rgba(255, 106, 0, 0.45);
      outline-offset: 2px;
    }

    /* ========== 弹窗提示 ========== */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.32);
      backdrop-filter: blur(3px);
      -webkit-backdrop-filter: blur(3px);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 100;
      padding: 20px;
    }

    .modal-overlay.open { display: flex; }

    .modal-box {
      width: 100%;
      max-width: 320px;
      background: #fff;
      border-radius: 18px;
      overflow: hidden;
      box-shadow: 0 10px 36px rgba(0, 0, 0, 0.12);
      animation: popIn 0.22s ease;
    }

    @keyframes popIn {
      from { transform: scale(0.96) translateY(8px); opacity: 0; }
      to { transform: scale(1) translateY(0); opacity: 1; }
    }

    .modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 18px 18px 0;
    }

    .modal-title {
      margin: 0;
      font-size: 18px;
      font-weight: 700;
      color: #1a1a1a;
    }

    .btn-close {
      width: 30px;
      height: 30px;
      border: none;
      background: #f3f4f6;
      border-radius: 50%;
      cursor: pointer;
      font-size: 17px;
      line-height: 1;
      color: #888;
      flex-shrink: 0;
    }

    .btn-close:hover {
      background: #ebebeb;
      color: #555;
    }

    .btn-close:focus-visible {
      outline: 2px solid #ff6a00;
      outline-offset: 2px;
    }

    .modal-body {
      padding: 12px 18px 18px;
      font-size: 15px;
      line-height: 1.65;
      color: #333;
    }

    .modal-footer {
      padding: 0 18px 18px;
    }

    .modal-footer .btn-primary {
      width: 100%;
      height: 44px;
      border: none;
      border-radius: 12px;
      background: linear-gradient(135deg, #ff6a00, #ff8f2a);
      color: #fff;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      box-shadow: 0 6px 16px rgba(255, 106, 0, 0.22);
    }

    .modal-footer .btn-primary:hover {
      background: linear-gradient(135deg, #f06000, #ff8520);
    }

    .btn-primary {
      min-width: 96px;
      height: 40px;
      border: none;
      border-radius: 10px;
      background: #ff6a00;
      color: #fff;
      font-size: 15px;
      cursor: pointer;
    }

    .btn-primary:hover { background: #e85f00; }

    .btn-primary:focus-visible {
      outline: 2px solid #ff6a00;
      outline-offset: 2px;
    }

    /* 尊重系统「减少动画」设置 */
    @media (prefers-reduced-motion: reduce) {
      .notification-item.show,
      .wait-icon,
      .modal-box,
      .btn-apply,
      .amount-pill,
      .form-control,
      .wait-code-btn,
      .radio-mark::after {
        animation: none !important;
        transition: none !important;
      }
    }

    /* ========== 响应式：手机 / 平板 / 大屏 ========== */

    /* 小屏手机（≤480px） */
    @media (max-width: 480px) {
      .container { padding: 0 12px; }

      .topbar-inner {
        min-height: 52px;
        gap: 8px;
      }

      .brand-logo { width: 32px; height: 32px; }
      .brand-title { font-size: 16px; }

      .navpill {
        padding: 6px 12px;
        font-size: 13px;
      }

      .page {
        padding: 28px 0 calc(32px + env(safe-area-inset-bottom));
      }

      .notification-item {
        font-size: 11px;
        padding: 6px 12px;
      }

      .notification-item.show {
        animation-duration: 14s;
      }

      .apply-card,
      .wait-card {
        border-radius: 14px;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
      }

      .apply-title {
        font-size: 17px;
        padding: 16px 12px;
      }

      .apply-body { padding: 18px 14px 22px; }

      .form-control {
        height: 46px;
        font-size: 16px;
      }

      .amount-pill {
        font-size: 15px;
        padding: 11px 6px;
      }

      .btn-apply {
        height: 50px;
        font-size: 17px;
      }

      .wait-body { padding: 18px 14px 16px; }

      .wait-icon svg { width: 56px; height: 56px; }

      .wait-title {
        font-size: 16px;
        margin-bottom: 16px;
      }

      .wait-sub,
      .wait-notice-body { font-size: 12px; }

      .wait-code-btn {
        min-width: 108px;
        font-size: 12px;
        padding: 0 6px;
      }

      .modal-box { max-width: min(300px, calc(100vw - 32px)); }
    }

    /* 大屏手机 / 小平板（481px ~ 768px） */
    @media (min-width: 481px) and (max-width: 768px) {
      .container { padding: 0 16px; }

      .topbar-inner { min-height: 56px; }

      .brand-title { font-size: 17px; }

      .page { padding: 32px 0 40px; }

      .notification-item {
        font-size: 12px;
        padding: 6px 12px;
      }

      .notification-item.show {
        animation-duration: 14s;
      }

      .apply-body { padding: 22px 18px 26px; }

      .apply-title { font-size: 19px; }

      .wait-body { padding: 24px 20px 20px; }

      .wait-title { font-size: 18px; }

      .wait-code-btn {
        min-width: 120px;
        font-size: 13px;
      }
    }

    /* 平板（769px ~ 1024px） */
    @media (min-width: 769px) and (max-width: 1024px) {
      .container { padding: 0 24px; }

      .page { padding: 36px 0 48px; }

      .apply-card,
      .wait-card {
        max-width: 520px;
      }

      .apply-body { padding: 26px 28px 30px; }

      .wait-body { padding: 32px 28px 28px; }

      .amount-row {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
      }
    }

    /* 大屏电脑（≥1025px） */
    @media (min-width: 1025px) {
      .page { padding: 48px 0 64px; }

      .apply-card,
      .wait-card {
        max-width: 560px;
      }

      .topbar-inner { min-height: 68px; }

      .brand-title { font-size: 19px; }
    }

    /* 手机端验证码页等细节 */
    @media (max-width: 768px) {
      .wait-card { border-radius: 16px; }

      .wait-icon { margin-bottom: 12px; }

      .wait-title {
        line-height: 1.45;
        padding: 0 2px;
      }

      .wait-code {
        flex-direction: row;
        align-items: stretch;
        gap: 8px;
        margin-bottom: 14px;
      }

      .wait-code-input {
        flex: 1;
        min-width: 0;
        height: 48px;
        font-size: 16px;
      }

      .wait-code-btn {
        width: auto;
        flex-shrink: 0;
        height: 48px;
      }

      .wait-sub {
        line-height: 1.65;
        margin-bottom: 16px;
        padding: 0 2px;
      }

      .wait-notice {
        padding: 12px 14px;
        margin-bottom: 12px;
        border-radius: 12px;
      }

      .wait-notice-head {
        font-size: 14px;
        margin-bottom: 6px;
      }

      .modal-overlay { padding: 16px; }

      .modal-box {
        max-width: min(320px, calc(100vw - 32px));
        border-radius: 16px;
      }

      .modal-header { padding: 16px 16px 0; }

      .modal-title { font-size: 17px; }

      .modal-body {
        padding: 10px 16px 16px;
        font-size: 15px;
      }

      .modal-footer { padding: 0 16px 16px; }

      .modal-footer .btn-primary {
        height: 46px;
        font-size: 16px;
      }
    }

    /* 大屏手机验证码页图标尺寸（避免覆盖小屏 56px 设置） */
    @media (min-width: 481px) and (max-width: 768px) {
      .wait-icon svg { width: 64px; height: 64px; }
    }
