/* 首页（2026-11-10 改版）。通用变量、按钮、导航、页脚在 site.css */
.h-hero { position: relative; overflow: hidden; padding: 128px 0 72px; }
.h-hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(41,151,255,.18), rgba(168,85,247,.10) 55%, transparent 75%);
  pointer-events: none;
}
.h-hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.h-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 5px 12px; border-radius: 980px; border: 1px solid var(--line); background: var(--card); }
.h-kicker i { width: 7px; height: 7px; border-radius: 50%; background: #30d158; }
.h-hero h1 { margin-top: 22px; font-size: clamp(40px, 6.4vw, 68px); line-height: 1.08; letter-spacing: -.035em; font-weight: 700; }
.h-hero .grad { background: linear-gradient(90deg, var(--g1), var(--g2) 55%, var(--g3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-hero .lead { margin-top: 20px; font-size: clamp(17px, 2vw, 19px); color: var(--muted); line-height: 1.65; max-width: 30em; }
.h-hero .cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; }
.h-hero .btn-ghost { box-shadow: inset 0 0 0 1px var(--faint); }

.h-news { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px 22px 10px; box-shadow: var(--shadow); }
.h-news h2 { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .02em; margin-bottom: 6px; }
.h-news a { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.h-news a:first-of-type { border-top: 0; }
.h-news a:hover span { color: var(--accent); }
.h-news time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 1px; }
.h-news b { display: inline-block; font-size: 11px; font-weight: 600; color: #fff; background: var(--accent); border-radius: 6px; padding: 1px 6px; margin-right: 6px; vertical-align: 1px; }

.h-sec { padding: 72px 0; }
.h-sec.alt { background: var(--bg-alt); }
.h-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.h-head h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.025em; line-height: 1.15; }
.h-head p { color: var(--muted); margin-top: 6px; font-size: 16px; }
.h-head .more { color: var(--accent); font-size: 15px; white-space: nowrap; }
.h-head .more:hover { text-decoration: underline; }

/* 产品卡片 */
.h-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.h-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.h-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.h-visual { height: 190px; display: grid; place-items: center; overflow: hidden; position: relative; }
.h-visual svg { width: 78%; max-width: 280px; height: auto; }
.h-card.xerp .h-visual { background: linear-gradient(160deg, #e8f1ff, #f3e8ff); }
.h-card.xerp .h-visual img { width: 118%; max-width: none; height: auto; border-radius: 10px; box-shadow: 0 12px 30px rgba(15,23,42,.18); transform: translate(10%, 18%) rotate(-4deg); }
.h-card.mesh .h-visual { background: linear-gradient(160deg, #042f2e, #0c4a6e); }
.h-card.async .h-visual { background: linear-gradient(160deg, #2a0f16, #4c0519); }
.h-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.h-body .tag { font-size: 12px; color: var(--muted); }
.h-body h3 { font-size: 24px; letter-spacing: -.02em; margin-top: 6px; }
.h-body .sub { font-size: 15px; font-weight: 600; margin-top: 2px; }
.h-body p { color: var(--muted); font-size: 14.5px; line-height: 1.65; margin-top: 10px; flex: 1; }
.h-body .go { margin-top: 16px; color: var(--accent); font-size: 15px; font-weight: 500; }

/* 小游戏 */
.h-games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.h-game { display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; transition: transform .25s, box-shadow .25s; }
.h-game:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.h-game .ico { width: 64px; height: 64px; border-radius: 16px; flex-shrink: 0; display: grid; place-items: center; overflow: hidden; }
.h-game .ico svg { width: 46px; height: 46px; }
.h-game.ssq .ico { background: linear-gradient(150deg, #fff1f1, #ffe4e4); }
.h-game.chase .ico { background: linear-gradient(150deg, #fff7e6, #ffe8c2); }
.h-game.muyu .ico { background: linear-gradient(150deg, #2b1608, #4a2610); }
.h-game h3 { font-size: 17px; }
.h-game p { font-size: 13.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }

/* 教程列表 */
.h-posts { border-top: 1px solid var(--line); }
.h-post { display: grid; grid-template-columns: 110px 1fr auto; gap: 20px; align-items: baseline; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.h-post time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.h-post h3 { font-size: 18px; letter-spacing: -.01em; line-height: 1.4; }
.h-post p { font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.h-post .cat { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 980px; padding: 3px 10px; white-space: nowrap; }
.h-post:hover h3 { color: var(--accent); }
.h-posts .skel { height: 92px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, transparent, var(--bg-alt), transparent); }

/* 理念 + 数字 */
.h-about { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.h-about blockquote { font-size: clamp(22px, 3vw, 30px); font-weight: 650; letter-spacing: -.02em; line-height: 1.45; }
.h-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.h-nums div { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 14px; text-align: center; }
.h-nums b { display: block; font-size: 34px; letter-spacing: -.03em; line-height: 1.1; }
.h-nums span { font-size: 13px; color: var(--muted); }

@media (max-width: 980px) {
  .h-hero-in { grid-template-columns: 1fr; gap: 36px; }
  .h-products { grid-template-columns: 1fr 1fr; }
  .h-products .h-card:first-child { grid-column: 1 / -1; }
  .h-games { grid-template-columns: 1fr; }
  .h-about { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .h-hero { padding: 100px 0 48px; }
  .h-sec { padding: 52px 0; }
  .h-products { grid-template-columns: 1fr; }
  .h-visual { height: 170px; }
  .h-post { grid-template-columns: 1fr; gap: 6px; padding: 18px 2px; }
  .h-post .cat { justify-self: start; order: -1; }
  .h-news { padding: 18px 16px 6px; }
}
@media (prefers-color-scheme: dark) {
  .h-card.xerp .h-visual { background: linear-gradient(160deg, #0b1a33, #1e1033); }
  .h-game.ssq .ico { background: linear-gradient(150deg, #3a1214, #2a0d10); }
  .h-game.chase .ico { background: linear-gradient(150deg, #3a2a10, #2a1d08); }
}
@media (prefers-reduced-motion: reduce) {
  .h-card, .h-game { transition: none; }
  .h-card:hover, .h-game:hover { transform: none; }
}
.h-fun { padding-bottom: 40px; }
.h-fun h1 { font-size: clamp(36px, 5vw, 52px); }
.h-empty { padding: 24px 0; color: var(--muted); }
.h-empty a { color: var(--accent); }
