:root {
  --bg: #0a0a0a;
  --bg-card: #161616;
  --pink: #ff4d8d;
  --pink-glow: rgba(255, 77, 141, 0.4);
  --yellow: #ffcc00;
  --text: #f0f0f0;
  --text-muted: #999;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Fruits */
.fruit-container {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: -1; overflow: hidden;
}
.fruit {
  position: absolute; top: -50px; font-size: 24px;
  animation: fall linear infinite;
  opacity: 0.6;
}
@keyframes fall {
  0% { transform: translateY(-10vh) rotate(0deg); }
  100% { transform: translateY(110vh) rotate(360deg); }
}
.fruit:nth-child(1) { left: 10%; animation-duration: 8s; animation-delay: 0s; }
.fruit:nth-child(2) { left: 30%; animation-duration: 12s; animation-delay: 2s; font-size: 18px; }
.fruit:nth-child(3) { left: 50%; animation-duration: 10s; animation-delay: 4s; font-size: 32px; }
.fruit:nth-child(4) { left: 70%; animation-duration: 14s; animation-delay: 1s; }
.fruit:nth-child(5) { left: 90%; animation-duration: 9s; animation-delay: 5s; font-size: 20px; }
.fruit:nth-child(6) { left: 15%; animation-duration: 15s; animation-delay: 7s; font-size: 28px; }
.fruit:nth-child(7) { left: 45%; animation-duration: 11s; animation-delay: 3s; font-size: 16px; }
.fruit:nth-child(8) { left: 85%; animation-duration: 13s; animation-delay: 6s; }

/* Header & Nav */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #222;
}
.header-container {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px; max-width: 1200px; margin: 0 auto;
}
.logo-wrap { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: bold; color: var(--pink); }
.logo-wrap img { height: 32px; border-radius: 8px; }
.menu-btn {
  background: none; border: none; color: var(--text); font-size: 24px;
  cursor: pointer; display: block; outline: none;
}
.nav-links {
  display: none; position: absolute; top: 100%; left: 0; width: 100%;
  background: #111; flex-direction: column; padding: 10px 0;
  border-bottom: 1px solid #333;
}
.nav-links.active { display: flex; }
.nav-links li { text-align: center; padding: 12px 0; }
.nav-links a { color: var(--text-muted); display: block; }
.nav-links a:hover { color: var(--pink); }

/* Hero */
.hero {
  padding: 40px 20px; text-align: center; position: relative;
}
.hero h1 {
  font-size: 32px; line-height: 1.3; margin-bottom: 20px;
  background: linear-gradient(90deg, #fff, var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { color: var(--text-muted); margin-bottom: 30px; font-size: 16px; }
.btn-download {
  display: inline-block; background-color: var(--yellow); color: #000;
  font-weight: bold; font-size: 18px; padding: 14px 40px;
  border-radius: 30px; box-shadow: 0 4px 15px rgba(255, 204, 0, 0.4);
  text-align: center; margin-bottom: 10px;
}
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 204, 0, 0.6); }
.update-time { font-size: 12px; color: #666; margin-top: 10px; }

/* Marquee */
.marquee-wrap {
  background: var(--pink); overflow: hidden; white-space: nowrap;
  padding: 10px 0; margin: 20px 0;
}
.marquee-text {
  display: inline-block; animation: scrollText 20s linear infinite;
  color: #fff; font-weight: bold; font-size: 14px;
}
@keyframes scrollText {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Sections */
section { padding: 50px 20px; max-width: 1200px; margin: 0 auto; }
.section-title {
  text-align: center; font-size: 26px; color: var(--pink); margin-bottom: 10px;
}
.section-desc { text-align: center; color: var(--text-muted); margin-bottom: 30px; font-size: 14px; }

/* Carousel */
.carousel-section { position: relative; padding-bottom: 20px; }
.carousel-container {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  gap: 15px; padding: 20px 10px; scrollbar-width: none;
}
.carousel-container::-webkit-scrollbar { display: none; }
.carousel-item {
  flex: 0 0 70%; max-width: 300px; scroll-snap-align: center;
  position: relative; border-radius: 12px; overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5); cursor: pointer;
}
.carousel-item img { width: 100%; height: 400px; object-fit: cover; }

/* Grid Layouts */
.grid-3, .grid-2 {
  display: grid; gap: 20px;
}
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

.card {
  background: var(--bg-card); border-radius: 12px; overflow: hidden;
  position: relative; cursor: pointer; transition: transform 0.3s;
}
.card:hover { transform: translateY(-5px); }
.card-img-wrap { position: relative; }
.card img { width: 100%; height: 220px; object-fit: cover; }
.card-title { padding: 10px; font-size: 14px; font-weight: bold; text-align: center; }
.card-desc { padding: 0 10px 10px; font-size: 12px; color: var(--text-muted); text-align: center; }

.play-btn {
  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;
  color: #fff; font-size: 24px; pointer-events: none;
}
.play-btn::after { content: ''; display: block; width: 0; height: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 15px solid #fff; margin-left: 5px; }

/* Badge */
.badge-fire {
  position: absolute; bottom: 5px; left: 5px;
  background: rgba(0,0,0,0.6); color: #fff; font-size: 12px;
  padding: 2px 6px; border-radius: 4px; display: flex; align-items: center; gap: 4px;
}
.badge-fire span { color: var(--pink); }

/* Text Content */
.feature-text p { margin-bottom: 15px; color: #ccc; font-size: 15px; line-height: 1.8; }

/* Danmaku */
.danmaku-container {
  position: relative; width: 100%; height: 300px; background: #000; border-radius: 12px; overflow: hidden; margin-bottom: 30px;
}
.danmaku-container img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.danmaku {
  position: absolute; white-space: nowrap; color: #fff; font-weight: bold; text-shadow: 1px 1px 2px #000;
  animation: danmakuMove linear forwards; font-size: 16px;
}
@keyframes danmakuMove {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* FAQ */
.faq-item {
  background: var(--bg-card); margin-bottom: 10px; border-radius: 8px; overflow: hidden;
}
.faq-item summary {
  padding: 15px; cursor: pointer; font-weight: bold; font-size: 15px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; outline: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--pink); font-size: 20px; }
.faq-item[open] summary::after { content: '-'; }
.faq-content { padding: 0 15px 15px; color: var(--text-muted); font-size: 14px; }

/* Comments */
.comment-box {
  background: var(--bg-card); padding: 20px; border-radius: 12px; margin-top: 20px;
}
.comment-form textarea {
  width: 100%; height: 80px; background: #222; border: 1px solid #444;
  border-radius: 8px; color: #fff; padding: 10px; resize: none; margin-bottom: 10px; font-family: inherit;
}
.comment-form button {
  background: var(--pink); color: #fff; border: none; padding: 10px 20px;
  border-radius: 20px; cursor: pointer; font-weight: bold;
}
.comment-list { margin-top: 20px; }
.comment-item { display: flex; gap: 10px; margin-bottom: 15px; }
.comment-item img { width: 40px; height: 40px; border-radius: 50%; }
.comment-info strong { color: var(--pink); font-size: 14px; }
.comment-info p { font-size: 14px; color: #ccc; margin-top: 4px; }

/* Footer */
footer {
  background: #050505; padding: 30px 20px; text-align: center; font-size: 12px; color: #555;
  border-top: 1px solid #111;
}
footer p { margin-bottom: 8px; }
footer a { color: #555; }
footer .about-details { margin-top: 10px; display: inline-block; text-align: left; }
footer .about-details summary {
  cursor: pointer; list-style: none; display: inline-block; margin-bottom: 5px; outline: none;
}
footer .about-details summary::-webkit-details-marker { display: none; }
footer .about-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 5px; justify-content: center; }

/* Modal */
.modal-overlay {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8); z-index: 1000; justify-content: center; align-items: center;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: var(--bg-card); padding: 30px 20px; border-radius: 12px;
  text-align: center; max-width: 350px; width: 90%;
  border: 1px solid #333;
}
.modal-box h3 { margin-bottom: 15px; color: var(--pink); font-size: 20px; }
.modal-box p { margin-bottom: 20px; color: #ccc; font-size: 14px; }
.modal-box .btn-download { font-size: 16px; padding: 10px 30px; margin-bottom: 10px; display: block; width: 100%; }
.modal-box .btn-close { background: #333; color: #fff; border: none; padding: 10px 30px; border-radius: 30px; cursor: pointer; width: 100%; font-size: 14px; }

@media (min-width: 768px) {
  .hero h1 { font-size: 40px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(3, 1fr); }
  .carousel-item { flex: 0 0 45%; max-width: 350px; }
  .carousel-item img { height: 500px; }
  .nav-links { display: flex !important; position: static; flex-direction: row; background: transparent; border: none; padding: 0; gap: 20px; width: auto; }
  .nav-links li { padding: 0; }
  .menu-btn { display: none; }
  .danmaku-container { height: 400px; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 48px; }
  .grid-3 { grid-template-columns: repeat(4, 1fr); }
  .grid-2 { grid-template-columns: repeat(6, 1fr); }
  .carousel-item { flex: 0 0 30%; max-width: 400px; }
  .carousel-item img { height: 600px; }
}