:root {
  --teal-deep: #0D9488;
  --teal-mint: #5EEAD4;
  --bg-dark: #0F172A;
  --bg-light: #F0FDF4;
  --gold: #FBBF24;
  --gradient-brand: linear-gradient(135deg, #0D9488 0%, #5EEAD4 100%);
  --text-main: #1F2937;
  --text-muted: #4B5563;
  --border-radius-lg: 24px;
  --border-radius-md: 16px;
  --border-radius-sm: 8px;
  --content-width: 1240px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* 顶部导航栏 */
.site-header {
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 36px;
  width: auto;
  border-radius: 6px;
}

.brand-name {
  font-size: 24px;
  font-weight: 900;
  color: #000;
  letter-spacing: 1px;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: var(--teal-deep);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-box {
  display: flex;
  align-items: center;
  background: #F3F4F6;
  border-radius: 20px;
  padding: 8px 16px;
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  width: 140px;
}

.search-box svg {
  width: 16px;
  height: 16px;
  fill: #9CA3AF;
}

.btn-gradient {
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  transition: opacity 0.3s, transform 0.3s;
  display: inline-block;
  text-align: center;
}

.btn-gradient:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* 首屏沉浸巨幕 */
.hero-banner {
  background-color: var(--bg-dark);
  color: #fff;
  padding: 80px 0;
  overflow: hidden;
  position: relative;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-text {
  flex: 1;
  max-width: 520px;
}

.hero-text h1 {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero-text h1 span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: 18px;
  color: #9CA3AF;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid #4B5563;
  padding: 12px 28px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.3s;
}

.btn-outline:hover {
  border-color: var(--teal-mint);
  color: var(--teal-mint);
}

.hero-visual {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.hero-floating-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  backdrop-filter: blur(10px);
  display: flex;
  gap: 16px;
  transform: rotate(-3deg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.hero-poster-small {
  width: 120px;
  height: 170px;
  border-radius: 12px;
  object-fit: cover;
}

.hero-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-info h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.hero-info p {
  font-size: 13px;
  color: var(--teal-mint);
  margin-bottom: 16px;
}

/* 动态气泡导航 */
.bubble-nav-section {
  padding: 60px 0;
  background: #fff;
}

.bubble-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.bubble {
  background: var(--gradient-brand);
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
  transition: transform 0.3s;
  cursor: default;
}

.bubble:nth-child(2n) {
  padding: 14px 30px;
  font-size: 17px;
}

.bubble:nth-child(3n) {
  padding: 10px 20px;
  font-size: 14px;
  opacity: 0.9;
}

/* 院线抢鲜看 */
.cinema-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-muted);
}

.cinema-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
}

.cinema-main-poster {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.cinema-main-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3/4;
}

.badge-gold {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gold);
  color: #000;
  font-weight: bold;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 4px;
}

.cinema-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.movie-card {
  background: #fff;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.movie-card:hover {
  transform: translateY(-5px);
}

.movie-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.movie-card-info {
  padding: 16px;
}

.movie-card-info h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.movie-card-info p {
  font-size: 13px;
  color: var(--text-muted);
}

/* 竖版卡片列表样式复用 */
.poster-card {
  flex: 0 0 calc(20% - 20px);
  min-width: 180px;
  background: #fff;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.poster-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.poster-card-info {
  padding: 12px;
}

.poster-card-info h3 {
  font-size: 15px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poster-card-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 爆款剧集 */
.trending-section {
  padding: 80px 0;
  background: #fff;
}

.trending-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 20px;
  scrollbar-width: none;
}

.trending-scroll::-webkit-scrollbar {
  display: none;
}

.progress-bar-wrap {
  width: 100%;
  height: 4px;
  background: #E5E7EB;
  border-radius: 2px;
  margin-top: 8px;
}

.progress-bar {
  height: 100%;
  background: var(--teal-deep);
  border-radius: 2px;
  width: 65%;
}

/* 3D魔方与口碑神作共用深色基调 */
.dark-section {
  background: var(--bg-dark);
  color: #fff;
  padding: 80px 0;
}

.dark-section .section-header h2 {
  color: #fff;
}
.dark-section .section-header p {
  color: #9CA3AF;
}

/* 口碑神作 */
.masterpiece-layout {
  display: flex;
  align-items: center;
  gap: 60px;
}

.score-display {
  flex: 1;
  text-align: center;
}

.score-number {
  font-size: 100px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
  font-family: "Georgia", serif;
}

.masterpiece-wall {
  flex: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.wall-item {
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

.wall-item img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
}

/* 倍速爽剧 */
.speed-section {
  background: #F8FAFC;
  padding: 80px 0;
}

.speed-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.speed-card {
  position: relative;
}

.speed-card img {
  border-radius: var(--border-radius-md);
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transform: skewY(-4deg);
  transition: transform 0.3s;
}

.speed-card:hover img {
  transform: skewY(0);
}

.speed-badge {
  position: absolute;
  bottom: 20px;
  right: -10px;
  background: #000;
  color: #fff;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  border: 2px solid var(--teal-mint);
}

/* 动漫区 */
.anime-section {
  background: linear-gradient(135deg, #E0F2FE 0%, #F0FDF4 100%);
  padding: 80px 0;
}

/* APP下载区 */
.app-download-section {
  background: var(--bg-dark);
  padding: 100px 0;
  text-align: center;
  color: #fff;
}

.app-download-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.app-logo-glow {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(94, 234, 212, 0.4);
  margin-bottom: 32px;
}

.app-download-section h2 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 16px;
}

.app-download-section p {
  color: #9CA3AF;
  font-size: 16px;
  max-width: 600px;
  margin-bottom: 40px;
}

.download-btns {
  display: flex;
  gap: 20px;
}

.btn-large {
  padding: 16px 48px;
  font-size: 18px;
  border-radius: 50px;
}

/* 综艺大赏 */
.variety-section {
  padding: 80px 0;
}

.variety-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.variety-main {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.variety-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 资源分区 */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  text-align: center;
}

.genre-item {
  background: #fff;
  padding: 24px 12px;
  border-radius: var(--border-radius-md);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  font-weight: 600;
  color: #333;
  border-bottom: 3px solid transparent;
  transition: border-color 0.3s;
}

.genre-item:hover {
  border-color: var(--teal-deep);
  color: var(--teal-deep);
}

/* 智能推荐 */
.smart-match-section {
  padding: 80px 0;
  background: #fff;
}

.smart-match-layout {
  display: flex;
  gap: 60px;
  align-items: center;
}

.smart-match-text {
  flex: 1;
}

.smart-match-text h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.smart-match-text p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 16px;
}

.smart-match-visual {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.radar-ping {
  width: 300px;
  height: 300px;
  border: 2px dashed rgba(13, 148, 136, 0.3);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.radar-center-img {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* 弹幕广场 */
.danmaku-section {
  background: #000;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.danmaku-screen {
  max-width: 800px;
  margin: 0 auto;
  background: #111;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  position: relative;
}

.danmaku-screen img {
  width: 100%;
  opacity: 0.8;
}

.danmaku {
  position: absolute;
  white-space: nowrap;
  font-weight: bold;
  font-size: 18px;
  text-shadow: 1px 1px 2px #000;
}

.danmaku.dm-teal { color: var(--teal-mint); top: 20%; }
.danmaku.dm-gold { color: var(--gold); top: 50%; }

/* 排行榜 */
.ranking-section {
  padding: 80px 0;
}

.ranking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.ranking-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #E5E7EB;
}

.rank-num {
  font-size: 24px;
  font-weight: 900;
  font-style: italic;
  color: var(--teal-deep);
  width: 40px;
}

.rank-num.top-3 {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 28px;
}

.rank-title {
  font-weight: 600;
  font-size: 16px;
}

/* FAQ */
.faq-section {
  padding: 80px 0;
  background: #fff;
}

.faq-item {
  border-bottom: 1px solid #E5E7EB;
  padding: 24px 0;
}

.faq-q {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 600;
  color: #111;
  cursor: pointer;
}

.faq-a {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: #9CA3AF;
  padding: 60px 0 30px;
  font-size: 14px;
  border-top: none;
  position: relative;
}

.footer-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-brand);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a:hover {
  color: var(--teal-mint);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #1F2937;
  padding-top: 24px;
  font-size: 13px;
  color: #6B7280;
}

.footer-bottom a {
  color: #9CA3AF;
  margin: 0 4px;
}

.update-time {
  margin-top: 8px;
  font-size: 12px;
}

/* 响应式 1024px */
@media (max-width: 1024px) {
  .hero-text h1 { font-size: 36px; }
  .hero-floating-card { display: none; } /* 空间不足隐藏悬浮卡片 */
  .cinema-layout { grid-template-columns: 1fr; }
  .masterpiece-layout { flex-direction: column; gap: 40px; }
  .genre-grid { grid-template-columns: repeat(3, 1fr); }
  .speed-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; } /* 平板端收起导航 */
}

/* 响应式 768px */
@media (max-width: 768px) {
  .header-right .search-box { display: none; } /* 小屏收起搜索 */
  .header-inner { justify-content: space-between; }
  .hero-banner { padding: 40px 0; }
  .hero-text h1 { font-size: 28px; }
  .hero-actions { flex-direction: column; }
  .cinema-grid { grid-template-columns: 1fr 1fr; } /* 移动端保持两列 */
  .poster-card { flex: 0 0 calc(50% - 12px); }
  .masterpiece-wall { grid-template-columns: repeat(2, 1fr); }
  .genre-grid { grid-template-columns: repeat(2, 1fr); }
  .smart-match-layout { flex-direction: column; }
  .ranking-grid { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; gap: 24px; }
  .download-btns { flex-direction: column; width: 100%; }
  .variety-layout { grid-template-columns: 1fr; }
  .speed-grid { grid-template-columns: 1fr; }
}