:root {
  --bg: #f6efe4;
  --bg-2: #fff9f2;
  --ink: #3a2f28;
  --muted: #6b5c52;
  --line: #eadccb;
  --card: #fffdf9;
  --accent: #e07a5f;
  --accent-dark: #c45c42;
  --sage: #5f8f78;
  --honey: #f2cc8f;
  --shadow: 0 14px 40px rgba(90, 60, 40, 0.08);
  --radius: 22px;
  --max: 1080px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #ffe8d6 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #e7f3ea 0%, transparent 50%),
    var(--bg);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }
::selection { background: #f4c7b8; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.nav {
  position: sticky; top: 0; z-index: 40;
  min-height: var(--nav-h);
  height: auto;
  display: flex; align-items: center;
  background: rgba(246, 239, 228, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(234, 220, 203, 0.8);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: 0.02em; }
.brand-mark {
  width: 44px; height: 44px; flex: none;
  border-radius: 12px; object-fit: cover;
  box-shadow: 0 2px 8px rgba(58, 47, 40, 0.12);
}
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nav-links a {
  text-decoration: none; color: var(--muted);
  padding: 8px 12px; border-radius: 999px; font-size: 14px;
}
.nav-links a:hover, .nav-links a.is-on { background: #fff; color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; text-decoration: none;
  border-radius: 999px; padding: 11px 18px; font-weight: 650;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(224, 122, 95, 0.28); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-sage { background: var(--sage); color: #fff; }

.hero { padding: 28px 0 20px; display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); color: var(--muted);
  padding: 6px 12px; border-radius: 999px; font-size: 13px; margin-bottom: 16px;
}
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); display: inline-block; }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.18; margin: 0 0 16px; letter-spacing: -0.03em; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 28px; max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 18px; color: var(--muted); line-height: 1.45;
}
.hero-points li { position: relative; padding-left: 1.1em; }
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.hero-art {
  position: relative;
  background: #1a1512;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 0;
}
.hero-art iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-ph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  padding: 20px;
  text-align: center;
}

.section { padding: 20px 0 40px; }
.section-head {
  display: flex; flex-direction: column; align-items: stretch;
  gap: 12px; margin-bottom: 18px;
}
.section-head > div { width: 100%; min-width: 0; }
.section-head h2 {
  margin: 0; font-size: 22px; letter-spacing: -0.03em;
  line-height: 1.3; white-space: normal; word-break: keep-all;
}
.section-head p {
  margin: 6px 0 0; color: var(--muted);
  line-height: 1.65; white-space: normal; word-break: keep-all;
}

.search {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 16px; width: 100%; min-width: 0; box-sizing: border-box;
}
.search input { border: 0; outline: 0; background: transparent; width: 100%; color: var(--ink); }
.search svg { flex: none; opacity: 0.55; }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.game-card {
  position: relative;
  width: 100%;
  aspect-ratio: 860 / 541;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(90, 60, 40, 0.12);
  background: #2a221c;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.game-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.game-card .wall {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.game-card .cover-hit {
  position: absolute; inset: 0; z-index: 1;
}
.game-card .overlay {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 36px 14px 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(20, 14, 10, 0.82) 72%);
  color: #fff;
  pointer-events: none;
}
.game-card .overlay h3 { margin: 0 0 4px; font-size: 20px; letter-spacing: -0.02em; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.game-card .overlay p { margin: 0 0 10px; font-size: 13px; color: rgba(255,255,255,.88); }
.game-card .overlay .dl-row { padding: 0; pointer-events: auto; }

.dl-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; padding: 12px 14px 14px; }
.dl-btn {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; line-height: 1.2;
  padding: 9px 4px; border-radius: 10px; text-decoration: none; text-align: center;
  color: #fff; cursor: pointer;
  transform: translateY(0) scale(1);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), filter 0.18s var(--ease);
}
.dl-btn::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: rgba(255,255,255,.55);
  transform: scale(0); opacity: 0; pointer-events: none;
}
.dl-quark { background: #12b5b0; box-shadow: 0 4px 10px rgba(18, 181, 176, 0.35); }
.dl-xunlei { background: #2f6bff; box-shadow: 0 4px 10px rgba(47, 107, 255, 0.35); }
.dl-shan { background: #22c55e; box-shadow: 0 4px 10px rgba(34, 197, 94, 0.35); }
.dl-btn:hover:not(.is-off) { transform: translateY(-2px); filter: brightness(1.08); }
.dl-quark:hover:not(.is-off) { box-shadow: 0 8px 16px rgba(18, 181, 176, 0.45); }
.dl-xunlei:hover:not(.is-off) { box-shadow: 0 8px 16px rgba(47, 107, 255, 0.45); }
.dl-shan:hover:not(.is-off) { box-shadow: 0 8px 16px rgba(34, 197, 94, 0.45); }
.dl-btn:active:not(.is-off) { transform: translateY(1px) scale(0.96); filter: brightness(0.96); }
.dl-btn.is-pop { animation: dl-press 0.42s var(--ease); }
.dl-btn.is-pop::after { animation: dl-ripple 0.5s ease-out; }
.dl-btn.is-off { opacity: 0.4; cursor: default; box-shadow: none; filter: grayscale(0.25); }
@keyframes dl-press {
  0% { transform: scale(1); }
  30% { transform: scale(0.92); }
  100% { transform: scale(1); }
}
@keyframes dl-ripple {
  0% { transform: scale(0); opacity: 0.7; }
  100% { transform: scale(18); opacity: 0; }
}

.steps { display: grid; grid-template-columns: 1fr; gap: 16px; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; min-height: 180px;
}
.num {
  width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 800;
  background: #ffe8d6; color: var(--accent-dark); margin-bottom: 12px;
}
.step h3 { margin: 0 0 8px; }
.step p { margin: 0; color: var(--muted); }

.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px;
}
.faq summary { cursor: pointer; font-weight: 650; }
.faq p { margin: 8px 0 0; color: var(--muted); }

.cta-band {
  background: #3a2f28; color: #f8efe6; border-radius: 28px;
  padding: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
}
.cta-band h2 { margin: 0 0 8px; color: #fff; }
.cta-band p { margin: 0; color: #d7c4b3; }
.cta-band .btn-primary { box-shadow: none; }

.footer { padding: 28px 0 48px; color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-links a { color: var(--accent-dark); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

.prose {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; margin: 12px 0 48px; box-shadow: 0 8px 20px rgba(90, 60, 40, 0.05);
}
.prose h1 { font-size: 28px; margin: 0 0 8px; }
.prose .lead { font-size: 16px; margin: 0 0 22px; }
.prose h2 { font-size: 18px; margin: 28px 0 10px; }
.prose p { margin: 0 0 14px; color: var(--muted); }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 1.2em; color: var(--muted); }
.prose li { margin: 6px 0; }
.prose .contact-box {
  background: #fff9f2; border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 18px; margin: 16px 0;
}
.prose .contact-box p { margin: 0 0 8px; color: var(--ink); }
.prose .contact-box p:last-child { margin: 0; }

.page-hero { padding: 28px 0 10px; }
.crumb { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.crumb a { color: var(--accent-dark); text-decoration: none; }
.game-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}
.game-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 860 / 541;
  border-radius: 16px;
  overflow: hidden;
  background: #2a221c;
  box-shadow: var(--shadow);
}
.game-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-banner .overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(20, 14, 10, 0.78) 70%);
  color: #fff;
}
.game-banner h1 { display: none; }
.game-banner .lead { display: none; }
.game-banner .dl-row { padding: 0; }

.game-aside {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px 16px;
  box-shadow: 0 8px 20px rgba(90, 60, 40, 0.05);
}
.game-aside h1 { font-size: 26px; margin: 0 0 8px; }
.game-aside .lead { font-size: 14px; margin: 0 0 12px; }
.game-aside .dl-row { padding: 0 0 14px; }
.game-aside h2 { font-size: 15px; margin: 12px 0 8px; }
.game-aside ol, .game-aside ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.game-aside li { margin: 5px 0; }

.toolbar {
  position: sticky; top: var(--nav-h); z-index: 20;
  background: rgba(246, 239, 228, 0.9); backdrop-filter: blur(14px);
  padding: 12px 0; margin: 18px 0 8px;
}
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 999px; padding: 7px 13px; cursor: pointer; white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

.mod-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.mod-card {
  width: 100%;
  aspect-ratio: 280 / 308;
  height: auto;
  position: relative;
  background: #f3e6d6;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 8px 20px rgba(90, 60, 40, 0.08);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.mod-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mod-pic { width: 100%; height: 100%; position: relative; overflow: hidden; }
.mod-pic img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transition: opacity 0.2s var(--ease);
}
.mod-pic img.is-in { opacity: 1; }
.mod-pic .ph { width: 100%; height: 100%; }
.mod-info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 10px 10px;
  background: linear-gradient(180deg, transparent, rgba(20,14,10,.78));
  color: #fff;
  text-align: left;
}
.mod-info h3 { margin: 0; font-size: 12px; color: #fff; line-height: 1.35; }
.mod-info p { display: none; }
.mod-count { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.more-wrap { text-align: center; padding: 22px 0 4px; }
.empty { text-align: center; color: var(--muted); padding: 48px 16px; }

.modal {
  position: fixed; inset: 0; z-index: 80; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(40, 28, 22, 0.42);
}
.modal.is-open { display: flex; }
.modal-card {
  position: relative;
  width: 280px;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.2);
  animation: pop 0.22s var(--ease);
}
@keyframes pop { from { transform: translateY(10px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-pic { width: 280px; height: 308px; background: #f3e6d6; position: relative; }
.modal-pic svg, .modal-pic img { width: 280px; height: 308px; object-fit: contain; display: block; }
.modal-pic img { position: absolute; inset: 0; }
.modal-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 36px 12px 12px;
  background: linear-gradient(180deg, transparent, rgba(20,14,10,.88));
  color: #fff;
}
.modal-body h3 { margin: 0 0 6px; font-size: 16px; color: #fff; }
.modal-body p { margin: 0 0 10px; color: rgba(255,255,255,.82); font-size: 12px; }
.modal-body .dl-row { padding: 0; }
.modal-close {
  position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: #fff; cursor: pointer; font-size: 18px; z-index: 5;
}

@media (min-width: 720px) {
  .hero {
    padding: 56px 0 28px; gap: 48px;
    grid-template-columns: 1.15fr 0.85fr;
  }
  h1 { font-size: clamp(32px, 5vw, 52px); }
  .section { padding: 28px 0 64px; }
  .section-head {
    flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 16px;
  }
  .section-head > div { flex: 1; width: auto; }
  .section-head h2 { font-size: 28px; }
  .search { width: auto; min-width: 260px; max-width: 340px; flex: 0 0 300px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .cta-band {
    padding: 36px; flex-direction: row; justify-content: space-between; align-items: center;
  }
}
@media (min-width: 900px) {
  .mod-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .mod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .game-hero { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .hero-art { min-height: 200px; }
  h1 { font-size: 28px; }
  .hero-points { font-size: 16px; }
  .game-card .overlay h3 { font-size: 16px; }
  .game-card .overlay p { font-size: 12px; }
  .dl-btn { font-size: 11px; padding: 8px 2px; }
  .mod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
