:root {
  --bg: #f6f7fb;
  --bg-soft: #eef1f8;
  --card: #ffffff;
  --text: #1a1d29;
  --text-2: #4a5063;
  --text-3: #8188a0;
  --line: #e6e9f2;
  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --brand-soft: #eef0ff;
  --accent: #06b6d4;
  --green: #05966a;
  --orange: #ea580c;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 24, 40, .04), 0 8px 24px rgba(20, 24, 40, .06);
  --shadow-lg: 0 4px 12px rgba(20, 24, 40, .06), 0 18px 44px rgba(20, 24, 40, .1);
  --maxw: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.35; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr-in { display: flex; align-items: center; gap: 18px; height: 62px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; white-space: nowrap; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 800;
}
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { padding: 7px 12px; border-radius: 8px; color: var(--text-2); font-size: 14.5px; font-weight: 500; }
.nav a:hover { background: var(--bg-soft); color: var(--text); }
.nav a.on { background: var(--brand-soft); color: var(--brand); }
.hdr-search { margin-left: auto; position: relative; }
.hdr-search input {
  width: 220px; padding: 8px 12px 8px 32px; border: 1px solid var(--line);
  border-radius: 999px; background: #fff; font-size: 14px; color: var(--text); outline: none;
}
.hdr-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.hdr-search .sicon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 13px; }
.sugs { position: absolute; top: 44px; right: 0; width: 320px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; display: none; max-height: 380px; overflow-y: auto; }
.sugs.show { display: block; }
.sugs a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-bottom: 1px solid #f2f4fa; }
.sugs a:hover { background: var(--bg-soft); }
.sugs .sg-t { font-size: 14px; font-weight: 600; }
.sugs .sg-d { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; cursor: pointer; color: var(--text-2); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, #f3f2ff 0%, #f6f7fb 100%); border-bottom: 1px solid var(--line); padding: 46px 0 40px; }
.hero h1 { font-size: 34px; margin-bottom: 12px; }
.hero .sub { color: var(--text-2); font-size: 16px; max-width: 760px; margin-bottom: 22px; }
.hero-search { display: flex; gap: 10px; max-width: 640px; }
.hero-search input { flex: 1; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; outline: none; background: #fff; box-shadow: var(--shadow); }
.hero-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,70,229,.14); }
.btn { display: inline-block; padding: 9px 16px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 600; font-size: 14px; border: none; cursor: pointer; }
.btn:hover { background: #4338ca; }
.btn-lg { padding: 13px 24px; font-size: 15px; }
.btn-ghost { background: #fff; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--bg-soft); }
.stats { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 26px; }
.stat b { display: block; font-size: 24px; color: var(--brand); line-height: 1.2; }
.stat span { font-size: 13px; color: var(--text-3); }

/* ---------- Section ---------- */
.sec { padding: 42px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.sec-head h2 { font-size: 22px; margin: 0; }
.sec-head p { margin: 4px 0 0; color: var(--text-3); font-size: 14px; }
.more { font-size: 14px; color: var(--brand); font-weight: 600; white-space: nowrap; }

/* ---------- Category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.cat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; gap: 12px; align-items: flex-start; transition: .18s; }
.cat-card:hover { border-color: #cfd4ea; box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; background: var(--brand-soft); flex: none; }
.cat-card h3 { font-size: 15px; margin: 0 0 2px; }
.cat-card p { margin: 0; font-size: 12.5px; color: var(--text-3); }
.cat-card .cnt { font-size: 12px; color: var(--brand); font-weight: 600; }

/* ---------- Tool grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; transition: .18s; position: relative; }
.card:hover { border-color: #cfd4ea; box-shadow: var(--shadow); transform: translateY(-2px); }
.card-top { display: flex; gap: 12px; align-items: center; }
.tlogo { width: 42px; height: 42px; border-radius: 11px; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 17px; color: #fff; letter-spacing: -.02em; }
.card h3 { font-size: 16px; margin: 0; }
.card .meta { font-size: 12.5px; color: var(--text-3); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card .desc { font-size: 13.5px; color: var(--text-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--text-3); }
.rate { color: var(--orange); font-weight: 700; }

.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--bg-soft); color: var(--text-2); font-size: 12px; }
.tag-free { background: #e8f7f1; color: var(--green); }
.tag-cn { background: #fff0e8; color: var(--orange); }
.tag-cat { background: var(--brand-soft); color: var(--brand); }

/* ---------- Filter bar ---------- */
.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 18px; }
.f-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.f-row + .f-row { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.f-label { font-size: 13px; color: var(--text-3); font-weight: 600; min-width: 48px; }
.chip { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; color: var(--text-2); cursor: pointer; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.filters input[type=search] { flex: 1; min-width: 200px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; outline: none; }
.filters input[type=search]:focus { border-color: var(--brand); }
.filters select { padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 14px; color: var(--text); }
.result-count { font-size: 13px; color: var(--text-3); margin-bottom: 12px; }
.empty { text-align: center; padding: 60px 20px; color: var(--text-3); }

/* ---------- Breadcrumb ---------- */
.crumb { font-size: 13px; color: var(--text-3); padding: 16px 0 0; }
.crumb a:hover { color: var(--brand); }
.crumb span { margin: 0 6px; color: #c3c8d8; }

/* ---------- Detail page ---------- */
.detail { padding: 22px 0 50px; }
.d-head { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; gap: 18px; align-items: flex-start; box-shadow: var(--shadow); flex-wrap: wrap; }
.d-logo { width: 66px; height: 66px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; font-weight: 800; color: #fff; flex: none; }
.d-head h1 { font-size: 26px; margin: 0 0 6px; }
.d-tagline { color: var(--text-2); margin: 0 0 10px; }
.d-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.d-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.d-body { display: grid; grid-template-columns: 1fr 300px; gap: 22px; margin-top: 22px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.panel h2 { font-size: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.panel h3 { font-size: 15px; margin-top: 18px; }
.panel p { color: var(--text-2); }
.side { position: sticky; top: 78px; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.info-list li:last-child { border-bottom: none; }
.info-list b { flex: none; width: 74px; color: var(--text-3); font-weight: 500; }
.info-list span { color: var(--text-2); }
.pros, .cons { list-style: none; padding: 0; margin: 0 0 14px; }
.pros li, .cons li { position: relative; padding-left: 24px; margin-bottom: 8px; font-size: 14px; color: var(--text-2); }
.pros li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.cons li::before { content: "!"; position: absolute; left: 4px; color: var(--orange); font-weight: 700; }
.feat-list li { color: var(--text-2); font-size: 14px; margin-bottom: 8px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: 600; font-size: 15px; }
.faq-a { color: var(--text-2); font-size: 14px; margin: 6px 0 0; }
.rel-list { display: flex; flex-direction: column; gap: 8px; }
.rel-item { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; }
.rel-item:hover { background: var(--bg-soft); }
.rel-item .tlogo { width: 32px; height: 32px; font-size: 14px; border-radius: 9px; }
.rel-item div { min-width: 0; }
.rel-item b { font-size: 14px; display: block; }
.rel-item span { font-size: 12px; color: var(--text-3); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toc { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--text-2); }
.toc a:hover { color: var(--brand); }

/* ---------- Article ---------- */
.article { max-width: 780px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.article h1 { font-size: 28px; }
.article .meta { color: var(--text-3); font-size: 13px; margin-bottom: 24px; }
.article h2 { font-size: 20px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); }
.article p { color: var(--text-2); font-size: 15.5px; }
.article .lead { font-size: 16px; color: var(--text); }

/* ---------- Guide cards ---------- */
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.g-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; transition: .18s; }
.g-card:hover { border-color: #cfd4ea; box-shadow: var(--shadow); transform: translateY(-2px); }
.g-card h3 { font-size: 16px; margin: 0 0 6px; }
.g-card p { font-size: 13.5px; color: var(--text-3); margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.g-card .m { font-size: 12.5px; color: var(--brand); font-weight: 600; }

/* GEO 内容页：替代品 / 对比 表格 */
.cmp-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 6px; }
.cmp-tbl th, .cmp-tbl td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp-tbl thead th { background: var(--bg-2); font-weight: 600; color: var(--text); }
.cmp-tbl tbody tr:hover { background: var(--bg-2); }
.cmp-tbl .rate { white-space: nowrap; }

/* ---------- SEO text blocks ---------- */
.seo-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.seo-box h2 { font-size: 20px; }
.seo-box p { color: var(--text-2); }
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 14px; }
.link-grid a { font-size: 13px; color: var(--text-2); padding: 6px 10px; border-radius: 8px; background: var(--bg-soft); }
.link-grid a:hover { background: var(--brand-soft); color: var(--brand); }

/* ---------- Footer ---------- */
.ftr { background: #fff; border-top: 1px solid var(--line); margin-top: 40px; padding: 36px 0 24px; }
.ftr-in { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 24px; }
.ftr h4 { font-size: 14px; margin-bottom: 10px; }
.ftr ul { list-style: none; padding: 0; margin: 0; }
.ftr li { margin-bottom: 6px; font-size: 13.5px; color: var(--text-2); }
.ftr li:hover { color: var(--brand); }
.ftr p { font-size: 13.5px; color: var(--text-3); }
.ftr-bot { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ---------- 排行榜 ---------- */
.rank-hero { background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 45%, #06b6d4 100%); color: #fff; padding: 40px 0 34px; }
.rank-hero h1 { font-size: 32px; margin: 0 0 10px; color: #fff; }
.rank-hero p { color: rgba(255,255,255,.88); max-width: 780px; margin: 0; }
.rank-hero .rh-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.rank-hero .rh-meta span { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; }

.podium { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; align-items: end; margin-top: 6px; }
.podium a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; text-align: center; box-shadow: var(--shadow); position: relative; transition: transform .15s, box-shadow .15s; }
.podium a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.podium a.p1 { border-color: #f0c14b; background: linear-gradient(180deg, #fffdf3 0%, #ffffff 60%); padding-top: 26px; padding-bottom: 26px; }
.podium a.p2 { border-color: #d6dbe8; }
.podium a.p3 { border-color: #ecd6bd; }
.podium .medal { font-size: 26px; line-height: 1; display: block; margin-bottom: 8px; }
.podium .tlogo { margin: 0 auto 10px; width: 46px; height: 46px; font-size: 20px; }
.podium h3 { font-size: 16px; margin: 0 0 4px; }
.podium .pd-cat { font-size: 12px; color: var(--text-3); }
.podium .pd-score { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 3px 10px; }
.podium .pd-tag { display: block; font-size: 12.5px; color: var(--text-2); margin-top: 8px; min-height: 34px; }

.rank-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rank-list-head { display: grid; grid-template-columns: 52px 40px 1fr 78px 84px 88px; gap: 12px; padding: 10px 16px; background: var(--bg-soft); font-size: 12px; color: var(--text-3); font-weight: 600; border-bottom: 1px solid var(--line); }
.rank-list-head span:nth-child(1), .rank-list-head span:nth-child(2) { text-align: center; }
.rank-list-head span:nth-child(4), .rank-list-head span:nth-child(5), .rank-list-head span:nth-child(6) { text-align: right; }
.rank-row { display: grid; grid-template-columns: 52px 40px 1fr 78px 84px 88px; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.rank-row:last-child { border-bottom: 0; }
.rank-row:hover { background: var(--bg-soft); }
.rank-row .rk { font-size: 16px; font-weight: 800; color: var(--text-3); text-align: center; font-variant-numeric: tabular-nums; }
.rank-row.top1 .rk, .rank-row.top2 .rk, .rank-row.top3 .rk { font-size: 19px; color: var(--brand); }
.rank-row .tlogo { width: 34px; height: 34px; font-size: 15px; }
.rank-row .ri { min-width: 0; }
.rank-row .ri b { display: block; font-size: 14.5px; font-weight: 600; }
.rank-row .ri b .tag { margin-left: 7px; vertical-align: 1px; font-weight: 500; }
.rank-row .ri > span { display: block; font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-row .rate { font-size: 12px; text-align: right; white-space: nowrap; }
.rank-row .score { text-align: right; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; font-size: 15px; }
.rank-row .score i { display: block; font-style: normal; font-size: 11px; font-weight: 400; color: var(--text-3); }
.rank-row .act { text-align: right; font-size: 12.5px; color: var(--brand); font-weight: 600; white-space: nowrap; }

.rank-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 18px; }
.rank-cat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.rank-cat h3 { font-size: 15.5px; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.rank-cat h3 .cat-ico { width: 30px; height: 30px; font-size: 15px; }
.rank-cat .rc-sub { font-size: 12.5px; color: var(--text-3); margin: 0 0 12px; }
.rank-cat ol { list-style: none; padding: 0; margin: 0 0 12px; counter-reset: rc; }
.rank-cat ol li { display: flex; align-items: center; gap: 9px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.rank-cat ol li:last-child { border-bottom: 0; }
.rank-cat ol li .n { width: 20px; height: 20px; border-radius: 6px; background: var(--bg-soft); color: var(--text-2); font-size: 11.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.rank-cat ol li:nth-child(1) .n { background: #f0c14b; color: #5a4400; }
.rank-cat ol li:nth-child(2) .n { background: #d6dbe8; color: #39415a; }
.rank-cat ol li:nth-child(3) .n { background: #ecd6bd; color: #6b3f13; }
.rank-cat ol li b { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-cat ol li em { font-style: normal; font-size: 12px; color: var(--brand); font-weight: 700; }
.rank-cat .rc-more { font-size: 13px; color: var(--brand); font-weight: 600; }

.tier-note { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 14px; }
.tier-note div { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13px; color: var(--text-2); }
.tier-note b { display: block; color: var(--text); margin-bottom: 4px; font-size: 13.5px; }

/* ---------- 国内可直接访问工具页 ---------- */
a.stat-link { display: block; border-radius: 12px; padding: 6px 12px; margin: -6px -4px; transition: background .16s ease; }
a.stat-link:hover { background: var(--brand-soft); }
a.stat-link span { color: var(--brand); font-weight: 600; }
a.stat-link:hover span { text-decoration: underline; }
a.stat-link .sarrow { display: inline-block; transition: transform .16s ease; }
a.stat-link:hover .sarrow { transform: translateX(3px); }

.dom-hero { background: linear-gradient(135deg, #0f766e 0%, #0891b2 48%, #4f46e5 100%); color: #fff; padding: 40px 0 34px; }
.dom-hero h1 { font-size: 32px; margin: 0 0 10px; color: #fff; }
.dom-hero p { color: rgba(255,255,255,.9); max-width: 800px; margin: 0; }
.dom-hero .rh-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.dom-hero .rh-meta span { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; }

.anchor-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.anchor-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font-size: 13px; color: var(--text-2); transition: .16s; }
.anchor-nav a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.anchor-nav a em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--text-3); }
.anchor-nav a:hover em { color: var(--brand); }

section[id^="cat-"] { scroll-margin-top: 78px; }
.dom-head { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; margin: 0; }
.dom-head h2 { display: flex; align-items: center; gap: 10px; font-size: 21px; margin: 0; }
.dom-head .cat-ico { width: 34px; height: 34px; font-size: 17px; }
.dom-head .num { font-size: 12.5px; font-weight: 700; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 2px 11px; }
.dom-back { margin-left: auto; font-size: 13px; color: var(--brand); font-weight: 600; white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .d-body { grid-template-columns: 1fr; }
  .side { position: static; }
  .ftr-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .nav { display: none; }
  .nav.open { display: flex; position: absolute; top: 62px; left: 0; right: 0; background: #fff; flex-direction: column;
    padding: 10px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .burger { display: block; }
  .hdr-search { display: none; }
  .hero h1 { font-size: 26px; }
  .hero { padding: 32px 0 28px; }
  .article { padding: 22px 18px; }
  .d-head { padding: 18px; }
  .d-head h1 { font-size: 22px; }
  .ftr-in { grid-template-columns: 1fr; }
  .stats { gap: 20px; }
  .rank-hero h1 { font-size: 24px; }
  .rank-hero { padding: 28px 0 24px; }
  .dom-hero h1 { font-size: 24px; }
  .dom-hero { padding: 28px 0 24px; }
  .dom-head h2 { font-size: 18px; }
  .dom-back { margin-left: 0; }
  .podium { grid-template-columns: 1fr; align-items: stretch; }
  .podium a.p1 { order: -1; }
  .rank-list-head { display: none; }
  .rank-row { grid-template-columns: 38px 1fr auto; grid-template-areas: "rk ri score" "rk rate act"; row-gap: 4px; padding: 12px; }
  .rank-row .rk { grid-area: rk; align-self: center; }
  .rank-row .tlogo { display: none; }
  .rank-row .ri { grid-area: ri; }
  .rank-row .score { grid-area: score; }
  .rank-row .rate { grid-area: rate; }
  .rank-row .act { grid-area: act; }
}

/* ---------- 回到顶部按钮 ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 6px 18px rgba(79, 70, 229, .35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s, box-shadow .22s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { box-shadow: 0 10px 26px rgba(79, 70, 229, .5); transform: translateY(-2px); }
.to-top:active { transform: translateY(0) scale(.94); }
.to-top:focus-visible { outline: 3px solid rgba(79, 70, 229, .35); outline-offset: 2px; }
@media (max-width: 640px) {
  .to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}
