:root {
  --ice: #eef6fc;
  --mist: #dbe9f6;
  --deep: #0b2a4a;
  --blue: #2b6cb0;
  --light-blue: #a3d2f7;
  --lemon: #ffd93d;
  --white: #ffffff;
  --text-main: #1a2a3a;
  --text-muted: #5a7184;
  --glass: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.8);
  --shadow: 0 10px 30px rgba(11, 42, 74, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --font-main: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--ice);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: rgba(238, 246, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--glass-border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--deep);
}

.brand img {
  height: 32px;
  width: auto;
  border-radius: 6px;
}

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  transition: color 0.3s;
}

.main-nav a:hover {
  color: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--lemon);
  color: var(--deep);
  box-shadow: 0 4px 15px rgba(255, 217, 61, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 217, 61, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--deep);
  border: 1px solid var(--light-blue);
}

.btn-outline:hover {
  background: var(--mist);
}

.btn-blue {
  background: var(--blue);
  color: var(--white);
}

.btn-blue:hover {
  background: var(--deep);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 120px 24px 80px;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 70% 30%, var(--mist) 0%, var(--ice) 70%);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 40px;
  position: relative;
  z-index: 10;
}

.hero-content {
  flex: 1;
  max-width: 540px;
}

.hero-content h1 {
  font-size: 48px;
  line-height: 1.2;
  color: var(--deep);
  margin-bottom: 24px;
  font-weight: 800;
}

.hero-content p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-visuals {
  flex: 1;
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Floating Doors */
.door {
  position: absolute;
  width: 180px;
  height: 320px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 90px 90px 10px 10px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.door:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(11, 42, 74, 0.15);
}

.door:nth-child(1) {
  transform: translate(-120px, 40px) rotate(-5deg);
  z-index: 1;
}

.door:nth-child(2) {
  transform: translate(0, -20px);
  z-index: 3;
  width: 200px;
  height: 360px;
}

.door:nth-child(3) {
  transform: translate(120px, 40px) rotate(5deg);
  z-index: 2;
}

.door-cover {
  width: 100%;
  height: 80%;
  object-fit: cover;
  border-radius: 80px 80px 0 0;
}

.door-text {
  font-size: 13px;
  text-align: center;
  margin-top: 10px;
  color: var(--deep);
  font-weight: 600;
}

/* Base Section Styles */
section {
  padding: 80px 24px;
  position: relative;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 32px;
  color: var(--deep);
  text-align: center;
  margin-bottom: 12px;
  font-weight: 700;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 48px;
}

/* Section 3: Story Choice */
.choice-section {
  background: var(--ice);
}

.choice-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.tag-btn {
  padding: 12px 28px;
  border-radius: 30px;
  background: var(--white);
  color: var(--blue);
  border: 1px solid var(--light-blue);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.tag-btn.active, .tag-btn:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  box-shadow: 0 4px 15px rgba(43, 108, 176, 0.3);
}

.choice-display {
  display: flex;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto;
}

.choice-cover {
  width: 240px;
  object-fit: cover;
}

.choice-info {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.choice-info h3 {
  font-size: 24px;
  color: var(--deep);
  margin-bottom: 12px;
}

.choice-info p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Section 4: Branching Path */
.branch-section {
  background: var(--mist);
}

.branch-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.branch-path {
  flex: 1;
  text-align: center;
  padding: 32px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s;
  margin: 0 20px;
}

.branch-path:hover {
  background: var(--white);
  box-shadow: var(--shadow);
  transform: scale(1.05);
}

.branch-path h3 {
  color: var(--deep);
  margin-bottom: 8px;
}

.branch-path p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Section 5: Emotion Slider */
.emotion-section {
  background: linear-gradient(to bottom, var(--ice), var(--blue));
  transition: background 0.5s;
  padding-bottom: 100px;
}

.slider-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.emotion-slider {
  width: 100%;
  margin: 40px 0;
  accent-color: var(--lemon);
  height: 8px;
  border-radius: 4px;
}

.emotion-display {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow);
  text-align: left;
}

.emotion-cover {
  width: 120px;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.emotion-text h3 {
  color: var(--deep);
  font-size: 22px;
  margin-bottom: 8px;
}

.emotion-text span {
  display: inline-block;
  background: var(--mist);
  color: var(--blue);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  margin-bottom: 12px;
}

.emotion-text p {
  color: var(--text-muted);
  font-size: 15px;
}

/* Section 6: First Person */
.perspective-section {
  background: var(--white);
}

.scene-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--ice);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.scene-cover-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  -webkit-mask-image: linear-gradient(to right, transparent, black);
  mask-image: linear-gradient(to right, transparent, black);
}

.scene-content {
  position: relative;
  z-index: 2;
}

.scene-content p {
  font-size: 18px;
  color: var(--deep);
  margin-bottom: 32px;
  font-weight: 500;
}

.scene-actions {
  display: flex;
  gap: 16px;
}

/* Section 7: Time */
.time-section {
  background: var(--ice);
}

.time-options {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
}

.time-btn {
  padding: 16px 32px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--light-blue);
  font-size: 16px;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  transition: all 0.3s;
}

.time-btn:hover {
  background: var(--blue);
  color: var(--white);
}

/* Section 8: Continuous */
.continuous-section {
  background: var(--mist);
}

.continuous-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 20px 0;
  scrollbar-width: none;
}

.continuous-track::-webkit-scrollbar {
  display: none;
}

.track-node {
  flex: 0 0 200px;
  text-align: center;
}

.track-node img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.track-node h4 {
  color: var(--deep);
  margin-bottom: 4px;
}

.track-node p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Section 9: Echoes */
.echo-section {
  background: var(--white);
}

.echo-masonry {
  columns: 3 300px;
  column-gap: 24px;
}

.echo-note {
  background: var(--ice);
  padding: 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  break-inside: avoid;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(11, 42, 74, 0.03);
  border: 1px solid var(--glass-border);
}

.echo-note p {
  font-size: 15px;
  color: var(--deep);
  font-style: italic;
}

.echo-note .echo-ref {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.echo-ref img {
  width: 24px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
}

/* Section 10: Explore Grid */
.explore-section {
  background: var(--ice);
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.explore-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.explore-card:hover {
  transform: translateY(-5px);
}

.explore-card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
}

.explore-card-info {
  padding: 16px;
}

.explore-card-info h4 {
  font-size: 18px;
  color: var(--deep);
  margin-bottom: 4px;
}

.explore-card-info p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.explore-card-info span {
  display: inline-block;
  background: var(--mist);
  color: var(--blue);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
}

/* Section 11: App Features */
.app-features-section {
  background: var(--white);
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-bottom: 64px;
}

.feature-row:nth-child(even) {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1;
}

.feature-text h3 {
  font-size: 24px;
  color: var(--deep);
  margin-bottom: 16px;
}

.feature-text p {
  font-size: 16px;
  color: var(--text-muted);
}

.feature-visual {
  flex: 1;
  background: var(--ice);
  height: 320px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.mock-ui {
  width: 240px;
  height: 400px;
  background: var(--white);
  border-radius: 30px;
  border: 8px solid var(--deep);
  box-shadow: 0 20px 40px rgba(11, 42, 74, 0.1);
  position: absolute;
  bottom: -40px;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.mock-bar {
  height: 8px;
  background: var(--mist);
  border-radius: 4px;
  margin-bottom: 12px;
}

.mock-img {
  width: 100%;
  height: 120px;
  background: var(--light-blue);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

/* Section 12: FAQ */
.faq-section {
  background: var(--mist);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  font-size: 18px;
  font-weight: 600;
  color: var(--deep);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  padding: 0 24px 20px;
  max-height: 200px;
}

.faq-icon {
  transition: transform 0.3s;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Section 13: Download */
.download-section {
  background: var(--deep);
  color: var(--white);
  text-align: center;
  padding: 80px 24px;
}

.download-section h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.download-section p {
  font-size: 18px;
  color: var(--light-blue);
  margin-bottom: 40px;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.btn-large {
  padding: 16px 40px;
  font-size: 18px;
  border-radius: 40px;
}

/* Footer */
.site-footer {
  background: #071b30;
  color: #8da4bd;
  padding: 40px 24px;
  font-size: 14px;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-meta {
  font-size: 12px;
  color: #5a7184;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--deep);
  cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-visuals {
    display: none;
  }
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .feature-row {
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow);
  }
  .main-nav.open {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .header-actions .btn {
    display: none;
  }
  .hero-content h1 {
    font-size: 36px;
  }
  .door {
    position: static;
    transform: none !important;
    margin: 0;
    flex: 0 0 160px;
    height: 280px;
  }
  .hero-visuals {
    display: flex;
    height: auto;
    overflow-x: auto;
    gap: 16px;
    padding: 20px 0;
    justify-content: flex-start;
  }
  .choice-display {
    flex-direction: column;
  }
  .choice-cover {
    width: 100%;
    height: 200px;
  }
  .branch-container {
    flex-direction: column;
    gap: 20px;
  }
  .branch-path {
    margin: 0;
    width: 100%;
  }
  .emotion-display {
    flex-direction: column;
    text-align: center;
  }
  .emotion-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 2/3;
    max-height: 300px;
  }
  .scene-actions {
    flex-direction: column;
  }
  .time-options {
    flex-wrap: wrap;
  }
  .feature-row {
    flex-direction: column !important;
  }
  .feature-visual {
    width: 100%;
  }
  .download-buttons {
    flex-direction: column;
  }
  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}