  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  }

  html {
    /* hidden 降级；clip 可裁切 fixed 后代（iOS 光斑溢出的关键） */
    overflow-x: hidden;
    overflow-x: clip;
  }

  body {
    background: #05070c;
    /* 100vh 在移动端包含地址栏遮挡区导致居中偏下；dvh 跟随实际可视高度 */
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    position: relative;
    /* 关键：不能用 overflow-x:hidden——配合 height 会让 body 变成滚动容器，window.scrollTo 失效；
       clip 不会创建滚动容器，视口保持唯一滚动上下文，居中滚动才有效 */
    overflow-x: hidden;
    overflow-x: clip;
  }

  /* ===== 背景光斑（放进 fixed + overflow:hidden 容器物理裁剪，杜绝任何浏览器下撑大布局视口） ===== */
  .bg-layer {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
  }

  .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    pointer-events: none;
    animation: blobFloat 16s ease-in-out infinite;
  }

  .blob-1 {
    width: 520px; height: 520px;
    background: radial-gradient(circle, #0090ff 0%, #003d66 45%, transparent 70%);
    top: -200px; left: -160px;
  }

  .blob-2 {
    width: 460px; height: 460px;
    background: radial-gradient(circle, #00b8d4 0%, #004d5c 45%, transparent 70%);
    bottom: -180px; right: -140px;
    animation-delay: -6s;
    opacity: 0.28;
  }

  @keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -25px) scale(1.06); }
  }

  body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.025 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
  }

  /* ===== 页面容器 ===== */
  .page-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    animation: pageIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes pageIn {
    from { opacity: 0; transform: translateY(30px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }

  /* ===== 毛玻璃卡片 ===== */
  .glass-card {
    position: relative;
    background: rgba(16, 22, 34, 0.6);
    backdrop-filter: blur(32px) saturate(150%);
    -webkit-backdrop-filter: blur(32px) saturate(150%);
    border-radius: 26px;
    padding: 42px 38px 22px;
    box-shadow:
      0 30px 70px rgba(0, 0, 0, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    /* ⚠️ 关键改动：移除 overflow: hidden，避免裁剪下拉面板 */
    /* 之前：overflow: hidden; */
  }

  /* 用伪元素绘制渐变边框（不再依赖 overflow:hidden） */
  .glass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 26px;
    padding: 1px;
    background: linear-gradient(160deg,
      rgba(0, 180, 255, 0.55) 0%,
      rgba(0, 180, 255, 0.08) 40%,
      rgba(0, 180, 255, 0.08) 60%,
      rgba(0, 180, 255, 0.45) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 3;
  }

  .glass-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 26px;
    background: radial-gradient(circle at 0% 0%, rgba(0, 180, 255, 0.06) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
  }

  /* ===== 顶部轮播广告 ===== */
  .ad-carousel {
    position: relative;
    width: 100%;
    margin: 0 auto 16px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(16, 22, 34, 0.6);
    backdrop-filter: blur(32px) saturate(150%);
    -webkit-backdrop-filter: blur(32px) saturate(150%);
    box-shadow:
      0 18px 48px rgba(0, 0, 0, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
    z-index: 2;
  }
  .ad-carousel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1px;
    background: linear-gradient(160deg,
      rgba(0, 180, 255, 0.4) 0%,
      rgba(0, 180, 255, 0.06) 50%,
      rgba(0, 180, 255, 0.3) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 3;
  }

  .ad-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .ad-slide {
    flex: 0 0 100%;
    min-width: 100%;
    display: block;
    line-height: 0;
    position: relative;
  }
  .ad-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 1;
    object-fit: cover;
    display: block;
    border-radius: 18px;
    pointer-events: none;
  }

  /* 切换箭头（仅电脑端显示，移动端用触摸滑动） */
  .ad-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(0, 180, 255, 0.3);
    color: #4dc8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 4;
    opacity: 0;
  }
  .ad-carousel:hover .ad-arrow { opacity: 1; }
  .ad-arrow:hover {
    background: rgba(0, 180, 255, 0.2);
    border-color: rgba(0, 180, 255, 0.6);
  }
  .ad-arrow svg { width: 13px; height: 13px; fill: currentColor; }
  .ad-arrow.prev { left: 8px; }
  .ad-arrow.next { right: 8px; }
  @media (max-width: 520px) {
    .ad-arrow { display: none; }
  }

  /* 指示点 */
  .ad-dots {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 4;
  }
  .ad-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.25s ease;
  }
  .ad-dot.active {
    width: 16px;
    border-radius: 3px;
    background: #4dc8f0;
    box-shadow: 0 0 6px rgba(0, 180, 255, 0.5);
  }

  /* ===== 头部 ===== */
  .header {
    text-align: center;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
  }

  .logo-wrap {
    position: relative;
    width: 84px;
    height: 84px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .logo-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
      #00b8ff 0deg,
      transparent 120deg,
      #00b8ff 240deg,
      transparent 360deg);
    filter: blur(5px);
    opacity: 0.7;
    animation: spin 7s linear infinite;
    z-index: 0;
  }

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

  .logo-inner {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(10, 16, 28, 0.92);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    box-shadow:
      inset 0 2px 8px rgba(0, 180, 255, 0.12),
      inset 0 -3px 10px rgba(0, 0, 0, 0.6);
  }

  .logo-inner svg {
    width: 40px;
    height: 40px;
    fill: #ffffff;
    filter: drop-shadow(0 0 6px rgba(0, 180, 255, 0.6));
  }

  .header h1 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
  }

  .header h1 .grad {
    background: linear-gradient(90deg, #4dc8f0 0%, #00b8ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
  }

  .header p {
    color: #7d92a8;
    font-size: 0.86rem;
    letter-spacing: 0.4px;
  }

  /* ===== 表单 ===== */
  .field {
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
    /* ⚠️ 关键：建立独立层叠上下文，让下拉在字段内也可控 */
    isolation: isolate;
  }

  .field label {
    display: block;
    color: #8ba0b8;
    font-size: 0.76rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
    padding-left: 2px;
    transition: color 0.25s;
  }

  .field:focus-within label {
    color: #4dc8f0;
  }

  .input-wrap {
    position: relative;
    display: flex;
    align-items: center;
  }

  .input-icon {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    fill: #4e6a84;
    pointer-events: none;
    transition: all 0.25s;
    z-index: 2;
  }

  .field:focus-within .input-icon {
    fill: #4dc8f0;
  }

  /* 随机生成按钮 */
  .gen-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: rgba(0, 180, 255, 0.08);
    border: 1px solid rgba(0, 180, 255, 0.3);
    border-radius: 8px;
    color: #4dc8f0;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 3;
  }
  .gen-btn:hover {
    background: rgba(0, 180, 255, 0.18);
    border-color: rgba(0, 180, 255, 0.6);
    color: #7de0ff;
  }
  .gen-btn:active { transform: translateY(-50%) scale(0.95); }
  .gen-btn svg { width: 14px; height: 14px; fill: currentColor; }

  /* 有随机按钮的输入框右侧留空 */
  #steamAccount, #steamPassword { padding-right: 62px !important; }

  .field input,
  .field .custom-select-trigger {
    width: 100%;
    padding: 14px 16px 14px 46px;
    background: rgba(8, 14, 24, 0.65);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(120, 160, 200, 0.14);
    border-radius: 12px;
    color: #e6f0f9;
    font-size: 0.94rem;
    outline: none;
    transition: all 0.28s ease;
    font-family: inherit;
    letter-spacing: 0.3px;
    cursor: text;
  }

  .field input::placeholder { color: #4c5f72; }

  .field input:hover,
  .field .custom-select-trigger:hover {
    border-color: rgba(120, 180, 220, 0.28);
    background: rgba(10, 18, 32, 0.75);
  }

  .field input:focus,
  .field .custom-select-trigger:focus {
    border-color: rgba(77, 200, 240, 0.65);
    background: rgba(10, 20, 36, 0.8);
    box-shadow:
      0 0 0 3px rgba(0, 180, 255, 0.08),
      0 0 20px rgba(0, 180, 255, 0.12),
      inset 0 0 12px rgba(0, 180, 255, 0.04);
  }

  /* ===== 自定义下拉选择框 ===== */
  .custom-select {
    position: relative;
    user-select: none;
    z-index: 1;
  }

  .custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding-right: 46px !important; /* 容纳右侧选择图标 */
    color: #4c5f72;
  }

  .custom-select-trigger.has-value {
    color: #e6f0f9;
  }

  .select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 3;
  }
  .select-arrow svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: #4dc8f0;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* ===== 地区选择弹窗 ===== */
  .region-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    pointer-events: none;
  }
  .region-modal.open {
    visibility: visible;
    pointer-events: auto;
  }

  .region-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 12, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .region-modal-panel {
    position: relative;
    width: 420px;
    max-width: calc(100vw - 32px);
    height: 56vh;
    max-height: 480px;
    display: flex;
    flex-direction: column;
    background: rgba(12, 18, 30, 0.97);
    backdrop-filter: blur(30px) saturate(160%);
    -webkit-backdrop-filter: blur(30px) saturate(160%);
    border: 1px solid rgba(0, 180, 255, 0.22);
    border-radius: 18px;
    box-shadow:
      0 30px 80px rgba(0, 0, 0, 0.8),
      0 0 0 1px rgba(0, 180, 255, 0.05),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
  }

  /* 弹窗头部：搜索 + 取消 */
  .region-modal-head {
    flex-shrink: 0;
    padding: 14px 14px 12px;
    border-bottom: 1px solid rgba(0, 180, 255, 0.12);
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(10, 16, 28, 0.9);
  }

  .region-search {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
  }
  .region-search svg {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #5d7591;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
  }
  .region-search input {
    width: 100%;
    padding: 10px 34px 10px 36px;
    background: rgba(8, 14, 24, 0.8);
    border: 1px solid rgba(120, 160, 200, 0.16);
    border-radius: 10px;
    color: #e6f0f9;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .region-search input::placeholder { color: #4c5f72; }
  .region-search input:focus {
    border-color: rgba(77, 200, 240, 0.6);
    box-shadow: 0 0 0 3px rgba(0, 180, 255, 0.1);
  }

  .region-search-clear {
    position: absolute;
    right: 8px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(120, 150, 180, 0.22);
    color: #cfe2f2;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  .region-search-clear.show { display: flex; }
  .region-search-clear:active { background: rgba(120, 150, 180, 0.4); }

  .region-modal-close {
    flex-shrink: 0;
    align-self: stretch;       /* 与搜索框矩形严格同高 */
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: transparent;
    border: 1px solid rgba(120, 160, 200, 0.2);
    border-radius: 10px;
    color: #9fb4c8;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.18s ease;
  }
  .region-modal-close:hover {
    border-color: rgba(77, 200, 240, 0.5);
    color: #4dc8f0;
  }

  /* ===== 提交加载遮罩 ===== */
  .loading-modal {
    position: fixed;
    inset: 0;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 12, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    touch-action: none; /* 禁掉加载遮罩上的触摸滑动 */
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }
  .loading-modal.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
  .loading-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 34px 40px;
    background: rgba(12, 18, 30, 0.95);
    border: 1px solid rgba(0, 180, 255, 0.22);
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    max-width: calc(100vw - 48px);
  }
  /* 进度条 */
  .loading-bar {
    width: 230px;
    max-width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(0, 180, 255, 0.10);
    border: 1px solid rgba(0, 180, 255, 0.22);
    overflow: hidden;
  }
  .loading-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #0090d0, #00e0ff);
    box-shadow: 0 0 12px rgba(0, 200, 255, 0.55);
  }
  .loading-text {
    font-size: 0.92rem;
    color: #d7e5f2;
    letter-spacing: 0.5px;
    line-height: 1.6;
    text-align: center;
    min-height: 1.6em;
    transition: opacity 0.3s ease;
  }
  .loading-text.fading { opacity: 0; }

  /* ===== 通用提示弹窗 ===== */
  .notice-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    pointer-events: none;
  }
  .notice-modal.open { visibility: visible; pointer-events: auto; }
  .notice-mask {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 12, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    touch-action: none; /* 禁掉遮罩上的触摸滑动 */
  }
  .notice-panel {
    position: relative;
    width: 360px;
    max-width: calc(100vw - 40px);
    background: linear-gradient(165deg, rgba(22, 32, 50, 0.98), rgba(10, 15, 26, 0.98));
    backdrop-filter: blur(30px) saturate(160%);
    -webkit-backdrop-filter: blur(30px) saturate(160%);
    border: 1px solid rgba(255, 180, 84, 0.18);
    border-radius: 20px;
    box-shadow:
      0 30px 80px rgba(0, 0, 0, 0.8),
      0 0 40px rgba(255, 170, 60, 0.05),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
    padding: 30px 26px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transform: scale(0.92) translateY(12px);
    transition: transform 0.3s cubic-bezier(0.22, 1.2, 0.36, 1);
  }
  .notice-modal.open .notice-panel {
    transform: scale(1) translateY(0);
  }
  /* 警告图标：圆形发光徽章 */
  .notice-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 38%, rgba(255, 180, 84, 0.22), rgba(255, 150, 40, 0.06));
    border: 1px solid rgba(255, 180, 84, 0.35);
    box-shadow:
      0 0 28px rgba(255, 170, 60, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .notice-icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: #ffb454;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  /* 成功类弹窗：图标徽章改为绿色 */
  .notice-icon.success {
    background: radial-gradient(circle at 50% 38%, rgba(52, 224, 138, 0.22), rgba(30, 180, 100, 0.06));
    border: 1px solid rgba(52, 224, 138, 0.35);
    box-shadow:
      0 0 28px rgba(52, 224, 138, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }
  .notice-icon.success svg { stroke: #34e08a; }
  /* 错误/失败类弹窗：图标徽章改为红色 */
  .notice-icon.error {
    background: radial-gradient(circle at 50% 38%, rgba(255, 91, 91, 0.22), rgba(220, 60, 60, 0.06));
    border: 1px solid rgba(255, 91, 91, 0.35);
    box-shadow:
      0 0 28px rgba(255, 91, 91, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }
  .notice-icon.error svg { stroke: #ff5b5b; }
  .notice-msg {
    width: 100%;
    color: #c9d8e6;
    font-size: 0.9rem;
    line-height: 1.9;
    text-align: center;
    padding-bottom: 4px;
  }
  /* 文本分级：主信息 / 补充说明 */
  .notice-msg .nm-main {
    display: block;
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.6;
    overflow-wrap: anywhere; /* 长邮箱自动断行，防止超出弹窗 */
    word-break: break-all;
  }
  .notice-msg .nm-sub {
    display: block;
    margin-top: 6px;
    color: rgba(180, 200, 220, 0.75);
    font-size: 0.84rem;
    font-weight: 400;
    line-height: 1.8;
  }
  .notice-msg + .notice-close,
  .notice-msg + .dup-btn-row {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 18px;
  }
  .notice-close {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #4dc8f0, #00b8ff);
    border: none;
    border-radius: 12px;
    color: #032738;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 2px;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.2s ease;
  }
  .notice-close:active { transform: scale(0.97); }
  .notice-close:hover {
    filter: brightness(1.08);
    box-shadow: 0 8px 24px rgba(0, 180, 255, 0.4);
  }

  /* 邮箱重复提示弹窗 */
  .dup-title {
    margin: 2px 0 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.06em;
    text-align: center;
  }
  .dup-btn-row {
    display: flex;
    gap: 12px;
    width: 100%;
  }
  .dup-btn {
    flex: 1;
    padding: 12px 0;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  }
  .dup-btn.ghost {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.85);
  }
  .dup-btn.ghost:hover { background: rgba(255, 255, 255, 0.12); }
  .dup-btn.solid {
    background: linear-gradient(135deg, #29b6f6, #0288d1);
    border: none;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 150, 255, 0.25);
  }
  .dup-btn.solid:hover { box-shadow: 0 6px 20px rgba(0, 180, 255, 0.35); }
  .dup-btn:active { transform: scale(0.97); }

  /* 账号占用提醒弹窗 - 账号输入框 */
  .occupy-input-wrap { position: relative; margin-top: 4px; }
  .occupy-input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 76px 11px 14px;
    border-radius: 12px;
    border: 1px solid rgba(94, 186, 255, 0.25);
    background: rgba(10, 30, 60, 0.5);
    color: #fff;
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .occupy-input::placeholder { color: rgba(180, 220, 255, 0.35); }
  .occupy-input:focus {
    border-color: rgba(0, 200, 255, 0.65);
    box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.12);
  }

  /* 注册信息核对弹窗 - 信息卡片（每行固定饱满高度，文案短时留空不缩小） */
  .confirm-card {
    margin: 4px 0 12px;
    padding: 8px 18px;
    width: 100%;
    box-sizing: border-box;
    background: rgba(0, 180, 255, 0.04);
    border: 1px solid rgba(0, 180, 255, 0.1);
    border-radius: 14px;
  }
  .confirm-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    min-height: 66px;
    padding: 10px 0;
    box-sizing: border-box;
  }
  .confirm-label {
    font-size: 0.74rem;
    color: #5a7288;
    letter-spacing: 1px;
  }
  .confirm-value {
    font-size: 1rem;
    color: #eaf6ff;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.45;
    word-break: break-all;
  }
  .confirm-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(94, 186, 255, 0.18), transparent);
  }
  .confirm-tip {
    padding: 12px 0;
    font-size: 0.8rem;
    color: rgba(135, 165, 195, 0.75);
    line-height: 1.65;
    letter-spacing: 0.2px;
  }

  /* ===== 创建成功结果弹窗 ===== */
  .result-modal {
    position: fixed;
    inset: 0;
    z-index: 10003;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }
  .result-modal.open { visibility: visible; opacity: 1; pointer-events: auto; }

  /* 通用提示弹窗（showNotice）置顶：需盖过账号占用/密码失败等弹窗显示校验错误 */
  #noticeModal { z-index: 10004; }

  .result-panel {
    position: relative;
    width: 400px;
    max-width: calc(100vw - 32px);
    max-height: 82vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px 24px 22px;
    background: linear-gradient(160deg, rgba(12, 20, 32, 0.97), rgba(8, 14, 24, 0.97));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 180, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 50px rgba(0, 180, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .result-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0, 180, 255, 0.1);
  }
  .result-check {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(77, 217, 128, 0.1);
    border: 1px solid rgba(77, 217, 128, 0.25);
    border-radius: 50%;
  }
  .result-check svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #4dd980;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .result-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4dd980;
    letter-spacing: 1px;
    text-align: center;
  }

  .result-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(0, 180, 255, 0.04);
    border: 1px solid rgba(0, 180, 255, 0.1);
    border-radius: 10px;
    transition: border-color 0.2s ease, background 0.2s ease;
  }
  .result-item:hover {
    border-color: rgba(0, 180, 255, 0.25);
    background: rgba(0, 180, 255, 0.07);
  }

  .result-item-label {
    font-size: 0.72rem;
    color: #5a7288;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    width: 88px;
  }

  .result-item-value {
    font-size: 0.9rem;
    color: #e6f0f9;
    font-weight: 600;
    letter-spacing: 0.3px;
    word-break: break-all;
    line-height: 1.5;
    font-family: inherit;
    flex: 1;
  }

  /* 地区核验不符：整行警示底色 */
  .result-item-warn {
    background: rgba(255, 90, 90, 0.08);
    border-color: rgba(255, 90, 90, 0.35);
  }
  .result-item-warn:hover {
    background: rgba(255, 90, 90, 0.12);
    border-color: rgba(255, 90, 90, 0.5);
  }
  .result-item-warn .result-item-value { color: #ffd0d0; }

  /* 状态徽标：✓ 一致 / ⚠ 不符 */
  .result-item-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 999px;
    vertical-align: middle;
    white-space: nowrap;
  }
  .result-item-warn .result-item-badge {
    background: rgba(255, 90, 90, 0.18);
    color: #ff9a9a;
  }

  .result-tip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
    background: rgba(255, 170, 0, 0.05);
    border: 1px solid rgba(255, 170, 0, 0.12);
    border-radius: 10px;
  }
  .result-tip-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 170, 0, 0.15);
    border-radius: 50%;
    color: #ffaa00;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
  }
  .result-tip-text {
    font-size: 0.74rem;
    color: #b8a070;
    line-height: 1.6;
    letter-spacing: 0.3px;
  }

  .result-actions {
    display: flex;
    gap: 10px;
  }
  .result-btn-copy, .result-btn-close {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
  .result-btn-copy {
    background: rgba(0, 180, 255, 0.1);
    border: 1px solid rgba(0, 180, 255, 0.35);
    color: #4dc8f0;
  }
  .result-btn-copy:hover { background: rgba(0, 180, 255, 0.18); box-shadow: 0 4px 16px rgba(0, 180, 255, 0.2); }
  .result-btn-copy.copied {
    background: rgba(77, 217, 128, 0.1);
    border-color: rgba(77, 217, 128, 0.35);
    color: #4dd980;
  }
  .result-btn-close {
    background: linear-gradient(135deg, #4dc8f0, #00b8ff);
    color: #032738;
  }
  .result-btn-close:hover { box-shadow: 0 6px 20px rgba(0, 180, 255, 0.35); }
  .result-btn-copy:active, .result-btn-close:active { transform: scale(0.97); }

  /* 列表区 */
  .region-modal-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 180, 255, 0.4) transparent;
    padding: 6px 0;
  }
  .region-modal-list::-webkit-scrollbar { width: 6px; }
  .region-modal-list::-webkit-scrollbar-track { background: transparent; }
  .region-modal-list::-webkit-scrollbar-thumb {
    background: rgba(0, 180, 255, 0.35);
    border-radius: 3px;
  }

  .option-item {
    padding: 12px 18px;
    color: #b8c8d8;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .option-item .opt-code {
    font-size: 0.7rem;
    color: #5d7591;
    letter-spacing: 0.5px;
    flex-shrink: 0;
  }
  .option-item:hover {
    background: rgba(0, 180, 255, 0.08);
    color: #e6f0f9;
  }
  .option-item:active { background: rgba(0, 180, 255, 0.14); }

  .option-item.selected {
    background: rgba(0, 180, 255, 0.12);
    color: #4dc8f0;
    font-weight: 600;
  }
  .option-item.selected .opt-code { color: #4dc8f0; }
  .option-item.selected::after {
    content: "✓";
    color: #4dc8f0;
    font-size: 0.82rem;
    flex-shrink: 0;
  }

  /* 无匹配 */
  .region-modal-empty {
    display: none;
    flex-shrink: 0;
    padding: 40px 20px;
    text-align: center;
    color: #5d7591;
    font-size: 0.86rem;
  }
  .region-modal-empty.show { display: block; }

  /* 弹窗打开时锁定背景滚动 */
  body.region-modal-lock { overflow: hidden; }

  /* ===== 提交按钮 ===== */
  .submit-btn {
    width: 100%;
    margin-top: 12px;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #0090e0 0%, #00b8ff 100%);
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow:
      0 8px 24px rgba(0, 150, 230, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
    z-index: 1;  /* 普通层，下拉展开时会盖过它 */
  }

  .submit-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #00a0f0 0%, #1fc4ff 100%);
    box-shadow:
      0 14px 32px rgba(0, 180, 255, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.25);
  }

  .submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 5px 16px rgba(0, 150, 230, 0.35), inset 0 3px 8px rgba(0, 0, 0, 0.2);
  }

  /* ===== 第二步：教程入口卡片 ===== */
  #step2[hidden], #step3[hidden], #step4[hidden] { display: none; }

  /* ===== 第四步：广告入口卡片 ===== */
  .ad-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .ad-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 14px;
    background: rgba(8, 14, 24, 0.65);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(120, 160, 200, 0.14);
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
  }
  .ad-card:hover {
    border-color: rgba(77, 200, 240, 0.55);
    box-shadow: 0 0 18px rgba(0, 180, 255, 0.18);
  }
  .ad-card:active { transform: scale(0.98); }
  .ad-body { flex: 1; }
  .ad-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #d7e5f2;
    letter-spacing: 0.3px;
  }
  .ad-sub {
    font-size: 0.68rem;
    color: #5a7288;
    margin-top: 3px;
  }
  .ad-go {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(77, 200, 240, 0.12);
    border: 1px solid rgba(77, 200, 240, 0.35);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  }
  .ad-go svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: #4dc8f0;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .ad-card:hover .ad-go {
    background: rgba(77, 200, 240, 0.24);
    border-color: rgba(77, 200, 240, 0.75);
    transform: translateX(2px);
  }

  .tutorial-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 2px 0 18px;
  }

  .tutorial-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 16px 12px 14px;
    background: rgba(8, 14, 24, 0.65);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(120, 160, 200, 0.14);
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
  }
  .tutorial-card:hover {
    border-color: rgba(77, 200, 240, 0.55);
    box-shadow: 0 0 18px rgba(0, 180, 255, 0.18);
  }
  .tutorial-card:active { transform: scale(0.98); }

  .tut-icon {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: #4dc8f0;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .tut-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #d7e5f2;
    letter-spacing: 0.3px;
    line-height: 1.4;
  }
  .tut-sub {
    font-size: 0.68rem;
    color: #5a7288;
    margin-top: 3px;
    letter-spacing: 0.3px;
  }

  .tut-arrow {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #5d7591;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.25s ease, transform 0.25s ease;
  }
  .tutorial-card:hover .tut-arrow {
    stroke: #4dc8f0;
    transform: translateX(2px);
  }

  /* ===== 底部 ===== */
  .footer {
    margin-top: 13px;
    padding-top: 22px;
    border-top: 1px solid rgba(120, 160, 200, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
  }

  .footer p {
    color: #5a7288;
    font-size: 0.74rem;
    letter-spacing: 0.5px;
    line-height: 1.7;
  }

  .footer a {
    color: #4dc8f0;
    text-decoration: none;
    transition: color 0.2s;
  }

  .footer a:hover {
    color: #7de0ff;
  }

  /* 激活状态卡片：徽章 + 等宽卡密，自适应窄屏换行 */
  .activate-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 10px 16px;
    background: rgba(8, 14, 24, 0.55);
    border: 1px solid rgba(120, 160, 200, 0.14);
    border-radius: 12px;
    backdrop-filter: blur(10px);
  }
  .act-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
  }
  .act-badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: dotBreath 2s ease-in-out infinite; /* 呼吸灯 */
  }
  @keyframes dotBreath {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.75); }
  }
  .activate-card.inactive .act-badge { color: #3dd68c; }
  .activate-card.inactive .dot {
    background: #3dd68c;
    box-shadow: 0 0 8px rgba(61, 214, 140, 0.55);
  }
  /* 已使用：呼吸灯 + 状态文字均为红色 */
  .activate-card.active .act-badge { color: #f25c5c; }
  .activate-card.active .dot {
    background: #f25c5c;
    box-shadow: 0 0 8px rgba(242, 92, 92, 0.55);
  }
  .act-key {
    font-family: 'Cascadia Mono', Consolas, 'Courier New', monospace;
    font-size: 0.82rem;
    font-weight: 600;
    color: #d7e5f2;
    letter-spacing: 1.5px;
    white-space: nowrap;
    user-select: all; /* 点一下即可全选复制 */
  }
  /* 当前注册邮箱标签（第二步） */
  .cur-email-tag {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 180, 255, 0.25);
    background: rgba(0, 180, 255, 0.07);
    font-size: 0.78rem;
    color: #8ea6bd;
    letter-spacing: 0.5px;
    max-width: 100%;
  }
  .cur-email-tag span {
    color: #d7e5f2;
    font-weight: 600;
    min-width: 0; /* flex 子元素允许收缩 */
    overflow-wrap: anywhere; /* 长邮箱自动断行，防止超出容器 */
    word-break: break-all;
  }
  /* 重新注册按钮（与卡密卡片同款的毛玻璃矩形框，绿色文字） */
  .re-reg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(120, 160, 200, 0.14);
    background: rgba(8, 14, 24, 0.55);
    backdrop-filter: blur(10px);
    color: #34e08a;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .re-reg-btn:hover {
    border-color: rgba(52, 224, 138, 0.4);
    background: rgba(52, 224, 138, 0.08);
  }
  .re-reg-btn[hidden] { display: none; }
  .abort-remain { color: #ff5b5b; font-weight: 700; }
  .abort-total { color: #34e08a; font-weight: 700; }

  /* 响应式 */
  @media (max-width: 520px) {
    /* 垂直居中：空间充足时整组内容居中；矮屏内容超高时 auto margin 自动归零回落顶部，可完整滚动 */
    body { padding: 16px 12px; align-items: center; }
    .page-wrap { margin-top: auto; margin-bottom: auto; }
    /* 光斑改为 vw 尺寸，杜绝 fixed 元素横向溢出导致浏览器放大布局视口 */
    .blob-1 { width: 75vw; height: 75vw; top: -20vw; left: -28vw; }
    .blob-2 { width: 68vw; height: 68vw; bottom: -22vw; right: 0; }
    .glass-card { padding: 24px 18px 14px; border-radius: 20px; }
    .glass-card::before, .glass-card::after { border-radius: 20px; }
    .ad-carousel { margin-bottom: 10px; border-radius: 14px; }
    .ad-carousel::before { border-radius: 14px; }
    .ad-slide img { border-radius: 14px; }
    /* 移动端隐藏左右箭头，保留触摸滑动 */
    .ad-arrow { display: none; }
    .ad-dots { bottom: 4px; }
    .ad-dot { width: 5px; height: 5px; }
    .ad-dot.active { width: 13px; }
    .header { margin-bottom: 10px; }
    .header h1 { font-size: 1.12rem; letter-spacing: 0.3px; }
    .header p { font-size: 0.74rem; line-height: 1.5; }
    .logo-wrap { width: 60px; height: 60px; margin-bottom: 13px; }
    .logo-inner { width: 52px; height: 52px; }
    .logo-inner svg { width: 28px; height: 28px; }
    .field { margin-bottom: 13px; }
    .field label { font-size: 0.68rem; letter-spacing: 0.5px; margin-bottom: 6px; }
    .input-icon { left: 12px; width: 16px; height: 16px; }
    .field input,
    .field .custom-select-trigger {
      padding: 12px 12px 12px 37px;
      font-size: 0.84rem;
    }
    .custom-select-trigger { padding-right: 42px !important; }
    .gen-btn { padding: 4px 8px; font-size: 0.66rem; gap: 3px; }
    .gen-btn svg { width: 12px; height: 12px; }
    #steamAccount, #steamPassword { padding-right: 52px !important; }
    .select-arrow { right: 11px; width: 17px; height: 17px; }
    .submit-btn { padding: 13px; font-size: 0.88rem; letter-spacing: 2px; }
    .footer { margin-top: 9px; padding-top: 14px; }
    .footer p { font-size: 0.68rem; line-height: 1.6; }
    .activate-card { padding: 8px 13px; gap: 6px 10px; border-radius: 10px; }
    .re-reg-btn { padding: 8px 13px; border-radius: 10px; font-size: 0.72rem; }
    .act-badge { font-size: 0.72rem; gap: 6px; }
    .act-key { font-size: 0.76rem; letter-spacing: 1.2px; }
    .tutorial-row { gap: 9px; margin-bottom: 14px; }
    .ad-row { gap: 9px; }
    .ad-card { padding: 13px 10px; gap: 8px; border-radius: 10px; }
    .ad-go { width: 22px; height: 22px; }
    .ad-go svg { width: 11px; height: 11px; }
    .ad-title { font-size: 0.74rem; }
    .ad-sub { font-size: 0.62rem; }
    .tutorial-card { padding: 13px 8px 11px; gap: 7px; border-radius: 10px; }
    .tut-icon { width: 22px; height: 22px; }
    .tut-title { font-size: 0.72rem; }
    .tut-sub { font-size: 0.62rem; }

    /* 结果弹窗移动端适配 */
    .result-panel { width: 100%; max-width: calc(100vw - 24px); padding: 20px 16px 16px; gap: 12px; }
    .result-check { width: 30px; height: 30px; }
    .result-check svg { width: 18px; height: 18px; }
    .result-title { font-size: 1.05rem; }
    .result-item { padding: 10px 12px; gap: 8px; }
    .result-item-label { font-size: 0.66rem; width: 72px; }
    .result-item-value { font-size: 0.82rem; }
    .result-tip { padding: 10px 12px; }
    .result-tip-icon { width: 16px; height: 16px; font-size: 0.66rem; }
    .result-tip-text { font-size: 0.68rem; }
    .result-btn-copy, .result-btn-close { padding: 11px; font-size: 0.82rem; }

    /* 地区弹窗：移动端同样居中的短卡片 */
    .region-modal { align-items: center; justify-content: center; }
    .region-modal-panel {
      width: 100%;
      max-width: calc(100vw - 28px);
      height: 58vh;
      max-height: 460px;
      border-radius: 18px;
    }
    .region-modal-head { padding: 10px 12px 12px; }
    .region-search input {
      padding: 12px 36px 12px 38px;
      font-size: 16px; /* ≥16px 防止 iOS 聚焦时自动放大页面 */
    }
    .region-modal-close { padding: 0 14px; font-size: 0.9rem; }
    .option-item { padding: 13px 16px; font-size: 0.88rem; }
    .region-modal-list { padding-bottom: env(safe-area-inset-bottom, 0); }
  }

  /* 超窄屏（≤360px：iPhone SE / 小屏 Android） */
  @media (max-width: 360px) {
    body { padding: 10px 10px 16px; }
    .glass-card { padding: 20px 14px 13px; border-radius: 18px; }
    .glass-card::before, .glass-card::after { border-radius: 18px; }
    .header h1 { font-size: 1.1rem; }
    .header p { font-size: 0.74rem; }
    .logo-wrap { width: 64px; height: 64px; margin-bottom: 14px; }
    .logo-inner { width: 54px; height: 54px; }
    .logo-inner svg { width: 28px; height: 28px; }
    .field label { font-size: 0.66rem; letter-spacing: 0.4px; }
    .field input,
    .field .custom-select-trigger {
      padding: 12px 12px 12px 38px;
      font-size: 0.82rem;
    }
    .custom-select-trigger { padding-right: 40px !important; }
    .input-icon { left: 12px; width: 16px; height: 16px; }
    .gen-btn { padding: 3px 6px; font-size: 0.64rem; gap: 2px; }
    .gen-btn svg { width: 12px; height: 12px; }
    #steamAccount, #steamPassword { padding-right: 48px !important; }
    .submit-btn { padding: 13px; font-size: 0.88rem; letter-spacing: 1.5px; }
    .option-item { padding: 11px 14px; font-size: 0.84rem; }
    .footer { margin-top: 9px; padding-top: 13px; }
    .footer p { font-size: 0.66rem; }
    .activate-card { padding: 7px 11px; gap: 5px 8px; }
    .re-reg-btn { padding: 7px 11px; font-size: 0.68rem; }
    .act-badge { font-size: 0.68rem; }
    .act-key { font-size: 0.7rem; letter-spacing: 1px; }
    .tutorial-row { gap: 7px; }
    .tutorial-card { padding: 11px 6px 10px; gap: 6px; }
    .tut-title { font-size: 0.66rem; }
    .tut-sub { font-size: 0.58rem; }
  }

  /* 横屏移动端 */
  @media (max-width: 820px) and (orientation: landscape) and (max-height: 480px) {
    body { padding: 12px 16px; align-items: flex-start; }
    .glass-card { padding: 20px 24px 13px; }
    .footer { margin-top: 9px; padding-top: 13px; }
    .header { margin-bottom: 10px; }
    .logo-wrap { width: 56px; height: 56px; margin-bottom: 10px; }
    .logo-inner { width: 48px; height: 48px; }
    .logo-inner svg { width: 26px; height: 26px; }
    .field { margin-bottom: 12px; }
    .field input { padding: 11px 14px 11px 38px; }
  }
/* ============ 卡密状态拦截页（不存在/已使用/已禁用） ============ */
.key-block[hidden] { display: none; }
.key-block {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 78vh;
  width: 100%;
}
.key-block-card {
  width: 100%;
  max-width: 460px;
  text-align: center;
  padding: 42px 30px 36px;
}
.key-block-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 90, 90, 0.12);
  color: #ff7a7a;
}
.key-block-icon svg { width: 38px; height: 38px; }
.key-block-icon.ok { background: rgba(0, 184, 255, 0.12); color: #4dc8f0; }
.key-block-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: #fff;
}
.key-block-desc {
  font-size: 0.92rem;
  color: #8ba0b8;
  line-height: 1.7;
  margin: 0 0 18px;
}
.key-block-key {
  display: inline-block;
  font-family: Consolas, monospace;
  font-size: 0.95rem;
  letter-spacing: 2px;
  color: #4dc8f0;
  background: rgba(0, 180, 255, 0.08);
  border: 1px solid rgba(0, 180, 255, 0.25);
  border-radius: 10px;
  padding: 9px 18px;
  margin-bottom: 26px;
  word-break: break-all;
}
.key-block-card .submit-btn { margin-top: 4px; }
