/* =========================================================
   游戏发布网站模板 - 全局样式
   简约 / 大气 / 清新
   修改主题色只需改动下方 :root 变量即可
   ========================================================= */

:root {
  /* ---------- 主题色（可自定义） ---------- */
  --color-primary: #3b82f6;      /* 主色，按钮与强调色 */
  --color-primary-dark: #2563eb; /* 主色加深，用于 hover */
  --color-accent: #34d399;       /* 辅助色，渐变点缀 */
  --color-bg: #f8fafc;           /* 页面背景，浅色 */
  --color-surface: #ffffff;      /* 卡片背景 */
  --color-text: #1f2937;         /* 正文颜色 */
  --color-text-muted: #6b7280;   /* 次要文字 */
  --color-border: #e5e7eb;       /* 边框 */

  /* ---------- 圆角与阴影 ---------- */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 18px 45px rgba(15, 23, 42, 0.14);
}

/* ---------- 基础重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.center { text-align: center; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}
.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* ---------- 导航栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
}
.logo-mark { color: var(--color-primary); font-size: 22px; }
.logo-text { font-size: 18px; }

.nav-menu {
  display: flex;
  gap: 6px;
}
.nav-menu a {
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-menu a:hover { color: var(--color-text); }
.nav-menu a.active {
  color: var(--color-primary);
  background: rgba(59, 130, 246, 0.1);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-text);
}

/* ---------- 主视觉 hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 90px;
  background: linear-gradient(160deg, #eef2ff 0%, #f0fdf4 100%);
  text-align: center;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  z-index: 0;
}
.hero-glow-1 {
  width: 340px; height: 340px;
  background: var(--color-primary);
  top: -80px; left: -60px;
}
.hero-glow-2 {
  width: 300px; height: 300px;
  background: var(--color-accent);
  bottom: -100px; right: -40px;
}

.hero-inner { position: relative; z-index: 1; }

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(36px, 7vw, 58px);
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--color-text), var(--color-primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-meta {
  display: flex;
  gap: 26px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--color-text-muted);
  font-size: 15px;
}

/* ---------- 通用 section ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--color-surface); }

.section-title {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  margin-bottom: 12px;
  text-align: center;
}
.section-desc {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 44px;
}

/* ---------- 截图画廊 ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  background: var(--color-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* ---------- 特性卡片 ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.feature-icon { font-size: 40px; margin-bottom: 14px; }
.feature-card h3 { font-size: 19px; margin-bottom: 10px; }
.feature-card p { color: var(--color-text-muted); font-size: 15px; }

/* ---------- 页面标题（下载/介绍） ---------- */
.page-title {
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}
.page-desc {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 48px;
}
.download-section { max-width: 820px; }

/* ---------- 下载卡片 ---------- */
.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.download-name { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.download-version {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.15);
  color: #059669;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
}
.download-list li {
  color: var(--color-text-muted);
  padding: 4px 0;
  font-size: 15px;
}
.download-action { text-align: center; }
.btn-download { font-size: 18px; padding: 16px 40px; }
.download-hint {
  margin-top: 12px;
  color: var(--color-text-muted);
  font-size: 13px;
}

/* ---------- 安装步骤 ---------- */
.install-steps { text-align: left; }
.install-steps .section-title { text-align: left; }
.steps {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.steps li {
  counter-increment: step;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 16px 18px 16px 56px;
  position: relative;
  font-size: 15px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.steps code {
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: Consolas, monospace;
}

/* ---------- 介绍页面 ---------- */
.about-block {
  max-width: 780px;
  margin: 0 auto 48px;
}
.about-block h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-border);
  position: relative;
}
.about-block h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}
.about-block p { color: var(--color-text-muted); font-size: 16px; }
.about-list li {
  padding: 8px 0;
  color: var(--color-text-muted);
  font-size: 16px;
}
.about-list li::before { content: "✓ "; color: var(--color-accent); font-weight: 700; }

.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.spec-col {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
}
.spec-col h3 { font-size: 18px; margin-bottom: 14px; }
.spec-col li {
  padding: 6px 0;
  color: var(--color-text-muted);
  font-size: 15px;
  border-bottom: 1px dashed var(--color-border);
}
.spec-col li:last-child { border-bottom: none; }
.about-cta { margin-top: 24px; }

/* ---------- 关于页 ---------- */
.info-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.info-card p { color: var(--color-text-muted); font-size: 16px; }
.profile-card {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}
.profile-avatar {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(52, 211, 153, 0.14));
}
.profile-info p { color: var(--color-text-muted); font-size: 16px; }
/* 联系方式 */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.contact-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
}
.contact-item h3 { font-size: 17px; margin-bottom: 12px; }
.contact-item p { color: var(--color-text-muted); font-size: 15px; padding: 3px 0; }
.qrcode {
  width: 160px;
  height: 160px;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
@media (max-width: 640px) {
  .profile-card { flex-direction: column; align-items: center; text-align: center; }
}

/* ---------- 下载页 · 即将发布 ---------- */
.download-coming {
  position: relative;
  overflow: hidden;
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}
.download-coming::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(52, 211, 153, 0.22));
  filter: blur(90px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.coming-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 52px 36px 42px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.1);
}
.coming-icon {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 22px;
  animation: float-soft 3s ease-in-out infinite;
}
.coming-text {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: float-text 3s ease-in-out infinite;
}
.coming-sub {
  color: var(--color-text-muted);
  font-size: 16px;
  margin-bottom: 30px;
}
.btn-sm {
  padding: 10px 26px;
  font-size: 14px;
}
@keyframes float-text {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: auto;
  background: var(--color-text);
  color: #cbd5e1;
  padding: 40px 0;
  text-align: center;
  font-size: 14px;
}
.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 14px;
}
.footer-links a { color: #cbd5e1; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }

/* ---------- 主题切换按钮 ---------- */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.theme-toggle {
  background: none;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--color-primary); }

/* ---------- 截图灯箱 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: 88vw;
  max-height: 86vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox-close { top: 20px; right: 24px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- 404 页面 ---------- */
.nf-code {
  font-size: clamp(90px, 16vw, 150px);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nf-title { font-size: 28px; font-weight: 700; margin-bottom: 14px; }
.nf-hero { padding: 90px 0; }

/* ---------- 深色模式 ---------- */
[data-theme="dark"] {
  --color-primary: #60a5fa;
  --color-primary-dark: #3b82f6;
  --color-accent: #2dd4bf;
  --color-bg: #0f172a;
  --color-surface: #1e293b;
  --color-text: #f1f5f9;
  --color-text-muted: #94a3b8;
  --color-border: #334155;
}
[data-theme="dark"] .site-header {
  background: rgba(15, 23, 42, 0.85);
}
[data-theme="dark"] .hero {
  background: linear-gradient(160deg, #111c33 0%, #0f172a 100%);
}
[data-theme="dark"] .nav-menu a.active {
  background: rgba(96, 165, 250, 0.16);
}
[data-theme="dark"] .site-footer {
  background: #020617;
}

/* ---------- 页脚免责声明 ---------- */
.footer-note {
  margin-top: 8px;
  font-size: 12px;
  color: #94a3b8;
}

/* ---------- 响应式 ---------- */
@media (max-width: 820px) {
  .gallery { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .download-card { flex-direction: column; text-align: center; }
  .download-list { text-align: left; }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .logo-text {
    font-size: 13px;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .theme-toggle {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    padding: 12px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 12px; }
  .hero { padding: 70px 0 60px; }
}
