/* =========================================================
   TOPlayer · 高阶玩家 — V8 Investor Relations page
   Layout faithfully follows OKX /broker/home: centered banner
   (title + divider tags + button) · two selectable tab-cards
   over a row of feature cards · stacked icon-left advantages.
   v8 dark + lime palette. Loads on top of home.css.
   ========================================================= */

.ir-wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- light body zone (everything after the dark hero) ---- */
.ir-light {
    --bg: #ffffff; --bg-2: #f5f5f2; --panel: #ffffff; --panel-2: #f1f1ee;
    --border: rgba(20, 20, 25, 0.11); --border-2: rgba(20, 20, 25, 0.20);
    --text: #18181b; --muted: #57575e; --dim: #8a8a90;
    background: #ffffff; color: #18181b;
}
.ir-light ::selection { background: rgba(188, 255, 47, 0.4); color: #0a1400; }
/* light-mode accent tweaks for contrast on white */
.ir-light .ir-tc-tag i, .ir-light .ir-tc-ck { color: #5d7e00; }
.ir-light .ir-cta p a { color: #5d7e00; }
.ir-light .ir-tabcard.active { box-shadow: none; border-color: var(--border); }

/* ---- centered banner hero ---- */
.ir-banner { position: relative; overflow: hidden; background-color: #000; border-bottom: 1px solid var(--border); }
.ir-banner .glow { position: absolute; top: -200px; left: 50%; transform: translateX(-50%); width: 1000px; height: 560px; background: radial-gradient(closest-side, var(--grad-soft), transparent 70%); pointer-events: none; }
.ir-banner .ir-wrap { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 150px 24px 124px; }
.ir-kicker { font-family: var(--mono); font-size: 13px; letter-spacing: .18em; color: var(--muted); }
.ir-banner h1 { margin-top: 14px; font-size: clamp(40px, 6.5vw, 64px); font-weight: 900; letter-spacing: -0.035em; line-height: 1.1; color: #fff; }
.ir-banner .ir-sub { margin-top: 18px; max-width: 560px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.ir-tags { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; font-size: 15px; color: var(--text); }
.ir-tag { position: relative; padding: 0 16px; }
.ir-tag:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 12px; background: var(--border-2); }
.ir-actions { margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.ir-link { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px; }
.ir-link:hover { color: #BCFF2F; }

/* sticky condensed bar */
.ir-sticky { position: sticky; top: var(--nav-h); z-index: 40; background: rgba(0,0,0,.72); backdrop-filter: saturate(150%) blur(12px); -webkit-backdrop-filter: saturate(150%) blur(12px); border-bottom: 1px solid var(--border); transform: translateY(-100%); opacity: 0; transition: transform .25s ease, opacity .25s ease; pointer-events: none; }
.ir-sticky.show { transform: none; opacity: 1; pointer-events: auto; }
.ir-sticky .ir-wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.ir-sticky .ir-sl { font-weight: 700; font-size: 16px; }
.ir-sticky .ir-sr { display: flex; align-items: center; gap: 14px; }

/* ---- tab-cards + feature cards ---- */
.ir-sec { padding: 64px 0; }
.ir-sec-head { text-align: center; margin-bottom: 34px; }
.ir-sec-head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -0.025em; }
.ir-sec-head p { margin-top: 12px; color: var(--muted); font-size: 16px; }

/* pull the tab-cards up so they overlap the dark hero (OKX-broker style) */
.ir-light { position: relative; }
.ir-light > .ir-sec:first-of-type { position: relative; z-index: 5; }
.ir-light > .ir-sec:first-of-type .ir-tabrow { margin-top: -116px; }
.ir-tabrow { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.ir-tabcard { text-align: left; border: 1px solid var(--border); border-radius: 16px; background: #fafafa; padding: 22px 24px; cursor: pointer; font-family: inherit; transition: box-shadow .15s ease, border-color .15s ease; }
.ir-tabcard:hover { border-color: var(--border-2); }
.ir-tabcard.active { border-color: transparent; box-shadow: inset 0 0 0 2px #BCFF2F; }
.ir-tc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ir-tc-title { font-size: 22px; font-weight: 700; color: var(--text); line-height: 1.36; }
.ir-tc-ck { display: none; }
.ir-tc-desc { margin-top: 8px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.ir-tc-tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.ir-tc-tag { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--border); border-radius: 5px; padding: 3px 9px; font-size: 12.5px; color: var(--text); }
.ir-tc-tag i { color: #BCFF2F; font-size: 10px; }

.ir-panel { display: none; }
.ir-panel.active { display: block; animation: ir-fade .28s ease; }
@keyframes ir-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ir-modelcards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: stretch; }
.ir-mcard { border: 1px solid var(--border); border-radius: 16px; background: var(--panel); padding: 0 22px 36px; transition: border-color .15s ease, transform .15s ease; }
.ir-mcard:hover { border-color: var(--border-2); transform: translateY(-3px); }
.ir-mcard .ci { width: 48px; height: 48px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; color: #0a1400; font-size: 20px; margin-top: 44px; }
.ir-mcard h4 { margin-top: 28px; font-size: 16px; font-weight: 700; line-height: 1.48; }
.ir-mcard ul { margin-top: 16px; list-style: none; display: grid; gap: 14px; }
.ir-mcard ul li { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.ir-mcard ul li .doc { display: inline-block; margin-top: 4px; color: #5d7e00; text-decoration: underline; text-underline-offset: 2px; }
.ir-modelbtns { margin: 64px 0 48px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- stats ---- */
.ir-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ir-stat { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); padding: 26px 18px; text-align: center; }
.ir-stat .v { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; font-family: var(--mono); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ir-stat .l { margin-top: 6px; color: var(--muted); font-size: 13.5px; }

/* ---- advantages — faithful clone of OKX broker-advantage ---- */
.broker-advantage { background: var(--bg-2); }
.broker-advantage-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 100px 24px; }
.broker-advantage-title { text-align: center; color: var(--text); font-size: clamp(28px, 4vw, 44px); font-weight: 700; letter-spacing: -0.02em; }
.broker-advantage-content { display: flex; flex-flow: row nowrap; gap: 60px; margin-top: 56px; justify-content: center; }
.broker-advantage .advantage { flex: 1 1; display: flex; flex-flow: column nowrap; align-items: center; text-align: center; }
.broker-advantage .advantage-icon { flex-shrink: 0; width: 132px; height: 132px; border-radius: 50%; background: radial-gradient(120% 120% at 30% 20%, rgba(188,255,47,.28), transparent 62%), var(--grad-soft); display: grid; place-items: center; color: #5d7e00; font-size: 52px; }
.broker-advantage .advantage-title { margin-top: 28px; color: var(--text); font-size: 18px; font-weight: 700; line-height: 1.36; }
.broker-advantage .advantage-desc { margin-top: 12px; color: var(--muted); font-size: 15px; font-weight: 400; line-height: 1.58; max-width: 320px; }

@media (max-width: 900px) {
    .broker-advantage-inner { padding: 70px 24px; }
    .broker-advantage-content { flex-flow: column nowrap; gap: 28px; margin-top: 36px; }
    .broker-advantage .advantage { flex-direction: row; align-items: center; text-align: left; gap: 16px; }
    .broker-advantage .advantage-icon { width: 72px; height: 72px; font-size: 30px; }
    .broker-advantage .advantage-title { margin-top: 0; }
    .broker-advantage .advantage-desc { margin-top: 6px; max-width: none; }
}

/* ---- CTA ---- */
.ir-cta { padding: 72px 0 100px; }
.ir-cta .dl-band { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; background: radial-gradient(460px 200px at 12% -20%, var(--grad-soft), transparent 70%), var(--panel); }
.ir-cta h3 { font-size: 24px; font-weight: 800; }
.ir-cta p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.ir-cta p a { color: #BCFF2F; }
.ir-cta .row { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 1100px) {
    .ir-modelcards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
    .ir-tabrow { grid-template-columns: 1fr; }
    .ir-stats { grid-template-columns: 1fr 1fr; }
    .ir-modelcards { grid-template-columns: 1fr 1fr; }
    .ir-cta .dl-band { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .ir-modelcards { grid-template-columns: 1fr; }
}
