:root {
  --bg-dark: #0A0806;
  --panel: #14100C;
  --orange: #FF7A1A;
  --light-orange: #FFB066;
  --cyan: #22E7FF;
  --text-main: #D1C8C1;
  --text-muted: #8A817A;
  --border: rgba(255, 122, 26, 0.25);
  --border-hover: #FF7A1A;
  --font-bold: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-bold);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; object-fit: cover; }

/* Typography */
h1, h2, h3, h4 { color: #FFF; font-weight: 800; line-height: 1.3; }
h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.8rem; margin-bottom: 1rem; position: relative; display: inline-block; }
h2::after { content: ''; position: absolute; left: 0; bottom: -5px; width: 30%; height: 3px; background: var(--orange); border-radius: 2px; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
.text-center { text-align: center; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Components */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1.5rem; border-radius: 30px; font-weight: bold;
  transition: all 0.3s ease; cursor: pointer; border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--light-orange));
  color: #2A1505;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(255, 122, 26, 0.4); }
.btn-outline {
  background: transparent; border: 1px solid var(--orange); color: var(--orange);
}
.btn-outline:hover { background: rgba(255, 122, 26, 0.1); }

/* Header */
header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  background: rgba(10, 8, 6, 0.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 32px; width: auto; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { color: #FFF; font-weight: 800; font-size: 1.1rem; }
.brand-sub { color: var(--orange); font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: var(--text-main); font-size: 0.95rem; transition: color 0.3s; }
.nav-links a:hover { color: var(--orange); }
.nav-right { display: flex; align-items: center; gap: 15px; }
.menu-toggle { display: none; background: none; border: none; color: #FFF; font-size: 1.5rem; cursor: pointer; }

/* Mobile Menu */
@media (max-width: 900px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; width: 100%; background: var(--panel); padding: 20px; border-bottom: 1px solid var(--border); }
  .nav-links.active { display: flex; }
  .menu-toggle { display: block; }
  .nav-right .btn { display: none; } /* Hide nav download on mobile, rely on hero */
}

/* Hero */
.hero { padding: 140px 0 60px; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.hero h1 { max-width: 800px; font-size: 2.8rem; }
.hero p { max-width: 600px; font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 15px; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; font-size: 0.9rem; color: var(--text-muted); }
.hero-stats span { display: flex; align-items: center; gap: 6px; }
.hero-stats span::before { content: '•'; color: var(--orange); font-size: 1.5rem; line-height: 0; }
.film-strip { width: 100%; overflow: hidden; white-space: nowrap; padding: 20px 0; background: var(--panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: 40px; }
.film-track { display: inline-flex; gap: 15px; animation: scroll 40s linear infinite; }
.film-strip:hover .film-track { animation-play-state: paused; }
.film-track img { height: 160px; width: 90px; border-radius: 6px; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Sections Common */
section { padding: 80px 0; }
.section-head { margin-bottom: 40px; }
.section-head p { color: var(--text-muted); max-width: 600px; margin-top: 10px; }

/* Section: Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 30px; transition: all 0.3s; position: relative; }
.feature-card:hover { border-color: var(--orange); transform: translateY(-5px); }
.feature-num { font-size: 2rem; font-weight: 900; color: rgba(255,122,26,0.2); position: absolute; top: 20px; right: 20px; }
.feature-tag { display: inline-block; padding: 4px 10px; border: 1px solid var(--orange); color: var(--orange); border-radius: 20px; font-size: 0.8rem; margin-bottom: 15px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0; }

/* Section: Library */
.lib-tabs { display: flex; gap: 15px; margin-bottom: 30px; overflow-x: auto; padding-bottom: 5px; }
.lib-tabs::-webkit-scrollbar { display: none; }
.tab-btn { background: var(--panel); border: 1px solid var(--border); color: var(--text-muted); padding: 10px 24px; border-radius: 30px; cursor: pointer; transition: all 0.3s; white-space: nowrap; font-size: 1rem; }
.tab-btn.active { background: var(--orange); color: #2A1505; border-color: var(--orange); font-weight: bold; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.grid-4 { 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; cursor: pointer; }
.drama-card:hover { border-color: var(--orange); transform: translateY(-5px); }
.cover-wrap { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.cover-wrap img { width: 100%; height: 100%; transition: transform 0.5s; }
.drama-card:hover .cover-wrap img { transform: scale(1.05); }
.cover-tag { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.6); color: var(--light-orange); padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; }
.card-info { padding: 15px; }
.card-info h3 { font-size: 1.05rem; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-tags { display: flex; gap: 5px; margin-bottom: 8px; flex-wrap: wrap; }
.card-tags span { font-size: 0.7rem; background: rgba(255,255,255,0.1); padding: 2px 6px; border-radius: 4px; color: var(--text-muted); }
.card-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; justify-content: space-between; font-size: 0.75rem; color: #888; }

/* Section: Genre Radar */
.radar-section { background: #0d1214; border-top: 1px solid rgba(34,231,255,0.2); border-bottom: 1px solid rgba(34,231,255,0.2); }
.radar-section h2 { color: var(--cyan); }
.radar-section h2::after { background: var(--cyan); }
.radar-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.radar-visual { position: relative; width: 300px; height: 300px; margin: 0 auto; border-radius: 50%; border: 1px solid rgba(34,231,255,0.3); background: repeating-radial-gradient(circle, transparent, transparent 20px, rgba(34,231,255,0.1) 21px), linear-gradient(90deg, transparent 49.5%, rgba(34,231,255,0.1) 49.5%, rgba(34,231,255,0.1) 50.5%, transparent 50.5%), linear-gradient(0deg, transparent 49.5%, rgba(34,231,255,0.1) 49.5%, rgba(34,231,255,0.1) 50.5%, transparent 50.5%); }
.radar-visual::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0deg, rgba(34,231,255,0.4) 60deg, transparent 60deg); animation: radar-spin 4s linear infinite; }
@keyframes radar-spin { 100% { transform: rotate(360deg); } }
.genre-list { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.genre-item { padding: 15px; border-radius: 8px; background: rgba(255,255,255,0.02); border: 1px solid transparent; transition: all 0.3s; text-align: center; color: #FFF; font-weight: bold; }
.genre-item:hover { background: rgba(34,231,255,0.1); border-color: var(--cyan); color: var(--cyan); }

/* Section: Ranking */
.rank-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 30px; }
.main-rank { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 3/4; }
.main-rank img { width: 100%; height: 100%; }
.main-rank-info { position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px 20px 20px; background: linear-gradient(transparent, rgba(0,0,0,0.9)); }
.main-rank-info h3 { font-size: 1.5rem; margin-bottom: 10px; }
.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-row { display: flex; align-items: center; padding: 15px; background: var(--panel); border-radius: 10px; transition: background 0.3s; }
.rank-row:hover { background: rgba(255,122,26,0.1); }
.rank-num { width: 30px; font-size: 1.2rem; font-weight: bold; color: var(--orange); margin-right: 15px; text-align: center; }
.rank-row:nth-child(1) .rank-num, .rank-row:nth-child(2) .rank-num, .rank-row:nth-child(3) .rank-num { color: #FF3B30; }
.rank-title { flex: 1; font-weight: bold; color: #FFF; }
.rank-bar-wrap { width: 100px; 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(--light-orange), var(--orange)); border-radius: 3px; }

/* Section: UI Preview */
.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.preview-item { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: all 0.3s; background: var(--panel); }
.preview-item:hover { border-color: var(--cyan); box-shadow: 0 0 20px rgba(34,231,255,0.15); }
.preview-img { aspect-ratio: 9/16; background: #222; }
.preview-img img { width: 100%; height: 100%; }
.preview-text { padding: 15px; text-align: center; }

/* Section: AI Assistant */
.ai-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.chat-window { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; height: 400px; }
.chat-head { padding: 15px 20px; border-bottom: 1px solid var(--border); font-weight: bold; color: #FFF; display: flex; align-items: center; gap: 10px; }
.chat-dot { width: 8px; height: 8px; background: #00FF00; border-radius: 50%; }
.chat-body { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; }
.msg { max-width: 80%; padding: 10px 15px; border-radius: 12px; font-size: 0.9rem; }
.msg.bot { background: rgba(255,255,255,0.05); border-bottom-left-radius: 2px; align-self: flex-start; }
.msg.user { background: var(--orange); color: #2A1505; border-bottom-right-radius: 2px; align-self: flex-end; }
.chat-input-area { padding: 15px; border-top: 1px solid var(--border); display: flex; gap: 10px; }
.chat-input-area input { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 20px; padding: 0 15px; color: #FFF; outline: none; }
.chat-input-area input:focus { border-color: var(--orange); }
.send-btn { background: var(--orange); color: #2A1505; border: none; padding: 8px 20px; border-radius: 20px; font-weight: bold; cursor: pointer; }
.typing-cursor::after { content: '|'; animation: blink 1s step-end infinite; color: var(--orange); }
@keyframes blink { 50% { opacity: 0; } }
.ai-features li { margin-bottom: 15px; padding-left: 20px; position: relative; }
.ai-features li::before { content: '✦'; position: absolute; left: 0; color: var(--orange); }

/* Section: Notes */
.notes-list { max-width: 800px; margin: 0 auto; }
.note-item { padding: 20px 25px; border-left: 4px solid var(--orange); background: var(--panel); margin-bottom: 20px; border-radius: 0 8px 8px 0; }
.note-item h3 { font-size: 1.1rem; margin-bottom: 5px; }
.note-item p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0; }

/* Footer */
footer { background: #050403; padding: 60px 0 30px; border-top: 1px solid var(--border); font-size: 0.85rem; color: #666; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.footer-brand img { height: 30px; }
.footer-brand span { color: #FFF; font-size: 1.1rem; font-weight: bold; }
.footer-links h4 { color: #FFF; margin-bottom: 15px; font-size: 0.95rem; }
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.footer-bottom a:hover { color: var(--orange); }
.time-update { font-size: 0.75rem; opacity: 0.5; }

/* Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
.floating { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 2.2rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .radar-layout, .rank-layout, .ai-layout, .footer-grid { grid-template-columns: 1fr; }
  .preview-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .hero-actions { flex-direction: column; width: 100%; max-width: 300px; }
  .hero-actions .btn { width: 100%; }
  .radar-visual { width: 240px; height: 240px; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .lib-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .lib-tabs::-webkit-scrollbar { display: none; }
}