/* ==========================================================
   乐事助手 · 内页公共样式
   用于 features / download / leagues / tactics 等 SEO 内页
   ========================================================== */

:root {
    --g900: #0f3d1e;
    --g800: #14502a;
    --g700: #1b6b34;
    --g600: #227a3c;
    --g500: #2e9d4f;
    --g400: #47b869;
    --g300: #86d79b;
    --accent: #ff5236;
    --ink: #10231a;
    --muted: #55705c;
    --line: rgba(30, 90, 45, 0.12);
    --card: rgba(255, 255, 255, 0.80);
    --radius: 20px;
    --shadow: 0 18px 40px rgba(20, 80, 40, 0.10);
    --shadow-lg: 0 26px 60px rgba(20, 80, 40, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: -apple-system, 'PingFang SC', 'Segoe UI', Roboto, system-ui, sans-serif;
    color: var(--ink);
    background: #eef7ef;
    line-height: 1.75;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 8% 6%, rgba(71, 184, 105, 0.14) 0%, transparent 38%),
        radial-gradient(circle at 95% 22%, rgba(27, 107, 52, 0.09) 0%, transparent 34%);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.wrap { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 20px; }

/* ===== 顶部导航 ===== */
.topbar {
    position: sticky; top: 0; z-index: 900;
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.topbar .tb-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--g900); }
.topbar .tb-brand img { width: 34px; height: 34px; border-radius: 10px; }
.topbar .tb-btn {
    background: linear-gradient(135deg, var(--g700), var(--g500));
    color: #fff; font-weight: 700; font-size: 14px;
    padding: 9px 20px; border-radius: 40px;
    box-shadow: 0 6px 16px rgba(27, 107, 52, 0.28);
    white-space: nowrap;
}
.topbar .tb-nav { display: flex; gap: 18px; }
.topbar .tb-nav a { font-size: 14px; font-weight: 700; color: var(--muted); }
.topbar .tb-nav a:hover { color: var(--g700); }

/* ===== 面包屑 ===== */
.crumb { padding: 18px 0 4px; font-size: 13px; color: var(--muted); }
.crumb a { color: var(--g700); font-weight: 600; }
.crumb a:hover { text-decoration: underline; }
.crumb span { margin: 0 8px; color: rgba(85, 112, 92, 0.5); }

/* ===== 页头 ===== */
.page-head { padding: 14px 0 8px; }
.page-head .kick {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 800; letter-spacing: 1px;
    color: var(--g500); margin-bottom: 10px;
}
.page-head h1 { font-size: 30px; font-weight: 900; color: var(--g900); letter-spacing: -0.6px; line-height: 1.3; }
.page-head .lead { color: var(--muted); margin-top: 12px; font-size: 15px; }
.page-head .lead b { color: var(--g700); }

/* 页头数据条 */
.head-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
    margin-top: 20px;
}
.head-stats .hs {
    background: var(--card); border: 1px solid var(--line); border-radius: 16px;
    padding: 14px 12px; text-align: center; box-shadow: var(--shadow);
}
.head-stats .hs .n { font-size: 22px; font-weight: 900; color: var(--g700); line-height: 1.2; }
.head-stats .hs .l { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ===== 目录 ===== */
.toc {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px 22px; margin: 24px 0 8px; box-shadow: var(--shadow);
}
.toc h2 { font-size: 15px; font-weight: 800; color: var(--g900); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.toc h2 i { color: var(--g500); }
.toc ol { list-style: none; counter-reset: toc; display: grid; gap: 8px; }
.toc ol li { counter-increment: toc; }
.toc ol li a {
    display: flex; align-items: baseline; gap: 10px;
    font-size: 14px; font-weight: 600; color: #2f4739;
    padding: 6px 0; border-bottom: 1px dashed rgba(30, 90, 45, 0.10);
}
.toc ol li:last-child a { border-bottom: none; }
.toc ol li a::before {
    content: counter(toc, decimal-leading-zero);
    font-size: 12px; font-weight: 800; color: var(--g400); flex-shrink: 0;
}
.toc ol li a:hover { color: var(--g700); }

/* ===== 正文区块 ===== */
.article { padding: 8px 0 0; }
.art-sec {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px 26px 24px; margin: 20px 0; box-shadow: var(--shadow);
    scroll-margin-top: 76px;
}
.art-sec > h2 {
    display: flex; align-items: center; gap: 12px;
    font-size: 21px; font-weight: 900; color: var(--g900);
    letter-spacing: -0.3px; margin-bottom: 14px; line-height: 1.4;
}
.art-sec > h2 .n {
    flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px;
    background: linear-gradient(135deg, var(--g700), var(--g500)); color: #fff;
    font-size: 15px; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 14px rgba(27, 107, 52, 0.24);
}
.art-sec h3 {
    font-size: 16px; font-weight: 800; color: var(--g700);
    margin: 20px 0 8px; display: flex; align-items: center; gap: 8px;
}
.art-sec h3::before {
    content: ""; width: 4px; height: 15px; border-radius: 3px;
    background: linear-gradient(180deg, var(--g500), var(--g400)); flex-shrink: 0;
}
.art-sec p { font-size: 15px; color: #33473a; margin-bottom: 12px; }
.art-sec p:last-child { margin-bottom: 0; }
.art-sec p b, .art-sec li b { color: var(--g700); font-weight: 700; }
.art-sec a.inline { color: var(--g700); font-weight: 700; border-bottom: 1px solid rgba(27, 107, 52, 0.3); }
.art-sec a.inline:hover { border-bottom-color: var(--g700); }

.art-sec ul.ul, .art-sec ol.ol { list-style: none; display: grid; gap: 9px; margin: 6px 0 4px; }
.art-sec ul.ul li { position: relative; padding-left: 24px; font-size: 14.5px; color: #33473a; }
.art-sec ul.ul li::before {
    content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; left: 2px; top: 3px; color: var(--g500); font-size: 11px;
}
.art-sec ol.ol { counter-reset: ol; }
.art-sec ol.ol li {
    counter-increment: ol; position: relative; padding-left: 28px;
    font-size: 14.5px; color: #33473a;
}
.art-sec ol.ol li::before {
    content: counter(ol); position: absolute; left: 0; top: 2px;
    width: 19px; height: 19px; border-radius: 6px;
    background: rgba(46, 157, 79, 0.13); color: var(--g700);
    font-size: 11px; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
}

/* ===== 卡片网格 ===== */
.grid { display: grid; gap: 14px; margin: 16px 0 4px; }
.grid.g2 { grid-template-columns: repeat(2, 1fr); }
.grid.g3 { grid-template-columns: repeat(3, 1fr); }
.mini {
    background: rgba(255, 255, 255, 0.9); border: 1px solid var(--line);
    border-radius: 16px; padding: 16px 16px 15px;
}
.mini .t { font-size: 14.5px; font-weight: 800; color: var(--g900); margin-bottom: 5px; display: flex; align-items: center; gap: 8px; }
.mini .t i { color: var(--g500); font-size: 14px; }
.mini .d { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ===== 表格 ===== */
.tbl-wrap { overflow-x: auto; margin: 14px 0 6px; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 460px; }
table.tbl th {
    background: rgba(46, 157, 79, 0.12); color: var(--g900);
    font-weight: 800; text-align: left; padding: 11px 13px;
    border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.tbl th:first-child { border-radius: 10px 0 0 0; }
table.tbl th:last-child { border-radius: 0 10px 0 0; }
table.tbl td { padding: 11px 13px; border-bottom: 1px dashed var(--line); color: #33473a; vertical-align: top; }
table.tbl tr:last-child td { border-bottom: none; }
table.tbl td:first-child { font-weight: 700; color: var(--g900); }

/* ===== 提示条 ===== */
.note, .warn {
    display: flex; gap: 12px; align-items: flex-start;
    border-radius: 16px; padding: 15px 17px; margin: 16px 0 4px;
    font-size: 14px;
}
.note { background: rgba(46, 157, 79, 0.08); border: 1px solid rgba(46, 157, 79, 0.18); color: #26472f; }
.warn { background: rgba(255, 82, 54, 0.07); border: 1px solid rgba(255, 82, 54, 0.18); color: #7a2c1c; }
.note i { color: var(--g600); font-size: 19px; flex-shrink: 0; margin-top: 2px; }
.warn i { color: var(--accent); font-size: 19px; flex-shrink: 0; margin-top: 2px; }
.note b, .warn b { font-weight: 800; }

/* ===== 步骤 ===== */
.steps { display: grid; gap: 12px; margin: 14px 0 4px; }
.step {
    display: flex; align-items: flex-start; gap: 14px;
    background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line);
    border-radius: 16px; padding: 16px 18px;
}
.step .n {
    flex-shrink: 0; width: 30px; height: 30px; border-radius: 10px;
    background: linear-gradient(135deg, var(--g700), var(--g500)); color: #fff;
    font-weight: 800; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 14px rgba(27, 107, 52, 0.22);
}
.step .txt { font-size: 14.5px; color: var(--ink); }
.step .txt b { color: var(--g700); }
.step .txt .hint { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.step .txt .hint i { color: var(--accent); margin-right: 5px; }

/* ===== 问答 ===== */
.faq { display: grid; gap: 12px; margin: 14px 0 4px; }
.qa {
    background: rgba(255, 255, 255, 0.9); border: 1px solid var(--line);
    border-radius: 16px; padding: 17px 19px;
}
.qa .q { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; font-weight: 800; color: var(--g900); }
.qa .q i { color: var(--g500); margin-top: 4px; font-size: 13px; }
.qa .a { margin-top: 8px; padding-left: 23px; font-size: 14px; color: #33473a; }
.qa .a b { color: var(--g700); }
.qa .a a { color: var(--g700); font-weight: 600; }

/* ===== 相关阅读 ===== */
.related {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px 22px; margin: 22px 0 8px; box-shadow: var(--shadow);
}
.related h2 { font-size: 16px; font-weight: 800; color: var(--g900); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.related h2 i { color: var(--g500); }
.related .rlist { display: flex; flex-wrap: wrap; gap: 10px; }
.related a {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(46, 157, 79, 0.09); border: 1px solid rgba(46, 157, 79, 0.16);
    color: var(--g700); font-size: 13.5px; font-weight: 700;
    padding: 8px 15px; border-radius: 30px;
    transition: background 0.2s, transform 0.2s;
}
.related a:hover { background: rgba(46, 157, 79, 0.16); transform: translateY(-2px); }
.related a i { font-size: 12px; }

/* ===== CTA ===== */
.cta-box {
    background: linear-gradient(160deg, #10401f, #17632f);
    color: #fff; border-radius: var(--radius);
    padding: 32px 26px; text-align: center;
    margin: 26px 0 10px; box-shadow: var(--shadow-lg);
    position: relative; overflow: hidden;
}
.cta-box::after {
    content: ""; position: absolute; width: 220px; height: 220px;
    right: -70px; top: -70px; border-radius: 50%;
    background: radial-gradient(circle, rgba(134, 215, 155, 0.28), transparent 70%);
}
.cta-box h2 { font-size: 21px; font-weight: 900; margin-bottom: 10px; position: relative; }
.cta-box p { color: rgba(255, 255, 255, 0.8); font-size: 14px; margin-bottom: 18px; position: relative; }
.cta-box .btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    background: #fff; color: var(--g700); font-size: 16px; font-weight: 800;
    padding: 14px 30px; border-radius: 50px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    position: relative; transition: transform 0.2s;
}
.cta-box .btn-primary:hover { transform: translateY(-2px); }
.cta-box .wx { display: block; margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, 0.72); position: relative; }
.cta-box .wx b { color: #a9efbd; letter-spacing: 0.5px; }

/* ===== 底部 ===== */
footer.ft {
    background: #0f3d1e; color: rgba(255, 255, 255, 0.72);
    padding: 40px 0 46px; text-align: center; margin-top: 24px;
}
footer.ft .fl { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; font-size: 20px; color: #fff; margin-bottom: 12px; }
footer.ft .fl img { width: 34px; height: 34px; border-radius: 10px; }
footer.ft p { font-size: 13px; margin: 4px 0; }
footer.ft .ft-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin: 16px 0 4px; }
footer.ft .ft-nav a { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.82); transition: color 0.2s; }
footer.ft .ft-nav a:hover { color: var(--g300); }
footer.ft .live-clock {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
    background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 8px 18px; border-radius: 30px; font-size: 13px; font-weight: 600;
    color: #eafcf0; font-variant-numeric: tabular-nums;
}
footer.ft .live-clock i { color: var(--g300); }

/* ===== 响应式 ===== */
@media (max-width: 700px) {
    .grid.g3 { grid-template-columns: repeat(2, 1fr); }
    .page-head h1 { font-size: 24px; }
    .art-sec { padding: 22px 18px 20px; }
    .art-sec > h2 { font-size: 18.5px; }
    .topbar .tb-nav { display: none; }
}
@media (max-width: 520px) {
    .wrap { padding: 0 15px; }
    .grid.g2, .grid.g3 { grid-template-columns: 1fr; }
    .head-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .head-stats .hs { padding: 12px 8px; }
    .head-stats .hs .n { font-size: 18px; }
    .head-stats .hs .l { font-size: 11px; }
    .page-head h1 { font-size: 21.5px; }
    .art-sec > h2 { font-size: 17.5px; gap: 10px; }
    .art-sec > h2 .n { width: 28px; height: 28px; font-size: 13px; }
    .cta-box { padding: 26px 18px; }
    .cta-box h2 { font-size: 18px; }
    .related a { padding: 7px 13px; font-size: 12.5px; }
    footer.ft { padding: 32px 0 38px; }
}
