:root {
  --primary-green: #2e7d32;
  --light-green: #81c784;
  --accent-yellow: #fbc02d;
  --bg-light: #f1f8e9;
  --text-dark: #1b5e20;
  --text-gray: #455a64;
  --purple-theme: #6a1b9a;
  --purple-light: #9c27b0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-gray);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Nav */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--primary-green);
}

.logo-box img {
  height: 36px;
  width: auto;
  border-radius: 8px;
}

.nav-links {
  display: none;
  gap: 20px;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--primary-green);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #e8f5e9 0%, #fff9c4 100%);
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(129, 199, 132, 0.4) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text {
  text-align: center;
}

.hero-text h1 {
  font-size: 2.2rem;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 30px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.badge {
  background: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--primary-green);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  font-weight: bold;
}

.download-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
  background: var(--primary-green);
  box-shadow: 0 6px 15px rgba(46, 125, 50, 0.3);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46, 125, 50, 0.4);
}

.btn-download.android {
  background: linear-gradient(135deg, #4caf50, #2e7d32);
}

.btn-download.ios {
  background: linear-gradient(135deg, #fbc02d, #f57f17);
  color: #333;
}

.btn-download.pc {
  background: linear-gradient(135deg, #90a4ae, #546e7a);
}

.hero-image {
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.3s;
}

.hero-image:hover {
  transform: perspective(1000px) rotateY(0deg);
}

/* Section Common */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 15px;
  font-weight: 800;
}

.section-desc {
  text-align: center;
  color: #666;
  margin-bottom: 50px;
  font-size: 1.05rem;
}

/* Parallax Wall (High Energy) */
.parallax-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  perspective: 1000px;
}

.parallax-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.4s;
  transform-style: preserve-3d;
  position: relative;
  display: flex;
  flex-direction: column;
}

.parallax-card:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(-5deg) scale(1.02);
  box-shadow: 0 20px 40px rgba(46, 125, 50, 0.2);
  z-index: 10;
}

.parallax-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s;
}

.parallax-card:hover img {
  transform: scale(1.05);
}

.card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.card-content p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
  flex-grow: 1;
}

.card-tag {
  display: inline-block;
  background: #e8f5e9;
  color: var(--primary-green);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
  align-self: flex-start;
}

/* Film Strip (Original) */
.film-strip-section {
  background: #fff;
}

.film-strip {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.film-strip::-webkit-scrollbar {
  height: 8px;
}
.film-strip::-webkit-scrollbar-thumb {
  background: var(--light-green);
  border-radius: 4px;
}

.film-item {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: #f9f9f9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.film-item img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.film-info {
  padding: 15px;
  background: #fff;
}

.film-info h3 {
  font-size: 1.1rem;
  color: var(--primary-green);
  margin-bottom: 8px;
}

.film-info .date {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 10px;
}

.film-info p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Energy Timeline (Calendar) */
.timeline-section {
  background: #1a1a1a;
  color: #fff;
}

.timeline-section .section-title {
  color: var(--light-green);
}
.timeline-section .section-desc {
  color: #aaa;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: rgba(129, 199, 132, 0.3);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-content {
  width: 45%;
  background: #2a2a2a;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(129, 199, 132, 0.2);
  position: relative;
}

.timeline-content h3 {
  color: var(--light-green);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 0.9rem;
  color: #ccc;
}

.timeline-time {
  width: 45%;
  text-align: right;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--accent-yellow);
}

.timeline-item:nth-child(odd) .timeline-time {
  text-align: left;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: var(--light-green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(129, 199, 132, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(129, 199, 132, 0.6);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(129, 199, 132, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(129, 199, 132, 0);
  }
}

/* Bubble Matrix (Wishes & Trends) */
.bubble-section {
  background: linear-gradient(180deg, #f3e5f5 0%, #e1bee7 100%);
}

.bubble-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.bubble-column h3 {
  text-align: center;
  color: var(--purple-theme);
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.bubble-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.bubble-item {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  padding: 15px 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 2px solid transparent;
  transition: transform 0.2s;
}

.bubble-item:hover {
  transform: translateX(5px);
}

.bubble-item.top-1 {
  border-color: #ffd700;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
  background: #fff;
}
.bubble-item.top-2 {
  border-color: #c0c0c0;
  box-shadow: 0 0 15px rgba(192, 192, 192, 0.4);
  background: #fff;
}
.bubble-item.top-3 {
  border-color: #cd7f32;
  box-shadow: 0 0 15px rgba(205, 127, 50, 0.4);
  background: #fff;
}

.rank-num {
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--purple-theme);
  width: 30px;
  text-align: center;
}

.bubble-item p {
  font-size: 0.95rem;
  color: #444;
  margin: 0;
}

/* Danmaku Flow (Echoes) */
.danmaku-section {
  background: #f9fbe7;
}

.danmaku-container {
  position: relative;
  height: 400px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
}

.danmaku-track {
  position: absolute;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  animation: scrollLeft linear infinite;
}

.danmaku-track img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.danmaku-track span {
  font-size: 0.9rem;
  color: #333;
}

.danmaku-track:nth-child(1) {
  top: 10%;
  animation-duration: 15s;
  animation-delay: 0s;
}
.danmaku-track:nth-child(2) {
  top: 25%;
  animation-duration: 18s;
  animation-delay: -5s;
  background: #e8f5e9;
}
.danmaku-track:nth-child(3) {
  top: 40%;
  animation-duration: 14s;
  animation-delay: -2s;
}
.danmaku-track:nth-child(4) {
  top: 55%;
  animation-duration: 20s;
  animation-delay: -8s;
  background: #fff9c4;
}
.danmaku-track:nth-child(5) {
  top: 70%;
  animation-duration: 16s;
  animation-delay: -12s;
}
.danmaku-track:nth-child(6) {
  top: 85%;
  animation-duration: 17s;
  animation-delay: -4s;
  background: #f3e5f5;
}
.danmaku-track:nth-child(7) {
  top: 18%;
  animation-duration: 19s;
  animation-delay: -15s;
}
.danmaku-track:nth-child(8) {
  top: 48%;
  animation-duration: 13s;
  animation-delay: -7s;
  background: #e0f7fa;
}
.danmaku-track:nth-child(9) {
  top: 78%;
  animation-duration: 21s;
  animation-delay: -10s;
}
.danmaku-track:nth-child(10) {
  top: 32%;
  animation-duration: 15s;
  animation-delay: -3s;
  background: #ffebee;
}

@keyframes scrollLeft {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

/* FAQ Accordion */
.faq-section {
  background: #fff;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px;
  background: #f9f9f9;
  border: none;
  font-size: 1.05rem;
  font-weight: bold;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-question:hover {
  background: #f0f0f0;
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--primary-green);
}

.faq-item.active .faq-question::after {
  content: "-";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: #fff;
}

.faq-answer p {
  padding: 0 20px 20px;
  color: #666;
  font-size: 0.95rem;
  margin: 0;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

/* Footer & Install */
.footer-install {
  background: linear-gradient(135deg, #2e7d32, #1b5e20);
  color: #fff;
  padding: 60px 0 30px;
}

.install-guide {
  text-align: center;
  margin-bottom: 40px;
}

.install-guide h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--accent-yellow);
}

.install-guide p {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 20px;
}

.footer-download-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  color: #a5d6a7;
  font-size: 0.9rem;
}

.footer-bottom p {
  margin-bottom: 8px;
}

.footer-bottom time {
  color: #81c784;
}

/* Modal for iOS Download */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.show {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-content h3 {
  color: var(--text-dark);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.modal-content p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 20px;
  word-break: break-all;
}

.copy-btn {
  background: var(--primary-green);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
}

.copy-btn:hover {
  background: #1b5e20;
}

.close-modal {
  margin-top: 15px;
  background: transparent;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 0.9rem;
}

/* Responsive */
@media (min-width: 768px) {
  .hero-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .hero-text {
    flex: 1;
    text-align: left;
  }
  .hero-badges,
  .download-group {
    justify-content: flex-start;
  }
  .hero-image {
    flex: 1;
    max-width: 45%;
  }
  .nav-links {
    display: flex;
  }
  .timeline::before {
    left: 50%;
  }
  .timeline-item {
    flex-direction: row;
  }
  .timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
  }
  .timeline-content {
    width: 45%;
  }
  .timeline-time {
    width: 45%;
    text-align: right;
  }
  .timeline-item:nth-child(odd) .timeline-time {
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .hero-text h1 {
    font-size: 3rem;
  }
  .section-title {
    font-size: 2.5rem;
  }
  .parallax-wall {
    grid-template-columns: repeat(3, 1fr);
  }
}
