:root {
  --bg: #0A0806;
  --panel: #14100C;
  --primary: #FF7A1A;
  --secondary: #FFB066;
  --accent: #22E7FF;
  --text: #D1C8C0;
  --text-light: #8A8078;
  --border: rgba(255, 122, 26, 0.2);
  --border-hover: rgba(255, 122, 26, 0.8);
  --font-title: 'Helvetica Neue', Helvetica, Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}
* { box-sizing: border-box; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-title); color: #fff; font-weight: 800; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 15px;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #2A1205;
}
.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}
.btn-outline {
  border: 1px solid var(--border);
  color: var(--secondary);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(255, 122, 26, 0.1);
}

/* Nav */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(10, 8, 6, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  height: 32px;
  border-radius: 6px;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.brand-sub {
  font-size: 10px;
  color: var(--primary);
  letter-spacing: 1px;
}
.nav-links {
  display: flex;
  gap: 30px;
}
.nav-links a {
  font-size: 14px;
  color: var(--text);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}
.mobile-nav {
  display: none;
  position: absolute;
  top: 70px;
  left: 0; right: 0;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  padding: 20px;
  flex-direction: column;
  gap: 15px;
}
.mobile-nav.active { display: flex; }

/* Hero */
.hero {
  padding-top: 140px;
  text-align: center;
  position: relative;
}
.hero h1 {
  font-size: 48px;
  line-height: 1.3;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #fff, var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.desc {
  font-size: 18px;
  color: var(--text);
  max-width: 700px;
  margin: 0 auto 40px;
}
.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 60px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 60px;
}
.hero-stats span { display: flex; align-items: center; gap: 6px; }
.hero-stats span::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* Film Strip */
.film-strip {
  width: 100vw;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  padding: 20px 0;
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.film-track {
  display: inline-flex;
  gap: 15px;
  animation: scrollStrip 30s linear infinite;
}
.film-strip:hover .film-track { animation-play-state: paused; }
.film-item {
  width: 120px; height: 160px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
@keyframes scrollStrip {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Section Common */
.section-title {
  font-size: 32px;
  margin-bottom: 12px;
}
.section-desc {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 40px;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  position: relative;
  transition: all 0.3s ease;
}
.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}
.feature-num {
  font-size: 40px;
  font-weight: 900;
  color: rgba(255, 122, 26, 0.1);
  position: absolute;
  top: 20px; right: 20px;
}
.feature-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  background: rgba(255, 122, 26, 0.1);
  color: var(--primary);
  margin-bottom: 16px;
}
.feature-card h3 { margin-bottom: 12px; font-size: 20px; }
.feature-card p { font-size: 14px; color: var(--text-light); }

/* Library */
.library-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 15px;
}
.tab-btn {
  background: none;
  border: none;
  color: var(--text);
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s;
}
.tab-btn.active {
  color: #fff;
  background: rgba(255, 122, 26, 0.15);
  box-shadow: inset 0 -2px 0 var(--primary);
}
.library-content { display: none; }
.library-content.active { display: block; }
.drama-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.drama-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s;
}
.drama-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}
.drama-cover {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}
.drama-info { padding: 14px; }
.drama-name {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drama-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.drama-tags span {
  font-size: 11px;
  color: var(--secondary);
  background: rgba(255, 122, 26, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}
.drama-desc {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 10px;
  height: 36px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.drama-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-light);
}

/* Radar */
.radar-section {
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.radar-layout {
  display: flex;
  align-items: center;
  gap: 60px;
}
.radar-vis {
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 2px solid rgba(34, 231, 255, 0.3);
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}
.radar-vis::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 50%; height: 50%;
  background: conic-gradient(from 0deg, rgba(34, 231, 255, 0.5), transparent 60%);
  transform-origin: 0 0;
  animation: scan 4s linear infinite;
}
@keyframes scan { 100% { transform: rotate(360deg); } }
.radar-tags {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  flex: 1;
}
.radar-tag {
  padding: 15px;
  border: 1px solid rgba(34, 231, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  color: var(--text);
  transition: all 0.2s;
  cursor: default;
}
.radar-tag:hover {
  border-color: var(--accent);
  background: rgba(34, 231, 255, 0.05);
  color: #fff;
}
.radar-tag::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* Ranking */
.ranking-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rank-card {
  display: flex;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  transition: all 0.2s;
}
.rank-card:hover {
  background: rgba(255, 122, 26, 0.08);
  border-color: var(--primary);
}
.rank-card.top {
  padding: 30px 20px;
  border-color: rgba(255, 122, 26, 0.5);
  background: linear-gradient(90deg, rgba(255, 122, 26, 0.1), transparent);
}
.rank-num {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary);
  width: 40px;
  flex-shrink: 0;
}
.rank-card.top .rank-num { font-size: 40px; color: #fff; -webkit-text-stroke: 1px var(--primary); }
.rank-info { flex: 1; margin-left: 15px; }
.rank-title { font-size: 18px; font-weight: bold; color: #fff; margin-bottom: 4px; }
.rank-card.top .rank-title { font-size: 24px; }
.rank-desc { font-size: 13px; color: var(--text-light); }
.rank-bar-container {
  width: 150px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-left: 20px;
  overflow: hidden;
}
.rank-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px;
}

/* Preview */
.preview-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.preview-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s;
  background: var(--panel);
}
.preview-item:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(34, 231, 255, 0.15);
}
.preview-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s;
}
.preview-item:hover .preview-img { transform: scale(1.02); }
.preview-text {
  padding: 20px;
}
.preview-text h3 { font-size: 20px; margin-bottom: 8px; }
.preview-text p { font-size: 14px; color: var(--text-light); }

/* AI Assistant */
.ai-layout {
  display: flex;
  gap: 40px;
  align-items: center;
}
.chat-window {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 400px;
}
.chat-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  position: relative;
}
.chat-bubble.bot {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}
.chat-bubble.user {
  background: var(--primary);
  color: #2A1205;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}
.chat-input-area {
  display: flex;
  gap: 10px;
  margin-top: auto;
}
.chat-input-area input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 8px;
  color: #fff;
  outline: none;
}
.chat-input-area input:focus { border-color: var(--primary); }
.ai-features {
  flex: 1;
}
.ai-features h3 { font-size: 24px; margin-bottom: 20px; }
.ai-features ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ai-features li {
  position: relative;
  padding-left: 24px;
}
.ai-features li::before {
  content: '✦';
  position: absolute;
  left: 0; top: 0;
  color: var(--primary);
}
.ai-features h4 { font-size: 16px; margin-bottom: 4px; }
.ai-features p { font-size: 14px; color: var(--text-light); }

/* Notice */
.notice-box {
  background: var(--panel);
  border-radius: 12px;
  padding: 30px;
  border-left: 4px solid var(--primary);
}
.notice-box p {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.8;
}
.notice-box p:last-child { margin-bottom: 0; }

/* Footer */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  font-size: 13px;
  color: var(--text-light);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 30px;
}
.footer-brand p { margin-top: 12px; max-width: 300px; }
.footer-links {
  display: flex;
  gap: 60px;
}
.footer-col h4 { color: #fff; margin-bottom: 16px; font-size: 15px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: var(--text-light); }
.footer-bottom a:hover { color: var(--primary); }

/* Helper */
.wow-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.wow-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero h1 { font-size: 36px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .drama-grid { grid-template-columns: repeat(2, 1fr); }
  .radar-layout { flex-direction: column; }
  .preview-layout { grid-template-columns: 1fr; }
  .ai-layout { flex-direction: column; }
  .chat-window { width: 100%; }
  .ai-features { width: 100%; }
  .nav-links { display: none; }
  .nav-actions .btn { display: none; }
  .mobile-menu-btn { display: block; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 28px; }
  .hero-stats { flex-wrap: wrap; gap: 15px; }
  .feature-grid { grid-template-columns: 1fr; }
  .drama-grid { grid-template-columns: 1fr; }
  .library-tabs { overflow-x: auto; white-space: nowrap; padding-bottom: 10px; }
  .tab-btn { flex-shrink: 0; }
  .rank-bar-container { display: none; }
  .footer-links { flex-direction: column; gap: 30px; }
}