:root {
  --bg-deep: #0a0c10;
  --bg-panel: #11151c;
  --bg-card: #161b24;
  --border: #232a36;
  --brand-blue: #6c8ea8;
  --brand-gold: #c9a96a;
  --text-main: #e2e8f0;
  --text-sub: #8892a0;
  --text-dim: #5a6472;
  --radius: 8px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 64px;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; object-fit: cover; }

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--brand-gold); width: 0%; z-index: 9999;
  transition: width 0.1s linear;
}

.container {
  max-width: 1280px; margin: 0 auto; padding: 0 var(--space-md);
}

.section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: var(--space-lg); padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}
.section-header h2 { font-size: 1.5rem; font-weight: 600; color: var(--text-main); }
.section-header .more-link { font-size: 0.9rem; color: var(--text-sub); transition: var(--transition); }
.section-header .more-link:hover { color: var(--brand-gold); }

/* 顶部导航 */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(10, 12, 16, 0.7); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: var(--transition);
}
.navbar.scrolled { border-bottom-color: var(--border); background: rgba(10, 12, 16, 0.95); }
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 var(--space-md);
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: var(--space-sm); font-weight: 700; font-size: 1.1rem; }
.brand img { height: 32px; width: auto; border-radius: 4px; }
.nav-links { display: flex; gap: var(--space-lg); }
.nav-links a { color: var(--text-sub); font-size: 0.95rem; transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--text-main); }
.nav-actions { display: flex; align-items: center; gap: var(--space-md); }
.search-box {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px;
  padding: 6px 12px; color: var(--text-main); outline: none; width: 160px;
  font-size: 0.85rem; transition: var(--transition);
}
.search-box:focus { border-color: var(--brand-blue); width: 200px; }
.btn-download {
  color: var(--brand-gold); font-size: 0.9rem; font-weight: 600;
  padding: 6px 16px; border: 1px solid var(--brand-gold); border-radius: 4px;
  transition: var(--transition);
}
.btn-download:hover { background: var(--brand-gold); color: var(--bg-deep); }

/* 首屏 */
.hero {
  padding-top: 100px; padding-bottom: var(--space-xl);
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-panel) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
.hero-main {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-lg); display: flex; gap: var(--space-lg);
}
.hero-poster {
  width: 200px; flex-shrink: 0; border-radius: var(--radius); overflow: hidden;
}
.hero-poster img { width: 100%; height: 100%; object-fit: cover; }
.hero-info { display: flex; flex-direction: column; justify-content: center; }
.hero-info h1 { font-size: 2rem; margin-bottom: var(--space-sm); line-height: 1.3; }
.tag-row { display: flex; gap: var(--space-sm); margin-bottom: var(--space-md); flex-wrap: wrap; }
.tag { font-size: 0.75rem; color: var(--brand-blue); background: rgba(108, 142, 168, 0.1); padding: 2px 8px; border-radius: 4px; }
.meta-line { font-size: 0.85rem; color: var(--text-sub); margin-bottom: var(--space-sm); }
.desc { font-size: 0.9rem; color: var(--text-sub); margin-bottom: var(--space-lg); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.btn-group { display: flex; gap: var(--space-md); }
.btn-primary {
  background: var(--brand-gold); color: var(--bg-deep); padding: 10px 24px;
  border-radius: 4px; font-weight: 600; font-size: 0.95rem; border: none; cursor: pointer;
  transition: var(--transition); display: inline-block; text-align: center;
}
.btn-primary:hover { background: #dfc28a; }
.btn-secondary {
  background: transparent; color: var(--text-main); padding: 10px 24px;
  border-radius: 4px; font-weight: 600; font-size: 0.95rem; border: 1px solid var(--border);
  cursor: pointer; transition: var(--transition);
}
.btn-secondary:hover { border-color: var(--text-sub); }

/* 播放器卡片 */
.player-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-md); display: flex; flex-direction: column;
}
.video-placeholder {
  width: 100%; aspect-ratio: 16/9; background: #000; border-radius: var(--radius);
  position: relative; overflow: hidden; margin-bottom: var(--space-md);
}
.video-placeholder img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 60px; height: 60px; background: rgba(201, 169, 106, 0.8); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: var(--transition);
}
.play-btn::after {
  content: ''; display: block; width: 0; height: 0;
  border-top: 12px solid transparent; border-bottom: 12px solid transparent;
  border-left: 18px solid var(--bg-deep); margin-left: 6px;
}
.play-btn:hover { background: var(--brand-gold); transform: translate(-50%, -50%) scale(1.1); }
.progress-bar {
  width: 100%; height: 4px; background: var(--border); border-radius: 2px;
  margin-bottom: var(--space-md); overflow: hidden; position: relative;
}
.progress-fill {
  height: 100%; background: var(--brand-gold); width: 30%;
  animation: progressLoop 4s infinite linear;
}
@keyframes progressLoop {
  0% { width: 0%; }
  100% { width: 100%; }
}
.episode-strip {
  display: flex; gap: var(--space-sm); overflow-x: auto; padding-bottom: var(--space-sm);
}
.ep-thumb {
  flex-shrink: 0; width: 80px; border: 2px solid transparent; border-radius: 4px;
  overflow: hidden; cursor: pointer; transition: var(--transition); position: relative;
}
.ep-thumb img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.ep-thumb span {
  position: absolute; bottom: 0; left: 0; width: 100%; background: rgba(0,0,0,0.6);
  color: var(--text-main); font-size: 0.7rem; text-align: center; padding: 2px 0;
}
.ep-thumb.active { border-color: var(--brand-gold); }
.ep-thumb:hover { border-color: var(--brand-blue); }

/* 今日更新小列表 */
.today-update-list { margin-top: var(--space-md); border-top: 1px solid var(--border); padding-top: var(--space-md); }
.today-update-list h3 { font-size: 1rem; margin-bottom: var(--space-sm); color: var(--text-sub); }
.update-item {
  display: flex; gap: var(--space-md); align-items: center; padding: var(--space-sm) 0;
  border-radius: 4px; transition: var(--transition); cursor: pointer;
}
.update-item.highlight { background: rgba(108, 142, 168, 0.1); }
.update-item img { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; }
.update-info { flex: 1; display: flex; justify-content: space-between; align-items: center; }
.update-info h4 { font-size: 0.85rem; font-weight: 500; }
.update-info span { font-size: 0.75rem; color: var(--text-dim); }

/* 滚动最新上线 */
.recent-strip {
  margin-top: var(--space-lg); overflow: hidden; white-space: nowrap; padding: var(--space-sm) 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.recent-track { display: inline-flex; gap: var(--space-md); animation: scrollMarquee 30s linear infinite; }
.recent-track:hover { animation-play-state: paused; }
.recent-track img { width: 60px; height: 80px; border-radius: 4px; object-fit: cover; opacity: 0.8; transition: var(--transition); }
.recent-track img:hover { opacity: 1; transform: scale(1.05); }
@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 排行榜 */
.section {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border);
}
.section.alt-bg { background: var(--bg-panel); }

.tabs { display: flex; gap: var(--space-lg); margin-bottom: var(--space-lg); border-bottom: 1px solid var(--border); }
.tab-btn {
  background: none; border: none; color: var(--text-sub); font-size: 1rem; font-weight: 500;
  padding: var(--space-sm) 0; cursor: pointer; position: relative; transition: var(--transition);
}
.tab-btn.active { color: var(--brand-gold); }
.tab-btn.active::after {
  content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px;
  background: var(--brand-gold);
}

.rank-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.rank-item {
  display: flex; align-items: center; padding: var(--space-md);
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  transition: var(--transition); animation: fadeIn 0.4s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.rank-item:hover { border-color: var(--border); transform: translateX(4px); }
.rank-num {
  width: 36px; font-size: 1.25rem; font-weight: 700; color: var(--text-dim); text-align: center; margin-right: var(--space-md);
}
.rank-num.top-3 { color: var(--brand-gold); }
.rank-item img { width: 50px; height: 70px; border-radius: 4px; object-fit: cover; margin-right: var(--space-md); }
.rank-info { flex: 1; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; align-items: center; }
.rank-title { font-size: 1rem; font-weight: 500; }
.rank-tags { display: flex; gap: var(--space-sm); }
.rank-tags span { font-size: 0.75rem; color: var(--text-sub); }
.rank-heat { font-size: 0.85rem; color: var(--brand-gold); }
.rank-status { font-size: 0.85rem; color: var(--text-dim); text-align: right; }

/* 双男主专区 */
.genre-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--space-md); margin-bottom: var(--space-lg); }
.genre-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-lg) var(--space-md); text-align: center; cursor: pointer;
  transition: var(--transition);
}
.genre-card:hover { border-color: var(--brand-blue); background: rgba(108, 142, 168, 0.05); }
.genre-card h3 { font-size: 1.1rem; margin-bottom: var(--space-sm); }
.genre-card span { font-size: 0.8rem; color: var(--text-sub); }

/* 剧集墙 */
.poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-lg); }
.poster-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: var(--transition); position: relative;
}
.poster-card:hover { transform: translateY(-6px); border-color: var(--border); box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.poster-img-wrap { width: 100%; aspect-ratio: 3/4; overflow: hidden; position: relative; }
.poster-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.poster-card:hover .poster-img-wrap img { transform: scale(1.05); }
.poster-play-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
}
.poster-card:hover .poster-play-overlay { opacity: 1; }
.poster-info { padding: var(--space-md); }
.poster-info h3 { font-size: 1rem; margin-bottom: var(--space-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poster-meta { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-sub); }

/* 详情选集 */
.detail-card {
  display: flex; gap: var(--space-lg); background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-lg);
}
.detail-poster { width: 240px; flex-shrink: 0; border-radius: var(--radius); overflow: hidden; }
.detail-poster img { width: 100%; height: auto; }
.detail-info { flex: 1; display: flex; flex-direction: column; }
.detail-info h2 { font-size: 1.8rem; margin-bottom: var(--space-sm); }
.detail-meta { display: flex; gap: var(--space-md); align-items: center; margin-bottom: var(--space-md); font-size: 0.9rem; color: var(--text-sub); }
.stars { color: var(--brand-gold); letter-spacing: 2px; }
.detail-desc { font-size: 0.9rem; color: var(--text-sub); margin-bottom: var(--space-lg); line-height: 1.8; }
.actor-list { display: flex; gap: var(--space-md); margin-bottom: var(--space-lg); }
.actor-tag { background: var(--bg-panel); padding: 4px 12px; border-radius: 20px; font-size: 0.85rem; border: 1px solid var(--border); }
.episode-scroll { display: flex; gap: var(--space-sm); overflow-x: auto; padding-bottom: var(--space-md); margin-bottom: var(--space-md); }
.ep-btn {
  flex-shrink: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: 4px;
  color: var(--text-sub); font-size: 0.9rem; cursor: pointer; transition: var(--transition);
}
.ep-btn:hover { border-color: var(--brand-blue); color: var(--text-main); }
.ep-btn.active { background: var(--brand-gold); color: var(--bg-deep); border-color: var(--brand-gold); font-weight: 600; }

/* 平台数据 */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); text-align: center; margin-bottom: var(--space-xl); }
.stat-item h3 { font-size: 2.5rem; color: var(--brand-gold); font-weight: 700; margin-bottom: var(--space-sm); }
.stat-item p { font-size: 0.9rem; color: var(--text-sub); }
.logo-marquee { overflow: hidden; white-space: nowrap; padding: var(--space-lg) 0; border-top: 1px solid var(--border); }
.logo-track { display: inline-flex; gap: var(--space-xl); align-items: center; animation: scrollMarquee 20s linear infinite; }
.logo-track span { color: var(--text-dim); font-size: 1.2rem; font-weight: 600; opacity: 0.6; }

/* 评价 */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.review-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-lg); display: flex; flex-direction: column;
}
.review-header { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-md); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-sub); font-weight: 600; }
.review-name { font-size: 0.95rem; font-weight: 500; }
.review-stars { font-size: 0.85rem; color: var(--brand-gold); }
.review-text { font-size: 0.9rem; color: var(--text-sub); flex: 1; margin-bottom: var(--space-md); }
.review-footer { font-size: 0.8rem; color: var(--text-dim); display: flex; justify-content: space-between; }

/* 演员 */
.actor-scroll {
  display: flex; gap: var(--space-lg); overflow-x: auto; padding-bottom: var(--space-md);
}
.actor-card {
  flex-shrink: 0; width: 160px; text-align: center;
}
.actor-photo { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto var(--space-md); overflow: hidden; border: 2px solid var(--border); transition: var(--transition); }
.actor-card:hover .actor-photo { border-color: var(--brand-gold); transform: translateY(-4px); }
.actor-photo img { width: 100%; height: 100%; object-fit: cover; }
.actor-card h4 { font-size: 1rem; margin-bottom: 4px; }
.actor-card p { font-size: 0.8rem; color: var(--text-sub); }

/* 下载 */
.download-section { display: flex; gap: var(--space-xl); align-items: center; }
.phone-mockups { flex: 1; display: flex; gap: var(--space-md); justify-content: center; }
.phone-frame {
  width: 140px; height: 280px; border: 4px solid var(--border); border-radius: 20px;
  overflow: hidden; background: var(--bg-panel); position: relative;
}
.phone-frame img { width: 100%; height: 100%; object-fit: cover; }
.feature-list { flex: 1; display: flex; flex-direction: column; gap: var(--space-lg); }
.feature-item { display: flex; gap: var(--space-md); align-items: flex-start; }
.feature-icon {
  width: 40px; height: 40px; background: rgba(201, 169, 106, 0.1); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; color: var(--brand-gold); font-size: 1.2rem; flex-shrink: 0;
}
.feature-text h4 { font-size: 1.1rem; margin-bottom: 4px; }
.feature-text p { font-size: 0.9rem; color: var(--text-sub); }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; color: var(--text-main);
  padding: var(--space-lg) 0; font-size: 1.1rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  transition: var(--transition);
}
.faq-q:hover { color: var(--brand-gold); }
.faq-q::after { content: '+'; font-size: 1.5rem; color: var(--text-sub); transition: var(--transition); }
.faq-item.open .faq-q::after { transform: rotate(45deg); color: var(--brand-gold); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--text-sub); font-size: 0.95rem; line-height: 1.8; }
.faq-item.open .faq-a { max-height: 200px; padding-bottom: var(--space-lg); }

/* CTA & 页脚 */
.cta-banner {
  background: linear-gradient(90deg, var(--bg-panel), var(--bg-card));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: var(--space-xl) 0; text-align: center;
}
.cta-banner h2 { font-size: 2rem; margin-bottom: var(--space-lg); }
.footer { padding: var(--space-xl) 0 var(--space-lg); background: var(--bg-deep); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); margin-bottom: var(--space-xl); }
.footer-col h4 { font-size: 1rem; color: var(--text-main); margin-bottom: var(--space-md); }
.footer-col a { display: block; color: var(--text-sub); font-size: 0.85rem; margin-bottom: var(--space-sm); transition: var(--transition); }
.footer-col a:hover { color: var(--brand-gold); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: var(--space-lg);
  text-align: center; font-size: 0.8rem; color: var(--text-dim);
  display: flex; flex-direction: column; gap: var(--space-sm);
}
.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--text-sub); }

/* 浮动反馈 */
.floating-btn {
  position: fixed; bottom: 40px; right: 40px; width: 56px; height: 56px;
  background: var(--brand-gold); border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.4); z-index: 1000;
  transition: var(--transition); color: var(--bg-deep); font-weight: 700;
}
.floating-btn:hover { transform: scale(1.1); }
.feedback-modal {
  position: fixed; bottom: 110px; right: 40px; width: 320px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-lg); z-index: 1000;
  opacity: 0; visibility: hidden; transform: translateY(20px) scale(0.95);
  transition: var(--transition); box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.feedback-modal.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.feedback-modal h3 { font-size: 1.1rem; margin-bottom: var(--space-md); }
.feedback-modal input, .feedback-modal textarea {
  width: 100%; background: var(--bg-deep); border: 1px solid var(--border);
  border-radius: 4px; padding: 8px 12px; color: var(--text-main); margin-bottom: var(--space-md);
  outline: none; font-family: inherit; resize: vertical;
}
.feedback-modal input:focus, .feedback-modal textarea:focus { border-color: var(--brand-blue); }
.feedback-modal .btn-primary { width: 100%; }

/* 响应式 */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { flex-direction: column; align-items: center; text-align: center; }
  .hero-poster { width: 160px; }
  .tag-row { justify-content: center; }
  .btn-group { justify-content: center; }
  .rank-info { grid-template-columns: 1fr 1fr; gap: 8px; }
  .download-section { flex-direction: column; }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
  .detail-card { flex-direction: column; align-items: center; text-align: center; }
  .detail-poster { width: 180px; }
  .detail-meta { justify-content: center; }
  .actor-list { justify-content: center; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .search-box { width: 120px; }
  .poster-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--space-md); }
  .review-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .rank-info { grid-template-columns: 1fr; gap: 4px; }
  .rank-item img { width: 40px; height: 56px; }
  .floating-btn { bottom: 20px; right: 20px; }
  .feedback-modal { right: 20px; bottom: 90px; width: calc(100% - 40px); }
  .phone-mockups { flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; }
}