:root {
  --bg: #0a0a0c;
  --bg-card: #151518;
  --pink: #ff3b7a;
  --pink-light: #ff7da8;
  --yellow: #ffc400;
  --text: #f0f0f2;
  --text-muted: #9a9aa5;
  --border: #2a2a30;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
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;
  position: relative;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* Fruit falling background */
.fruit-bg {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.fruit {
  position: absolute;
  top: -50px;
  background: var(--pink);
  border-radius: 50% 0 50% 50%;
  opacity: 0.15;
  animation: fall linear infinite;
}
.fruit::after {
  content: '';
  position: absolute;
  top: -4px; right: 4px;
  width: 8px; height: 4px;
  background: #4caf50;
  border-radius: 4px;
  transform: rotate(-30deg);
}
@keyframes fall {
  to { transform: translateY(110vh) rotate(360deg); }
}

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: bold;
  color: var(--pink);
}
.brand img { height: 32px; width: auto; border-radius: 6px; }
.nav-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
}
.nav-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(15, 15, 18, 0.98);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
}
.nav-menu.active { display: flex; }
.nav-menu a {
  padding: 10px 0;
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 15px;
}
.nav-menu a:hover { color: var(--pink); }

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 20px 40px;
}
.hero h1 {
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #fff, var(--pink-light));
  -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: var(--yellow);
  color: #111;
  font-weight: bold;
  font-size: 18px;
  padding: 14px 40px;
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(255, 196, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 196, 0, 0.5);
}
.update-time {
  display: block;
  margin-top: 15px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Marquee */
.marquee-wrap {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 12px 0;
  margin: 30px 0;
  white-space: nowrap;
}
.marquee-content {
  display: inline-block;
  animation: marquee 20s linear infinite;
  color: var(--pink-light);
  font-size: 14px;
}
.marquee-content span { margin: 0 30px; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Common Section */
section {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  font-size: 24px;
  margin-bottom: 24px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  display: block;
  width: 6px;
  height: 24px;
  background: var(--pink);
  border-radius: 3px;
}

/* Carousel */
.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: var(--bg-card);
}
.carousel-track {
  display: flex;
  transition: transform 0.4s ease-out;
}
.carousel-item {
  flex: 0 0 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
  overflow: hidden;
}
.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s;
}
.play-btn:hover { background: rgba(255, 59, 122, 0.8); }
.play-btn::after {
  content: '';
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
  margin-left: 6px;
}
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: #fff;
  font-size: 20px;
  user-select: none;
}
.carousel-nav.prev { left: 10px; }
.carousel-nav.next { right: 10px; }

/* Grid Cards */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
.card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.card-img-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
}
.card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.card-info {
  padding: 12px;
}
.card-info p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Features */
.feature-text {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 12px;
  font-size: 15px;
  color: #ccc;
  line-height: 1.8;
}

/* Interface Demo */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
.demo-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}
.demo-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}
.demo-item span {
  display: block;
  text-align: center;
  font-size: 14px;
  padding: 10px 0;
  background: var(--bg-card);
  color: var(--text-muted);
}

/* Danmaku */
.player-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}
.player-container img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.7;
}
.danmaku-track {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  overflow: hidden;
}
.danmaku {
  position: absolute;
  white-space: nowrap;
  color: #fff;
  font-size: 16px;
  text-shadow: 1px 1px 2px #000;
  font-weight: bold;
  animation: scroll-left linear forwards;
}
@keyframes scroll-left {
  from { transform: translateX(100vw); }
  to { transform: translateX(-100%); }
}

/* Timeline */
.timeline {
  border-left: 2px solid var(--pink);
  padding-left: 20px;
  margin-left: 10px;
}
.timeline-item {
  margin-bottom: 20px;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -27px; top: 5px;
  width: 12px; height: 12px;
  background: var(--pink);
  border-radius: 50%;
}
.timeline-item h3 { font-size: 16px; margin-bottom: 5px; }
.timeline-item p { font-size: 14px; color: var(--text-muted); }

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

/* Comments */
.comment-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.comment-input {
  width: 100%;
  height: 80px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  color: #fff;
  resize: none;
  margin-bottom: 10px;
}
.comment-submit {
  background: var(--pink);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
}
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.comment-item {
  display: flex;
  gap: 12px;
}
.comment-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  overflow: hidden;
}
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-content { flex: 1; }
.comment-name { font-size: 14px; color: var(--pink-light); margin-bottom: 4px; }
.comment-text { font-size: 14px; color: #ddd; }

/* 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;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--pink);
  padding: 30px 20px;
  border-radius: 16px;
  text-align: center;
  max-width: 320px;
  width: 100%;
}
.modal-box h3 { color: var(--yellow); margin-bottom: 15px; font-size: 18px; }
.modal-box p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.modal-close {
  background: var(--yellow);
  color: #111;
  border: none;
  padding: 10px 30px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
}

/* Footer */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 30px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
}
footer a { color: var(--text-muted); }
footer a:hover { color: #fff; }
.about-us {
  margin-top: 15px;
  font-size: 12px;
  color: var(--text-muted);
}
.about-us summary {
  display: inline;
  cursor: pointer;
  font-weight: normal;
}
.about-us summary::after { content: ''; }
.about-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}
.about-links a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: rgba(154, 154, 165, 0.3);
}

@media (min-width: 768px) {
  .hero h1 { font-size: 42px; }
  .nav-toggle { display: none; }
  .nav-menu {
    display: flex;
    flex-direction: row;
    position: static;
    background: transparent;
    border: none;
    padding: 0;
    width: auto;
    gap: 15px;
  }
  .nav-menu a { border: none; padding: 0; font-size: 14px; }
  .carousel-item { height: 500px; }
  .grid-cards { grid-template-columns: repeat(3, 1fr); }
  .demo-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 52px; }
  .carousel-item { height: 600px; }
  .grid-cards { grid-template-columns: repeat(6, 1fr); }
  .demo-grid { grid-template-columns: repeat(3, 1fr); }
  .card-info p { font-size: 12px; }
}