/* =========================================================
   TOPlayer · 高阶玩家 — V8 mobile app / download page
   Faithful clone of OKX /download (top hero + oneApp +
   powerfulPlatform + bottom download bar). Original class
   names kept; tokens mapped to v8, imagery rebuilt in CSS.
   Loads on top of home.css.
   ========================================================= */

.index_download__fP7CU { background-color: var(--bg); color: var(--text); overflow-x: hidden; }
.index_download__fP7CU * { box-sizing: border-box; }
.index_downloadInner__W-Vgs { width: 100%; max-width: 1248px; margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; align-items: center; }

/* ---- shared store buttons / qr ---- */
.store-btns { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.store-btn { display: inline-flex; align-items: center; gap: 11px; height: 52px; padding: 0 18px; border-radius: 12px; background: #ffffff; color: #0a0a0c; transition: transform .15s ease; }
.store-btn:hover { transform: translateY(-2px); }
.store-btn > i { font-size: 25px; }
.store-btn .sb-t { display: flex; flex-direction: column; line-height: 1.12; }
.store-btn .sb-t small { font-size: 10px; opacity: .7; }
.store-btn .sb-t b { font-size: 15px; font-weight: 700; }
.store-qr { width: 96px; height: 96px; border-radius: 12px; background: #fff; display: grid; place-items: center; color: #0a0a0c; flex: 0 0 auto; }
.store-qr i { font-size: 56px; }

/* ---- CSS phone mockup ---- */
.app-phone { width: 270px; height: 552px; border-radius: 40px; background: #14160d; border: 10px solid #1c1f12; box-shadow: 0 34px 90px rgba(0,0,0,.55); position: relative; overflow: hidden; flex: 0 0 auto; }
.app-phone::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 116px; height: 24px; background: #1c1f12; border-radius: 0 0 16px 16px; z-index: 3; }
.app-phone .scr { position: absolute; inset: 0; background: radial-gradient(120% 70% at 50% 0%, rgba(188,255,47,.22), transparent 55%), linear-gradient(180deg, #0f1209, #070806); padding: 42px 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.app-phone .p-top { display: flex; align-items: center; justify-content: space-between; }
.app-phone .p-top .p-bal { font-family: var(--mono); font-size: 20px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.app-phone .p-top .p-dot { width: 30px; height: 30px; border-radius: 50%; background: var(--grad-soft); }
.app-phone .p-chart { height: 92px; border-radius: 12px; background: linear-gradient(180deg, rgba(188,255,47,.16), transparent); border: 1px solid rgba(255,255,255,.06); position: relative; overflow: hidden; }
.app-phone .p-chart::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 58%; background: linear-gradient(180deg, transparent, rgba(188,255,47,.14)); clip-path: polygon(0 70%, 16% 52%, 33% 64%, 50% 36%, 66% 50%, 83% 24%, 100% 38%, 100% 100%, 0 100%); }
.app-phone .p-row { height: 38px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.05); }
.app-phone .p-cta { margin-top: auto; height: 42px; border-radius: 10px; background: var(--grad); }

/* ---- CSS desktop mockup ---- */
.app-desktop { width: 100%; max-width: 540px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #0c0e08; box-shadow: 0 34px 90px rgba(0,0,0,.5); }
.app-desktop .d-bar { height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #14160d; border-bottom: 1px solid var(--border); }
.app-desktop .d-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a2d1f; }
.app-desktop .d-body { aspect-ratio: 16 / 10; background: radial-gradient(120% 90% at 80% 0%, rgba(188,255,47,.14), transparent 60%), #0a0c07; padding: 18px; display: grid; grid-template-columns: 70px 1fr; gap: 14px; }
.app-desktop .d-side { border-radius: 10px; background: rgba(255,255,255,.04); }
.app-desktop .d-main { display: flex; flex-direction: column; gap: 12px; }
.app-desktop .d-main .d-chart { flex: 1; border-radius: 10px; background: linear-gradient(180deg, rgba(188,255,47,.14), transparent); border: 1px solid rgba(255,255,255,.06); }
.app-desktop .d-main .d-cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; height: 56px; }
.app-desktop .d-main .d-cards > i { border-radius: 8px; background: rgba(255,255,255,.05); }

/* =========================================================
   1 · top download hero
   ========================================================= */
.index_downloadTopSection__Yb87R { width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 120px 0 64px; gap: 40px; }
.index_titleContainer__S68md { display: flex; flex-direction: column; gap: 14px; }
.index_title__rfrkU { font-size: clamp(38px, 6vw, 56px); font-weight: 800; line-height: 1.18; letter-spacing: -0.03em; }
.index_title__rfrkU mark { background: unset; color: #BCFF2F; }
.index_subtitle__h916r { color: var(--muted); font-size: clamp(16px, 2.2vw, 22px); line-height: 1.5; }
.index_downloadAppBtnGroup__2h-4K { display: flex; justify-content: center; margin-top: 6px; }
.index_topSectionBanner__71Udq { display: flex; justify-content: center; width: 100%; }

@media (min-width: 1024px) {
    .index_downloadTopSection__Yb87R { flex-direction: row; justify-content: space-between; text-align: left; padding: 96px 0; gap: 40px; min-height: 560px; }
    .index_downloadTopTitleSection__hBg82 { max-width: 520px; }
    .index_titleContainer__S68md { gap: 18px; }
    .index_downloadAppBtnGroup__2h-4K { justify-content: flex-start; }
    .index_topSectionBanner__71Udq { width: auto; justify-content: flex-end; }
}

/* =========================================================
   2 · oneApp (text left · phone right)
   ========================================================= */
.index_oneAppWrapper__gEweb { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 40px; padding: 60px 0; text-align: center; }
.index_oneAppContentWrapper__uXPTJ { display: flex; justify-content: center; }
.index_oneAppContent__YGWYb { max-width: 460px; }
.index_oneAppTitle__XsdzX { font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 16px; }
.index_oneAppSubtitle__XjQAR { color: var(--dim); font-size: 18px; line-height: 1.68; }
.index_oneAppImageWrapper__F2awp { display: flex; justify-content: center; align-items: center; }

@media (min-width: 1024px) {
    .index_oneAppWrapper__gEweb { flex-direction: row; justify-content: space-between; text-align: left; padding: 80px 0; }
    .index_oneAppContent__YGWYb { max-width: 480px; }
}

/* =========================================================
   3 · powerfulPlatform (desktop image left · text right)
   ========================================================= */
.index_powerfulPlatformWrapper__FeU42 { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 40px; padding: 60px 0; text-align: center; }
.index_powerfulPlatformWrapper__FeU42.index_isCefi__LJgiE { margin-bottom: 40px; }
.index_powerfulPlatformContentWrapper__mM5e7 { max-width: 460px; }
.index_powerfulPlatformTitle__3Q07A { font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 16px; }
.index_powerfulPlatformSubtitle__5xbQb { color: var(--dim); font-size: 18px; line-height: 1.68; }
.index_powerfulPlatformImageWrapper__xu8Dk { display: flex; justify-content: center; width: 100%; }

@media (min-width: 1024px) {
    .index_powerfulPlatformWrapper__FeU42 { flex-direction: row; justify-content: space-between; text-align: left; padding: 80px 0; }
    .index_powerfulPlatformWrapper__FeU42.index_isCefi__LJgiE { margin-bottom: 100px; }
    .index_powerfulPlatformImageWrapper__xu8Dk { width: 50%; }
    .index_powerfulPlatformContentWrapper__mM5e7 { width: 42%; }
}

/* =========================================================
   4 · bottom download bar
   ========================================================= */
.index_downloadAppWrapper__Ol4FM { background-color: var(--panel); border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 18px; align-items: center; padding: 22px 24px; }
.index_downloadLeft__cz75h { display: flex; align-items: center; gap: 14px; }
.index_downloadAppIcon__u800z { width: 52px; height: 52px; border-radius: 13px; background: url('../assets/images/toplayer.svg') center/contain no-repeat, var(--grad); }
.index_downloadAppTitleWrapper__NkDJz { display: flex; flex-direction: column; }
.index_downloadAppTitle__QEoax { font-size: 20px; font-weight: 700; line-height: 24px; }
.index_downloadAppSubtitle__AMZO\+ { color: var(--muted); font-size: 15px; line-height: 20px; }
.index_downloadRight__Zfaov { display: flex; align-items: center; justify-content: center; }

@media (min-width: 768px) {
    .index_downloadAppWrapper__Ol4FM { flex-direction: row; justify-content: space-between; padding-left: max(24px, calc(50% - 600px)); padding-right: max(24px, calc(50% - 600px)); }
}
