    /* ── 云边粉主题（默认）── */
    :root {
      --bg:            #fff8fa;
      --bg2:           #fef0f5;
      --panel:         #ffffff;
      --panel2:        #fdf5f8;
      --border:        #f4cdd8;
      --border-glow:   rgba(240,100,145,0.18);
      --primary:       #f0528e;
      --primary-d:     #d63b7a;
      --primary-glow:  rgba(240,82,142,0.22);
      --text:          #3d2132;
      --text-dim:      #a07085;
      --text-mid:      #6b4455;
      --danger:        #e05050;
      --success:       #4caf7a;
      --gold:          #f5a842;
      --gold-dim:      #e8c8d0;
      --top-bar-bg:    rgba(255,248,250,0.92);
      --cover-bg:      linear-gradient(135deg,#ffe4ef 0%,#f8d0e8 50%,#eedaef 100%);
      --shadow-card:   0 2px 16px rgba(240,82,142,0.10);
      --shadow-hover:  0 6px 24px rgba(240,82,142,0.18);
      --font-h:        'ZCOOL XiaoWei', 'Noto Serif SC', serif;
      --font-b:        'Noto Serif SC', serif;
    }
    /* ── 仙门紫主题 ── */
    [data-theme="dark"] {
      --bg:            #0e0e0f;
      --bg2:           #141416;
      --panel:         #1a1a1f;
      --panel2:        #202028;
      --border:        #2a2a35;
      --border-glow:   rgba(139,111,255,0.18);
      --primary:       #8b6fff;
      --primary-d:     #6a4fd4;
      --primary-glow:  rgba(139,111,255,0.25);
      --text:          #e8e0d0;
      --text-dim:      #888;
      --text-mid:      #bbb;
      --gold:          #f5c842;
      --gold-dim:      #444;
      --top-bar-bg:    rgba(14,14,15,0.88);
      --cover-bg:      linear-gradient(135deg,#16141f 0%,#1e1a2e 50%,#12101a 100%);
      --shadow-card:   0 2px 12px rgba(0,0,0,0.4);
      --shadow-hover:  0 6px 24px rgba(139,111,255,0.25);
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }

    body {
      min-height: 100vh;
      background: var(--bg);
      background-image:
        radial-gradient(circle at 10% 15%, rgba(240,100,145,0.09) 0%, transparent 35%),
        radial-gradient(circle at 88% 78%, rgba(180,130,220,0.07) 0%, transparent 35%),
        radial-gradient(circle at 55% 45%, rgba(255,180,210,0.04) 0%, transparent 50%);
      font-family: var(--font-b);
      color: var(--text);
      overflow-x: hidden;
    }
    /* 仙门紫主题覆盖 body 背景 */
    [data-theme="dark"] body {
      background-image:
        radial-gradient(ellipse at 15% 30%, rgba(139,111,255,0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 70%, rgba(61,107,82,0.04) 0%, transparent 50%);
    }

    /* ── 顶部栏 ── */
    .top-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 14px 20px;
      border-bottom: 1px solid var(--border-glow);
      background: var(--top-bar-bg);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      box-shadow: 0 1px 8px var(--border-glow);
      position: sticky;
      top: 0;
      z-index: 200;
    }

    .logo {
      font-family: var(--font-h);
      font-size: 20px;
      color: var(--primary);
      letter-spacing: 0.15em;
    }
    .logo-sub {
      font-size: 10px;
      color: var(--text-dim);
      letter-spacing: 0.05em;
      display: block;
      font-family: var(--font-b);
      margin-top: 1px;
    }

    .top-right { display: flex; align-items: center; gap: 10px; position: relative; }

    .btn-login-top {
      background: linear-gradient(135deg, var(--primary), var(--primary-d));
      border: none;
      color: #fff;
      padding: 6px 16px;
      border-radius: 6px;
      font-size: 13px;
      cursor: pointer;
      font-family: var(--font-b);
      transition: opacity 0.2s;
    }
    .btn-login-top:hover { opacity: 0.88; }

    .user-avatar {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--primary), var(--primary-d));
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      font-weight: 700;
      color: #fff;
      cursor: pointer;
      flex-shrink: 0;
      user-select: none;
    }

    .user-dropdown {
      position: absolute;
      top: calc(100% + 10px);
      right: 0;
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 12px;
      min-width: 200px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.15);
      display: none;
      z-index: 300;
      animation: dropdownFade 0.2s ease-out;
    }
    @keyframes dropdownFade {
      from { opacity: 0; transform: translateY(-10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .user-dropdown.open { display: block; }

    /* ── 账户中心 侧边栏布局 ── */
    .modal-box.account-modal-box {
      max-width: 1000px;
      width: 95%;
      height: 85vh;
      border-radius: 24px;
      background: var(--bg);
      display: flex;
      flex-direction: row; /* 左右结构 */
      overflow: hidden;
      border: 1px solid var(--border);
      box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    }

    /* 左侧导航栏 */
    .account-sidebar {
      width: 240px;
      background: var(--panel);
      border-right: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      flex-shrink: 0;
    }
    .account-sidebar-head {
      padding: 30px 24px 20px;
    }
    .account-sidebar-title {
      font-family: var(--font-h);
      font-size: 20px;
      color: var(--primary);
      margin-bottom: 4px;
    }
    .account-sidebar-sub {
      font-size: 11px;
      color: var(--text-dim);
      line-height: 1.4;
    }

    .account-tabs {
      display: flex;
      flex-direction: column; /* 垂直排列 */
      padding: 10px;
      gap: 6px;
      flex: 1;
      border-bottom: none;
      background: transparent;
    }
    .account-tab {
      padding: 12px 16px;
      font-size: 14px;
      color: var(--text-mid);
      cursor: pointer;
      border-radius: 12px;
      display: flex;
      align-items: center;
      gap: 12px;
      transition: all 0.2s;
    }
    .account-tab.is-active {
      background: var(--primary-glow);
      color: var(--primary);
      font-weight: 600;
    }
    .account-tab.is-active::after { display: none; }
    .account-tab:hover:not(.is-active) {
      background: var(--bg2);
      color: var(--text);
    }
    .tab-icon { font-size: 18px; width: 20px; text-align: center; }

    /* 右侧主内容区 */
    .account-main {
      flex: 1;
      display: flex;
      flex-direction: column;
      min-width: 0;
      background: var(--bg);
    }
    .account-main-head {
      padding: 20px 30px;
      border-bottom: 1px solid var(--border);
      background: var(--panel);
      display: flex;
      justify-content: space-between;
      align-items: center;
      z-index: 10;
    }

    .account-scroll {
      flex: 1;
      padding: 30px;
      overflow-y: auto;
      background-image: radial-gradient(circle at 1.5px 1.5px, var(--border) 1px, transparent 0);
      background-size: 32px 32px;
    }

    /* 详情资料网格 */
    .profile-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 16px;
      margin-top: 10px;
    }
    .profile-item {
      padding: 12px 16px;
      background: var(--panel2);
      border: 1px solid var(--border);
      border-radius: 12px;
    }
    .profile-label { font-size: 11px; color: var(--text-dim); margin-bottom: 4px; }
    .profile-value { font-size: 13px; color: var(--text); font-weight: 500; word-break: break-all; }

    @media (max-width: 768px) {
      .modal-box.account-modal-box { flex-direction: column; height: 90vh; }
      .account-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
      .account-tabs { flex-direction: row; overflow-x: auto; padding: 8px; }
      .account-sidebar-head { display: none; }
    }

    /* ── 全局额度卡片 ── */
    .quota-banner {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 16px;
      margin-bottom: 30px;
    }
    .quota-card {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 20px;
      display: flex;
      align-items: center;
      gap: 16px;
      transition: all 0.3s;
      box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    }
    .quota-card:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: 0 8px 24px var(--primary-glow); }
    .quota-icon {
      width: 48px;
      height: 48px;
      background: var(--bg2);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
    }
    .quota-label { font-size: 13px; color: var(--text-dim); margin-bottom: 2px; }
    .quota-value { font-family: var(--font-h); font-size: 28px; color: var(--primary); line-height: 1; }
    .quota-value small { font-size: 14px; opacity: 0.6; margin-left: 2px; }

    /* ── 流水记录列表 ── */
    .ledger-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .ledger-item {
      background: var(--panel);
      border: 1px solid var(--border);
      padding: 16px 20px;
      border-radius: 16px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      transition: all 0.2s;
    }
    .ledger-item:hover { background: var(--panel2); border-color: var(--primary); }
    .ledger-info { display: flex; flex-direction: column; gap: 4px; }
    .ledger-title { font-size: 15px; font-weight: 600; color: var(--text); }
    .ledger-time { font-size: 12px; color: var(--text-dim); }
    .ledger-amount { 
      font-family: var(--font-h); 
      font-size: 20px; 
      font-weight: bold;
    }
    .ledger-amount.plus { color: var(--success); }
    .ledger-amount.minus { color: var(--text-mid); }

    /* ── 游戏进度卡片（我的足迹） ── */
    .history-list { display: grid; gap: 12px; }
    .history-card {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: var(--panel);
      padding: 16px 20px;
      border-radius: 16px;
      border: 1px solid var(--border);
      cursor: pointer;
      transition: all 0.2s;
    }
    .history-card:hover { border-color: var(--primary); transform: translateX(5px); background: var(--panel2); }
    .history-body { flex: 1; }
    .history-name { font-family: var(--font-h); font-size: 18px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
    .history-meta { font-size: 12px; color: var(--text-dim); }
    .history-action-hint { font-size: 13px; color: var(--primary); font-weight: 500; opacity: 0.8; }

    .account-section {
      animation: sectionFade 0.3s ease-out;
    }
    @keyframes sectionFade {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .account-scroll {
      flex: 1;
      padding: 24px;
      overflow-y: auto;
      background-image: radial-gradient(circle at 2px 2px, var(--border) 1px, transparent 0);
      background-size: 24px 24px;
    }

    /* 数据卡片 */
    .data-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 16px;
    }
    .data-card {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 16px;
      transition: all 0.2s;
    }
    .data-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.05); }
    .user-dropdown-email {
      font-size: 11px;
      color: var(--text-dim);
      word-break: break-all;
      margin-bottom: 10px;
      padding-bottom: 10px;
      border-bottom: 1px solid var(--border);
    }
    .btn-sm {
      background: transparent;
      border: 1px solid var(--border);
      color: var(--text-dim);
      padding: 6px 14px;
      border-radius: 6px;
      font-size: 12px;
      cursor: pointer;
      font-family: var(--font-b);
      transition: all 0.2s;
      width: 100%;
      text-align: center;
    }
    .btn-sm:hover { border-color: var(--primary); color: var(--primary); }

    /* ── 主容器 ── */
    #main-wrap {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px 80px;
      min-height: calc(100vh - 70px);
    }

    /* ── 游戏列表网格化 ── */
    #game-list {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: 24px;
      margin-top: 10px;
    }

    @media (max-width: 640px) {
      #game-list {
        grid-template-columns: 1fr;
        gap: 16px;
      }
      #main-wrap { padding: 0 16px 60px; }
    }

    /* ── 欢迎区 ── */
    .hero {
      padding: 40px 0 30px;
      text-align: center;
      max-width: 700px;
      margin: 0 auto;
    }
    .hero-title {
      font-family: var(--font-h);
      font-size: 32px;
      color: var(--primary);
      letter-spacing: 0.2em;
      margin-bottom: 10px;
      background: linear-gradient(to right, var(--primary), #b482dc);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    .hero-sub {
      font-size: 14px;
      color: var(--text-dim);
      line-height: 1.8;
    }

    /* ── 节标题 ── */
    .section-title {
      font-family: var(--font-h);
      font-size: 18px;
      color: var(--text);
      margin: 30px 0 20px;
      padding-left: 14px;
      border-left: 4px solid var(--primary);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .launch-section {
      padding: 4px 18px 8px;
    }
    .launch-note {
      font-size: 12px;
      line-height: 1.7;
      color: var(--text-mid);
      margin-bottom: 12px;
    }
    .launch-toolbar {
      display: flex;
      justify-content: flex-end;
      margin-bottom: 10px;
    }
    .launch-mini-btn {
      background: transparent;
      border: 1px solid var(--border);
      color: var(--primary);
      border-radius: 999px;
      padding: 6px 12px;
      font-size: 12px;
      cursor: pointer;
      font-family: var(--font-b);
    }
    .launch-checkpoint-list {
      display: grid;
      gap: 10px;
    }
    .launch-checkpoint-card {
      border: 1px solid var(--border);
      background: var(--panel2);
      border-radius: 16px;
      padding: 12px 14px;
    }
    .launch-checkpoint-head {
      display: flex;
      justify-content: space-between;
      gap: 10px;
      align-items: center;
    }
    .launch-checkpoint-name {
      font-size: 14px;
      font-weight: 600;
      color: var(--text);
    }
    .launch-checkpoint-badge {
      flex-shrink: 0;
      font-size: 11px;
      color: var(--primary);
      background: var(--primary-glow);
      border-radius: 999px;
      padding: 4px 8px;
    }
    .launch-checkpoint-meta {
      font-size: 11px;
      color: var(--text-dim);
      margin-top: 6px;
      line-height: 1.6;
    }
    .launch-checkpoint-actions {
      display: flex;
      gap: 8px;
      margin-top: 10px;
      flex-wrap: wrap;
    }
    .launch-checkpoint-btn {
      border: 1px solid var(--border);
      background: var(--panel);
      color: var(--text);
      border-radius: 10px;
      padding: 7px 12px;
      font-size: 12px;
      cursor: pointer;
      font-family: var(--font-b);
    }
    .launch-checkpoint-btn.is-primary {
      background: linear-gradient(135deg, var(--primary), var(--primary-d));
      border-color: transparent;
      color: #fff;
    }
    .launch-empty {
      border: 1px dashed var(--border);
      border-radius: 14px;
      padding: 14px 12px;
      font-size: 12px;
      color: var(--text-dim);
      text-align: center;
      background: var(--panel2);
    }

    /* ── 游戏卡片 ── */
    .game-card {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 20px;
      overflow: hidden;
      cursor: pointer;
      transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
      -webkit-tap-highlight-color: transparent;
      box-shadow: var(--shadow-card);
      display: flex;
      flex-direction: column;
      position: relative;
    }
    .game-card:hover {
      transform: translateY(-4px);
      border-color: var(--primary);
    }
    .game-card:active { transform: translateY(-2px); }

    .game-cover {
      width: 100%;
      aspect-ratio: 16/9;
      background: var(--cover-bg);
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
    }
    .game-cover img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .game-cover-placeholder {
      font-size: 52px;
      opacity: 0.5;
    }
    .game-cover-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(61,33,50,0.55) 0%, transparent 55%);
    }
    [data-theme="dark"] .game-cover-overlay {
      background: linear-gradient(to top, rgba(26,26,31,0.75) 0%, transparent 55%);
    }

    .game-body { padding: 12px 14px 14px; }

    .game-title-row {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      margin-bottom: 6px;
    }
    .game-name {
      font-family: var(--font-h);
      font-size: 17px;
      color: var(--text);
      font-weight: 700;
      flex: 1;
      line-height: 1.3;
    }

    /* 标签胶囊 */
    .tags-row { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
    .tag {
      background: var(--bg2);
      color: var(--primary);
      border: 1px solid var(--border);
      font-size: 10px;
      padding: 2px 8px;
      border-radius: 10px;
      white-space: nowrap;
    }
    [data-theme="dark"] .tag {
      background: var(--border);
      color: #aaa;
      border: none;
    }

    .game-desc-card {
      font-size: 12px;
      color: var(--text-dim);
      line-height: 1.6;
      margin-bottom: 10px;
      overflow: hidden;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }

    /* 统计行（卡片底部） */
    .stats-row {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 11px;
      color: var(--text-dim);
      flex-wrap: wrap;
    }
    .stat-item { display: flex; align-items: center; gap: 3px; }

    /* ── 加载/空状态 ── */
    .state-box {
      text-align: center;
      padding: 60px 20px;
      color: var(--text-dim);
      font-size: 13px;
      line-height: 2;
    }
    .spinner {
      display: inline-block;
      font-size: 28px;
      animation: spin 1.2s linear infinite;
      margin-bottom: 12px;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* ── 错误横幅 ── */
    .error-banner {
      background: rgba(224,80,80,0.1);
      border: 1px solid rgba(224,80,80,0.3);
      color: var(--danger);
      border-radius: 9px;
      padding: 12px 16px;
      font-size: 12px;
      margin-bottom: 16px;
      display: none;
    }
    .error-banner.visible { display: block; }

    /* ══════════════════════════════════
       底部详情 Sheet
    ══════════════════════════════════ */
    .sheet-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.5);
      z-index: 400;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
    }
    .sheet-backdrop.open {
      opacity: 1;
      pointer-events: auto;
    }

    .detail-sheet {
      position: fixed;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%) translateY(105%);
      width: 100%;
      max-width: 540px;
      height: 85vh;
      background: var(--panel);
      border-radius: 24px 24px 0 0;
      box-shadow: 0 -10px 40px rgba(0,0,0,0.2), 0 -1px 0 var(--border);
      z-index: 401;
      display: flex;
      flex-direction: column;
      will-change: transform;
      transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
      overflow: hidden;
    }
    @media (min-width: 641px) {
      .detail-sheet {
        bottom: 20px;
        border-radius: 24px;
        height: min(800px, 85vh);
      }
      .detail-sheet.open {
        transform: translateX(-50%) translateY(0);
      }
    }
    .detail-sheet.open {
      transform: translateX(-50%) translateY(0);
    }

    /* 拖拽手柄 */
    .sheet-handle {
      flex-shrink: 0;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 12px 0 8px;
      cursor: grab;
    }
    .sheet-handle:active { cursor: grabbing; }
    .sheet-handle-bar {
      width: 40px;
      height: 5px;
      background: var(--border);
      border-radius: 3px;
      opacity: 0.6;
    }

    .sheet-scroll {
      flex: 1;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      padding-bottom: 40px;
    }
    .sheet-scroll::-webkit-scrollbar { width: 5px; }
    .sheet-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }

    /* Sheet 头部 */
    .sheet-header {
      position: relative;
      background: var(--cover-bg);
    }
    .sheet-close {
      position: absolute;
      top: 16px;
      right: 16px;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: rgba(0,0,0,0.3);
      backdrop-filter: blur(4px);
      border: 1px solid rgba(255,255,255,0.2);
      color: #fff;
      font-size: 16px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10;
      transition: all 0.2s;
    }
    .sheet-close:hover { background: rgba(0,0,0,0.5); transform: rotate(90deg); }

    .sheet-cover {
      width: 100%;
      aspect-ratio: 18/9;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      position: relative;
    }
    .sheet-cover img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .sheet-cover::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, var(--panel) 0%, transparent 40%);
    }

    /* Sheet 信息区 */
    .sheet-info { padding: 20px 24px 0; }

    .sheet-game-name {
      font-family: var(--font-h);
      font-size: 26px;
      color: var(--text);
      font-weight: 700;
      margin-bottom: 12px;
      line-height: 1.2;
    }

    .sheet-stats {
      display: flex;
      align-items: center;
      gap: 16px;
      font-size: 13px;
      color: var(--text-dim);
      margin-bottom: 15px;
    }

    .sheet-desc {
      font-size: 14px;
      color: var(--text-mid);
      line-height: 1.8;
      margin-bottom: 24px;
    }

    /* 按钮组 */
    .sheet-actions {
      padding: 0 24px 30px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }
    .action-btn {
      height: 50px;
      border-radius: 14px;
      font-size: 15px;
      font-weight: 600;
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      transition: all 0.2s;
      font-family: var(--font-b);
    }
    .action-btn.play-btn {
      grid-column: span 2;
      background: var(--primary);
      color: #fff;
      font-size: 16px;
      box-shadow: 0 4px 15px var(--primary-glow);
    }
    .action-btn.play-btn:hover {
      background: var(--primary-d);
      transform: translateY(-2px);
      box-shadow: 0 6px 20px var(--primary-glow);
    }
    .action-btn.secondary {
      background: var(--bg2);
      color: var(--text-mid);
      border: 1px solid var(--border);
    }
    .action-btn.secondary:hover {
      background: var(--border);
      color: var(--text);
    }
    .mode-entry-box {
      margin-bottom: 16px;
      padding: 12px;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: var(--panel2);
    }
    .mode-entry-head {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      gap: 12px;
      margin-bottom: 10px;
    }
    .mode-entry-title {
      font-size: 13px;
      color: var(--text);
      font-weight: 700;
    }
    .mode-entry-hint {
      font-size: 11px;
      color: var(--text-dim);
      text-align: right;
    }
    .mode-entry-list {
      display: grid;
      gap: 8px;
    }
    .mode-entry-btn {
      width: 100%;
      border: 1px solid var(--border);
      background: transparent;
      border-radius: 10px;
      padding: 10px 12px;
      text-align: left;
      cursor: pointer;
      transition: border-color 0.2s, background 0.2s;
      font-family: var(--font-b);
      color: var(--text);
    }
    .mode-entry-btn.active {
      border-color: var(--primary);
      background: rgba(61,33,50,0.06);
    }
    .mode-entry-name {
      font-size: 13px;
      font-weight: 700;
      color: var(--text);
    }
    .mode-entry-desc {
      font-size: 11px;
      color: var(--text-dim);
      line-height: 1.6;
      margin-top: 4px;
    }

    /* 操作按钮行 */
    .sheet-actions {
      display: flex;
      gap: 8px;
      padding: 0 16px 16px;
    }
    .action-btn {
      flex: 1;
      padding: 10px 6px;
      border-radius: 10px;
      border: 1px solid var(--border);
      background: transparent;
      color: var(--text-dim);
      font-size: 12px;
      font-family: var(--font-b);
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 3px;
      transition: all 0.2s;
      -webkit-tap-highlight-color: transparent;
    }
    .action-btn .btn-icon { font-size: 18px; line-height: 1; }
    .action-btn .btn-label { font-size: 10px; }
    .action-btn:hover { border-color: var(--primary); color: var(--primary); }
    .action-btn.active {
      background: var(--primary-glow);
      border-color: var(--primary);
      color: var(--primary);
    }
    .action-btn.active .btn-icon { filter: saturate(2); }
    .action-btn.play-btn {
      background: linear-gradient(135deg, var(--primary), var(--primary-d));
      border-color: transparent;
      color: #fff;
    }
    .action-btn.restart-btn {
      border-color: rgba(190,80,80,0.35);
      color: #8f3d3d;
    }
    .action-btn.play-btn:hover { opacity: 0.88; }

    /* 分隔线 */
    .sheet-divider {
      height: 1px;
      background: var(--border);
      margin: 0 16px 16px;
    }

    /* 评价区 */
    .review-section { padding: 0 16px 32px; }
    .review-section-title {
      font-family: var(--font-h);
      font-size: 15px;
      color: var(--text);
      margin-bottom: 14px;
      padding-left: 8px;
      border-left: 3px solid var(--primary);
    }

    /* 写评价折叠区 */
    .write-review-toggle {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 14px;
      background: var(--panel2);
      border: 1px solid var(--border);
      border-radius: 10px;
      cursor: pointer;
      margin-bottom: 12px;
      font-size: 13px;
      color: var(--text-dim);
      transition: border-color 0.2s;
      -webkit-tap-highlight-color: transparent;
    }
    .write-review-toggle:hover { border-color: var(--primary); }
    .write-review-toggle-icon { transition: transform 0.2s; }
    .write-review-toggle.open .write-review-toggle-icon { transform: rotate(180deg); }

    .write-review-form {
      background: var(--panel2);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 14px;
      margin-bottom: 16px;
      display: none;
    }
    .write-review-form.open { display: block; }

    /* 星级选择 */
    .star-selector {
      display: flex;
      gap: 6px;
      margin-bottom: 12px;
    }
    .star-btn {
      font-size: 24px;
      background: none;
      border: none;
      cursor: pointer;
      line-height: 1;
      color: var(--gold-dim);
      transition: color 0.15s, transform 0.1s;
      -webkit-tap-highlight-color: transparent;
    }
    .star-btn.active, .star-btn:hover { color: var(--gold); }
    .star-btn:active { transform: scale(1.2); }

    .review-textarea {
      width: 100%;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 10px 12px;
      color: var(--text);
      font-family: var(--font-b);
      font-size: 13px;
      resize: none;
      height: 80px;
      outline: none;
      margin-bottom: 10px;
      transition: border-color 0.2s;
    }
    .review-textarea:focus { border-color: var(--primary); }
    .review-textarea::placeholder { color: var(--text-dim); }

    .review-nickname {
      width: 100%;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 9px 12px;
      color: var(--text);
      font-family: var(--font-b);
      font-size: 13px;
      outline: none;
      margin-bottom: 10px;
      transition: border-color 0.2s;
    }
    .review-nickname:focus { border-color: var(--primary); }
    .review-nickname::placeholder { color: var(--text-dim); }

    .btn-submit-review {
      width: 100%;
      padding: 10px;
      background: linear-gradient(135deg, var(--primary), var(--primary-d));
      border: none;
      border-radius: 8px;
      color: #fff;
      font-family: var(--font-h);
      font-size: 14px;
      cursor: pointer;
      letter-spacing: 0.05em;
      transition: opacity 0.2s;
    }
    .btn-submit-review:hover { opacity: 0.88; }
    .btn-submit-review:disabled { opacity: 0.4; cursor: not-allowed; }

    /* 评价列表 */
    .review-item {
      padding: 12px 0;
      border-bottom: 1px solid var(--border);
    }
    .review-item:last-child { border-bottom: none; }

    .review-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 6px;
    }
    .review-nickname-display {
      font-size: 13px;
      color: var(--text);
      font-weight: 700;
    }
    .review-time {
      font-size: 11px;
      color: var(--text-dim);
    }
    .review-stars {
      font-size: 12px;
      margin-bottom: 5px;
      letter-spacing: 2px;
    }
    .star-filled { color: var(--gold); }
    .star-empty  { color: var(--gold-dim); }
    .review-content {
      font-size: 12px;
      color: var(--text-mid);
      line-height: 1.65;
    }

    .login-hint-review {
      text-align: center;
      padding: 16px;
      font-size: 13px;
      color: var(--text-dim);
      background: var(--panel2);
      border: 1px solid var(--border);
      border-radius: 10px;
      margin-bottom: 16px;
    }
    .login-hint-review button {
      display: inline;
      background: none;
      border: none;
      color: var(--primary);
      cursor: pointer;
      font-family: var(--font-b);
      font-size: 13px;
      padding: 0;
    }
    .login-hint-review button:hover { text-decoration: underline; }

    /* 评价加载提示 */
    .reviews-loading {
      text-align: center;
      padding: 20px;
      color: var(--text-dim);
      font-size: 12px;
    }

    /* ══════════════════════════════════
       登录模态框
    ══════════════════════════════════ */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.75);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 600;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s;
    }
    .modal-overlay.visible {
      opacity: 1;
      pointer-events: auto;
    }
    .modal-box {
      width: min(400px, 92vw);
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: 32px 28px 28px;
      text-align: center;
      transform: translateY(12px);
      transition: transform 0.2s;
      position: relative;
      max-height: calc(100vh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }
    .modal-overlay.visible .modal-box { transform: translateY(0); }

    .modal-logo {
      font-family: var(--font-h);
      font-size: 30px;
      color: var(--primary);
      letter-spacing: 0.15em;
      margin-bottom: 4px;
    }
    .modal-sub {
      font-size: 12px;
      color: var(--text-dim);
      margin-bottom: 24px;
    }
    .auth-tabs {
      display: flex;
      margin-bottom: 20px;
      border: 1px solid var(--border);
      border-radius: 8px;
      overflow: hidden;
    }
    .auth-tab {
      flex: 1;
      padding: 9px;
      background: transparent;
      border: none;
      color: var(--text-dim);
      font-family: var(--font-b);
      font-size: 13px;
      cursor: pointer;
      transition: all 0.2s;
    }
    .auth-tab.active { background: var(--primary); color: #fff; font-weight: 700; }

    .auth-field {
      width: 100%;
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: 9px;
      padding: 12px 14px;
      color: var(--text);
      font-family: var(--font-b);
      font-size: 14px;
      outline: none;
      margin-bottom: 10px;
      transition: border-color 0.2s;
    }
    .auth-field:focus { border-color: var(--primary); }
    .auth-field::placeholder { color: var(--text-dim); }

    .btn-auth {
      width: 100%;
      padding: 13px;
      background: linear-gradient(135deg, var(--primary), var(--primary-d));
      border: none;
      border-radius: 9px;
      color: #fff;
      font-family: var(--font-h);
      font-size: 16px;
      cursor: pointer;
      transition: opacity 0.2s;
      margin-top: 2px;
      letter-spacing: 0.05em;
    }
    .btn-auth:hover { opacity: 0.88; }
    .btn-auth:disabled { opacity: 0.4; cursor: not-allowed; }

    .auth-msg {
      font-size: 12px;
      margin-top: 10px;
      min-height: 18px;
      line-height: 1.5;
    }
    .auth-msg.error { color: var(--danger); }
    .auth-msg.ok    { color: var(--success); }

    .modal-close {
      position: absolute;
      top: 16px;
      right: 18px;
      background: none;
      border: none;
      color: var(--text-dim);
      font-size: 20px;
      cursor: pointer;
      line-height: 1;
    }
    .modal-close:hover { color: var(--text); }

    /* 账户中心样式已抽到 /vendor/runtime-account.css */

    /* ── 正在制作中区块 ── */
    .wip-section { margin-top: 28px; }

    .wip-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    .wip-card {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 14px;
      overflow: hidden;
      opacity: 0.72;
      filter: saturate(0.7);
      transition: opacity 0.2s;
    }
    .wip-card:hover { opacity: 0.88; filter: saturate(0.9); }

    .wip-cover {
      width: 100%;
      aspect-ratio: 3/4;
      position: relative;
    }
    .wip-cover::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(61,33,50,0.65) 0%, transparent 50%);
    }
    [data-theme="dark"] .wip-cover::after {
      background: linear-gradient(to top, rgba(14,14,15,0.75) 0%, transparent 50%);
    }

    /* WIP 封面渐变通过 style 内联注入，来自 DB cover_gradient 字段 */

    .wip-body { padding: 8px 10px 12px; }
    .wip-body .tags-row { margin-bottom: 5px; }

    .wip-name {
      font-family: var(--font-h);
      font-size: 13px;
      color: var(--text);
      line-height: 1.4;
      margin-bottom: 6px;
    }

    .wip-badge {
      font-size: 10px;
      color: var(--primary);
      background: var(--bg2);
      border: 1px dashed var(--border);
      border-radius: 6px;
      padding: 2px 7px;
      display: inline-block;
      letter-spacing: 0.05em;
    }
    [data-theme="dark"] .wip-badge {
      color: #888;
      background: transparent;
    }

    /* ── 主题切换按钮 ── */
    .theme-toggle {
      background: transparent;
      border: 1px solid var(--border);
      border-radius: 8px;
      width: 34px;
      height: 34px;
      font-size: 16px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: border-color 0.2s, background 0.2s;
      -webkit-tap-highlight-color: transparent;
    }
    .theme-toggle:hover { border-color: var(--primary); background: var(--bg2); }

    /* ── Hero 云朵 ── */
    .hero-cloud {
      font-size: 22px;
      letter-spacing: 8px;
      opacity: 0.55;
      margin-bottom: 6px;
      animation: cloud-drift 4s ease-in-out infinite alternate;
    }
    @keyframes cloud-drift {
      from { transform: translateX(-4px); }
      to   { transform: translateX(4px); }
    }

    /* ── 响应式 ── */
    @media (min-width: 560px) {
      #main-wrap { padding-left: 0; padding-right: 0; }
    }

    /* ── 手机端响应式补丁 ── */

    /* 1. Safe Area 适配（刘海屏 / 底部手势条） */
    .top-bar {
      padding-top: calc(14px + env(safe-area-inset-top));
    }
    #main-wrap {
      padding-bottom: calc(60px + env(safe-area-inset-bottom));
    }
    .detail-sheet {
      padding-bottom: env(safe-area-inset-bottom);
    }

    /* 2. 全局触摸目标最小高度 44px */
    .btn-login-top,
    .btn-sm,
    .btn-auth,
    .btn-submit-review,
    .action-btn,
    .theme-toggle,
    .auth-tab,
    .write-review-toggle {
      min-height: 44px;
    }
    /* theme-toggle 已有固定宽高 34px，手机上放宽 */
    @media (max-width: 560px) {
      .theme-toggle {
        width: 40px;
        height: 40px;
      }
      .user-avatar {
        width: 40px;
        height: 40px;
      }
      .sheet-close {
        width: 36px;
        height: 36px;
        font-size: 16px;
      }
    }

    /* 3. 游戏卡片响应式布局 */
    /* 中屏（400–560px）：双列 */
    @media (max-width: 560px) and (min-width: 400px) {
      #game-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
      }
      #game-list .game-card {
        margin-bottom: 0;
      }
    }
    /* 小屏（<400px）：单列，撑满 */
    @media (max-width: 399px) {
      #game-list {
        display: block;
      }
      #game-list .game-card {
        margin-bottom: 12px;
      }
    }

    /* 4. 详情 Sheet 手机优化 */
    @media (max-width: 560px) {
      .detail-sheet {
        max-height: 85vh;
        height: auto;
      }
      .sheet-scroll {
        max-height: calc(85vh - 26px); /* 减去拖拽手柄高度 */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
      }
    }

    /* 5. 登录弹窗手机优化 */
    @media (max-width: 480px) {
      .modal-box {
        width: calc(100% - 32px);
        padding: 24px 18px 20px;
        border-radius: 14px;
      }
      .sheet-actions {
        grid-template-columns: 1fr;
      }
      .sheet-cover {
        height: 196px;
      }
      .sheet-stats {
        flex-wrap: wrap;
        row-gap: 6px;
      }
      .top-right {
        gap: 10px;
      }
      .user-dropdown {
        min-width: min(220px, calc(100vw - 20px));
        max-width: calc(100vw - 20px);
        right: 0;
        padding: 10px 12px;
      }
      .user-dropdown-email {
        font-size: 10px;
        line-height: 1.5;
      }
    }

    /* 6. top-bar 极小屏 Logo 缩小 */
    @media (max-width: 380px) {
      .logo {
        font-size: 16px;
      }
      .logo-sub {
        font-size: 9px;
      }
      .btn-login-top {
        padding: 6px 10px;
        font-size: 12px;
        white-space: nowrap;
      }
    }

    /* 7. 极小屏（≤360px）Hero 与按钮字号缩减 */
    @media (max-width: 360px) {
      .hero-title {
        font-size: 22px;
        letter-spacing: 0.1em;
      }
      .hero-sub {
        font-size: 11px;
      }
      .hero-cloud {
        font-size: 18px;
        letter-spacing: 5px;
      }
      .btn-auth {
        font-size: 14px;
        padding: 11px;
      }
      .section-title {
        font-size: 13px;
      }
      .sheet-game-name {
        font-size: 18px;
      }
      .action-btn {
        padding: 8px 4px;
      }
    }

    /* 8. #main-wrap 横向内边距统一（已有 16px，safe area 补全） */
    @media (max-width: 560px) {
      #main-wrap {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
      }
    }
