/* ============================================================
   turfbeat 模板样式 · 硬边杂志风体育资讯版式
   5 站点主题：data-theme=1..5；首页区块顺序：data-layout=0..4
   设计语言：直角小圆角 / 描边卡片 / 左侧 kicker 标题 / 实心色按钮
   ============================================================ */

/* ---------- 基础变量（主题1 墨绿鎏金） ---------- */
:root {
    --tb-a: #166534;
    --tb-b: #65a30d;
    --tb-accent: #d97706;
    --tb-ink: #14231a;
    --tb-body-bg: #f5f6f1;
    --tb-card: #ffffff;
    --tb-line: #dfe5da;
    --tb-muted: #64756a;
    --tb-dark-sec: linear-gradient(160deg, #052e16 0%, #14532d 70%, #166534 100%);
    --tb-grad: linear-gradient(135deg, #166534, #65a30d);
    --tb-radius: 10px;
    --tb-shadow: 0 2px 0 rgba(20, 35, 26, .04);
    --tb-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

/* ---------- 全局 ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--tb-font); color: var(--tb-ink); background: var(--tb-body-bg); font-size: 16px; line-height: 1.75; }
img { max-width: 100%; height: auto; border-style: solid; vertical-align: middle; }
a { color: var(--tb-a); text-decoration: none; }
a:hover { color: var(--tb-b); }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; font-weight: 800; line-height: 1.32; color: var(--tb-ink); letter-spacing: .01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
li { margin: 0; }
b, strong { font-weight: 700; }
small { font-size: 85%; }

/* ---------- 工具类 ---------- */
.tb-container, .container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.d-flex { display: flex; }
.d-none { display: none; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.text-center { text-align: center; }
.text-white { color: #fff; }
.text-muted { color: var(--tb-muted); }
.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.position-relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.rounded-4 { border-radius: var(--tb-radius); }
.shadow-sm { box-shadow: var(--tb-shadow); }
.bg-white { background: var(--tb-card); }
.bg-light { background: var(--tb-body-bg); }
.border-top { border-top: 1px solid var(--tb-line); }
.gap-2 { gap: 8px; } .gap-3 { gap: 16px; } .gap-4 { gap: 24px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 16px; } .mb-4 { margin-bottom: 24px; } .mb-5 { margin-bottom: 40px; }
.mt-3 { margin-top: 16px; } .mt-4 { margin-top: 24px; } .mt-5 { margin-top: 40px; }
.me-1 { margin-right: 6px; } .me-2 { margin-right: 10px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-5 { padding-top: 56px; padding-bottom: 56px; }
.p-3 { padding: 16px; } .p-4 { padding: 24px; }

/* ---------- 头部（双线描边 + 下划线导航） ---------- */
.tb-header { position: sticky; top: 0; z-index: 999; background: var(--tb-card); border-bottom: 3px solid var(--tb-a); }
.tb-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; min-height: 68px; }
.tb-brand { display: flex; align-items: center; gap: 10px; margin-right: 0; min-width: 0; }
.tb-brand-badge { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 4px; background: var(--tb-a); color: #fff; font-size: 19px; flex-shrink: 0; transform: rotate(-6deg); }
.tb-brand-text { font-weight: 900; font-size: 17px; color: var(--tb-ink); line-height: 1.25; white-space: nowrap; letter-spacing: .02em; }
.tb-login { white-space: nowrap; margin-right: auto; border-radius: 4px !important; }
.tb-nav-collapse { display: flex; align-items: center; gap: 14px; flex: 1 1 auto; min-width: 0; }
.tb-menu { display: flex; align-items: center; justify-content: flex-end; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; }
.tb-menu::-webkit-scrollbar { display: none; }
.tb-menu li { flex-shrink: 0; }
.tb-menu a { display: block; padding: 22px 13px 20px; color: var(--tb-ink); font-weight: 700; font-size: 15px; white-space: nowrap; border-bottom: 3px solid transparent; }
.tb-menu a:hover { color: var(--tb-a); border-bottom-color: var(--tb-accent); }
.tb-menu li.on a { color: var(--tb-a); border-bottom-color: var(--tb-a); }
.tb-search { display: flex; align-items: center; width: 178px; background: var(--tb-body-bg); border: 1px solid var(--tb-line); border-radius: 4px; padding: 0 4px 0 14px; flex-shrink: 0; }
.tb-search input { flex: 1; width: auto; min-width: 0; border: 0; background: transparent; outline: none; font-size: 14px; color: var(--tb-ink); padding: 8px 0; }
.tb-search button { border: 0; background: transparent; cursor: pointer; font-size: 15px; padding: 6px 10px; }
.tb-search form { position: static; display: flex; align-items: center; width: 100%; }
.tb-nav-check { display: none; }
.tb-nav-burger { display: none; }

/* ---------- 公告条 ---------- */
.tb-notice { background: var(--tb-a); color: #fff; }
.tb-notice-in { display: flex; align-items: center; gap: 12px; padding: 7px 18px; }
.tb-notice-ico { flex-shrink: 0; }
.tb-notice-mask { flex: 1; overflow: hidden; position: relative; height: 24px; }
.tb-notice-scroll { position: absolute; white-space: nowrap; animation: tbNotice 22s linear infinite; line-height: 24px; font-weight: 600; }
.tb-notice-scroll a { color: #fff; }
@keyframes tbNotice { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* ---------- 按钮（实心硬边） ---------- */
.tb-btn { display: inline-flex; align-items: center; gap: 7px; border-radius: 6px; padding: 10px 24px; font-weight: 700; font-size: 15px; border: 1.5px solid transparent; transition: all .15s ease; white-space: nowrap; }
.tb-btn:hover { transform: translateY(-2px); }
.tb-btn-primary { background: var(--tb-a); color: #fff; box-shadow: 4px 4px 0 rgba(20,35,26,.16); }
.tb-btn-primary:hover { color: #fff; background: var(--tb-b); }
.tb-btn-ghost { border-color: rgba(255,255,255,.8); color: #fff; }
.tb-btn-ghost:hover { color: #fff; background: rgba(255,255,255,.14); }
.tb-btn-outline { border-color: var(--tb-a); color: var(--tb-a); background: transparent; padding: 7px 15px; font-size: 13.5px; border-radius: 6px; }
.tb-btn-outline:hover { background: var(--tb-a); color: #fff; }
.tb-btn-block { display: flex; justify-content: center; width: 100%; }

/* ---------- 区块通用（左对齐 kicker 标题） ---------- */
.tb-sec { padding: 54px 0; }
.tb-sec-head { text-align: left; margin-bottom: 30px; }
.tb-sec-head h2 { font-size: 27px; margin-bottom: 4px; }
.tb-sec-head h2::after { content: ""; display: block; width: 52px; height: 4px; background: var(--tb-accent); margin-top: 8px; border-radius: 2px; }
.tb-sec-head p { color: var(--tb-muted); margin: 6px 0 0; }
.tb-on-dark h2, .tb-on-dark h3, .tb-on-dark p, .tb-on-dark b, .tb-on-dark span { color: #fff; }
.tb-on-dark p { opacity: .82; }
.tb-center-title { text-align: left; font-size: 27px; margin-bottom: 10px; }
.tb-center-title::after { content: ""; display: block; width: 52px; height: 4px; background: var(--tb-accent); margin-top: 8px; border-radius: 2px; }
.tb-center-sub { text-align: left; color: var(--tb-muted); max-width: 680px; margin: 6px 0 26px; }

/* ---------- Hero（左文右牌 + 底部斜切） ---------- */
.tb-hero { position: relative; min-height: 420px; padding: 0; background: var(--tb-dark-sec); background-image: var(--hero, none), var(--tb-dark-sec); background-size: cover; background-position: center; overflow: hidden; }
body[data-theme="3"] .tb-hero, body[data-theme="5"] .tb-hero { background-position: center 24%; }
.tb-hero-mask { position: absolute; inset: 0; background: linear-gradient(75deg, rgba(3,10,6,.9) 0%, rgba(3,10,6,.62) 48%, rgba(3,10,6,.2) 100%); }
.tb-hero-in { position: relative; display: flex; align-items: flex-end; gap: 40px; padding-top: 74px; padding-bottom: 58px; min-height: 420px; }
.tb-hero-txt { flex: 1 1 auto; max-width: 680px; }
.tb-hero-txt h1 { color: #fff; line-height: 1.26; margin-bottom: 14px; }
.tb-hero-brand { display: block; font-size: 36px; font-weight: 900; line-height: 1.22; }
.tb-hero-slogan { display: inline-block; font-size: 21px; font-weight: 700; line-height: 1.35; margin-top: 10px; color: #fff; border-left: 4px solid var(--tb-accent); padding-left: 12px; }
.tb-hero-p1 { color: rgba(255,255,255,.9); font-size: 17px; margin-bottom: 6px; }
.tb-hero-p2 { color: rgba(255,255,255,.6); font-size: 14px; margin-bottom: 24px; }
.tb-hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.tb-hero-side { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.tb-hero-chip { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-left: 4px solid var(--tb-accent); border-radius: 4px; padding: 10px 20px; color: #fff; min-width: 158px; backdrop-filter: blur(2px); }
.tb-hero-chip b { display: block; font-size: 21px; color: #fff; }
.tb-hero-chip span { font-size: 12.5px; opacity: .75; letter-spacing: .06em; }

/* ---------- 数据条（分隔线网格） ---------- */
.tb-stats { background: var(--tb-card); border-top: 1px solid var(--tb-line); border-bottom: 1px solid var(--tb-line); }
.tb-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; text-align: center; border: 1px solid var(--tb-line); }
.tb-stat-card { padding: 26px 14px; border-right: 1px solid var(--tb-line); background: var(--tb-card); }
.tb-stat-card:last-child { border-right: 0; }
.tb-stat-card h3 { font-size: 33px; margin-bottom: 2px; color: var(--tb-a); font-weight: 900; }
.tb-stat-card span { color: var(--tb-muted); font-size: 13.5px; letter-spacing: .04em; }

/* ---------- 值得信赖（编号大字） ---------- */
.tb-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--tb-line); background: var(--tb-card); }
.tb-why-item { display: flex; gap: 16px; padding: 24px 24px 22px; border-right: 1px solid var(--tb-line); border-bottom: 1px solid var(--tb-line); transition: background .15s ease; }
.tb-why-item:hover { background: var(--tb-body-bg); }
.tb-why-num { font-size: 30px; font-weight: 900; color: var(--tb-line); flex-shrink: 0; line-height: 1; }
.tb-why-item:hover .tb-why-num { color: var(--tb-accent); }
.tb-why-item h3 { font-size: 16.5px; margin-bottom: 4px; }
.tb-why-item p { color: var(--tb-muted); font-size: 14px; margin: 0; }

/* ---------- 了解平台（深色区） ---------- */
.tb-about { background: var(--tb-dark-sec); }
.tb-about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px; align-items: stretch; }
.tb-about-intro { border: 1px solid rgba(255,255,255,.2); border-top: 4px solid var(--tb-accent); border-radius: var(--tb-radius); padding: 26px; color: #fff; background: rgba(255,255,255,.05); }
.tb-about-intro p { color: rgba(255,255,255,.85); font-size: 15px; }
.tb-about-intro .tb-round { border-radius: 6px; margin-top: 10px; width: 100%; }
.tb-about-cards { display: flex; flex-direction: column; gap: 14px; }
.tb-glass-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); border-radius: var(--tb-radius); padding: 18px 22px; color: #fff; display: flex; gap: 16px; align-items: flex-start; }
.tb-gc-ico { font-size: 24px; display: block; flex-shrink: 0; margin-top: 2px; }
.tb-glass-card h3 { color: #fff; font-size: 16.5px; margin-bottom: 4px; }
.tb-glass-card p { color: rgba(255,255,255,.75); font-size: 13.5px; margin: 0; }

/* ---------- 发展历程 ---------- */
.tb-honor { background: var(--tb-body-bg); }
.tb-honor-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.tb-honor-card { background: var(--tb-card); border: 1px solid var(--tb-line); border-radius: var(--tb-radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s ease, transform .15s ease; }
.tb-honor-card:hover { border-color: var(--tb-a); transform: translateY(-3px); }
.tb-honor-img { overflow: hidden; position: relative; }
.tb-honor-img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--tb-accent); opacity: 0; transition: opacity .2s; }
.tb-honor-card:hover .tb-honor-img::after { opacity: 1; }
.tb-honor-img img { width: 100%; height: 128px; object-fit: cover; display: block; }
.tb-honor-body { padding: 13px 15px 17px; flex: 1; display: flex; flex-direction: column; }
.tb-honor-body h3 { font-size: 15.5px; margin-bottom: 4px; }
.tb-honor-body p { font-size: 12.8px; color: var(--tb-muted); margin: 0; }

/* ---------- 内容板块 ---------- */
.tb-dept { background: var(--tb-dark-sec); }
.tb-dept-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 34px; }
.tb-dept-item { display: flex; gap: 16px; padding: 18px 6px; border-bottom: 1px solid rgba(255,255,255,.14); }
.tb-dept-num { color: var(--tb-accent); font-weight: 900; font-size: 20px; flex-shrink: 0; width: 46px; line-height: 1.4; }
.tb-dept-item h3 { color: #fff; font-size: 17px; margin-bottom: 3px; }
.tb-dept-item p { color: rgba(255,255,255,.72); font-size: 13.8px; margin: 0; }

/* ---------- 安全保障 ---------- */
.tb-secblock { background: var(--tb-dark-sec); }
.tb-sec-panel { max-width: 860px; margin: 0 auto; background: rgba(255,255,255,.06); border-radius: var(--tb-radius); padding: 26px 30px; border: 1px solid rgba(255,255,255,.16); border-top: 4px solid var(--tb-accent); }
.tb-sec-panel h3 { text-align: center; color: #fff; margin-bottom: 18px; font-size: 19px; }
.tb-sec-item { display: flex; align-items: flex-start; gap: 14px; padding: 12px 16px; border-radius: 6px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); margin-bottom: 10px; }
.tb-sec-item:last-child { margin-bottom: 0; }
.tb-si-ico { font-size: 20px; flex-shrink: 0; }
.tb-sec-item b { color: #fff; }
.tb-sec-item p { color: rgba(255,255,255,.7); font-size: 13.8px; margin: 2px 0 0; }
.tb-sec-tail { text-align: center; margin-top: 18px; color: rgba(255,255,255,.66); font-size: 13.5px; letter-spacing: .05em; }

/* ---------- 赛程卡 ---------- */
.tb-matches { background: var(--tb-card); }
.tb-match-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tb-match-card { background: var(--tb-body-bg); border: 1px solid var(--tb-line); border-radius: var(--tb-radius); padding: 15px 17px; }
.tb-mc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; padding-bottom: 10px; border-bottom: 1px dashed var(--tb-line); }
.tb-mc-league { font-size: 12.5px; font-weight: 800; color: var(--tb-muted); letter-spacing: .05em; }
.tb-mc-status { font-size: 11.5px; padding: 2px 9px; border-radius: 3px; font-weight: 800; }
.tb-mc-status.live { background: #e11d48; color: #fff; }
.tb-mc-status.done { background: #64748b; color: #fff; }
.tb-mc-status.soon { background: #16a34a; color: #fff; }
.tb-mc-body { display: flex; align-items: center; justify-content: space-between; text-align: center; }
.tb-mc-team { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.tb-mc-dot { width: 42px; height: 42px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 17px; }
.tb-mc-dot.a { background: var(--tb-a); }
.tb-mc-dot.b { background: var(--tb-accent); color: #fff; }
.tb-mc-name { font-size: 12.8px; font-weight: 700; color: var(--tb-ink); }
.tb-mc-score b { font-size: 20px; display: block; color: var(--tb-ink); }
.tb-mc-score em { font-style: normal; font-size: 11.5px; color: var(--tb-muted); }

/* ---------- FAQ ---------- */
.tb-faq { background: var(--tb-body-bg); }
.tb-faq-list { max-width: 860px; margin: 0 auto; border: 1px solid var(--tb-line); background: var(--tb-card); border-radius: var(--tb-radius); overflow: hidden; }
.tb-faq-item { padding: 18px 24px; border-bottom: 1px solid var(--tb-line); }
.tb-faq-item:last-child { border-bottom: 0; }
.tb-faq-item h3 { font-size: 16px; margin-bottom: 5px; color: var(--tb-a); }
.tb-faq-a { color: var(--tb-muted); font-size: 14.3px; }
.tb-faq-tail { text-align: center; color: var(--tb-muted); font-size: 13.5px; margin-top: 20px; letter-spacing: .04em; }

/* ---------- 使命 ---------- */
.tb-mission { background: var(--tb-dark-sec); }
.tb-mission-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.tb-mission-img img { border-radius: 6px; border: 1px solid rgba(255,255,255,.25); box-shadow: 14px 14px 0 rgba(0,0,0,.22); width: 100%; }
.tb-mission-txt h2 { font-size: 27px; color: #fff; }
.tb-mission-txt h2::after { content: ""; display: block; width: 52px; height: 4px; background: var(--tb-accent); margin-top: 8px; border-radius: 2px; }
.tb-mission-lead { color: rgba(255,255,255,.8); margin: 12px 0 18px; }
.tb-mission-list li { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px dashed rgba(255,255,255,.18); }
.tb-mission-list li:last-child { border-bottom: 0; }
.tb-mission-list span { font-size: 20px; flex-shrink: 0; }
.tb-mission-list b { color: #fff; }
.tb-mission-list p { color: rgba(255,255,255,.72); font-size: 13.8px; margin: 2px 0 0; }

/* ---------- 口碑 ---------- */
.tb-rate { background: var(--tb-card); }
.tb-rate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tb-rate-card { background: var(--tb-body-bg); border: 1px solid var(--tb-line); border-top: 4px solid var(--tb-a); border-radius: var(--tb-radius); padding: 24px; }
.tb-rate-stars { color: var(--tb-accent); letter-spacing: 3px; margin-bottom: 10px; }
.tb-rate-card > p { color: var(--tb-ink); font-size: 14.3px; }
.tb-rate-card footer { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--tb-line); }
.tb-rate-ava { width: 40px; height: 40px; border-radius: 6px; background: var(--tb-a); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.tb-rate-card footer b { display: block; font-size: 14.5px; }
.tb-rate-card footer span { color: var(--tb-muted); font-size: 12.5px; }

/* ---------- 今日精选 ---------- */
.tb-news { background: var(--tb-body-bg); }
.tb-news-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; }
.tb-news-head h2 { margin: 0; font-size: 26px; }
.tb-news-head h2::after { content: ""; display: block; width: 52px; height: 4px; background: var(--tb-accent); margin-top: 7px; border-radius: 2px; }
.tb-view-all { font-weight: 700; font-size: 14px; color: var(--tb-a); white-space: nowrap; border-bottom: 2px solid var(--tb-accent); padding-bottom: 2px; }
.tb-news-scroll { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 14px; scrollbar-width: thin; }
.tb-news-card { flex-shrink: 0; width: 292px; background: var(--tb-card); border: 1px solid var(--tb-line); border-radius: var(--tb-radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s ease; }
.tb-news-card:hover { border-color: var(--tb-a); }
.tb-nc-thumb img { width: 100%; height: 158px; object-fit: cover; display: block; }
.tb-nc-body { padding: 13px 15px 15px; flex: 1; display: flex; flex-direction: column; }
.tb-nc-cat { align-self: flex-start; font-size: 11.5px; background: var(--tb-a); color: #fff; padding: 2px 9px; border-radius: 3px; margin-bottom: 8px; font-weight: 700; letter-spacing: .04em; }
.tb-nc-body h3 { font-size: 15px; line-height: 1.45; margin-bottom: 6px; }
.tb-nc-body h3 a { color: var(--tb-ink); }
.tb-nc-desc { font-size: 12.8px; color: var(--tb-muted); margin-bottom: 8px; }
.tb-nc-date { margin-top: auto; font-size: 12.3px; color: var(--tb-muted); }

/* ---------- 页脚 ---------- */
.tb-footer { background: #0c1410; color: rgba(255,255,255,.66); padding: 50px 0 22px; margin-top: 0; border-top: 4px solid var(--tb-a); }
.tb-foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 30px; margin-bottom: 28px; }
.tb-foot-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 900; font-size: 16px; margin-bottom: 12px; }
.tb-foot-brand p { font-size: 13.3px; line-height: 1.8; color: rgba(255,255,255,.52); }
.tb-foot-col h6 { color: #fff; font-size: 14.5px; margin-bottom: 14px; letter-spacing: .08em; border-left: 3px solid var(--tb-accent); padding-left: 9px; }
.tb-foot-col li { margin-bottom: 9px; font-size: 13.3px; }
.tb-foot-col a { color: rgba(255,255,255,.66); }
.tb-foot-col a:hover { color: var(--tb-accent); }
.tb-foot-contact span { margin-right: 8px; }
.tb-foot-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,.48); }
.tb-foot-bottom a { color: rgba(255,255,255,.66); }
.tb-foot-links { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- 回到顶部 ---------- */
.tb-backtop { position: fixed; right: 22px; bottom: 30px; width: 44px; height: 44px; border-radius: 6px; background: var(--tb-a); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: 4px 4px 0 rgba(0,0,0,.2); z-index: 998; cursor: pointer; }

/* ---------- 面包屑 / 分类页 ---------- */
.tb-crumb { font-size: 13.5px; color: var(--tb-muted); padding: 14px 0; }
.tb-crumb-top { background: var(--tb-card); border-bottom: 1px solid var(--tb-line); }
.tb-crumb ul { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tb-crumb li { display: flex; gap: 8px; align-items: center; }
.tb-crumb a { color: var(--tb-muted); }
.tb-crumb a:hover { color: var(--tb-a); }
.tb-cat-hero { background: var(--tb-dark-sec); padding: 42px 0; text-align: left; border-bottom: 4px solid var(--tb-accent); }
.tb-cat-hero h1 { color: #fff; font-size: 30px; margin-bottom: 6px; }
.tb-cat-hero p { color: rgba(255,255,255,.72); max-width: 760px; margin: 0; font-size: 14.3px; }
.tb-nav-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0 6px; scrollbar-width: none; }
.tb-nav-scroll::-webkit-scrollbar { display: none; }
.tb-nav-scroll a { flex-shrink: 0; padding: 7px 17px; border-radius: 4px; background: var(--tb-card); border: 1px solid var(--tb-line); color: var(--tb-ink); font-size: 14px; font-weight: 600; }
.tb-nav-scroll a.on { background: var(--tb-a); color: #fff; border-color: var(--tb-a); }

/* ---------- 两栏布局 ---------- */
.tb-layout { display: grid; grid-template-columns: 2.2fr 1fr; gap: 26px; padding-top: 10px; padding-bottom: 50px; align-items: start; }
.tb-detail-wrap .tb-layout { padding-top: 24px; }

/* ---------- 卡片网格 ---------- */
.tb-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tb-card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.tb-card { background: var(--tb-card); border: 1px solid var(--tb-line); border-radius: var(--tb-radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s ease, transform .15s ease; }
.tb-card:hover { transform: translateY(-3px); border-color: var(--tb-a); }
.tb-card-img img { width: 100%; height: 168px; object-fit: cover; display: block; }
.tb-card-body { padding: 13px 15px 15px; flex: 1; display: flex; flex-direction: column; }
.tb-card-body h3 { font-size: 15.2px; line-height: 1.5; margin-bottom: 6px; }
.tb-card-body h3 a { color: var(--tb-ink); }
.tb-card-body h3 a:hover { color: var(--tb-a); }
.tb-card-desc { font-size: 12.8px; color: var(--tb-muted); margin-bottom: 8px; }
.tb-card-foot { margin-top: auto; display: flex; justify-content: space-between; font-size: 12.3px; color: var(--tb-muted); padding-top: 9px; border-top: 1px dashed var(--tb-line); }

/* ---------- 侧栏 ---------- */
.tb-widget { background: var(--tb-card); border: 1px solid var(--tb-line); border-radius: var(--tb-radius); padding: 20px; margin-bottom: 20px; }
.tb-widget-title { font-weight: 800; font-size: 15.5px; margin-bottom: 14px; color: var(--tb-ink); padding-left: 10px; border-left: 4px solid var(--tb-accent); }
.tb-widget-txt { font-size: 13.5px; color: var(--tb-muted); margin-bottom: 14px; }
.tb-rank li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed var(--tb-line); font-size: 14px; }
.tb-rank li:last-child { border-bottom: 0; }
.tb-rank-i { flex-shrink: 0; width: 21px; height: 21px; border-radius: 3px; background: var(--tb-body-bg); color: var(--tb-muted); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-top: 3px; }
.tb-rank li:nth-child(-n+3) .tb-rank-i { background: var(--tb-a); color: #fff; }
.tb-rank a { color: var(--tb-ink); line-height: 1.5; }
.tb-rank a:hover { color: var(--tb-a); }
.tb-mini-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--tb-line); font-size: 13.5px; }
.tb-mini-list li:last-child { border-bottom: 0; }
.tb-mini-list a { color: var(--tb-ink); }
.tb-mini-list span { color: var(--tb-muted); flex-shrink: 0; font-size: 12px; }
.tb-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tb-tag-cloud a { padding: 5px 13px; border-radius: 4px; background: var(--tb-body-bg); border: 1px solid var(--tb-line); font-size: 13px; color: var(--tb-ink); }
.tb-tag-cloud a:hover { background: var(--tb-a); color: #fff; border-color: var(--tb-a); }
.tb-tag-cloud sup { font-size: 10px; opacity: .6; margin-left: 3px; }
.tb-tag-cloud-lg { gap: 11px; padding: 10px 0 30px; }
.tb-tag-cloud-lg a { font-size: 15px; padding: 8px 18px; }
.tb-widget-cta { background: var(--tb-dark-sec); border: 0; color: #fff; text-align: left; }
.tb-widget-cta h4 { color: #fff; font-size: 17px; }
.tb-widget-cta p { color: rgba(255,255,255,.75); font-size: 13.5px; margin-bottom: 14px; }
.tb-author-card .tb-author-top { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.tb-author-ava { width: 44px; height: 44px; border-radius: 6px; background: var(--tb-a); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.tb-author-top b { display: block; font-size: 15px; }
.tb-author-top span { color: var(--tb-muted); font-size: 12.5px; }
.tb-author-card > p { font-size: 13px; color: var(--tb-muted); margin-bottom: 14px; }

/* ---------- 详情页 ---------- */
.tb-article-card { background: var(--tb-card); border: 1px solid var(--tb-line); border-radius: var(--tb-radius); padding: 32px 36px; }
.tb-badge { display: inline-block; background: var(--tb-accent); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .06em; padding: 3px 12px; border-radius: 3px; margin-bottom: 14px; }
.tb-article-head h1 { font-size: 29px; line-height: 1.42; margin-bottom: 12px; }
.tb-post-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--tb-muted); font-size: 13.3px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px dashed var(--tb-line); }
.tb-cover { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--tb-line); margin-bottom: 22px; }
.tb-toc { background: var(--tb-body-bg); border: 1px solid var(--tb-line); border-left: 4px solid var(--tb-a); border-radius: 6px; padding: 15px 22px; margin-bottom: 24px; }
.tb-toc b { font-size: 14.5px; }
.tb-toc ol { margin: 8px 0 0; padding-left: 20px; list-style: decimal; }
.tb-toc li { font-size: 13.5px; margin-bottom: 4px; }
.tb-toc a { color: var(--tb-ink); }
.tb-toc a:hover { color: var(--tb-a); }
.tb-post-content { font-size: 16.5px; line-height: 2; color: #26312b; }
.tb-post-content h2, .tb-post-content h3 { margin: 1.5em 0 .7em; font-size: 21px; padding-left: 12px; border-left: 5px solid var(--tb-a); line-height: 1.4; }
.tb-post-content h3 { font-size: 18.5px; border-left-color: var(--tb-accent); }
.tb-post-content p { margin-bottom: 1.15em; }
.tb-post-content img { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--tb-line); margin: 10px 0 18px; }
.tb-post-content ul, .tb-post-content ol { padding-left: 24px; margin-bottom: 1.15em; list-style: disc; }
.tb-post-content ol { list-style: decimal; }
.tb-post-content blockquote { margin: 1.2em 0; padding: 14px 20px; background: var(--tb-body-bg); border-left: 4px solid var(--tb-b); border-radius: 6px; color: var(--tb-muted); }
.tb-post-content table { width: 100%; border-collapse: collapse; margin: 1.2em 0; }
.tb-post-content th, .tb-post-content td { border: 1px solid var(--tb-line); padding: 8px 12px; font-size: 14.5px; }
.tb-post-content th { background: var(--tb-body-bg); }
.tb-page-head { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 2px solid var(--tb-line); }
.tb-page-head h1 { font-size: 29px; }
.tb-page-sub { color: var(--tb-muted); margin-bottom: 0; }
.tb-post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--tb-line); font-size: 14px; }
.tb-post-tags a { background: var(--tb-body-bg); border: 1px solid var(--tb-line); color: var(--tb-ink); padding: 5px 13px; border-radius: 4px; font-size: 13px; }
.tb-post-tags a:hover { background: var(--tb-a); color: #fff; border-color: var(--tb-a); }
.tb-post-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.tb-post-nav a { max-width: 48%; font-size: 13.3px; border: 1px solid var(--tb-line); padding: 9px 15px; border-radius: 6px; color: var(--tb-a); background: var(--tb-body-bg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-post-nav a:hover { background: var(--tb-a); color: #fff; border-color: var(--tb-a); }
.tb-related { margin-top: 26px; }
.tb-related h3 { font-size: 20px; margin-bottom: 16px; padding-left: 10px; border-left: 4px solid var(--tb-accent); }
.tb-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tb-related-card { background: var(--tb-card); border: 1px solid var(--tb-line); border-radius: 6px; overflow: hidden; }
.tb-rc-thumb img { width: 100%; height: 108px; object-fit: cover; display: block; }
.tb-related-card h4 { font-size: 13.3px; line-height: 1.5; padding: 10px 12px 4px; margin: 0; }
.tb-related-card h4 a { color: var(--tb-ink); }
.tb-related-card > span, .tb-related-card span { display: block; padding: 0 12px 10px; color: var(--tb-muted); font-size: 12px; }

/* ---------- 分页 ---------- */
.tb-pages { margin-top: 28px; }
.tb-pages ul, .tb-pages .pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tb-pages a, .tb-pages span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--tb-line); background: var(--tb-card); color: var(--tb-ink); font-size: 14px; }
.tb-pages a:hover { border-color: var(--tb-a); color: var(--tb-a); }
.tb-pages .active, .tb-pages .on, .tb-pages span.current { background: var(--tb-a); color: #fff; border-color: var(--tb-a); }

/* ---------- 标签/搜索页 ---------- */
.tb-tag-page .tb-crumb { padding-left: 0; }
.tb-tag-head { display: flex; gap: 16px; align-items: center; padding: 22px 0 8px; }
.tb-tag-hash { width: 50px; height: 50px; border-radius: 6px; background: var(--tb-a); color: #fff; font-size: 26px; font-weight: 900; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tb-tag-head h2 { margin-bottom: 2px; }
.tb-tag-head h2 small { color: var(--tb-muted); font-weight: 500; margin-left: 10px; }
.tb-tag-head p { color: var(--tb-muted); font-size: 13.5px; margin: 0; }
.tb-search-page { padding-top: 44px; padding-bottom: 54px; }
.tb-search-box { text-align: center; margin-bottom: 30px; }
.tb-search-box h2 { font-size: 27px; }
.tb-search-box p { color: var(--tb-muted); }
.tb-search-form { max-width: 560px; margin: 0 auto; display: flex; }
.tb-search-form form { display: flex; width: 100%; position: static; }
.tb-search-form input { flex: 1; border: 1.5px solid var(--tb-line); border-right: 0; border-radius: 6px 0 0 6px; padding: 12px 20px; font-size: 15px; outline: none; background: var(--tb-card); color: var(--tb-ink); }
.tb-search-form button { border: 0; border-radius: 0 6px 6px 0; background: var(--tb-a); color: #fff; padding: 0 28px; font-size: 15px; font-weight: 700; cursor: pointer; }
.tb-result-count { color: var(--tb-muted); font-size: 14px; margin-bottom: 14px; }
.tb-empty { text-align: center; padding: 60px 0; }
.tb-empty-emoji { font-size: 52px; margin-bottom: 12px; }
.tb-empty p { color: var(--tb-muted); margin-bottom: 18px; }

/* ---------- 首页区块顺序（按站重排，DOM 序不变） ---------- */
.site-main { display: flex; flex-direction: column; }
.tb-hero { order: 1; }
.tb-stats { order: 2; }
.tb-why { order: 3; }
.tb-about { order: 4; }
.tb-honor { order: 5; }
.tb-dept { order: 6; }
.tb-secblock { order: 7; }
.tb-matches { order: 8; }
.tb-faq { order: 9; }
.tb-mission { order: 10; }
.tb-rate { order: 11; }
.tb-news { order: 2; }
body[data-layout="1"] .tb-news { order: 2; }
body[data-layout="1"] .tb-matches { order: 3; }
body[data-layout="1"] .tb-stats { order: 12; }
body[data-layout="2"] .tb-dept { order: 2; }
body[data-layout="2"] .tb-matches { order: 3; }
body[data-layout="2"] .tb-why { order: 12; }
body[data-layout="3"] .tb-rate { order: 2; }
body[data-layout="3"] .tb-news { order: 3; }
body[data-layout="3"] .tb-stats { order: 12; }
body[data-layout="4"] .tb-matches { order: 2; }
body[data-layout="4"] .tb-about { order: 3; }
body[data-layout="4"] .tb-dept { order: 12; }

/* ---------- 五套主题（复合变量全部字面重声明，防 var() 冻结） ---------- */
/* 主题2 深海电蓝 */
body[data-theme="2"] {
    --tb-a: #1d4ed8; --tb-b: #0891b2; --tb-accent: #ea580c;
    --tb-body-bg: #f3f6fb; --tb-line: #dbe3f0; --tb-ink: #16233c;
    --tb-grad: linear-gradient(135deg, #1d4ed8, #0891b2);
    --tb-dark-sec: linear-gradient(160deg, #0b1e4b 0%, #1e3a8a 70%, #1d4ed8 100%);
    --tb-shadow: 0 2px 0 rgba(22, 35, 60, .04);
}
.tb-footer { background: #0b1220; }
body[data-theme="2"] .tb-footer { background: #0a1226; }

/* 主题3 绛紫霓虹 */
body[data-theme="3"] {
    --tb-a: #6d28d9; --tb-b: #db2777; --tb-accent: #0ea5e9;
    --tb-body-bg: #f7f5fd; --tb-line: #e5def5; --tb-ink: #241b38;
    --tb-grad: linear-gradient(135deg, #6d28d9, #db2777);
    --tb-dark-sec: linear-gradient(160deg, #1e1043 0%, #4c1d95 70%, #6d28d9 100%);
    --tb-shadow: 0 2px 0 rgba(36, 27, 56, .04);
}
body[data-theme="3"] .tb-footer { background: #150b2e; }

/* 主题4 赤陶暖橙 */
body[data-theme="4"] {
    --tb-a: #b91c1c; --tb-b: #ea580c; --tb-accent: #d97706;
    --tb-body-bg: #fdf6f1; --tb-line: #f2ded2; --tb-ink: #361d15;
    --tb-grad: linear-gradient(135deg, #b91c1c, #ea580c);
    --tb-dark-sec: linear-gradient(160deg, #431407 0%, #9a3412 70%, #c2410c 100%);
    --tb-shadow: 0 2px 0 rgba(54, 29, 21, .04);
}
body[data-theme="4"] .tb-footer { background: #26090b; }

/* 主题5 石墨钢青 */
body[data-theme="5"] {
    --tb-a: #0f766e; --tb-b: #475569; --tb-accent: #e11d48;
    --tb-body-bg: #f3f6f6; --tb-line: #d9e3e3; --tb-ink: #17302e;
    --tb-grad: linear-gradient(135deg, #0f766e, #475569);
    --tb-dark-sec: linear-gradient(160deg, #042f2e 0%, #115e59 70%, #0f766e 100%);
    --tb-shadow: 0 2px 0 rgba(23, 48, 46, .04);
}
body[data-theme="5"] .tb-footer { background: #0a1a1a; }

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
    .tb-hero-brand { font-size: 30px; }
    .tb-hero-slogan { font-size: 19px; }
    .tb-honor-grid { grid-template-columns: repeat(3, 1fr); }
    .tb-dept-grid { grid-template-columns: 1fr; }
}
@media (max-width: 992px) {
    .tb-search { display: none; }
    .tb-layout { grid-template-columns: 1fr; }
    .tb-side-col { order: 2; }
    .tb-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .tb-stat-card:nth-child(2) { border-right: 0; }
    .tb-stat-card { border-bottom: 1px solid var(--tb-line); }
    .tb-stat-card:nth-last-child(-n+2) { border-bottom: 0; }
    .tb-match-grid, .tb-card-grid, .tb-card-grid-3, .tb-rate-grid { grid-template-columns: repeat(2, 1fr); }
    .tb-about-grid, .tb-mission-grid { grid-template-columns: 1fr; }
    .tb-why-grid { grid-template-columns: repeat(2, 1fr); }
    .tb-hero-in { flex-direction: column; align-items: flex-start; justify-content: flex-end; }
    .tb-hero-side { flex-direction: row; flex-wrap: wrap; }
    .tb-related-grid { grid-template-columns: repeat(2, 1fr); }
    .tb-foot-grid { grid-template-columns: 1fr 1fr; }
    .tb-menu a { padding: 20px 10px 18px; font-size: 14px; }
}
@media (max-width: 767px) {
    .tb-sec { padding: 38px 0; }
    .tb-sec-head h2, .tb-center-title, .tb-mission-txt h2, .tb-news-head h2, .tb-search-box h2 { font-size: 22px; }
    .tb-nav { min-height: 60px; }
    .tb-brand { flex: 0 1 auto; min-width: 0; }
    .tb-brand-text { font-size: 14px; white-space: nowrap; max-width: calc(100vw - 96px); overflow: hidden; text-overflow: ellipsis; }
    .tb-login { padding: 6px 12px; font-size: 12.5px; order: 3; }
    .tb-nav-burger { display: flex; flex-direction: column; gap: 5px; padding: 10px; order: 4; cursor: pointer; }
    .tb-nav-burger span { width: 22px; height: 2.5px; border-radius: 2px; background: var(--tb-ink); display: block; transition: transform .2s; }
    .tb-nav-collapse { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--tb-line); padding-bottom: 10px; }
    .tb-nav-check:checked ~ .tb-nav-collapse { display: flex; }
    .tb-menu { flex-direction: column; align-items: stretch; overflow: visible; }
    .tb-menu li { width: 100%; }
    .tb-menu a { padding: 12px 14px; border-bottom: 1px solid var(--tb-line); }
    .tb-menu li.on a { background: var(--tb-body-bg); }
    .tb-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .tb-stat-card h3 { font-size: 25px; }
    .tb-why-grid { grid-template-columns: 1fr; }
    .tb-why-item { border-right: 0; }
    .tb-honor-grid { grid-template-columns: repeat(2, 1fr); }
    .tb-match-grid, .tb-card-grid, .tb-card-grid-3, .tb-rate-grid, .tb-related-grid { grid-template-columns: 1fr; }
    .tb-hero-brand { font-size: 23px; }
    .tb-hero-slogan { font-size: 16px; }
    .tb-hero { min-height: 320px; }
    .tb-hero-in { padding-top: 44px; padding-bottom: 40px; min-height: 320px; }
    .tb-article-card { padding: 20px 16px; }
    .tb-article-head h1, .tb-page-head h1 { font-size: 22px; }
    .tb-post-content { font-size: 15.5px; }
    .tb-post-nav a { max-width: 100%; }
    .tb-news-card { width: 248px; }
    .tb-foot-grid { grid-template-columns: 1fr; gap: 20px; }
    .tb-backtop { right: 12px; bottom: 18px; }
    .tb-cat-hero { text-align: left; padding: 32px 0; }
}
@media (max-width: 560px) {
    .tb-honor-grid { grid-template-columns: 1fr; }
    .tb-hero-chip { min-width: 116px; padding: 8px 14px; }
    .tb-mc-name { font-size: 11.5px; }
    .tb-stats-grid { grid-template-columns: 1fr 1fr; }
}
