/* ==================================================================
   AI爱工作 · 小游戏站   v3
   鲜亮活泼 / 移动优先
   ================================================================== */

:root {
  --pink: #ff5c8a;
  --pink-dark: #e93f72;
  --orange: #ff8a3d;
  --amber: #ffc53d;
  --purple: #7b5cff;
  --teal: #00c2a8;
  --blue: #3d9bff;

  --ink: #241a2f;
  --ink-2: #4a4058;
  --muted: #7b7288;
  --line: #f0e9f4;
  --bg: #fffaf6;
  --card: #ffffff;

  --grad-hot: linear-gradient(135deg, #ff9a3d 0%, #ff5c8a 48%, #7b5cff 100%);
  --grad-soft: linear-gradient(135deg, #fff2e8 0%, #ffe8f2 50%, #eee8ff 100%);
  --grad-cool: linear-gradient(135deg, #00c2a8 0%, #3d9bff 100%);

  --shadow-sm: 0 4px 14px rgba(88, 40, 110, .07);
  --shadow-md: 0 12px 34px rgba(88, 40, 110, .10);
  --shadow-lg: 0 24px 60px rgba(88, 40, 110, .16);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --tab-h: 62px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* grid 子项默认 min-width:auto 会被长内容撑破，统一压掉 */
.hero-in > *,
.game-grid > *,
.split > *,
.feature-grid > *,
.stats-in > * { min-width: 0; }

/* 背景光斑：让白底不显得死板 */
body::before {
  content: "";
  position: fixed;
  inset: -20vh -10vw auto -10vw;
  height: 70vh;
  background:
    radial-gradient(38rem 26rem at 12% 0%, rgba(255, 138, 61, .18), transparent 62%),
    radial-gradient(34rem 24rem at 82% 6%, rgba(123, 92, 255, .16), transparent 60%),
    radial-gradient(28rem 20rem at 50% 20%, rgba(0, 194, 168, .10), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--pink-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
p { margin: 0 0 .8em; }

/* ------------------------------ 顶栏 ------------------------------ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(240, 233, 244, .9);
}

.topbar-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--grad-hot);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .5px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(255, 92, 138, .38);
}

.brand-text {
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: .3px;
  white-space: nowrap;
}
.brand-text em {
  font-style: normal;
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
  margin-left: 5px;
}

.topnav { display: flex; gap: 4px; margin-left: auto; }
.topnav a {
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.topnav a:hover { background: #fff0f5; text-decoration: none; }
.topnav a.on {
  background: var(--grad-hot);
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 92, 138, .3);
}

.topauth { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.who {
  max-width: 108px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  color: var(--ink-2);
  background: #f7f2fb;
  padding: 5px 10px;
  border-radius: 999px;
}
.link-admin {
  font-size: 13px;
  font-weight: 700;
  color: var(--purple);
  border: 1px solid #e2dbff;
  background: #f5f2ff;
  padding: 4px 10px;
  border-radius: 999px;
}
.link-admin:hover { text-decoration: none; background: #ece7ff; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 11px 22px;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s;
  white-space: nowrap;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary {
  background: var(--grad-hot);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 92, 138, .34);
}
.btn-primary:hover { box-shadow: 0 14px 30px rgba(255, 92, 138, .42); }

.btn-cool {
  background: var(--grad-cool);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 194, 168, .28);
}

.btn-ghost {
  background: rgba(255, 255, 255, .9);
  color: var(--ink-2);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: #ffd0e0; color: var(--pink-dark); }

.btn-sm { min-height: 38px; padding: 7px 15px; font-size: 14px; border-radius: 999px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ------------------------------ 布局 ------------------------------ */

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

.section { padding: 46px 0 6px; }
.section-tight { padding: 28px 0 6px; }

.sec-head { margin-bottom: 20px; }
.sec-head h2 {
  margin: 0 0 6px;
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: -.4px;
}
.sec-head p { margin: 0; color: var(--muted); font-size: 15px; }

.sec-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.grad-text {
  background: var(--grad-hot);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------ 首屏 ------------------------------ */

.hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--grad-hot);
  color: #fff;
  padding: 42px 0 48px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -46% -12%;
  height: 62%;
  background: radial-gradient(60% 100% at 50% 100%, rgba(255, 255, 255, .34), transparent 70%);
  pointer-events: none;
}

.hero-in {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  gap: 28px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .34);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.hero h1 {
  margin: 14px 0 12px;
  font-size: 33px;
  line-height: 1.22;
  letter-spacing: -1px;
  font-weight: 800;
  text-shadow: 0 3px 18px rgba(120, 20, 60, .18);
}
.hero h1 b { font-weight: 800; }

.hero p.lead {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .94);
  max-width: 34em;
  word-break: break-word;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-primary {
  background: #fff;
  color: var(--pink-dark);
  box-shadow: 0 12px 28px rgba(90, 10, 50, .22);
}
.hero .btn-ghost {
  background: rgba(255, 255, 255, .16);
  color: #fff;
  border-color: rgba(255, 255, 255, .48);
}
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .26); }

.hero-art { display: flex; justify-content: center; align-items: flex-start; }

.phone {
  width: 214px;
  max-width: 100%;
  border-radius: 26px;
  padding: 7px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .72));
  box-shadow: 0 26px 60px rgba(80, 10, 50, .32);
  transform: rotate(-3deg);
}
.phone img {
  display: block;
  width: 100%;
  /* height 必须 auto：img 上的 height 属性会把元素撑到原始高度，让 aspect-ratio 失效 */
  height: auto;
  border-radius: 20px;
  aspect-ratio: 9 / 15;
  object-fit: cover;
  object-position: top;
}

.hero-mini {
  display: flex;
  gap: 18px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.hero-mini div { font-size: 13px; color: rgba(255, 255, 255, .9); }
.hero-mini strong {
  display: block;
  font-size: 21px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

/* ------------------------------ 数据条 ------------------------------ */

.stats {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: -26px auto 0;
  padding: 0 16px;
}
.stats-in {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--shadow-md);
}
.stat { text-align: center; padding: 6px 4px; }
.stat b {
  display: block;
  font-size: 22px;
  font-weight: 800;
  background: var(--grad-hot);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.25;
}
.stat span { font-size: 12px; color: var(--muted); }

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.feature {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.feature .ic {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
}
.ic-1 { background: linear-gradient(135deg, #ff9a3d, #ff5c8a); }
.ic-2 { background: linear-gradient(135deg, #7b5cff, #3d9bff); }
.ic-3 { background: linear-gradient(135deg, #00c2a8, #3d9bff); }
.ic-4 { background: linear-gradient(135deg, #ffc53d, #ff8a3d); }
.feature h3 { margin: 0 0 3px; font-size: 16px; }
.feature p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ------------------------------ 游戏网格 ------------------------------ */

.cat-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px;
  margin: 0 -16px 10px;
  padding-left: 16px;
  padding-right: 16px;
  scrollbar-width: none;
}
.cat-chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  min-height: 40px;
}
.chip:hover { border-color: #ffd0e0; }
.chip.on {
  background: var(--grad-hot);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 92, 138, .3);
}

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

.game-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .16s ease, box-shadow .2s ease;
}
.game-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.game-shot {
  position: relative;
  aspect-ratio: 9 / 16;
  background: var(--grad-soft);
  overflow: hidden;
}
.game-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-tagcat {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(36, 26, 47, .55);
  backdrop-filter: blur(4px);
  padding: 2px 9px;
  border-radius: 999px;
}

.play-btn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 92, 138, .94);
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(180, 20, 70, .3);
  min-height: 32px;
}
.play-btn:hover { background: var(--pink-dark); }
.play-btn::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 8px solid #fff;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.game-body { padding: 12px 12px 14px; display: flex; flex-direction: column; flex: 1; }
.game-body h3 {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.hot-dot {
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #ff8a3d, #ff5c8a);
  padding: 1px 7px;
  border-radius: 999px;
  letter-spacing: .3px;
}
.game-body .tag { margin: 0 0 8px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.game-body .desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.62;
}
.game-feats {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.game-feats li {
  font-size: 11.5px;
  color: var(--purple);
  background: #f4f1ff;
  border-radius: 999px;
  padding: 3px 9px;
}

/* ------------------------------ 下载中心 ------------------------------ */

.dl-list { display: grid; gap: 12px; }

.dl-card {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.dl-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .3px;
  background: var(--grad-hot);
}
.dl-icon.file { background: var(--grad-cool); }
.dl-main { flex: 1; min-width: 0; }
.dl-main h3 { margin: 0 0 3px; font-size: 16px; }
.dl-main .meta { font-size: 12.5px; color: var(--muted); }
.dl-main .meta span + span::before { content: "·"; margin: 0 6px; color: #cfc6d8; }
.dl-main .sum { font-size: 13.5px; color: var(--ink-2); margin: 5px 0 0; }
.dl-act { flex: 0 0 auto; }

.locked {
  background: linear-gradient(135deg, #fff6f9, #f6f2ff);
  border: 1.5px dashed #ffd3e1;
  border-radius: var(--r-md);
  padding: 22px 18px;
  text-align: center;
  margin-bottom: 18px;
}
.locked p { margin: 6px 0 14px; color: var(--ink-2); font-size: 15px; }
.locked .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ------------------------------ 表单 / 认证 ------------------------------ */

.auth-shell {
  position: relative;
  z-index: 1;
  max-width: 430px;
  margin: 0 auto;
  padding: 34px 16px 60px;
}
.auth-card {
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 26px 22px 24px;
}
.auth-card h1 { margin: 0 0 6px; font-size: 23px; }
.auth-card .sub { margin: 0 0 20px; color: var(--muted); font-size: 14px; }

.field { margin-bottom: 15px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 7px;
}
.field input[type=text],
.field input[type=password],
.field input[type=email],
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: #fdfbfe;
  transition: border-color .15s, background .15s;
}
.field textarea { min-height: 92px; resize: vertical; line-height: 1.6; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--pink);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 92, 138, .12);
}
.field .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.field-file input[type=file] {
  width: 100%;
  font-size: 14px;
  padding: 12px;
  border: 1.5px dashed #ffd3e1;
  border-radius: 13px;
  background: #fff8fb;
}
.form-foot { margin-top: 20px; }
.form-alt { text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); }

/* ------------------------------ 提示 ------------------------------ */

.notice {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  margin: 16px 0;
  box-shadow: var(--shadow-sm);
  font-size: 14.5px;
}
.notice strong { display: block; margin-bottom: 2px; }
.notice p:last-child { margin-bottom: 0; }
.notice-err { border-left-color: #ff5c5c; background: #fff7f7; }
.notice-warn { border-left-color: var(--amber); background: #fffdf5; }
.notice-ok { border-left-color: var(--teal); background: #f5fffd; }
.notice ul { margin: 6px 0 0; padding-left: 20px; }

/* ------------------------------ 视频弹层 ------------------------------ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(24, 14, 34, .82);
  backdrop-filter: blur(4px);
}
.modal.on { display: grid; }
.modal-inner { position: relative; width: 100%; max-width: 380px; }
.modal video {
  display: block;
  width: 100%;
  max-height: 82vh;
  border-radius: 20px;
  background: #000;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
}
.modal-title {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 10px;
  text-align: center;
}
.modal-close {
  position: absolute;
  top: -14px;
  right: -6px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
  line-height: 1;
}

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

.foot {
  position: relative;
  z-index: 1;
  margin-top: 56px;
  background: #241a2f;
  color: #cfc6d8;
  padding: 34px 0 100px;
}
.foot-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  gap: 20px;
}
.foot .brand-mark { box-shadow: none; }
.foot-brand { display: flex; gap: 12px; align-items: flex-start; }
.foot-brand strong { color: #fff; font-size: 16px; }
.foot-brand p { margin: 4px 0 0; font-size: 13.5px; color: #a99eb8; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { color: #cfc6d8; font-size: 14px; }
.foot-links a:hover { color: #fff; }
.foot-meta { font-size: 13px; color: #a99eb8; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 14px; }
.foot-meta p { margin: 0 0 4px; }
.foot-meta a { color: #ffb3c9; }

/* ------------------------------ 移动端底部导航 ------------------------------ */

.tabbar { display: none; }

/* ------------------------------ 表格（后台） ------------------------------ */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 620px;
}
table.data th,
table.data td {
  text-align: left;
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.data th { font-size: 12.5px; color: var(--muted); font-weight: 700; white-space: nowrap; }
table.data td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
table.data tr:last-child td { border-bottom: 0; }
.pill {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  background: #f4f1ff;
  color: var(--purple);
}
.pill-on { background: #e9fbf6; color: #0a9c86; }
.pill-off { background: #f4f2f7; color: var(--muted); }
.inline-form { display: inline; }
.link-danger { color: #e0393e; font-size: 13px; font-weight: 600; background: none; border: 0; cursor: pointer; font-family: inherit; padding: 0; }
.link-danger:hover { text-decoration: underline; }

/* ------------------------------ 双列文字排版 ------------------------------ */

.prose h2 { font-size: 21px; margin: 26px 0 10px; }
.prose h3 { font-size: 17px; margin: 20px 0 8px; }
.prose p { color: var(--ink-2); font-size: 15px; line-height: 1.8; }
.prose ul { color: var(--ink-2); font-size: 15px; line-height: 1.85; padding-left: 20px; }

.split {
  display: grid;
  gap: 14px;
}
.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.info-card h3 { margin: 0 0 8px; font-size: 16px; }
.info-card p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.info-card .mail {
  display: inline-block;
  margin-top: 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--pink-dark);
  word-break: break-all;
}

/* ==================================================================
   断点
   ================================================================== */

@media (min-width: 560px) {
  .hero h1 { font-size: 40px; }
  .hero p.lead { font-size: 17px; }
  .stats-in { grid-template-columns: repeat(4, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: repeat(2, 1fr); }
  .phone { width: 246px; }
  .game-grid { gap: 14px; }
}

@media (min-width: 860px) {
  body { font-size: 16px; }
  .hero { padding: 48px 0 58px; }
  .hero-in { grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
  .hero h1 { font-size: 50px; }
  .hero p.lead { font-size: 18px; }
  .hero-art { justify-content: flex-end; }
  .phone { width: 236px; transform: rotate(-4deg); }
  .hero-mini { gap: 32px; }

  .section { padding: 64px 0 8px; }
  .sec-head h2 { font-size: 32px; }

  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
  .dl-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .foot { padding-bottom: 34px; }
  .foot-in { grid-template-columns: 1.2fr 1fr; }
  .foot-meta { grid-column: 1 / -1; }
}

@media (min-width: 1140px) {
  .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero h1 { font-size: 54px; }
}

/* 手机：底部 tab 导航 + 隐藏桌面导航 */
@media (max-width: 859px) {
  .topnav { display: none; }
  .brand-text em { display: none; }

  .tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    height: calc(var(--tab-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(160%) blur(16px);
    border-top: 1px solid rgba(240, 233, 244, .95);
    box-shadow: 0 -8px 26px rgba(88, 40, 110, .07);
  }
  .tabbar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    padding: 6px 0;
  }
  .tabbar a:hover { text-decoration: none; }
  .tabbar a.on { color: var(--pink-dark); }
  .tab-dot {
    width: 20px;
    height: 20px;
    border-radius: 7px;
    background: #ece6f2;
    display: block;
    transition: background .15s;
  }
  .tabbar a.on .tab-dot { background: var(--grad-hot); }

  .topbar-in { padding: 9px 14px; gap: 8px; }
  .who { max-width: 74px; font-size: 13px; }
  .btn-sm { min-height: 36px; padding: 6px 13px; font-size: 13.5px; }
  .hero { padding: 30px 0 40px; }
  .hero h1 { font-size: 30px; }
  .hero p.lead { font-size: 15px; margin-bottom: 18px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .game-body .desc {
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .game-feats { display: none; }          /* 手机上精简卡片，避免过长 */
  .stats { margin-top: -20px; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 27px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .game-body { padding: 10px 10px 12px; }
  .game-body h3 { font-size: 15px; }
}

/* ==================================================================
   博客（v4）
   站点定位改为个人技术博客，以下是列表 / 文章页 / 关于页用到的样式
   ================================================================== */

/* ------------------------------ 首屏右侧：最近一篇 ------------------------------ */

.hero-note {
  display: block;
  width: 300px;
  max-width: 100%;
  background: #fff;
  color: var(--ink);
  border-radius: var(--r-lg);
  padding: 22px 22px 20px;
  box-shadow: 0 26px 60px rgba(80, 10, 50, .3);
  transform: rotate(-2deg);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .2s ease;
}
.hero-note:hover {
  transform: rotate(0) translateY(-3px);
  box-shadow: 0 30px 64px rgba(80, 10, 50, .36);
  text-decoration: none;
}
.hero-note-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #fff;
  background: var(--grad-cool);
  padding: 3px 10px;
  border-radius: 999px;
}
.hero-note-date {
  display: block;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.hero-note h3 {
  margin: 6px 0 8px;
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink);
}
.hero-note p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.65;
}
.hero-note-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--pink-dark);
}

/* ------------------------------ 页头 ------------------------------ */

.page-head {
  position: relative;
  z-index: 1;
  padding: 38px 0 14px;
  background: linear-gradient(180deg, #fff2e8 0%, rgba(255, 250, 246, 0) 100%);
}
.page-head h1 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: -.6px;
}
.page-head p { margin: 0; color: var(--ink-2); font-size: 15px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag-row .tag { background: #fff; border: 1px solid var(--line); font-weight: 600; }
.tag-row .tag em { font-style: normal; color: var(--muted); margin-left: 5px; font-size: 11px; }

/* ------------------------------ 文章列表 ------------------------------ */

.post-list { display: grid; gap: 12px; }

.post-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  text-decoration: none;
  transition: transform .16s ease, box-shadow .2s ease, border-color .16s;
}
.post-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #ffd6e4;
}
.post-card-main { flex: 1; min-width: 0; }
.post-card h3 { margin: 7px 0 6px; font-size: 19px; line-height: 1.42; }
.post-card p { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }
.post-card .post-sub { color: var(--muted); font-size: 13.5px; margin-bottom: 5px; }
.post-card-arrow {
  flex: 0 0 auto;
  margin-top: 16px;
  font-size: 18px;
  font-weight: 700;
  color: #ffb3c9;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 10px;
  align-items: center;
  font-size: 12.5px;
  color: var(--muted);
}
.post-meta time { font-variant-numeric: tabular-nums; }

.tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  background: #f6f1ff;
  color: var(--purple);
}

/* ------------------------------ 文章页 ------------------------------ */

.article {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 30px 16px 0;
}
.article-head { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.article-head .back { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.article-head .back:hover { color: var(--pink-dark); }
.article-head h1 {
  margin: 14px 0 8px;
  font-size: 29px;
  line-height: 1.36;
  letter-spacing: -.5px;
}
.article-sub { margin: 0 0 14px; color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }

/* .prose 在旧版已有一份基础样式，这里按长文阅读重写 */
.prose { padding-top: 6px; }
.prose h2 {
  margin: 36px 0 12px;
  font-size: 21.5px;
  line-height: 1.45;
  letter-spacing: -.3px;
  scroll-margin-top: 70px;
}
.prose h2::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--grad-hot);
  margin-right: 9px;
  vertical-align: 4px;
}
.prose h3 { margin: 26px 0 8px; font-size: 17.5px; line-height: 1.5; }
.prose p { margin: 0 0 1em; font-size: 16px; line-height: 1.9; color: var(--ink-2); }
.prose ul, .prose ol { margin: 0 0 1em; font-size: 16px; line-height: 1.9; padding-left: 22px; color: var(--ink-2); }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: #ffa8c2; }
.prose strong { color: var(--ink); }
.prose a { color: var(--pink-dark); text-decoration: underline; text-underline-offset: 2px; }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
  background: #f7f1fb;
  color: #8a2f66;
  padding: 1px 5px;
  border-radius: 5px;
  word-break: break-word;
}
.prose pre {
  margin: 18px 0;
  padding: 16px;
  background: #241a2f;
  border-radius: 14px;
  overflow-x: auto;
  line-height: 1.65;
  -webkit-overflow-scrolling: touch;
}
.prose pre code {
  display: block;
  background: none;
  color: #f4eef8;
  padding: 0;
  font-size: 12.8px;
  white-space: pre;
}
.prose table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  font-size: 14px;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.prose th, .prose td {
  border: 1px solid var(--line);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
  min-width: 96px;
}
.prose thead th { background: #fdf3f8; font-size: 13px; color: var(--ink); white-space: nowrap; }
.prose tbody td { color: var(--ink-2); background: #fff; }

.callout {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
}
.callout strong { display: block; margin-bottom: 4px; font-size: 15px; }
.callout p { margin: 0; font-size: 14.5px; line-height: 1.8; }

.steps { display: grid; gap: 10px; margin: 18px 0; }
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.step b { display: block; margin-bottom: 4px; font-size: 15px; color: var(--pink-dark); }
.step p { margin: 0; font-size: 14.5px; line-height: 1.8; }

.figure { margin: 24px 0; }
.figure img {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: var(--grad-soft);
}
.figure video {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 0 auto;
  border-radius: 16px;
  background: #000;
  box-shadow: var(--shadow-md);
}
.figure figcaption {
  margin-top: 9px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* ------------------------------ 文章页脚 ------------------------------ */

.article-foot { margin-top: 42px; padding-top: 20px; border-top: 1px solid var(--line); }
.author-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: linear-gradient(135deg, #fff3ec, #ffeaf3 60%, #f1ecff);
  border: 1px solid #ffe0ec;
  border-radius: 18px;
  padding: 18px;
}
.author-box .brand-mark { box-shadow: none; }
.author-box strong { font-size: 15px; }
.author-box p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.7; word-break: break-word; }

.pager { display: grid; gap: 10px; margin-top: 16px; }
.pager-item {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color .16s;
}
.pager-item span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.pager-item strong { font-size: 14.5px; color: var(--ink); line-height: 1.5; }
.pager-item:hover { text-decoration: none; border-color: #ffd6e4; }
.pager-next { text-align: right; }

/* ------------------------------ 首页 CTA / 关于页 ------------------------------ */

.cta-card {
  text-align: center;
  background: linear-gradient(135deg, #fff4ec, #ffe9f3 55%, #f0ebff);
  border-color: #ffe0ec;
}
.cta-card h2 { margin: 0 0 8px; font-size: 23px; }
.cta-card p { margin: 0 0 18px; color: var(--ink-2); }
.cta-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.about-wrap { max-width: 780px; }

@media (min-width: 860px) {
  .page-head { padding: 56px 0 18px; }
  .page-head h1 { font-size: 38px; }
  .post-card { padding: 24px 26px; }
  .post-card h3 { font-size: 21px; }
  .article { padding-top: 44px; }
  .article-head h1 { font-size: 34px; }
  .prose h2 { font-size: 23px; margin-top: 44px; }
  .prose p, .prose ul, .prose ol { font-size: 16.5px; }
  .pager { grid-template-columns: 1fr 1fr; }
  .figure img, .figure video { max-width: 330px; }
}

@media (max-width: 859px) {
  .hero-art { margin-top: 26px; justify-content: flex-start; }
  .hero-note { transform: none; width: 100%; }
  .article-head h1 { font-size: 24px; }
  .article-sub { font-size: 14.5px; }
  .prose h2 { font-size: 20px; }
  .prose p, .prose ul, .prose ol { font-size: 15.5px; }
  .post-card-arrow { display: none; }
  .page-head h1 { font-size: 26px; }
}
