:root {
  --bg-dark: #07070c;
  --bg-card: #0c0b14;
  --text-main: #f0f0f5;
  --text-muted: #9a98ad;
  --primary: #a855f7;
  --primary-glow: rgba(168, 85, 247, 0.4);
  --accent-green: #c6ff3d;
  --accent-yellow: #ffc531;
  --accent-orange: #ff7a3d;
  --glass-bg: rgba(12, 11, 20, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", STHeiti, "Microsoft Yahei", Tahoma, Simsun, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; object-fit: cover; }

/* 氛围光效 */
.ambient-light {
  position: fixed; border-radius: 50%; filter: blur(120px); z-index: -1; pointer-events: none;
}
.light-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: rgba(168, 85, 247, 0.15); }
.light-2 { bottom: 10%; right: -10%; width: 60vw; height: 60vw; background: rgba(255, 122, 61, 0.08); }

/* 导航条 */
header {
  position: fixed; top: 0; width: 100%; z-index: 100;
  transition: background 0.3s, backdrop-filter 0.3s; padding: 16px 5%;
}
header.scrolled {
  background: var(--glass-bg); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border); padding: 12px 5%;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; }
.logo-area { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: bold; }
.logo-area img { height: 32px; border-radius: 6px; }
.nav-links { display: flex; gap: 24px; font-size: 15px; }
.nav-links a { color: var(--text-muted); transition: color 0.3s; }
.nav-links a:hover { color: var(--primary); }
.btn-download-small {
  background: var(--primary); color: #fff; padding: 8px 20px;
  border-radius: 20px; font-weight: bold; font-size: 14px; transition: transform 0.2s, box-shadow 0.2s;
}
.btn-download-small:hover { transform: scale(1.05); box-shadow: 0 0 15px var(--primary-glow); }
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { width: 24px; height: 2px; background: #fff; transition: 0.3s; }

/* 首屏 Hero */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 120px 5% 60px; max-width: 1200px; margin: 0 auto; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; width: 100%; }
.hero-text h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 20px; letter-spacing: -1px; font-weight: 800; }
.hero-text h1 span { color: transparent; background: linear-gradient(90deg, var(--primary), var(--accent-orange)); -webkit-background-clip: text; }
.hero-text p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 40px; max-width: 90%; }
.btn-download-large {
  display: inline-block; background: var(--primary); color: #fff; font-size: 1.2rem; font-weight: bold;
  padding: 16px 48px; border-radius: 30px; transition: all 0.3s; position: relative; overflow: hidden;
  box-shadow: 0 4px 20px var(--primary-glow);
}
.btn-download-large:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(168, 85, 247, 0.6); background: #b975f9; }

.hero-media { position: relative; height: 600px; border-radius: 24px; overflow: hidden; border: 1px solid var(--glass-border); background: var(--bg-card); }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 20s infinite alternate linear; }
@keyframes kenburns { 0% { transform: scale(1); } 100% { transform: scale(1.1); } }
.hero-controls { position: absolute; bottom: 20px; left: 20px; right: 20px; display: flex; align-items: center; gap: 15px; background: var(--glass-bg); backdrop-filter: blur(10px); padding: 10px 15px; border-radius: 12px; border: 1px solid var(--glass-border); z-index: 10; }
.hero-controls button { background: none; border: none; color: #fff; cursor: pointer; font-size: 1rem; padding: 5px; transition: color 0.2s; }
.hero-controls button:hover { color: var(--primary); }
.progress-bar-container { flex: 1; height: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; cursor: pointer; }
.progress-bar { height: 100%; background: var(--accent-orange); width: 0; border-radius: 2px; }

/* 通用区块 */
section { padding: 100px 5%; max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 2.2rem; font-weight: 800; margin-bottom: 40px; text-align: center; }
.section-title span { color: var(--accent-orange); }

/* 分类剧场 */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card { position: relative; height: 280px; border-radius: 16px; overflow: hidden; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; border: 1px solid var(--glass-border); }
.cat-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3); }
.cat-card img { width: 100%; height: 100%; }
.cat-info { position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px 20px 20px; background: linear-gradient(up, rgba(12,11,20,1) 0%, rgba(12,11,20,0) 100%); }
.cat-info h3 { font-size: 1.3rem; margin-bottom: 5px; }
.cat-info p { font-size: 0.85rem; color: var(--text-muted); }
.badge { position: absolute; top: 15px; right: 15px; background: var(--accent-yellow); color: #000; font-weight: bold; font-size: 0.75rem; padding: 4px 10px; border-radius: 12px; }

/* 魔改剧库 */
.lib-grid { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; perspective: 1000px; }
.flip-card { width: 260px; height: 380px; cursor: pointer; position: relative; }
.flip-inner { width: 100%; height: 100%; transition: transform 0.6s; transform-style: preserve-3d; position: relative; }
.flip-card:hover .flip-inner { transform: rotateY(180deg); }
.flip-front, .flip-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 16px; overflow: hidden; border: 1px solid var(--glass-border); }
.flip-front img { width: 100%; height: 100%; }
.flip-front h3 { position: absolute; bottom: 0; left: 0; width: 100%; padding: 40px 20px 15px; background: linear-gradient(up, rgba(0,0,0,0.9), transparent); font-size: 1.1rem; }
.flip-back { background: var(--bg-card); transform: rotateY(180deg); padding: 20px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--primary); box-shadow: inset 0 0 20px rgba(168,85,247,0.2); }
.flip-back h4 { font-size: 1.2rem; color: var(--primary); margin-bottom: 15px; }
.compare-tag { display: inline-block; padding: 4px 8px; border-radius: 4px; font-size: 0.8rem; margin-bottom: 8px; margin-right: 5px; }
.tag-orig { background: rgba(255,255,255,0.1); color: var(--text-muted); }
.tag-mod { background: var(--accent-green); color: #000; font-weight: bold; }
.flip-back p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; margin-top: 10px; }

/* AI魔改工坊 */
.workshop-container { background: var(--bg-card); border-radius: 24px; padding: 40px; border: 1px solid var(--glass-border); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.step-list { display: flex; flex-direction: column; gap: 25px; }
.step-item { display: flex; gap: 15px; align-items: flex-start; }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.1rem; flex-shrink: 0; box-shadow: 0 0 15px var(--primary-glow); }
.step-text h3 { font-size: 1.2rem; margin-bottom: 5px; }
.step-text p { color: var(--text-muted); font-size: 0.95rem; }
.demo-card { background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border); border-radius: 16px; padding: 20px; }
.demo-input { width: 100%; background: #000; border: 1px solid var(--primary); color: #fff; padding: 12px; border-radius: 8px; margin-bottom: 15px; outline: none; font-family: inherit; }
.demo-result { background: rgba(168,85,247,0.1); border-left: 4px solid var(--primary); padding: 15px; border-radius: 4px; font-size: 0.9rem; color: var(--accent-yellow); }

/* 沉浸观影 */
.immersive-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.feature-list { display: flex; flex-direction: column; gap: 20px; }
.feature-item { display: flex; align-items: center; gap: 15px; font-size: 1.1rem; }
.feature-item::before { content: '✦'; color: var(--accent-yellow); font-size: 1.2rem; }
.screenshots { position: relative; height: 500px; }
.screen-img { position: absolute; border-radius: 20px; border: 1px solid var(--glass-border); box-shadow: 0 20px 40px rgba(0,0,0,0.8); }
.screen-1 { width: 60%; top: 0; left: 0; z-index: 2; }
.screen-2 { width: 55%; bottom: 0; right: 0; z-index: 1; }

/* 下载区块 */
.download-section { text-align: center; padding: 100px 5%; background: radial-gradient(circle at center, rgba(168,85,247,0.15) 0%, transparent 60%); border-radius: 40px; margin-bottom: 100px; }
.download-section h2 { font-size: 3rem; margin-bottom: 20px; }
.download-section p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 40px; }
.download-badges { display: flex; justify-content: center; gap: 20px; margin-top: 30px; font-size: 0.9rem; color: var(--text-muted); }

/* 页脚 */
footer { border-top: 1px solid var(--glass-border); padding: 40px 5%; font-size: 0.85rem; color: var(--text-muted); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 10px; }
.footer-links a:hover { color: var(--primary); }
.copyright { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.copyright a { color: var(--text-muted); transition: color 0.3s; }
.copyright a:hover { color: var(--text-main); }

/* 滚动淡入 */
.fade-in { transform: translateY(30px); transition: transform 0.8s ease-out, opacity 0.8s ease-out; }
.fade-in.visible { transform: translateY(0); }

/* 响应式 */
@media (max-width: 1024px) {
  .hero-inner, .workshop-container, .immersive-layout { grid-template-columns: 1fr; }
  .hero-text { text-align: center; }
  .hero-text p { margin: 0 auto 40px; }
  .hero-media { height: 400px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .screenshots { height: 400px; margin-top: 40px; }
  .screen-1 { width: 50%; left: 10%; }
  .screen-2 { width: 45%; right: 10%; }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--glass-bg); backdrop-filter: blur(16px); flex-direction: column; padding: 20px; border-bottom: 1px solid var(--glass-border); }
  .nav-links.active { display: flex; }
  .hamburger { display: flex; }
  .btn-download-small { display: none; }
  .hero-text h1 { font-size: 2.2rem; }
  .category-grid { grid-template-columns: 1fr; }
  .flip-card { width: 100%; max-width: 300px; }
  .download-section h2 { font-size: 2rem; }
  .screenshots { height: 300px; }
}