/* =========================================================
   个人网站样式表
   改颜色改最上面的“设计变量”就够了，不用动下面的规则。
   ========================================================= */

:root,
:root:not([data-theme="dark"]) {
  /* 颜色 */
  --bg: #f5f0e8;
  --surface: #fffaf2;
  --surface-muted: #ebe4d7;
  --text: #2c2925;
  --text-soft: #655f56;
  --text-faint: #8e877c;
  --line: #d8cfc0;
  --accent: #9f452f;
  --accent-hover: #893b28;
  --accent-2: #416b66;
  --accent-soft: rgba(159, 69, 47, 0.11);
  --on-accent: #fffaf3;
  --grad: linear-gradient(135deg, #9f452f, #416b66);

  /* 排版 */
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono",
    Menlo, monospace;

  /* 尺寸 */
  --maxw: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --section-y: 88px;
  --shadow-sm: 0 1px 2px rgba(61, 49, 38, 0.07);
  --shadow: 0 2px 4px rgba(61, 49, 38, 0.05), 0 14px 40px rgba(61, 49, 38, 0.09);
  --shadow-lift: 0 4px 10px rgba(61, 49, 38, 0.07), 0 24px 52px rgba(61, 49, 38, 0.13);
}

[data-theme="dark"] {
  --bg: #171513;
  --surface: #211d1a;
  --surface-muted: #2c2722;
  --text: #f3eadc;
  --text-soft: #c6b9a8;
  --text-faint: #918678;
  --line: #3d352d;
  --accent: #bc7d6d;
  --accent-hover: #ca998d;
  --accent-2: #7a9794;
  --accent-soft: rgba(188, 125, 109, 0.16);
  --on-accent: #211713;
  --grad: linear-gradient(135deg, #bc7d6d, #7a9794);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45);
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.4);
  --shadow-lift: 0 4px 12px rgba(0, 0, 0, 0.45), 0 26px 56px rgba(0, 0, 0, 0.5);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0 0 1em;
}

::selection {
  background: var(--accent-soft);
}

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

/* ---------- 顶部导航 ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  flex: none;
}

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

/* 顶栏中间那块 <nav> 里面装了两样东西：
   导航链接（首页 / 作品 / …）和右边的「登录 / 注册」。
   <nav> 默认是块级元素，两块会上下叠起来——
   结果导航项被顶到顶栏外面（实测 y=-7，上半截被切掉），
   登录注册掉到第二行（y=32），跟导航根本不在一条线上。
   这里把它改成横向排列，两样东西才会和两边对齐。 */
.site-nav nav {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

/* 窄屏时导航链接收进汉堡菜单，只剩登录/注册留在顶栏 */
@media (max-width: 900px) {
  .site-nav nav {
    margin-left: auto;
  }

  /* 还有一条旧规则把「登录 / 注册」设成整行宽 + 居中 + 上边距 8px，
     那是它当年准备放进汉堡下拉菜单里写的。现在它已经站在顶栏这一行上，
     那条规则反而把它往下推 4px、跟右边的图标对不齐。这里改回来。 */
  .site-nav .nav-user {
    order: 0;
    width: auto;
    justify-content: flex-start;
    margin: 0;
  }
}

.nav-links a {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--text-soft);
  transition: color 0.18s ease, background-color 0.18s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface-muted);
}

.nav-links a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

.nav-links a.nav-feedback {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

.nav-links a.nav-feedback:hover {
  box-shadow: inset 0 0 0 1px var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
  padding: 0;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--text-faint);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.nav-toggle {
  display: none;
}

/* ---------- 通用区块 ---------- */
section {
  padding: var(--section-y) 0;
}

section + section {
  padding-top: 0;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

.section-head {
  margin-bottom: 34px;
}

.section-head h2 {
  font-size: clamp(23px, 3vw, 30px);
}

.section-head .lead {
  color: var(--text-soft);
  max-width: 60ch;
  margin: 10px 0 0;
}

/* ---------- 首屏 ---------- */
.hero {
  padding: 84px 0 72px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13.5px;
  color: var(--text-soft);
  margin-bottom: 22px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.hero h1 {
  font-size: clamp(34px, 6.2vw, 56px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}

.hero h1 .hl {
  color: var(--accent);
}

.hero .tagline {
  font-size: clamp(16px, 2.1vw, 18.5px);
  color: var(--text-soft);
  max-width: 46ch;
  margin-bottom: 30px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.18s ease,
    border-color 0.18s ease, color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--text-faint);
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.hero-card h3 {
  font-size: 15px;
  margin-bottom: 14px;
}

.stat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.stat-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
  color: var(--text-soft);
}

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

.stat-list b {
  font-family: var(--font-mono);
  font-size: 17px;
  color: var(--text);
}

/* 数值较长的行（比如学校全名）单独占一行，避免把卡片挤变形 */
.stat-list li.wide {
  display: block;
}

.stat-list li.wide span {
  display: block;
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 2px;
}

.stat-list li.wide b {
  display: block;
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 650;
  line-height: 1.55;
}

/* ---------- 卡片网格 ---------- */
.grid {
  display: grid;
  gap: 18px;
}

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

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

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

a.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-soft);
  font-size: 14.8px;
  margin: 0;
}

.card .card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card-emoji {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 19px;
  flex: none;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-soft);
  border: 1px solid var(--line);
}

.meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
}

/* ---------- 文章列表 ---------- */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.post-list li {
  border-bottom: 1px solid var(--line);
}

.post-list a {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 18px 10px;
  border-radius: var(--radius-sm);
  transition: background-color 0.18s ease, padding-left 0.18s ease;
}

.post-list a:hover {
  background: var(--surface-muted);
  padding-left: 16px;
}

.post-list .title {
  font-weight: 600;
  font-size: 16.5px;
}

.post-list .sub {
  color: var(--text-soft);
  font-size: 14px;
  display: block;
  margin-top: 2px;
}

.arrow {
  color: var(--text-faint);
  font-size: 18px;
  transition: transform 0.18s ease, color 0.18s ease;
}

.post-list a:hover .arrow {
  transform: translateX(4px);
  color: var(--accent);
}

/* ---------- 关于页 / 文章排版 ---------- */
.page-head {
  padding: 64px 0 8px;
}

.page-head h1 {
  font-size: clamp(30px, 4.6vw, 42px);
  margin-bottom: 14px;
}

.page-head .lead {
  color: var(--text-soft);
  font-size: 17px;
  max-width: 62ch;
}

.prose {
  max-width: 70ch;
}

.prose h2 {
  font-size: 23px;
  margin: 46px 0 14px;
}

.prose h3 {
  font-size: 18.5px;
  margin: 32px 0 10px;
}

.prose p,
.prose li {
  color: var(--text-soft);
}

.prose strong {
  color: var(--text);
}

.prose a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
}

.prose a:hover {
  border-bottom-color: var(--accent);
}

.prose ul,
.prose ol {
  padding-left: 22px;
  margin: 0 0 1.2em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  color: var(--text-soft);
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
}

.prose pre {
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.7;
}

.prose pre code {
  background: none;
  border: 0;
  padding: 0;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  position: relative;
  padding: 0 0 26px 26px;
  border-left: 1px solid var(--line);
}

.timeline li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}

.timeline .when {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
}

.timeline .what {
  font-weight: 600;
  display: block;
  margin: 2px 0 4px;
}

.timeline .where {
  color: var(--text-soft);
  font-size: 14.5px;
}

/* ---------- 联系 ---------- */
.contact-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-box h2 {
  font-size: clamp(22px, 3vw, 28px);
  margin-bottom: 10px;
}

.contact-box p {
  color: var(--text-soft);
  max-width: 52ch;
  margin: 0 auto 26px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* ---------- 页脚 ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  padding: 30px 0 40px;
  margin-top: 20px;
}

.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-faint);
  font-size: 13.5px;
}

.foot-links {
  display: flex;
  gap: 16px;
}

.foot-links a:hover {
  color: var(--accent);
}

/* ---------- 滚动出现动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover,
  a.card:hover {
    transform: none;
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* 六个导航项在窄屏容易挤，提前收进汉堡菜单 */
  .nav-toggle {
    display: grid;
  }
  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 16px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-links a {
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    font-size: 15.5px;
  }
}

@media (max-width: 720px) {
  section {
    padding: 56px 0;
  }
  .hero {
    padding: 52px 0 48px;
  }
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .post-list a {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }
  .post-list .meta {
    display: none;
  }
  .contact-box {
    padding: 28px 20px;
  }
}

/* ---------- 蓝 + 绿 的品牌处理 ---------- */

.brand-mark {
  background: var(--grad);
}

.dot {
  background: var(--accent-2);
}

.hero h1 .hl {
  color: var(--accent-2);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 .hl {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.badge-green {
  background: rgba(16, 163, 127, 0.12);
  color: var(--accent-2);
}

[data-theme="dark"] .badge-green {
  background: rgba(52, 211, 166, 0.16);
}

/* ---------- 空状态：还没有内容时显示的占位提示 ---------- */

.empty-note {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  background: var(--surface);
}

.empty-note .big {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.empty-note .small {
  font-size: 14px;
  color: var(--text-faint);
}

/* ---------- 实验室 / 游戏卡片 ---------- */

.lab-card {
  position: relative;
}

.badge {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.lab-card.is-soon {
  opacity: 0.75;
}

.lab-card.is-soon:hover {
  transform: none;
  box-shadow: none;
}

/* ---------- 赞赏弹窗 ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 16, 26, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px 28px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}

.modal::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: 20px 20px 0 0;
  background: var(--grad);
}

.modal h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.modal p {
  color: var(--text-soft);
  font-size: 14.5px;
  margin-bottom: 18px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: var(--surface-muted);
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text);
}

.modal .qr {
  width: 220px;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.modal .qr-slot {
  width: 220px;
  height: 220px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1.7;
}

.modal .hint {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--text-faint);
}

/* 赞赏弹窗的装饰 */
.modal-emoji {
  width: 62px;
  height: 62px;
  margin: 2px auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 30px;
  background: radial-gradient(circle at 30% 25%, rgba(93, 158, 255, 0.22), rgba(16, 163, 127, 0.18));
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(29, 111, 224, 0.14);
}

.qr-wrap {
  position: relative;
  margin: 2px auto 0;
  padding: 12px;
  border-radius: 16px;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad) border-box;
  border: 2px solid transparent;
  width: fit-content;
  max-width: 100%;
}

.qr-wrap .qr,
.qr-wrap .qr-slot {
  display: block;
  border: 0;
}

.modal-thanks {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 14px;
  font-weight: 600;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .modal-thanks {
    color: var(--accent);
  }
}

@media (max-width: 720px) {
  .hero-btn-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ---------- 全站浮动的赞赏按钮 ---------- */

.tip-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(29, 111, 224, 0.34);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tip-fab:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 14px 32px rgba(29, 111, 224, 0.42);
}

.tip-fab:active {
  transform: scale(0.97);
}

/* 弹窗在小屏上不要顶到边，内容太高时可以内部滚动 */
.modal {
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

/* ---------- 键盘可访问性与锚点偏移 ---------- */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

section[id],
.contact-box[id] {
  scroll-margin-top: 84px;
}

@media (max-width: 720px) {
  .tip-fab {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 50px;
    height: 50px;
    font-size: 23px;
  }
}

/* =========================================================
   视觉翻修
   这一层放在最后，用来覆盖上面的默认样式，改动集中在这里。
   ========================================================= */

/* ---------- 背景质感 ---------- */

body {
  background-color: var(--bg);
  background-image: radial-gradient(900px 420px at 4% -12%, var(--surface-muted), transparent 72%);
  background-repeat: no-repeat;
}

/* ---------- 首屏：极光背景 + 更舒展的标题 ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 84px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -28% -20% auto -20%;
  height: 620px;
  background:
    radial-gradient(closest-side, var(--accent), transparent) 14% 42% / 46% 70% no-repeat,
    radial-gradient(closest-side, var(--accent-2), transparent) 84% 22% / 42% 64% no-repeat;
  opacity: 0.15;
  filter: blur(30px);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
}

.hero h1 {
  font-size: clamp(36px, 6.2vw, 60px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero .tagline {
  font-size: clamp(16.5px, 2vw, 19px);
  line-height: 1.8;
}

.hero-card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* ---------- 区块标题加编号 ---------- */

main {
  counter-reset: section;
}

.section-head .kicker::before {
  counter-increment: section;
  content: counter(section, decimal-leading-zero) " · ";
  color: var(--text-faint);
  opacity: 0.85;
}

.section-head h2 {
  letter-spacing: -0.02em;
}

/* ---------- 卡片 ---------- */

.card {
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

a.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

@supports ((-webkit-mask-composite: xor) or (mask-composite: exclude)) {
  a.card {
    position: relative;
  }

  a.card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--grad);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
  }

  a.card:hover::after {
    opacity: 0.6;
  }
}

.card-emoji {
  border-radius: 13px;
  font-size: 20px;
}

.card h3 {
  font-size: 17.5px;
  letter-spacing: -0.01em;
}

/* ---------- 按钮 ---------- */

.btn {
  padding: 12px 22px;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--grad);
  border-color: transparent;
}

.btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 10px 24px var(--accent-soft);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- 关于我（首页新增区块） ---------- */

.about-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.about-panel .lead {
  margin-bottom: 22px;
}

.about-quote {
  border-left: 3px solid var(--accent-2);
  padding-left: 18px;
  color: var(--text-soft);
  font-size: 15.5px;
  line-height: 1.85;
  margin: 0;
}

@media (max-width: 860px) {
  .about-panel {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px 22px;
  }
}

/* ---------- 阅读进度条 ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--grad);
  z-index: 80;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* ---------- 页脚 ---------- */

.site-foot {
  margin-top: 48px;
  padding: 34px 0 46px;
}

.foot-links a {
  position: relative;
  transition: color 0.18s ease;
}

.foot-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 1px;
  background: var(--accent);
  transition: right 0.2s ease;
}

.foot-links a:hover::after {
  right: 0;
}

/* ---------- 空状态与正文细节 ---------- */

.empty-note {
  background: linear-gradient(180deg, var(--surface), var(--surface-muted));
  padding: 46px 24px;
}

.prose a {
  text-decoration: underline;
  text-decoration-color: var(--accent-soft);
  text-underline-offset: 3px;
}

.prose a:hover {
  text-decoration-color: var(--accent);
}

.tag {
  border-radius: 999px;
  padding: 4px 11px;
}

/* ---------- 小屏 ---------- */

/* ---------- 表单控件 ---------- */

.field {
  display: block;
  margin-bottom: 16px;
}

.field > span {
  display: block;
  font-size: 13.5px;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.input,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="date"],
input[type="url"],
textarea {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.input:focus,
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 18px;
  font-size: 14px;
  color: var(--text-soft);
}

.check input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.msg {
  font-size: 13.5px;
  min-height: 21px;
  margin-top: 12px;
  color: var(--text-faint);
}

.msg.err {
  color: #d9534f;
}

.msg.ok {
  color: var(--accent-2);
}

/* ---------- 账户页面 ---------- */

.account-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 20px 64px;
}

.account-box {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow);
}

.account-box.wide {
  max-width: 760px;
}

.account-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.account-head img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.account-box h1 {
  font-size: 24px;
  margin-bottom: 6px;
}

.account-box .sub {
  color: var(--text-faint);
  font-size: 13.5px;
  margin-bottom: 22px;
}

.account-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  font-size: 13.5px;
}

.account-links a {
  color: var(--accent);
}

.account-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--surface-muted);
  display: grid;
  place-items: center;
  font-size: 32px;
  flex: none;
}

.account-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.account-tabs button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
  border-radius: 999px;
  padding: 7px 16px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.account-tabs button.on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

.account-section[hidden] {
  display: none;
}

.kv {
  list-style: none;
  margin: 0;
  padding: 0;
}

.kv li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
  color: var(--text-soft);
}

.kv li:last-child {
  border-bottom: 0;
}

.kv b {
  color: var(--text);
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}

.emoji-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.emoji-pick button {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 20px;
  cursor: pointer;
}

.emoji-pick button.on {
  border-color: var(--accent);
  background: var(--accent-soft);
}

@media (max-width: 620px) {
  .field-row {
    grid-template-columns: 1fr;
  }

  .account-box {
    padding: 24px 20px;
  }
}

@media (max-width: 720px) {
  :root {
    --section-y: 60px;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .card {
    padding: 22px;
  }
}

/* ============================================================
   社群入口、资源库、会员页（1.1 版新增）
   ============================================================ */

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.social-hint {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-faint);
  text-align: center;
}

/* ---------- 资源库列表 ---------- */

.res-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.res-toolbar .input {
  flex: 1;
  min-width: 200px;
}

.res-toolbar select.input {
  flex: 0 0 auto;
  width: auto;
  min-width: 130px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.chip.on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent, #fff);
  font-weight: 600;
}

.res-count {
  font-size: 13.5px;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.res-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.res-card h3 {
  margin: 0;
}

.res-card h3 a {
  color: inherit;
}

.res-card h3 a:hover {
  color: var(--accent);
}

.res-card.is-locked {
  background: linear-gradient(180deg, var(--surface), var(--surface-muted));
}

.res-card.is-locked h3 a::after {
  content: " 🔒";
  font-size: 15px;
}

.res-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.res-tags .tag {
  font-size: 12.5px;
}

.res-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--text-faint);
}

.res-lock {
  color: var(--accent);
  font-weight: 600;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: 12.5px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.res-lock:hover {
  color: #ff5c8a;
}

/* 首页精选资源卡上的「免费 / 会员」一行 */
.res-lock-line {
  display: block;
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
}

.res-lock-line.is-free {
  color: var(--accent-2);
}

.res-fav {
  margin-left: auto;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
  border-radius: 999px;
  padding: 4px 12px;
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}

.res-fav:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.res-fav.on {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.badge-vip {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}

/* ---------- 资源详情 ---------- */

.res-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.res-side {
  position: sticky;
  top: 90px;
}

.res-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.res-locked-box {
  margin-top: 16px;
  padding: 16px;
  border: 1px dashed var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
}

.res-locked-box p {
  margin: 8px 0 12px;
  font-size: 13.5px;
  color: var(--text-soft);
}

.res-qr {
  width: 100%;
  max-width: 210px;
  border-radius: 14px;
  border: 1px solid var(--line);
  display: block;
  margin: 0 auto 8px;
}

.res-qr-empty {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 190px;
  padding: 16px;
  border-style: dashed;
  font-size: 14px;
  color: var(--text-soft);
}

.res-comments {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.res-comment {
  padding: 14px 0;
  border-top: 1px dashed var(--line);
}

.res-comment .who {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.res-comment .av {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--surface-muted);
  display: grid;
  place-items: center;
  font-size: 15px;
}

.res-comment b {
  font-size: 14px;
}

.res-comment p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-soft);
  word-break: break-word;
}

.res-comment .reply {
  margin-top: 10px;
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13.5px;
  color: var(--text-soft);
}

/* ---------- 会员页 ---------- */

/* 广告位：后台勾了「启用」才出现；会员在前端会被隐藏 */

/* ============================================================
   1.8：把首页改成「开源项目 / 游戏」的盈利站
   ============================================================ */

/* --- 2.0 首页 v2：首屏封面拼贴 + 分区节奏 --- */

.hero-v2 .hero-inner {
  align-items: center;
}

.hero-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hero-tile {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  background: var(--surface-muted);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.hero-tile:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(20, 40, 80, 0.14);
}

.hero-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-tile-name {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75);
}

.hero-stats-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  font-size: 13px;
  color: var(--text-faint);
}

/* 分区交替底色，让长页面有节奏 */
.section-alt {
  background: var(--surface-muted);
}

/* 游戏卡片的按钮行 */
.game-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.game-actions .btn {
  flex: 1;
  justify-content: center;
}

/* 价格卡里的说明更紧凑 */
.price-card .sub {
  color: var(--text-faint);
  font-size: 13.5px;
  margin: 0 0 14px;
}

.price-card h3 {
  margin: 8px 0 0;
}

@media (max-width: 860px) {
  .hero-tiles {
    grid-template-columns: 1fr 1fr;
  }
}

.btn-lg {
  padding: 13px 24px;
  font-size: 15.5px;
}

.btn-accent {
  background: linear-gradient(135deg, #ff8a3d, #ff5c8a);
  color: #fff;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(255, 110, 100, 0.28);
}

.btn-accent:hover {
  filter: brightness(1.05);
}

.hero-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-faint);
}

.center {
  text-align: center;
}

.strip-section {
  padding: 0 0 6px;
}

/* 登录状态条 */
.status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.status-strip.is-member {
  border-left-color: var(--accent-2);
  background: linear-gradient(135deg, var(--accent-soft), var(--surface));
}

.status-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13.5px;
  color: var(--text-soft);
}

.status-main b {
  font-size: 15.5px;
  color: var(--text);
}

.status-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* 活动横幅 */
.banner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255, 138, 61, 0.14), rgba(255, 92, 138, 0.12));
  border: 1px dashed rgba(255, 110, 100, 0.5);
}

.banner-emoji {
  font-size: 20px;
}

.banner-text {
  flex: 1;
  min-width: 200px;
  font-size: 14px;
  color: var(--text-soft);
}

/* 两个大入口 */
.hub-card {
  display: block;
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.hub-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.hub-emoji {
  font-size: 34px;
  line-height: 1;
  margin-bottom: 12px;
}

.hub-card h3 {
  font-size: 20px;
  margin: 0 0 8px;
}

.hub-card p {
  color: var(--text-soft);
  font-size: 14.5px;
  margin: 0 0 14px;
}

.hub-more {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}

/* 价格卡 */
.price-card {
  text-align: center;
  position: relative;
}

.price-card.is-svip {
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(29, 111, 224, 0.12);
}

.price-line {
  font-size: 32px;
  font-weight: 800;
  margin: 6px 0 2px;
}

.price-line s {
  font-size: 16px;
  color: var(--text-faint);
  font-weight: 400;
}

.price-unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-faint);
}

/* 对比表里高亮「你在这」 */
.compare-table th.me,
.compare-table td.me {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

/* 导航右边的登录 / 会员区 */
.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
}

.nav-user .btn.small {
  padding: 7px 14px;
  font-size: 13.5px;
}

.nav-account {
  gap: 8px;
}

.nav-avatar {
  font-size: 16px;
}

.nav-nick {
  font-weight: 600;
}

.nav-tier {
  background: var(--grad);
  color: #fff;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11.5px;
  font-weight: 700;
}

.nav-balance {
  color: var(--accent-2);
  font-weight: 700;
  font-size: 12.5px;
}

@media (max-width: 900px) {
  .nav-user {
    order: 3;
    width: 100%;
    justify-content: center;
    margin: 8px 0 0;
  }
}

/* 右下角「升级会员」浮动按钮（会员自动隐藏） */
.upgrade-fab {
  position: fixed;
  right: 16px;
  bottom: 82px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff8a3d, #ff5c8a);
  box-shadow: 0 10px 26px rgba(255, 110, 100, 0.35);
  cursor: pointer;
}

.upgrade-fab:hover {
  filter: brightness(1.06);
}

@media (max-width: 720px) {
  .upgrade-fab {
    bottom: 76px;
    right: 12px;
    padding: 10px 14px;
    font-size: 13px;
  }
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  padding: 30px 0 18px;
  text-align: left;
}

.foot-col h4 {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  margin: 0 0 10px;
  font-weight: 600;
}

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

.foot-col a {
  font-size: 14px;
  color: var(--text-soft);
}

.foot-col a:hover {
  color: var(--accent);
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 26px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-faint);
}

.foot-note a {
  color: var(--text-soft);
}

.foot-icp {
  flex-basis: 100%;
  text-align: center;
  color: var(--text-faint);
}

.foot-icp:hover {
  color: var(--accent);
}

/* 资源封面图 */
.res-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  display: block;
  margin-bottom: 12px;
}

.res-cover-link {
  display: block;
}

.res-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}

/* 面包屑 */
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.crumbs a {
  color: var(--text-soft);
}

.crumbs a:hover {
  color: var(--accent);
}

.crumbs b {
  color: var(--text);
  font-weight: 600;
}

.article-meta {
  font-size: 13px;
  color: var(--text-faint);
  margin: -6px 0 22px;
}

.share-row {
  margin: -4px 0 18px;
}

.share-row .btn {
  font-size: 13px;
  padding: 6px 14px;
}

/* ---------- 注册引导弹窗 + 访客提示条 ---------- */
.auth-benefits {
  list-style: none;
  margin: 14px 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.auth-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-soft);
}

.auth-benefits li span {
  font-size: 17px;
  width: 22px;
  text-align: center;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.modal-actions .btn {
  width: 100%;
  justify-content: center;
}

.guest-bar {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 44;
  max-width: min(520px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(12, 24, 48, 0.14);
  font-size: 13.5px;
  color: var(--text-soft);
}

.guest-emoji {
  font-size: 20px;
}

.guest-text {
  flex: 1;
  min-width: 180px;
}

.guest-text b {
  color: var(--text);
}

.guest-bar .btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

@media (max-width: 720px) {
  .guest-bar {
    left: 10px;
    right: 10px;
    bottom: 74px;
    max-width: none;
    font-size: 13px;
  }
}

/* 页面上有访客提示条时，给底部留点空间 */
body.has-guest-bar {
  padding-bottom: 84px;
}

/* 注册后第一屏：新人打开账户页看到的欢迎卡 */
.welcome-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 26px;
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(29, 111, 224, 0.09), rgba(45, 190, 160, 0.09));
}

/* display:flex 会盖掉 hidden 属性，得显式写一条，不然藏不住 */
.welcome-card[hidden] {
  display: none;
}

.welcome-emoji {
  font-size: 34px;
  line-height: 1;
}

.welcome-main {
  flex: 1;
  min-width: 0;
}

.welcome-main h2 {
  font-size: 20px;
  margin-bottom: 6px;
}

.welcome-main > p {
  color: var(--text-soft);
  font-size: 14px;
  margin-bottom: 14px;
}

.welcome-steps {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.welcome-steps li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.6;
}

.welcome-steps .n {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  margin-top: 1px;
}

.welcome-steps b {
  display: block;
  color: var(--text);
}

.welcome-steps span {
  color: var(--text-soft);
}

.welcome-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.welcome-dismiss {
  border: 0;
  background: none;
  padding: 6px 4px;
  font-size: 13px;
  color: var(--faint);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.welcome-dismiss:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  .welcome-card {
    padding: 18px;
    gap: 12px;
  }
  .welcome-emoji {
    font-size: 26px;
  }
  .welcome-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .welcome-dismiss {
    width: 100%;
  }
}

/* 签到 */
.checkin-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent-soft), var(--surface));
  margin-bottom: 20px;
}

.checkin-box b {
  font-size: 15.5px;
}

/* 手机上的底部导航 */
.mobile-tabbar {
  display: none;
}

@media (max-width: 720px) {
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }

  .foot-bottom {
    justify-content: center;
    text-align: center;
  }

  .mobile-tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
    box-shadow: 0 -6px 20px rgba(10, 20, 40, 0.06);
  }

  .mobile-tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    color: var(--text-faint);
    padding: 4px 8px;
    border-radius: 10px;
  }

  .mobile-tabbar a b {
    font-size: 17px;
    font-weight: 400;
    line-height: 1;
  }

  .mobile-tabbar a[aria-current="page"] {
    color: var(--accent);
    background: var(--accent-soft);
  }

  body.has-tabbar {
    padding-bottom: 64px;
  }
}

/* 首页「最近更新」列表 */
.latest-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.latest-list li {
  border-bottom: 1px solid var(--line);
}

.latest-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 4px;
  font-size: 14.5px;
}

.latest-list a:hover {
  background: var(--surface-muted);
}

.latest-list .meta {
  flex: none;
  width: 44px;
  font-size: 12px;
  color: var(--text-faint);
}

.latest-list .title {
  display: block;
  font-weight: 600;
}

.latest-list .sub {
  display: block;
  font-size: 12.5px;
  color: var(--text-faint);
}

.latest-list .arrow {
  margin-left: auto;
  color: var(--text-faint);
}

.ad-slot {
  max-width: var(--wrap, 1080px);
  margin: 34px auto 0;
  padding: 16px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ad-slot-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 14px;
  color: var(--text-soft);
}

.ad-slot-main b {
  color: var(--text);
  font-size: 15px;
}

.ad-slot-tag {
  align-self: flex-start;
  font-size: 11px;
  color: var(--text-faint);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 5px;
  margin-bottom: 2px;
}

.wallet-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 22px;
}

.wallet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}

.wallet-amount {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.wallet-hint {
  text-align: right;
}

.wallet-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 4px;
}

.wallet-custom {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-top: 6px;
}

.wallet-custom .field {
  flex: 1;
  min-width: 180px;
}

.pay-inline {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.pay-inline-qr .res-qr {
  max-width: 180px;
}

@media (max-width: 640px) {
  .pay-inline {
    grid-template-columns: 1fr;
  }

  .wallet-hint {
    text-align: left;
  }
}

.vip-status {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-soft);
  margin-top: 6px;
}

.vip-status.is-vip {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.vip-status.is-svip {
  border-color: var(--accent-2);
  background: linear-gradient(135deg, var(--accent-soft), rgba(16, 163, 127, 0.14));
}

.plan-card {
  position: relative;
}

.plan-card.is-svip {
  border-color: var(--accent);
}

.plan-card .price {
  font-size: 30px;
  font-weight: 700;
  margin: 8px 0 2px;
}

.vip-pay {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.steps {
  margin: 0 0 12px;
  padding-left: 20px;
  font-size: 14px;
  color: var(--text-soft);
}

.steps li {
  margin-bottom: 8px;
}

.benefit-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
}

.benefit-table th,
.benefit-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.benefit-table thead th {
  background: var(--surface-muted);
  font-size: 13px;
  color: var(--text-soft);
}

.benefit-table td:first-child {
  color: var(--text-soft);
}

.benefit-table td.yes,
.benefit-table td:not(:first-child) {
  text-align: center;
}

.benefit-table td.yes {
  color: var(--accent-2);
  font-weight: 700;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 10px;
  background: var(--surface);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14.5px;
}

.faq p {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--text-soft);
}

@media (max-width: 900px) {
  .res-detail {
    grid-template-columns: 1fr;
  }

  .res-side {
    position: static;
  }
}

@media (max-width: 640px) {
  .vip-pay {
    grid-template-columns: 1fr;
  }
}

/* 账户页、会员页：窄屏下别被宽表格撑出横向滚动 */
.account-page {
  grid-template-columns: minmax(0, 1fr);
}

.account-box {
  justify-self: center;
}

/* ============================================================
   3.0 UI 完善
   这一节集中收拾「看着还行、用起来别扭」的地方：
   手指点不准、字太小、深色下看不清、键盘走不通、打印出来一团黑。
   ============================================================ */

/* ---------- 跳到正文（键盘用户按 Tab 第一下就能看到） ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 50%;
  transform: translate(-50%, -160%);
  z-index: 200;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translate(-50%, 0);
  outline-offset: 4px;
}

/* 主区域被跳到时不要出现难看的默认光标框 */
main:focus {
  outline: none;
}

/* ---------- 排版细节：标题不留下孤单的尾字，正文别出现难看的空隙 ---------- */
h1,
h2,
h3,
.hero h1,
.section-head h2 {
  text-wrap: balance;
}

p,
li,
.card p {
  text-wrap: pretty;
}

/* 数字等宽：价格、积分、统计数字上下对齐，不会一跳一跳 */
b,
strong,
.kv b,
.stat b,
.price,
time {
  font-variant-numeric: tabular-nums;
}

/* 原生控件（复选框、下拉、滚动条）跟着深浅色走 */
:root {
  color-scheme: light;
  accent-color: var(--accent);
}

[data-theme="dark"] {
  color-scheme: dark;
}

/* ---------- 按钮：统一高度，手指点得准 ---------- */
.btn {
  min-height: 44px;
  justify-content: center;
}

.btn.small,
.btn-sm {
  min-height: 36px;
}

/* 圆形图标按钮也抬到 40px */
.icon-btn {
  width: 40px;
  height: 40px;
}

/* ---------- 广告位那个小标签：原来 11px、对比度只有 4.18，读着费劲 ---------- */
.ad-slot-tag {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  border-color: var(--text-faint);
}

/* ---------- 正文里的图片：给个统一的圆角和描边，不会突兀地糊在文字上 ---------- */
.prose img,
.note-body img {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  margin: 18px 0;
}

/* ---------- 手机上：页脚从「一长串竖排小字」变成好点的按钮群 ---------- */
@media (max-width: 720px) {
  .foot-grid {
    gap: 22px;
  }

  .foot-col h4 {
    text-align: center;
    margin-bottom: 12px;
  }

  /* 竖着排 16 行太难点了，改成换行排布的小圆角按钮 */
  .foot-col ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .foot-col a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 15px;
    font-size: 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
  }

  .foot-col a:hover,
  .foot-col a:active {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
  }

  .site-foot {
    padding-bottom: 26px;
  }

  .foot-bottom {
    font-size: 13px;
    line-height: 1.7;
  }
}

/* ---------- 手机上：底部导航的字大一点，点起来更稳 ---------- */
@media (max-width: 720px) {
  .mobile-tabbar {
    padding: 5px 6px calc(5px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-tabbar a {
    flex: 1 1 0;
    min-height: 50px;
    justify-content: center;
    font-size: 12px;
    gap: 3px;
    padding: 6px 4px;
  }

  .mobile-tabbar a b {
    font-size: 18px;
  }

  body.has-tabbar {
    padding-bottom: 70px;
  }
}

/* ---------- 触屏设备：容易点偏的东西统一放大 ---------- */
@media (pointer: coarse) {
  .res-fav {
    min-height: 40px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .tag,
  .badge {
    font-size: 12.5px;
  }

  .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* ---------- 打印：别人把页面打出来或者存 PDF 时，别打出一堆按钮 ---------- */
/* ---------- 最浅的那档灰字：原来对比度只有 3 左右，读着费劲，压深一档 ---------- */
:root {
  --text-faint: #65748a;
}

/* 深色下反着来，调亮一档（放在后面，暗色主题才会生效） */
[data-theme="dark"] {
  --text-faint: #8494ab;
}

/* ---------- 行内代码跟着正文走，别缩成 11px 那么小 ---------- */
.prose code,
.note-body code {
  font-size: max(0.9em, 12.5px);
}

/* ---------- 表单即时提示：边填边知道哪里不对 ---------- */
.field-hint {
  display: block;
  min-height: 18px;
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-faint);
}

.field-hint.bad {
  color: #d9534f;
  font-weight: 500;
}

[data-theme="dark"] .field-hint.bad {
  color: #ff8f8a;
}

.field-hint.ok {
  color: var(--accent-2-text);
}

[data-theme="dark"] .field-hint.ok {
  color: var(--accent-2-text);
}

.input.is-bad,
input.is-bad,
textarea.is-bad {
  border-color: #d9534f;
  box-shadow: 0 0 0 3px rgba(217, 83, 79, 0.14);
}

[data-theme="dark"] .input.is-bad,
[data-theme="dark"] input.is-bad,
[data-theme="dark"] textarea.is-bad {
  border-color: #ff8f8a;
  box-shadow: 0 0 0 3px rgba(255, 143, 138, 0.16);
}

/* ---------- 账户页顶部：返回链接 + 深浅色按钮 ---------- */
.account-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.account-back {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--text-soft);
  font-size: 14px;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.account-back:hover {
  color: var(--text);
  background: var(--surface-muted);
}

/* ---------- 资源卡上那几个小控件：收藏、锁、标题 ---------- */
.res-lock {
  padding: 8px 2px;
  margin: -8px -2px;
  border-radius: 8px;
}

.res-lock:hover {
  background: var(--surface-muted);
}

.res-card h3 a {
  display: inline-block;
  padding: 5px 0;
}

/* 左上角那个「纯」方块是回首页的链接，别只有 30px 高 */
.brand {
  min-height: 44px;
  padding: 0 4px;
  margin: 0 -4px;
  border-radius: 12px;
}

/* 卡片里那种「了解 →」的独立链接，手机上给它一块能点的地方 */
@media (max-width: 720px) {
  .card p.meta > a:only-child,
  .card p.meta > a:first-child:last-child {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    margin-left: -12px;
    border-radius: 999px;
    color: var(--accent);
    font-weight: 600;
  }

  .card p.meta > a:only-child:active,
  .card p.meta > a:first-child:last-child:active {
    background: var(--accent-soft);
  }

  /* 页脚最下面那行署名 */
  .foot-note a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 10px;
    margin: -9px -10px;
    border-radius: 8px;
    color: var(--accent);
  }

  /* 账户页 / 会员页左上角「← 回到网站」 */
  .account-back {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    margin-left: -12px;
    border-radius: 10px;
    color: var(--text-soft);
  }

  .account-back:active {
    background: var(--surface-muted);
  }

  /* 收藏按钮 */
  .res-fav {
    min-height: 38px;
    padding-left: 14px;
    padding-right: 14px;
  }

  /* 会员页底部那行「← 回到首页 · 我的账户 · 资源库」 */
  .account-box p.meta a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 8px;
    border-radius: 8px;
  }
}

/* ---------- 打印：别人把页面打出来或者存 PDF 时，别打出一堆按钮 ---------- */
@media print {
  .site-nav,
  .site-foot,
  .mobile-tabbar,
  .guest-bar,
  .upgrade-fab,
  .tip-fab,
  .modal-backdrop,
  .reading-progress,
  .skip-link,
  .ad-slot {
    display: none !important;
  }

  :root,
  [data-theme="dark"] {
    --bg: #fff;
    --surface: #fff;
    --surface-muted: #fff;
    --text: #000;
    --text-soft: #333;
    --text-faint: #555;
    --line: #bbb;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  a {
    text-decoration: underline;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #555;
    word-break: break-all;
  }

  section {
    padding: 16px 0 !important;
    page-break-inside: avoid;
  }
}

/* 两栏布局里的代码块：窄屏不要被它撑宽整页 */
.grid > *,
.prose {
  min-width: 0;
}

@media (max-width: 640px) {
  .prose pre {
    font-size: 12.5px;
    white-space: pre-wrap;
    word-break: break-word;
  }
}

@media (max-width: 820px) {
  .account-box,
  .account-box.wide {
    max-width: 100%;
  }
}

/* ============================================================
   3.1 视觉改版
   3.0 那版改的都是「点得准、看得清」这类一眼看不出来的东西。
   这一版专门改看得见的：区块编号、标题、按钮、卡片、背景质感。
   ============================================================ */

/* ---------- 1. 修掉区块标题重复的编号 ----------
   1.x 那版给 .kicker::before 加了 CSS 自动编号（01、02、03……），
   后来后台的标题文字里自己也写了「01 · Games」，
   于是页面上实际显示的是「01 · 01 · GAMES」，
   而且从第 4 块（Compare，没写数字）开始，两个数字就对不上了。
   现在把自动编号去掉，换成一条渐变短线当装饰。 */
.section-head .kicker::before {
  counter-increment: none;
  content: "";
  display: inline-block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--grad);
  margin-right: 11px;
  vertical-align: middle;
  opacity: 1;
}

/* ---------- 2. 首屏背景：让大片留白不那么空 ---------- */
.hero::before {
  opacity: 0.26;
  height: 660px;
}

/* 一层很淡的点阵，只在首屏上半部分显出来 */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--line) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  opacity: 0.75;
  -webkit-mask-image: radial-gradient(120% 76% at 50% 0%, #000 12%, transparent 72%);
  mask-image: radial-gradient(120% 76% at 50% 0%, #000 12%, transparent 72%);
  pointer-events: none;
}

.hero .wrap {
  z-index: 1;
}

/* ---------- 3. 主标题：渐变字 + 一条下划线 ---------- */
.hero h1 .hl {
  position: relative;
  display: inline-block;
  padding-bottom: 0.08em;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 .hl {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.hero h1 .hl::after {
  content: "";
  position: absolute;
  left: 0.02em;
  right: 0.02em;
  bottom: 0;
  height: 0.09em;
  min-height: 3px;
  border-radius: 999px;
  background: var(--grad);
  opacity: 0.5;
}

/* ---------- 4. 按钮：主按钮换成渐变，更抓眼 ---------- */
.btn-primary {
  background: var(--grad);
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(29, 111, 224, 0.24);
}

.btn-primary:hover {
  background: var(--grad);
  filter: brightness(1.06);
  box-shadow: 0 10px 26px rgba(29, 111, 224, 0.32);
}

[data-theme="dark"] .btn-primary {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .btn-primary:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}

/* ---------- 5. 导航：logo 用渐变，滚动时浮起来 ---------- */
.brand-mark {
  background: var(--grad);
  box-shadow: 0 4px 12px rgba(29, 111, 224, 0.26);
}

.site-nav.is-scrolled {
  box-shadow: 0 8px 26px rgba(12, 24, 48, 0.09);
}

[data-theme="dark"] .site-nav.is-scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ---------- 6. 卡片：顶上一条渐变线，悬停抬得更高 ---------- */
.card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.card:hover::before,
.card:focus-within::before {
  opacity: 1;
}

a.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.card-emoji {
  background: linear-gradient(135deg, var(--accent-soft), rgba(16, 163, 127, 0.16));
  border-radius: 13px;
  font-size: 21px;
}

/* ---------- 7. 首屏下面那三个数字：从一行灰字变成小胶囊 ---------- */
.hero-stats-line {
  gap: 10px;
  margin-top: 14px;
}

.hero-stats-line span {
  display: inline-flex;
  align-items: center;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 13.5px;
  color: var(--text-soft);
  font-weight: 600;
}

/* ---------- 8. 页脚顶上换一条渐变线 ---------- */
.site-foot {
  position: relative;
  border-top: 0;
}

.site-foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0.45;
}

/* ---------- 9. 浅色模式下的首屏，底色稍微带一点冷调 ---------- */
:root:not([data-theme="dark"]) .hero {
  background: linear-gradient(180deg, rgba(29, 111, 224, 0.05), transparent 62%);
}

[data-theme="dark"] .hero {
  background: linear-gradient(180deg, rgba(91, 157, 255, 0.07), transparent 62%);
}

/* ---------- 10. 底色换成浅冷灰，卡片留白才浮得起来 ----------
   3.0 之前整站底色和卡片都是纯白（--bg 和 --surface 都是 #ffffff），
   结果所有卡片只能靠一根 1px 的线撑场面，页面看着一片平。
   把底色压成浅冷灰、卡片保持纯白，层次立刻就出来了——这是整站一眼能看到的变化。 */
:root,
:root:not([data-theme="dark"]) {
  --bg: #f4f7fc;
  --surface-muted: #e9f0f9;
}

/* 深色下把卡片再提亮一点点，层次更清楚 */
[data-theme="dark"] {
  --bg: #080e15;
  --surface: #111c29;
  --surface-muted: #182534;
}

/* 交替底色的区块要跟页面底色拉开一点，不然看不出来 */
.section-alt {
  background: linear-gradient(180deg, var(--surface-muted), color-mix(in srgb, var(--surface-muted) 70%, var(--bg)));
}

/* 卡片底色纯白 + 更清楚的描边，跟新底色分得开 */
.card {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

a.card:hover {
  box-shadow: var(--shadow-lift);
}

/* 首屏标题再大一点，一眼能看出气势不一样 */
.hero h1 {
  font-size: clamp(38px, 6.8vw, 68px);
}

/* 光晕再明显一点 */
.hero::before {
  opacity: 0.34;
}

/* ---------- 11. 首屏那四张游戏封面：加上卡片感 ----------
   「一眼看过去」最先看到的其实是右边这四张图，
   原来它们只有一根 1px 的线，跟背景糊在一起。 */
.hero-tiles {
  gap: 12px;
}

/* 拼贴是两列的，游戏数量是奇数时最后一张会孤零零占半行，
   干脆让它横跨整行，看着像是故意这么排的。 */
.hero-tiles > .hero-tile:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;   /* 横跨整行时改成宽幅，不然会很高 */
}

.hero-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero-tile img {
  transition: transform 0.35s ease;
}

.hero-tile:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lift);
}

.hero-tile:hover img {
  transform: scale(1.045);
}

/* 封面底部压一层渐变，白字标题才看得清。
   实测「深渊回响」「星核合成」这两张封面上原来只有 3.94:1（要求 4.5），
   所以这层要压得更实一些。 */
.hero-tile::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(6, 12, 22, 0.42) 38%,
    rgba(6, 12, 22, 0.9) 100%
  );
  pointer-events: none;
}

.hero-tile-name {
  z-index: 1;
}

/* ---------- 12. 首屏那个小徽章：渐变描边 + 会跳的小圆点 ---------- */
.hero-badge {
  border-color: transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
}

.hero-badge .dot {
  animation: badge-pulse 2.2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.78); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge .dot { animation: none; }
  .hero-tile img { transition: none; }
}

/* ---------- 13. 首屏下面那条状态条：背景带一点渐变，左边那根彩条保留 ---------- */
.status-strip {
  background: linear-gradient(135deg, var(--accent-soft), rgba(65, 107, 102, 0.1) 55%, var(--surface));
  box-shadow: var(--shadow);
}

.status-strip.is-member {
  box-shadow: var(--shadow-sm);
}

/* ---------- 14. 区块标题再大一点点 ---------- */
.section-head h2 {
  font-size: clamp(24px, 3.2vw, 33px);
}

.section-head .kicker {
  font-size: 13px;
}

/* ---------- 15. 辅助色小字的对比度 ---------- */
:root {
  --accent-2-text: #315d58;
}

[data-theme="dark"] {
  --accent-2-text: #9fc3be;
}

.benefit-table td.yes,
.res-lock-line.is-free {
  color: var(--accent-2-text);
}

/* ============================================================
   3.2 收款：生成订单之后直接摆出「怎么付」
   以前生成完订单只给一句话，收款码还在页面下面，手机上得往下翻；
   订单号又是一串乱码（tmv28i9kzf1cd），往微信备注里抄很容易错。
   ============================================================ */

.pay-card {
  margin: 16px 0 18px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad) border-box;
  box-shadow: var(--shadow);
}

.pay-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.pay-card-label {
  font-size: 13px;
  color: var(--text-soft);
}

.pay-card-amount {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .pay-card-amount {
    color: var(--accent);
  }
}

.pay-card-qr {
  display: block;
  width: min(220px, 62%);
  margin: 0 auto 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.pay-card-qr-empty {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 150px;
  padding: 18px;
  font-size: 13px;
  color: var(--text-faint);
  background: var(--surface-muted);
  border-style: dashed;
}

.pay-card-code {
  text-align: center;
}

.pay-card-code-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.pay-card-code-row b {
  font-family: var(--font-mono);
  font-size: 26px;
  letter-spacing: 0.16em;
  color: var(--text);
  padding: 4px 12px;
  border-radius: 10px;
  background: var(--surface-muted);
  border: 1px dashed var(--line);
}

/* 订单号这种要抄下来的东西，用等宽字体看着不容易抄错 */
.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .pay-card {
    padding: 15px;
  }
  .pay-card-amount {
    font-size: 25px;
  }
  .pay-card-code-row b {
    font-size: 22px;
    letter-spacing: 0.12em;
  }
}

/* ============================================================
   3.4 「最推荐玩」
   资源里勾了「放在最前面（推荐）」的那个，会排在所有列表最前面，
   首屏封面拼贴上也会盖一个小角标。
   ============================================================ */

.hero-tile-pick {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8a3d, #ff5c8a);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(255, 110, 100, 0.45);
}

/* 游戏卡上那个「最推荐」角标也亮一点 */
.badge.badge-pick {
  background: linear-gradient(135deg, #ff8a3d, #ff5c8a);
  color: #fff;
}

/* ============================================================
   3.4 反馈页
   ============================================================ */

.feedback-box {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feedback-hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 22px;
}

.feedback-hero-points span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-muted);
  color: var(--text-soft);
  font-size: 13.5px;
}

.feedback-hero-points b {
  color: var(--accent);
  font-size: 15px;
}

.feedback-box textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.7;
}

.fb-starters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
}

.fb-starters > span {
  margin-right: 2px;
  color: var(--text-faint);
  font-size: 12.5px;
}

.fb-starters button {
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-soft);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}

.fb-starters button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.feedback-tips {
  margin-top: 22px;
  padding: 22px 26px;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
  background: var(--surface-muted);
}

/* ---------- 反馈页：提意见送体验卡 ---------- */

/* ---------- 各作榜首（/games 底部，数据来自联机中继 /board/<slug>） ---------- */

.board-block {
  margin-top: 34px;
}

.board-head h2 {
  margin: 0 0 6px;
  font-size: 21px;
}

.board-lead {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: var(--text-soft);
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.board-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.board-card h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.board-card h3 a {
  color: inherit;
  text-decoration: none;
}

.board-card ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.board-card li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
}

.board-rank {
  width: 18px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.board-card li:first-child .board-rank {
  color: var(--accent);
  font-weight: 700;
}

.board-name {
  font-weight: 600;
}

.board-meta {
  color: var(--text-faint);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-score {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  color: var(--accent-2-text);
}

.board-empty {
  margin: 0;
  padding: 16px 18px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--text-soft);
  font-size: 13.5px;
}

.board-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
}

.board-tabs .chip {
  min-height: 34px;
  padding: 4px 12px;
}

.fb-reward {
  margin: 0 0 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 92, 138, 0.13), transparent 38%),
    linear-gradient(135deg, rgba(255, 138, 61, 0.1), rgba(255, 92, 138, 0.05));
}

.fb-reward-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.fb-reward-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: var(--surface);
  font-size: 21px;
  box-shadow: 0 3px 12px rgba(35, 28, 24, 0.08);
}

.fb-reward-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fb-reward-title b {
  font-size: 16px;
}

.fb-reward-title small,
.fb-reward-tiers small {
  color: var(--text-faint);
  font-size: 12.5px;
}

.fb-reward-login {
  margin-left: auto;
  flex: none;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.fb-reward-login:hover {
  box-shadow: inset 0 0 0 1px var(--accent);
}

.fb-reward-tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.fb-reward-tiers > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 11px 12px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.fb-reward-tiers span {
  color: var(--text-soft);
  font-size: 12.5px;
}

.fb-reward-tiers strong {
  color: var(--accent);
  font-size: 17px;
}

.fb-reward ul {
  margin: 0 0 8px;
  padding-left: 20px;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.85;
}

.fb-reward .hint {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-faint);
}

.fb-reward-done {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px dashed var(--line);
  background: var(--surface-muted);
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.8;
}

.fb-reward-done.is-on {
  border-color: transparent;
  background: rgba(45, 190, 160, 0.15);
  color: var(--text);
}

/* 纯打赏页：不解锁内容，只留一个自愿支持入口 */
.support-page {
  padding: 56px 0 80px;
}

.support-page-inner {
  max-width: 860px;
}

.support-card {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 138, 61, 0.12), transparent 42%),
    var(--surface);
  box-shadow: var(--shadow);
}

.support-qr {
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-muted);
}

.support-qr .qr,
.support-qr .res-qr,
.support-qr img {
  width: 100%;
  display: block;
  border-radius: 10px;
}

.support-qr .meta {
  display: none;
}

.support-copy h2 {
  margin: 8px 0 10px;
  font-size: 24px;
}

.support-emoji {
  font-size: 34px;
}

.support-copy p,
.support-copy li {
  color: var(--text-soft);
  line-height: 1.8;
}

.support-copy ul {
  margin: 14px 0;
  padding-left: 20px;
}

.support-copy .support-thanks {
  margin: 18px 0 0;
  color: var(--accent);
  font-weight: 700;
}

.support-foot {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--text-faint);
}

.support-foot a {
  color: var(--text-soft);
}

/* 本周挑战：一次只推一个活动 */
.challenge-page {
  background:
    radial-gradient(circle at 82% 12%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 30%),
    var(--bg);
}

.challenge-hero {
  padding: 64px 0 52px;
  border-bottom: 1px solid var(--line);
}

.challenge-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 34px;
  align-items: center;
}

.challenge-label {
  display: inline-flex;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.challenge-copy h1 {
  margin: 12px 0 12px;
  font-size: clamp(42px, 7vw, 78px);
  letter-spacing: -0.04em;
}

.challenge-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.challenge-meta span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  background: var(--surface);
  font-size: 13px;
}

.challenge-note {
  margin-top: 12px;
  color: var(--text-faint);
  font-size: 13px;
}

.challenge-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: var(--shadow);
}

.challenge-panel-kicker {
  margin: 0 0 16px;
  color: var(--accent);
  font-weight: 800;
}

.challenge-panel ol {
  display: grid;
  gap: 14px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.challenge-panel li {
  display: flex;
  gap: 12px;
}

.challenge-panel li > span {
  color: var(--accent-2-text);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.challenge-panel li div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.challenge-panel small,
.copy-status {
  color: var(--text-soft);
}

.copy-status {
  min-height: 20px;
  margin: 8px 0 0;
  text-align: center;
  font-size: 12.5px;
}

.challenge-why {
  padding: 52px 0 72px;
}

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

.challenge-grid article {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.challenge-grid b {
  color: var(--accent);
  font-size: 17px;
}

.challenge-grid span {
  color: var(--text-soft);
  line-height: 1.7;
}

@media (max-width: 680px) {
  .support-page {
    padding: 34px 0 56px;
  }

  .support-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 18px;
  }

  .support-qr {
    max-width: 280px;
    margin: 0 auto;
  }

  .challenge-hero {
    padding: 38px 0;
  }

  .challenge-hero-inner,
  .challenge-grid {
    grid-template-columns: 1fr;
  }

  .challenge-copy h1 {
    font-size: 46px;
  }
}

.feedback-tips h2 {
  font-size: 17px;
  margin-bottom: 12px;
}

.feedback-tips ul {
  margin: 0 0 10px;
  padding-left: 20px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.9;
}

@media (max-width: 640px) {
  .feedback-hero-points {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .feedback-hero-points span {
    min-height: 38px;
    padding: 7px 10px;
  }

  .feedback-box {
    padding: 18px;
  }

  .fb-reward {
    padding: 15px;
  }

  .fb-reward-head {
    flex-wrap: wrap;
  }

  .fb-reward-title {
    flex: 1;
  }

  .fb-reward-login {
    width: 100%;
    margin-left: 0;
    text-align: center;
  }

  .fb-reward-tiers {
    grid-template-columns: 1fr;
  }

  .feedback-tips {
    padding: 18px;
  }
}

/* =========================================================
   手机端修正（V3.21-0）

   1) 底部三块浮层原来叠在一块：访客提示条（bottom 74px，整条铺满屏幕宽）
      和右下角会员浮标（bottom 76px，靠右）在同一高度，浮标正好压住提示条上的
      「免费注册 / 以后再说」——手机上看起来就是文字和按钮摞在一起。
      处理：手机上提示条在的时候不显示浮标（点掉提示条后浮标自己会出现）；
      并且把提示条的真实高度算进页面底部留白，页脚最后一屏不会被盖住。
   2) 三列对比表原来写死 min-width: 520px，手机屏幕放不下，只能横滑才能看到
      最后一列（SVIP），看着像被切掉。处理：窄屏改成等分三列，不再需要横滑。
   ========================================================= */

@media (max-width: 720px) {
  /* 手机上把提示条压成一行（原来 142px 高，占掉六分之一屏幕还压住内容）：
     短文案 + 两个按钮，高度约 56px。详情文案在 JS 里就不渲染了。 */
  .guest-bar {
    padding: 8px 10px;
    gap: 8px;
    flex-wrap: nowrap;
    font-size: 13px;
  }

  .guest-bar .guest-text {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .guest-bar .guest-emoji {
    font-size: 17px;
  }

  /* 「✕」也要点得到（手机上 ≥44px） */
  .guest-bar .btn-sm {
    padding: 8px 12px;
    min-height: 36px;
  }

  body.has-guest-bar .upgrade-fab {
    display: none;
  }

  /* --guest-bar-h 由 main.js 量出来后写在 <html> 上；量不到时用 140px 兜底 */
  body.has-guest-bar,
  body.has-guest-bar.has-tabbar {
    padding-bottom: calc(80px + var(--guest-bar-h, 140px));
  }
}

@media (max-width: 620px) {
  .benefit-table {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
    font-size: 12.5px;
  }

  .benefit-table th,
  .benefit-table td {
    padding: 8px 5px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .benefit-table th:first-child,
  .benefit-table td:first-child {
    width: 40%;
  }

  .benefit-table thead th {
    font-size: 11.5px;
  }
}

/* =========================================================
   在线工具箱（/toolbox 与 /toolbox/<工具>）
   工具页面的界面骨架都在 /assets/tools/*.js 里搭，这里只给样式。
   手机上不能有横向滚动、按钮要够大（≥40px）——和游戏那套口径一致。
   ========================================================= */

.tb-search {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 4px 0 26px;
}

.tb-search .input {
  flex: 1 1 260px;
  min-height: 44px;
}

.tb-count {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}

.tb-cat {
  margin-bottom: 30px;
}

.tb-cat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 19px;
}

.tb-cat-count {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-faint);
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.tb-cat-desc {
  margin: 0 0 14px;
  color: var(--text-soft);
  font-size: 14px;
}

.tb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.tb-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.tb-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.tb-card-emoji {
  font-size: 22px;
  line-height: 1.2;
}

.tb-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.tb-card-body b {
  font-size: 15.5px;
}

.tb-card-sum {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
}

.tb-note {
  margin: 26px 0 0;
  padding: 16px 18px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.8;
}

/* ---------- 工具页 ---------- */

.tb-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--text-faint);
}

.tb-crumbs a {
  color: var(--text-soft);
}

.tb-head {
  padding-bottom: 6px;
}

.tb-h1-badge {
  display: inline-block;
  margin-left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
  color: var(--accent-2-text);
  background: rgba(45, 190, 160, 0.14);
}

.tb-privacy {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--text-faint);
}

.tb-tool {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tb-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tb-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
  font-size: 14px;
}

.tb-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tb-card-body2 {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.tb-row .btn {
  min-height: 40px;
}

.tb-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tb-spacer {
  flex: 1 1 auto;
}

.tb-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 16px;
}

.tb-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.tb-field-label {
  font-size: 13px;
  color: var(--text-soft);
}

.tb-field-hint {
  font-size: 12px;
  color: var(--text-faint);
}

.tb-textarea {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
}

.tb-num,
.tb-select {
  min-height: 40px;
}

.tb-num {
  max-width: 140px;
}

.tb-range {
  padding: 0;
  min-height: 32px;
  accent-color: var(--accent);
}

.tb-badge {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--text-soft);
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}

.tb-out {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 420px;
  overflow: auto;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-muted);
}

.tb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.tb-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: anywhere;
}

.tb-table td:first-child {
  color: var(--text-soft);
  width: 45%;
}

.tb-kv {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  flex-wrap: wrap;
}

.tb-kv-k {
  font-size: 13px;
  color: var(--text-soft);
  min-width: 110px;
}

.tb-code {
  font-family: var(--font-mono);
  font-size: 13px;
  overflow-wrap: anywhere;
  flex: 1 1 auto;
}

.tb-pre {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 260px;
  overflow: auto;
}

.tb-hash-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  flex-wrap: wrap;
}

.tb-hash-row b {
  min-width: 74px;
  font-size: 13px;
}

.tb-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.tb-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  font-size: 13.5px;
  color: var(--text-soft);
  cursor: pointer;
}

.tb-check input {
  width: 18px;
  height: 18px;
}

.tb-hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-soft);
}

.tb-mini-note {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-faint);
}

.tb-big {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.tb-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px 18px;
  border: 2px dashed var(--line);
  border-radius: 14px;
  background: var(--surface-muted);
  cursor: pointer;
  text-align: center;
}

.tb-drop.is-over {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.tb-drop-sub {
  font-size: 12.5px;
  color: var(--text-faint);
}

.tb-file-input {
  display: none;
}

.tb-imglist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tb-imgrow {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.tb-imgmeta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 190px;
  flex: 1 1 200px;
}

.tb-thumb {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.tb-preview {
  max-width: 100%;
  max-height: 260px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.tb-snippets {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tb-snippet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 13px;
}

.tb-shades {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tb-shade {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.tb-swatch {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  border-radius: 14px;
  border: 1px solid var(--line);
  color: #fff;
  font-size: 13px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.tb-colorpicker {
  width: 64px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: none;
  cursor: pointer;
}

.tb-colorpicker.sm {
  width: 48px;
  height: 40px;
}

.tb-basegrid,
.tb-unitgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

.tb-baserow,
.tb-unitrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tb-baserow .input,
.tb-unitrow .input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 42px;
  font-family: var(--font-mono);
}

.tb-base-tag,
.tb-unit-tag {
  min-width: 76px;
  font-size: 13px;
  color: var(--text-soft);
}

.tb-grad-preview {
  height: 132px;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.tb-stops {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tb-stop {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tb-stop .tb-range {
  flex: 1 1 140px;
}

.tb-code-block {
  max-height: 200px;
}

.tb-toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(20, 18, 26, 0.92);
  color: #fff;
  font-size: 13.5px;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.tb-toast.is-out {
  opacity: 0;
}

.tb-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 280px);
  gap: 28px;
  align-items: start;
}

.tb-howto {
  margin: 0 0 26px;
  padding-left: 22px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.9;
}

.tb-faq details {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.tb-faq summary {
  cursor: pointer;
  font-size: 14.5px;
  padding: 4px 0;
}

.tb-faq p {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.8;
}

.tb-related {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tb-related a {
  display: block;
  padding: 10px 12px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  font-size: 14px;
}

.tb-related a:hover {
  border-color: var(--accent);
}

.tb-backline {
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--text-soft);
}

.tb-home-card {
  min-height: 100%;
}

@media (max-width: 860px) {
  .tb-side {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .tb-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .tb-basegrid,
  .tb-unitgrid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tb-imgmeta {
    flex: 1 1 100%;
  }
}

/* 首屏下面的两条大入口：投票 / 提意见。以前只藏在页脚，手机用户基本找不到。 */
.promo-strip {
  padding: 14px 0;
  background: var(--surface-muted);
  border-bottom: 1px solid var(--line);
}
.promo-strip-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.promo-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  box-shadow: inset 3px 0 0 var(--accent);
}
.promo-item b {
  font-size: 15px;
}
.promo-item span {
  font-size: 13px;
  color: var(--text-soft);
}
.promo-item .promo-flag {
  align-self: flex-start;
  margin-bottom: 2px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
}

.game-card-note {
  margin: -2px 0 8px;
  color: var(--accent-2-text);
  font-size: 12.5px;
  font-weight: 700;
}
.promo-item:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.promo-feedback {
  box-shadow: inset 3px 0 0 var(--accent-2);
}
@media (max-width: 640px) {
  .promo-strip-inner {
    grid-template-columns: 1fr;
  }
}

/* 会员系统关闭时保留旧模板和数据，但不再把任何购买相关入口露给访客。 */
html[data-membership="off"] #pricing,
html[data-membership="off"] .strip-section,
html[data-membership="off"] .upgrade-fab,
html[data-membership="off"] .nav-tier,
html[data-membership="off"] .nav-balance,
html[data-membership="off"] .ad-slot,
html[data-membership="off"] [data-auth-vip] {
  display: none !important;
}

/* 新手游戏偏好问卷 */
.survey-hero {
  padding: 22px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 92% 10%, var(--accent-soft), transparent 34%),
    var(--surface);
}
.survey-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(24px, 4vw, 34px);
}
.survey-hero p {
  margin: 0;
  max-width: 720px;
  color: var(--text-soft);
  line-height: 1.75;
}
.survey-question {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.survey-question h2 {
  margin: 0 0 4px;
  font-size: 17px;
}
.survey-question .hint {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--text-soft);
}
.survey-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.survey-choice {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  cursor: pointer;
  transition: 0.16s ease;
}
.survey-choice:hover,
.survey-choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}
.survey-choice input {
  margin-top: 3px;
  accent-color: var(--accent);
}
.survey-choice b {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
}
.survey-choice span {
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.55;
}
.survey-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.recommend-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.recommend-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.recommend-card .rank {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.recommend-card h3 {
  margin: 0;
  font-size: 20px;
}
.recommend-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}
.recommend-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.recommend-reasons .tag {
  border-color: var(--accent);
  color: var(--accent);
}
.recommend-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 6px;
}
@media (max-width: 760px) {
  .survey-options,
  .recommend-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .survey-hero {
    padding: 18px;
  }
}

/* ---------- 数据雷达 / 公开数据看板 ---------- */
.data-radar {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0, var(--accent-soft), transparent 30%),
    var(--surface);
}
.data-metric-grid,
.data-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.data-metric-grid > div,
.data-stat {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}
.data-metric-grid b,
.data-stat b {
  display: block;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1;
  color: var(--accent);
}
.data-metric-grid span,
.data-stat span {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  font-weight: 700;
}
.data-stat small {
  display: block;
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 11px;
}
.data-radar-grid,
.data-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(240px, 0.75fr);
  gap: 20px;
  margin-top: 18px;
  align-items: start;
}
.data-game-list,
.data-resource-list {
  display: grid;
  gap: 9px;
}
.data-game,
.data-resource {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--text);
  text-decoration: none;
  transition: 0.16s ease;
}
.data-game:hover,
.data-resource:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.data-game-emoji,
.data-resource > span {
  font-size: 24px;
}
.data-game b,
.data-resource b {
  display: block;
  font-size: 14px;
}
.data-game small,
.data-resource small {
  display: block;
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.5;
}
.data-game > strong {
  min-width: 42px;
  text-align: right;
  color: var(--accent);
  font-size: 13px;
}
.data-side {
  display: grid;
  gap: 10px;
}
.data-note {
  padding: 12px;
  border-left: 3px solid var(--accent);
  background: var(--surface-muted);
}
.data-note span {
  display: block;
  color: var(--text-soft);
  font-size: 11px;
}
.data-note b {
  display: block;
  margin-top: 4px;
}
.data-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  min-height: 210px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.data-week-bar {
  display: flex;
  height: 170px;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}
.data-week-bar i {
  display: block;
  width: min(42px, 70%);
  min-height: 4px;
  border-radius: 4px 4px 0 0;
  background: var(--grad);
}
.data-week-bar b {
  font-size: 11px;
}
.data-week-bar span {
  color: var(--text-soft);
  font-size: 10px;
}
.data-pref-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.data-pref-grid .card h3 {
  margin: 0 0 12px;
}
.data-bar {
  display: grid;
  grid-template-columns: minmax(90px, 1.1fr) minmax(80px, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin: 9px 0;
  font-size: 12px;
}
.data-bar > div {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-muted);
}
.data-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--grad);
}
.data-bar b {
  min-width: 24px;
  text-align: right;
  color: var(--accent);
}
.data-tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.data-tagcloud .tag b {
  margin-left: 3px;
  color: var(--accent);
}
@media (max-width: 820px) {
  .data-metric-grid,
  .data-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .data-radar-grid,
  .data-main-grid,
  .data-pref-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 520px) {
  .data-week {
    gap: 5px;
    padding: 12px 8px;
  }
  .data-bar {
    grid-template-columns: minmax(78px, 1fr) 1fr auto;
  }
}

.personal-recommend {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, var(--accent-soft), transparent 42%),
    var(--surface);
}
.personal-head,
.personal-guest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.personal-head h3,
.personal-guest h3 {
  margin: 2px 0 6px;
  font-size: clamp(20px, 3vw, 28px);
}
.personal-guest p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}
.personal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: none;
}
.personal-picks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.personal-pick {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--text);
  text-decoration: none;
  transition: 0.16s ease;
}
.personal-pick:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.pick-rank {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
}
.pick-emoji {
  font-size: 24px;
}
.pick-main b,
.pick-main small {
  display: block;
}
.pick-main small {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 11px;
}
.pick-main > span {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 7px;
}
.pick-main em {
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-style: normal;
}
.personal-pick > strong {
  color: var(--accent);
  font-size: 12px;
}
@media (max-width: 900px) {
  .personal-picks {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 620px) {
  .personal-head,
  .personal-guest {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* =========================================================
   2026-10 视觉整理
   把偏“产品展示页”的高亮、渐变和装饰收回来，
   改成更适合个人网站的纸张、墨色和克制留白。
   ========================================================= */

:root,
:root:not([data-theme="dark"]) {
  --bg: #f5f0e8;
  --surface: #fffaf2;
  --surface-muted: #ebe4d7;
  --text: #2c2925;
  --text-soft: #655f56;
  --text-faint: #8e877c;
  --line: #d8cfc0;
  --accent: #9f452f;
  --accent-hover: #893b28;
  --accent-2: #416b66;
  --accent-soft: rgba(159, 69, 47, 0.11);
  --on-accent: #fffaf3;
  --grad: linear-gradient(135deg, #9f452f, #416b66);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --section-y: 74px;
  --shadow-sm: none;
  --shadow: none;
  --shadow-lift: 0 12px 32px rgba(41, 37, 29, 0.08);
  --font-sans: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Noto Serif SC", "Songti SC", STSong, serif;
  --font-mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

[data-theme="dark"] {
  --bg: #171513;
  --surface: #211d1a;
  --surface-muted: #2c2722;
  --text: #f3eadc;
  --text-soft: #c6b9a8;
  --text-faint: #918678;
  --line: #3d352d;
  --accent: #bc7d6d;
  --accent-hover: #ca998d;
  --accent-2: #7a9794;
  --accent-soft: rgba(188, 125, 109, 0.16);
  --on-accent: #211713;
  --grad: linear-gradient(135deg, #bc7d6d, #7a9794);
  --shadow-lift: 0 14px 34px rgba(0, 0, 0, 0.28);
}

html {
  background: var(--bg);
}

.promo-strip {
  display: none !important;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.82;
  letter-spacing: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.28;
}

.wrap {
  max-width: 1060px;
  padding-left: 26px;
  padding-right: 26px;
}

.site-nav {
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: saturate(130%) blur(8px);
  -webkit-backdrop-filter: saturate(130%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-nav .wrap {
  height: 66px;
}

.brand {
  gap: 9px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border: 1px solid var(--accent);
  border-radius: 5px;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 15px;
  transform: rotate(-2deg);
}

.nav-links {
  gap: 3px;
}

.nav-links a {
  padding: 6px 9px;
  border-radius: 4px;
  color: var(--text-soft);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--text);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.nav-links a[aria-current="page"] {
  color: var(--text);
  background: transparent;
  box-shadow: inset 0 -2px 0 var(--accent);
  border-radius: 0;
}

.icon-btn {
  border-color: transparent;
  border-radius: 6px;
  background: transparent;
}

.btn {
  min-height: 40px;
  padding: 8px 15px;
  border-radius: 7px;
  box-shadow: none !important;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0;
}

.btn-primary,
[data-theme="dark"] .btn-primary {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover,
[data-theme="dark"] .btn-primary:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: var(--on-accent);
  transform: none;
}

.btn-accent {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}

.btn-accent:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  transform: none;
}

.btn-ghost {
  border-color: var(--line);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--text-soft);
  background: transparent;
}

.hero,
:root:not([data-theme="dark"]) .hero,
[data-theme="dark"] .hero {
  background: transparent;
  border-bottom: 1px solid var(--line);
}

.hero::before,
.hero::after,
.site-foot::before,
.card::before {
  display: none !important;
}

.hero .wrap,
.hero .hero-inner {
  max-width: 1060px;
}

.hero-v2 .hero-inner {
  gap: clamp(38px, 7vw, 82px);
  align-items: center;
  padding-top: 26px;
  padding-bottom: 36px;
}

.hero h1 {
  max-width: 11ch;
  margin: 16px 0 20px;
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.hero h1 .hl {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  -webkit-text-fill-color: currentColor;
  text-shadow: none;
}

.hero h1 .hl::before,
.hero h1 .hl::after {
  display: none !important;
}

.hero .tagline {
  max-width: 36em;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.9;
}

.hero-note {
  color: var(--text-faint);
  font-size: 12px;
}

.hero-badge {
  padding: 3px 0 3px 10px;
  border: 0;
  border-left: 2px solid var(--accent);
  border-radius: 0;
  background: transparent;
  color: var(--text-soft);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.hero-badge .dot {
  display: none;
}

.hero-tiles {
  gap: 9px;
}

.hero-tile {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}

.hero-tile:hover {
  border-color: var(--accent);
  transform: none;
}

.hero-tile img {
  filter: saturate(0.86) contrast(0.98);
}

.hero-tile:hover img {
  transform: scale(1.018);
}

.hero-tile-name {
  background: linear-gradient(to top, rgba(20, 20, 16, 0.87), transparent);
  font-size: 12px;
}

.hero-tile-pick {
  border-radius: 3px;
  background: var(--accent);
}

.hero-stats-line {
  gap: 8px 14px;
  color: var(--text-faint);
}

section {
  padding: var(--section-y) 0;
}

.section-alt {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-muted) 38%, transparent);
}

.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.kicker {
  margin-bottom: 7px;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: none;
}

.section-head .kicker::before {
  display: none;
}

.section-head h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 40px);
}

.section-head .lead,
.page-head .lead {
  color: var(--text-soft);
  font-size: 15.5px;
}

.page-head {
  padding-top: 58px;
  padding-bottom: 22px;
}

.page-head h1 {
  margin: 8px 0 10px;
  font-size: clamp(38px, 5.5vw, 58px);
  letter-spacing: -0.045em;
}

.card,
.account-box,
.contact-box,
.personal-recommend,
.data-radar,
.survey-hero {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: none;
}

.card {
  padding: 20px;
}

a.card {
  border-radius: 10px;
  box-shadow: none;
}

a.card:hover {
  border-color: var(--accent);
  box-shadow: none;
  transform: translateY(-2px);
}

.card:hover::before,
.card:focus-within::before {
  display: none !important;
}

.card-top {
  margin-bottom: 12px;
}

.card-emoji {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 24px;
}

.card h3 {
  margin-bottom: 7px;
  font-size: 20px;
}

.card p {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.75;
}

.badge {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 600;
}

.badge-pick {
  border-color: var(--accent);
  background: transparent;
  color: var(--accent);
}

.res-tags {
  gap: 5px 10px;
}

.tag {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-faint);
  font-size: 11px;
}

.tag + .tag::before {
  content: "·";
  margin-right: 7px;
  color: var(--line);
}

.chip {
  border-radius: 4px;
  background: transparent;
}

.chip.on {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.input,
textarea,
select {
  border-radius: 6px;
  background-color: var(--surface);
}

.site-foot {
  margin-top: 0;
  border-top: 1px solid var(--line);
  background: var(--surface-muted);
  color: var(--text-soft);
}

.site-foot h4 {
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13px;
}

.site-foot a {
  color: var(--text-soft);
}

.site-foot a:hover {
  color: var(--accent);
}

.account-page {
  background: var(--bg);
}

.account-box,
.account-box.wide {
  border-radius: 10px;
  background: var(--surface);
  box-shadow: none;
}

.account-tabs {
  border-bottom: 1px solid var(--line);
}

.account-tabs button {
  border-radius: 0;
}

.account-tabs button.on {
  background: transparent;
  box-shadow: inset 0 -2px 0 var(--accent);
}

.welcome-card,
.checkin-box,
.status-strip,
.personal-pick,
.recommend-card,
.data-game,
.data-resource,
.survey-question,
.survey-choice,
.data-note,
.data-week,
.data-metric-grid > div,
.data-stat {
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 78%, var(--surface-muted));
  box-shadow: none;
}

.welcome-card {
  background: var(--surface);
}

.personal-recommend {
  background: var(--surface);
}

.personal-pick {
  border-color: var(--line);
}

.personal-pick:hover {
  border-color: var(--accent);
  transform: none;
}

.personal-pick > strong,
.pick-rank,
.data-game > strong,
.data-bar b,
.recommend-card .rank {
  color: var(--accent);
}

.personal-pick > strong {
  font-size: 12px;
  font-weight: 650;
}

.pick-main em {
  border-radius: 3px;
  background: var(--accent-soft);
}

.data-radar,
.survey-hero {
  background: var(--surface);
}

.data-week {
  min-height: 190px;
}

.data-week-bar i,
.data-bar i {
  background: var(--accent);
}

.modals,
.modal-backdrop,
.modal {
  backdrop-filter: none;
}

.modal {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-lift);
}

.contact-box {
  background: var(--surface);
}

.contact-box h2 {
  font-size: clamp(24px, 4vw, 34px);
}

@media (max-width: 900px) {
  .site-nav .wrap {
    height: 62px;
  }

  .nav-links {
    background: var(--surface);
  }

  .hero-v2 .hero-inner {
    padding-top: 10px;
  }
}

@media (max-width: 640px) {
  :root {
    --section-y: 56px;
  }

  .wrap {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero h1 {
    font-size: clamp(40px, 13vw, 58px);
    max-width: 10ch;
  }

  .hero .tagline {
    font-size: 15px;
  }

  .btn-row {
    gap: 8px;
  }

  .btn-lg {
    width: 100%;
    justify-content: center;
  }

  .card {
    padding: 17px;
  }

  .section-head {
    margin-bottom: 22px;
  }
}

/* =========================================================
   2026-10 信息架构重构
   首页只保留“进入内容”所需的入口；完整内容仍在各自页面。
   ========================================================= */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reveal,
.reveal:not(.is-in) {
  opacity: 1;
  transform: none;
}

.page-home {
  --section-y: 54px;
}

.page-home .hero {
  padding: 48px 0 38px;
}

.page-home .hero-v2 .hero-inner {
  gap: clamp(28px, 5vw, 64px);
  padding-top: 0;
  padding-bottom: 0;
}

.page-home .hero h1 {
  max-width: 12ch;
  margin-top: 12px;
  font-size: clamp(40px, 5.8vw, 64px);
}

.page-home .hero .tagline {
  max-width: 40em;
  margin-bottom: 22px;
  font-size: 16px;
  line-height: 1.75;
}

.page-home .strip-section,
.page-home #for-you:has(.personal-guest),
.page-home #toolbox,
.page-home #resources,
.page-home #pricing,
.page-home #works,
.page-home #notes,
.page-home #contact,
.page-home .ad-slot {
  display: none !important;
}

.page-home #games,
.page-home #data-radar,
.page-home #latest {
  content-visibility: auto;
  contain-intrinsic-size: 700px;
}

.page-home #games .grid > .game-card:nth-child(n + 4),
.page-home #latest .latest-list > li:nth-child(n + 5) {
  display: none;
}

.page-home #games .grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.page-home #games .game-card {
  min-width: 0;
}

.page-home #games .game-cover img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.page-home #data-radar {
  padding-top: 34px;
  padding-bottom: 34px;
}

.page-home #data-radar .section-head {
  margin-bottom: 18px;
}

.page-home #latest .latest-list {
  margin-bottom: 18px;
}

.home-launch {
  padding: 0 0 50px;
  background: var(--bg);
}

.home-launch-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}

.home-launch-head h2 {
  font-size: clamp(25px, 3.2vw, 34px);
}

.home-search {
  display: flex;
  gap: 8px;
}

.home-search input {
  min-width: 0;
  flex: 1;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.home-search input:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.home-search .btn {
  min-width: 76px;
  height: 44px;
}

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

.home-shortcut {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 112px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.home-shortcut:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.home-shortcut-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 16px;
}

.home-shortcut b,
.home-shortcut small {
  display: block;
}

.home-shortcut b {
  margin-bottom: 3px;
  font-size: 16px;
}

.home-shortcut small {
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.5;
}

.home-shortcut-arrow {
  color: var(--text-faint);
  transition: transform 0.16s ease, color 0.16s ease;
}

.home-shortcut:hover .home-shortcut-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

.home-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.home-secondary a {
  color: var(--text-soft);
  font-size: 13px;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}

.home-secondary a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.game-action-line {
  margin: -1px 0 9px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
}

.res-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.res-version {
  margin-left: auto;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
}

.site-search-trigger svg {
  width: 18px;
  height: 18px;
}

.site-search-palette {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: min(16vh, 140px) 20px 20px;
  background: rgba(23, 21, 19, 0.54);
}

.site-search-palette[hidden] {
  display: none;
}

.site-search-panel {
  width: min(580px, 100%);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-lift);
}

.site-search-panel form {
  display: flex;
  gap: 8px;
}

.site-search-panel input {
  min-width: 0;
  flex: 1;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.site-search-panel input:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.site-search-hint {
  margin: 10px 0 0;
  color: var(--text-faint);
  font-size: 12px;
}

.site-search-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.site-search-links a {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 12px;
}

.site-search-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

body.search-open {
  overflow: hidden;
}

@media (max-width: 960px) {
  .home-shortcuts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home #games .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-home {
    --section-y: 42px;
  }

  .page-home .hero {
    padding-top: 30px;
  }

  .home-launch-head {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .home-shortcuts {
    grid-template-columns: 1fr;
  }

  .res-version {
    width: 100%;
    margin-left: 0;
  }

  .home-shortcut {
    min-height: 76px;
    padding: 13px 15px;
  }

  .page-home #games .grid {
    grid-template-columns: 1fr;
  }

  .site-search-palette {
    padding-top: 80px;
  }

  .site-search-panel {
    padding: 14px;
  }
}

/* CEO-20261104-001 · 开源游戏网站 */
.page-game-hub {
  --game-hub-radius: 24px;
}

.game-hub-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
  background:
    radial-gradient(circle at 78% 24%, rgba(220, 119, 67, 0.2), transparent 34%),
    radial-gradient(circle at 18% 78%, rgba(60, 137, 132, 0.14), transparent 32%),
    var(--bg);
}

.game-hub-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 56px;
  align-items: center;
}

.game-hub-copy h1 {
  max-width: 8em;
  margin: 10px 0 18px;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.game-hub-lead {
  max-width: 31em;
  color: var(--text-soft);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.7;
}

.game-hub-search {
  display: flex;
  max-width: 520px;
  gap: 10px;
  margin-top: 26px;
}

.game-hub-search input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
}

.game-hub-showcase {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  transform: rotate(-2deg);
}

.game-hub-showcase > a {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 18px 55px rgba(38, 25, 16, 0.16);
}

.game-hub-showcase > a:nth-child(2),
.game-hub-showcase > a:nth-child(4) {
  transform: translateY(22px);
}

.game-hub-showcase img {
  display: block;
  width: 100%;
  aspect-ratio: 1.9 / 1;
  object-fit: cover;
}

.game-hub-count {
  position: absolute;
  right: -18px;
  bottom: -25px;
  display: grid;
  min-width: 150px;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 16px 40px rgba(96, 43, 24, 0.28);
}

.game-hub-count b {
  font-size: 40px;
  line-height: 1;
}

.game-hub-count small {
  margin-top: 4px;
  opacity: 0.86;
}

.page-game-hub #games .grid > .game-card:nth-child(n + 4) {
  display: block;
}

.game-hub-card-grid {
  align-items: stretch;
}

.game-hub-card {
  height: 100%;
}

.game-hub-card h3 small {
  display: block;
  margin-top: 4px;
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 500;
}

.game-hub-card .game-actions {
  margin-top: auto;
}

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

.game-hub-category-grid article,
.game-hub-route-grid article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--game-hub-radius);
  background: var(--panel);
}

.game-hub-category-grid span,
.game-hub-route-grid article > span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.game-hub-category-grid article > span {
  font-size: 30px;
}

.game-hub-category-grid h3,
.game-hub-route-grid h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.game-hub-category-grid p,
.game-hub-route-grid p {
  color: var(--text-soft);
  line-height: 1.7;
}

.game-hub-category-grid a {
  color: var(--accent);
  font-weight: 700;
}

.game-hub-route-grid .btn {
  margin-top: 14px;
}

.game-hub-more {
  margin-top: 20px;
}

.game-hub-feedback {
  padding: 54px 0;
  background: linear-gradient(120deg, #2f554e, #213b37);
  color: #fff;
}

.game-hub-feedback .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.game-hub-feedback h2 {
  max-width: 28em;
  margin: 6px 0 10px;
}

.game-hub-feedback p {
  color: rgba(255, 255, 255, 0.76);
}

.game-hub-feedback .kicker {
  color: #f4b48f;
}

@media (max-width: 960px) {
  .game-hub-hero-grid {
    grid-template-columns: 1fr;
  }

  .game-hub-showcase {
    max-width: 680px;
    transform: none;
  }

  .game-hub-category-grid,
  .game-hub-route-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .game-hub-hero {
    padding: 42px 0 52px;
  }

  .game-hub-hero-grid {
    gap: 36px;
  }

  .game-hub-copy h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .game-hub-search {
    flex-direction: column;
  }

  .game-hub-showcase {
    gap: 9px;
  }

  .game-hub-count {
    right: 8px;
    bottom: 8px;
    min-width: 128px;
    padding: 13px 15px;
  }

  .game-hub-count b {
    font-size: 30px;
  }

  .game-hub-category-grid,
  .game-hub-route-grid {
    grid-template-columns: 1fr;
  }

  .game-hub-feedback .wrap {
    align-items: flex-start;
    flex-direction: column;
  }
}
