:root {
  --primary-blue: #2563eb;
  --light-blue: #eff6ff;
  --accent-red: #dc2626;
  --text-dark: #1e293b;
  --text-gray: #64748b;
  --bg-color: #f8fafc;
  --white: #ffffff;
}
* { 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;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Header */
header {
  background-color: var(--white);
  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;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-blue);
}
.logo-wrap img {
  height: 32px;
  width: auto;
}
.nav-links {
  display: none;
  gap: 24px;
  font-weight: 500;
  color: var(--text-dark);
}
.nav-links a:hover { color: var(--primary-blue); }
.header-download {
  background-color: var(--accent-red);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.2s;
}
.header-download:hover { transform: scale(1.05); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--light-blue), #e0e7ff);
  padding: 40px 20px;
  text-align: center;
}
.hero h1 {
  font-size: 28px;
  color: var(--primary-blue);
  margin-bottom: 16px;
}
.hero p {
  color: var(--text-gray);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto 24px;
}
.btn-download {
  display: inline-block;
  background-color: var(--accent-red);
  color: var(--white);
  padding: 14px 36px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
  transition: all 0.2s;
}
.btn-download:hover {
  background-color: #b91c1c;
  transform: translateY(-2px);
}
.update-time {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-gray);
}

/* Section Common */
section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  font-size: 22px;
  color: var(--primary-blue);
  margin-bottom: 24px;
  text-align: center;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  background-color: var(--accent-red);
  margin: 8px auto 0;
  border-radius: 2px;
}
.section-desc {
  text-align: center;
  color: var(--text-gray);
  margin-bottom: 30px;
  font-size: 15px;
}

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

/* Carousel */
.carousel-section {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  border-radius: 12px;
  overflow: hidden;
}
.carousel-slide {
  min-width: 100%;
  position: relative;
}
.carousel-slide img {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  border-radius: 12px;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.7);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

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

.card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}
.card:hover { transform: translateY(-4px); }
.card-img {
  position: relative;
  cursor: pointer;
  background-color: #e2e8f0;
  aspect-ratio: 3/4;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.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;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 20px;
  transition: background 0.2s;
}
.card-img:hover .play-btn { background: rgba(220, 38, 38, 0.8); }
.card-content {
  padding: 12px;
}
.card-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--text-dark);
}
.card-text {
  font-size: 13px;
  color: var(--text-gray);
}

/* Rank Stats */
.rank-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-gray);
}
.rank-heat { color: var(--accent-red); font-weight: bold; }

/* FAQ & Comments */
.faq-section {
  background-color: var(--white);
  border-radius: 16px;
  padding: 30px 20px;
}
.faq-item {
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 10px;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 15px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q::after {
  content: "+";
  font-size: 20px;
  color: var(--primary-blue);
  transition: transform 0.3s;
}
.faq-item.active .faq-q::after {
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-gray);
  font-size: 14px;
  padding-bottom: 0;
}
.faq-item.active .faq-a {
  padding-bottom: 15px;
}
.faq-item.active .faq-a-inner { margin-top: 10px; }

.comment-box {
  margin-top: 30px;
}
.comment-box h3 {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 15px;
}
.comment-box textarea {
  width: 100%;
  height: 100px;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  resize: none;
  font-family: inherit;
  margin-bottom: 10px;
}
.comment-box textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
}
.btn-submit {
  background-color: var(--primary-blue);
  color: var(--white);
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

/* Footer */
footer {
  background-color: var(--white);
  border-top: 1px solid #e2e8f0;
  padding: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-gray);
}
footer p { margin-bottom: 8px; }

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal.active { display: flex; }
.modal-content {
  background: var(--white);
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  max-width: 320px;
  width: 90%;
}
.modal-content p {
  margin-bottom: 20px;
  font-size: 16px;
  color: var(--text-dark);
}
.modal-content .btn-download {
  padding: 10px 24px;
  font-size: 16px;
}

/* Breakpoints */
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .hero h1 { font-size: 36px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .carousel-slide img { max-height: 500px; }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
  .hero h1 { font-size: 42px; }
  .carousel-slide img { max-height: 600px; }
}