:root {
  --bg-base: #07070c;
  --bg-panel: #0c0b14;
  --text-main: #f0edf5;
  --text-sub: #a89fbb;
  --accent-purple: #a855f7;
  --accent-green: #c6ff3d;
  --accent-yellow: #ffc531;
  --accent-orange: #ff7a3d;
  --glass-bg: rgba(26, 24, 38, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* 背景氛围 */
.ambient-light {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: -1; overflow: hidden;
}
.light-bubble {
  position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.25;
}
.blob1 { width: 40vw; height: 40vw; background: var(--accent-purple); top: -10%; left: -10%; }
.blob2 { width: 30vw; height: 30vw; background: var(--accent-orange); bottom: 20%; right: -5%; opacity: 0.15; }
.blob3 { width: 20vw; height: 20vw; background: var(--accent-green); top: 40%; left: 30%; opacity: 0.1; }

/* 导航条 */
header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  transition: all 0.3s ease; padding: 20px 0;
}
header.scrolled {
  background: rgba(7, 7, 12, 0.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border); padding: 12px 0;
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px; letter-spacing: -0.5px;}
.brand img { height: 32px; border-radius: 6px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 15px; color: var(--text-sub); transition: color 0.2s; }
.nav-links a:hover { color: var(--text-main); }
.nav-btn {
  background: var(--accent-green); color: #000; font-weight: 700;
  padding: 8px 20px; border-radius: 20px; transition: transform 0.2s;
}
.nav-btn:hover { transform: scale(1.05); }
.menu-toggle { display: none; background: none; border: none; color: white; font-size: 24px; cursor: pointer; }

/* 首屏 */
.hero {
  min-height: 100vh; display: flex; align-items: center; padding: 100px 24px 60px;
  max-width: 1200px; margin: 0 auto; gap: 40px;
}
.hero-content { flex: 1; }
.hero-title { font-size: clamp(36px, 5vw, 64px); font-weight: 900; line-height: 1.1; letter-spacing: -1px; margin-bottom: 20px; }
.hero-title span { color: var(--accent-purple); text-shadow: 0 0 20px rgba(168, 85, 247, 0.4); }
.hero-sub { font-size: 18px; color: var(--text-sub); margin-bottom: 40px; max-width: 480px; }
.hero-actions { display: flex; align-items: center; gap: 20px; }
.btn-main {
  background: var(--accent-purple); color: #fff; font-weight: 700; font-size: 18px;
  padding: 16px 36px; border-radius: 8px; box-shadow: 0 8px 24px rgba(168, 85, 247, 0.3);
  transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center;
}
.btn-main:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(168, 85, 247, 0.5); }
.stats { margin-top: 48px; display: flex; gap: 40px; }
.stat-item h3 { font-size: 28px; color: var(--accent-yellow); font-weight: 800; }
.stat-item p { font-size: 14px; color: var(--text-sub); }

/* 首屏轮播 */
.hero-visual {
  flex: 1; position: relative; max-width: 500px; height: 600px;
  border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  border: 1px solid var(--glass-border);
}
.carousel-track { width: 100%; height: 100%; position: relative; }
.carousel-item {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 1s ease, transform 5s ease;
  transform: scale(1); pointer-events: none;
}
.carousel-item.active { opacity: 1; transform: scale(1.1); pointer-events: auto; }
.carousel-item img { width: 100%; height: 100%; object-fit: cover; }
.carousel-overlay {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 40%;
  background: linear-gradient(to top, var(--bg-base), transparent);
  pointer-events: none;
}

/* 通用区块设置 */
section { padding: 100px 24px; max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 32px; font-weight: 800; margin-bottom: 12px; text-align: center; }
.section-desc { text-align: center; color: var(--text-sub); margin-bottom: 48px; font-size: 16px; }

/* 分类剧场 */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.category-card {
  position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 3/4;
  cursor: pointer; transition: transform 0.3s, box-shadow 0.3s;
}
.category-card:hover { transform: translateY(-8px); box-shadow: 0 12px 40px rgba(168, 85, 247, 0.3); }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.category-card:hover img { transform: scale(1.05); }
.cat-info {
  position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}
.cat-info h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.cat-info p { font-size: 13px; color: var(--text-sub); }
.cat-badge {
  position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px); padding: 4px 10px; border-radius: 12px; font-size: 12px;
  border: 1px solid rgba(255,255,255,0.2);
}

/* 魔改剧库 */
.library-section { background: var(--bg-panel); }
.library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.drama-card {
  perspective: 1000px; height: 380px;
}
.drama-inner {
  position: relative; width: 100%; height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}
.drama-card:hover .drama-inner { transform: rotateY(180deg); }
.drama-front, .drama-back {
  position: absolute; width: 100%; height: 100%; backface-visibility: hidden;
  border-radius: 12px; overflow: hidden; border: 1px solid var(--glass-border);
}
.drama-front img { width: 100%; height: 100%; object-fit: cover; }
.drama-front-info {
  position: absolute; bottom: 0; left: 0; width: 100%; padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}
.drama-front-info h3 { font-size: 18px; font-weight: 700; }
.drama-back {
  background: var(--glass-bg); backdrop-filter: blur(10px);
  transform: rotateY(180deg); padding: 24px; display: flex; flex-direction: column; justify-content: center;
  border-color: var(--accent-purple);
}
.drama-back h3 { color: var(--accent-purple); font-size: 18px; margin-bottom: 16px; }
.tag-group { margin-bottom: 12px; }
.tag { font-size: 12px; padding: 4px 8px; border-radius: 4px; background: rgba(255,255,255,0.1); margin-right: 8px; }
.tag.origin { color: var(--text-sub); }
.tag.magic { color: #000; background: var(--accent-green); font-weight: bold; }
.drama-back p { font-size: 14px; color: var(--text-main); }

/* AI工坊 */
.workshop-steps { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 48px; }
.step-card {
  flex: 1; background: var(--bg-panel); border: 1px solid var(--glass-border);
  padding: 32px 24px; border-radius: 16px; text-align: center; position: relative;
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent-purple);
  color: #fff; font-weight: bold; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 18px;
}
.step-card h3 { font-size: 18px; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--text-sub); }
.demo-box {
  background: var(--bg-panel); border-radius: 16px; padding: 24px;
  display: flex; gap: 20px; border: 1px solid var(--glass-border); align-items: center;
}
.demo-input {
  flex: 1; background: #14121e; border: 1px solid rgba(255,255,255,0.1);
  padding: 16px 20px; border-radius: 8px; color: var(--text-main); font-size: 15px; outline: none;
}
.demo-btn {
  background: var(--accent-orange); color: #fff; border: none; padding: 16px 32px;
  border-radius: 8px; font-weight: bold; font-size: 16px; cursor: pointer;
}
.demo-result {
  flex: 1; background: rgba(168, 85, 247, 0.1); border: 1px dashed var(--accent-purple);
  padding: 16px 20px; border-radius: 8px; font-size: 14px; color: var(--accent-purple);
}

/* 沉浸观影 */
.features-section { display: flex; align-items: center; gap: 60px; }
.feature-content { flex: 1; }
.feature-list li {
  display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start;
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px; background: rgba(198, 255, 61, 0.1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--accent-green); font-size: 24px;
}
.feature-text h3 { font-size: 18px; margin-bottom: 4px; }
.feature-text p { font-size: 14px; color: var(--text-sub); }
.screenshot-stack { flex: 1; position: relative; height: 500px; }
.screenshot-stack img {
  position: absolute; border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  border: 2px solid rgba(255,255,255,0.1); width: 60%; object-fit: cover;
}
.shot-back { top: 0; right: 0; z-index: 1; transform: rotate(4deg); }
.shot-front { bottom: 0; left: 0; z-index: 2; transform: rotate(-4deg); transition: transform 0.3s; }
.shot-front:hover { transform: rotate(0deg) scale(1.02); z-index: 3; }

/* 下载区块 */
.download-section {
  text-align: center; background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(12, 11, 20, 1));
  border-radius: 24px; padding: 80px 24px; border: 1px solid var(--glass-border);
}
.download-section h2 { font-size: 36px; margin-bottom: 16px; }
.download-section p { color: var(--text-sub); margin-bottom: 40px; font-size: 18px; }
.download-btn {
  background: var(--accent-green); color: #000; font-weight: 800; font-size: 20px;
  padding: 18px 48px; border-radius: 30px; display: inline-block; transition: all 0.2s;
  box-shadow: 0 8px 30px rgba(198, 255, 61, 0.3);
}
.download-btn:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(198, 255, 61, 0.5); }
.download-platforms { margin-top: 24px; font-size: 14px; color: var(--text-sub); display: flex; justify-content: center; gap: 20px; }

/* 页脚 */
footer {
  padding: 60px 24px 30px; border-top: 1px solid var(--glass-border);
  background: var(--bg-panel); font-size: 14px; color: var(--text-sub);
}
.footer-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand h3 { color: var(--text-main); font-size: 18px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px;}
.footer-brand h3 img { height: 24px; border-radius: 4px;}
.footer-links h4 { color: var(--text-main); margin-bottom: 16px; font-size: 16px; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--accent-purple); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center; display: flex; flex-direction: column; gap: 8px; font-size: 12px;
}
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { text-decoration: underline; }

/* 响应式 */
@media (max-width: 1024px) {
  .hero { flex-direction: column; padding-top: 120px; text-align: center; }
  .hero-sub { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .stats { justify-content: center; }
  .hero-visual { width: 100%; max-width: 400px; height: 500px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .features-section { flex-direction: column; }
  .screenshot-stack { width: 100%; height: 600px; }
  .footer-content { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--bg-panel); flex-direction: column; padding: 20px 0; border-bottom: 1px solid var(--glass-border); }
  .nav-links.active { display: flex; }
  .menu-toggle { display: block; }
  .hero-title { font-size: 32px; }
  .workshop-steps { flex-direction: column; }
  .demo-box { flex-direction: column; }
  .demo-input, .demo-btn, .demo-result { width: 100%; }
  .footer-content { grid-template-columns: 1fr; text-align: center; }
  .footer-brand h3 { justify-content: center; }
  .screenshot-stack { height: 400px; }
  .screenshot-stack img { width: 75%; }
}