:root {
  --red: #b01f24;
  --red-dark: #7a1216;
  --red-light: #d43a3f;
  --gold: #e0b25c;
  --dark: #14100f;
  --gray: #f5f4f2;
  --text: #333;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: 1200px; max-width: 92%; margin: 0 auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.btn-download {
  background: linear-gradient(135deg, var(--red-light), var(--red) 55%, var(--red-dark));
  color: #fff;
  font-size: 16px;
  padding: 10px 28px;
  box-shadow: 0 4px 14px rgba(176, 31, 36, 0.4);
}
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(176, 31, 36, 0.55); }

.btn-big { font-size: 20px; padding: 14px 46px; border-radius: 8px; }
.btn-small { font-size: 14px; padding: 7px 20px; }
.btn-white { background: #fff; color: var(--red); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2); }

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(20, 16, 15, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(224, 178, 92, 0.25);
  transition: box-shadow 0.3s ease;
}
.header.scrolled { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35); }

.header-inner { display: flex; align-items: center; height: 68px; gap: 40px; }
.logo img { height: 48px; width: auto; }

.nav { display: flex; gap: 32px; margin-left: auto; }
.nav a { color: #cfc9c4; font-size: 16px; padding: 6px 2px; position: relative; transition: color 0.2s; }
.nav a:hover, .nav a.active { color: var(--gold); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -4px;
  transform: translateX(-50%);
  width: 20px; height: 3px;
  border-radius: 2px;
  background: var(--red);
}

.header-btn { flex-shrink: 0; }

.hero {
  padding: 128px 0 80px;
  background:
    linear-gradient(rgba(15, 10, 9, 0.82), rgba(15, 10, 9, 0.9)),
    url("../images/hero-bg.jpg") center/cover no-repeat;
  color: #fff;
}

.hero-inner { display: flex; align-items: center; gap: 56px; }
.hero-info { flex: 1 1 460px; }
.hero-pic { flex: 1 1 620px; }

.hero-title { font-size: 44px; letter-spacing: 2px; margin-bottom: 20px; }
.hero-title span { color: var(--red-light); font-style: italic; }

.hero-desc { font-size: 15px; line-height: 1.9; color: #cfc9c4; margin-bottom: 24px; }

.hero-tags { display: flex; gap: 14px; margin-bottom: 32px; }
.hero-tags li {
  padding: 6px 18px;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 999px;
  font-size: 14px;
}

.hero-system { margin-top: 14px; font-size: 13px; color: #8f8880; }

.hero-pic img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 2px solid rgba(224, 178, 92, 0.4);
  box-shadow: var(--shadow);
}

.section-title {
  text-align: center;
  font-size: 32px;
  color: #222;
}
.section-title::after {
  content: "";
  display: block;
  width: 48px; height: 4px;
  margin: 14px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}
.section-sub { text-align: center; color: #999; margin: 12px 0 36px; }

.versions { padding: 72px 0; background: var(--gray); }

.version-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.version-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  border: 1px solid transparent;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}
.version-card:hover {
  transform: translateY(-4px);
  border-color: rgba(176, 31, 36, 0.5);
  box-shadow: var(--shadow);
}

.version-thumb {
  flex: 0 0 200px;
  width: 200px; height: 112px;
  border-radius: 8px;
  overflow: hidden;
  background: #2a2a2a;
}
.version-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.version-card:hover .version-thumb img { transform: scale(1.06); }

.version-info h3 { font-size: 17px; margin-bottom: 8px; color: #222; }
.version-lang { font-size: 13px; color: #999; margin-bottom: 12px; }

.intro { padding: 72px 0 56px; }
.intro-text { max-width: 900px; margin: 28px auto 0; text-align: center; line-height: 2; color: #555; }

.gallery { overflow: hidden; margin-top: 44px; }
.gallery-track {
  display: flex;
  gap: 16px;
  width: max-content;
  padding: 8px 0;
  animation: marquee 40s linear infinite;
}
.gallery:hover .gallery-track { animation-play-state: paused; }

.gallery-item {
  width: 480px; height: 270px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #222;
  box-shadow: var(--shadow);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

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

.footer-cta {
  padding: 64px 0;
  background: linear-gradient(135deg, var(--red-dark), var(--red) 60%, var(--red-light));
  color: #fff;
  text-align: center;
}
.footer-cta h2 { font-size: 30px; margin-bottom: 24px; letter-spacing: 2px; }

.footer { padding: 24px 0; background: #111; color: #777; font-size: 13px; text-align: center; }

.back-top {
  position: fixed;
  right: 28px; bottom: 90px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.3s ease;
  box-shadow: 0 6px 16px rgba(176, 31, 36, 0.45);
  z-index: 99;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--red-dark); }

.toast {
  position: fixed;
  left: 50%; bottom: 60px;
  transform: translate(-50%, 20px);
  background: rgba(20, 16, 15, 0.92);
  color: #fff;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid rgba(224, 178, 92, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 200;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

@media (max-width: 992px) {
  .hero { padding: 100px 0 56px; }
  .hero-inner { flex-direction: column; }
  .hero-title { font-size: 32px; }
  .nav { display: none; }
  .header-btn { margin-left: auto; }
  .version-grid { grid-template-columns: 1fr; }
  .version-thumb { flex: 0 0 150px; width: 150px; height: 84px; }
  .gallery-item { width: 320px; height: 180px; }
  .section-title { font-size: 26px; }
}