@font-face {
  font-family: 'JiFengTitle';
  src: url('jiangshan-title.woff2') format('woff2'),
       url('jiangshan-title.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ========== CSS Variables ========== */
:root {
  --gold: #d4b87a;
  --gold-light: #e8d5a8;
  --gold-dark: #a88a50;
  --dark-bg: #141210;
  --dark-card: #1e1b18;
  --dark-card-hover: #2a2622;
  --red: #cc3333;
  --red-bright: #ff4444;
  --red-glow: rgba(204, 51, 51, 0.6);
  --orange: #d48a30;
  --orange-dim: rgba(212, 138, 48, 0.15);
  --text-primary: #ece4d6;
  --text-secondary: rgba(220, 210, 195, 0.6);
  --navbar-h: 3.5rem;
  --border-subtle: rgba(212, 184, 122, 0.15);
  --border-warm: rgba(204, 51, 51, 0.2);
  --font: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ========== Reset ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: clamp(12px, 1vw + 2px, 20px); }
section[id] { scroll-margin-top: 3.75rem; }

/* 高DPI / 大屏适配：只控制字号，容器由基础 min(90vw, 2400px) 自动撑开 */
@media (min-width: 1400px) {
  html { font-size: clamp(16px, 1.15vw + 4px, 24px); }
}
@media (min-width: 1600px) {
  html { font-size: clamp(17px, 1.2vw + 3px, 27px); }
}
@media (min-width: 1800px) {
  html { font-size: clamp(18px, 1.25vw + 2px, 30px); }
}
@media (min-width: 2200px) {
  html { font-size: clamp(20px, 1.3vw, 34px); }
}
@media (min-width: 2560px) {
  html { font-size: clamp(22px, 1.3vw, 38px); }
}
@media (min-width: 3200px) {
  html { font-size: clamp(24px, 1.2vw, 42px); }
  .features-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .skill-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .fate-grid { grid-template-columns: repeat(6, 1fr); }
  .afk-steps { grid-template-columns: repeat(3, 1fr); }
}

/* 高 DPI 缩放补偿 */
@media (min-resolution: 144dpi) and (min-width: 1200px) {
  html { font-size: clamp(15px, 1vw + 6px, 26px); }
}
body {
  font-family: var(--font);
  background-color: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ========== Utilities ========== */
.container { max-width: min(90vw, 2400px); margin: 0 auto; padding: 0 20px; }
/* ---- Section title with ornamental decorations ---- */
.section-title {
  font-size: clamp(1.2rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  text-wrap: balance;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}
/* Gradient text inner span */
.stxt {
  background: linear-gradient(135deg, var(--gold), var(--gold-light), #f0e8d8, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Wing lines with gradient fade + accent marks via background-image */
.sec-wing {
  flex-shrink: 0;
  width: 4rem;
  height: 2px;
  position: relative;
  align-self: center;
}
.sec-wing::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.sec-wing-r::before {
  background: linear-gradient(90deg, var(--gold), transparent);
}
.sec-wing-l::after {
  content: '❖';
  position: absolute;
  right: -0.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 0.9rem;
}
.sec-wing-r::after {
  content: '❖';
  position: absolute;
  left: -0.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 0.9rem;
}
.sec-wing-l {
  margin-right: 1rem;
}
.sec-wing-r {
  margin-left: 1rem;
}
.sec-wing-l {
  filter: drop-shadow(0 0 3px rgba(212, 168, 67, 0.3));
}
.sec-wing-r {
  filter: drop-shadow(0 0 3px rgba(212, 168, 67, 0.3));
}
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 2rem;
  position: relative;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 0.05em;
}
.section-subtitle .dec {
  color: var(--gold);
  font-size: 0.85em;
  margin: 0 0.15em;
  vertical-align: middle;
  position: relative;
  top: -0.15em;
}
.gold-text { color: var(--gold); }
.red-text { color: var(--red-bright); }

/* ========== Background: Fire ember canvas ========== */
#embers-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 998;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* ========== Navbar ========== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 20px;
  background: rgba(18, 16, 14, 0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background 0.4s, box-shadow 0.4s;
}
.navbar.scrolled {
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.6), 0 1px 0 var(--border-warm);
}
.navbar-inner {
  max-width: min(95vw, 2400px);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--navbar-h);
}
.nav-logo {
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--red-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.125rem;
  display: inline-flex;
  align-items: center;
}
.nav-logo img {
  height: 1.2em;
  width: auto;
  vertical-align: middle;
  margin-right: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
}
.nav-logo-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}
.nav-logo-text {
  position: relative;
  display: inline-block;
}
.nav-slogan {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.5;
  height: 1.5rem;
  font-size: 0.5rem;
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
  letter-spacing: 0.15rem;
  margin-left: 0.5rem;
  opacity: 0.7;
}
.nav-links {
  display: flex;
  gap: clamp(0.6rem, 1.5vw, 2rem);
  align-items: center;
}
.nav-links a {
  color: #d4c5a0;
  font-size: clamp(0.8rem, 0.9vw, 0.95rem);
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
  padding: 0.5rem 0.75rem;
  display: inline-block;
  border-radius: 0.5rem;
  overflow: hidden;
}
.nav-links a::before {
  content: '';
  position: absolute;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--red);
  top: 0;
  transform: translateX(-50%);
  box-shadow: 0 0 8px var(--red-glow);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--red);
  bottom: 0;
  transform: translateX(-50%);
  box-shadow: 0 0 8px var(--red-glow);
}
.nav-links a:hover::before {
  width: 100%;
  transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nav-links a:hover::after {
  width: 100%;
  transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nav-links a:hover { color: var(--gold); background: rgba(50, 45, 40, 0.7); }
.nav-links a:hover::before { width: 100%; }
.nav-links a:hover::after { width: 100%; }
.nav-download-btn {
  background: linear-gradient(135deg, var(--red), #991a1a);
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 1.5625rem;
  font-weight: 700;
  font-size: 0.85rem !important;
  transition: transform 0.3s, box-shadow 0.3s !important;
  -webkit-text-fill-color: #fff !important;
}
.nav-download-btn::before { display: none !important; }
.nav-download-btn::after { display: none !important; }
.nav-download-btn:hover { background: linear-gradient(135deg, var(--red), #991a1a) !important; }
.nav-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 25px var(--red-glow);
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 0.3125rem;
  cursor: pointer;
  z-index: 1001;
}
.nav-hamburger span {
  width: 1.5625rem; height: 0.125rem;
  background: var(--gold);
  transition: all 0.3s;
  border-radius: 2px;
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========== Hero Section ========== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  z-index: 1;
  padding-top: var(--navbar-h);
  background-color: #12100e;
  box-sizing: border-box;
  padding-bottom: 2rem;
}
.hero-video-wrap {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  z-index: 0;
  /* 视频加载失败时的兜底背景 */
  background: linear-gradient(135deg, #0d0806 0%, #1a0e08 40%, #2d1a0a 70%, #0d0806 100%);
}
.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-content {
  position: relative;
  z-index: 2;
}

/* 隐藏浏览器视频控件菜单 */
video::-webkit-media-controls-enclosure {
  display: none !important;
}
video::-webkit-media-controls {
  display: none !important;
}
video::-webkit-media-controls-overlay-enclosure {
  display: none !important;
}
video::-webkit-media-controls-start-playback-button {
  display: none !important;
}
video::-webkit-media-controls-panel {
  display: none !important;
}
video::-webkit-media-controls-play-button {
  display: none !important;
}
video::-webkit-media-controls-timeline {
  display: none !important;
}
video::-webkit-media-controls-current-time-display {
  display: none !important;
}
video::-webkit-media-controls-time-remaining-display {
  display: none !important;
}
video::-webkit-media-controls-mute-button {
  display: none !important;
}
video::-webkit-media-controls-volume-slider {
  display: none !important;
}
video::-webkit-media-controls-fullscreen-button {
  display: none !important;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  /* 四周暗角让内容区域突出，底部实色确保无缝衔接 */
  background:
    linear-gradient(to top, #12100e 0%, transparent 4%),
    radial-gradient(ellipse at center, rgba(14,12,10,0.15) 0%, rgba(14,12,10,0.55) 60%, rgba(18,16,14,0.85) 100%);
  z-index: 1;
}
/* 底部渐变蒙版：底部实色衔接第二屏，顶部透明不影响画面 */
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, #12100e 0%, #12100e 2%, rgba(18,16,14,0.25) 18%, transparent 30%);
  z-index: 2;
  pointer-events: none;
}
@keyframes groundPulse {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}
.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 clamp(12px, 3vw, 20px) 0;
}
.hero-content img.hero-banner {
  max-width: min(85vw, 700px);
  height: auto;
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 30px rgba(0,0,0,0.8));
}
.hero-badge {
  display: block;
  font-size: clamp(0.8rem, 1.2vw, 0.95rem);
  color: var(--gold);
  margin: 0 auto 0.8rem;
  animation: fadeInDown 0.8s ease;
  letter-spacing: 0.15rem;
  padding: 0.45rem 1.4rem;
  background: rgba(212,197,160,0.06);
  border: 1px solid rgba(212,197,160,0.2);
  border-radius: 4px;
  position: relative;
  text-align: center;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.hero-badge::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border: 1px solid rgba(212,197,160,0.4);
  border-radius: 4px;
  margin: 3px;
  pointer-events: none;
}
.hero-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.3rem;
  color: var(--text-secondary);
  letter-spacing: 0.375rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-game-name-wrapper {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  margin: 0 auto 0.5rem;
  padding: 0 1rem;
  margin-left: auto;
  margin-right: auto;
  animation: logoEntrance 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes logoEntrance {
  0% {
    opacity: 0;
    transform: translateY(-80px) scale(1.2);
    filter: blur(12px);
  }
  50% {
    opacity: 1;
    transform: translateY(10px) scale(1.05);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.hero-game-name {
  font-family: 'JiFengTitle', 'Ma Shan Zheng', cursive;
  font-weight: 400;
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: baseline;
  animation: fadeInUp 0.8s ease 0.3s both;
  gap: clamp(-1rem, -3vw, -1.5rem);
}
.hero-game-name .gn-char {
  display: inline-block;
  color: #ffffff;
  text-shadow: 0 3px 8px rgba(0,0,0,0.85), 0 0 20px rgba(0,0,0,0.4);
  letter-spacing: -0.04em;
  opacity: 0;
  animation: charEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* 江 */
.hero-game-name .gn-char:nth-child(1) {
  font-size: clamp(4.5rem, 15vw, 9rem);
  --char-x: -0.1em;
  animation-delay: 0.4s;
}
/* 山 */
.hero-game-name .gn-char:nth-child(2) {
  font-size: clamp(3.6rem, 12vw, 7.2rem);
  --char-x: 0;
  animation-delay: 0.5s;
}
/* 合 — 最大 */
.hero-game-name .gn-char:nth-child(3) {
  font-size: clamp(5.2rem, 18vw, 10.5rem);
  --char-x: 0;
  animation-delay: 0.6s;
  letter-spacing: -0.05em;
}
/* 击 */
.hero-game-name .gn-char:nth-child(4) {
  font-size: clamp(4rem, 13vw, 8rem);
  --char-x: 0;
  animation-delay: 0.7s;
  letter-spacing: -0.05em;
}
@keyframes charEntrance {
  0% {
    opacity: 0;
    transform: translateY(-50px) scale(1.3) translateX(var(--char-x, 0));
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) translateX(var(--char-x, 0));
  }
}
/* ========== Version Stamp (Retro Seal) ========== */
.version-stamp {
  position: absolute;
  top: 1.8rem;
  right: -0.1rem;
  width: clamp(1.05rem, 2.45vw, 1.26rem);
  height: clamp(1.96rem, 4.55vw, 2.24rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #850000;
  border: 1.4px solid #cc3333;
  border-radius: 0;
  padding: 0.28rem 0.07rem;
  box-sizing: border-box;
  box-shadow: 0 2.8px 10.5px rgba(0, 0, 0, 0.6);
  font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
  color: #ffffff !important;
  line-height: 1.3;
  text-align: center;
  z-index: 10;
  opacity: 0;
  transform: scale(0) rotate(180deg);
  animation: stampEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1.1s forwards;
}
.vs-line {
  font-size: clamp(0.35rem, 0.84vw, 0.49rem);
  font-weight: 400;
}
.vs-plus {
  font-size: clamp(0.48rem, 1.12vw, 0.68rem);
  font-weight: 700;
}
@keyframes stampEntrance {
  0% {
    opacity: 0;
    transform: scale(0) rotate(180deg);
  }
  70% {
    transform: scale(1.15) rotate(-10deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}
@media (max-width: 768px) {
  .version-stamp {
    width: 2.2rem;
    height: 4rem;
    border-width: 2px;
    top: 0.8rem;
    right: -0.1rem;
    padding: 0.4rem 0.15rem;
    color: #ffffff !important;
    animation: stampEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.9s forwards;
  }
  .vs-line {
    font-size: 0.75rem;
  }
  .vs-plus {
    font-size: 1.1rem;
    font-weight: 700;
  }
}



.hero-desc {
  font-size: clamp(0.8rem, 1.8vw, 1.05rem);
  color: var(--text-primary);
  max-width: 37.5rem;
  margin: 0 auto 1rem;
  animation: fadeInUp 0.8s ease 0.5s both;
  text-shadow: 0 0 12px rgba(212, 197, 160, 0.3);
  padding: 0.8rem 1.5rem;
  position: relative;
}
.hero-desc::before,
.hero-desc::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(212,197,160,0.35), transparent);
}
.hero-desc::before { top: 0; }
.hero-desc::after { bottom: 0; }
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.7s both;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.8));
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: clamp(0.6rem, 1.5vw, 0.875rem) clamp(1rem, 2.5vw, 1.8rem);
  border-radius: 3.125rem;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  text-decoration: none;
}
.btn .icon-svg {
  width: 1.5em;
  height: 1.5em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--red), #991a1a);
  color: #fff;
  box-shadow: 0 4px 25px var(--red-glow);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px var(--red-glow);
}
.btn-goto {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 4px 25px rgba(245, 158, 11, 0.4);
}
.btn-goto:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 8px 40px rgba(245, 158, 11, 0.5);
}
.btn-secondary {
  background: rgba(212, 197, 160, 0.08);
  color: var(--gold);
  border: 2px solid rgba(212, 197, 160, 0.3);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(212, 197, 160, 0.15);
  border-color: var(--gold);
  transform: translateY(-3px);
}


/* ========== Hero Ornament (装饰线) ========== */
.hero-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.orn-line {
  width: clamp(2rem, 5vw, 6.25rem);
  height: 0.0625rem;
  background: linear-gradient(90deg, transparent, var(--gold));
  position: relative;
}
.orn-line.r {
  background: linear-gradient(90deg, var(--gold), transparent);
}
/* Small diamond on the thick end of each orn-line */
.orn-line::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 6px rgba(212, 168, 67, 0.6);
  top: 50%;
  margin-top: -2.5px;
  right: 0;
}
.orn-line.r::after {
  right: auto;
  left: 0;
}
/* Subtle dot at the thin end */
.orn-line::before {
  content: '';
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.35;
  top: 50%;
  margin-top: -1.5px;
  left: 30%;
}
.orn-line.r::before {
  left: auto;
  right: 30%;
}
.orn-diamond {
  width: 10px;
  height: 10px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(212, 168, 67, 0.8);
  flex-shrink: 0;
}
.orn-text {
  font-size: 0.75rem;
  color: rgba(212, 168, 67, 0.7);
  letter-spacing: 0.25rem;
  border: 1px solid rgba(212, 168, 67, 0.3);
  padding: 0.25rem 1rem;
  white-space: nowrap;
}
.orn-line-lg {
  width: clamp(2rem, 8vw, 8.75rem);
  height: 2px;
  filter: drop-shadow(0 0 3px rgba(212, 168, 67, 0.25));
}
/* Larger diamond on the thick end of lg lines */
.orn-line-lg::after {
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  box-shadow: 0 0 8px rgba(212, 168, 67, 0.7);
}
/* Larger dot at the thin end of lg lines */
.orn-line-lg::before {
  width: 3px;
  height: 3px;
  opacity: 0.4;
}
.hero-ornament-title {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem 0 0.75rem;
}
.hero-title-text {
  font-size: clamp(0.9rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.375rem;
  white-space: nowrap;
  filter: drop-shadow(0 0 6px rgba(212, 197, 160, 0.3));
  display: inline-block;
  position: relative;
  background: linear-gradient(180deg, #fff8e0 0%, var(--gold) 40%, #b8860b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: ht-fade-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
  opacity: 0;
}


.hero-subtitle {
  font-size: clamp(0.75rem, 2vw, 1rem);
  color: var(--gold-light);
  letter-spacing: 0.15rem;
  margin-top: 0.5rem;
  animation: ht-fade-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
  opacity: 0;
}
.hero-title-text::before {
  content: '相信我们，没有套路！';
  position: absolute;
  left: 0;
  top: 0;
  background: linear-gradient(90deg, transparent 20%, rgba(255,255,255,0.9) 50%, transparent 80%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: ht-shine 3s ease-in-out infinite 1s;
  pointer-events: none;
  letter-spacing: inherit;
  font-weight: inherit;
  font-size: inherit;
  color: transparent;
}
@keyframes ht-fade-in {
  0% { opacity: 0; transform: translateY(20px); filter: blur(6px) drop-shadow(0 0 6px rgba(212, 197, 160, 0.3)); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0) drop-shadow(0 0 6px rgba(212, 197, 160, 0.3)); }
}
@keyframes ht-shine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========== Feature Highlights (8 cards) ========== */
.features {
  position: relative;
  z-index: 1;
  margin-top: -2px;
  padding: 0.5rem 0 1.25rem;
  background-color: #12100e;
  background-image: linear-gradient(180deg, transparent 0%, #181614 30%, #1c1a16 70%, #181614 100%);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: #221f1a;
  border: 1px solid rgba(212, 184, 122, 0.2);
  border-radius: 0.75rem;
  padding: 1.2rem 1.2rem;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--red), var(--orange));
  opacity: 0;
  transition: opacity 0.4s;
}
.feature-card:hover {
  transform: translateY(-6px);
  background: #2c2820;
  border-color: rgba(212, 184, 122, 0.35);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 197, 160, 0.08);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 2.875rem; height: 2.875rem;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 0.75rem;
  color: var(--text-primary);
}
.feature-icon.gold-bg { background: rgba(245, 200, 66, 0.12); }
.feature-icon.red-bg { background: rgba(204, 34, 34, 0.12); }
.feature-icon.orange-bg { background: var(--orange-dim); }
.feature-icon.brown-bg { background: rgba(139, 90, 43, 0.15); }
.feature-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.55rem;
}
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0;
  color: var(--text-primary);
}
.feature-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ========== Equipment Chain ========== */
.equip-chain {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.2rem, 0.6vw, 0.6rem);
  margin: 2.5rem auto 3rem;
  max-width: min(95vw, 1600px);
  flex-wrap: nowrap;
}
.equip-step {
  padding: clamp(0.3rem, 0.8vw, 0.6rem) clamp(0.6rem, 1.5vw, 1rem);
  background: linear-gradient(135deg, rgba(30, 27, 24, 0.8), rgba(20, 18, 16, 0.9));
  border: 2px solid var(--border-subtle);
  border-radius: 0.5rem;
  font-size: clamp(0.65rem, 1.2vw, 0.9rem);
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.equip-step:hover {
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(212, 184, 122, 0.3);
  transform: translateY(-2px);
}
.equip-step.e1 { border-color: rgba(100, 100, 100, 0.5); }
.equip-step.e2 { border-color: rgba(100, 149, 237, 0.5); }
.equip-step.e3 { border-color: rgba(144, 238, 144, 0.5); }
.equip-step.e4 { border-color: rgba(255, 165, 0, 0.5); }
.equip-step.e5 { border-color: rgba(138, 43, 226, 0.5); }
.equip-step.e6 { border-color: rgba(255, 215, 0, 0.6); }
.equip-step.e7 { border-color: var(--gold); }
.equip-arrow {
  font-size: clamp(0.8rem, 1.8vw, 1.4rem);
  color: var(--gold);
  font-weight: bold;
  animation: arrow-glow 2s ease-in-out infinite;
  flex-shrink: 0;
}
.equip-arrow:nth-child(2) { animation-delay: 0s; }
.equip-arrow:nth-child(4) { animation-delay: 0.3s; }
.equip-arrow:nth-child(6) { animation-delay: 0.6s; }
.equip-arrow:nth-child(8) { animation-delay: 0.9s; }
.equip-arrow:nth-child(10) { animation-delay: 1.2s; }
.equip-arrow:nth-child(12) { animation-delay: 1.5s; }
@keyframes arrow-glow {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; text-shadow: 0 0 10px var(--gold); }
}
@media (max-width: 768px) {
  .equip-chain {
    gap: 0.3rem;
    margin: 1.5rem auto 2rem;
  }
  .equip-step {
    padding: 0.4rem 0.8rem;
    font-size: clamp(0.65rem, 2vw, 0.85rem);
  }
  .equip-arrow {
    font-size: 1rem;
  }
}

/* ========== Screenshot Gallery ========== */
.gallery {
  position: relative;
  z-index: 1;
  padding: 1.25rem 0;
  background-color: #1a1816;
  overflow: visible;
}
.gallery-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.gallery-wrapper {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}
.gallery-grid {
  display: flex;
  gap: 0;
  padding: 0.5rem 0;
  will-change: transform;
}
.gallery-item {
  flex: 0 0 auto;
  min-width: 0;
  box-sizing: border-box;
  position: relative;
  border-radius: 0;
  overflow: hidden;
  border: none;
  background: transparent;
  transition: margin-top 0.4s;
}
.gallery-item:hover {
  margin-top: -5px;
  box-shadow: none;
}
.gallery-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-secondary);
}
.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery-placeholder-icon {
  width: 3.75rem; height: 3.75rem;
  border-radius: 50%;
  background: rgba(245, 200, 66, 0.06);
  border: 2px dashed rgba(245, 200, 66, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}
.gallery-placeholder-text {
  font-size: 0.9rem;
}
.gallery-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  padding: 1.5rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(13, 8, 6, 0.9));
  transform: translateY(100%);
  transition: transform 0.4s;
  pointer-events: auto;
  display: flex;
  align-items: flex-end;
}
.gallery-item:hover .gallery-overlay { transform: translateY(0); }
.gallery-overlay h4 { font-size: 0.95rem; font-weight: 700; }
.gallery-overlay p { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.25rem; }

/* ========== Gallery Carousel Arrows ========== */
.gallery-arrow {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 8, 6, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 200, 66, 0.25);
  border-radius: 50%;
  color: var(--gold);
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
  z-index: 2;
  overflow: visible;
}
.gallery-arrow .icon-svg {
  width: 72px;
  height: 72px;
}
.gallery-arrow:hover {
  background: rgba(245, 200, 66, 0.15);
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(245, 200, 66, 0.2);
}

/* ========== Strategy Sections ========== */
.strategy {
  position: relative;
  z-index: 1;
  padding: 1.25rem 0;
  background-color: #161412;
}
.strategy-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}
.strategy-block.full-width {
  grid-template-columns: 1fr;
}
.strategy-block:last-child { margin-bottom: 0; }
.strategy-block:nth-child(even) { direction: rtl; }
.strategy-block:nth-child(even) > * { direction: ltr; }
.strategy-visual {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  aspect-ratio: 1490/1118;
  background: var(--dark-card);
}
.strategy-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  margin: 0;
  padding: 0;
}
.strategy-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  pointer-events: auto;
}
.strategy-visual-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  color: var(--text-secondary);
}
.strategy-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
  border-radius: 0;
}
/* 可点击放大的图片 */
.lightbox-trigger {
  cursor: pointer;
  transition: filter 0.2s;
}
.lightbox-trigger:hover {
  filter: brightness(1.08);
}
/* 视频遮罩层父容器 */
.strategy-visual {
  cursor: pointer;
}
/* 视频遮罩层 — hover 时保持透明 */
.strategy-visual .strategy-overlay {
  background: rgba(0, 0, 0, 0);
}

/* ========== 视频播放器+缩略图布局 ========== */
.video-player-layout {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  aspect-ratio: auto !important;
  border: none !important;
  border-radius: 0 !important;
}
.video-player-layout .main-video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 0 !important;
  overflow: hidden;
  background: #000;
  border: none;
}
.video-player-layout .main-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0 !important;
}
.video-player-layout .main-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  cursor: pointer;
  border-radius: 0 !important;
}
.video-player-layout .main-video-container:hover .main-video-overlay {
  opacity: 1;
}
.video-player-layout .play-icon {
  width: 4rem;
  height: 4rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
}
.video-player-layout .play-icon .icon-svg {
  width: 2rem;
  height: 2rem;
  fill: #fff;
  margin-left: 0.25rem;
}
.video-player-layout .main-video-overlay:hover .play-icon {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.3);
}
/* 缩略图列表 */
.video-player-layout .thumbnail-list {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  padding-top: 0.5rem;
}
.video-player-layout .thumbnail-item {
  position: relative;
  flex: 1;
  aspect-ratio: 16/9;
  border-radius: 0 !important;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}
.video-player-layout .thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 !important;
  display: block;
}
.video-player-layout .thumbnail-item.active {
  border-color: var(--gold);
  overflow: visible !important;
}
.video-player-layout .thumbnail-item.active::before {
  content: '';
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 0.5rem solid transparent;
  border-right: 0.5rem solid transparent;
  border-bottom: 0.5rem solid var(--gold);
  filter: drop-shadow(0 -1px 0 rgba(255, 193, 7, 0.3));
}
.video-player-layout .thumbnail-item:hover:not(.active) {
  border-color: rgba(255, 193, 7, 0.5);
  transform: translateY(-2px);
}
/* 非当前播放视频的缩略图添加黑色透明遮罩 */
.video-player-layout .thumbnail-item:not(.active)::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4); /* 40%黑色透明遮罩 */
  z-index: 1;
  transition: background 0.2s;
}
/* 鼠标悬停时减少遮罩透明度 */
.video-player-layout .thumbnail-item:not(.active):hover::after {
  background: rgba(0, 0, 0, 0.2); /* 悬停时减少到20%透明度 */
}
.video-player-layout .thumbnail-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}
.video-player-layout .thumbnail-item.active .thumbnail-indicator {
  transform: scaleX(1);
}
/* 响应式 */
@media (max-width: 768px) {
  .video-player-layout .thumbnail-list {
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
  .video-player-layout .thumbnail-item {
    min-width: 140px;
    flex-shrink: 0;
  }
}

/* ========== 升级聚灵珠需求图表（在strategy-visual中） ========== */
.upgrade-chart-visual {
  width: 100%;
  height: 100%;
  min-height: 280px;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(20,20,20,0.9) 0%, rgba(30,30,30,0.7) 100%);
}
.chart-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  margin: 0 0 0.25rem 0;
}
.chart-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}
.chart-grid-visual {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(0.15rem, 0.4vw, 0.25rem);
  position: relative;
  padding: 0 0 0 15px;
  min-height: 0;
  height: 280px;
  border-left: 1px solid var(--border-subtle);
}
.chart-bar-visual:nth-child(1) .bar-inner { animation-delay: 0.1s; }
.chart-bar-visual:nth-child(2) .bar-inner { animation-delay: 0.15s; }
.chart-bar-visual:nth-child(3) .bar-inner { animation-delay: 0.2s; }
.chart-bar-visual:nth-child(4) .bar-inner { animation-delay: 0.4s; }
.chart-bar-visual:nth-child(5) .bar-inner { animation-delay: 0.45s; }
.chart-bar-visual:nth-child(6) .bar-inner { animation-delay: 0.5s; }
.chart-bar-visual:nth-child(7) .bar-inner { animation-delay: 0.7s; }
.chart-bar-visual:nth-child(8) .bar-inner { animation-delay: 0.75s; }
.chart-bar-visual:nth-child(9) .bar-inner { animation-delay: 0.8s; }
.chart-bar-visual:nth-child(10) .bar-inner { animation-delay: 1s; }
.chart-bar-visual:nth-child(11) .bar-inner { animation-delay: 1.05s; }
.chart-bar-visual:nth-child(12) .bar-inner { animation-delay: 1.1s; }
.chart-bar-visual:nth-child(13) .bar-inner { animation-delay: 1.3s; }
.chart-bar-visual:nth-child(14) .bar-inner { animation-delay: 1.35s; }
.chart-bar-visual:nth-child(15) .bar-inner { animation-delay: 1.4s; }
.chart-grid-visual::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 35px;
  right: 0;
  height: 0;
  border-bottom: 1px solid var(--border-subtle);
}
.chart-bar-visual {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  position: relative;
  min-width: 0;
  max-width: 7%;
  height: 100%;
  border-left: none;
}
.chart-y-axis {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 35px;
  pointer-events: none;
}
.y-tick {
  position: absolute;
  left: 15px;
  right: 0;
  height: 0;
  opacity: 0.8;
  border-bottom: 1px dashed rgb(92 92 92);
  z-index: 0;
}
.y-tick-label {
  position: absolute;
  right: 100%;
  transform: translateX(-5px);
  font-size: 0.6rem;
  color: var(--text-secondary);
  pointer-events: none;
  white-space: nowrap;
}
.bar-inner {
  width: 100%;
  border-radius: 0;
  position: relative;
  transition: all 0.3s ease;
  opacity: 0.9;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  animation: growBar 0.8s ease-out forwards;
  transform-origin: bottom;
  border-right: 1px solid rgba(20, 18, 16, 0.3);
}
@keyframes growBar {
  from {
    height: 0;
    opacity: 0;
  }
  to {
    opacity: 0.9;
  }
}
.bar-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,255,255,0.2);
  border-radius: 0;
}
.chart-bar-visual:hover .bar-inner {
  opacity: 1;
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  filter: brightness(1.5);
}
.chart-bar-visual:hover .bar-inner::before {
  background: rgba(255,255,255,0.5);
}
.bar-label {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) rotate(-30deg);
  font-size: clamp(0.35rem, 1.3vw, 0.45rem);
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  text-align: center;
  font-weight: 500;
  opacity: 0;
  animation: fadeInLabel 0.5s ease-out 0.8s forwards;
  transition: all 0.3s ease;
}
.chart-bar-visual:hover .bar-label {
  color: rgba(20, 18, 16, 1);
  transform: translateX(-50%) rotate(-30deg) translateY(-2px);
  font-weight: 600;
}
@keyframes fadeInLabel {
  to {
    opacity: 1;
  }
}
.bar-value {
  font-size: clamp(0.4rem, 1.5vw, 0.5rem);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.3s ease;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  z-index: 1;
  margin-bottom: -4px;
  animation: fadeInValue 0.5s ease-out 0.6s forwards;
}
.chart-bar-visual:hover .bar-value {
  transform: translateY(-3px) scale(1.1);
  text-shadow: 0 1px 3px rgba(255,255,255,0.5);
  color: #1a1612;
}
@keyframes fadeInValue {
  to {
    opacity: 1;
  }
}

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: lbFadeIn 0.22s ease;
}
.lightbox.active {
  display: flex;
}
@keyframes lbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 0;
  box-shadow: 0 8px 48px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,200,80,0.15);
  object-fit: contain;
  animation: lbZoomIn 0.22s cubic-bezier(0.34,1.56,0.64,1);
  cursor: default;
}
.lightbox-video {
  max-width: 90vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 0;
  box-shadow: 0 8px 48px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,200,80,0.15);
  object-fit: cover;
  animation: lbZoomIn 0.22s cubic-bezier(0.34,1.56,0.64,1);
  display: none;
}
.lightbox-video.active {
  display: block;
}
@keyframes lbZoomIn {
  from { transform: scale(0.82); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.lightbox-close {
  position: absolute;
  top: 1.1rem;
  right: 1.4rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, transform 0.18s;
  z-index: 10000;
}
.lightbox-close:hover {
  background: rgba(255,80,80,0.55);
  transform: scale(1.12);
}
/* Lightbox 导航按钮 */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
  z-index: 9999;
}
.lightbox-nav:hover {
  background: rgba(255,200,80,0.35);
  transform: translateY(-50%) scale(1.12);
}
.lightbox-nav .icon-svg {
  width: 1.75rem;
  height: 1.75rem;
  color: #fff;
  fill: currentColor;
}
.lightbox-nav.prev {
  left: 1.4rem;
}
.lightbox-nav.next {
  right: 1.4rem;
}
.strategy-content h3 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.4;
  color: var(--gold);
}
.strategy-content h3 .icon-svg { margin-right: 0.5rem; }
.strategy-content > p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.strategy-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.fate-list-container {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 0.5rem;
  scroll-behavior: smooth;
}
.fate-list-container::-webkit-scrollbar {
  width: 6px;
}
.fate-list-container::-webkit-scrollbar-track {
  background: rgba(20,18,16,0.3);
  border-radius: 3px;
}
.fate-list-container::-webkit-scrollbar-thumb {
  background: rgba(245,200,66,0.3);
  border-radius: 3px;
}
.fate-list-container::-webkit-scrollbar-thumb:hover {
  background: rgba(245,200,66,0.5);
}
.fate-list-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: rgba(245, 200, 66, 0.04);
  border-radius: 0.625rem;
  border-left: 4px solid;
  transition: all 0.3s;
  margin-bottom: 0.75rem;
  height: auto;
}
.fate-list-item:hover {
  background: rgba(245, 200, 66, 0.08);
  transform: translateX(5px);
  border-left-width: 5px;
}
.fate-list-item-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.fate-list-icon {
  width: 28px;
  height: 28px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fate-list-icon .icon-svg {
  width: 18px;
  height: 18px;
}
.fate-list-icon.fate-heal { background: rgba(74,222,128,0.12); color: #4ade80; }
.fate-list-icon.fate-atk { background: rgba(204,34,34,0.12); color: var(--red-bright); }
.fate-list-icon.fate-def { background: rgba(100,149,237,0.12); color: #6495ed; }
.fate-list-icon.fate-ult { background: rgba(245,200,66,0.12); color: var(--gold); }
.fate-list-item strong {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0;
}
.fate-list-item p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.fate-list-item p:last-child {
  margin-top: 0.25rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
}
.strategy-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(245, 200, 66, 0.04);
  border-radius: 0.625rem;
  border-left: 3px solid var(--gold);
  transition: all 0.3s;
}
.strategy-highlight-item:hover {
  background: rgba(245, 200, 66, 0.08);
  transform: translateX(5px);
}
.strategy-highlight-item .icon {
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--gold);
}
.strategy-highlight-item .text strong {
  display: block;
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 0.125rem;
}
.strategy-highlight-item .text span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.highlight-red { border-left-color: var(--red); }
.highlight-orange { border-left-color: var(--orange); }

.careers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.career-card {
  background: var(--dark-card);
  border: 2px solid var(--border-subtle);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.career-card:hover {
  border-color: rgba(245, 200, 66, 0.3);
  box-shadow: 0 0 16px rgba(245, 200, 66, 0.1);
  transform: translateY(-3px);
}
.career-visual {
  position: relative;
  overflow: hidden;
  border-top: 2px solid rgba(245, 200, 66, 0.3);
  aspect-ratio: 4/3;
  background: #000;
  flex-shrink: 0;
}
.career-visual video,
.career-visual img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.career-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}
.career-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.career-header svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--gold);
}
.career-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
}
.career-tag {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  border-radius: 0.375rem;
  font-weight: 600;
  border-left: 3px solid;
}
.career-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* AFK Guide New Layout */
.afk-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: start;
}
.afk-visual-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.afk-visual {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  aspect-ratio: 4/3;
  background: var(--dark-card);
}
.afk-visual img {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--border-subtle);
}
.afk-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-height: 100%;
}
.afk-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  transition: all 0.3s;
}
.afk-step:hover {
  border-color: rgba(212, 184, 122, 0.3);
  transform: translateX(5px);
}
.afk-step-number {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
  color: #161412;
}
.afk-step-text h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.afk-step-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========== Reincarnation Section ========== */
.reincarnation {
  position: relative;
  z-index: 1;
  padding: 1.25rem 0;
  background: linear-gradient(180deg, #181614 0%, #161412 50%, #181614 100%);
}
.reincarnation-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.reincarn-card {
  background: var(--dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  padding: 0.6rem 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.reincarn-card:hover {
  border-color: rgba(245, 200, 66, 0.3);
  box-shadow: 0 0 12px rgba(245, 200, 66, 0.08);
}
.reincarn-card .rc-num {
  font-weight: 900;
  color: var(--gold);
  font-size: 0.95rem;
}
.reincarn-card .rc-lv {
  color: var(--text-secondary);
  font-size: 0.8rem;
}
.reincarn-card .rc-tag {
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 0.375rem;
  font-weight: 500;
}
.reincarn-card .rc-tag,
.strategy-highlight-item .rc-tag {
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 0.375rem;
  font-weight: 500;
  display: inline-block;
  margin-right: 0.5rem;
}
.reincarn-card .rc-tag.tag-early,
.strategy-highlight-item .rc-tag.tag-early { background: rgba(76,175,80,0.15); color: #81c784; }
.reincarn-card .rc-tag.tag-mid,
.strategy-highlight-item .rc-tag.tag-mid { background: rgba(255,183,77,0.15); color: #ffb74d; }
.reincarn-card .rc-tag.tag-late,
.strategy-highlight-item .rc-tag.tag-late { background: rgba(239,83,80,0.15); color: #ef5350; }
.reincarn-card .rc-tag.tag-end,
.strategy-highlight-item .rc-tag.tag-end { background: rgba(171,71,188,0.15); color: #ce93d8; }
.stage-early { background: rgba(245, 200, 66, 0.12); color: var(--gold); }
.stage-mid { background: rgba(212, 138, 48, 0.15); color: var(--orange); }
.stage-late { background: rgba(204, 34, 34, 0.12); color: var(--red-bright); }

/* 命格系统布局 */
.fate-system {
  position: relative;
  z-index: 1;
  padding: 2rem 0;
  background-color: #141210;
}
.fate-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 768px) {
  .fate-layout {
    grid-template-columns: 1fr;
  }
  .fate-visual {
    order: -1;
  }
}
.fate-list {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scroll-behavior: smooth;
}
.fate-list::-webkit-scrollbar {
  width: 6px;
}
.fate-list::-webkit-scrollbar-track {
  background: rgba(20,18,16,0.3);
  border-radius: 3px;
}
.fate-list::-webkit-scrollbar-thumb {
  background: rgba(245,200,66,0.3);
  border-radius: 3px;
}
.fate-list::-webkit-scrollbar-thumb:hover {
  background: rgba(245,200,66,0.5);
}
.fate-item {
  background: var(--dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  transition: all 0.3s;
}
.fate-item:hover {
  border-color: rgba(245,200,66,0.3);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transform: translateX(5px);
}
.fate-item-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.fate-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fate-card-icon .icon-svg {
  width: 20px;
  height: 20px;
}
.fate-card-icon.fate-heal { background: rgba(74,222,128,0.12); color: #4ade80; }
.fate-card-icon.fate-atk { background: rgba(204,34,34,0.12); color: var(--red-bright); }
.fate-card-icon.fate-def { background: rgba(100,149,237,0.12); color: #6495ed; }
.fate-card-icon.fate-ult { background: rgba(245,200,66,0.12); color: var(--gold); }
.fate-item-header h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.fate-tag {
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  border-radius: 0.375rem;
  font-weight: 600;
  flex-shrink: 0;
}
.fate-tag.heal { background: rgba(74,222,128,0.15); color: #4ade80; }
.fate-tag.atk { background: rgba(204,34,34,0.15); color: var(--red-bright); }
.fate-tag.def { background: rgba(100,149,237,0.15); color: #6495ed; }
.fate-item p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}
.fate-item p:last-child {
  margin-top: 0.25rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
}
.fate-visual {
  position: sticky;
  top: 2rem;
}
.fate-video {
  width: 100%;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 2px solid var(--border-subtle);
  aspect-ratio: 16/9;
}
@media (max-width: 768px) {
  .fate-video {
    aspect-ratio: 16/9;
    width: 100%;
  }
  .fate-list-container {
    max-height: none;
  }
  .strategy-content p {
    white-space: normal !important;
  }
}

/* 命格卡片网格 */
.fate-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.fate-card {
  background: var(--dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  padding: 1.2rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.fate-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--orange), var(--red));
  opacity: 0;
  transition: opacity 0.4s;
}
.fate-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 184, 122, 0.3);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}
.fate-card:hover::before { opacity: 1; }
.fate-card-icon {
  width: 2.375rem; height: 2.375rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 0.6rem;
  color: var(--gold);
}
.fate-card-icon.fate-heal { background: rgba(74, 222, 128, 0.12); color: #4ade80; }
.fate-card-icon.fate-atk { background: rgba(204, 34, 34, 0.12); color: var(--red-bright); }
.fate-card-icon.fate-def { background: rgba(100, 149, 237, 0.12); color: #6495ed; }
.fate-card-icon.fate-ult { background: rgba(245, 200, 66, 0.12); color: var(--gold); }
.fate-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.4rem;
}
.fate-card h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0;
}
.fate-card p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ========== AFK / 挂机指南 Section ========== */
.afk-guide {
  position: relative;
  z-index: 1;
  padding: 1.25rem 0;
  background-color: #141210;
}
.afk-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.afk-step {
  background: var(--dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  transition: all 0.3s;
  position: relative;
}
.afk-step:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 184, 122, 0.3);
  box-shadow: 0 12px 35px rgba(0,0,0,0.4);
}
.afk-step-number {
  position: absolute;
  top: -0.875rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.75rem; height: 1.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--dark-bg);
  box-shadow: 0 2px 10px rgba(212, 184, 122, 0.4);
}
.afk-step-icon {
  width: 3.25rem; height: 3.25rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.afk-step-icon.step1 { background: rgba(245, 200, 66, 0.1); color: var(--gold); }
.afk-step-icon.step2 { background: rgba(204, 34, 34, 0.1); color: var(--red-bright); }
.afk-step-icon.step3 { background: rgba(100, 149, 237, 0.1); color: #6495ed; }
.afk-step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.afk-step > p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}
.afk-tips {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.afk-tips li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.afk-tips li .dot {
  flex-shrink: 0;
  width: 0.375rem; height: 0.375rem;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 0.375rem;
}
.afk-bottom-note {
  text-align: left;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}
.afk-bottom-note strong {
  color: var(--gold);
}

/* ========== CTA Section ========== */
.cta-section {
  position: relative;
  z-index: 1;
  padding: 1.25rem 0;
  background-color: #141210;
}
.cta-box {
  background:
    linear-gradient(160deg, rgba(30, 27, 23, 0.55) 0%, rgba(26, 23, 20, 0.6) 50%, rgba(28, 24, 21, 0.55) 100%),
    url('down_bg.jpg') center/cover no-repeat;
  border: 1px solid rgba(204, 51, 51, 0.25);
  border-radius: 1.25rem;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 40px rgba(204, 34, 34, 0.06),
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(245, 200, 66, 0.06);
}
.cta-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 184, 122, 0.5) 20%, rgba(204, 34, 34, 0.6) 50%, rgba(212, 184, 122, 0.5) 80%, transparent 100%);
  z-index: 2;
}
.cta-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(245, 200, 66, 0.04) 0%, transparent 60%);
  z-index: 0;
}
.cta-content { position: relative; z-index: 3; }
.cta-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 1rem;
}
.cta-content p {
  color: var(--text-secondary);
  max-width: 31.25rem;
  margin: 0 auto 2rem;
  font-size: 1rem;
}
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}
.qq-group {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 200, 66, 0.08);
  border: 1px solid rgba(245, 200, 66, 0.25);
  padding: 0.625rem 1.25rem;
  border-radius: 1.5625rem;
  font-family: 'Microsoft YaHei', 微软雅黑, sans-serif;
  font-size: 0.9rem;
  color: var(--gold);
  margin-top: 1.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}
.qq-group:hover {
  background: rgba(245, 200, 66, 0.18);
  border-color: var(--gold);
}
.server-schedule {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
.server-schedule table {
  border-collapse: collapse;
  margin: 0 auto;
  font-family: 'Microsoft YaHei', 微软雅黑, sans-serif;
  font-size: 0.875rem;
}
.server-schedule th,
.server-schedule td {
  padding: 0.5rem 1rem;
  text-align: center;
  border: 1px solid rgba(245, 200, 66, 0.2);
  color: rgba(255, 255, 255, 0.85);
}
.server-schedule th {
  background: rgba(245, 200, 66, 0.1);
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
}
.server-schedule td {
  background: rgba(0, 0, 0, 0.15);
}
.server-schedule .schedule-notice td {
  background: rgba(204, 34, 34, 0.15);
  color: var(--red-bright);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 0.6rem 1rem;
}
}

/* ========== Footer ========== */
.footer {
  position: relative;
  z-index: 1;
  padding: 3rem 0 7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  background-color: #100e0c;
}
.footer p {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* ========== Floating Download Bar (Game Style) ========== */
.float-bar {
  position: fixed;
  bottom: -5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem 0.625rem 1.25rem;
  background: rgba(13, 8, 6, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 200, 66, 0.2);
  border-radius: 3.125rem;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(204, 34, 34, 0.15);
  transition: bottom 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s, transform 0.5s;
  white-space: nowrap;
}
.float-bar.show {
  bottom: 1.5rem;
}
.float-bar.show.auto-hide {
  opacity: 0;
  transform: translateX(-50%) translateY(1rem);
  pointer-events: none;
}
.float-bar-icon {
  flex-shrink: 0;
  color: var(--gold);
}
.float-bar-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.0625rem;
}
.float-bar-text small {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0;
}
.float-bar-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--red), #991a1a);
  color: #fff;
  padding: 0.625rem 1.5rem;
  border-radius: 1.875rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  box-shadow: 0 2px 15px rgba(204, 34, 34, 0.4);
}
.float-bar-btn:hover {
  background: linear-gradient(135deg, var(--red-bright), var(--red));
  box-shadow: 0 4px 25px rgba(204, 34, 34, 0.6);
  transform: scale(1.05);
}

/* ========== Back to Top ========== */
.back-to-top {
  position: fixed;
  bottom: -4rem;
  right: 1.5rem;
  z-index: 998;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 8, 6, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(245, 200, 66, 0.25);
  border-radius: 50%;
  color: var(--gold);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}
.back-to-top.show {
  bottom: 1.5rem;
}
.back-to-top:hover {
  background: rgba(245, 200, 66, 0.15);
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(245, 200, 66, 0.2);
}

/* ========== Scroll Reveal ========== */
.reveal {
  opacity: 1;
  transform: translateY(0);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Animations ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rotateBg {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fate-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  /* Hero 小屏适配 */
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    width: 100vw;
    align-items: center;
    padding: var(--navbar-h) 10px 20px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
  }
  .hero .container {
    width: 100%;
    max-width: none;
    padding: 0 5px;
  }
  .hero-content { padding-top: clamp(0.5rem, 4vh, 3rem); }
  .hero-badge { font-size: 1.3rem; }
  .orn-line-lg { width: 3rem; }
  .hero-title-text { font-size: clamp(2.5rem, 9vw, 4rem); line-height: 1.2; letter-spacing: 0.1rem; white-space: nowrap; }
  .hero-subtitle { font-size: 1.4rem; }
  .hero-desc { font-size: 1.2rem; padding: 0.6rem 1rem; }
  .hero-title { font-size: clamp(3rem, 12vw, 5rem); }
  .hero-game-name .gn-char:nth-child(1) { font-size: clamp(4rem, 17vw, 9rem); }
  .hero-game-name .gn-char:nth-child(2) { font-size: clamp(3.2rem, 14vw, 7.2rem); }
  .hero-game-name .gn-char:nth-child(3) { font-size: clamp(4.5rem, 19vw, 10.5rem); }
  .hero-game-name .gn-char:nth-child(4) { font-size: clamp(3.2rem, 14vw, 7.2rem); }
  .section-title { font-size: clamp(1.4rem, 4vw, 2.2rem); }
  .afk-bottom-note { font-size: 0.85rem; line-height: 1.5; }
  /* 视频铺满 hero - 用 100vw/100vh 直接撑视口 */
  .hero-video-wrap {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    transform: none !important;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
  }
  .hero-video-wrap video {
    display: block;
    width: 100vw !important;
    height: 100vh !important;
    object-fit: cover;
  }
  .nav-links { display: none; }
  .nav-hamburger { display: flex !important; }
  .nav-links.open {
    display: flex;
    position: fixed;
    top: 0; right: 0;
    width: 20%;
    max-width: 160px;
    height: 100vh;
    background: rgba(13, 8, 6, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    border-left: 1px solid var(--border-subtle);
  }
  .nav-links a {
    font-size: 1.1rem;
    text-align: center;
  }
  .nav-links.open { right: 0; }
  .nav-hamburger { display: flex; }

  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .feature-card { padding: 1.4rem 1.2rem; }
  .strategy-block,
  .strategy-block:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .cta-box { padding: 3rem 1.5rem; }
  .skill-grid { grid-template-columns: 1fr 1fr; }
  .fate-grid { grid-template-columns: repeat(2, 1fr); }
  .afk-steps { grid-template-columns: 1fr; }
  .careers-grid { grid-template-columns: 1fr; gap: 1rem; }
  .career-visual { aspect-ratio: 16/9; }
  .afk-layout { grid-template-columns: 1fr; }
  .afk-visual { width: 100%; max-width: none; }
  .float-bar {
    left: 0.75rem;
    right: 0.75rem;
    transform: none;
    bottom: -5rem;
    padding: 0.625rem 16px 10px 18px;
    justify-content: center;
  }
  .float-bar.show {
    bottom: 1rem;
  }
  .float-bar.show.auto-hide {
    transform: translateY(1rem);
  }
}
@media (max-width: 480px) {
  .container { padding: 0 5px; }
  .hero { padding: var(--navbar-h) 5px 15px; width: 100vw; height: 100vh; min-height: 100vh; align-items: center !important; }
  .hero .container { width: 100%; max-width: none; padding: 0; }
  .hero-content { padding-top: 0.75rem; }
  .hero-badge { font-size: 1.7rem; margin-bottom: 2rem; }
  .hero-ornament-title { margin: 0.5rem 0 2rem; }
  .hero-title-text { font-size: clamp(1.4rem, 8vw, 4.5rem); white-space: nowrap; margin-bottom: 2rem; }
  .hero-subtitle { font-size: 1.8rem; margin-bottom: 2.5rem; }
  .hero-desc { font-size: 1.8rem; padding: 0.4rem 0; margin-bottom: 3rem; }
  .hero-title { font-size: clamp(2.5rem, 14vw, 4.5rem); }
  .hero-game-name { gap: -2rem; }
  .hero-game-name .gn-char:nth-child(1) { font-size: clamp(4.73rem, 26.3vw, 12.6rem); --char-x: -0.1em; }
  .hero-game-name .gn-char:nth-child(2) { font-size: clamp(3.68rem, 21vw, 9.98rem); --char-x: 0; }
  .hero-game-name .gn-char:nth-child(3) { font-size: clamp(5.46rem, 27.3vw, 14.18rem); --char-x: 0; }
  .hero-game-name .gn-char:nth-child(4) { font-size: clamp(3.68rem, 21vw, 9.98rem); --char-x: 0; }
  .hero-buttons { flex-direction: row; gap: 0.75rem; margin-top: 2rem !important; }
  .btn { width: auto; max-width: 190px; font-size: 1.1rem; padding: 0.7rem 1.5rem; border-radius: 2rem; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .features-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .feature-card { padding: 1.2rem 1rem; }
  .feature-card h3 { font-size: 0.95rem; }
  .feature-card p { font-size: 0.8rem; }
  .skill-grid { grid-template-columns: 1fr; }
  .fate-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .reincarnation-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .float-bar-text { font-size: 0.85rem; }
  .float-bar-btn { padding: 8px 18px; font-size: 0.8rem; }
  .section-title { font-size: clamp(0.8rem, 3.5vw, 1.3rem); gap: 0.5rem; max-width: 95%; flex-wrap: wrap; }
  .sec-wing { width: 1.5rem; height: 1px; opacity: 0.4; }
  .section-subtitle { font-size: 0.75rem; letter-spacing: 0.02em; max-width: 95%; }
  .section-subtitle .dec { font-size: 0.75em; margin: 0 0.1em; }
  .afk-bottom-note { font-size: 0.78rem; line-height: 1.4; word-spacing: 0.05rem; }
  .gallery-carousel { gap: 0.5rem; }
  .gallery-arrow { width: 2.5rem; height: 2.5rem; }
  .gallery-arrow .icon-svg { width: 32px; height: 32px; }
  .gallery-item { aspect-ratio: 1/1.4; }
  .gallery-grid { padding: 0; }
  .cta-box { padding: 2rem 1rem; }
  .cta-content h2 { font-size: clamp(1rem, 4vw, 1.5rem); margin-bottom: 0.75rem; }
  .server-schedule table { font-size: 0.7rem; width: 100%; }
  .server-schedule th, .server-schedule td { padding: 0.4rem 0.5rem; }
  .server-schedule .schedule-notice td { font-size: clamp(0.55rem, 2.5vw, 0.68rem); padding: 0.4rem 0.5rem; white-space: nowrap; }
  .qq-group { font-size: clamp(0.45rem, 2.5vw, 0.65rem); padding: 0.4rem 0.8rem; margin-top: 1rem; white-space: nowrap; width: fit-content; max-width: 100%; }
}

/* ========== Mobile overlay for nav ========== */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}
.nav-overlay.show { display: block; }

/* ========== Scrollbar ========== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark-bg); }
::-webkit-scrollbar-thumb {
  background: rgba(139, 90, 43, 0.4);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(139, 90, 43, 0.6); }

/* ========== Icon Helper ========== */
.icon-svg {
  display: inline-block;
  vertical-align: middle;
  width: 1em;
  height: 1em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-svg.lg { width: 1.4em; height: 1.4em; }
.icon-svg.sm { width: 0.85em; height: 0.85em; }

/* ========== Click Layer (invisible, for Chrome autoplay) ========== */
.click-layer {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 9999;
  cursor: default;
  transition: opacity 0.3s;
}
.click-layer.gone {
  opacity: 0;
  pointer-events: none;
}

/* ========== Music Control Button (Nav) ========== */
.nav-music-btn {
  position: relative;
  background: rgba(18, 14, 10, 0.85);
  border: 1px solid rgba(212, 184, 122, 0.25);
  border-radius: 50%;
  width: 2.75rem;
  height: 2.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.nav-music-btn:hover {
  border-color: rgba(212, 184, 122, 0.5);
  box-shadow: 0 2px 20px rgba(212, 184, 122, 0.15);
  transform: scale(1.08);
}
.nav-music-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--gold);
  transition: all 0.3s;
}
.nav-music-btn.muted svg {
  color: rgba(212, 184, 122, 0.35);
}
.nav-music-btn.muted .music-bars span {
  animation-play-state: paused !important;
  height: 3px !important;
}
.music-bars {
  position: absolute;
  bottom: 0.375rem;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  gap: 0.125rem;
  align-items: flex-end;
  height: 12px;
}
.nav-music-btn:not(.muted) .music-bars {
  display: flex;
}
.music-bars span {
  display: block;
  width: 3px;
  height: 4px;
  background: var(--gold);
  border-radius: 1px;
  animation: musicBar 0.8s ease-in-out infinite alternate;
}
.music-bars span:nth-child(1) { animation-delay: 0s; }
.music-bars span:nth-child(2) { animation-delay: 0.15s; }
.music-bars span:nth-child(3) { animation-delay: 0.3s; }
.music-bars span:nth-child(4) { animation-delay: 0.45s; }
@keyframes musicBar {
  0% { height: 3px; }
  100% { height: 12px; }
}

/* ========== Selection ========== */
::selection {
  background: transparent;
  color: var(--gold-light);
}
::-moz-selection {
  background: transparent;
  color: var(--gold-light);
}
