﻿/* ============ 深夜风变量 ============ */
:root {
  --bg: #0d1b2a;
  --bg-deep: #060e18;
  --bg-soft: #1b263b;
  --bg-card: #1e2d44;
  --ink: #e8ecf2;
  --ink-soft: #b0bac8;
  --ink-faint: #6b7a8c;
  --amber: #e8a849;
  --amber-bright: #f5c26b;
  --amber-deep: #b3761f;
  --paper: #f5ecd7;
  --blue-glow: #4a9eff;
  --line: rgba(232, 168, 73, 0.18);
  --line-soft: rgba(255, 255, 255, 0.07);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 8px 36px rgba(232, 168, 73, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* ============ 导航 ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 27, 42, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 16px rgba(232, 168, 73, 0.3);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.brand-domain { font-size: 0.72rem; color: var(--ink-faint); }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 0.95rem; color: var(--ink-soft); transition: color 0.2s; }
.nav-links a:hover { color: var(--amber); }
.nav-download {
  padding: 11px 26px;
  background: var(--amber);
  color: var(--bg-deep);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.92rem;
  transition: all 0.2s;
}
.nav-download:hover {
  background: var(--amber-bright);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232, 168, 73, 0.4);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 90px 0 80px;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(232, 168, 73, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(74, 158, 255, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  overflow: hidden;
}
.star-field {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.4) 50%, transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.3) 50%, transparent),
    radial-gradient(1px 1px at 80% 20%, rgba(255,255,255,0.35) 50%, transparent),
    radial-gradient(1px 1px at 30% 80%, rgba(255,255,255,0.25) 50%, transparent),
    radial-gradient(1px 1px at 90% 50%, rgba(255,255,255,0.3) 50%, transparent),
    radial-gradient(1px 1px at 50% 10%, rgba(255,255,255,0.2) 50%, transparent);
  background-size: 300px 300px, 250px 250px, 400px 400px, 350px 350px, 280px 280px, 320px 320px;
  pointer-events: none;
  opacity: 0.6;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.moon-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: inline-block;
}
.hero-text h1 {
  font-size: 3.2rem;
  line-height: 1.15;
  font-weight: 800;
  color: var(--ink);
}
.glow {
  background: linear-gradient(120deg, var(--amber) 0%, var(--amber-bright) 50%, var(--amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--amber);
}
.hero-desc {
  margin-top: 24px;
  font-size: 1.08rem;
  color: var(--ink-soft);
  line-height: 1.9;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 14px; margin-top: 36px; }
.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--amber);
  color: var(--bg-deep);
  box-shadow: 0 0 24px rgba(232, 168, 73, 0.35);
}
.btn-primary:hover {
  background: var(--amber-bright);
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(232, 168, 73, 0.5);
}
.btn-dark {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-dark:hover {
  border-color: var(--amber);
  color: var(--amber);
}
.hero-meta {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
}
.meta-item strong {
  display: block;
  font-size: 1.5rem;
  color: var(--amber);
  font-weight: 700;
}
.meta-item span { font-size: 0.82rem; color: var(--ink-faint); }

/* Hero 手机 */
.hero-phone {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.phone-frame {
  width: 260px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(232, 168, 73, 0.15);
  position: relative;
  z-index: 2;
}
.phone-img { width: 100%; }
.glow-ring {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 168, 73, 0.12) 0%, transparent 70%);
  z-index: 1;
}

/* ============ 通用 ============ */
section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 52px; }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--amber);
  margin-bottom: 12px;
}
.section-title h2 { font-size: 2.2rem; font-weight: 700; color: var(--ink); }
.section-title p { margin-top: 12px; font-size: 1rem; color: var(--ink-faint); }

/* ============ Why ============ */
.why-section { background: var(--bg); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.why-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: var(--shadow-hover);
}
.why-card:hover::before { opacity: 1; }
.why-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--amber);
  opacity: 0.7;
  margin-bottom: 14px;
}
.why-card h3 { font-size: 1.15rem; color: var(--ink); margin-bottom: 10px; font-weight: 700; }
.why-card p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.7; }

/* ============ Modes ============ */
.modes-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}
.mode-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}
.mode-block {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: center;
}
.mode-block.reverse {
  grid-template-columns: 1fr 240px;
}
.mode-block.reverse .mode-img { order: 2; }
.mode-block.reverse .mode-info { order: 1; }
.mode-img {
  width: 240px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line-soft);
}
.mode-info h3 { font-size: 1.3rem; color: var(--amber); margin-bottom: 12px; font-weight: 700; }
.mode-info p { font-size: 1rem; color: var(--ink-soft); line-height: 1.8; max-width: 480px; }

/* ============ Scenes ============ */
.scenes-section { background: var(--bg-deep); }
.scene-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.scene-card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: all 0.25s;
}
.scene-card:hover {
  transform: translateY(-4px);
  border-color: var(--amber);
  box-shadow: var(--shadow-hover);
}
.scene-icon { font-size: 2.4rem; margin-bottom: 14px; }
.scene-card h3 { font-size: 1.08rem; color: var(--ink); margin-bottom: 8px; font-weight: 700; }
.scene-card p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.7; }

/* ============ Screenshots ============ */
.screenshots { background: var(--bg-deep); padding-top: 20px; }
.shot-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 20px 0 10px;
  justify-content: center;
}
.shot-wrap {
  flex-shrink: 0;
  width: 180px;
}
.shot-wrap img {
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--line-soft);
  transition: transform 0.25s;
}
.shot-wrap:hover img { transform: translateY(-4px) scale(1.03); }

/* ============ Download ============ */
.download {
  background: linear-gradient(135deg, var(--bg-deep) 0%, #162a42 50%, var(--bg-deep) 100%);
  padding: 80px 0;
  text-align: center;
}
.download h2 { font-size: 2.2rem; font-weight: 700; color: var(--ink); }
.download p { margin-top: 10px; color: var(--ink-faint); font-size: 1rem; }
.download-inner { max-width: 900px; margin: 0 auto; }
.dl-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.dl-big:not([hidden]) {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.dl-big:hover {
  border-color: var(--amber);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.dl-big-icon { font-size: 2.4rem; }
.dl-big-text { font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.dl-big-sub { font-size: 0.82rem; color: var(--ink-faint); }

/* ============ Footer ============ */
.site-footer {
  background: #060e18;
  padding: 40px 0 28px;
  border-top: 1px solid var(--line-soft);
}
.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-logo { width: 40px; height: 40px; border-radius: 10px; }
.foot-brand h4 { color: var(--ink); font-size: 1rem; margin-bottom: 2px; }
.foot-brand p { font-size: 0.82rem; color: var(--ink-faint); }
.foot-links { display: flex; gap: 28px; }
.foot-links a { font-size: 0.9rem; color: var(--ink-soft); transition: color 0.2s; }
.foot-links a:hover { color: var(--amber); }
.foot-copy { font-size: 0.82rem; color: var(--ink-faint); }

/* ============ 404 ============ */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
}
.error-inner { max-width: 400px; }
.error-logo {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  margin: 0 auto 24px;
  box-shadow: 0 0 24px rgba(232, 168, 73, 0.3);
}
.error-code {
  font-size: 5rem;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 8px;
}
.error-text { font-size: 1.1rem; color: var(--ink-soft); margin-bottom: 28px; }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .scene-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-text h1 { font-size: 2.3rem; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-meta { justify-content: center; }
  .why-grid { grid-template-columns: 1fr; }
  .mode-block { grid-template-columns: 1fr; text-align: center; }
  .mode-block.reverse { grid-template-columns: 1fr; }
  .mode-block.reverse .mode-img { order: 1; }
  .mode-block.reverse .mode-info { order: 2; }
  .mode-img { width: 200px; margin: 0 auto; }
  .scene-grid { grid-template-columns: repeat(2, 1fr); }
  .dl-row { grid-template-columns: 1fr; }
  .shot-row { justify-content: flex-start; }
  section { padding: 56px 0; }
  .foot-inner { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
  .scene-grid { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 1.9rem; }
  .hero-meta { gap: 20px; }
}
