:root {
  --bg: #10141b;
  --panel: #181f2a;
  --panel-2: #1f2937;
  --text: #e5e9f0;
  --muted: #9aa5b5;
  --blue: #2a5286;
  --blue-hi: #3a6cae;
  --red: #85382d;
  --red-hi: #a8483a;
  --gold: #d8a94e;
  --border: rgba(255, 255, 255, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  line-height: 1.75;
}

a { color: var(--blue-hi); text-decoration: none; }
a:hover { text-decoration: underline; }

/* 导航 */
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding: 14px 32px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}
nav .brand { font-size: 18px; font-weight: bold; color: var(--text); }
nav a { color: var(--muted); }
nav a.active, nav a:hover { color: var(--text); text-decoration: none; }
nav .spacer { flex: 1; }
#lang-select {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 14px;
  cursor: pointer;
}

/* 主体 */
main { max-width: 960px; margin: 0 auto; padding: 40px 24px 64px; }

.hero { text-align: center; padding: 24px 0 8px; }
.hero img {
  max-width: 100%;
  width: 860px;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.hero h1 { margin-top: 24px; font-size: 34px; letter-spacing: 6px; }
.hero p.tagline { color: var(--muted); font-size: 17px; margin-top: 8px; }

section { margin-top: 48px; }
section h2 {
  font-size: 24px;
  border-left: 4px solid var(--blue-hi);
  padding-left: 12px;
  margin-bottom: 16px;
}


.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: #1a1408;
  font-weight: bold;
  padding: 10px 32px;
  border-radius: 8px;
}
.btn-gold:hover { background: #e8bd66; text-decoration: none; }

/* 条款页 */
.legal h1 { font-size: 28px; margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.legal h2 { font-size: 20px; margin: 32px 0 12px; border-left: 4px solid var(--blue-hi); padding-left: 12px; }
.legal p, .legal li { color: #c6cdd8; font-size: 15px; }
.legal ul, .legal ol { margin: 8px 0 8px 28px; }
.legal .highlight {
  background: rgba(168, 72, 58, 0.12);
  border: 1px solid var(--red-hi);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 16px 0;
}
.legal .highlight strong { color: #d98a7c; }
.legal .highlight p + p { margin-top: 12px; }

footer {
  border-top: 1px solid var(--border);
  padding: 24px 32px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
footer a { color: var(--muted); margin: 0 10px; }

/* 在线游戏 */
.page-title { font-size: 28px; margin-bottom: 8px; }
.page-intro { color: var(--muted); margin-bottom: 20px; }
.notice {
  background: rgba(168, 72, 58, 0.12);
  border: 1px solid var(--red-hi);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 28px;
  color: #c6cdd8;
  font-size: 15px;
}
.notice strong { color: #d98a7c; }
.muted { color: var(--muted); font-size: 14px; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.game {
  display: flex;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}
.game .tag { color: var(--gold); }
.game-body { min-width: 0; }
.game h3 { font-size: 18px; margin-bottom: 2px; overflow-wrap: anywhere; }
.game .muted { margin-bottom: 12px; }
.game .btn-gold { padding: 6px 24px; }

/* Steam 愿望单入口 */
.steam-logo { width: 1.25em; height: 1.25em; flex: none; }

nav a.nav-steam {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #06bfff, #2d73ff);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.6;
  box-shadow: 0 4px 14px -4px rgba(45, 115, 255, 0.7);
  transition: transform 0.15s, box-shadow 0.15s;
}
nav a.nav-steam:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -4px rgba(6, 191, 255, 0.8);
}

.btn-steam {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  border-radius: 10px;
  background: linear-gradient(90deg, #06bfff, #2d73ff);
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1px;
  box-shadow: 0 10px 28px -8px rgba(45, 115, 255, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.btn-steam::after {
  /* 按钮上周期性扫过的一道光 */
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  animation: steam-shine 3.2s ease-in-out infinite;
}
.btn-steam:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 14px 34px -8px rgba(6, 191, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-steam-sm { padding: 9px 20px; font-size: 15px; }
@keyframes steam-shine {
  0%, 55% { left: -60%; }
  100% { left: 130%; }
}

.steam-cta {
  position: relative;
  overflow: hidden;
  margin-top: 36px;
  border: 1px solid rgba(216, 169, 78, 0.55);
  border-radius: 16px;
  background: #0d1016;
  box-shadow: 0 24px 60px -24px rgba(216, 169, 78, 0.35);
}
.steam-cta-bg {
  position: absolute;
  inset: -40px;
  background-size: cover;
  background-position: center;
  filter: blur(22px) brightness(0.32) saturate(1.3);
}
.steam-cta-main {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 32px 32px 24px;
}
.steam-capsule {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(216, 169, 78, 0.6);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.8), 0 0 0 4px rgba(216, 169, 78, 0.08);
  transition: transform 0.25s;
}
.steam-capsule img { display: block; width: 100%; height: auto; }
.steam-capsule:hover { transform: scale(1.02); }
.steam-cta-body h2 {
  border: 0;
  padding: 0;
  margin: 12px 0 10px;
  font-size: 26px;
  line-height: 1.35;
  background: linear-gradient(180deg, #ffe7b0, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.steam-cta-body p { color: #c6cdd8; font-size: 15px; }
.steam-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 12px;
  border: 1px solid rgba(6, 191, 255, 0.55);
  border-radius: 999px;
  background: rgba(6, 191, 255, 0.1);
  color: #7fd7ff;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1px;
}
.steam-badge i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #06bfff;
  animation: steam-pulse 1.8s ease-out infinite;
}
@keyframes steam-pulse {
  0% { box-shadow: 0 0 0 0 rgba(6, 191, 255, 0.7); }
  100% { box-shadow: 0 0 0 9px rgba(6, 191, 255, 0); }
}
.steam-points {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  list-style: none;
  margin: 14px 0 22px;
}
.steam-points li {
  padding: 1px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 13px;
}
.steam-store-link { display: block; margin-top: 12px; color: var(--muted); font-size: 14px; }
.steam-store-link:hover { color: var(--text); }

.steam-shots {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 32px 32px;
}
.steam-shot {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.steam-shot img { display: block; width: 100%; height: auto; transition: transform 0.35s; }
.steam-shot span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 10px 6px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: var(--text);
  font-size: 13px;
}
.steam-shot:hover { text-decoration: none; border-color: rgba(216, 169, 78, 0.6); }
.steam-shot:hover img { transform: scale(1.06); }

.steam-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-top: 36px;
  padding: 16px 20px;
  border: 1px solid rgba(45, 115, 255, 0.5);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(6, 191, 255, 0.12), rgba(45, 115, 255, 0.05));
}
.steam-strip-capsule { flex: none; display: block; width: 184px; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.steam-strip-capsule img { display: block; width: 100%; height: auto; }
.steam-strip p { flex: 1 1 240px; color: #c6cdd8; font-size: 15px; }

@media (max-width: 720px) {
  .steam-cta-main { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 20px 16px 16px; }
  .steam-cta-body h2 { font-size: 22px; }
  .steam-shots { gap: 8px; padding: 0 16px 20px; }
  .steam-shot span { display: none; }
  .btn-steam { width: 100%; justify-content: center; font-size: 17px; padding: 13px 16px; }
  .steam-strip-capsule { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-steam::after, .steam-badge i { animation: none; }
  .btn-steam, .nav-steam, .steam-capsule, .steam-shot img { transition: none; }
}

/* QQ 群 */
.community-panel {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(126, 169, 221, 0.35);
  border-radius: 16px;
  background:
    radial-gradient(circle at 0% 0%, rgba(6, 191, 255, 0.14), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(167, 139, 250, 0.12), transparent 55%),
    var(--panel);
}
.community-qr {
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 40px -14px rgba(6, 191, 255, 0.55);
}
.community-qr img { display: block; width: 100%; height: auto; }
.community-lead { color: #c6cdd8; font-size: 15px; }
.community-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 6px 16px;
  list-style: none;
  margin: 14px 0 18px;
}
.community-points li { position: relative; padding-left: 20px; color: var(--text); font-size: 14px; }
.community-points li::before {
  content: '';
  position: absolute;
  left: 2px; top: 0.65em;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, #4fd8eb, #a78bfa);
  transform: rotate(45deg);
}
.community-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
}
.community-label { color: var(--muted); font-size: 14px; }
.community-num {
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, #4fd8eb, #7ea9ff, #b69cf7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.btn-copy {
  padding: 6px 16px;
  border: 1px solid rgba(126, 169, 221, 0.6);
  border-radius: 8px;
  background: rgba(58, 108, 174, 0.25);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-copy:hover { background: rgba(58, 108, 174, 0.45); }
.btn-copy.copied { border-color: #4ade80; background: rgba(74, 222, 128, 0.18); color: #bbf7d0; }
.community-tip { margin-top: 10px; color: var(--muted); font-size: 13px; }
.footer-sep { margin-right: 10px; }

@media (max-width: 720px) {
  .community-panel { grid-template-columns: minmax(0, 1fr); padding: 20px 16px; gap: 20px; }
  .community-qr { width: 220px; max-width: 100%; margin: 0 auto; }
}

/* 制作者乐园 */
.cr-head { text-align: center; margin-bottom: 32px; }
.cr-kicker {
  display: inline-block;
  padding: 3px 18px;
  border: 1px solid rgba(216, 169, 78, 0.45);
  border-radius: 999px;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 4px;
}
.cr-head h1 { margin: 14px 0 10px; font-size: 32px; line-height: 1.35; }
.cr-head p { max-width: 720px; margin: 0 auto; color: var(--muted); }
.cr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cr-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px 16px 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.15s, transform 0.15s;
}
.cr-item:hover { border-color: rgba(216, 169, 78, 0.5); transform: translateY(-2px); }
.cr-hex {
  flex: none;
  width: 40px; height: 46px;
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(160deg, #f3cf83, #b9832d);
  color: #20170a;
  font-weight: bold;
}
.cr-item h3 { font-size: 17px; line-height: 1.4; }
.cr-item h3 small {
  margin-left: 8px;
  padding: 0 8px;
  border: 1px solid rgba(126, 169, 221, 0.6);
  border-radius: 999px;
  color: #9cc0ee;
  font-size: 12px;
  font-weight: normal;
  vertical-align: 2px;
}
.cr-item p { margin-top: 4px; color: var(--muted); font-size: 14px; }
.cr-item.star {
  grid-column: 1 / -1;
  padding: 20px 22px 20px 18px;
  border-color: rgba(216, 169, 78, 0.7);
  background: linear-gradient(120deg, rgba(216, 169, 78, 0.16), rgba(42, 82, 134, 0.2)), var(--panel);
  box-shadow: 0 16px 40px -20px rgba(216, 169, 78, 0.55);
}
.cr-item.star .cr-hex { width: 50px; height: 58px; font-size: 20px; }
.cr-item.star h3 { font-size: 20px; color: #ffe2a3; }
.cr-item.star p { color: #d5dbe5; font-size: 15px; }
.cr-agents { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cr-agents span {
  padding: 1px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
}
.cr-call {
  margin-top: 40px;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid rgba(216, 169, 78, 0.7);
  border-radius: 16px;
  background: radial-gradient(420px 180px at 50% 0%, rgba(216, 169, 78, 0.25), transparent 70%), linear-gradient(180deg, #2a1f0d, #17120a);
}
.cr-call h2 {
  font-size: 30px;
  letter-spacing: 3px;
  background: linear-gradient(180deg, #fff6dc, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cr-roles { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 16px 0 12px; }
.cr-roles span {
  padding: 3px 18px;
  border-radius: 999px;
  background: var(--gold);
  color: #20170a;
  font-weight: bold;
  letter-spacing: 2px;
}
.cr-call p { max-width: 620px; margin: 0 auto; color: #e9dcc0; }
.cr-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 22px; }
.cr-actions .btn-gold { padding: 9px 26px; }
.cr-more { margin-top: 16px; text-align: right; }
.cr-more a { color: var(--gold); }
.cr-poster-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.cr-poster-row > a { flex: 0 1 300px; display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.cr-poster-row img { display: block; width: 100%; height: auto; }
.cr-poster-row > div { flex: 1 1 240px; }
.cr-poster-row p { color: var(--muted); margin-bottom: 16px; }

@media (max-width: 720px) {
  .cr-head h1 { font-size: 24px; }
  .cr-kicker { letter-spacing: 1px; }
  .cr-grid { grid-template-columns: minmax(0, 1fr); }
  .cr-call h2 { font-size: 24px; }
  .cr-poster-row > a { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .cr-item { transition: none; }
}
