:root {
  color-scheme: dark;
  --bg: #120b0b;
  --bg-soft: #1a1111;
  --panel: #231516;
  --panel-light: #2c1b1c;
  --accent: #e0b168;
  --accent-strong: #c6883c;
  --brand: #9e3e2d;
  --text: #f3e6d6;
  --muted: #c4b3a2;
  --border: #3a2424;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at top, rgba(122, 52, 38, 0.4), transparent 55%), var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

picture {
  display: block;
}

/* 图片懒加载优化 */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* 移动端图片优化 */
@media (max-width: 960px) {
  img[loading="lazy"] {
    opacity: 0.3; /* 移动端默认显示轻微透明，避免空白 */
  }
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-logo {
  display: inline-flex;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(224, 177, 104, 0.6);
}

.site-nav {
  display: flex;
  gap: 20px;
  font-size: 15px;
  color: var(--muted);
}

.site-nav a {
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: 0.2s ease;
}

.site-nav a:hover {
  color: var(--text);
  border-color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #20140f;
  box-shadow: 0 12px 30px rgba(224, 177, 104, 0.2);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(224, 177, 104, 0.25);
}

.btn.ghost {
  border: 1px solid rgba(224, 177, 104, 0.5);
  color: var(--text);
}

.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 90px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(18, 11, 11, 0.9) 20%, rgba(18, 11, 11, 0.2) 80%);
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media picture {
  width: 100%;
  height: 100%;
}

.hero-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.85);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  margin: 0 0 18px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  background: rgba(15, 10, 10, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 18px 22px;
}

.highlight-title {
  display: block;
  font-weight: 600;
}

.highlight-desc {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 80px 0;
}

.section-dark {
  background: var(--bg-soft);
}

.section-eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 12px;
  margin-bottom: 16px;
}

.section h2 {
  font-size: clamp(28px, 3vw, 40px);
  margin: 0 0 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.intro-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.intro-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.intro-card-header span {
  color: var(--accent);
  font-weight: 600;
}

.intro-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  color: var(--muted);
}

.intro-list li {
  margin-bottom: 10px;
  padding-left: 18px;
  position: relative;
}

.intro-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  min-height: 180px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 177, 104, 0.4);
}

.feature-card h3 {
  margin-top: 0;
}

.character-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 28px;
}

.character-card {
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.character-card figcaption {
  padding: 16px 20px;
  color: var(--muted);
}

.character-stack {
  display: grid;
  gap: 20px;
}

.character-stack figure {
  margin: 0;
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.character-stack figcaption {
  padding: 14px 18px;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.gallery-grid figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  aspect-ratio: 16 / 9;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.05);
}

.timeline {
  display: grid;
  gap: 24px;
}

.timeline article {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.timeline h3 {
  margin-top: 0;
  color: var(--accent);
}

.timeline ul {
  padding-left: 20px;
  margin: 0;
  color: var(--muted);
}

.download {
  background: linear-gradient(135deg, rgba(158, 62, 45, 0.25), rgba(18, 11, 11, 0.9));
}

.download-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
}

.download-card {
  background: var(--panel-light);
  border: 1px solid rgba(224, 177, 104, 0.3);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.download-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  color: var(--muted);
}

.download-card li {
  margin-bottom: 10px;
}

.download-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}

.site-footer {
  background: #0c0707;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  align-items: start;
}

.footer-brand {
  margin-bottom: 12px;
}

.footer-links,
.footer-meta {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 960px) {
  .site-nav {
    display: none;
  }

  .hero {
    padding: 90px 0 70px;
  }

  .character-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .character-card img,
  .character-stack img {
    width: 100%;
    height: auto;
    border-radius: 12px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .gallery-grid figure {
    border-radius: 12px;
    aspect-ratio: 4 / 3;
  }

  .gallery-grid img {
    transition: none; /* 移动端禁用hover效果以提升性能 */
  }
}

@media (max-width: 640px) {
  .nav-wrap {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gallery-grid figure {
    aspect-ratio: 16 / 9;
    border-radius: 16px;
  }

  .character-stack {
    gap: 16px;
  }

  .character-card img,
  .character-stack img {
    border-radius: 16px;
  }
}
