:root {
  --bg: #06060a;
  --bg-card: #101016;
  --text-main: #f4f5f8;
  --text-sub: #9AA0B2;
  --accent-yellow: #FFD54A;
  --accent-orange: #FFA000;
  --accent-gradient: linear-gradient(135deg, #FFD54A, #FFA000);
  --teal: #00E6A8;
  --purple: #7C5CFF;
  --pink: #FF5C8A;
  --border: rgba(255,255,255,0.08);
  --glass: rgba(16,16,22,0.7);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* Header */
.header {
  position: fixed; top: 0; left: 0; right: 0; height: 72px; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; transition: all 0.3s;
}
.header.scrolled {
  height: 60px; background: var(--glass); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 20px; }
.brand img { height: 36px; border-radius: 8px; }
.nav-links { display: flex; gap: 32px; font-size: 15px; color: var(--text-sub); }
.nav-links a:hover { color: var(--accent-yellow); }
.header-actions { display: flex; align-items: center; gap: 16px; position: relative; }
.search-box {
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: 20px; padding: 6px 16px; color: var(--text-main); outline: none;
}
.btn-download {
  background: var(--accent-gradient); color: #000; font-weight: 800;
  padding: 8px 20px; border-radius: 20px; font-size: 14px;
  transition: transform 0.2s;
}
.btn-download:hover { transform: scale(1.05); }
.dropdown {
  position: absolute; top: 50px; right: 0; width: 240px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 16px; display: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.dropdown.active { display: block; animation: fadeIn 0.2s ease-out; }
.dropdown-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.dropdown-item:last-child { border-bottom: none; }

/* Hero */
.hero {
  min-height: 100vh; padding: 120px 5% 60px; display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero-bg-glow {
  position: absolute; top: 20%; left: 10%; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,213,74,0.15) 0%, transparent 70%);
  filter: blur(50px); z-index: -1;
}
.hero-bg-glow-2 {
  position: absolute; bottom: 10%; right: 10%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,92,255,0.15) 0%, transparent 70%);
  filter: blur(50px); z-index: -1;
}
.hero-content { flex: 1; max-width: 600px; z-index: 2; }
.tag { display: inline-block; background: rgba(255,213,74,0.1); color: var(--accent-yellow); padding: 4px 12px; border-radius: 12px; font-size: 13px; margin-bottom: 20px; font-weight: 600; }
.hero h1 { font-size: 56px; line-height: 1.1; font-weight: 900; margin-bottom: 24px; color: var(--text-main); }
.hero h1 span { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 18px; color: var(--text-sub); margin-bottom: 40px; max-width: 500px; }
.hero-cta { display: flex; gap: 16px; margin-bottom: 40px; }
.btn-primary { background: var(--accent-gradient); color: #000; padding: 14px 32px; border-radius: 30px; font-weight: 800; font-size: 16px; }
.btn-secondary { background: rgba(255,255,255,0.1); color: var(--text-main); padding: 14px 32px; border-radius: 30px; font-weight: 800; font-size: 16px; backdrop-filter: blur(10px); }
.hero-stats { display: flex; gap: 40px; }
.stat-item h3 { font-size: 24px; margin-bottom: 4px; }
.stat-item p { font-size: 14px; color: var(--text-sub); }

.hero-mockup {
  flex: 1; position: relative; display: flex; justify-content: center; align-items: center;
  perspective: 1000px; z-index: 1;
}
.phone {
  width: 280px; height: 580px; background: #000; border-radius: 40px;
  border: 8px solid #222; overflow: hidden; transform: rotateY(-15deg) rotateX(5deg);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6); position: relative; transition: transform 0.4s;
}
.phone:hover { transform: rotateY(0) rotateX(0) translateY(-10px); }
.phone-screen { width: 100%; height: 100%; object-fit: cover; }
.float-card {
  position: absolute; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px; display: flex; align-items: center; gap: 8px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3); font-size: 13px;
  animation: float 3s ease-in-out infinite;
}
.float-card.heat { top: 15%; left: -20px; border-left: 3px solid var(--pink); }
.float-card.ai { bottom: 20%; right: -20px; border-left: 3px solid var(--teal); }

/* Sections */
section { padding: 80px 5%; }
.section-title { font-size: 36px; font-weight: 800; margin-bottom: 40px; letter-spacing: 1px; }
.section-title span { color: var(--accent-yellow); }

/* Scroll Marquee */
.marquee-wrap { width: 100%; overflow: hidden; background: rgba(255,255,255,0.03); padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.marquee { display: flex; white-space: nowrap; animation: scroll 20s linear infinite; }
.marquee span { margin: 0 40px; font-size: 16px; color: var(--text-sub); font-weight: 600; display: flex; align-items: center; gap: 8px;}
.marquee span::before { content: "•"; color: var(--accent-yellow); font-size: 20px; }

/* Emotion Capsules */
.emotion-tags { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.emotion-tag {
  padding: 10px 24px; border-radius: 30px; font-weight: 600; font-size: 15px;
  cursor: pointer; transition: all 0.3s; border: 1px solid transparent;
}
.emotion-tag.active, .emotion-tag:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.et-1 { background: rgba(255, 92, 138, 0.15); color: var(--pink); border-color: var(--pink); }
.et-2 { background: rgba(255, 213, 74, 0.15); color: var(--accent-yellow); border-color: var(--accent-yellow); }
.et-3 { background: rgba(124, 92, 255, 0.15); color: var(--purple); border-color: var(--purple); }
.et-4 { background: rgba(0, 230, 168, 0.15); color: var(--teal); border-color: var(--teal); }
.et-5 { background: rgba(255, 160, 0, 0.15); color: var(--accent-orange); border-color: var(--accent-orange); }

/* Grid Layouts */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Drama Card */
.drama-card { background: var(--bg-card); border-radius: 20px; overflow: hidden; position: relative; transition: transform 0.3s; border: 1px solid var(--border); }
.drama-card:hover { transform: translateY(-8px); border-color: rgba(255,213,74,0.3); }
.drama-poster { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.drama-info { padding: 16px; }
.drama-info h4 { font-size: 18px; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drama-tags { display: flex; gap: 8px; font-size: 12px; color: var(--text-sub); margin-bottom: 8px; }
.drama-tags span { background: rgba(255,255,255,0.1); padding: 2px 8px; border-radius: 4px; }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 50px; height: 50px; background: rgba(0,0,0,0.5); border-radius: 50%; display: flex; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s; backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.3); }
.drama-card:hover .play-btn { opacity: 1; }
.play-btn::after { content: ""; display: block; width: 0; height: 0; border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }

/* Ranking */
.rank-list { display: flex; flex-direction: column; gap: 12px; }
.rank-item { display: flex; align-items: center; padding: 16px; background: var(--bg-card); border-radius: 16px; transition: transform 0.2s; position: relative; overflow: hidden; border: 1px solid transparent; }
.rank-item:hover { transform: translateX(8px); background: #151520; border-color: rgba(255,213,74,0.2); }
.rank-num { font-size: 24px; font-weight: 900; width: 40px; font-style: italic; color: var(--text-sub); }
.rank-item:nth-child(1) .rank-num { color: #FFD700; }
.rank-item:nth-child(2) .rank-num { color: #C0C0C0; }
.rank-item:nth-child(3) .rank-num { color: #CD7F32; }
.rank-title { flex: 1; font-size: 16px; font-weight: 600; }
.rank-meta { font-size: 13px; color: var(--text-sub); display: flex; gap: 16px; }
.rank-heat { width: 100px; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; margin-top: 8px; }
.rank-heat-inner { height: 100%; background: var(--accent-gradient); }

/* Feature Cards */
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 32px; position: relative; overflow: hidden; }
.feature-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at top right, rgba(255,213,74,0.1), transparent 70%); opacity: 0; transition: opacity 0.3s; }
.feature-card:hover::before { opacity: 1; }
.feature-icon { font-size: 32px; margin-bottom: 16px; }
.feature-card h3 { font-size: 20px; margin-bottom: 12px; }
.feature-card p { color: var(--text-sub); font-size: 14px; }

/* VIP */
.vip-banner {
  background: linear-gradient(135deg, #1a150e, #0d0d12); border: 1px solid rgba(255,213,74,0.3);
  border-radius: 24px; padding: 60px; text-align: center; position: relative; overflow: hidden;
}
.vip-banner h2 { font-size: 36px; margin-bottom: 16px; color: var(--accent-yellow); }
.vip-banner p { color: var(--text-sub); margin-bottom: 32px; font-size: 16px; }

/* Footer */
.footer { padding: 60px 5% 30px; background: #040406; font-size: 13px; color: var(--text-sub); border-top: 1px solid var(--border); }
.footer-top { display: flex; justify-content: space-between; margin-bottom: 40px; flex-wrap: wrap; gap: 40px;}
.footer-brand p { margin-top: 16px; max-width: 300px; line-height: 1.8;}
.footer-links { display: flex; gap: 60px; }
.footer-col h4 { color: var(--text-main); margin-bottom: 16px; font-size: 15px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid var(--border); color: #666; }
.footer-bottom a { color: #666; transition: color 0.3s; }
.footer-bottom a:hover { color: var(--text-main); }

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Responsive */
@media (max-width: 1024px) {
  .hero { flex-direction: column; text-align: center; padding-top: 100px; }
  .hero-content { margin-bottom: 60px; }
  .hero p { margin: 0 auto 40px; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .nav-links { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 40px; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .footer-links { flex-direction: column; gap: 30px; }
  .vip-banner { padding: 40px 20px; }
  .header-actions .search-box { display: none; }
  .float-card { display: none; }
}