/* ============================================
   ⚔️ 铸灵纪 - 世界顶尖艺术级落地页样式
   开发者：串串香
   风格：深蓝 + 金色/橙色 史诗奇幻 + 旋转腾挪特效
   ============================================ */

/* --- CSS变量 & 全局设置 --- */
:root {
  --primary: #1a3a6e;
  --primary-light: #2a5aa8;
  --accent: #d4940a;
  --accent-light: #f0b429;
  --gold: #ffd700;
  --gold-dark: #c8a800;
  --orange: #e67e22;
  --bg-dark: #060c1a;
  --bg-deep: #0a1628;
  --bg-card: rgba(26, 58, 110, 0.12);
  --bg-card-hover: rgba(26, 58, 110, 0.22);
  --text-primary: #e8e4d9;
  --text-secondary: #a0a8b8;
  --text-muted: #5a6578;
  --border-glow: rgba(212, 148, 10, 0.3);
  --gradient-hero: linear-gradient(135deg, #060c1a 0%, #0d1f3c 40%, #0a1628 70%, #060c1a 100%);
  --gradient-card: linear-gradient(145deg, rgba(212, 148, 10, 0.06), rgba(26, 58, 110, 0.12));
  --shadow-glow: 0 0 40px rgba(212, 148, 10, 0.2);
  --shadow-gold: 0 0 60px rgba(255, 215, 0, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* --- 全局鼠标追踪光晕 --- */
.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 148, 10, 0.06) 0%, rgba(26, 58, 110, 0.03) 30%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
  mix-blend-mode: screen;
}

.cursor-glow.visible {
  opacity: 1;
}

/* --- 粒子画布背景 --- */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* --- 导航栏 --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.8rem 2rem;
  transition: all 0.4s ease;
  backdrop-filter: blur(12px);
  background: rgba(6, 12, 26, 0.85);
}

.navbar.scrolled {
  background: rgba(6, 12, 26, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(212, 148, 10, 0.1);
  padding: 0.6rem 2rem;
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-logo .logo-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(212, 148, 10, 0.4));
}

/* Logo圆形裁剪 */
.logo-circle {
  border-radius: 50% !important;
  object-fit: cover !important;
  background: radial-gradient(circle, #1a1a2e 0%, #0d0d1a 100%);
  border: 2px solid rgba(212, 148, 10, 0.3);
}

.nav-logo .logo-text {
  font-family: 'ZCOOL QingKe HuangYou', 'Noto Sans SC', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--orange), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 3px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 0.55rem 1.5rem;
  background: linear-gradient(135deg, var(--accent), var(--orange));
  border: none;
  border-radius: 50px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(212, 148, 10, 0.3);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(212, 148, 10, 0.5);
}

/* ====== HERO 首屏 ====== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 2rem 6rem;
  z-index: 1;
  background: var(--gradient-hero);
  overflow: hidden;
}

/* 魔法光环装饰 */
.magic-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  pointer-events: none;
  z-index: 0;
}

.magic-circle-1 {
  width: 600px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-color: rgba(212, 148, 10, 0.05);
  animation: rotate-cw 30s linear infinite;
  box-shadow: inset 0 0 60px rgba(212, 148, 10, 0.02), 0 0 60px rgba(212, 148, 10, 0.02);
}

.magic-circle-2 {
  width: 450px;
  height: 450px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-color: rgba(255, 215, 0, 0.04);
  border-style: dashed;
  animation: rotate-ccw 25s linear infinite;
}

.magic-circle-3 {
  width: 750px;
  height: 750px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-color: rgba(26, 58, 110, 0.06);
  border-width: 2px;
  animation: rotate-cw 40s linear infinite;
}

@keyframes rotate-cw {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rotate-ccw {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}

/* 浮动光球 */
.floating-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(1px);
}

.orb-1 {
  width: 6px; height: 6px;
  background: rgba(255, 215, 0, 0.6);
  top: 20%; left: 15%;
  animation: orb-float 8s ease-in-out infinite;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.orb-2 {
  width: 4px; height: 4px;
  background: rgba(212, 148, 10, 0.7);
  top: 35%; right: 12%;
  animation: orb-float 6s ease-in-out 1s infinite;
  box-shadow: 0 0 10px rgba(212, 148, 10, 0.5);
}

.orb-3 {
  width: 8px; height: 8px;
  background: rgba(100, 140, 200, 0.5);
  bottom: 30%; left: 20%;
  animation: orb-float 10s ease-in-out 2s infinite;
  box-shadow: 0 0 20px rgba(100, 140, 200, 0.3);
}

.orb-4 {
  width: 3px; height: 3px;
  background: rgba(255, 215, 0, 0.8);
  top: 60%; right: 25%;
  animation: orb-float 7s ease-in-out 3s infinite;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.orb-5 {
  width: 5px; height: 5px;
  background: rgba(230, 126, 34, 0.6);
  top: 15%; right: 30%;
  animation: orb-float 9s ease-in-out 1.5s infinite;
  box-shadow: 0 0 12px rgba(230, 126, 34, 0.4);
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  25% { transform: translate(30px, -20px) scale(1.3); opacity: 0.8; }
  50% { transform: translate(-20px, -40px) scale(0.8); opacity: 0.6; }
  75% { transform: translate(15px, 10px) scale(1.2); opacity: 0.9; }
}

/* 底部波浪过渡 */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 3;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 80px;
}

/* 浮动符文装饰 */
.hero-rune {
  position: absolute;
  font-size: 2rem;
  color: rgba(212, 148, 10, 0.15);
  animation: float-rune 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.rune-1 { top: 15%; left: 8%; animation-delay: 0s; font-size: 2.5rem; }
.rune-2 { top: 25%; right: 10%; animation-delay: 1.5s; font-size: 2rem; }
.rune-3 { bottom: 25%; left: 12%; animation-delay: 3s; font-size: 1.8rem; color: rgba(255, 215, 0, 0.12); }
.rune-4 { bottom: 30%; right: 8%; animation-delay: 4.5s; font-size: 2.2rem; color: rgba(230, 126, 34, 0.12); }

@keyframes float-rune {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.15; }
  50% { transform: translateY(-20px) rotate(10deg); opacity: 0.3; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

/* Badge脉冲指示灯 */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  background: rgba(212, 148, 10, 0.1);
  border: 1px solid rgba(212, 148, 10, 0.25);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--accent-light);
  margin-bottom: 2.5rem;
  animation: fadeInDown 0.8s ease;
  position: relative;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4757;
  display: inline-block;
  position: relative;
}

.badge-pulse::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ff4757;
  transform: translate(-50%, -50%);
  animation: pulse-ring 1.5s ease-out infinite;
}

@keyframes pulse-ring {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}

/* Logo区 + 环绕光环 */
.hero-logo-area {
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.1s both;
  position: relative;
  display: inline-block;
}

.hero-logo-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  filter: drop-shadow(0 4px 20px rgba(212, 148, 10, 0.5));
  animation: logo-breathe 3s ease-in-out infinite;
  border: 3px solid rgba(212, 148, 10, 0.35);
  position: relative;
  z-index: 2;
}

@keyframes logo-breathe {
  0%, 100% { filter: drop-shadow(0 4px 20px rgba(212, 148, 10, 0.4)); transform: scale(1); }
  50% { filter: drop-shadow(0 8px 35px rgba(255, 215, 0, 0.6)); transform: scale(1.03); }
}

.logo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  top: 50%;
  left: 50%;
  pointer-events: none;
}

.logo-ring-1 {
  width: 180px;
  height: 180px;
  transform: translate(-50%, -50%);
  border-color: rgba(212, 148, 10, 0.15);
  animation: logo-ring-spin 8s linear infinite;
}

.logo-ring-2 {
  width: 210px;
  height: 210px;
  transform: translate(-50%, -50%);
  border-color: rgba(255, 215, 0, 0.08);
  border-style: dashed;
  animation: logo-ring-spin 12s linear infinite reverse;
}

@keyframes logo-ring-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* --- 艺术标题系统 --- */
.hero-title {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  animation: fadeInUp 1s ease 0.2s both;
  display: flex;
  justify-content: center;
  gap: 0.15em;
  perspective: 800px;
}

.title-char {
  display: inline-block;
  font-family: 'ZCOOL QingKe HuangYou', 'Noto Sans SC', sans-serif;
  background: linear-gradient(180deg, #ffd700 0%, #e67e22 40%, #c0392b 80%, #8b4513 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.4)) drop-shadow(0 6px 12px rgba(212, 148, 10, 0.2));
  animation: title-char-in 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--i) * 0.15s + 0.3s) both;
  position: relative;
  transition: transform 0.3s ease;
  cursor: default;
}

.title-char:hover {
  transform: translateY(-10px) rotateY(15deg) scale(1.1);
  filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.6)) drop-shadow(0 10px 20px rgba(212, 148, 10, 0.4));
}

@keyframes title-char-in {
  0% { opacity: 0; transform: translateY(60px) rotateX(90deg) rotateZ(-10deg) scale(0.5); }
  60% { opacity: 1; transform: translateY(-10px) rotateX(-10deg) rotateZ(2deg) scale(1.05); }
  100% { opacity: 1; transform: translateY(0) rotateX(0deg) rotateZ(0deg) scale(1); }
}

/* 标题装饰线 */
.hero-title-deco {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.deco-line {
  display: block;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: deco-line-extend 2s ease 1s both;
}

@keyframes deco-line-extend {
  from { width: 0; opacity: 0; }
  to { width: 80px; opacity: 1; }
}

.deco-diamond {
  color: var(--gold);
  font-size: 0.7rem;
  animation: diamond-pulse 2s ease-in-out infinite, diamond-spin 8s linear infinite;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

@keyframes diamond-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

@keyframes diamond-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-slogan {
  font-family: 'ZCOOL QingKe HuangYou', 'Noto Sans SC', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--accent-light);
  letter-spacing: 8px;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease 0.7s both;
  text-shadow: 0 2px 20px rgba(212, 148, 10, 0.3);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 2rem;
  animation: fadeInUp 1s ease 0.5s both;
  line-height: 1.8;
}

/* 按钮磁吸特效 */
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.65s both;
}

.btn-magnetic {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.btn-primary {
  padding: 0.85rem 2.5rem;
  background: linear-gradient(135deg, var(--accent), var(--orange), #c0392b);
  background-size: 200% auto;
  border: none;
  border-radius: 50px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 6px 25px rgba(212, 148, 10, 0.35);
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: btn-shine-loop 3s ease-in-out infinite;
}

@keyframes btn-shine-loop {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 40px rgba(212, 148, 10, 0.5);
  background-position: right center;
}

.btn-outline {
  padding: 0.85rem 2.5rem;
  background: transparent;
  border: 2px solid rgba(212, 148, 10, 0.4);
  border-radius: 50px;
  color: var(--accent-light);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-outline:hover {
  background: rgba(212, 148, 10, 0.08);
  border-color: var(--gold);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 30px rgba(212, 148, 10, 0.15);
}

.btn-text {
  position: relative;
  z-index: 1;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  animation: fadeInUp 1s ease 0.8s both;
}

.hero-stat { text-align: center; }

.hero-stat .num {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* CTA高亮文字 */
.cta-title .highlight {
  background: linear-gradient(135deg, var(--gold), var(--orange), var(--accent-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 300% auto;
  animation: gradient-shift 4s linear infinite;
}

@keyframes gradient-shift {
  0% { background-position: 0% center; }
  100% { background-position: 300% center; }
}

/* ====== 通用段落 ====== */
.section {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-tag {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: rgba(212, 148, 10, 0.08);
  border: 1px solid rgba(212, 148, 10, 0.18);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-title .accent { color: var(--accent-light); }

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ====== 特色卡片网格 (3D倾斜+光标追踪) ====== */
.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--gradient-card);
  border: 1px solid rgba(212, 148, 10, 0.08);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

/* 卡片光标追踪高光 */
.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 0;
}

.tilt-card:hover .card-glow {
  opacity: 1;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 148, 10, 0.25);
  box-shadow: var(--shadow-glow), 0 20px 60px rgba(0, 0, 0, 0.3);
  background: var(--bg-card-hover);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  background: rgba(212, 148, 10, 0.1);
  position: relative;
  z-index: 1;
}

.feature-card:nth-child(2) .feature-icon { background: rgba(26, 58, 110, 0.2); }
.feature-card:nth-child(3) .feature-icon { background: rgba(230, 126, 34, 0.12); }
.feature-card:nth-child(4) .feature-icon { background: rgba(255, 215, 0, 0.1); }

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ====== 游戏画面 3D旋转腾挪轮播 ====== */
.gallery-section {
  background: linear-gradient(180deg, transparent 0%, rgba(26, 58, 110, 0.04) 30%, rgba(212, 148, 10, 0.02) 70%, transparent 100%);
}

.carousel-container {
  max-width: 1200px;
  margin: 0 auto;
}

.phone-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 780px;
  perspective: 1500px;
}

.carousel-track {
  position: relative;
  width: 340px;
  height: 740px;
  transform-style: preserve-3d;
}

/* === 轮播项基础 === */
.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition:
    transform 0.75s cubic-bezier(0.4, 0, 0.15, 1),
    opacity 0.75s cubic-bezier(0.4, 0, 0.15, 1);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transform: scale(0.6) translateX(0) rotateY(0);
  transform-style: preserve-3d;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* 中间活跃卡片 —— 正面朝向 */
.carousel-item.active {
  opacity: 1;
  transform: scale(1) translateX(0) translateZ(0) rotateY(0deg);
  pointer-events: auto;
  z-index: 5;
}

/* 左侧卡片 —— 向左旋转展开 */
.carousel-item.prev {
  opacity: 0.4;
  transform: scale(0.75) translateX(-360px) translateZ(-150px) rotateY(25deg);
  z-index: 3;
  pointer-events: none;
}

/* 右侧卡片 —— 向右旋转展开 */
.carousel-item.next {
  opacity: 0.4;
  transform: scale(0.75) translateX(360px) translateZ(-150px) rotateY(-25deg);
  z-index: 3;
  pointer-events: none;
}

/* 隐藏卡片 */
.carousel-item.hidden-left {
  opacity: 0;
  transform: scale(0.4) translateX(-600px) translateZ(-300px) rotateY(60deg);
  z-index: 1;
}

.carousel-item.hidden-right {
  opacity: 0;
  transform: scale(0.4) translateX(600px) translateZ(-300px) rotateY(-60deg);
  z-index: 1;
}

/* === 手机外框 === */
.phone-frame {
  width: 340px;
  height: 700px;
  border-radius: 40px;
  overflow: hidden;
  border: 2.5px solid rgba(120, 140, 180, 0.2);
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  background: #0c0e18;
  position: relative;
  transition: border-color 0.75s cubic-bezier(0.4, 0, 0.15, 1), box-shadow 0.75s cubic-bezier(0.4, 0, 0.15, 1);
}

/* 活跃卡片发光边框 */
.carousel-item.active .phone-frame {
  border-color: rgba(212, 148, 10, 0.3);
  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.8),
    0 0 80px rgba(212, 148, 10, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 2px 0 rgba(255, 255, 255, 0.08);
}

/* 手机刘海 */
.phone-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: #080a14;
  border-radius: 0 0 16px 16px;
  z-index: 10;
  border: 1px solid rgba(100, 120, 160, 0.08);
  border-top: none;
}

/* 手机底部横线 */
.phone-frame::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  z-index: 10;
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 3D反射地面 */
.carousel-reflection {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 120px;
  background: radial-gradient(ellipse at center, rgba(212, 148, 10, 0.06) 0%, rgba(26, 58, 110, 0.03) 40%, transparent 80%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}

/* 轮播文字标签 */
.carousel-label {
  text-align: center;
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease 0.25s, transform 0.5s ease 0.25s;
}

.carousel-item.active .carousel-label {
  opacity: 1;
  transform: translateY(0);
}

/* === 左右箭头 === */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(20, 40, 70, 0.4);
  border: 1.5px solid rgba(212, 148, 10, 0.2);
  color: rgba(255, 215, 0, 0.8);
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
}

.arrow-left { left: calc(50% - 280px); }
.arrow-right { right: calc(50% - 280px); }

.carousel-arrow:hover {
  background: rgba(212, 148, 10, 0.15);
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 0 30px rgba(212, 148, 10, 0.2), 0 0 60px rgba(255, 215, 0, 0.08);
  transform: translateY(-50%) scale(1.15);
  color: var(--gold);
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

/* === 指示点 === */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(212, 148, 10, 0.15);
  cursor: pointer;
  transition: all 0.4s ease;
}

.carousel-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.5), 0 0 30px rgba(255, 215, 0, 0.2);
  transform: scale(1.3);
  width: 28px;
  border-radius: 5px;
}

.carousel-dot:hover {
  background: rgba(212, 148, 10, 0.3);
  transform: scale(1.1);
}

/* ====== 关于游戏区 ====== */
.about-section {
  background: linear-gradient(180deg, transparent 0%, rgba(26, 58, 110, 0.03) 50%, transparent 100%);
}

.about-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.about-card {
  padding: 2.5rem 2rem;
  background: var(--gradient-card);
  border: 1px solid rgba(212, 148, 10, 0.06);
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.about-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  border-color: rgba(212, 148, 10, 0.2);
  box-shadow: var(--shadow-glow), 0 20px 60px rgba(0, 0, 0, 0.3);
}

.about-icon {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 1;
}

.about-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--accent-light);
  position: relative;
  z-index: 1;
}

.about-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.about-card p strong { color: var(--gold); }

/* ====== CTA区 ====== */
.cta-section {
  text-align: center;
  padding: 8rem 2rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 700px;
  height: 700px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(212, 148, 10, 0.08) 0%, rgba(26, 58, 110, 0.04) 40%, transparent 70%);
  pointer-events: none;
  animation: pulse-glow 5s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.15); }
}

/* CTA区浮动粒子 */
.cta-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.cta-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 215, 0, 0.4);
  border-radius: 50%;
  animation: cta-particle-float 8s ease-in-out infinite;
}

.cta-particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 7s; }
.cta-particle:nth-child(2) { left: 25%; top: 70%; animation-delay: 1s; animation-duration: 9s; width: 3px; height: 3px; }
.cta-particle:nth-child(3) { left: 60%; top: 30%; animation-delay: 2s; animation-duration: 6s; }
.cta-particle:nth-child(4) { left: 80%; top: 60%; animation-delay: 3s; animation-duration: 10s; width: 5px; height: 5px; background: rgba(212, 148, 10, 0.3); }
.cta-particle:nth-child(5) { left: 45%; top: 80%; animation-delay: 1.5s; animation-duration: 8s; }
.cta-particle:nth-child(6) { left: 90%; top: 15%; animation-delay: 4s; animation-duration: 7s; width: 3px; height: 3px; }

@keyframes cta-particle-float {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  10% { opacity: 0.8; }
  50% { transform: translateY(-80px) translateX(30px) scale(1.5); opacity: 0.6; }
  90% { opacity: 0.8; }
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 1rem;
  position: relative;
}

.cta-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-qrcode-area {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.qrcode-box {
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(212, 148, 10, 0.25);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 30px rgba(212, 148, 10, 0.08);
  transition: all 0.3s;
  position: relative;
}

.qrcode-box:hover {
  border-color: var(--gold);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(212, 148, 10, 0.15);
  transform: translateY(-4px);
}

/* 二维码流光效果 */
.qrcode-shine {
  position: absolute;
  top: -100%;
  left: -100%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 215, 0, 0.08) 50%, transparent 60%);
  animation: qrcode-shine 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes qrcode-shine {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(50%, 50%) rotate(0deg); }
}

.qrcode-img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 12px;
  position: relative;
  z-index: 1;
}

.qrcode-info { text-align: left; }

.qrcode-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

.qrcode-detail {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 2;
}

.gold-text {
  color: var(--gold) !important;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* ====== 底部 ====== */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(212, 148, 10, 0.08);
  padding: 3rem 2rem;
  background: rgba(6, 12, 26, 0.5);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-light);
}

.footer-logo {
  width: 28px;
  height: 28px;
  object-fit: cover;
}

.footer-dev { font-size: 0.9rem; color: var(--text-secondary); }
.footer-copyright { font-size: 0.8rem; color: var(--text-muted); }

.footer-links { display: flex; gap: 2rem; }

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--accent-light); }

/* ====== 动画关键帧 ====== */
@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); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ====== 滚动条 ====== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(212, 148, 10, 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(212, 148, 10, 0.5); }

/* ====== 响应式 ====== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-stats { gap: 1.5rem; }
  .hero-stat .num { font-size: 1.6rem; }
  .hero-logo-img { width: 90px; height: 90px; }
  .features-grid { grid-template-columns: 1fr; }
  .about-content { grid-template-columns: 1fr 1fr; }

  .phone-frame { width: 260px; height: 534px; border-radius: 30px; }
  .carousel-track { width: 260px; height: 580px; }
  .phone-carousel { min-height: 600px; }
  .carousel-item.prev { opacity: 0.35; transform: scale(0.68) translateX(-270px) translateZ(-100px) rotateY(20deg); }
  .carousel-item.next { opacity: 0.35; transform: scale(0.68) translateX(270px) translateZ(-100px) rotateY(-20deg); }
  .arrow-left { left: calc(50% - 200px); }
  .arrow-right { right: calc(50% - 200px); }

  .magic-circle-1 { width: 350px; height: 350px; }
  .magic-circle-2 { width: 260px; height: 260px; }
  .magic-circle-3 { width: 450px; height: 450px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .qrcode-info { text-align: center; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .hero-logo-img { width: 80px; height: 80px; }
  .hero-slogan { letter-spacing: 3px; }
  .about-content { grid-template-columns: 1fr; }

  .phone-frame { width: 220px; height: 452px; border-radius: 24px; }
  .carousel-track { width: 220px; height: 500px; }
  .phone-carousel { min-height: 520px; }
  .carousel-item.prev { opacity: 0.3; transform: scale(0.6) translateX(-200px) translateZ(-80px) rotateY(15deg); }
  .carousel-item.next { opacity: 0.3; transform: scale(0.6) translateX(200px) translateZ(-80px) rotateY(-15deg); }
  .carousel-arrow { width: 40px; height: 40px; font-size: 1rem; }
  .arrow-left { left: calc(50% - 150px); }
  .arrow-right { right: calc(50% - 150px); }

  .cta-qrcode-area { flex-direction: column; }

  .magic-circle { display: none; }
}