/* 基础重置与变量 */
:root {
  --bg-base: #07070c;
  --bg-card: #0c0b14;
  --text-main: #f0f0f5;
  --text-sub: #9e9bb0;
  --accent-purple: #a855f7;
  --accent-green: #c6ff3d;
  --accent-yellow: #ffc531;
  --accent-orange: #ff7a3d;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --font-stack: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", STHeiti, "Microsoft YaHei", Tahoma, Simsun, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-stack);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 背景氛围光 */
.ambient-light {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
}
.light-purple { top: -10%; left: -10%; width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(168,85,247,0.3) 0%, transparent 70%); }
.light-orange { bottom: -10%; right: -10%; width: 60vw; height: 60vw; background: radial-gradient(circle, rgba(255,122,61,0.15) 0%, transparent 70%); }

/* 导航条 */
.header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  padding: 20px 0;
  z-index: 100;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  padding: 12px 0;
  background: rgba(7, 7, 12, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 20px;
  font-weight: bold;
  letter-spacing: -0.5px;
}
.brand img { height: 32px; width: auto; border-radius: 8px; object-fit: cover; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent-green); }
.nav-cta {
  background: linear-gradient(135deg, var(--accent-purple), #7e22ce);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(168,85,247,0.3);
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 24px;
  cursor: pointer;
}

/* 首屏 */
.hero {
  padding: 140px 20px 80px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 100vh;
}
.hero-content h1 {
  font-size: 56px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  background: linear-gradient(to right, #fff, #d8b4fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 20px;
  color: var(--text-sub);
  margin-bottom: 40px;
  max-width: 90%;
}
.hero-actions { display: flex; gap: 20px; align-items: center; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-purple);
  color: #fff;
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: bold;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(168,85,247,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(168,85,247,0.6); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  color: var(--text-main);
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: bold;
  border: 1px solid var(--glass-border);
  transition: background 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); }

/* 轮播区 */
.hero-media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px var(--glass-border);
  background: var(--bg-card);
}
.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}
.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-overlay {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  padding: 60px 20px 20px;
  background: linear-gradient(to top, rgba(7,7,12,0.9), transparent);
}
.carousel-controls {
  position: absolute;
  bottom: 20px; left: 0; width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}
.progress-bar-wrap {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  margin-right: 20px;
  cursor: pointer;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: var(--accent-green);
  width: 0%;
  transition: width 0.1s linear;
}
.play-pause-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

/* 通用区块 */
.section {
  padding: 100px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header h2 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.section-header p {
  color: var(--text-sub);
  font-size: 18px;
}

/* 分类剧场 */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.category-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--bg-card);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--glass-border);
}
.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(168,85,247,0.2);
  border-color: var(--accent-purple);
}
.category-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.category-card:hover img { transform: scale(1.05); }
.category-info {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}
.category-info h3 { font-size: 20px; margin-bottom: 4px; }
.category-info span { font-size: 13px; color: var(--accent-green); }

/* 魔改剧库 */
.library-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.flip-card {
  background-color: transparent;
  perspective: 1000px;
  aspect-ratio: 3/4;
  cursor: pointer;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.flip-card-front img { width: 100%; height: 100%; object-fit: cover; }
.flip-card-back {
  background: var(--bg-card);
  transform: rotateY(180deg);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--accent-purple);
  box-shadow: inset 0 0 20px rgba(168,85,247,0.1);
}
.flip-card-back h3 { color: var(--accent-purple); margin-bottom: 12px; font-size: 22px; }
.flip-card-back p { color: var(--text-sub); font-size: 14px; line-height: 1.5; margin-bottom: 16px; }
.tag-group { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.tag { background: rgba(255,255,255,0.1); padding: 4px 10px; border-radius: 12px; font-size: 12px; }
.tag-orange { background: rgba(255,122,61,0.2); color: var(--accent-orange); }

/* AI工坊 */
.ai-workshop {
  background: linear-gradient(180deg, var(--bg-base), var(--bg-card));
  border-radius: 30px;
  padding: 60px;
  border: 1px solid var(--glass-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.steps { display: flex; flex-direction: column; gap: 30px; }
.step { display: flex; gap: 20px; }
.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(198, 255, 61, 0.1);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  flex-shrink: 0;
  border: 1px solid var(--accent-green);
}
.step-content h3 { font-size: 20px; margin-bottom: 8px; }
.step-content p { color: var(--text-sub); font-size: 15px; }
.demo-card {
  background: rgba(0,0,0,0.4);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}
.demo-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-green));
}
.demo-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 16px;
  color: #fff;
  width: 100%;
  margin-bottom: 20px;
  font-family: inherit;
  resize: none;
  height: 80px;
}
.demo-btn {
  background: var(--accent-green);
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
}

/* 沉浸观影 */
.immersive-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.feature-list { display: flex; flex-direction: column; gap: 30px; }
.feature-item { display: flex; gap: 20px; align-items: flex-start; }
.feature-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255, 197, 49, 0.1);
  color: var(--accent-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.feature-text h3 { font-size: 20px; margin-bottom: 8px; }
.feature-text p { color: var(--text-sub); font-size: 15px; }
.phone-mockups { position: relative; height: 500px; }
.phone-mockup {
  position: absolute;
  width: 240px;
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 0 8px #1a1a24;
  overflow: hidden;
}
.phone-mockup img { width: 100%; display: block; }
.phone-1 { top: 0; right: 10%; z-index: 2; }
.phone-2 { bottom: 0; left: 10%; z-index: 1; opacity: 0.8; transform: scale(0.9); }

/* 下载区 */
.download-section {
  text-align: center;
  padding: 100px 20px;
  background: radial-gradient(circle at center, rgba(168,85,247,0.15) 0%, transparent 60%);
}
.download-section h2 { font-size: 48px; font-weight: 900; margin-bottom: 20px; }
.download-section p { color: var(--text-sub); font-size: 18px; margin-bottom: 40px; }
.download-btn-large {
  display: inline-block;
  background: var(--accent-purple);
  color: #fff;
  text-decoration: none;
  padding: 20px 60px;
  border-radius: 40px;
  font-size: 22px;
  font-weight: bold;
  box-shadow: 0 10px 30px rgba(168,85,247,0.4);
  transition: transform 0.2s;
}
.download-btn-large:hover { transform: scale(1.05); }

/* 页脚 */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 60px 20px 30px;
  background: #050508;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 18px; font-weight: bold; }
.footer-brand img { height: 24px; border-radius: 6px; }
.footer-desc { color: var(--text-sub); font-size: 14px; line-height: 1.8; max-width: 300px; }
.footer-nav h4 { margin-bottom: 16px; color: var(--text-main); font-size: 16px; }
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { color: var(--text-sub); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-nav a:hover { color: var(--accent-green); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  color: #666;
  font-size: 12px;
  text-align: center;
}
.footer-bottom a { color: #666; text-decoration: none; }
.footer-bottom a:hover { color: #999; }

/* 动画 */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* 响应式 */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-content h1 { font-size: 48px; }
  .hero-subtitle { margin: 0 auto 30px; }
  .hero-actions { justify-content: center; }
  .hero-media { max-width: 500px; margin: 0 auto; width: 100%; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .library-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-workshop { grid-template-columns: 1fr; padding: 40px; }
  .immersive-section { grid-template-columns: 1fr; }
  .phone-mockups { height: 400px; margin: 0 auto; max-width: 400px; }
  .footer-content { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-desc { margin: 0 auto; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .hero { padding: 100px 20px 40px; }
  .hero-content h1 { font-size: 36px; }
  .hero-subtitle { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; }
  .section { padding: 60px 20px; }
  .section-header h2 { font-size: 28px; }
  .category-grid { gap: 12px; }
  .category-info h3 { font-size: 16px; }
  .category-info span { font-size: 11px; }
  .library-grid { gap: 16px; }
  .ai-workshop { padding: 24px; }
  .phone-mockup { width: 180px; }
  .download-section h2 { font-size: 32px; }
  .download-btn-large { padding: 16px 40px; font-size: 18px; }
}