:root {
      /* 4pt 间距系统 */
      --space-xs: 4px;
      --space-sm: 8px;
      --space-md: 12px;
      --space-lg: 16px;
      --space-xl: 20px;
      --space-2xl: 24px;
      --space-3xl: 32px;
      --space-4xl: 48px;

      /* 色彩 — Apple 风格 */
      --bg-0: #f5f5f7;
      --bg-1: #ffffff;
      --bg-2: #f5f5f7;
      --bg-3: #e8e8ed;
      --border: #d2d2d7;
      --border-bright: #b9b9be;
      --accent: #0071e3;
      --accent-dim: #0066cc;
      --accent-hover: #0077ed;
      --accent-glow: rgba(0, 113, 227, 0.12);
      --accent-soft: rgba(0, 113, 227, 0.06);
      --text-0: #1d1d1f;
      --text-1: #6e6e73;
      --text-2: #86868b;
      --danger: #ff3b30;
      --danger-text: #d70015;
      --warning: #ff9500;
      --success: #34c759;
      --success-text: #1f7a38;
      --info: #007aff;
      --warning-soft: rgba(255, 149, 0, 0.1);
      --warning-dim: #b25000;
      --danger-soft: rgba(255, 59, 48, 0.08);

      /* 字体 */
      --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
      --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, 'Cascadia Code', Consolas, monospace;

      /* 圆角与阴影 */
      --radius: 18px;
      --radius-sm: 12px;
      --radius-pill: 980px;
      --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.04);
      --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
      --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);

      /* z-index 语义阶梯 */
      --z-dropdown: 100;
      --z-sticky: 200;
      --z-modal: 2000;
      --z-toast: 3000;

      /* 安全区域 */
      --safe-top: env(safe-area-inset-top, 0px);
      --safe-bottom: env(safe-area-inset-bottom, 0px);
    }

    /* ===== 暗色模式 ===== */
    @media (prefers-color-scheme: dark) {
      :root {
        --bg-0: #000000;
        --bg-1: #1c1c1e;
        --bg-2: #2c2c2e;
        --bg-3: #3a3a3c;
        --border: #38383a;
        --border-bright: #48484a;
        --accent: #0a84ff;
        --accent-dim: #0a84ff;
        --accent-hover: #409cff;
        --accent-glow: rgba(10, 132, 255, 0.3);
        --accent-soft: rgba(10, 132, 255, 0.15);
        --text-0: #ffffff;
        --text-1: #ebebf5;
        --text-2: #8e8e93;
        --danger: #ff453a;
        --danger-text: #ff6961;
        --warning: #ff9f0a;
        --success: #30d158;
        --success-text: #30d158;
        --info: #0a84ff;
        --warning-soft: rgba(255, 159, 10, 0.15);
        --warning-dim: #ff9f0a;
        --danger-soft: rgba(255, 69, 58, 0.15);
      }
      /* 顶栏毛玻璃背景适配 */
      .topbar {
        background: rgba(28, 28, 30, 0.72);
        border-bottom-color: rgba(255, 255, 255, 0.08);
      }
      /* 面板阴影加深 */
      .panel, .guide, .phone-bar {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
      }
      /* 按钮 hover 色适配 */
      .btn:hover { background: #48484a; }
      .btn--danger:hover { background: rgba(255, 69, 58, 0.25); }
      .btn--warning:hover { background: rgba(255, 159, 10, 0.25); }
      .btn--ghost:hover { background: rgba(10, 132, 255, 0.15); }
      .copy-icon-btn:hover { background: var(--accent-soft); }
      /* 次数明细卡片 */
      .quota-card {
        background: linear-gradient(135deg, #2c2c2e, #1c1c1e);
      }
      .quota-progress { background: rgba(255, 255, 255, 0.08); }
      .quota-tag--ok { background: rgba(48, 209, 88, 0.2); color: #30d158; }
      .quota-tag--warn { background: rgba(255, 159, 10, 0.2); color: #ff9f0a; }
      .quota-tag--danger { background: rgba(255, 69, 58, 0.2); color: #ff453a; }
      .quota-tag--date { background: rgba(10, 132, 255, 0.2); color: #0a84ff; }
      /* 历史短信内容块 */
      .hist-item__sms { background: rgba(255, 255, 255, 0.06); }
      /* 客服弹窗 */
      .kefu-pop { background: #1c1c1e; }
      /* 步骤列表虚线 */
      .step-list li { border-bottom-color: rgba(255, 255, 255, 0.08); }
      .phase--2 .step-list li::before { background: rgba(255, 255, 255, 0.1); color: var(--text-0); }
      .guide__tag--mobile { background: rgba(255, 255, 255, 0.08); color: var(--text-0); border-color: rgba(255, 255, 255, 0.15); }
      /* Modal 遮罩 */
      .modal-mask { background: rgba(0, 0, 0, 0.7); }
      /* 输入框 */
      .phone-bar__field input, .phone-input-row input, .modal__input {
        background: #2c2c2e;
        color: var(--text-0);
      }
      /* Toast */
      .toast--ok { background: rgba(48, 209, 88, 0.2); border-color: rgba(48, 209, 88, 0.4); }
      .toast--err { background: rgba(255, 69, 58, 0.18); border-color: rgba(255, 69, 58, 0.4); }
      .toast--warn { background: rgba(255, 159, 10, 0.18); border-color: rgba(255, 159, 10, 0.4); }
      .toast--info { background: rgba(10, 132, 255, 0.18); border-color: rgba(10, 132, 255, 0.4); }
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { font-size: 16px; -webkit-text-size-adjust: 100%; }
    body {
      font-family: var(--font-sans);
      background: var(--bg-0);
      color: var(--text-0);
      min-height: 100vh;
      min-height: 100dvh;
      display: flex;
      flex-direction: column;
      -webkit-tap-highlight-color: transparent;
      -webkit-font-smoothing: antialiased;
    }
    input, button { -webkit-appearance: none; appearance: none; }

    /* ===== 顶栏 ===== */
    .topbar {
      display: flex;
      flex-direction: column;
      padding: 0 var(--space-2xl);
      background: rgba(255, 255, 255, 0.72);
      backdrop-filter: saturate(180%) blur(20px);
      -webkit-backdrop-filter: saturate(180%) blur(20px);
      border-bottom: 1px solid rgba(0, 0, 0, 0.06);
      flex-shrink: 0;
      padding-top: var(--safe-top);
    }
    .topbar__row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 64px;
    }
    /* 桌面端：顶栏合并为一行 */
    @media (min-width: 901px) {
      .topbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
      }
      .topbar__row {
        height: 56px;
        flex: 0 0 auto;
      }
      .topbar__actions {
        padding-bottom: 0;
      }
    }
    .topbar__info {
      display: flex;
      align-items: center;
      gap: var(--space-sm);
      font-size: 0.9rem;
      color: var(--text-2);
    }
    .topbar__actions {
      display: flex;
      align-items: center;
      gap: var(--space-sm);
      padding-bottom: 12px;
    }
    .topbar__actions .btn {
      height: 36px;
      line-height: 1;
      box-sizing: border-box;
    }
    .topbar__brand {
      display: flex;
      align-items: center;
      gap: var(--space-md);
      font-weight: 700;
      font-size: 1.2rem;
    }
    .topbar__brand-dot {
      width: 10px; height: 10px;
      border-radius: 50%;
      background: var(--accent);
      box-shadow: 0 0 8px var(--accent-glow);
      flex-shrink: 0;
    }
    .topbar__info {
      display: flex;
      align-items: center;
      gap: var(--space-sm);
      font-size: 0.9rem;
      color: var(--text-2);
    }
    .topbar__quota {
      display: flex;
      align-items: center;
      gap: var(--space-xs);
      padding: 4px 12px;
      background: var(--accent-soft);
      border-radius: var(--radius-pill);
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--accent-dim);
      cursor: pointer;
      transition: all 0.15s;
    }
    .topbar__quota:hover { background: var(--accent-glow); }
    .topbar__quota-num { font-family: var(--font-mono); font-size: 1rem; }
    .status-dot {
      width: 8px; height: 8px;
      border-radius: 50%;
      background: var(--text-2);
      transition: background 0.3s;
      flex-shrink: 0;
    }
    .status-dot--online { background: var(--success); box-shadow: 0 0 6px var(--success); }
    .status-dot--offline { background: var(--text-2); }
    .status-dot--polling { background: var(--warning); animation: pulse 1s infinite; }
    @keyframes pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.3; }
    }

    /* ===== 主布局 ===== */
    .layout {
      display: flex;
      flex: 1;
      overflow: hidden;
    }

    /* ===== 按钮 ===== */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: var(--space-sm);
      padding: 10px var(--space-xl);
      min-height: 44px;
      border: none;
      border-radius: var(--radius-pill);
      background: var(--bg-3);
      color: var(--text-0);
      font-size: 1rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.15s;
      font-family: var(--font-sans);
      white-space: nowrap;
      touch-action: manipulation;
    }
    .btn:hover { background: #dcdce1; }
    .btn:active { transform: scale(0.97); }
    .btn:disabled { opacity: 0.4; cursor: not-allowed; }
    .btn--primary {
      background: var(--accent);
      color: #fff;
      font-weight: 600;
    }
    .btn--primary:hover { background: var(--accent-hover); }
    .btn--danger { background: var(--danger-soft); color: var(--danger-text); }
    .btn--danger:hover { background: rgba(255, 59, 48, 0.16); }
    .btn--warning { background: var(--warning-soft); color: var(--warning-dim); }
    .btn--warning:hover { background: rgba(255, 149, 0, 0.18); }
    .btn--full { width: 100%; }
    .btn--sm { padding: var(--space-sm) var(--space-md); font-size: 0.9rem; min-height: 36px; }
    .btn--ghost {
      background: transparent;
      color: var(--accent);
      border: 1px solid var(--border);
      min-height: 32px;
      padding: 4px 12px;
      font-size: 0.82rem;
      white-space: nowrap;
    }
    .btn--ghost:hover { background: rgba(0, 113, 227, 0.06); border-color: var(--accent); }
    .btn--ghost:active { background: rgba(0, 113, 227, 0.12); }
    .btn-spinner {
  display: none;
      width: 16px;
      height: 16px;
      border: 2px solid currentColor;
      border-right-color: transparent;
      border-radius: 50%;
      animation: spin 0.7s linear infinite;
      flex-shrink: 0;
    }
    .btn.loading .btn-text { opacity: 0.7; }
    .btn.loading .btn-spinner { display: inline-block; }
  display: none;
    .btn.loading { pointer-events: none; opacity: 0.7; }
    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    /* ===== 主内容区 ===== */
    .main {
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow-y: auto;
      overflow-x: hidden;
      padding: var(--space-2xl);
      padding-bottom: calc(var(--space-2xl) + var(--safe-bottom));
      gap: var(--space-xl);
      -webkit-overflow-scrolling: touch;
    }
    /* 桌面端：内容居中限宽 */
    @media (min-width: 901px) {
      .main {
        max-width: 880px;
        margin: 0 auto;
        width: 100%;
        padding-top: var(--space-3xl);
      }
    }

    /* ===== 信息面板（主视觉焦点）===== */
    .panels {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: var(--space-lg);
    }
    .panel {
      background: var(--bg-1);
      border: 1.5px dashed transparent;
      border-radius: var(--radius);
      padding: var(--space-2xl);
      min-height: 130px;
      box-shadow: var(--shadow-md);
      display: flex;
      flex-direction: column;
    }
    .panel--empty {
      border-color: var(--border);
      box-shadow: none;
    }
    .panel__title {
      font-size: 0.85rem;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--text-2);
      margin-bottom: var(--space-md);
      font-weight: 600;
    }
    .panel__value {
      font-family: var(--font-mono);
      font-size: clamp(1.3rem, 3.6vw, 2.2rem);
      font-weight: 700;
      color: var(--text-0);
      white-space: nowrap;
      line-height: 1.2;
      cursor: pointer;
      transition: opacity 0.15s;
    }
    .panel__value:active { opacity: 0.7; }
    /* 号码/验证码显示元素：禁止 flex 收缩 + 强制单行，杜绝逐字换行 */
    #phone-display, #code-display {
      flex: 0 1 auto;
      min-width: max-content;
      white-space: nowrap;
      overflow: visible;
    }
    .panel__value-row {
      display: flex;
      align-items: center;
      gap: var(--space-sm);
    }
    .panel__value-row > div:first-child {
      flex: 1 1 auto;
      min-width: max-content;
    }
    /* 手机号卡片：号码 / 活跃时间 / 提示文字 三行排列 */
    .panel__value-row--phone {
      flex-wrap: wrap;
      row-gap: 6px;
      align-items: flex-start;
    }
    .panel__value-row--phone .phone-last-active {
      width: 100%;
      justify-content: flex-start;
    }
    .panel__value-row--phone .phone-active-hint {
      width: 100%;
    }
    .phone-last-active {
      flex-shrink: 0;
      font-size: 0.8rem;
      font-weight: 500;
      color: var(--text-2, #3a3a3c);
      white-space: nowrap;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 2px 0;
      background: none;
      border: none;
      line-height: 1.4;
    }
    /* 状态圆点：仅通过圆点颜色+脉冲区分状态，文字保持中性 */
    .phone-last-active__dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #86868b;
      flex-shrink: 0;
    }
    .phone-last-active--fresh .phone-last-active__dot {
      background: #34c759;
      box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.15);
      animation: pulse-dot 1.8s ease-in-out infinite;
    }
    .phone-last-active--normal .phone-last-active__dot { background: #ff9500; }
    .phone-last-active--stale .phone-last-active__dot { background: #ff3b30; }
    .phone-last-active--unknown .phone-last-active__dot { background: #86868b; }
    @keyframes pulse-dot {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.5; transform: scale(0.85); }
    }
    /* 相对时间：中性灰色，不随状态变色 */
    .phone-last-active__time { white-space: nowrap; color: var(--text-muted, #86868b); font-weight: 400; }
    /* 状态标签：仅文字颜色区分，无框无背景 */
    .phone-last-active__tag {
      white-space: nowrap;
      font-size: 0.72rem;
      font-weight: 700;
      margin-left: 2px;
    }
    .phone-last-active__tag--fresh { color: #1d9d3a; }
    .phone-last-active__tag--normal { color: #b87900; }
    .phone-last-active__tag--stale { color: #d70015; }
    .phone-last-active__tag--unknown { color: #86868b; }
    .phone-active-hint {
      width: 100%;
      font-size: 0.75rem;
      color: var(--text-muted, #86868b);
      line-height: 1.4;
      margin-top: 4px;
      padding: 4px 8px;
      background: rgba(255, 59, 48, 0.06);
      border-radius: 6px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .phone-active-hint__btn {
      flex-shrink: 0;
      font-size: 0.72rem;
      font-weight: 600;
      color: #fff;
      background: #ff3b30;
      border: none;
      border-radius: 4px;
      padding: 2px 10px;
      cursor: pointer;
      white-space: nowrap;
    }
    .phone-active-hint__btn:hover { background: #d70015; }
    .copy-icon-btn {
      flex-shrink: 0;
      width: 36px;
      height: 36px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: none;
      border-radius: 50%;
      background: var(--bg-2);
      color: var(--text-2);
      cursor: pointer;
      transition: all 0.15s;
      padding: 0;
      touch-action: manipulation;
    }
    .copy-icon-btn:hover {
      color: var(--accent);
      background: var(--accent-soft);
    }
    .copy-icon-btn:active { transform: scale(0.92); }
    .copy-icon-btn svg {
      width: 18px;
      height: 18px;
    }
    .panel--code .panel__value {
      font-size: 2.8rem;
      letter-spacing: 0.1em;
      color: var(--accent);
    }
    .panel__sub {
      font-size: 0.9rem;
      color: var(--text-2);
      margin-top: var(--space-sm);
      line-height: 1.4;
    }
    .panel__time {
      margin-top: var(--space-sm);
      font-size: 0.85rem;
      color: var(--text-2);
      display: flex;
      align-items: center;
      gap: var(--space-xs);
    }
    .panel__time-label {
      color: var(--text-2);
    }
    .panel__time-value {
      font-family: var(--font-mono);
      color: var(--text-1);
      font-weight: 500;
    }
    .panel__placeholder {
      color: var(--text-2);
      font-size: 1rem;
      font-style: italic;
    }
    /* 号码空态引导 */
    #phone-display.panel__placeholder {
      font-style: normal;
      cursor: default;
    }
    .phone-empty {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 2px;
      line-height: 1.3;
    }
    .phone-empty__icon {
      font-size: 1.4rem;
      opacity: 0.5;
      margin-bottom: 2px;
    }
    .phone-empty__text {
      font-size: 0.95rem;
      color: var(--text-2);
      font-weight: 500;
    }
    .phone-empty__hint {
      font-size: 0.75rem;
      color: var(--text-2);
      opacity: 0.7;
    }
    /* 验证码标签（换绑/登录）：默认隐藏，收到验证码后由 JS 切换为 .sms-tag */
    .code-label {
      display: none;
      vertical-align: middle;
    }
    /* 验证码空态 */
    .code-empty {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 2px;
      font-style: normal;
      cursor: default;
    }
    .code-empty__dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--success);
      box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.12);
      animation: code-empty-pulse 1.8s ease-in-out infinite;
      margin-bottom: 3px;
    }
    @keyframes code-empty-pulse {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.3; transform: scale(0.7); }
    }
    .code-empty__text {
      font-size: 0.95rem;
      color: var(--text-2);
      font-weight: 500;
    }
    .code-empty__hint {
      font-size: 0.75rem;
      color: var(--text-2);
      opacity: 0.7;
    }

    /* ===== 获取号码区域 ===== */
    .phone-bar {
      display: flex;
      align-items: center;
      gap: var(--space-sm);
      padding: var(--space-md) var(--space-lg);
      background: var(--bg-1);
      border: none;
      border-radius: var(--radius);
      box-shadow: var(--shadow-md);
      flex-wrap: wrap;
    }
    .phone-bar__field {
      flex: 1 1 100%;
      min-width: 0;
      margin-bottom: 0;
    }
    /* 获取号码按钮：PC 端占满整行、加高加大，作为主操作更显眼 */
    .phone-bar .btn--primary {
      flex: 1 1 100%;
      min-height: 52px;
      font-size: 1.1rem;
    }
    .phone-bar .btn:not(.btn--primary) {
      flex: 1;
      min-width: 0;
    }
    .phone-bar__field label {
      display: block;
      font-size: 0.9rem;
      color: var(--text-1);
      margin-bottom: var(--space-sm);
      font-weight: 500;
    }
    .phone-bar__field input {
      width: 100%;
      padding: 10px var(--space-md);
      min-height: 44px;
      background: var(--bg-2);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      color: var(--text-0);
      font-size: 1rem;
      font-family: var(--font-mono);
      transition: border-color 0.2s, box-shadow 0.2s;
      outline: none;
    }
    .phone-bar__field input:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px var(--accent-glow);
    }
    .phone-bar__field input::placeholder { color: var(--text-2); }
    .phone-bar .btn { flex-shrink: 0; white-space: nowrap; }

    /* 桌面端：phone-bar 紧凑两行（输入框行 + 按钮行） */
    @media (min-width: 901px) {
      .phone-bar__field {
        flex: 1 1 100%;
        margin-bottom: var(--space-sm);
      }
      .phone-bar .btn--primary {
        flex: 1;
        min-height: 44px;
        font-size: 1rem;
      }
      .phone-bar .btn:not(.btn--primary) {
        flex: 0 0 auto;
        min-width: 80px;
      }
    }

    /* 输入框行 + 快捷按钮 */
    .phone-input-row { display: flex; align-items: stretch; gap: 6px; width: 100%; }
    .phone-input-row input {
      flex: 1 1 auto; min-width: 0; width: auto !important;
      padding: 8px var(--space-sm); font-size: 0.95rem; min-height: 44px;
      border: 1px solid var(--border); border-radius: var(--radius-sm);
      background: var(--bg-2); color: var(--text-0);
      transition: border-color 0.15s;
    }
    .phone-input-row input:focus { border-color: var(--accent); outline: none; }
    .phone-input-btn {
      width: 44px; height: 44px; padding: 0;
      display: flex; align-items: center; justify-content: center;
      border: 1px solid var(--border); border-radius: var(--radius-sm);
      background: var(--bg-2); color: var(--text-1);
      cursor: pointer; transition: all 0.15s; flex-shrink: 0;
      font-size: 0;
    }
    .phone-input-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
    .phone-input-btn:active { transform: scale(0.92); }
    .phone-input-btn svg { font-size: initial; }
    .phone-input-hint {
      display: flex;
      justify-content: flex-end;
      gap: 6px;
      margin-top: 3px;
      line-height: 1.4;
    }
    .phone-input-hint__label {
      min-width: 44px;
      text-align: center;
      font-size: 0.68rem;
      color: var(--text-2);
      cursor: pointer;
      transition: color 0.15s;
      -webkit-tap-highlight-color: transparent;
    }
    .phone-input-hint__label:hover { color: var(--accent); }
    .phone-input-hint__label:active { color: var(--accent-dim); }

    .toolbar__divider {
      width: 1px;
      height: 24px;
      background: var(--border);
      flex-shrink: 0;
      margin: 0 var(--space-xs);
      align-self: center;
    }

    /* ===== 操作指南 ===== */
    /* 操作前必读提示框 */
    .bind-limit-notice {
      background: linear-gradient(135deg, rgba(255,59,48,0.06), rgba(255,149,0,0.04));
      border: 1px solid rgba(255,59,48,0.2);
      border-left: 4px solid #ff3b30;
      border-radius: 12px;
      padding: 0;
      margin-bottom: 14px;
      overflow: hidden;
    }
    .bind-limit-notice__header {
      display: flex; align-items: center; gap: 8px;
      padding: 10px 14px;
      background: rgba(255,59,48,0.08);
      border-bottom: 1px solid rgba(255,59,48,0.15);
    }
    .bind-limit-notice__icon { font-size: 1.1rem; line-height: 1; }
    .bind-limit-notice__title {
      font-size: 0.9rem; font-weight: 700; color: #c9302c;
      flex: 1;
    }
    .bind-limit-notice__badge {
      font-size: 0.65rem; font-weight: 600;
      padding: 2px 8px; border-radius: 10px;
      background: rgba(255,59,48,0.15); color: #c9302c;
      white-space: nowrap;
    }
    .bind-limit-notice__body {
      padding: 8px 14px 10px;
    }
    .bind-limit-notice__item {
      display: flex; align-items: flex-start; gap: 8px;
      padding: 6px 0;
      border-bottom: 1px dashed rgba(0,0,0,0.06);
    }
    .bind-limit-notice__item:last-child { border-bottom: none; }
    .bind-limit-notice__tag {
      flex-shrink: 0;
      font-size: 0.65rem; font-weight: 700;
      padding: 2px 7px; border-radius: 6px;
      line-height: 1.5; white-space: nowrap;
      margin-top: 1px;
    }
    .bind-limit-notice__item--danger .bind-limit-notice__tag {
      background: rgba(255,59,48,0.15); color: #c9302c;
    }
    .bind-limit-notice__item--warn .bind-limit-notice__tag {
      background: rgba(255,149,0,0.15); color: #b25a00;
    }
    .bind-limit-notice__item--info .bind-limit-notice__tag {
      background: rgba(0,122,255,0.12); color: #0066cc;
    }
    .bind-limit-notice__item--mute .bind-limit-notice__tag {
      background: rgba(0,0,0,0.06); color: var(--text-sub);
    }
    .bind-limit-notice__desc {
      flex: 1; min-width: 0;
      font-size: 0.78rem; line-height: 1.6; color: var(--text-sub);
    }
    .bind-limit-notice__desc strong { color: #c9302c; font-weight: 600; }
    .bind-limit-notice__item--warn .bind-limit-notice__desc strong { color: #b25a00; }
    .bind-limit-notice__item--info .bind-limit-notice__desc strong { color: #0066cc; }

    @media (max-width: 768px) {
      .bind-limit-notice__header { padding: 8px 12px; }
      .bind-limit-notice__title { font-size: 0.85rem; }
      .bind-limit-notice__badge { display: none; }
      .bind-limit-notice__body { padding: 6px 12px 8px; }
      .bind-limit-notice__item { flex-direction: column; gap: 4px; padding: 8px 0; }
      .bind-limit-notice__tag { margin-top: 0; align-self: flex-start; }
      .bind-limit-notice__desc { font-size: 0.75rem; }
    }
    .guide {
      background: var(--bg-1);
      border: none;
      border-radius: var(--radius);
      padding: 0;
      box-shadow: var(--shadow-md);
      overflow: hidden;
    }
    .guide__header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      cursor: pointer;
      user-select: none;
      -webkit-user-select: none;
      padding: var(--space-lg) var(--space-xl);
      background: var(--bg-1);
      border-bottom: 1px solid var(--border);
    }
    .guide__title {
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--text-0);
      display: flex;
      align-items: center;
      gap: var(--space-sm);
      margin: 0;
    }
    .guide__title-icon {
      width: 28px;
      height: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--accent);
      color: #fff;
      border-radius: 8px;
      font-size: 0.9rem;
      flex-shrink: 0;
    }
    .guide__toggle {
      display: none;
      width: 28px;
      height: 28px;
      align-items: center;
      justify-content: center;
      color: var(--text-2);
      font-size: 1.2rem;
      transition: transform 0.3s;
      flex-shrink: 0;
    }
    .guide.collapsed .guide__toggle { transform: rotate(-90deg); }
    .guide__body {
      overflow: hidden;
      transition: max-height 0.35s ease, opacity 0.3s ease;
      padding: var(--space-xl) var(--space-2xl);
    }
    .guide.collapsed .guide__body {
      max-height: 0 !important;
      opacity: 0;
      padding-top: 0;
      padding-bottom: 0;
      margin: 0;
    }
    .guide__sub {
      font-size: 0.9rem;
      color: var(--text-2);
      margin-bottom: var(--space-xl);
      line-height: 1.6;
    }

    /* 阶段卡片 */
    .phase {
      position: relative;
      margin-bottom: var(--space-xl);
      border: none;
      border-radius: 14px;
      overflow: hidden;
      background: var(--bg-0);
    }
    .phase:last-of-type { margin-bottom: var(--space-lg); }
    /* 阶段间连接线 + 箭头 */
    .phase:not(:last-of-type)::after {
      content: "";
      position: absolute;
      left: 50%;
      bottom: calc(var(--space-xl) * -1);
      transform: translateX(-50%);
      width: 2px;
      height: var(--space-xl);
      background: linear-gradient(to bottom, var(--border), var(--accent));
      z-index: 1;
    }
    .phase:not(:last-of-type)::before {
      content: "▼";
      position: absolute;
      left: 50%;
      bottom: calc(var(--space-xl) * -1 - 2px);
      transform: translateX(-50%);
      font-size: 0.6rem;
      color: var(--accent);
      z-index: 2;
      line-height: 1;
    }
    .phase__header {
      display: flex;
      align-items: center;
      gap: var(--space-md);
      padding: var(--space-md) var(--space-lg);
      background: var(--bg-1);
      border-bottom: 1px solid var(--border);
    }
    .phase__badge {
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      font-weight: 700;
      font-size: 0.9rem;
      color: #fff;
      flex-shrink: 0;
    }
    .phase--1 .phase__badge { background: var(--accent); }
    .phase--2 .phase__badge { background: #1d1d1f; }
    .phase--3 .phase__badge { background: #5856d6; }
    .phase__title-wrap {
      flex: 1;
      min-width: 0;
    }
    .phase__title {
      font-size: 1rem;
      font-weight: 700;
      color: var(--text-0);
      line-height: 1.3;
    }
    .phase__tags {
      display: flex;
      gap: var(--space-xs);
      margin-top: 4px;
      flex-wrap: wrap;
    }
    .phase__body {
      padding: var(--space-lg);
    }

    /* 步骤列表 */
    .step-list {
      list-style: none;
      padding: 0;
      margin: 0;
      counter-reset: step;
    }
    .step-list li {
      counter-increment: step;
      position: relative;
      padding: var(--space-sm) 0 var(--space-sm) 40px;
      font-size: 0.92rem;
      line-height: 1.7;
      color: var(--text-1);
      border-bottom: 1px dashed var(--border);
    }
    .step-list li:last-child { border-bottom: none; padding-bottom: 0; }
    .step-list li::before {
      content: counter(step);
      position: absolute;
      left: 0;
      top: 8px;
      width: 26px;
      height: 26px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--accent-soft);
      color: var(--accent);
      border-radius: 50%;
      font-weight: 700;
      font-size: 0.8rem;
      font-family: var(--font-mono);
    }
    .phase--2 .step-list li::before {
      background: rgba(0, 0, 0, 0.06);
      color: var(--text-0);
    }
    .phase--3 .step-list li::before {
      background: rgba(88, 86, 214, 0.1);
      color: #5856d6;
    }

    /* 提示框 */
    .guide__notice {
      margin-top: var(--space-md);
      padding: var(--space-sm) var(--space-md);
      background: rgba(255, 59, 48, 0.06);
      border: 1px solid rgba(255, 59, 48, 0.25);
      border-radius: var(--radius-sm);
      font-size: 0.88rem;
      color: var(--danger-text);
      font-weight: 500;
      line-height: 1.6;
      display: flex;
      align-items: flex-start;
      gap: var(--space-sm);
    }
    .guide__notice::before {
      content: "⚠";
      flex-shrink: 0;
      margin-top: 1px;
    }
    .guide__panel-hint {
      margin-top: var(--space-md);
      padding: var(--space-sm) var(--space-md);
      background: rgba(255, 149, 0, 0.08);
      border: 1px solid rgba(255, 149, 0, 0.25);
      border-radius: var(--radius-sm);
      font-size: 0.88rem;
      color: var(--warning-dim);
      line-height: 1.6;
      display: flex;
      align-items: flex-start;
      gap: var(--space-sm);
    }
    .guide__panel-hint::before {
      content: "💡";
      flex-shrink: 0;
      margin-top: 1px;
    }
    .guide__tag {
      display: inline-flex;
      align-items: center;
      padding: 2px 8px;
      border-radius: var(--radius-pill);
      font-size: 0.75rem;
      font-weight: 600;
    }
    .guide__tag--pc { background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(0, 113, 227, 0.25); }
    .guide__tag--mobile { background: rgba(0, 0, 0, 0.05); color: var(--text-0); border: 1px solid rgba(0, 0, 0, 0.12); }

    /* 完成后 */
    .guide__final {
      margin-top: var(--space-lg);
      padding: var(--space-md) var(--space-lg);
      background: var(--accent-soft);
      border: 1px solid rgba(0, 113, 227, 0.3);
      border-radius: var(--radius-sm);
    }
    .guide__final-title {
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--accent-dim);
      margin-bottom: var(--space-sm);
      display: flex;
      align-items: center;
      gap: var(--space-xs);
    }
    .guide__final ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    .guide__final li {
      position: relative;
      padding-left: 24px;
      font-size: 0.88rem;
      color: var(--text-1);
      line-height: 1.8;
    }
    .guide__final li::before {
      content: "✓";
      position: absolute;
      left: 0;
      color: var(--accent);
      font-weight: 700;
    }
    .guide__warn {
      margin-top: var(--space-lg);
      padding: var(--space-md) var(--space-lg);
      background: rgba(255, 59, 48, 0.06);
      border: 1px solid rgba(255, 59, 48, 0.25);
      border-radius: var(--radius-sm);
      font-size: 0.9rem;
      color: var(--danger-text);
      line-height: 1.7;
    }
    .guide__warn strong { color: var(--danger-text); font-weight: 700; }
    .guide__warn ul {
      list-style: none;
      padding: 0;
      margin: var(--space-sm) 0 0;
    }
    .guide__warn li {
      position: relative;
      padding-left: 20px;
      margin-bottom: var(--space-xs);
      line-height: 1.6;
    }
    .guide__warn li:last-child { margin-bottom: 0; }
    .guide__warn li::before {
      content: "•";
      position: absolute;
      left: 0;
      top: 0;
      color: var(--danger-text);
      font-weight: 700;
    }

    /* ===== 指南优化新增样式 ===== */
    /* 折叠态摘要（#6） */
    .guide__summary {
      display: none;
      padding: var(--space-xs) var(--space-xl) var(--space-md);
      font-size: 0.82rem;
      color: var(--text-2);
      border-bottom: 1px solid var(--border);
    }
    .guide.collapsed .guide__summary { display: block; }

    /* 内联退款提示（#7） */
    .guide__warn--inline {
      margin-top: 0;
      margin-bottom: var(--space-lg);
      font-size: 0.85rem;
      padding: var(--space-sm) var(--space-md);
    }

    /* App 标签：区分在哪个应用操作（#5） */
    .app-tag {
      display: inline-block;
      font-size: 0.7rem;
      font-weight: 600;
      padding: 1px 7px;
      border-radius: 6px;
      margin-right: 6px;
      vertical-align: middle;
      white-space: nowrap;
    }
    .app-tag--trae {
      background: rgba(0, 113, 227, 0.12);
      color: var(--accent);
      border: 1px solid rgba(0, 113, 227, 0.2);
    }
    .app-tag--here {
      background: rgba(52, 199, 89, 0.12);
      color: #248a3d;
      border: 1px solid rgba(52, 199, 89, 0.25);
    }

    /* notice 分级（#4） */
    .guide__notice--danger {
      background: rgba(255, 59, 48, 0.06);
      border: 1px solid rgba(255, 59, 48, 0.25);
      color: var(--danger-text);
    }
    .guide__notice--danger::before { content: "⚠"; }
    .guide__notice--success {
      background: rgba(52, 199, 89, 0.08);
      border: 1px solid rgba(52, 199, 89, 0.3);
      color: #248a3d;
    }
    .guide__notice--success::before { content: "✓"; }

    /* 阶段过渡引导（#8） */
    .phase__next-hint {
      margin-top: var(--space-md);
      padding: var(--space-xs) var(--space-md);
      font-size: 0.78rem;
      color: var(--text-2);
      text-align: center;
      border-top: 1px dashed var(--border);
      padding-top: var(--space-sm);
    }
    .phase__next-hint--done {
      color: #248a3d;
      font-weight: 600;
    }

    /* 桌面端 toggle 显示（#10） */
    .guide__toggle { display: flex !important; }

    /* 桌面端：指南保持单列纵向，避免窄列文字换行 */
    /* 移动端 app-tag 紧凑 */
    @media (max-width: 600px) {
      .app-tag { font-size: 0.64rem; padding: 1px 5px; }
      .guide__summary { font-size: 0.75rem; }
      .guide__warn--inline { font-size: 0.78rem; }
      .phase__next-hint { font-size: 0.72rem; }
    }
    /* 暗色模式适配 */
    @media (prefers-color-scheme: dark) {
      .app-tag--here { color: #30d158; border-color: rgba(52, 199, 89, 0.3); }
      .app-tag--trae { color: #0a84ff; border-color: rgba(0, 113, 227, 0.35); }
      .guide__notice--success { color: #30d158; border-color: rgba(52, 199, 89, 0.35); }
      .phase__next-hint--done { color: #30d158; }
    }

    /* 快捷键 */
    .guide__shortcuts {
      margin-top: var(--space-lg);
      padding: var(--space-md) var(--space-lg);
      background: var(--bg-0);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
    }
    .guide__shortcuts-title {
      font-size: 0.9rem;
      font-weight: 700;
      color: var(--text-0);
      margin-bottom: var(--space-sm);
    }
    .guide__shortcuts-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: var(--space-sm);
    }
    .shortcut-item {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.82rem;
      color: var(--text-1);
    }
    .shortcut-item kbd {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 28px;
      height: 24px;
      padding: 0 6px;
      background: var(--bg-1);
      border: 1px solid var(--border);
      border-bottom-width: 2px;
      border-radius: 6px;
      font-family: var(--font-mono);
      font-size: 0.72rem;
      font-weight: 600;
      color: var(--text-0);
      box-shadow: 0 1px 0 var(--border);
    }

    /* ===== 轮询进度条 ===== */
    .poll-bar {
      height: 4px;
      background: var(--bg-3);
      border-radius: 2px;
      overflow: hidden;
      margin-top: var(--space-sm);
    }
    .poll-bar__fill {
      height: 100%;
      background: linear-gradient(90deg, var(--warning), #ffb340, var(--warning));
      background-size: 200% 100%;
      width: 0%;
      transition: width 1s linear;
      animation: pollShimmer 1.5s linear infinite;
    }
    @keyframes pollShimmer {
      0% { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }
    .poll-bar__fill--success {
      background: linear-gradient(90deg, var(--success), #5fd87e, var(--success));
      background-size: 200% 100%;
      animation: pollShimmer 1s linear infinite;
    }
    .poll-bar__fill--timeout {
      background: linear-gradient(90deg, var(--danger), #ff6b5e, var(--danger));
      background-size: 200% 100%;
    }
    .code-flash { animation: codeFlash 1s ease; }
    @keyframes codeFlash {
      0% { background: rgba(52, 199, 89, 0.25); transform: scale(1.05); }
      50% { background: rgba(52, 199, 89, 0.15); }
      100% { background: transparent; transform: scale(1); }
    }
    /* 等待中文字呼吸效果 */
    #code-display.panel__placeholder.code-waiting {
      animation: codeWaitingPulse 1.6s ease-in-out infinite;
    }
    @keyframes codeWaitingPulse {
      0%, 100% { opacity: 0.5; }
      50% { opacity: 1; }
    }

    .poll-info {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: var(--space-md);
      font-size: 0.85rem;
      color: var(--text-2);
    }
    .poll-timer {
      font-family: var(--font-mono);
      font-weight: 600;
      color: var(--warning-dim);
    }
    .poll-timer--warn { color: var(--danger-text); }

    .poll-hint {
      margin-top: var(--space-sm);
      padding: 8px 12px;
      background: var(--warning-soft);
      border-radius: var(--radius-sm);
      font-size: 0.82rem;
      color: var(--warning-dim);
      line-height: 1.5;
      display: flex;
      align-items: flex-start;
      gap: 6px;
    }
    .poll-hint--warn {
      background: var(--danger-soft);
      color: var(--danger);
    }
    .poll-hint__icon { flex-shrink: 0; margin-top: 1px; }

    /* ===== Toast ===== */
    .toast-container {
      position: fixed;
      top: 80px;
      right: var(--space-2xl);
      z-index: var(--z-toast);
      display: flex;
      flex-direction: column;
      gap: var(--space-sm);
    }
    .toast {
      padding: var(--space-md) var(--space-xl);
      border-radius: var(--radius);
      font-size: 1rem;
      font-weight: 600;
      animation: slideIn 0.3s ease;
      max-width: 400px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
    }
    @keyframes slideIn {
      from { transform: translateX(100%); opacity: 0; }
      to { transform: translateX(0); opacity: 1; }
    }
    .toast--ok { background: rgba(52, 199, 89, 0.14); border: 1px solid rgba(52, 199, 89, 0.35); color: var(--success-text); }
    .toast--err { background: rgba(255, 59, 48, 0.1); border: 1px solid rgba(255, 59, 48, 0.35); color: var(--danger-text); }
    .toast--warn { background: rgba(255, 149, 0, 0.12); border: 1px solid rgba(255, 149, 0, 0.35); color: var(--warning-dim); }
    .toast--info { background: rgba(0, 113, 227, 0.1); border: 1px solid rgba(0, 113, 227, 0.35); color: var(--accent-dim); }
    .toast-container--modal-open {
      top: 24px;
      left: 50%;
      right: auto;
      transform: translateX(-50%);
      align-items: center;
    }

    /* ===== 悬浮客服按钮 ===== */
    .kefu-btn {
      position: fixed;
      right: 20px;
      bottom: 24px;
      width: 56px;
      height: 56px;
      background: var(--accent);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-size: 24px;
      cursor: pointer;
      box-shadow: 0 4px 16px rgba(0, 113, 227, 0.35);
      z-index: 1500;
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      user-select: none;
    }
    .kefu-btn:hover {
      transform: translateY(-2px) scale(1.05);
      box-shadow: 0 6px 20px rgba(0, 113, 227, 0.45);
    }
    .kefu-btn:active { transform: scale(0.95); }

    .kefu-pop {
      position: fixed;
      right: 20px;
      bottom: 90px;
      width: 260px;
      background: #fff;
      border-radius: 18px;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
      z-index: 1500;
      padding: 18px;
      animation: kefuPopIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      transform-origin: bottom right;
    }
    @keyframes kefuPopIn {
      from { opacity: 0; transform: scale(0.85) translateY(10px); }
      to { opacity: 1; transform: scale(1) translateY(0); }
    }
    .kefu-pop__title {
      font-size: 1rem;
      font-weight: 700;
      color: var(--text-0);
      margin-bottom: 4px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .kefu-pop__sub {
      font-size: 0.82rem;
      color: var(--text-2);
      margin-bottom: 14px;
    }
    .kefu-pop__qq {
      background: var(--accent-soft);
      border: 1.5px dashed rgba(0, 113, 227, 0.35);
      border-radius: 12px;
      padding: 12px;
      text-align: center;
      margin-bottom: 12px;
      cursor: pointer;
      transition: all 0.2s;
    }
    .kefu-pop__qq:hover {
      background: var(--accent-glow);
      border-style: solid;
    }
    .kefu-pop__qq-num {
      font-family: var(--font-mono);
      font-size: 1.3rem;
      font-weight: 700;
      color: var(--accent);
      letter-spacing: 0.05em;
    }
    .kefu-pop__qq-tip {
      font-size: 0.78rem;
      color: var(--text-2);
      margin-top: 2px;
    }
    .kefu-pop__actions {
      display: flex;
      gap: 8px;
    }
    .kefu-pop__btn {
      flex: 1;
      padding: 10px;
      border-radius: var(--radius-pill);
      font-size: 0.88rem;
      font-weight: 500;
      cursor: pointer;
      border: none;
      transition: all 0.15s;
      min-height: 38px;
      font-family: var(--font-sans);
    }
    .kefu-pop__btn--primary {
      background: var(--accent);
      color: #fff;
    }
    .kefu-pop__btn--primary:hover {
      background: var(--accent-hover);
    }
    .kefu-pop__btn--ghost {
      background: var(--bg-3);
      color: var(--text-1);
    }
    .kefu-pop__btn--ghost:hover { background: #dcdce1; }

    @media (max-width: 600px) {
      .kefu-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
        right: 16px;
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
      }
      .kefu-pop {
        width: calc(100vw - 32px);
        right: 16px;
        bottom: 76px;
      }
    }

    /* ===== 兑换码弹窗 ===== */
    .modal-mask {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0, 0, 0, 0.5);
      z-index: var(--z-modal);
      display: flex;
      align-items: center;
      justify-content: center;
      animation: fadeIn 0.2s ease;
      padding: var(--space-lg);
    }
    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }
    .modal {
      background: var(--bg-1);
      border-radius: var(--radius);
      width: 100%;
      max-width: 400px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
      animation: modalIn 0.25s ease;
      overflow: hidden;
    }
    @keyframes modalIn {
      from { transform: translateY(20px) scale(0.95); opacity: 0; }
      to { transform: translateY(0) scale(1); opacity: 1; }
    }
    .modal__header {
      padding: var(--space-xl) var(--space-xl) var(--space-md);
      text-align: center;
      border-bottom: 1px solid var(--border);
    }
    .modal__title {
      font-size: 1.2rem;
      font-weight: 700;
      color: var(--text-0);
      margin-bottom: var(--space-xs);
    }
    .modal__sub {
      font-size: 0.9rem;
      color: var(--text-2);
    }
    .modal__body {
      padding: var(--space-xl);
    }
    .modal__input {
      width: 100%;
      padding: 12px var(--space-md);
      background: var(--bg-2);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      color: var(--text-0);
      font-size: 1.1rem;
      font-family: var(--font-mono);
      text-align: center;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      transition: border-color 0.2s, box-shadow 0.2s;
      outline: none;
    }
    .modal__input:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px var(--accent-glow);
    }
    .modal__input::placeholder { color: var(--text-2); letter-spacing: 0; text-transform: none; }
    .modal__footer {
      padding: 0 var(--space-xl) var(--space-xl);
      display: flex;
      gap: var(--space-md);
    }
    .modal__footer .btn { flex: 1; }

    /* ===== 激活前强烈提示弹窗 ===== */
    .redeem-warning {
      border: 2px solid var(--danger, #ff3b30);
      box-shadow: 0 20px 60px rgba(255, 59, 48, 0.25);
      max-height: 90vh;
      display: flex;
      flex-direction: column;
    }
    .redeem-warning__head {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: var(--space-sm);
      padding: var(--space-xl) var(--space-xl) var(--space-md);
      border-bottom: 1px solid var(--border);
    }
    .redeem-warning__icon {
      width: 48px;
      height: 48px;
      color: var(--danger, #ff3b30);
    }
    .redeem-warning__title {
      font-size: 1.25rem;
      font-weight: 700;
      color: var(--danger, #ff3b30);
    }
    .redeem-warning__body {
      padding: var(--space-xl);
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      flex: 1;
      min-height: 0;
    }
    .redeem-warning__text {
      font-size: 0.92rem;
      line-height: 1.7;
      color: var(--text-1, #333);
      margin: 0 0 var(--space-lg);
    }
    .redeem-warning__check {
      display: flex;
      align-items: center;
      gap: var(--space-sm);
      font-size: 0.88rem;
      color: var(--text-1, #333);
      cursor: pointer;
      user-select: none;
    }
    .redeem-warning__check input {
      width: 18px;
      height: 18px;
      accent-color: var(--accent, #0071e3);
      cursor: pointer;
      flex-shrink: 0;
      -webkit-appearance: auto;
      appearance: auto;
    }
    .redeem-warning__confirm:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    /* ===== 历史记录弹窗 ===== */
    .modal--wide { max-width: 560px; }
    .modal--scroll { max-height: 85vh; display: flex; flex-direction: column; }
    .modal--scroll .modal__body { overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1; }

    /* 弹窗头部 */
    .hist-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: var(--space-lg) var(--space-xl) var(--space-sm);
      border-bottom: 1px solid var(--border);
      flex-shrink: 0;
    }
    .hist-head__title {
      font-size: 1.15rem;
      font-weight: 700;
      color: var(--text-0);
    }
    .hist-head__sub {
      font-size: 0.78rem;
      color: var(--text-2);
      margin-top: 2px;
    }
    .hist-head__count {
      font-size: 0.72rem;
      font-weight: 600;
      color: var(--accent);
      background: var(--accent-soft);
      padding: 3px 10px;
      border-radius: var(--radius-pill);
      flex-shrink: 0;
    }

    /* 历史记录搜索框 */
    .hist-search {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px var(--space-xl);
      border-bottom: 1px solid var(--border);
      flex-shrink: 0;
    }
    .hist-search__icon {
      width: 16px;
      height: 16px;
      color: var(--text-2);
      flex-shrink: 0;
    }
    .hist-search__input {
      flex: 1;
      min-width: 0;
      border: none;
      outline: none;
      background: transparent;
      font-size: 0.88rem;
      color: var(--text-0);
      font-family: var(--font-sans);
      padding: 4px 0;
    }
    .hist-search__input::placeholder { color: var(--text-2); }
    .hist-search__clear {
      width: 22px;
      height: 22px;
      display: none;
      align-items: center;
      justify-content: center;
      border: none;
      border-radius: 50%;
      background: var(--bg-3);
      color: var(--text-2);
      cursor: pointer;
      flex-shrink: 0;
      padding: 0;
      transition: all 0.15s;
    }
    .hist-search__clear:hover { background: var(--border); color: var(--text-0); }
    .hist-search__clear svg { width: 12px; height: 12px; }

    /* 筛选栏 */
    .hist-tabs {
      display: flex;
      gap: 6px;
      padding: 8px 14px;
      border-bottom: 1px solid var(--border);
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      -ms-overflow-style: none;
      flex-shrink: 0;
    }
    .hist-tabs::-webkit-scrollbar { display: none; }

    /* ===== 套餐选择 ===== */
    .pricing {
      margin-top: var(--space-lg);
      padding: var(--space-md);
      background: var(--bg-2, #f5f5f7);
      border-radius: 12px;
      border: 1px solid var(--border, #e5e5ea);
    }
    .pricing__header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: var(--space-md);
      flex-wrap: wrap;
      gap: 4px;
    }
    .pricing__title {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 1rem;
      font-weight: 600;
      color: var(--text, #1c1c1e);
    }
    .pricing__title-icon { color: var(--accent, #0071e3); display: flex; }
    .pricing__sub {
      font-size: 0.75rem;
      color: var(--text-2, #8e8e93);
    }
    .pricing__cards {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
    }
    .pricing__card {
      position: relative;
      padding: 14px 10px;
      background: var(--bg, #fff);
      border: 1px solid var(--border, #e5e5ea);
      border-radius: 10px;
      text-align: center;
      cursor: pointer;
      transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    }
    .pricing__card:hover {
      border-color: var(--accent, #0071e3);
      box-shadow: 0 2px 12px rgba(0,113,227,0.1);
      transform: translateY(-2px);
    }
    .pricing__card--popular {
      border-color: var(--accent, #0071e3);
      border-width: 2px;
      background: linear-gradient(180deg, rgba(0,113,227,0.06), var(--bg, #fff) 60%);
    }
    .pricing__card--best {
      border-color: var(--warning, #ff9500);
      border-width: 2px;
      background: linear-gradient(180deg, rgba(255,149,0,0.06), var(--bg, #fff) 60%);
    }
    .pricing__card--selected {
      border-color: var(--accent, #0071e3) !important;
      border-width: 2px !important;
      box-shadow: 0 4px 16px rgba(0,113,227,0.18);
      background: linear-gradient(180deg, rgba(0,113,227,0.08), var(--bg, #fff) 70%) !important;
      transform: translateY(-2px);
    }
    .pricing__card--selected.pricing__card--best {
      border-color: var(--accent, #0071e3) !important;
      box-shadow: 0 4px 16px rgba(0,113,227,0.18);
    }
    /* 选中勾选标记（右上角圆形） */
    .pricing__card-check {
      position: absolute;
      top: 8px;
      right: 8px;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: var(--accent, #0071e3);
      color: #fff;
      display: none;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 6px rgba(0,113,227,0.35);
    }
    .pricing__card--selected .pricing__card-check { display: flex; }
    .pricing__card-badge {
      position: absolute;
      top: -8px;
      left: 50%;
      transform: translateX(-50%);
      background: var(--accent, #0071e3);
      color: #fff;
      font-size: 0.65rem;
      font-weight: 600;
      padding: 2px 8px;
      border-radius: 8px;
      white-space: nowrap;
      letter-spacing: 0.02em;
    }
    .pricing__card-badge--gray { background: var(--text-2, #8e8e93); }
    .pricing__card-badge--green { background: var(--success, #34c759); }
    .pricing__card-badge--orange { background: var(--warning, #ff9500); }
    /* 立省优惠条 */
    .pricing__card-save {
      display: inline-block;
      margin: 4px auto 6px;
      padding: 2px 8px;
      background: var(--danger-soft, rgba(255,59,48,0.08));
      color: var(--danger-text, #d70015);
      font-size: 0.66rem;
      font-weight: 600;
      border-radius: 6px;
      line-height: 1.4;
    }
    /* 特性勾选图标 */
    .pricing__feat-ico {
      color: var(--success, #34c759);
      flex-shrink: 0;
      margin-right: 4px;
      transform: translateY(1px);
    }
    .pricing__card-name {
      font-size: 0.88rem;
      font-weight: 600;
      color: var(--text, #1c1c1e);
      margin-bottom: 6px;
    }
    .pricing__card-price {
      display: flex;
      align-items: baseline;
      justify-content: center;
      gap: 2px;
      margin-bottom: 4px;
    }
    .pricing__card-price-num {
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--accent, #0071e3);
    }
    .pricing__card-price-unit {
      font-size: 0.7rem;
      color: var(--text-2, #8e8e93);
    }
    .pricing__card-quota {
      font-size: 0.78rem;
      color: var(--text-2, #8e8e93);
      margin-bottom: 8px;
    }
    .pricing__card-features {
      display: flex;
      flex-direction: column;
      gap: 4px;
      align-items: center;
    }
    .pricing__card-feat {
      display: inline-flex;
      align-items: center;
      font-size: 0.7rem;
      color: var(--text-3, #aeaeb2);
      line-height: 1.3;
    }
    .pricing__action {
      margin-top: 14px;
      text-align: center;
    }
    .pricing__action-hint {
      font-size: 0.72rem;
      color: var(--text-2, #8e8e93);
      margin-top: 6px;
      transition: color 0.2s;
    }
    /* 未选套餐时购买按钮弱化态 */
    .pricing__btn--idle {
      background: var(--bg-3, #e8e8ed);
      color: var(--text-2, #8e8e93);
      font-weight: 500;
    }
    .pricing__btn--idle:hover { background: var(--bg-3, #e8e8ed); }
    /* 已选套餐时按钮强化态 */
    .pricing__btn--active {
      background: var(--accent, #0071e3);
      color: #fff;
      font-weight: 600;
      box-shadow: 0 4px 14px rgba(0,113,227,0.3);
    }
    .pricing__btn--active:hover { background: var(--accent-hover, #0077ed); }
    .btn--block {
      width: 100%;
      padding: 10px;
      font-size: 0.9rem;
    }
    @media (max-width: 768px) {
      .pricing__cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
      .pricing__card { padding: 12px 8px 10px; }
      .pricing__card-price-num { font-size: 1.35rem; }
      .pricing__card-name { font-size: 0.82rem; margin-bottom: 4px; }
      .pricing__card-feat { font-size: 0.66rem; }
      .pricing__card-save { font-size: 0.62rem; padding: 2px 6px; }
      .pricing__card-check { width: 20px; height: 20px; top: 6px; right: 6px; }
      .pricing__card-badge { font-size: 0.6rem; padding: 2px 7px; top: -7px; }
      .pricing__feat-ico { width: 10px; height: 10px; }
    }
    @media (max-width: 380px) {
      .pricing__cards { grid-template-columns: 1fr; }
      .pricing__card-features { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 6px 10px; }
    }
    /* 暗色模式适配 */
    @media (prefers-color-scheme: dark) {
      .pricing { background: var(--bg-2); border-color: var(--border); }
      .pricing__card {
        background: var(--bg-1);
        border-color: var(--border);
      }
      .pricing__card--popular {
        background: linear-gradient(180deg, rgba(10,132,255,0.12), var(--bg-1) 60%);
      }
      .pricing__card--best {
        background: linear-gradient(180deg, rgba(255,159,10,0.12), var(--bg-1) 60%);
      }
      .pricing__card--selected {
        background: linear-gradient(180deg, rgba(10,132,255,0.16), var(--bg-1) 70%) !important;
      }
      .pricing__btn--idle {
        background: var(--bg-3);
        color: var(--text-2);
      }
      .pricing__btn--idle:hover { background: var(--bg-3); }
    }

    /* ===== 页脚免责声明 ===== */
    .site-footer {
      padding: var(--space-xl) var(--space-md);
      text-align: center;
      border-top: 1px solid var(--border);
      background: var(--bg-2);
      margin-top: var(--space-xl);
    }
    .site-footer__inner {
      max-width: 640px;
      margin: 0 auto;
    }
    .site-footer__line {
      font-size: 0.72rem;
      line-height: 1.6;
      color: var(--text-2, #888);
      margin: 0 0 4px;
    }
    .site-footer__meta {
      font-size: 0.72rem;
      color: var(--text-2, #888);
      margin: 8px 0 0;
    }
    .site-footer__link {
      color: var(--accent, #0071e3);
      text-decoration: none;
    }
    .hist-tab {
      padding: 5px 14px;
      min-height: 30px;
      display: inline-flex;
      align-items: center;
      border: 1px solid var(--border);
      border-radius: var(--radius-pill);
      background: transparent;
      color: var(--text-2);
      font-size: 0.75rem;
      font-weight: 500;
      cursor: pointer;
      white-space: nowrap;
      transition: all 0.15s;
    }
    .hist-tab:hover { border-color: var(--accent); color: var(--accent); }
    .hist-tab.active {
      background: var(--accent);
      color: #fff;
      border-color: var(--accent);
    }

    /* 复制闪烁 */
    .copy-flash { animation: copyFlash 0.6s ease; }
    @keyframes copyFlash { 0% { background: rgba(52, 199, 89, 0.2); } 100% { background: transparent; } }

    /* 空状态 */
    .hist-empty {
      text-align: center;
      padding: var(--space-4xl) var(--space-lg);
    }
    .hist-empty__icon { font-size: 2.5rem; margin-bottom: var(--space-sm); opacity: 0.3; }
    .hist-empty__text { font-size: 0.92rem; color: var(--text-1); margin-bottom: 4px; }
    .hist-empty__hint { font-size: 0.78rem; color: var(--text-2); }

    /* 记录列表 */
    .hist-list { padding: var(--space-sm) var(--space-md); }

    /* 时间分组标签 */
    .hist-group {
      font-size: 0.68rem;
      font-weight: 600;
      color: var(--text-2);
      padding: var(--space-sm) var(--space-xs) 4px;
      letter-spacing: 0.05em;
    }

    /* 记录卡片 */
    .hist-item {
      display: flex;
      align-items: stretch;
      border-radius: 10px;
      overflow: hidden;
      background: var(--bg-1);
      border: 1px solid var(--border);
      margin-bottom: 6px;
      transition: border-color 0.15s, box-shadow 0.15s;
    }
    .hist-item:hover {
      border-color: var(--accent);
      box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
    }
    .hist-item__accent {
      width: 3px;
      flex-shrink: 0;
    }
    .hist-item--phone .hist-item__accent { background: var(--accent); }
    .hist-item--sms .hist-item__accent { background: var(--success); }

    .hist-item__body {
      flex: 1;
      min-width: 0;
      padding: 8px 12px;
      display: flex;
      flex-direction: column;
      gap: 3px;
    }
    .hist-item__row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }
    .hist-item__phone {
      font-family: var(--font-mono);
      font-size: 0.88rem;
      font-weight: 600;
      color: var(--text-0);
      cursor: pointer;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      min-width: 0;
    }
    .hist-item__code {
      font-family: var(--font-mono);
      font-size: 1rem;
      font-weight: 700;
      color: var(--accent);
      cursor: pointer;
      letter-spacing: 0.08em;
      flex-shrink: 0;
    }
    .hist-item__code::after {
      content: "\2009\2009复制";
      font-size: 0.58rem;
      font-weight: 400;
      color: var(--text-2);
      letter-spacing: 0;
      opacity: 0.6;
    }
    .hist-item__meta {
      font-size: 0.68rem;
      color: var(--text-2);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .hist-item__badge {
      padding: 2px 8px;
      border-radius: var(--radius-pill);
      font-size: 0.64rem;
      font-weight: 600;
      white-space: nowrap;
      flex-shrink: 0;
    }

    /* Badge 配色 */
    .hist-badge--active { background: rgba(52, 199, 89, 0.12); color: var(--success-text); }
    .hist-badge--released { background: rgba(134, 134, 139, 0.12); color: var(--text-2); }
    .hist-badge--expired { background: rgba(255, 149, 0, 0.12); color: var(--warning-dim); }
    .hist-badge--success { background: rgba(52, 199, 89, 0.12); color: var(--success-text); }
    .hist-badge--fail { background: rgba(255, 59, 48, 0.08); color: var(--danger-text); }

    /* 分页 */
    .hist-pagination {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: var(--space-md);
      padding: var(--space-sm) var(--space-md) var(--space-md);
      border-top: 1px solid var(--border);
      flex-shrink: 0;
    }
    .hist-pagination .btn { min-height: 34px; padding: var(--space-xs) var(--space-lg); font-size: 0.82rem; }
    .hist-pagination__info { font-size: 0.78rem; color: var(--text-2); }

    /* ================================ */
    /* ===== 响应式：平板（≤900px）===== */
    /* ================================ */
    @media (max-width: 900px) {
      .layout { flex-direction: column; }
      /* 平板/小窗 PC：panels 保持双列（minmax 防挤压），仅缩小间距 */
      .panels { gap: var(--space-md); }
      .panel { min-height: auto; padding: var(--space-xl); }
      .panel__value { font-size: 1.5rem; }
      .panel--code .panel__value { font-size: 2.2rem; }

      .phone-bar {
        flex-wrap: wrap;
        padding: var(--space-lg);
        gap: var(--space-md);
      }
      .toolbar__divider { display: none; }

      .guide__toggle { display: flex; }
      .guide__title { margin-bottom: 0; }
    }

    /* ================================== */
    /* ===== 响应式：手机（≤600px）===== */
    /* ================================== */
    @media (max-width: 600px) {
      html { font-size: 15px; }

      /* 刷新提示：移动端调整间距 */
      .refresh-hint { margin-top: 0 !important; }

      /* 顶栏：两行布局（标题行 + 按钮行） */
      .topbar {
        padding: 0 var(--space-lg);
        padding-top: var(--safe-top);
      }
      .topbar__row {
        height: 52px;
      }
      .topbar__brand {
        font-size: 1rem;
        gap: var(--space-sm);
      }
      .topbar__brand-dot { width: 8px; height: 8px; }
      .topbar__info {
        gap: 6px;
      }
      .topbar__actions {
        padding-bottom: 10px;
        gap: 6px;
        flex-wrap: wrap;
      }
      /* 移动端隐藏多余文字（品牌等） */
      .hide-mobile { display: none; }
      .status-dot { width: 8px; height: 8px; flex-shrink: 0; }
      .btn--ghost { padding: 5px 12px; font-size: 0.82rem; }
      .btn--primary { padding: 5px 12px; font-size: 0.82rem; }
      .topbar__actions .btn { height: 34px; }
      .topbar__quota { padding: 3px 10px; font-size: 0.78rem; }

      /* 主内容 */
      .main {
        padding: var(--space-lg);
        padding-bottom: calc(var(--space-xl) + var(--safe-bottom));
        gap: var(--space-lg);
      }

      /* 面板 */
      /* 手机：panels 转单列堆叠 */
      .panels { grid-template-columns: 1fr; gap: var(--space-md); }
      .phone-bar__field { min-width: 100%; }
      .panel {
        padding: var(--space-lg);
        border-radius: 14px;
      }
      .panel__title {
        font-size: 0.75rem;
        margin-bottom: var(--space-sm);
        letter-spacing: 0.08em;
      }
      .panel__value { font-size: 1.6rem; }
      .panel--code .panel__value { font-size: 2rem; letter-spacing: 0.08em; }
      .panel__sub { font-size: 0.8rem; margin-top: var(--space-xs); }
      .panel__placeholder { font-size: 0.9rem; }
      .copy-icon-btn {
        width: 32px;
        height: 32px;
      }
      .copy-icon-btn svg {
        width: 16px;
        height: 16px;
      }

      /* 最后活跃时间：移动端换行到号码下方 */
      .panel__value-row {
        flex-wrap: wrap;
        row-gap: 6px;
      }
      .phone-last-active {
        order: 3;
        width: 100%;
        font-size: 0.78rem;
        padding: 2px 0;
        justify-content: flex-start;
      }

      /* 操作区 */
      .phone-bar {
        padding: var(--space-md);
        gap: var(--space-sm);
        border-radius: var(--radius-sm);
      }
      .phone-bar__field label {
        font-size: 0.85rem;
        margin-bottom: var(--space-xs);
      }
      .phone-bar__field input {
        padding: 8px var(--space-sm);
        font-size: 0.95rem;
        min-height: 40px;
      }
      .phone-input-btn { width: 40px; height: 40px; }

      /* 移动端隐藏冗余文字提示（图标按钮已提供同等功能，避免文字溢出遮挡主按钮） */
      .phone-input-hint { display: none; }

      /* 主操作按钮组：获取号码占满宽，位于输入框下方 */
      .phone-bar .btn--primary {
        width: 100%;
        font-size: 1.05rem;
        min-height: 48px;
        margin-top: var(--space-xs);
      }

      /* 次操作按钮：两列网格 */
      .phone-bar .btn:not(.btn--primary) {
        flex: 1;
        min-width: calc(50% - 4px);
        font-size: 0.9rem;
        padding: 8px var(--space-sm);
        min-height: 42px;
      }

      /* 指南 */
      .guide { border-radius: var(--radius-sm); }
      .guide__header { padding: var(--space-md) var(--space-lg); }
      .guide__title { font-size: 1rem; }
      .guide__title-icon { width: 24px; height: 24px; font-size: 0.8rem; border-radius: 6px; }
      .guide__body { padding: var(--space-lg); }
      .guide__sub { font-size: 0.85rem; margin-bottom: var(--space-lg); line-height: 1.5; }

      .phase { margin-bottom: var(--space-lg); border-radius: var(--radius-sm); position: relative; }
      .phase:last-of-type { margin-bottom: var(--space-md); }
      .phase:not(:last-of-type)::after {
        bottom: calc(var(--space-lg) * -1);
        height: var(--space-lg);
      }
      .phase:not(:last-of-type)::before {
        bottom: calc(var(--space-lg) * -1 - 2px);
      }
      .phase__header { padding: var(--space-sm) var(--space-md); gap: var(--space-sm); }
      .phase__badge { width: 28px; height: 28px; font-size: 0.8rem; }
      .phase__title { font-size: 0.95rem; }
      .phase__tags { margin-top: 2px; gap: 4px; }
      .phase__body { padding: var(--space-md); }

      .step-list li {
        padding: var(--space-xs) 0 var(--space-xs) 34px;
        font-size: 0.85rem;
        line-height: 1.6;
      }
      .step-list li::before {
        width: 22px;
        height: 22px;
        font-size: 0.72rem;
        top: 6px;
      }

      .guide__tag { font-size: 0.7rem; padding: 1px 6px; border-radius: 10px; }
      .guide__notice, .guide__panel-hint {
        font-size: 0.8rem;
        padding: var(--space-xs) var(--space-sm);
        margin-top: var(--space-sm);
        gap: var(--space-xs);
      }

      .guide__final {
        margin-top: var(--space-md);
        padding: var(--space-sm) var(--space-md);
        border-radius: var(--radius-sm);
      }
      .guide__final-title { font-size: 0.88rem; margin-bottom: var(--space-xs); }
      .guide__final li { font-size: 0.82rem; line-height: 1.7; padding-left: 20px; }

      /* 快捷键移动端 */
      .guide__shortcuts { padding: var(--space-sm) var(--space-md); }
      .guide__shortcuts-title { font-size: 0.85rem; }
      .guide__shortcuts-grid { grid-template-columns: 1fr; gap: 6px; }
      .shortcut-item { font-size: 0.78rem; }

      .guide__warn {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.82rem;
        line-height: 1.6;
        margin-top: var(--space-md);
        border-radius: var(--radius-sm);
      }
      .guide__warn ul { margin-top: var(--space-xs); }
      .guide__warn li {
        padding-left: 16px;
        margin-bottom: var(--space-xs);
        font-size: 0.8rem;
        line-height: 1.55;
      }

      /* 进度条 */
      .poll-bar { height: 3px; margin-top: var(--space-xs); }

      /* Toast：移动端底部居中（最多显示2个，避免大面积遮挡） */
      .toast-container {
        top: auto;
        bottom: calc(24px + var(--safe-bottom));
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        flex-direction: column-reverse;
        width: calc(100% - 32px);
        max-width: 400px;
        max-height: none;
        overflow: visible;
        pointer-events: none;
      }
      /* 仅保留最新的2个 toast，更早的隐藏 */
      .toast-container .toast:nth-child(n+3) { display: none; }
      .toast {
        max-width: none;
        width: 100%;
        font-size: 0.95rem;
        padding: var(--space-md) var(--space-lg);
        text-align: center;
        pointer-events: auto;
      }
      .toast--ok { background: rgba(52, 199, 89, 0.16); color: var(--success-text); }
      .toast--err { background: rgba(255, 59, 48, 0.12); color: var(--danger-text); }
      .toast--warn { background: rgba(255, 149, 0, 0.14); color: var(--warning-dim); }
      .toast--info { background: rgba(0, 113, 227, 0.12); color: var(--accent-dim); }
      /* 弹窗打开时toast移到顶部，避免遮挡底部按钮 */
      .toast-container--modal-open {
        top: calc(16px + var(--safe-top));
        bottom: auto;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        flex-direction: column;
      }
      @keyframes slideIn {
        from { transform: translateY(100%); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
      }

      /* ===== 弹窗移动端适配 ===== */
      .modal-mask {
        padding: var(--space-sm);
        align-items: flex-end; /* 从底部弹出，更符合移动端交互 */
      }
      .modal {
        max-width: 100%;
        border-radius: 18px 18px 0 0;
        width: 100%;
      }
      .modal--wide { max-width: 100%; }
      .modal--scroll {
        max-height: calc(92vh - var(--safe-top));
      }
      .modal__header {
        padding: var(--space-lg) var(--space-lg) var(--space-sm);
      }
      .modal__title { font-size: 1.1rem; }
      .modal__sub { font-size: 0.78rem; }
      .modal__body {
        padding: var(--space-md) var(--space-lg);
      }
      /* 筛选栏移动端 */
      .hist-tabs {
        padding: 6px var(--space-lg);
        gap: 6px;
      }
      .hist-tab {
        padding: 5px 12px;
        font-size: 0.72rem;
        min-height: 30px;
      }

      /* 弹窗头部移动端 */
      .hist-head {
        padding: var(--space-lg) var(--space-lg) var(--space-sm);
      }
      .hist-head__title { font-size: 1.05rem; }
      .hist-head__sub { font-size: 0.72rem; }
      .hist-head__count { font-size: 0.68rem; padding: 2px 8px; }

      /* 搜索框移动端 */
      .hist-search { padding: 8px var(--space-lg); }

      /* 记录卡片移动端 */
      .hist-list {
        padding: var(--space-sm) var(--space-sm);
      }
      .hist-item {
        margin-bottom: 6px;
      }
      .hist-item__body {
        padding: 7px 10px;
        gap: 2px;
      }
      .hist-item__phone {
        font-size: 0.82rem;
        letter-spacing: 0.01em;
      }
      .hist-item__code {
        font-size: 0.92rem;
        letter-spacing: 0.06em;
      }
      .hist-item__code::after { font-size: 0.54rem; }
      .hist-item__meta { font-size: 0.64rem; }
      .hist-item__badge {
        padding: 2px 6px;
        font-size: 0.6rem;
      }
      .hist-group { font-size: 0.62rem; padding: var(--space-xs) var(--space-xs) 3px; }

      .hist-pagination {
        padding: var(--space-xs) var(--space-sm) var(--space-sm);
      }
      .hist-pagination .btn { min-height: 34px; padding: var(--space-xs) var(--space-sm); }
    }

    /* ======================================== */
    /* ===== 响应式：小屏手机（≤380px）===== */
    /* ======================================== */
    @media (max-width: 380px) {
      html { font-size: 14px; }
      .panel__value { font-size: 1.4rem; }
      .panel--code .panel__value { font-size: 1.7rem; }
      .topbar__brand { font-size: 0.9rem; }
      .hist-item__body { padding: 6px 8px; }
      .hist-item__phone { font-size: 0.78rem; }
      .hist-item__code { font-size: 0.85rem; }
      .hist-item__code::after { font-size: 0.5rem; }
    }


/* ===== 次数明细弹窗：概览卡片 ===== */
.quota-card {
  background: linear-gradient(135deg, #f5f5f7, #e8e8ed);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}
.quota-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.quota-card__label {
  font-size: 0.75rem;
  color: var(--text-sub);
}
.quota-card__code {
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 700;
}
.quota-card__remaining {
  text-align: right;
}
.quota-card__num {
  font-size: 1.5rem;
  font-weight: 800;
}
.quota-card__num--ok { color: #34c759; }
.quota-card__num--empty { color: #ff3b30; }

.quota-progress {
  background: rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}
.quota-progress__fill {
  height: 100%;
  border-radius: 8px;
  transition: width 0.3s;
}
.quota-progress__fill--ok { background: #007aff; }
.quota-progress__fill--warn { background: #ff9500; }

.quota-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.quota-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 10px;
  line-height: 1.5;
  white-space: nowrap;
}
.quota-tag--ok { background: rgba(52, 199, 89, 0.15); color: #248a3d; }
.quota-tag--warn { background: rgba(255, 149, 0, 0.15); color: #b25a00; }
.quota-tag--danger { background: rgba(255, 59, 48, 0.15); color: #c9302c; }
.quota-tag--date { background: rgba(0, 122, 255, 0.12); color: #0066cc; }

.quota-section-title {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

/* SMS 标签（换绑/登录） */
.sms-tag {
  display: inline-block;
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  margin-right: 4px;
  vertical-align: middle;
}
.sms-tag--rebind { background: rgba(88, 86, 214, 0.15); color: #5856d6; }
.sms-tag--login { background: rgba(52, 199, 89, 0.15); color: #34c759; }

/* 历史记录中的短信内容块 */
.hist-item__sms {
  margin-top: 4px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-sub);
  line-height: 1.3;
  word-break: break-all;
  white-space: pre-wrap;
}

/* ===== 骨架屏加载态（#6） ===== */
.skeleton-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0;
}
.skeleton-item {
  height: 56px;
  border-radius: var(--radius-sm, 10px);
  background: linear-gradient(90deg, rgba(0,0,0,0.05) 25%, rgba(0,0,0,0.09) 37%, rgba(0,0,0,0.05) 63%);
  background-size: 400% 100%;
  animation: skeletonShimmer 1.3s ease-in-out infinite;
}
.skeleton-item--card {
  height: 80px;
}
@keyframes skeletonShimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: -100% 50%; }
}
@media (prefers-color-scheme: dark) {
  .skeleton-item {
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 37%, rgba(255,255,255,0.06) 63%);
    background-size: 400% 100%;
  }
}

/* ===== 次数耗尽视觉警告（#3） ===== */
.topbar__quota--warn {
  animation: quotaWarn 0.8s ease-in-out infinite alternate;
}
.topbar__quota--danger .topbar__quota-num {
  color: var(--danger-text);
  font-weight: 800;
}
@keyframes quotaWarn {
  from { color: var(--warning-dim); }
  to { color: var(--danger-text); }
}

/* ===== guide__toggle button reset（#7） ===== */
.guide__toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

/* ===== 优化：次数耗尽 pulse 引导 ===== */
.topbar__quota--danger {
  background: rgba(255, 59, 48, 0.1) !important;
  border: 1px solid rgba(255, 59, 48, 0.3) !important;
  animation: quotaPulse 1.2s ease-in-out infinite;
}
@keyframes quotaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.3); }
  50% { box-shadow: 0 0 0 4px rgba(255, 59, 48, 0); }
}

/* ===== 优化：操作前必读折叠 ===== */
.bind-limit-notice__toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2, #86868b);
  font-size: 1.2rem;
  transition: transform 0.3s;
  flex-shrink: 0;
}
.bind-limit-notice.collapsed .bind-limit-notice__toggle { transform: rotate(-90deg); }
.bind-limit-notice__summary {
  display: none;
  padding: 8px 14px;
  font-size: 0.78rem;
  color: var(--text-2, #86868b);
  border-bottom: 1px solid var(--border, rgba(0,0,0,0.08));
}
.bind-limit-notice.collapsed .bind-limit-notice__summary { display: block; }
.bind-limit-notice.collapsed .bind-limit-notice__body {
  display: none;
}
.bind-limit-notice__header { cursor: pointer; }

/* ===== 优化：轮询超时操作按钮 ===== */
.poll-timeout-actions {
  display: flex;
  gap: 8px;
  padding: 8px 0 4px;
}
.poll-timeout-actions .btn {
  flex: 1;
  height: 36px;
  font-size: 0.82rem;
}

/* ===== 优化：历史记录 Tab ===== */
.hist-tabs {
  display: flex;
  gap: 0;
  padding: 0 16px;
  border-bottom: 1px solid var(--border, rgba(0,0,0,0.08));
}
.hist-tab {
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2, #86868b);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.hist-tab:hover { color: var(--text-0, #171717); }
.hist-tab--active {
  color: var(--accent, #0071e3);
  border-bottom-color: var(--accent, #0071e3);
  font-weight: 600;
}

/* ===== 优化：指南进度圆点 ===== */
.guide__progress {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.guide__dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-2, #86868b);
  background: var(--bg-2, rgba(0,0,0,0.06));
  border: 2px solid transparent;
  transition: all 0.3s;
  cursor: pointer;
}
.guide__dot--active {
  color: #fff;
  background: var(--accent, #0071e3);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2);
}
.guide__dot--done {
  color: #fff;
  background: var(--success, #34c759);
}
.guide__dot-line {
  width: 16px;
  height: 2px;
  background: var(--border, rgba(0,0,0,0.1));
  border-radius: 1px;
}
.guide__dot-line--done { background: var(--success, #34c759); }
@media (max-width: 768px) {
  .guide__progress { display: none; }
}

/* ===== 优化：顶栏按钮分隔符 ===== */
.topbar__divider {
  width: 1px;
  height: 20px;
  background: var(--border, rgba(0,0,0,0.12));
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .topbar__divider { display: none; }
}

/* ===== 优化：面板 skeleton 加载态 ===== */
.panel--skeleton {
  position: relative;
}
.panel--skeleton .panel__value-row,
.panel--skeleton .panel__sub,
.panel--skeleton .panel__time,
.panel--skeleton #poll-area {
  display: none !important;
}
.panel--skeleton .panel__skeleton-bar {
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(0,0,0,0.05) 25%, rgba(0,0,0,0.09) 37%, rgba(0,0,0,0.05) 63%);
  background-size: 400% 100%;
  animation: skeletonShimmer 1.3s ease-in-out infinite;
  margin: 4px 0 8px;
}
.panel--skeleton .panel__skeleton-sub {
  height: 14px;
  width: 60%;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(0,0,0,0.04) 25%, rgba(0,0,0,0.08) 37%, rgba(0,0,0,0.04) 63%);
  background-size: 400% 100%;
  animation: skeletonShimmer 1.3s ease-in-out infinite;
}
@media (prefers-color-scheme: dark) {
  .panel--skeleton .panel__skeleton-bar {
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 37%, rgba(255,255,255,0.06) 63%);
    background-size: 400% 100%;
  }
  .panel--skeleton .panel__skeleton-sub {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.10) 37%, rgba(255,255,255,0.05) 63%);
    background-size: 400% 100%;
  }
}