:root {
  --bg-color: #0a0a0a;
  --surface-color: #161616;
  --surface-hover: #222222;
  --primary-red: #e50914;
  --primary-red-dark: #b80710;
  --btn-yellow: #ffcc00;
  --btn-yellow-hover: #ffdb4d;
  --text-main: #f5f5f5;
  --text-muted: #a3a3a3;
  --border-color: #333333;
  --radius-md: 12px;
  --radius-sm: 8px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* 蓝莓下落样式 */
.berry {
  position: fixed;
  top: -50px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #4a6fa5, #1a2b4c);
  pointer-events: none;
  z-index: 0;
  animation: fall linear infinite;
}

@keyframes fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.8; }
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0.2; }
}

/* 导航条 */
.navbar {
  position: sticky;
  top: 0;
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: bold;
  color: var(--text-main);
}

.nav-brand img {
  height: 32px;
  border-radius: 4px;
}

.nav-toggle {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
}

.nav-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  background-color: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
}

.nav-menu.active {
  display: flex;
}

.nav-menu li a {
  display: block;
  padding: 12px 20px;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
}

.nav-menu li a:hover {
  background-color: var(--primary-red-dark);
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
  .nav-menu {
    display: flex;
    flex-direction: row;
    position: static;
    width: auto;
    background: transparent;
    border: none;
    padding: 0;
    gap: 20px;
  }
  .nav-menu li a {
    padding: 0;
    border: none;
    font-size: 15px;
    color: var(--text-muted);
  }
  .nav-menu li a:hover {
    color: var(--primary-red);
    background: transparent;
  }
}

/* 首屏 */
.hero {
  position: relative;
  padding: 60px 20px;
  text-align: center;
  background: radial-gradient(circle at top, rgba(229, 9, 20, 0.15) 0%, var(--bg-color) 70%);
  z-index: 1;
}

.hero h1 {
  font-size: 32px;
  margin-bottom: 20px;
  line-height: 1.3;
  color: var(--text-main);
}

.hero p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 30px;
}

.download-btn {
  display: inline-block;
  background-color: var(--btn-yellow);
  color: #000;
  font-size: 18px;
  font-weight: bold;
  padding: 14px 40px;
  border-radius: 30px;
  transition: transform 0.2s, background-color 0.2s;
  box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3);
}

.download-btn:hover {
  background-color: var(--btn-yellow-hover);
  transform: translateY(-2px);
}

.update-time {
  display: block;
  margin-top: 15px;
  font-size: 12px;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .hero h1 { font-size: 48px; }
  .hero p { font-size: 18px; }
}

/* 轮播图 - 扑克牌展开 */
.carousel-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.carousel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 350px;
  position: relative;
}

.carousel-card {
  position: absolute;
  width: 220px;
  height: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.5s ease, z-index 0.5s;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.1);
}

.carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-card .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid rgba(255,255,255,0.8);
}

.carousel-card .play-icon::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}

@media (min-width: 768px) {
  .carousel-container { height: 450px; }
  .carousel-card { width: 280px; height: 400px; }
}

/* 滚动横幅 */
.marquee-banner {
  background-color: var(--primary-red-dark);
  color: #fff;
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.marquee-content {
  display: inline-block;
  animation: marquee 20s linear infinite;
}

.marquee-content span {
  margin: 0 30px;
  font-size: 14px;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 通用区块 */
.section-container {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 28px;
  margin-bottom: 30px;
  text-align: center;
  color: var(--text-main);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-red);
  border-radius: 2px;
}

/* 黄火剧集 */
.grid-6 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.drama-card {
  background-color: var(--surface-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s;
}

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

.drama-img-wrap {
  position: relative;
  aspect-ratio: 3/4;
}

.drama-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drama-card p {
  padding: 12px;
  font-size: 14px;
  color: var(--text-main);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 768px) {
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid-6 { grid-template-columns: repeat(6, 1fr); }
  .drama-card p { font-size: 13px; }
}

/* 黄火特点 */
.feature-text {
  background-color: var(--surface-color);
  padding: 30px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-red);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
}

/* 热播与排行榜 */
.grid-6-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.list-card {
  background-color: var(--surface-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.list-card .rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--primary-red);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  z-index: 2;
}

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

.list-info {
  padding: 10px;
}

.list-info h3 {
  font-size: 14px;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-info p {
  font-size: 12px;
  color: var(--text-muted);
}

.hot-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 12px;
  color: var(--primary-red);
}

@media (min-width: 768px) {
  .grid-6-list { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid-6-list { grid-template-columns: repeat(6, 1fr); }
}

/* 弹幕播放器 */
.player-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  background-color: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.player-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.danmaku-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.danmaku-item {
  position: absolute;
  white-space: nowrap;
  color: #fff;
  font-weight: bold;
  text-shadow: 1px 1px 2px #000;
  font-size: 16px;
  animation: danmaku-move linear forwards;
}

@keyframes danmaku-move {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* 黄火历程 */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background-color: var(--primary-red-dark);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--primary-red);
  border: 2px solid var(--bg-color);
}

.timeline-content {
  background-color: var(--surface-color);
  padding: 20px;
  border-radius: var(--radius-md);
}

.timeline-content h3 {
  color: var(--primary-red);
  margin-bottom: 10px;
  font-size: 18px;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 14px;
}

/* 常见问题 */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--surface-color);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-question {
  padding: 15px 20px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--surface-hover);
}

.faq-question::after {
  content: '+';
  font-size: 20px;
  color: var(--primary-red);
}

.faq-item.active .faq-question::after {
  content: '-';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 20px;
  color: var(--text-muted);
  font-size: 14px;
}

.faq-item.active .faq-answer {
  padding: 15px 20px;
}

/* 网友热议 */
.comments-section {
  max-width: 800px;
  margin: 0 auto;
}

.comment-form {
  background-color: var(--surface-color);
  padding: 20px;
  border-radius: var(--radius-md);
  margin-bottom: 30px;
}

.comment-form textarea {
  width: 100%;
  height: 100px;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px;
  color: var(--text-main);
  resize: none;
  margin-bottom: 10px;
  font-family: inherit;
}

.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary-red);
}

.comment-form button {
  background-color: var(--primary-red);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.comment-item {
  display: flex;
  gap: 15px;
  background-color: var(--surface-color);
  padding: 15px;
  border-radius: var(--radius-md);
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-content {
  flex-grow: 1;
}

.comment-content strong {
  display: block;
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 5px;
}

.comment-content p {
  font-size: 14px;
  color: var(--text-muted);
}

/* 页脚 */
footer {
  padding: 30px 20px;
  text-align: center;
  border-top: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

footer p {
  margin-bottom: 10px;
}

footer a {
  color: var(--text-muted);
}

footer a:hover {
  color: var(--text-main);
}

/* 弹窗 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--surface-color);
  padding: 30px;
  border-radius: var(--radius-md);
  text-align: center;
  max-width: 80%;
  border: 1px solid var(--border-color);
}

.modal-box h3 {
  margin-bottom: 15px;
  color: var(--text-main);
}

.modal-box p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.modal-box a {
  display: inline-block;
  background-color: var(--primary-red);
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: bold;
}