:root {
  --ink: #07070C;
  --plum: #120A16;
  --lychee: #FF3B6B;
  --rose: #FF6B8A;
  --flesh: #FFF4E6;
  --leaf: #00E6A8;
  --holo: #8A6CFF;
  --text: #A7ACBB;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-line: rgba(255, 255, 255, 0.1);
  --radius-lg: 32px;
  --radius-md: 24px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background-color: var(--ink);
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(138, 108, 255, 0.15), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(255, 59, 107, 0.1), transparent 50%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { color: var(--flesh); font-weight: 900; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -2px; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -1px; margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.highlight {
  background: linear-gradient(90deg, var(--lychee), var(--rose));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.leaf-text { color: var(--leaf); }
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-padding { padding: 100px 0; }
.glass-panel {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 40px rgba(255, 244, 230, 0.02);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 99px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--lychee), var(--rose));
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 59, 107, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 59, 107, 0.5);
}
.btn-secondary {
  background: rgba(0, 230, 168, 0.1);
  color: var(--leaf);
  border: 1px solid rgba(0, 230, 168, 0.3);
}
.btn-secondary:hover {
  background: rgba(0, 230, 168, 0.2);
  transform: translateY(-2px);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: all 0.4s ease;
  padding: 20px 0;
}
.site-header.scrolled {
  padding: 10px 0;
  background: rgba(7, 7, 12, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--flesh);
}
.brand img {
  height: 32px;
  width: auto;
  border-radius: 8px;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 0.95rem;
  color: var(--text);
  transition: color 0.3s;
  font-weight: 500;
}
.nav-links a:hover { color: var(--flesh); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.search-box {
  position: relative;
  display: none;
}
.search-box input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-line);
  border-radius: 99px;
  padding: 8px 16px 8px 36px;
  color: var(--flesh);
  outline: none;
  font-size: 0.9rem;
  transition: border-color 0.3s;
}
.search-box input:focus { border-color: var(--lychee); }
.search-box::before {
  content: "🔍";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  opacity: 0.5;
}
.dropdown-wrap { position: relative; }
.download-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 320px;
  background: rgba(18, 10, 22, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95) translateY(-10px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}
.dropdown-wrap:hover .download-menu,
.dropdown-wrap.active .download-menu {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}
.menu-item { margin-bottom: 16px; }
.menu-item:last-child { margin-bottom: 0; }
.menu-item h4 { font-size: 1rem; color: var(--flesh); margin-bottom: 4px; }
.menu-item p { font-size: 0.85rem; color: var(--text); }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
}
.hero-bg-texture {
  position: absolute;
  inset: 0;
  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;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  z-index: -1;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 59, 107, 0.1);
  color: var(--lychee);
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 59, 107, 0.2);
}
.hero-subtitle {
  font-size: 1.1rem;
  margin: 24px 0 40px;
  color: var(--text);
  max-width: 480px;
}
.hero-cta { display: flex; gap: 16px; margin-bottom: 48px; }
.hero-stats {
  display: flex;
  gap: 40px;
}
.stat-item h3 { font-size: 2rem; color: var(--flesh); margin-bottom: 4px; }
.stat-item p { font-size: 0.85rem; color: var(--text); }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.nucleus-chamber {
  position: relative;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 59, 107, 0.15), transparent 70%);
  border: 1px solid rgba(255, 59, 107, 0.3);
  box-shadow: inset 0 0 60px rgba(255, 59, 107, 0.1), 0 0 80px rgba(138, 108, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: float 6s ease-in-out infinite;
}
.phone-mockup {
  width: 180px;
  height: 380px;
  border-radius: 32px;
  background: #000;
  border: 4px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  transform: rotate(-5deg);
  transition: transform 0.5s ease;
}
.nucleus-chamber:hover .phone-mockup { transform: rotate(0deg) translateY(-10px); }
.phone-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.floating-card {
  position: absolute;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-line);
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.8rem;
  color: var(--flesh);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.card-1 { top: 10%; left: -10%; animation: float 4s ease-in-out infinite 0.5s; }
.card-2 { bottom: 20%; right: -10%; animation: float 5s ease-in-out infinite 1s; }
.card-3 { top: 50%; right: -20%; animation: float 4.5s ease-in-out infinite 0.2s; }

/* Sections common */
.section-title { margin-bottom: 40px; }
.section-title p { font-size: 1.1rem; max-width: 600px; margin-top: 12px; }

/* Marquee */
.marquee-section {
  padding: 30px 0;
  background: rgba(255, 59, 107, 0.05);
  border-top: 1px solid rgba(255, 59, 107, 0.1);
  border-bottom: 1px solid rgba(255, 59, 107, 0.1);
  overflow: hidden;
  white-space: nowrap;
}
.marquee-content {
  display: inline-block;
  animation: scroll 20s linear infinite;
}
.marquee-content span {
  display: inline-block;
  margin: 0 40px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--lychee);
}
.marquee-content span::before { content: "✦"; margin-right: 8px; opacity: 0.5; color: var(--leaf); }

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

/* Emotion Capsules */
.capsule-group { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
.capsule {
  padding: 8px 24px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-line);
  color: var(--flesh);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s;
}
.capsule:hover, .capsule.active {
  background: linear-gradient(135deg, rgba(255, 59, 107, 0.2), rgba(255, 107, 138, 0.2));
  border-color: var(--lychee);
  color: #fff;
}

/* Drama Card */
.drama-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--plum);
  border: 1px solid var(--glass-line);
  transition: all 0.4s ease;
}
.drama-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 59, 107, 0.5);
  box-shadow: 0 16px 32px rgba(255, 59, 107, 0.15);
}
.drama-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.drama-card:hover img { transform: scale(1.05); }
.drama-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 16px 16px;
  background: linear-gradient(to top, rgba(7,7,12,0.95), transparent);
}
.drama-info h4 { font-size: 1.1rem; margin-bottom: 4px; }
.drama-info p { font-size: 0.8rem; color: var(--text); }
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: bold;
  background: var(--lychee);
  color: #fff;
}
.badge-hot { background: linear-gradient(135deg, #FF3B6B, #FF6B8A); }

/* Rank List */
.rank-list { display: flex; flex-direction: column; gap: 16px; }
.rank-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  transition: all 0.3s;
  position: relative;
}
.rank-item:hover {
  transform: translateX(8px);
  background: rgba(255, 255, 255, 0.06);
}
.rank-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 4px;
  background: var(--lychee);
  border-radius: 0 4px 4px 0;
  opacity: 0;
  transition: opacity 0.3s;
}
.rank-item:hover::before { opacity: 1; }
.rank-num {
  font-size: 1.5rem;
  font-weight: 900;
  width: 32px;
  text-align: center;
  font-style: italic;
}
.rank-num.n1 { color: #FFD700; }
.rank-num.n2 { color: #C0C0C0; }
.rank-num.n3 { color: #CD7F32; }
.rank-cover {
  width: 60px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
}
.rank-info { flex: 1; }
.rank-info h4 { font-size: 1rem; margin-bottom: 4px; }
.rank-info p { font-size: 0.8rem; }
.heat-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}
.heat-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--lychee), var(--rose));
  border-radius: 2px;
}

/* Tech Cards */
.tech-card {
  padding: 32px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-line);
  transition: all 0.3s;
}
.tech-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 230, 168, 0.3);
  transform: translateY(-4px);
}
.tech-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: inline-block;
}

/* VIP */
.vip-section {
  background: linear-gradient(135deg, rgba(255, 59, 107, 0.15), rgba(138, 108, 255, 0.15));
  border-top: 1px solid rgba(255, 59, 107, 0.2);
  border-bottom: 1px solid rgba(255, 59, 107, 0.2);
  padding: 80px 0;
}

/* Platform */
.platform-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--glass);
  border: 1px solid var(--glass-line);
}
.platform-icon { font-size: 1.5rem; }

/* Download */
.download-section { text-align: center; padding: 120px 0; }
.qr-placeholder {
  width: 120px;
  height: 120px;
  background: #fff;
  border-radius: 12px;
  margin: 24px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: bold;
  font-size: 0.8rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--glass-line);
  padding: 60px 0 30px;
  font-size: 0.85rem;
  color: var(--text);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 { color: var(--flesh); margin-bottom: 16px; font-size: 1rem; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a:hover { color: var(--flesh); }
.copyright {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.copyright a { color: var(--text); }
.copyright a:hover { color: var(--flesh); }

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.js-enabled .reveal {
  opacity: 0;
  transform: translateY(30px);
}
.js-enabled .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner { gap: 40px; }
  .nucleus-chamber { width: 320px; height: 320px; }
  .phone-mockup { width: 140px; height: 300px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero { padding-top: 100px; text-align: center; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-subtitle { margin: 24px auto 32px; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; gap: 20px; }
  .hero-visual { margin-top: 40px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .header-actions .search-box { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .floating-card { display: none; }
  .drama-card { aspect-ratio: 4/5; }
}