/* =========================================================
   足球知识科普 (www.moneyball.cn) - Editorial Sports Theme
   100% Local CSS · Zero External CDN · Mobile-First 375px+
   ========================================================= */

:root {
    --navy: #0b1b26;
    --navy-soft: #132838;
    --emerald: #0f6e4b;
    --emerald-bright: #10b981;
    --emerald-light: #ecfdf5;
    --gold: #d97706;
    --gold-bright: #f59e0b;
    --gold-soft: #fef3c7;
    --ink: #0f172a;
    --ink-muted: #475569;
    --ink-light: #64748b;
    --surface: #ffffff;
    --bg: #f5f7f6;
    --border: #e2e8e5;
    --radius: 12px;
    --shadow-sm: 0 2px 8px rgba(11, 27, 38, 0.05);
    --shadow-md: 0 10px 28px rgba(11, 27, 38, 0.09);
    --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--bg);
    overflow-x: hidden;
    word-wrap: break-word;
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--emerald);
    text-decoration: none;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

a:hover {
    color: var(--gold);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------------- Header ---------------- */
.site-header {
    background: var(--navy);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    flex-shrink: 0;
}

.brand:hover {
    color: #fff;
}

.brand-logo {
    height: 40px;
    width: auto;
    border-radius: 6px;
    object-fit: contain;
    background: var(--navy);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.4px;
    color: #f8fafc;
}

.brand-text small {
    font-size: 10px;
    color: #94a3b8;
    letter-spacing: 0.6px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #f8fafc;
    border-radius: 2px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
    flex-wrap: nowrap;
}

.nav-list a {
    display: inline-block;
    padding: 7px 10px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
    border-radius: 7px;
    white-space: nowrap;
}

.nav-list a:hover,
.nav-list a.is-active {
    color: #fff;
    background: rgba(16, 185, 129, 0.22);
}

.nav-list a.is-active {
    color: #fde68a;
}

.nav-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.nav-search input {
    border: 0;
    background: transparent;
    color: #fff;
    padding: 7px 10px;
    font-size: 13px;
    width: 148px;
    outline: none;
}

.nav-search input::placeholder {
    color: #94a3b8;
}

.nav-search button {
    border: 0;
    background: var(--gold);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 12px;
    cursor: pointer;
}

.nav-search button:hover {
    background: var(--gold-bright);
}

/* ---------------- Announcement Bar ---------------- */
.announce-bar {
    background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 50%, #fffbeb 100%);
    border-bottom: 1px solid #fde68a;
    color: #78350f;
}

.announce-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 9px;
    padding-bottom: 9px;
    font-size: 14px;
}

.announce-badge {
    display: inline-flex;
    align-items: center;
    background: var(--gold);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 999px;
    flex-shrink: 0;
}

.announce-text {
    margin: 0;
    font-weight: 700;
    color: #451a03;
    flex: 1;
}

.announce-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--emerald);
    white-space: nowrap;
}

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--emerald);
    color: #fff;
}

.btn-primary:hover {
    background: #0b563a;
    color: #fff;
}

.btn-gold {
    background: var(--gold);
    color: #fff;
}

.btn-gold:hover {
    background: #b45309;
    color: #fff;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.22);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.btn-outline {
    background: #fff;
    color: var(--emerald);
    border-color: var(--emerald);
}

.btn-outline:hover {
    background: var(--emerald-light);
    color: var(--emerald);
}

.btn-outline-full {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 9px 14px;
    text-align: center;
    border: 1px solid var(--emerald);
    color: var(--emerald);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
}

.btn-outline-full:hover {
    background: var(--emerald);
    color: #fff;
}

/* ---------------- Hero ---------------- */
.hero-band {
    background: radial-gradient(circle at 82% 20%, rgba(16, 185, 129, 0.22), transparent 46%),
                linear-gradient(135deg, #0b1b26 0%, #0d2b25 58%, #0c222e 100%);
    color: #f8fafc;
    padding: 46px 0 52px;
    border-bottom: 3px solid var(--gold);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.95fr);
    gap: 36px;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fde68a;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 4px 11px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.hero-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.24;
    font-weight: 800;
    color: #fff;
}

.hero-copy h1 em {
    font-style: normal;
    color: #fbbf24;
}

.hero-lead {
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.8;
    color: #cbd5e1;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.metric-item strong {
    display: block;
    font-size: 16px;
    color: #34d399;
}

.metric-item span {
    font-size: 12px;
    color: #94a3b8;
}

.hero-copy,
.hero-visual,
.tactical-board,
.feature-main,
.feature-side {
    min-width: 0;
    max-width: 100%;
}

.tactical-board {
    background: rgba(11, 27, 38, 0.84);
    border: 1px solid rgba(52, 211, 153, 0.25);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
    overflow: hidden;
}

.board-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.7px;
    color: #94a3b8;
}

.board-pill {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    padding: 2px 8px;
    border-radius: 999px;
}

.hero-svg {
    width: 100%;
    border-radius: 8px;
}

.board-footer {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.tag-pill {
    background: var(--gold);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    flex-shrink: 0;
}

.board-footer a {
    color: #f8fafc;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}

.board-footer a:hover {
    color: #fde68a;
}

/* ---------------- Sections ---------------- */
.section {
    padding: 46px 0;
}

.section-alt {
    background: #eef3f1;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.section-kicker {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: var(--emerald);
    margin-bottom: 4px;
}

.section-head h2 {
    margin: 0;
    font-size: 26px;
    line-height: 1.25;
    color: var(--ink);
}

.section-sub {
    margin: 0;
    font-size: 14px;
    color: var(--ink-muted);
}

.head-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--emerald);
}

/* ---------------- Topic Cards ---------------- */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.topic-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 4px solid var(--cat-accent, var(--emerald));
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.topic-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--ink);
}

.topic-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
}

.topic-badge {
    font-weight: 800;
    color: var(--cat-accent, var(--emerald));
    background: var(--emerald-light);
    padding: 2px 9px;
    border-radius: 999px;
}

.topic-count {
    color: var(--ink-light);
}

.topic-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--ink);
}

.topic-card p {
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--ink-muted);
    flex: 1;
}

.topic-more {
    font-size: 13px;
    font-weight: 700;
    color: var(--emerald);
}

/* ---------------- Featured Layout ---------------- */
.featured-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 22px;
}

.feature-main {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.feature-thumb .card-svg {
    width: 100%;
}

.feature-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feature-body h3 {
    margin: 10px 0;
    font-size: 22px;
    line-height: 1.35;
}

.feature-body h3 a {
    color: var(--ink);
}

.feature-body h3 a:hover {
    color: var(--emerald);
}

.feature-body p {
    margin: 0 0 16px;
    color: var(--ink-muted);
    font-size: 15px;
    flex: 1;
}

.read-more {
    font-weight: 700;
    font-size: 14px;
}

.feature-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.side-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
}

.side-card h3 {
    margin: 8px 0 6px;
    font-size: 16px;
    line-height: 1.4;
}

.side-card h3 a {
    color: var(--ink);
}

.side-card h3 a:hover {
    color: var(--emerald);
}

.side-card p {
    margin: 0;
    font-size: 13px;
    color: var(--ink-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--ink-light);
}

.cat-chip {
    display: inline-block;
    background: var(--emerald-light);
    color: var(--emerald);
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 5px;
}

/* ---------------- Tools Promo Grid ---------------- */
.tools-promo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.tool-promo-card {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfa 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.tool-promo-card:hover {
    transform: translateY(-3px);
    border-color: var(--emerald);
    color: var(--ink);
}

.tool-tag {
    display: inline-block;
    align-self: flex-start;
    font-size: 11px;
    font-weight: 800;
    color: #92400e;
    background: var(--gold-soft);
    padding: 3px 9px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.tool-promo-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.tool-promo-card p {
    margin: 0 0 14px;
    font-size: 13.5px;
    color: var(--ink-muted);
    flex: 1;
}

.tool-cta {
    font-size: 13px;
    font-weight: 700;
    color: var(--emerald);
}

/* ---------------- Article Grid & Sidebar ---------------- */
.content-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 28px;
    align-items: start;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.article-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.article-card-media {
    display: block;
    background: var(--navy);
}

.article-card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-card-body h3 {
    margin: 10px 0 8px;
    font-size: 17px;
    line-height: 1.4;
}

.article-card-body h3 a {
    color: var(--ink);
}

.article-card-body h3 a:hover {
    color: var(--emerald);
}

.article-card-body p {
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--ink-muted);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 12.5px;
    color: var(--ink-light);
}

.card-foot a {
    font-weight: 700;
}

/* ---------------- Sidebar Widgets ---------------- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.widget {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.sticky-widget {
    position: sticky;
    top: 86px;
}

.widget-title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 800;
    padding-left: 10px;
    border-left: 4px solid var(--emerald);
}

.rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rank-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.rank-num {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--navy);
    color: #fde68a;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.rank-list li:nth-child(-n+3) .rank-num {
    background: var(--emerald);
    color: #fff;
}

.rank-list a {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
}

.rank-list a:hover {
    color: var(--emerald);
}

.rank-list small {
    font-size: 12px;
    color: var(--ink-light);
}

.glossary-mini {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.glossary-mini-item {
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border);
}

.glossary-mini-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.glossary-mini-item strong {
    display: block;
    font-size: 14px;
    color: var(--ink);
}

.glossary-mini-item strong span {
    font-size: 12px;
    font-weight: 600;
    color: var(--emerald);
    margin-left: 4px;
}

.glossary-mini-item p {
    margin: 3px 0 0;
    font-size: 12.5px;
    color: var(--ink-muted);
    line-height: 1.5;
}

.cat-side-list,
.related-side-list,
.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cat-side-list a {
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 7px;
    color: var(--ink);
    font-size: 14px;
}

.cat-side-list a:hover,
.cat-side-list a.is-active {
    background: var(--emerald-light);
    color: var(--emerald);
    font-weight: 700;
}

.cat-side-list em {
    font-style: normal;
    font-size: 12px;
    color: var(--ink-light);
}

.related-side-list li {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.related-side-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.related-side-list a {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.45;
}

.related-side-list small {
    font-size: 12px;
    color: var(--ink-light);
}

.toc-list li a {
    display: block;
    font-size: 13.5px;
    color: var(--ink-muted);
    padding: 4px 0;
}

.toc-list li a:hover {
    color: var(--emerald);
}

/* ---------------- Page Banner & Article Detail ---------------- */
.page-banner,
.article-hero {
    background: linear-gradient(135deg, #0b1b26 0%, #102e26 100%);
    color: #fff;
    padding: 34px 0 38px;
    border-bottom: 3px solid var(--cat-accent, var(--emerald));
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.breadcrumb a {
    color: #cbd5e1;
}

.page-banner h1,
.article-hero h1 {
    margin: 8px 0 10px;
    font-size: clamp(24px, 3.6vw, 34px);
    line-height: 1.3;
    color: #fff;
}

.banner-desc,
.article-subtitle {
    margin: 0 0 14px;
    max-width: 780px;
    color: #cbd5e1;
    font-size: 15px;
}

.banner-meta,
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: #94a3b8;
}

.banner-meta a {
    color: #fde68a;
}

.article-shell {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    min-width: 0;
}

.article-cover {
    margin-bottom: 22px;
    border-radius: 10px;
    overflow: hidden;
}

.takeaway-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid var(--emerald);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.takeaway-box h2 {
    margin: 0 0 6px;
    font-size: 15px;
    color: #065f46;
}

.takeaway-box p {
    margin: 0;
    font-size: 14.5px;
    color: #1e293b;
}

.article-body {
    font-size: 16px;
    line-height: 1.88;
    color: #1e293b;
}

.article-body h2 {
    margin: 28px 0 12px;
    font-size: 21px;
    line-height: 1.35;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--emerald-light);
    color: var(--ink);
}

.article-body h3 {
    margin: 20px 0 8px;
    font-size: 17.5px;
    color: var(--emerald);
}

.article-body p {
    margin: 0 0 15px;
}

.article-body ul,
.article-body ol {
    margin: 0 0 16px;
    padding-left: 22px;
}

.article-body li {
    margin-bottom: 7px;
}

.article-body blockquote {
    margin: 18px 0;
    padding: 14px 18px;
    background: #fffbeb;
    border-left: 4px solid var(--gold);
    border-radius: 0 8px 8px 0;
    color: #451a03;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
    margin: 16px 0;
    -webkit-overflow-scrolling: touch;
}

.data-table,
.article-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 520px;
    background: #fff;
}

.data-table th,
.data-table td,
.article-body th,
.article-body td {
    padding: 11px 13px;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.data-table th,
.article-body th {
    background: #0f2938;
    color: #fff;
    font-weight: 700;
}

.data-table tr:nth-child(even) td,
.article-body tr:nth-child(even) td {
    background: #f8faf9;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.tag-label {
    font-size: 13px;
    color: var(--ink-light);
}

.tag-link {
    font-size: 13px;
    background: #f1f5f9;
    color: #334155;
    padding: 4px 10px;
    border-radius: 6px;
}

.tag-link:hover {
    background: var(--emerald);
    color: #fff;
}

.article-cta-strip {
    margin-top: 26px;
    padding: 20px;
    background: linear-gradient(135deg, #0b1b26 0%, #103229 100%);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.article-cta-strip strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.article-cta-strip p {
    margin: 0;
    font-size: 13.5px;
    color: #cbd5e1;
}

/* ---------------- Tools Hub ---------------- */
.tools-stack {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.tool-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    scroll-margin-top: 84px;
}

.tool-panel-head h2 {
    margin: 4px 0 8px;
    font-size: 22px;
}

.tool-panel-head p {
    margin: 0 0 20px;
    color: var(--ink-muted);
    font-size: 14.5px;
}

.xg-grid,
.boot-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--ink);
}

.form-group select,
.form-group input[type="range"] {
    width: 100%;
}

.form-group select {
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: var(--ink);
}

.form-row-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.xg-pitch-wrap {
    margin-bottom: 14px;
}

.xg-svg {
    width: 100%;
    border-radius: 10px;
}

.xg-result-card {
    background: var(--navy);
    color: #fff;
    padding: 18px 20px;
    border-radius: 10px;
    text-align: center;
}

.xg-result-label {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.xg-result-num {
    display: block;
    font-size: 40px;
    line-height: 1.15;
    color: #fbbf24;
    margin: 4px 0 6px;
}

.xg-result-desc {
    margin: 0;
    font-size: 13.5px;
    color: #d1fae5;
}

.boot-result {
    background: #f8faf9;
    border: 1px solid var(--border);
    border-left: 5px solid var(--emerald);
    border-radius: 10px;
    padding: 20px;
}

.boot-code {
    display: inline-block;
    background: var(--emerald);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.boot-result h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.boot-result p {
    margin: 0 0 12px;
    font-size: 14.5px;
    color: var(--ink-muted);
}

.boot-warn {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
}

/* ---------------- Quiz ---------------- */
.quiz-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quiz-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 18px;
    background: #fafcfb;
}

.quiz-q {
    margin: 0 0 12px;
    font-weight: 700;
    font-size: 15px;
}

.quiz-opts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quiz-opts button {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: var(--ink);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
}

.quiz-opts button:hover {
    border-color: var(--emerald);
    background: var(--emerald-light);
}

.quiz-opts button.is-right {
    background: #dcfce7;
    border-color: #16a34a;
    color: #14532d;
    font-weight: 700;
}

.quiz-opts button.is-wrong {
    background: #fee2e2;
    border-color: #dc2626;
    color: #7f1d1d;
}

.quiz-feedback {
    margin-top: 10px;
    font-size: 13.5px;
    line-height: 1.6;
}

.quiz-feedback.ok {
    color: #166534;
    font-weight: 600;
}

.quiz-feedback.err {
    color: #991b1b;
    font-weight: 600;
}

/* ---------------- Glossary & Search ---------------- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.filter-pill {
    padding: 7px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 600;
}

.filter-pill:hover,
.filter-pill.is-active {
    background: var(--emerald);
    border-color: var(--emerald);
    color: #fff;
}

.glossary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.glossary-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
}

.glossary-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.term-en {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-light);
    text-align: right;
}

.glossary-card h2,
.glossary-card h3 {
    margin: 0 0 6px;
    font-size: 18px;
    color: var(--ink);
}

.term-short {
    margin: 0 0 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--emerald);
}

.term-detail {
    margin: 0;
    font-size: 13.5px;
    color: var(--ink-muted);
    line-height: 1.65;
}

.search-hero-form {
    display: flex;
    gap: 10px;
    max-width: 640px;
    margin-top: 14px;
}

.search-hero-form input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.96);
    font-size: 15px;
    color: var(--ink);
}

.hot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 14px;
    font-size: 13px;
    color: #94a3b8;
}

.hot-tags a {
    color: #fde68a;
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 10px;
    border-radius: 999px;
}

.search-summary {
    margin: 0 0 20px;
    font-size: 15px;
    color: var(--ink-muted);
}

.sub-heading {
    margin: 24px 0 14px;
    font-size: 20px;
}

.search-terms-block {
    margin-bottom: 28px;
}

.empty-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 24px;
    text-align: center;
}

.error-code {
    display: inline-block;
    font-size: 54px;
    font-weight: 900;
    line-height: 1;
    color: var(--emerald);
    margin-bottom: 10px;
}

.about-container {
    max-width: 880px;
}

.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 28px;
    flex-wrap: wrap;
}

.pagination a {
    padding: 7px 14px;
    border-radius: 7px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--ink);
    font-weight: 600;
}

.pagination a.is-current {
    background: var(--emerald);
    border-color: var(--emerald);
    color: #fff;
}

/* ---------------- Footer ---------------- */
.site-footer {
    background: var(--navy);
    color: #cbd5e1;
    margin-top: 32px;
    border-top: 4px solid var(--emerald);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 0.9fr;
    gap: 28px;
    padding-top: 40px;
    padding-bottom: 34px;
}

.footer-brand-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

.footer-desc {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.75;
    color: #94a3b8;
}

.footer-col h3 {
    margin: 0 0 12px;
    font-size: 15px;
    color: #fff;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col a {
    font-size: 13.5px;
    color: #94a3b8;
}

.footer-col a:hover {
    color: #fde68a;
}

.footer-bottom {
    background: #07131c;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 16px;
    padding-bottom: 16px;
    font-size: 13px;
    color: #94a3b8;
}

.beian-link {
    color: #cbd5e1;
    font-weight: 600;
}

.beian-link:hover {
    color: #fde68a;
}

/* ---------------- Responsive Breakpoints ---------------- */
@media (max-width: 1060px) {
    .hero-grid,
    .featured-layout,
    .content-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .tools-promo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .topic-grid,
    .glossary-grid,
    .article-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy-soft);
        padding: 14px 20px 18px;
        flex-direction: column;
        align-items: stretch;
        border-bottom: 2px solid var(--emerald);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
    }

    .main-nav.is-open {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-list a {
        padding: 10px 12px;
    }

    .nav-search {
        width: 100%;
    }

    .nav-search input {
        flex: 1;
        width: auto;
    }
}

@media (max-width: 680px) {
    .container {
        padding: 0 15px;
    }

    .brand-logo {
        height: 34px;
    }

    .brand-text small {
        display: none;
    }

    .announce-inner {
        flex-wrap: wrap;
        gap: 6px 10px;
        font-size: 13px;
    }

    .announce-link {
        display: none;
    }

    .hero-band {
        padding: 30px 0 36px;
    }

    .hero-metrics,
    .topic-grid,
    .tools-promo-grid,
    .article-grid,
    .article-grid-3,
    .glossary-grid,
    .xg-grid,
    .boot-grid,
    .form-row-2,
    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .board-footer {
        flex-wrap: wrap;
    }

    .board-footer a {
        white-space: normal;
        flex-basis: 100%;
    }

    .section {
        padding: 32px 0;
    }

    .section-head h2 {
        font-size: 22px;
    }

    .article-shell,
    .tool-panel {
        padding: 18px 16px;
    }

    .search-hero-form {
        flex-direction: column;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}
