:root {
  --bg-color: #e8f4f8;
  --primary-cyan: #00b4d8;
  --primary-yellow: #ffca3a;
  --btn-red: #ff4d4d;
  --btn-red-hover: #e63939;
  --text-dark: #1a2b3c;
  --text-light: #5e6f7c;
  --card-bg: #ffffff;
  --border-color: #cbe3ec;
  --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Header & Nav */
.header {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-cyan);
}
.logo-wrap img { height: 32px; width: auto; }
.nav-toggle {
  background: var(--primary-cyan);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  display: block;
}
.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  padding: 10px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.nav-menu.active { display: block; }
.nav-menu ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 20px;
}
.nav-menu a {
  font-size: 15px;
  color: var(--text-dark);
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

/* Hero */
.hero {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #d4f1f9 0%, #e8f4f8 100%);
}
.hero h1 {
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--primary-cyan);
}
.hero p {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.download-btn {
  display: inline-block;
  background: var(--btn-red);
  color: #fff;
  padding: 14px 36px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(255, 77, 77, 0.3);
  transition: transform 0.2s, background 0.2s;
}
.download-btn:hover {
  background: var(--btn-red-hover);
  transform: translateY(-2px);
}
.time-wrap {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-light);
}

/* Carousel */
.carousel-section {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  gap: 15px;
  transition: transform 0.4s ease;
}
.carousel-card {
  flex: 0 0 80%;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  cursor: pointer;
}
.carousel-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 3/4;
}
.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.3);
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-icon::after {
  content: '';
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}

/* Scrolling Banner */
.scroll-banner {
  background: var(--primary-cyan);
  color: #fff;
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 14px;
}
.scroll-text {
  display: inline-block;
  animation: scroll-left 20s linear infinite;
}
@keyframes scroll-left {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Sections */
.section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  font-size: 22px;
  text-align: center;
  margin-bottom: 24px;
  color: var(--text-dark);
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--primary-yellow);
  margin: 8px auto 0;
  border-radius: 2px;
}

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.grid-3 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}
.card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  cursor: pointer;
}
.card-text {
  padding: 12px;
  font-size: 14px;
  color: var(--text-dark);
  flex-grow: 1;
}

/* Feature Section */
.feature-text {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dark);
  border-left: 4px solid var(--primary-yellow);
}

/* Hot Section */
.hot-item { position: relative; }
.hot-item .card-text { padding: 10px; font-size: 13px; color: var(--primary-cyan); font-weight: bold; }

/* Ranking */
.rank-item { position: relative; }
.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary-yellow);
  color: var(--text-dark);
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 12px;
}
.rank-stats {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-light);
  padding: 10px;
}

/* Danmu Section */
.video-player-box {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  background: #000;
}
.video-player-box img { width: 100%; aspect-ratio: 16/9; object-fit: cover; opacity: 0.8; }
.danmu-layer {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  overflow: hidden;
}
.danmu-item {
  position: absolute;
  white-space: nowrap;
  color: #fff;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
  animation: danmu-move 8s linear infinite;
}
@keyframes danmu-move {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* History */
.history-text {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dark);
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
details {
  background: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
}
summary {
  font-weight: bold;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  font-size: 20px;
  color: var(--primary-cyan);
}
details[open] summary::after { content: '-'; }
.faq-answer {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
}

/* Comments */
.comments-section { background: #fff; padding: 20px; border-radius: var(--radius); }
.comment-list { margin-bottom: 20px; }
.comment-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: contain; background: #f0f0f0; padding: 4px; }
.comment-content { flex: 1; }
.comment-user { font-weight: bold; font-size: 14px; margin-bottom: 4px; }
.comment-text { font-size: 14px; color: var(--text-light); }
.comment-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
  margin-bottom: 10px;
}
.comment-form button {
  background: var(--primary-cyan);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
}

/* Footer */
.footer {
  background: #fff;
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;
  border-top: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--text-light);
}
.footer a { color: var(--text-light); }
.footer-details {
  margin: 10px 0;
}
.footer-details summary {
  display: inline-block;
  cursor: pointer;
  font-size: 12px;
}
.site-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.site-links a { font-size: 12px; color: var(--primary-cyan); }

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius);
  text-align: center;
  max-width: 80%;
  width: 320px;
}
.modal-content p { margin-bottom: 20px; font-size: 16px; }
.modal-content .download-btn { padding: 10px 24px; font-size: 16px; }

/* Responsive */
@media (min-width: 768px) {
  .hero h1 { font-size: 36px; }
  .carousel-card { flex: 0 0 45%; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .nav-toggle { display: none; }
  .nav-menu {
    display: block !important;
    position: static;
    box-shadow: none;
    width: auto;
  }
  .nav-menu ul { flex-direction: row; padding: 0; gap: 20px; }
  .nav-menu a { border: none; padding: 0; font-size: 15px; }
  .danmu-item { font-size: 18px; }
}

@media (min-width: 1024px) {
  .carousel-card { flex: 0 0 30%; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .section-title { font-size: 26px; }
}