
    * { 
      box-sizing: border-box; 
      margin: 0; 
      padding: 0; 
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft JhengHei", sans-serif; 
      -webkit-tap-highlight-color: transparent; 
    }
    body { 
      background-color: #f4f5f7; 
      color: #222; 
      display: flex; 
      justify-content: center; 
      min-height: 100vh; 
    }

    /* 容器增加底部 padding，防止被底部常驻悬浮栏遮挡内容 */
    .app-container { 
      width: 100%; 
      max-width: 480px; 
      background: #fff; 
      min-height: 100vh; 
      position: relative; 
      box-shadow: 0 0 20px rgba(0,0,0,0.08); 
      padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); 
    }
    
    /* Red Header Section */
    .header-banner {
      background: linear-gradient(135deg, #e60039 0%, #c2002b 100%);
      color: #fff;
      padding: 20px 16px 48px;
      border-radius: 0 0 24px 24px;
      position: relative;
      overflow: hidden;
    }
    .header-banner::after {
      content: '';
      position: absolute;
      right: -30px;
      top: -30px;
      width: 140px;
      height: 140px;
      background: rgba(255,255,255,0.08);
      border-radius: 50%;
      pointer-events: none;
    }
    
    .cert-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      background: rgba(255, 255, 255, 0.2);
      backdrop-filter: blur(4px);
      padding: 4px 12px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 600;
      margin-bottom: 14px;
    }

    .app-main-info {
      display: flex;
      gap: 14px;
      align-items: center;
      margin-bottom: 14px;
    }
    
    /* Main App Icon Container & Image */
    .app-icon {
      width: 72px;
      height: 72px;
      background: #fff;
      border: 2px solid rgba(255,255,255,0.8);
      border-radius: 18px;
      box-shadow: 0 6px 16px rgba(0,0,0,0.2);
      overflow: hidden;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .app-icon img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .app-titles { flex: 1; }
    .app-title { font-size: 20px; font-weight: 800; line-height: 1.2; margin-bottom: 4px; color: #fff; }
    .app-subtitle { font-size: 13px; color: rgba(255,255,255,0.9); margin-bottom: 6px; }
    
    .tag-group { display: flex; gap: 6px; flex-wrap: wrap; }
    .tag { background: rgba(255,255,255,0.22); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 500; }
    .tag-gold { background: #fff; color: #c2002b; font-weight: 700; }

    /* Stats row */
    .stats-row {
      display: flex;
      justify-content: space-around;
      align-items: center;
      background: rgba(0, 0, 0, 0.18);
      border-radius: 14px;
      padding: 10px 8px;
      margin-top: 12px;
      text-align: center;
    }
    .stat-item { flex: 1; }
    .stat-item:not(:last-child) { border-right: 1px solid rgba(255,255,255,0.2); }
    .stat-val { font-size: 16px; font-weight: 800; color: #fff; display: flex; align-items: center; justify-content: center; gap: 2px; }
    .stat-val .star { color: #ffca28; font-size: 14px; }
    .stat-lbl { font-size: 11px; color: rgba(255,255,255,0.85); margin-top: 2px; }

    /* Floating Card */
    .float-card {
      margin: -28px 16px 20px;
      background: #fff;
      border-radius: 16px;
      padding: 16px;
      box-shadow: 0 8px 24px rgba(0,0,0,0.08);
      position: relative;
      z-index: 2;
      border: 1px solid #ffe8ed;
    }
    .vip-title { font-size: 15px; font-weight: 700; color: #c2002b; display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
    .vip-features { display: flex; justify-content: space-between; font-size: 12px; color: #444; background: #fff5f7; padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; font-weight: 600; }

    .stock-bar { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #333; }
    .stock-badge { background: #ffebee; color: #d32f2f; font-weight: 800; padding: 2px 8px; border-radius: 12px; }
    .timer-badge { background: #d32f2f; color: #fff; font-weight: 700; padding: 3px 10px; border-radius: 12px; font-size: 12px; }

    /* Platforms List Section */
    .section-title { font-size: 16px; font-weight: 800; padding: 0 16px; margin: 20px 0 12px; display: flex; align-items: center; gap: 8px; color: #111; }
    .section-title::before { content: ''; width: 4px; height: 16px; background: #e60039; border-radius: 2px; }

    .platform-list { padding: 0 16px; display: flex; flex-direction: column; gap: 10px; }
    .platform-item { display: flex; align-items: center; justify-content: space-between; background: #f9fafb; border: 1px solid #edf0f3; padding: 12px 14px; border-radius: 12px; }
    .platform-info { display: flex; align-items: center; gap: 12px; }
    
    /* Platform Icon & Image */
    .platform-icon {
      width: 44px;
      height: 44px;
      border-radius: 10px;
      overflow: hidden;
      flex-shrink: 0;
      background: #fff;
      border: 1px solid #eee;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    }
    .platform-icon img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .platform-name { font-size: 14px; font-weight: 700; color: #111; margin-bottom: 2px; }
    .platform-desc { font-size: 11px; color: #666; }
    
    .btn-unlock-item {
      background: linear-gradient(135deg, #e60039, #c2002b);
      color: #fff;
      font-size: 12px;
      font-weight: 700;
      padding: 6px 12px;
      border-radius: 20px;
      border: none;
      cursor: pointer;
      box-shadow: 0 2px 8px rgba(230,0,57,0.25);
      white-space: nowrap;
    }

    /* 核心修改：底部固定常驻下载悬浮条 (Fixed Bottom Bar) */
    .download-action-bar {
      position: fixed;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 100%;
      max-width: 480px;
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      padding: 10px 16px;
      padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
      box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.1);
      z-index: 90;
      display: flex;
      align-items: center;
      justify-content: center;
      border-top: 1px solid rgba(0,0,0,0.05);
    }

    .btn-download-main {
      width: 100%;
      background: linear-gradient(135deg, #e60039 0%, #b30024 100%);
      color: #fff;
      font-size: 16px;
      font-weight: 800;
      padding: 14px;
      border: none;
      border-radius: 30px;
      box-shadow: 0 6px 16px rgba(230,0,57,0.35);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      letter-spacing: .3px;
      animation: pulse 2s infinite;
    }
    @keyframes pulse {
      0% { transform: scale(1); }
      50% { transform: scale(1.02); }
      100% { transform: scale(1); }
    }

    /* Modal Overlay (Centered & Enlarged) */
    .modal-overlay {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.65);
      backdrop-filter: blur(4px);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 999;
      padding: 20px;
    }
    .modal-overlay.active { display: flex; }

    .modal-card {
      background: #fff;
      border-radius: 20px;
      width: 100%;
      max-width: 400px;
      padding: 22px 18px 18px;
      box-shadow: 0 20px 40px rgba(0,0,0,0.3);
      position: relative;
      animation: modalUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      max-height: 92dvh;
      overflow-y: auto;
      scrollbar-width: thin;
    }
    @keyframes modalUp {
      from { opacity: 0; transform: scale(0.9); }
      to { opacity: 1; transform: scale(1); }
    }

    .modal-header { text-align: center; margin-bottom: 15px; }
    .modal-title { font-size: 19px; font-weight: 800; color: #111; margin-bottom: 6px; letter-spacing: .2px; }
    .modal-sub { font-size: 12px; color: #777; }
    .modal-important {
      margin-top: 12px;
      background: #fff4f5;
      border: 1px solid #ffd7dc;
      border-radius: 12px;
      padding: 12px;
      text-align: left;
      font-size: 12px;
      line-height: 1.6;
      color: #863b4a;
      font-weight: 500;
    }
    .modal-important strong { display: block; font-size: 14px; color: #bd1739; margin-bottom: 3px; }

    .steps-container { display: flex; flex-direction: column; gap: 9px; margin-bottom: 14px; }
    .step-box {
      display: flex;
      align-items: center;
      gap: 10px;
      background: #f8f9fb;
      border: 1px solid #e8edf2;
      border-radius: 13px;
      padding: 11px 10px;
    }
    .step-box.step-warning { background: #fffafa; border-color: #ffe0e2; }
    .step-circle {
      flex: 0 0 30px;
      height: 30px;
      border-radius: 50%;
      background: #e8323c;
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      font-weight: 800;
    }
    .step-copy { flex: 1; min-width: 0; }
    .step-heading { font-size: 13px; font-weight: 800; color: #20252c; margin-bottom: 3px; }
    .step-detail { font-size: 11.5px; line-height: 1.55; color: #526078; }
    .step-symbol {
      flex: 0 0 36px;
      height: 36px;
      border-radius: 10px;
      background: #e9edf1;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
    }

    .btn-modal-dl {
      width: 100%;
      background: #e60039;
      color: #fff;
      font-size: 16px;
      font-weight: 800;
      padding: 14px;
      border: none;
      border-radius: 12px;
      cursor: pointer;
      text-align: center;
      transition: all 0.2s;
    }
    .btn-modal-dl.disabled { background: #ccc; cursor: not-allowed; }

    @media(max-width:360px){
      .modal-card { padding: 16px 12px; }
      .step-box { padding: 9px; gap: 8px; }
      .step-symbol { flex-basis: 32px; height: 32px; font-size: 18px; }
      .btn-download-main { font-size: 15px; padding: 12px; }
    }
  
/* 修復：首頁與浮動卡片不互相覆蓋；移除橫向溢出 */
html,body{width:100%;overflow-x:hidden}
.app-container{flex:0 1 480px;min-width:0}
.float-card{z-index:3}
.stock-bar{gap:8px;flex-wrap:wrap}
.stock-bar>span:first-child{min-width:0}
.timer-badge{white-space:nowrap}
.modal-overlay{box-sizing:border-box}
.modal-card{overscroll-behavior:contain}
@media(max-width:390px){.vip-features{gap:6px;flex-wrap:wrap}.stats-row{gap:0}.stat-val{font-size:14px}.stat-lbl{font-size:10px}.stock-bar{font-size:12px}}

.demo-label{font-size:10px;color:#8b6570;font-weight:400;white-space:nowrap}.stock-bar{gap:8px}.stock-bar .timer-badge{white-space:nowrap}
