/* =========================================================
   TOPlayer · 高阶玩家 — V8 Help Center home
   Modeled on OKX /help: hero search · quick tools · popular
   lists · FAQ accordion · link cards · contact cards.
   Loads on top of home.css.
   ========================================================= */

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

/* ---- hero + search ---- */
.hc-hero { position: relative; padding: 132px 0 56px; text-align: center; overflow: hidden; }
.hc-hero .glow { position: absolute; top: -120px; left: 50%; transform: translateX(-50%); width: 820px; height: 420px; background: radial-gradient(closest-side, var(--grad-soft), transparent 72%); pointer-events: none; }
.hc-hero .hc-wrap { position: relative; }
.hc-hero h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -0.035em; }
.hc-hero .hc-sub { margin-top: 12px; color: var(--muted); font-size: 17px; }
.hc-search { margin: 30px auto 0; max-width: 640px; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel); transition: border-color .15s ease; }
.hc-search:focus-within { border-color: rgba(188,255,47,.5); }
.hc-search i { color: var(--dim); font-size: 17px; }
.hc-search input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--text); font-size: 16px; font-family: inherit; }
.hc-search input::placeholder { color: var(--dim); }

/* ---- section heading ---- */
.hc-sec { padding: 26px 0; }
.hc-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.hc-sec-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.hc-more { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; color: var(--muted); }
.hc-more:hover { color: #BCFF2F; }
.hc-more i { font-size: 12px; }

/* ---- quick tools grid ---- */
.hc-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hc-tool { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); transition: border-color .15s ease, transform .15s ease; }
.hc-tool:hover { border-color: var(--border-2); transform: translateY(-2px); }
.hc-tool .ti { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center; font-size: 16px; color: #BCFF2F; background: var(--grad-soft); }
.hc-tool span { font-size: 14.5px; font-weight: 500; color: var(--text); }

/* ---- popular lists (two columns) ---- */
.hc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.hc-list a.hc-link { display: block; padding: 16px 0; border-bottom: 1px solid var(--border); }
.hc-list a.hc-link:first-of-type { padding-top: 4px; }
.hc-link .lk-title { font-size: 16px; font-weight: 600; color: var(--text); transition: color .15s ease; }
.hc-link:hover .lk-title { color: #BCFF2F; }
.hc-link .lk-meta { margin-top: 7px; display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--dim); }
.hc-link .lk-like { display: inline-flex; align-items: center; gap: 5px; }
.hc-link .lk-like i { font-size: 11px; }

/* ---- FAQ accordion grid ---- */
.hc-faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hc-faq-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); overflow: hidden; align-self: start; }
.hc-faq-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; cursor: pointer; width: 100%; background: none; border: none; font-family: inherit; text-align: left; }
.hc-faq-head h3 { font-size: 16px; font-weight: 700; color: var(--text); }
.hc-faq-head .fx { color: var(--dim); font-size: 14px; transition: transform .25s ease; }
.hc-faq-card.open .hc-faq-head .fx { transform: rotate(180deg); color: #BCFF2F; }
.hc-faq-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.hc-faq-card.open .hc-faq-body { max-height: 600px; }
.hc-faq-body-inner { padding: 0 20px 8px; }
.hc-faq-item { display: block; padding: 12px 0; border-top: 1px solid var(--border); }
.hc-faq-item .it-title { font-size: 14.5px; font-weight: 600; color: var(--text); transition: color .15s ease; }
.hc-faq-item:hover .it-title { color: #BCFF2F; }
.hc-faq-item .it-desc { margin-top: 4px; font-size: 13px; color: var(--dim); line-height: 1.5; }

/* ---- link cards (公告 / 产品文档) ---- */
.hc-linkcard { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--panel); padding: 26px; }
.hc-linkcard .hc-sec-head { margin-bottom: 18px; }
.hc-chip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hc-chip { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-2); color: var(--text); font-size: 14.5px; font-weight: 500; transition: border-color .15s ease, color .15s ease; }
.hc-chip:hover { border-color: rgba(188,255,47,.4); color: #BCFF2F; }
.hc-chip i { color: var(--dim); font-size: 13px; }
.hc-chip:hover i { color: #BCFF2F; }

/* ---- contact cards ---- */
.hc-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hc-ccard { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); padding: 26px; transition: border-color .15s ease, transform .15s ease; display: block; }
.hc-ccard:hover { border-color: var(--border-2); transform: translateY(-3px); }
.hc-ccard .ci { width: 46px; height: 46px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; color: #0a1400; font-size: 19px; margin-bottom: 16px; }
.hc-ccard h3 { font-size: 17px; font-weight: 700; }
.hc-ccard p { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.6; }

@media (max-width: 860px) {
    .hc-tools { grid-template-columns: 1fr 1fr; }
    .hc-cols { grid-template-columns: 1fr; }
    .hc-faq-grid { grid-template-columns: 1fr; }
    .hc-chip-grid { grid-template-columns: 1fr 1fr; }
    .hc-contact { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .hc-tools { grid-template-columns: 1fr; }
    .hc-chip-grid { grid-template-columns: 1fr; }
}
