/* ===== 极玩 UltimatePlay 主样式 ===== */
:root {
  --bg: #0a0c12;
  --bg-2: #11141d;
  --bg-3: #181c28;
  --bg-4: #1f2435;
  --line: #232a3d;
  --line-strong: #2e3654;
  --text: #ecf0f7;
  --text-dim: #b4bccc;
  --muted: #7a839a;
  --accent: #7df0c2;
  --accent-hi: #4ee0a8;
  --accent-glow: rgba(125,240,194,0.35);
  --primary: #8a9bff;
  --warn: #ffb454;
  --error: #ff6b81;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-md: 0 8px 28px rgba(0,0,0,.4);
  --shadow-lg: 0 14px 44px rgba(0,0,0,.55);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  line-height: 1.65;
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(800px circle at 10% -10%, rgba(125,240,194,0.10), transparent 50%),
    radial-gradient(900px circle at 100% 20%, rgba(138,155,255,0.08), transparent 55%);
  pointer-events: none; z-index: 0;
}
body > * { position: relative; z-index: 1; }

a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-hi); }
h1, h2, h3 { color: var(--text); }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }
main.container { flex: 1; padding-top: 28px; padding-bottom: 80px; }

.muted { color: var(--muted); }
.text-center { text-align: center; }

/* ===== 顶部导航 ===== */
.site-header {
  background: rgba(10,12,18,0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 20px; color: var(--text);
  letter-spacing: .3px;
}
.logo:hover { color: var(--text); }
.logo-dot {
  width: 12px; height: 12px; background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--accent-glow), 0 0 4px var(--accent);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .65; transform: scale(.9); }
}
.logo-en { color: var(--muted); font-weight: 500; font-size: 12px; margin-left: 2px; letter-spacing: 1px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links > a:not(.btn) {
  color: var(--text-dim); font-weight: 500; padding: 8px 14px;
  border-radius: 8px; font-size: 14.5px;
}
.nav-links > a:not(.btn):hover {
  color: var(--text); background: var(--bg-3);
}
.nav-user {
  color: var(--muted); font-size: 13px; padding: 0 8px;
  border-left: 1px solid var(--line); margin-left: 6px;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
  text-align: center;
  user-select: none;
  line-height: 1.2;
}
.btn-primary {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-hi) 100%);
  color: #08160f;
  box-shadow: 0 4px 14px rgba(125,240,194,0.22);
}
.btn-primary:hover {
  color: #08160f;
  box-shadow: 0 6px 22px rgba(125,240,194,0.42);
  transform: translateY(-1px);
}
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--bg-2); }
.btn-block { width: 100%; }
.btn-lg { padding: 12px 26px; font-size: 15px; }

/* ===== 首页 Hero ===== */
.hero {
  padding: 80px 0 40px;
  text-align: center;
  position: relative;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--bg-3); border: 1px solid var(--line);
  color: var(--accent); font-size: 12px; font-weight: 600;
  letter-spacing: .5px; text-transform: uppercase;
  margin-bottom: 22px;
}
.hero .eyebrow::before {
  content: ''; width: 6px; height: 6px; background: var(--accent);
  border-radius: 50%; box-shadow: 0 0 8px var(--accent-glow);
}
.hero h1 {
  font-size: 56px; line-height: 1.1; margin: 0 0 18px;
  font-weight: 800; letter-spacing: -1px;
  background: linear-gradient(120deg, #fff 0%, var(--accent) 55%, var(--primary) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead { font-size: 18px; color: var(--text-dim); max-width: 600px; margin: 0 auto 30px; }
.hero-actions { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; max-width: 720px; margin: 50px auto 0;
}
.stat {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-3) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 14px;
  text-align: center;
  transition: transform .2s, border-color .2s;
}
.stat:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.stat .num {
  font-size: 36px; font-weight: 800; color: var(--accent);
  line-height: 1; font-variant-numeric: tabular-nums;
}
.stat .label { color: var(--muted); font-size: 13px; margin-top: 8px; letter-spacing: .5px; }

/* ===== 板块 ===== */
.section { margin: 56px 0 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 22px; gap: 16px;
}
.section-head h2 {
  margin: 0; font-size: 24px; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
}
.section-head h2::before {
  content: ''; width: 4px; height: 22px;
  background: var(--accent); border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-glow);
}
.section-head .more {
  color: var(--muted); font-size: 14px; font-weight: 500;
  transition: color .15s;
}
.section-head .more:hover { color: var(--accent); }

/* ===== 游戏卡片 ===== */
.game-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.game-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .2s ease;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  position: relative;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
  color: inherit;
}
.game-card .cover {
  display: block; background: var(--bg-3);
  aspect-ratio: 16 / 10;
  position: relative; overflow: hidden;
}
.game-card .cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.game-card:hover .cover img { transform: scale(1.06); }
.game-card .placeholder {
  display: flex; align-items: center; justify-content: center;
  height: 100%; width: 100%;
  position: relative; overflow: hidden;
}
.game-card .placeholder::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.06), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.05), transparent 50%);
}
.game-card .placeholder-text {
  font-size: 26px; font-weight: 800; color: rgba(255,255,255,0.92);
  letter-spacing: -0.5px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6);
  position: relative;
}
.vote-badge {
  position: absolute; top: 10px; right: 10px;
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(8,10,16,0.78);
  backdrop-filter: blur(8px);
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--accent);
  border: 1px solid rgba(125,240,194,0.25);
}
.vote-badge svg { width: 12px; height: 12px; }
.game-card .body {
  padding: 14px 16px 16px;
  display: flex; flex-direction: column; gap: 6px;
  flex: 1;
}
.game-card .title {
  font-size: 16px; font-weight: 700; margin: 0;
  color: var(--text);
  line-height: 1.35;
}
.game-card:hover .title { color: var(--accent); }
.game-card .tagline {
  color: var(--text-dim); font-size: 13px; margin: 0;
  line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.game-card .meta {
  color: var(--muted); font-size: 12px;
  display: flex; gap: 8px; align-items: center;
  margin-top: 4px; flex-wrap: wrap;
}
.game-card .author { font-weight: 500; }
.ai-chip {
  background: rgba(138,155,255,0.12);
  color: var(--primary);
  padding: 2px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 600;
  border: 1px solid rgba(138,155,255,0.18);
}

/* ===== 表单 ===== */
.form-box {
  max-width: 460px; margin: 48px auto;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
}
.form-box h1 {
  margin: 0 0 28px;
  font-size: 26px;
  text-align: center;
  font-weight: 700;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; margin-bottom: 7px;
  color: var(--text-dim); font-size: 13px; font-weight: 500;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-size: 14.5px;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(125,240,194,0.15);
}
.form-group input[type="file"] { padding: 9px 10px; cursor: pointer; }
.form-group textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.form-hint { color: var(--muted); font-size: 12px; margin-top: 6px; }
.form-foot {
  text-align: center; margin-top: 20px;
  color: var(--muted); font-size: 13.5px;
  padding-top: 18px; border-top: 1px solid var(--line);
}

/* ===== Flash 提示 ===== */
.flash {
  padding: 12px 16px; border-radius: 10px;
  margin: 18px 0;
  border: 1px solid var(--line);
  font-size: 14px;
}
.flash-success { background: rgba(125,240,194,0.08); border-color: rgba(125,240,194,0.4); color: var(--accent); }
.flash-error { background: rgba(255,107,129,0.08); border-color: rgba(255,107,129,0.4); color: var(--error); }

/* ===== 游戏详情/播放页 ===== */
.game-detail-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px; margin-bottom: 24px; flex-wrap: wrap;
}
.game-detail-head .left h1 {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
}
.game-detail-head .meta {
  color: var(--muted); font-size: 13.5px;
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}
.game-detail-head .meta .dot { color: var(--line-strong); }
.game-detail-head .meta strong { color: var(--text-dim); font-weight: 600; }
.vote-btn {
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 10px 18px; border-radius: 10px;
  font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .15s;
  font-family: inherit; font-size: 14px;
}
.vote-btn:hover { border-color: var(--accent); color: var(--accent); }
.vote-btn.voted {
  background: linear-gradient(180deg, var(--accent), var(--accent-hi));
  color: #08160f; border-color: var(--accent);
}
.vote-btn svg { width: 16px; height: 16px; }

.player-wrap {
  position: relative;
  background: #000;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.player-frame {
  width: 100%; aspect-ratio: 16/10;
  background: #000;
  overflow: hidden;
}
.player-frame iframe {
  width: 100%; height: 100%; border: 0; display: block;
}
.player-actions {
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 10px 12px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.player-actions button {
  background: transparent; border: 1px solid var(--line);
  color: var(--text-dim); padding: 6px 12px; border-radius: 8px;
  cursor: pointer; font-size: 13px; font-family: inherit;
  transition: all .15s;
  display: inline-flex; align-items: center; gap: 5px;
}
.player-actions button:hover {
  border-color: var(--accent); color: var(--accent);
}

.game-desc {
  margin-top: 28px;
  padding: 22px 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.game-desc h3 {
  margin: 0 0 12px; font-size: 16px; color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
}
.game-desc .desc-body {
  white-space: pre-wrap; line-height: 1.75; color: var(--text-dim);
  font-size: 14.5px;
}
.tag {
  display: inline-block;
  background: var(--bg-4);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-dim);
  margin-right: 6px; margin-top: 8px;
}

/* ===== 浏览页过滤器 ===== */
.filter-bar {
  display: flex; gap: 8px; align-items: center;
}
.filter-bar .btn {
  padding: 7px 14px; font-size: 13.5px;
}
.filter-bar .btn.active {
  border-color: var(--accent); color: var(--accent); background: rgba(125,240,194,0.08);
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 80px;
}
.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--text-dim); }

/* ===== 空状态 ===== */
.empty-state {
  text-align: center; padding: 80px 20px;
  color: var(--muted);
  background: var(--bg-2);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.empty-state p { margin: 0 0 16px; font-size: 15px; }

/* ===== 分页 ===== */
.pagination {
  display: flex; justify-content: center; gap: 6px;
  margin-top: 40px;
}
.pagination .btn { min-width: 38px; padding: 7px 12px; }

/* ===== 响应式 ===== */
@media (max-width: 720px) {
  .hero { padding: 50px 0 24px; }
  .hero h1 { font-size: 34px; }
  .hero p.lead { font-size: 15.5px; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 32px; }
  .stat { padding: 16px 8px; }
  .stat .num { font-size: 24px; }
  .nav { padding: 12px 18px; }
  .nav-links { gap: 2px; }
  .nav-links > a:not(.btn) { padding: 6px 10px; font-size: 13.5px; }
  .nav-user { display: none; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .game-card .body { padding: 11px 12px 13px; }
  .game-card .title { font-size: 14.5px; }
  .game-card .tagline { font-size: 12px; }
  .section { margin-top: 40px; }
  .section-head h2 { font-size: 20px; }
  .game-detail-head .left h1 { font-size: 22px; }
  .form-box { padding: 28px 22px; margin: 24px 16px; }
  .logo-en { display: none; }
}
