:root {
  --primary: #d9251c;
  --primary-dark: #a81610;
  --bg-light: #fff9f9;
  --text-main: #333;
  --text-muted: #666;
  --border: #f0dada;
  --shadow: 0 4px 12px rgba(217, 37, 28, 0.1);
}
* {
  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-light);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  z-index: 1000;
}
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}
.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-group img {
  height: 32px;
  width: auto;
}
.logo-text {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary);
}
.nav-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
  padding: 8px;
}
.nav-menu {
  display: none;
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  background: #fff;
  flex-direction: column;
  border-top: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.nav-menu.active {
  display: flex;
}
.nav-menu a {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
  font-size: 0.95rem;
}
.nav-menu a:hover {
  background-color: var(--bg-light);
  color: var(--primary);
}

/* Hero Section */
.hero {
  margin-top: 60px;
  padding: 40px 0;
  background: linear-gradient(135deg, #fff0f0 0%, #ffe5e5 100%);
  position: relative;
  overflow: hidden;
}
.hero-bg-lychee {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: rgba(217, 37, 28, 0.05);
  border-radius: 50%;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero h1 {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 16px;
  line-height: 1.3;
}
.hero p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.btn-download {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 14px 36px;
  border-radius: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, background 0.2s;
}
.btn-download:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Carousel */
.carousel-section {
  padding: 40px 0;
  background: #fff;
}
.carousel-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
}
.carousel-slide {
  min-width: 100%;
  position: relative;
  cursor: pointer;
}
.carousel-slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.play-btn-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}
.play-btn-overlay::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid #fff;
  margin-left: 6px;
}
.carousel-slide:hover .play-btn-overlay {
  background: rgba(217, 37, 28, 0.8);
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
}
.dot.active {
  background: var(--primary);
}

/* Marquee */
.marquee-bar {
  background: var(--primary);
  color: #fff;
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-content {
  display: inline-block;
  animation: marquee 20s linear infinite;
  font-size: 0.9rem;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Common Section Styles */
section {
  padding: 50px 0;
}
.section-title {
  text-align: center;
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 30px;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--primary);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.grid-6 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Card Styles */
.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: relative;
  cursor: pointer;
}
.card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 0.3s;
}
.card:hover img {
  transform: scale(1.05);
}
.card-info {
  padding: 12px;
  text-align: center;
  background: #fff;
}
.card-info p {
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: bold;
  margin-bottom: 4px;
}
.card-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.card-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover .card-play-icon {
  opacity: 1;
}
.card-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;
}

/* Feature Section */
.feature-text {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-main);
}
.feature-text p {
  margin-bottom: 16px;
}
.feature-text p:last-child {
  margin-bottom: 0;
}

/* Barrage Section */
.barrage-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  background: #000;
}
.barrage-video {
  width: 100%;
  display: block;
}
.barrage-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}
.barrage-item {
  position: absolute;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  text-shadow: 1px 1px 2px #000;
  white-space: nowrap;
  will-change: transform;
}
@keyframes fly {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* History Section */
.history-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.history-content p {
  margin-bottom: 16px;
  color: var(--text-muted);
  text-indent: 2em;
}

/* FAQ Accordion */
.faq-list {
  space-y: 12px;
}
.faq-item {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  overflow: hidden;
}
.faq-q {
  padding: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main);
}
.faq-q::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--primary);
}
.faq-item.active .faq-q::after {
  content: '-';
}
.faq-a {
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.faq-item.active .faq-a {
  padding: 0 16px 16px 16px;
  max-height: 200px;
}

/* Comments Section */
.comments-section {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.comment-input-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.comment-input-area textarea {
  width: 100%;
  height: 80px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  resize: none;
  font-family: inherit;
}
.comment-input-area textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.btn-submit {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 24px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
}
.btn-submit:hover {
  background: var(--primary-dark);
}
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.comment-item {
  display: flex;
  gap: 12px;
}
.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: contain;
  background: #eee;
}
.comment-content {
  flex: 1;
}
.comment-user {
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--text-main);
  margin-bottom: 4px;
}
.comment-text {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Footer */
footer {
  background: #222;
  color: #aaa;
  padding: 30px 0;
  font-size: 0.85rem;
  text-align: center;
}
.footer-links-area {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #333;
}
.footer-links-area details {
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
}
.footer-links-area summary {
  cursor: pointer;
  color: #ccc;
  display: inline-block;
  padding: 4px 8px;
  background: #333;
  border-radius: 4px;
}
.footer-links-area a {
  display: block;
  color: #888;
  margin-top: 8px;
}
.footer-links-area a:hover {
  color: #ccc;
}

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

/* Falling Lychee */
.falling-lychee {
  position: fixed;
  top: -50px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ff4d4d, #990000);
  box-shadow: inset -4px -4px 8px rgba(0,0,0,0.4), 0 2px 5px rgba(0,0,0,0.2);
  pointer-events: none;
  z-index: 0;
  animation: fall linear forwards;
  opacity: 0.15;
}
@keyframes fall {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(110vh) rotate(360deg); }
}

@media (min-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1.1rem; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .carousel-slide img { height: 500px; }
  .nav-toggle { display: none; }
  .nav-menu {
    display: flex;
    position: static;
    flex-direction: row;
    border-top: none;
    box-shadow: none;
    width: auto;
    background: transparent;
  }
  .nav-menu a {
    border-bottom: none;
    padding: 0 12px;
    font-size: 0.9rem;
  }
  .comment-input-area {
    flex-direction: row;
    align-items: flex-start;
  }
  .comment-input-area textarea {
    flex: 1;
  }
  .btn-submit {
    align-self: stretch;
    padding: 0 30px;
  }
}

@media (min-width: 1024px) {
  .grid-6 { grid-template-columns: repeat(6, 1fr); }
  .carousel-slide img { height: 550px; }
  .nav-menu a { padding: 0 16px; font-size: 1rem; }
}