:root {
  --bg-pink: #ffeef2;
  --bg-pink-deep: #ffdce3;
  --gray-bg: #f5f5f7;
  --text-main: #3a3a3a;
  --text-muted: #888;
  --red-btn: #e64444;
  --red-btn-hover: #cc3333;
  --white: #ffffff;
  --border-radius: 12px;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-main);
  background-color: var(--bg-pink);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Nav */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo-box {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 20px;
}
.logo-box img {
  height: 32px;
  width: auto;
}
.nav-toggle {
  display: none;
  background: var(--gray-bg);
  border: 1px solid #ddd;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-main);
}
.nav-menu {
  display: flex;
  gap: 20px;
  list-style: none;
}
.nav-menu a {
  font-size: 15px;
  color: var(--text-main);
  transition: color 0.2s;
}
.nav-menu a:hover {
  color: var(--red-btn);
}

/* Hero */
.hero {
  padding: 40px 0;
  text-align: center;
}
.hero h1 {
  font-size: 36px;
  color: #d6336c;
  margin-bottom: 16px;
  letter-spacing: 1px;
}
.hero p {
  font-size: 18px;
  color: var(--text-main);
  margin-bottom: 24px;
}
.btn-download {
  display: inline-block;
  background-color: var(--red-btn);
  color: var(--white);
  padding: 12px 32px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(230, 68, 68, 0.3);
}
.btn-download:hover {
  background-color: var(--red-btn-hover);
  transform: translateY(-2px);
}
.update-time {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Carousel */
.carousel-section {
  padding: 20px 0 60px;
  text-align: center;
}
.carousel-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  height: 400px;
  perspective: 1000px;
  overflow: hidden;
}
.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.carousel-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240px;
  height: 320px;
  margin-left: -120px;
  margin-top: -160px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.5s ease;
  cursor: pointer;
  background: #ddd;
}
.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: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  opacity: 0.8;
  transition: opacity 0.3s;
}
.carousel-card .play-icon::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #fff;
  margin-left: 6px;
}
.carousel-card:hover .play-icon {
  opacity: 1;
}
.carousel-controls {
  margin-top: 20px;
}
.carousel-controls button {
  background: var(--white);
  border: 1px solid #ddd;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  margin: 0 10px;
  font-size: 14px;
}
.carousel-controls button:hover {
  background: var(--gray-bg);
}

/* Marquee */
.marquee-bar {
  background: var(--white);
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;
  margin-bottom: 40px;
}
.marquee-content {
  display: inline-block;
  animation: scrollText 20s linear infinite;
  font-size: 15px;
  color: #d6336c;
}
@keyframes scrollText {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Grid Sections */
.section {
  padding: 60px 0;
}
.section-title {
  font-size: 26px;
  text-align: center;
  margin-bottom: 10px;
  color: #d6336c;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 15px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  transition: transform 0.2s;
}
.card:hover {
  transform: translateY(-4px);
}
.card-img-box {
  position: relative;
  width: 100%;
  padding-top: 133%; /* 3:4 ratio */
  overflow: hidden;
  background: #eee;
  cursor: pointer;
}
.card-img-box img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-img-box .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.3s;
}
.card-img-box .play-icon::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #fff;
  margin-left: 4px;
}
.card-img-box:hover .play-icon {
  opacity: 1;
}
.card-content {
  padding: 16px;
}
.card-content p {
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 8px;
}
.card-content .stats {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

/* Feature Text */
.feature-text-box {
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  line-height: 1.8;
  font-size: 16px;
  color: var(--text-main);
}
.feature-text-box h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #d6336c;
}

/* Danmaku Section */
.danmaku-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--border-radius);
  overflow: hidden;
}
.danmaku-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}
.danmaku-item {
  position: absolute;
  white-space: nowrap;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  text-shadow: 1px 1px 2px #000;
  animation: fly 8s linear infinite;
  opacity: 0;
}
@keyframes fly {
  0% { transform: translateX(100vw); opacity: 1; }
  100% { transform: translateX(-100%); opacity: 1; }
}
.danmaku-item:nth-child(2) { top: 10%; animation-delay: 0s; }
.danmaku-item:nth-child(3) { top: 30%; animation-delay: 2s; }
.danmaku-item:nth-child(4) { top: 50%; animation-delay: 4s; }
.danmaku-item:nth-child(5) { top: 70%; animation-delay: 1s; }
.danmaku-item:nth-child(6) { top: 85%; animation-delay: 3s; }

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
details {
  background: var(--white);
  margin-bottom: 12px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  overflow: hidden;
}
summary {
  padding: 16px 20px;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
  position: relative;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #d6336c;
  transition: transform 0.2s;
}
details[open] summary::after {
  content: '−';
}
.faq-answer {
  padding: 0 20px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

/* Comments */
.comments-box {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}
.comment-form textarea {
  width: 100%;
  height: 80px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  resize: none;
  font-family: inherit;
}
.comment-form button {
  align-self: flex-end;
  background: var(--red-btn);
  color: var(--white);
  border: none;
  padding: 8px 24px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
}
.comment-form button:hover {
  background: var(--red-btn-hover);
}
.comment-item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}
.comment-item:last-child {
  border-bottom: none;
}
.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: contain;
  background: #f0f0f0;
}
.comment-content {
  flex: 1;
}
.comment-name {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 4px;
}
.comment-text {
  font-size: 14px;
  color: var(--text-main);
}
.comment-time {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Footer */
footer {
  background-color: #fbfbfb;
  padding: 30px 0;
  text-align: center;
  font-size: 12px;
  color: #999;
  border-top: 1px solid #eee;
}
footer a {
  color: #999;
  margin: 0 4px;
}
footer a:hover {
  color: #666;
}
.about-us {
  margin-top: 10px;
  font-size: 12px;
}
.about-us summary {
  display: inline-block;
  cursor: pointer;
  color: #999;
  padding: 4px;
  font-weight: normal;
}
.about-us summary::-webkit-details-marker {
  display: none;
}
.about-links {
  margin-top: 10px;
  line-height: 2;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active {
  display: flex;
}
.modal-content {
  background: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  text-align: center;
  max-width: 400px;
  width: 90%;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}
.modal-content p {
  font-size: 18px;
  margin-bottom: 20px;
  margin-top: 10px;
}

/* Banana Peel Decor */
.banana-peel {
  display: inline-block;
  font-size: 24px;
  transform: rotate(20deg);
  margin: 0 4px;
  vertical-align: middle;
}

@media (max-width: 1024px) {
  .carousel-container { height: 350px; }
  .carousel-card { width: 200px; height: 280px; margin-left: -100px; margin-top: -140px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 15px; }
  .btn-download { padding: 10px 24px; font-size: 16px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .nav-menu.active { display: flex; }
  .carousel-container { height: 280px; }
  .carousel-card { width: 160px; height: 220px; margin-left: -80px; margin-top: -110px; }
  .feature-text-box { padding: 20px; }
  .comments-box { padding: 20px; }
}