/* =========================================================
   TOPlayer · 高阶玩家 — V8 article / blog DETAIL page
   Light (white) background · v8 lime accent · OKX-learn reading layout.
   Loads on top of home.css.
   ========================================================= */

/* ---- light reading area ONLY (scoped to <main>); nav & footer keep v8 dark ---- */
main {
    --bg: #ffffff; --bg-2: #f6f6f4; --panel: #ffffff; --panel-2: #f3f3f1;
    --border: rgba(20, 20, 25, 0.10); --border-2: rgba(20, 20, 25, 0.17);
    --text: #18181b; --muted: #56565d; --dim: #8a8a90;
    background: #ffffff; color: #18181b;
}
main ::selection { background: rgba(188, 255, 47, 0.4); color: #0a1400; }
main .art-tag { color: #5d7e00; }

/* solid (non-transparent, no blur) header — detail pages only */
.nav { background: #0b0b0d; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid rgba(255,255,255,.08); }

/* ---- reading layout ---- */
.breadcrumb { max-width: var(--maxw); margin: 0 auto; padding: 92px 24px 0; display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--dim); flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { color: var(--border-2); }

.article-head { max-width: var(--maxw); margin: 22px auto 0; padding: 0 24px; }
.article-head > * { max-width: 880px; }
.a-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #5d7e00; background: rgba(188,255,47,.18); border: 1px solid rgba(188,255,47,.5); padding: 4px 11px; border-radius: 999px; }
.article-head h1 { margin-top: 16px; font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.18; }
.a-meta { max-width: 980px; margin-top: 18px; display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.a-meta .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #0a1400; font-weight: 700; font-size: 14px; }
.a-meta .sep { color: var(--border-2); }
.a-share { margin-left: auto; display: flex; gap: 8px; }
.a-share a { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted); }
.a-share a:hover { color: var(--text); border-color: var(--border-2); }

.a-cover { max-width: var(--maxw); margin: 30px auto 0; padding: 0 24px; }
.a-cover .a-cover-in { max-width: 988px; aspect-ratio: 21 / 9; border-radius: 18px; overflow: hidden; position: relative; display: grid; place-items: center; background: linear-gradient(135deg, #161910, #0c0e07); border: 1px solid var(--border); }
.a-cover .a-cover-in::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 100% at 20% 0%, rgba(188,255,47,.3), transparent 60%); }
.a-cover .ico { position: relative; font-size: 52px; color: #BCFF2F; }
.a-cover .wm { position: absolute; right: 18px; bottom: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: rgba(255,255,255,.32); }

.article-wrap { display: grid; grid-template-columns: minmax(0, 720px) 220px; gap: 48px; justify-content: start; max-width: var(--maxw); margin: 46px auto 0; padding: 0 24px; }
.article-body { grid-column: 1; grid-row: 1; }
.toc { grid-column: 2; grid-row: 1; position: sticky; top: 90px; align-self: start; }
.toc .toc-t { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }
.toc a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--border); color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--text); border-left-color: #BCFF2F; font-weight: 600; }

.article-body { font-size: 16.5px; line-height: 1.8; color: #2c2c33; min-width: 0; }
.article-body > p { margin: 0 0 20px; }
.article-body h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; margin: 40px 0 14px; color: var(--text); scroll-margin-top: 84px; }
.article-body h3 { font-size: 18px; font-weight: 700; margin: 26px 0 10px; color: var(--text); }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 22px; display: grid; gap: 9px; }
.article-body li { line-height: 1.7; }
.article-body strong { color: var(--text); font-weight: 700; }
.article-body a.inline { color: #5d7e00; text-decoration: underline; text-underline-offset: 2px; }
.callout { border: 1px solid rgba(188,255,47,.5); background: rgba(188,255,47,.1); border-radius: 12px; padding: 16px 18px; margin: 26px 0; font-size: 15px; line-height: 1.7; display: flex; gap: 12px; }
.callout i { color: #5d7e00; margin-top: 3px; font-size: 16px; }
.a-disclaimer { margin: 40px 0 0; padding: 18px 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-2); font-size: 13px; color: var(--muted); line-height: 1.65; }

.related { max-width: var(--maxw); margin: 70px auto 0; padding: 0 24px 96px; }
.related .art-grid { max-width: 988px; }
.related h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 22px; }

@media (max-width: 900px) {
    .article-wrap { grid-template-columns: 1fr; gap: 0; }
    .toc { display: none; }
}
