/* ==========================================================================
   爽玩手游 · 前台样式（明亮简洁风）
   ========================================================================== */

:root {
  --bg: #f7faf8;
  --surface: #ffffff;
  --surface-2: #f2f7f4;
  --surface-3: #eaf2ed;
  --line: #e4ece7;
  --line-strong: #d3dfd8;
  --text: #101d16;
  --muted: #5c7167;
  --muted-2: #86988e;
  --accent: #10b981;
  --accent-2: #0a9a6d;
  --accent-soft: rgba(16, 185, 129, 0.1);
  --danger: #e5484d;
  --warn: #d97706;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(17, 55, 38, 0.07);
  --shadow-lg: 0 24px 60px rgba(17, 55, 38, 0.12);
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(900px 480px at 88% -8%, rgba(16, 185, 129, 0.08), transparent 62%),
    radial-gradient(700px 380px at 0% 0%, rgba(16, 185, 129, 0.05), transparent 58%);
  background-repeat: no-repeat;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
h1, h2, h3, h4, p { margin: 0; }

.wrap {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.ico { width: 18px; height: 18px; flex: none; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
  user-select: none;
}

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

.btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
}

.btn-primary {
  background: linear-gradient(135deg, #17c98e, #0a9a6d);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.24);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(16, 185, 129, 0.3);
}

.btn-ghost {
  background: #ffffff;
  border-color: var(--line-strong);
  color: var(--text);
  box-shadow: 0 2px 6px rgba(17, 55, 38, 0.04);
}

.btn-ghost:hover {
  border-color: rgba(16, 185, 129, 0.5);
  color: var(--accent-2);
  background: rgba(16, 185, 129, 0.05);
  transform: translateY(-1px);
}

/* 详情页彩色快捷按钮 */
.detail-links { gap: 8px; }

.detail-links .btn {
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(17, 55, 38, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.detail-links .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(17, 55, 38, 0.12);
  filter: saturate(1.15);
}

.btn.tone-green { color: #087a55; background: linear-gradient(135deg, #eafcf4, #d3f6e6); border-color: #b3ecd3; }
.btn.tone-orange { color: #a85a06; background: linear-gradient(135deg, #fff9e8, #ffefc7); border-color: #f4d79a; }
.btn.tone-blue { color: #1a4fd6; background: linear-gradient(135deg, #eff6ff, #dbeafe); border-color: #b8d7fb; }
.btn.tone-purple { color: #6a26d6; background: linear-gradient(135deg, #f7f3ff, #eae3ff); border-color: #d6c9fb; }
.btn.tone-pink { color: #b9133f; background: linear-gradient(135deg, #fff2f5, #ffe3e8); border-color: #fbc7d1; }

.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { height: 54px; padding: 0 30px; font-size: 16px; border-radius: 14px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 74px;
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; }

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 20px;
  color: #ffffff;
  background: linear-gradient(135deg, #17c98e, #0a9a6d);
  box-shadow: 0 8px 18px rgba(16, 185, 129, 0.3);
  flex: none;
}

.brand-mark.small { width: 34px; height: 34px; font-size: 17px; border-radius: 10px; }
.brand-mark.xl { width: 62px; height: 62px; font-size: 30px; border-radius: 18px; }

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  flex: none;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(17, 55, 38, 0.12);
}

.brand-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-logo.small { width: 34px; height: 34px; border-radius: 10px; }
.brand-logo.xl { width: 62px; height: 62px; border-radius: 18px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text b { font-size: 17px; letter-spacing: 0.3px; }
.brand-text small { font-size: 11px; color: var(--muted-2); letter-spacing: 0.3px; }

.nav { display: flex; gap: 4px; }

.nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--muted);
  transition: color 0.15s ease, background 0.15s ease;
}

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

.nav a.is-active { color: var(--accent-2); font-weight: 600; }

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #17c98e, rgba(23, 201, 142, 0));
}

.nav-charge {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-charge:hover { color: var(--text); background: var(--surface-2); }

.search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  transition: border-color 0.18s ease, background 0.18s ease;
  max-width: 280px;
  width: 100%;
}

.search:focus-within {
  border-color: rgba(16, 185, 129, 0.5);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.search .ico { color: var(--muted-2); }

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}

.search input::placeholder { color: var(--muted-2); }

.admin-entry { flex: none; }
.admin-entry span { font-weight: 500; }

/* --------------------------------------------------------------------------
   站内公告条
   -------------------------------------------------------------------------- */

.announce {
  background: rgba(16, 185, 129, 0.08);
  border-bottom: 1px solid var(--line);
}

.announce-inner { display: flex; align-items: center; gap: 10px; height: 38px; }

.announce-label {
  flex: none;
  font-size: 11px;
  color: #ffffff;
  background: linear-gradient(135deg, #17c98e, #0a9a6d);
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.announce-track { flex: 1; overflow: hidden; }

.announce-text {
  display: flex;
  width: max-content;
  animation: announce-scroll 26s linear infinite;
}

.announce-text span {
  font-size: 13px;
  color: #0a7a56;
  white-space: nowrap;
  padding-right: 80px;
}

.announce:hover .announce-text { animation-play-state: paused; }
.announce-text.is-static { animation: none; }

@keyframes announce-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 560px) {
  .announce-inner { height: 30px; gap: 8px; }
  .announce-label { font-size: 10px; padding: 2px 8px; }
  .announce-text span { font-size: 12px; padding-right: 60px; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 76px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.hero-glow {
  position: absolute;
  width: 720px;
  height: 720px;
  right: -160px;
  top: -320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.16), rgba(16, 185, 129, 0) 62%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 50, 34, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 50, 34, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 30% 40%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 30% 40%, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 64px;
  align-items: center;
}

.hero-copy { min-width: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid rgba(16, 185, 129, 0.22);
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.4px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.82); }
}

.hero h1 {
  margin: 24px 0 18px;
  font-size: clamp(38px, 5.6vw, 64px);
  line-height: 1.14;
  letter-spacing: -1px;
  font-weight: 800;
  color: #0c1a13;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #14c58c 5%, #0a9a6d 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 560px;
  color: var(--muted);
  font-size: 16px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin: 32px 0 44px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  width: fit-content;
  overflow: hidden;
}

.hero-stats > div {
  padding: 15px 34px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-right: 1px solid var(--line);
}

.hero-stats > div:last-child { border-right: 0; }

.hero-stats b { font-size: 24px; font-weight: 700; letter-spacing: 0.3px; }
.hero-stats b.stat-slogan { font-size: 16px; letter-spacing: 0.2px; }
.hero-stats span { font-size: 12px; color: var(--muted-2); }

/* --------------------------------------------------------------------------
   Hero 主打卡片
   -------------------------------------------------------------------------- */

.hero-spot {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 400px;
}

.hero-spot::before {
  content: "";
  position: absolute;
  inset: -50px;
  background: radial-gradient(circle at 55% 35%, rgba(16, 185, 129, 0.16), transparent 65%);
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
}

.spot-card {
  position: relative;
  display: block;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
  transition: transform 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
}

.hero-spot:hover .spot-card {
  transform: rotate(0deg) translateY(-5px);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 30px 70px rgba(17, 55, 38, 0.16);
}

.spot-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-3);
}

.spot-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 8, 6, 0.02) 45%, rgba(9, 22, 15, 0.55) 100%);
}

.spot-label {
  position: absolute;
  z-index: 2;
  left: 14px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(9, 22, 15, 0.45);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 5px 12px;
}

.spot-label .ico { width: 13px; height: 13px; color: #ffd48a; }

.spot-body { padding: 18px 20px 20px; }

.spot-body h3 { font-size: 21px; font-weight: 700; letter-spacing: 0.2px; }

.spot-body p {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 13px 0 16px;
  font-size: 12px;
  color: var(--muted-2);
}

.spot-meta span { display: inline-flex; align-items: center; gap: 4px; }
.spot-meta .ico { width: 13px; height: 13px; color: var(--accent); }

.spot-body .btn { width: 100%; }

/* --------------------------------------------------------------------------
   区块 / 卡片网格
   -------------------------------------------------------------------------- */

.section { padding: 58px 0 0; }
.section.tight { padding-top: 44px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-head h2 { font-size: 26px; letter-spacing: 0.3px; font-weight: 700; color: #0f1d16; }
.section-head p { color: var(--muted-2); font-size: 14px; margin-top: 4px; }

.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.15s ease, gap 0.15s ease;
}

.more:hover { color: var(--accent-2); gap: 10px; }
.more .ico { width: 15px; height: 15px; }

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

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(17, 55, 38, 0.04);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 22px 40px rgba(17, 55, 38, 0.12);
}

.card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-3);
  overflow: hidden;
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 8, 6, 0.02) 30%, rgba(4, 12, 8, 0.72) 100%);
}

.card-cover.placeholder {
  display: grid;
  place-items: center;
  background-image: linear-gradient(135deg, #e8f3ed, #dcece3) !important;
}

.ph-name { position: relative; z-index: 1; color: var(--muted); font-size: 20px; letter-spacing: 4px; }

.card-cat, .card-hot, .card-dl {
  position: absolute;
  z-index: 2;
  font-size: 12px;
  border-radius: 999px;
  padding: 4px 10px;
  backdrop-filter: blur(6px);
}

.card-cat {
  left: 12px;
  top: 12px;
  color: #ffffff;
  background: rgba(9, 22, 15, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.card-hot {
  right: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ffe2b0;
  background: rgba(58, 32, 6, 0.55);
  border: 1px solid rgba(255, 190, 92, 0.45);
}

.card-hot .ico { width: 13px; height: 13px; }

.card-dl {
  right: 12px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ffffff;
  background: rgba(9, 22, 15, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.card-dl .ico { width: 13px; height: 13px; color: #6ef0bb; }

.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.card-head { display: flex; align-items: center; gap: 10px; }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  border: 2px solid #ffffff;
  box-shadow: 0 6px 14px rgba(17, 55, 38, 0.18);
  flex: none;
}

.card-icon.placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #d9f0e5, #bfe6d5);
  color: #0a7a56;
  font-size: 18px;
  font-weight: 700;
}

.card-head h3 { font-size: 17px; font-weight: 600; letter-spacing: 0.2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.card-summary {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--surface-2);
}

.card-tags { display: flex; gap: 6px; flex-wrap: wrap; overflow: hidden; }

.card-tags span {
  font-size: 11px;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 6px;
  padding: 2px 7px;
}

.card-size { font-size: 12px; color: var(--muted-2); white-space: nowrap; }

/* 纯文字游戏卡片（列表不展示封面图，保留小图标） */
.game-card.text-only { padding: 11px 13px; border-radius: 14px; }
.game-card.text-only .card-body { padding: 0; gap: 0; }
.game-card.text-only .card-head { align-items: flex-start; gap: 8px; margin-bottom: 5px; }
.game-card.text-only .card-icon { width: 32px; height: 32px; border-radius: 8px; border-width: 1px; box-shadow: 0 2px 6px rgba(17, 55, 38, 0.07); }
.game-card.text-only .card-icon.placeholder { font-size: 14px; }
.game-card.text-only .card-title { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.game-card.text-only h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.32;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.game-card.text-only .card-summary {
  margin-top: 3px;
  min-height: 0;
  font-size: 12.5px;
  line-height: 1.5;
  -webkit-line-clamp: 1;
}
.game-card.text-only .card-foot { margin-top: 8px; padding-top: 8px; gap: 6px; }
.game-card.text-only .card-tags span { font-size: 10px; padding: 1px 6px; }
.game-card.text-only .card-size { font-size: 11px; }

.card-inline-meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }

.card-cat-inline {
  font-size: 10px;
  color: #0a7a56;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 999px;
  padding: 1px 7px;
  flex: none;
}

.card-hot-inline {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  color: #b54708;
  background: #fffaeb;
  border: 1px solid #fedf89;
  border-radius: 999px;
  padding: 1px 6px;
  flex: none;
}

.card-hot-inline .ico { width: 10px; height: 10px; }

/* --------------------------------------------------------------------------
   分类 chips
   -------------------------------------------------------------------------- */

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

.chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
  color: var(--muted);
  transition: all 0.18s ease;
}

.chip:hover { color: var(--accent-2); border-color: rgba(16, 185, 129, 0.45); background: rgba(16, 185, 129, 0.05); }

.chip.is-active {
  color: #ffffff;
  font-weight: 600;
  background: linear-gradient(135deg, #17c98e, #0a9a6d);
  border-color: transparent;
  box-shadow: 0 6px 14px rgba(16, 185, 129, 0.22);
}

.filter-chips { margin-bottom: 26px; }

/* --------------------------------------------------------------------------
   内页通用
   -------------------------------------------------------------------------- */

.page { padding: 52px 0 80px; }

.page-head { margin-bottom: 32px; }
.page-head h1 { font-size: 34px; font-weight: 700; letter-spacing: 0.3px; color: #0f1d16; }
.page-head p { color: var(--muted-2); font-size: 14px; margin-top: 6px; }

.empty { color: var(--muted-2); font-size: 14px; padding: 30px 0; }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 68px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.empty-state h1 { font-size: 54px; color: var(--accent); }
.empty-state h3 { font-size: 20px; margin: 8px 0; }
.empty-state p { color: var(--muted); margin-bottom: 20px; }

/* --------------------------------------------------------------------------
   详情页
   -------------------------------------------------------------------------- */

.detail-hero {
  position: relative;
  padding: 26px 0 54px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(720px 380px at 78% -20%, rgba(16, 185, 129, 0.14), transparent 70%),
    radial-gradient(500px 320px at 0% 110%, rgba(16, 185, 129, 0.07), transparent 65%),
    linear-gradient(160deg, #f1f9f4 0%, #ffffff 62%);
}

.detail-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.55));
  z-index: 1;
}

.detail-inner { position: relative; z-index: 2; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
  transition: color 0.15s ease;
}

.back:hover { color: var(--accent-2); }
.back .ico { width: 15px; height: 15px; }

.detail-top { display: flex; gap: 34px; align-items: flex-end; }

.detail-cover {
  width: 340px;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  box-shadow: 0 20px 46px rgba(17, 55, 38, 0.18);
  flex: none;
  background-color: var(--surface-3);
}

.detail-cover.placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e3f1ea, #d5e9df);
  color: var(--muted);
  font-size: 22px;
  letter-spacing: 6px;
}

.gallery {
  position: relative;
  width: 340px;
  flex: none;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 46px rgba(17, 55, 38, 0.18);
  background: var(--surface-3);
}

.gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gallery-track::-webkit-scrollbar { display: none; }

.gallery-track img {
  width: 100%;
  flex: none;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  scroll-snap-align: start;
  display: block;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: rgba(10, 20, 14, 0.45);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}

.gallery-nav:hover { background: rgba(10, 20, 14, 0.68); }
.gallery-nav.prev { left: 8px; }
.gallery-nav.next { right: 8px; }

.gallery-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}

.gallery-dots span {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.2s ease, background 0.2s ease;
}

.gallery-dots span.on { width: 16px; background: #ffffff; }

/* 游戏介绍下方的截图卡片 */
.shots-card { padding: 18px 20px; }
.shots-card h2 { font-size: 18px; margin-bottom: 12px; color: #0f1d16; }

.shots-card .gallery {
  width: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  box-shadow: none;
  border-radius: 12px;
}

.shots-card .gallery-track img { width: 100%; aspect-ratio: 16 / 9; }

.detail-info { min-width: 0; padding-bottom: 4px; }

.detail-badges { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }

.badge {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  padding: 4px 12px;
}

.badge.platform {
  color: #0a7a56;
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.09);
}

.badge.hot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #a8620a;
  border-color: rgba(217, 119, 6, 0.28);
  background: rgba(255, 186, 92, 0.16);
}

.badge.hot .ico { width: 13px; height: 13px; }

.detail-info h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: 0.2px; line-height: 1.2; color: #0c1a13; }

.detail-summary {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
  margin-top: 10px;
  max-width: 680px;
  background: linear-gradient(90deg, #0a7a56, #10b981 55%, #0d9c6e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 6px rgba(16, 185, 129, 0.22));
}

.detail-meta {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin: 18px 0 14px;
  font-size: 13px;
  color: var(--muted-2);
}

.detail-meta b { color: var(--text); font-weight: 600; margin-left: 4px; }

.detail-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }

.tag {
  font-size: 12px;
  color: #0a7a56;
  background: rgba(16, 185, 129, 0.09);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 7px;
  padding: 3px 10px;
}

.detail-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hint { font-size: 12px; color: var(--muted-2); }

.detail-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.detail-links .btn {
  width: 100%;
  height: 40px;
  font-weight: 500;
  justify-content: center;
  padding: 0 8px;
}
.detail-links .ico:last-child { width: 13px; height: 13px; opacity: 0.55; }

.detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-areas: "intro side" "shots side";
  gap: 24px;
  padding: 34px 0 80px;
  align-items: start;
}

.detail-body > .prose { grid-area: intro; }
.detail-body > .detail-side { grid-area: side; }
.detail-body > .shots-card { grid-area: shots; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px;
  box-shadow: 0 6px 20px rgba(17, 55, 38, 0.04);
}

.prose h2 { font-size: 19px; margin-bottom: 14px; color: #0f1d16; }

.h2-tip {
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-2);
  margin-left: 2px;
}

.prose p { color: #33463c; font-size: 15px; line-height: 1.9; margin-bottom: 12px; }

.prose-meta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted-2);
}

.detail-side { display: flex; flex-direction: column; gap: 18px; }

.side-card h3 { font-size: 16px; margin-bottom: 12px; }

.side-list { display: flex; flex-direction: column; gap: 6px; }

.side-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 10px;
  transition: background 0.15s ease;
}

.side-item:hover { background: var(--surface-2); }

.side-thumb {
  width: 56px;
  height: 42px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  flex: none;
  border: 1px solid var(--line);
  background-color: var(--surface-3);
}

.side-thumb.placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #dff1e8, #cbe7da);
  color: #0a7a56;
  font-weight: 700;
}

.side-text { display: flex; flex-direction: column; min-width: 0; }
.side-text b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-text small { font-size: 12px; color: var(--muted-2); }

.cta-card p { color: var(--muted); font-size: 13px; margin: 6px 0 14px; }

/* --------------------------------------------------------------------------
   联系客服
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.contact-card { padding: 24px 26px; }
.contact-card h2 { font-size: 17px; margin-bottom: 16px; }

.contact-qr {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  place-items: center;
}

.contact-qr img { width: 100%; max-width: 240px; height: auto; border-radius: 6px; }

.contact-qr.empty {
  aspect-ratio: 1;
  border-style: dashed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted-2);
  font-size: 13px;
  background: var(--surface-2);
}

.contact-qr.empty .ico { width: 30px; height: 30px; }

.contact-note { text-align: center; font-size: 12px; color: var(--muted-2); margin-top: 12px; }

.contact-lines { display: flex; flex-direction: column; gap: 10px; }

.contact-lines p {
  font-size: 15px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  word-break: break-word;
}

.contact-tips {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-tips p { font-size: 12px; color: var(--muted-2); }

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

.site-footer {
  margin-top: 90px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  padding: 42px 0 34px;
}

.footer-inner { display: flex; flex-direction: column; gap: 14px; }

.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand b { font-size: 15px; }
.footer-brand p { font-size: 12px; color: var(--muted-2); }

.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--muted); }
.footer-links a:hover { color: var(--accent-2); }

.footer-install {
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  color: var(--accent-2);
  cursor: pointer;
}

.footer-install:hover { text-decoration: underline; }

.footer-copy, .footer-icp { font-size: 12px; color: var(--muted-2); }

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero-spot { display: none; }
  .detail-body { grid-template-columns: 1fr; grid-template-areas: "intro" "shots" "side"; }
  .detail-cover { width: 280px; }
  .gallery { width: 280px; }
  .search { max-width: 220px; }
}

@media (max-width: 860px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 0; gap: 10px; }
  .brand { order: 1; }
  .admin-entry { order: 2; margin-left: auto; }
  .admin-entry span { display: none; }
  .search { order: 3; flex: 1 0 100%; max-width: none; margin-left: 0; }
  .nav { order: 4; width: 100%; overflow-x: auto; }
  .hero { padding: 56px 0 50px; }
  .hero-stats > div { padding: 14px 20px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .detail-top { flex-direction: column; align-items: flex-start; gap: 22px; }
  .detail-cover { width: 100%; }
  .gallery { width: 100%; }
  .detail-body { padding-bottom: 60px; }
  .section-head h2 { font-size: 22px; }
}

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 20px; }
}

@media (max-width: 560px) {
  /* 手机端整体压缩，首屏尽量露出游戏卡片 */
  .header-inner { padding: 6px 0; gap: 6px; }
  .brand { gap: 7px; }
  .brand-mark, .brand-logo { width: 28px; height: 28px; border-radius: 8px; }
  .brand-text b { font-size: 14px; }
  .brand-text small { font-size: 9px; }
  .search { height: 32px; padding: 0 10px; }
  .search input { font-size: 13px; }
  .nav a { padding: 4px 8px; font-size: 13px; }
  .eyebrow { font-size: 10px; padding: 4px 9px; }
  .hero { padding: 12px 0 16px; }
  .hero h1 { font-size: 24px; margin: 10px 0 6px; letter-spacing: -0.5px; }
  .lead { font-size: 12px; line-height: 1.45; }
  .hero-actions { margin: 10px 0 12px; gap: 8px; }
  .hero-actions .btn { height: 36px; font-size: 13px; padding: 0 16px; }
  .hero-stats { width: 100%; }
  .hero-stats > div { flex: 1; padding: 6px 9px; }
  .hero-stats b { font-size: 16px; }
  .hero-stats b.stat-slogan { font-size: 10.5px; white-space: nowrap; }
  .hero-stats span { font-size: 9.5px; }
  .section { padding-top: 18px; }
  .section-head { margin-bottom: 10px; }
  .section-head h2 { font-size: 17px; }
  .section-head p { font-size: 10.5px; }
  .grid { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 26px; }
  .card-cover { aspect-ratio: 16 / 9; }

  /* 手机端游戏详情页压缩 */
  .detail-hero { padding: 4px 0 12px; }
  .back { font-size: 11.5px; margin-bottom: 6px; }
  .detail-top { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
  .detail-info { display: contents; }
  .detail-badges { order: 1; margin-bottom: 0; gap: 5px; }
  .detail-info h1 { order: 2; font-size: 17px; line-height: 1.3; }
  .detail-cover {
    order: 3;
    width: 56%;
    max-width: 200px;
    margin: 2px auto 0;
    aspect-ratio: 16 / 10;
    border-radius: 10px;
  }
  .gallery { order: 3; width: 62%; max-width: 210px; margin: 2px auto 0; border-radius: 10px; }
  .detail-summary {
    order: 4;
    font-size: 15.5px;
    line-height: 1.5;
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .detail-meta { order: 5; gap: 10px; margin: 0; font-size: 10.5px; }
  .detail-tags { order: 6; margin-bottom: 0; gap: 5px; }
  .badge { font-size: 10px; padding: 2px 8px; }
  .tag { font-size: 10px; padding: 1px 7px; }
  .detail-actions { order: 7; gap: 6px; align-items: stretch; }
  .detail-actions .btn-lg { height: 34px; font-size: 12.5px; padding: 0 16px; flex: 1; }
  .hint { font-size: 9.5px; }
  .detail-links { order: 8; margin-top: 0; gap: 5px; width: 100%; }
  .detail-links .btn { height: 28px; font-size: 11px; padding: 0 9px; gap: 4px; }
  .detail-body { padding: 12px 0 32px; gap: 10px; }
  .card { padding: 14px 16px; }
  .prose h2 { font-size: 15px; margin-bottom: 8px; }
  .prose p { font-size: 12.5px; line-height: 1.7; margin-bottom: 8px; }
  .prose-meta { margin-top: 12px; padding-top: 10px; gap: 12px; }
  .detail-side { gap: 10px; }
  .side-card h3 { font-size: 14px; margin-bottom: 6px; }
  .footer-links { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* --------------------------------------------------------------------------
   充值图弹窗
   -------------------------------------------------------------------------- */

.recharge-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.recharge-modal[hidden] { display: none; }

.recharge-veil {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 14, 0.62);
  backdrop-filter: blur(4px);
}

.recharge-box {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 18px;
  padding: 14px;
  max-width: min(92vw, 560px);
  max-height: 88vh;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.recharge-box img {
  max-width: 100%;
  max-height: calc(88vh - 28px);
  width: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.recharge-close {
  position: absolute;
  right: -8px;
  top: -8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: #ffffff;
  color: #33463c;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.intro-box { max-width: min(86vw, 480px); padding: 10px 12px; }

.intro-text {
  max-height: 62vh;
  overflow-y: auto;
  padding: 2px 4px 2px;
}

.intro-text p {
  font-size: 13px;
  line-height: 1.7;
  color: #33463c;
  margin: 0 0 8px;
  white-space: pre-wrap;
  word-break: break-word;
}

.intro-text p:last-child { margin-bottom: 0; }

.modal-actions { display: flex; gap: 10px; margin-top: 14px; }

@media (max-width: 560px) {
  .nav-charge { font-size: 13px; padding: 4px 8px; }
  .recharge-box { padding: 10px; }
}

/* --------------------------------------------------------------------------
   玩家群聊
   -------------------------------------------------------------------------- */

.chat-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.chat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.chat-live { margin-left: auto; font-size: 11px; color: var(--muted-2); }

.chat-list {
  height: min(58vh, 520px);
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface-2);
}

.chat-msg {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 14px;
  max-width: 88%;
  align-self: flex-start;
  box-shadow: 0 2px 6px rgba(17, 55, 38, 0.04);
}

.chat-msg-head { display: flex; gap: 10px; align-items: baseline; margin-bottom: 1px; }
.chat-msg-head b { font-size: 12px; color: var(--accent-2); }
.chat-msg-head span { font-size: 11px; color: var(--muted-2); }
.chat-msg p { font-size: 14px; color: var(--text); line-height: 1.6; white-space: pre-wrap; word-break: break-word; }

.chat-empty { color: var(--muted-2); font-size: 13px; text-align: center; margin: auto; }

.chat-form {
  display: flex;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.chat-form input {
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 14px;
  background: #ffffff;
  color: var(--text);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.chat-form input:focus {
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.chat-name { width: 110px; flex: none; }
.chat-input { flex: 1; min-width: 0; }
.chat-form .btn { height: 42px; flex: none; }

.chat-note { font-size: 11px; color: var(--muted-2); padding: 0 20px 14px; background: #ffffff; }

@media (max-width: 560px) {
  .chat-list { height: 52vh; padding: 12px; }
  .chat-form { flex-wrap: wrap; padding: 10px 12px; gap: 8px; }
  .chat-name { width: 100%; }
  .chat-input { flex: 1; }
  .chat-form .btn { padding: 0 16px; }
  .chat-note { padding: 0 12px 12px; }
  .chat-msg { max-width: 94%; }
}

/* ------------------------------------------------------------------ */
/* 浮动客服 / 求游戏 / 微信引导                                        */
/* ------------------------------------------------------------------ */

.fab { position: fixed; right: 18px; bottom: 22px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab-menu { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.fab-menu[hidden] { display: none; }
.fab-item { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text); font-size: 13px; font-weight: 600; box-shadow: 0 10px 26px rgba(17,55,38,.14); cursor: pointer; text-decoration: none; }
.fab-item .ico { width: 16px; height: 16px; color: var(--accent-2); }
.fab-main { width: 52px; height: 52px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #10b981, #0d9c6e); box-shadow: 0 14px 30px rgba(16,185,129,.38); cursor: pointer; }
.fab-main .ico { width: 24px; height: 24px; }
.fab-ico-close { display: none; }
.fab.is-open .fab-ico-open { display: none; }
.fab.is-open .fab-ico-close { display: block; }

.wx-guide { position: fixed; inset: 0; z-index: 90; background: rgba(6,16,11,.74); }
.wx-guide-top { position: absolute; top: 8px; right: 18px; color: #fff; text-align: right; }
.wx-guide-arrow { display: block; font-size: 52px; line-height: 1; }
.wx-guide-hint { font-size: 13px; opacity: .92; }
.wx-guide-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(320px, 84vw); background: #fff; border-radius: 18px; padding: 22px 20px; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.wx-guide-card b { display: block; font-size: 17px; margin-bottom: 8px; }
.wx-guide-card p { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }

.request-box { width: min(400px, 90vw); max-width: 400px; padding: 24px 22px 20px; text-align: left; }
.request-box h3 { font-size: 18px; margin: 0 0 6px; }
.request-tip { font-size: 12.5px; color: var(--muted); margin: 0 0 14px; line-height: 1.6; }
.request-form { display: flex; flex-direction: column; gap: 10px; }
.request-form[hidden] { display: none; }
.request-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); }
.request-form input { height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font-size: 14px; color: var(--text); background: #fff; }
.request-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(16,185,129,.12); }
.request-form .btn { height: 40px; margin-top: 4px; }
.request-form .form-error { margin: 0; }
.request-done { font-size: 14px; color: var(--accent-2); padding: 18px 0; text-align: center; margin: 0; }

@media (max-width: 560px) {
  .fab { right: 12px; bottom: 16px; }
  .fab-main { width: 48px; height: 48px; }
  .fab-item { padding: 9px 13px; font-size: 12.5px; }
}
