:root {
  --ice: #eaf4fd;
  --mist: #c9dff2;
  --sky: #8fbde6;
  --deep: #123a63;
  --darkblue: #0a1c2e;
  --white: #ffffff;
  --yellow: #f7e05e;
  --glass: rgba(255, 255, 255, 0.65);
  --border: rgba(255, 255, 255, 0.8);
  --text: #1c3347;
  --text-light: #557086;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: var(--ice);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.page-wrapper {
  background: linear-gradient(160deg, var(--ice) 0%, var(--white) 40%, var(--ice) 100%);
  position: relative;
  overflow: hidden;
}

/* Background space of clouds */
.cloud-space {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.8) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(201,223,242,0.5) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(255,255,255,0.6) 0%, transparent 45%);
}

/* Header */
header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid rgba(201, 223, 242, 0.6);
}

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

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

.brand img { height: 32px; width: auto; }

nav.desktop-nav { display: none; gap: 28px; font-size: 15px; font-weight: 500; }
nav.desktop-nav a { color: var(--text); transition: color 0.3s; }
nav.desktop-nav a:hover { color: var(--sky); }

.btn-download {
  background: linear-gradient(135deg, var(--sky), var(--deep));
  color: var(--white);
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 4px 15px rgba(18, 58, 99, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
}
.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(18, 58, 99, 0.3);
}

/* Hero */
.hero {
  position: relative;
  padding: 120px 20px 80px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 600px;
}

.hero h1 {
  font-size: 2.8rem;
  line-height: 1.2;
  color: var(--deep);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero h1 span { color: var(--sky); }

.hero p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 35px;
  max-width: 480px;
}

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

.btn-primary {
  background: var(--deep);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(18, 58, 99, 0.3);
  transition: transform 0.2s, background 0.2s;
  display: inline-block;
}
.btn-primary:hover { transform: translateY(-2px); background: #0f2e4d; }

.btn-secondary {
  background: transparent;
  color: var(--deep);
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid var(--deep);
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}
.btn-secondary:hover { background: var(--deep); color: var(--white); }

/* Floating Doors */
.floating-doors {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 600px;
  display: none;
}

.door {
  position: absolute;
  width: 220px;
  height: 330px;
  border-radius: 12px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid var(--border);
  box-shadow: 0 20px 40px rgba(18, 58, 99, 0.1);
  overflow: hidden;
  transition: transform 0.4s ease;
}

.door:hover { transform: scale(1.03) translateY(-5px); }

.door img { width: 100%; height: 70%; object-fit: cover; border-bottom: 2px solid var(--border); }
.door-info { padding: 15px; text-align: center; }
.door-info span { font-size: 14px; font-weight: 600; color: var(--deep); display: block; }

.door:nth-child(1) { top: 0; left: 0; transform: rotate(-5deg); z-index: 3; }
.door:nth-child(2) { top: 50px; left: 140px; transform: rotate(3deg); z-index: 2; }
.door:nth-child(3) { top: 100px; left: 280px; transform: rotate(-2deg); z-index: 1; }

/* Hero Mobile Slider */
.hero-mobile-slider {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hero-mobile-slider::-webkit-scrollbar { display: none; }
.hero-mobile-slider .door {
  position: relative;
  flex: 0 0 180px;
  height: 280px;
  scroll-snap-align: start;
  transform: none !important;
}
.hero-mobile-slider .door-info { padding: 10px; }

/* Section Global */
section { padding: 80px 20px; position: relative; z-index: 2; }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.2rem; color: var(--deep); margin-bottom: 15px; }
.section-header p { color: var(--text-light); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* Section: Choice (选择台) */
.choice-area { background: rgba(255, 255, 255, 0.4); border-radius: 24px; padding: 30px; border: 1px solid var(--border); }
.choice-tags { display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; margin-bottom: 30px; }
.tag-btn {
  background: var(--white);
  color: var(--deep);
  padding: 12px 24px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid transparent;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
.tag-btn.active {
  background: var(--deep);
  color: var(--white);
  border-color: var(--yellow);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(18, 58, 99, 0.3);
}
.choice-content { display: flex; justify-content: center; align-items: center; padding: 20px; }
.choice-card { display: none; text-align: center; max-width: 300px; }
.choice-card.active { display: block; animation: fadeIn 0.5s ease; }
.choice-card img { width: 200px; height: 300px; object-fit: cover; border-radius: 16px; margin: 0 auto 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.choice-card h3 { color: var(--deep); font-size: 1.3rem; margin-bottom: 10px; }
.choice-card p { color: var(--text-light); font-size: 0.95rem; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Section: Branch (人生分岔) */
.branch-area { display: flex; flex-direction: column; gap: 30px; align-items: center; }
.branch-paths { display: flex; gap: 20px; width: 100%; max-width: 600px; justify-content: center; }
.path-btn {
  flex: 1;
  background: var(--white);
  padding: 20px;
  border-radius: 16px;
  border: 2px solid var(--mist);
  text-align: center;
  font-weight: 600;
  color: var(--deep);
  transition: all 0.3s;
}
.path-btn.active { border-color: var(--sky); background: var(--ice); box-shadow: 0 4px 15px rgba(143,189,230,0.3); }
.branch-result { display: none; width: 100%; max-width: 700px; background: var(--white); border-radius: 20px; padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.branch-result.active { display: flex; flex-direction: column; gap: 20px; align-items: center; animation: fadeIn 0.4s; }
.branch-result img { width: 150px; height: 220px; object-fit: cover; border-radius: 10px; }
.branch-result-text { text-align: center; }
.branch-result-text h3 { color: var(--deep); margin-bottom: 10px; }
.branch-result-text p { color: var(--text-light); margin-bottom: 15px; font-size: 0.95rem; }
.btn-sm { padding: 8px 20px; font-size: 14px; }

/* Section: Emotion Scale */
.emotion-section { background: linear-gradient(to bottom, var(--ice), var(--sky) 50%, var(--deep)); color: var(--white); padding: 100px 20px; }
.emotion-section .section-header h2 { color: var(--white); }
.emotion-section .section-header p { color: var(--ice); }
.slider-container { max-width: 600px; margin: 0 auto 40px; }
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
  margin: 20px 0;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background: var(--yellow);
  cursor: pointer;
  margin-top: -8px;
  box-shadow: 0 0 10px rgba(247, 224, 94, 0.5);
}
input[type=range]::-webkit-slider-runnable-track {
  width: 100%; height: 8px; cursor: pointer;
  background: rgba(255,255,255,0.3); border-radius: 4px;
}
.emotion-labels { display: flex; justify-content: space-between; font-size: 14px; color: var(--ice); font-weight: 600; }
.emotion-display { display: flex; justify-content: center; gap: 40px; align-items: center; max-width: 800px; margin: 0 auto; flex-wrap: wrap; }
.emotion-card { text-align: center; transition: opacity 0.3s; }
.emotion-card img { width: 180px; height: 270px; object-fit: cover; border-radius: 12px; box-shadow: 0 15px 30px rgba(0,0,0,0.3); margin-bottom: 15px; transition: transform 0.3s; }
.emotion-card h3 { font-size: 1.2rem; margin-bottom: 5px; color: var(--white); }
.emotion-card p { font-size: 0.9rem; color: var(--ice); }

/* Section: First Person Experience */
.pov-section { background: var(--white); }
.pov-card {
  background: var(--ice);
  border-radius: 24px;
  padding: 30px;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--mist);
  text-align: center;
}
.pov-card img { width: 160px; height: 240px; object-fit: cover; border-radius: 12px; margin: 0 auto 20px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.pov-text { font-size: 1.1rem; color: var(--deep); margin-bottom: 25px; line-height: 1.8; }
.pov-options { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.pov-btn {
  background: var(--white);
  color: var(--deep);
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid var(--mist);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
}
.pov-btn:hover { border-color: var(--sky); background: var(--sky); color: var(--white); }
.pov-result { display: none; font-size: 1rem; color: var(--sky); font-weight: 600; padding: 15px; background: rgba(143,189,230,0.1); border-radius: 12px; }
.pov-result.show { display: block; animation: fadeIn 0.4s; }

/* Section: Time & Duration */
.duration-section { background: var(--ice); }
.time-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.time-tab {
  background: var(--white); color: var(--deep); padding: 10px 20px; border-radius: 20px; font-weight: 600; border: 1px solid var(--mist);
}
.time-tab.active { background: var(--deep); color: var(--white); border-color: var(--deep); }
.duration-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 20px; max-width: 900px; margin: 0 auto; }
.duration-item { text-align: center; }
.duration-item img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); margin-bottom: 10px; }
.duration-item span { font-size: 14px; font-weight: 600; color: var(--deep); }

/* Section: Continuous Story */
.continuous-section { background: var(--white); }
.story-route { display: flex; flex-direction: column; gap: 20px; max-width: 800px; margin: 0 auto; position: relative; }
.story-route::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--mist); transform: translateX(-50%); z-index: 1; }
.route-node { display: flex; align-items: center; gap: 20px; background: var(--ice); border-radius: 16px; padding: 15px; position: relative; z-index: 2; border: 1px solid var(--mist); transition: transform 0.3s; }
.route-node:hover { transform: translateY(-3px); }
.route-node img { width: 80px; height: 120px; object-fit: cover; border-radius: 8px; }
.route-node-text h3 { color: var(--deep); margin-bottom: 5px; font-size: 1.1rem; }
.route-node-text p { color: var(--text-light); font-size: 0.9rem; }

/* Section: Echoes */
.echo-section { background: var(--ice); }
.echo-words { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-bottom: 40px; }
.echo-btn { background: var(--white); padding: 10px 20px; border-radius: 20px; font-weight: 600; color: var(--text); border: 1px solid var(--mist); transition: all 0.2s; }
.echo-btn:hover { background: var(--sky); color: var(--white); }
.echo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
.echo-note { background: var(--white); padding: 20px; border-radius: 12px; border: 1px solid var(--mist); box-shadow: 0 4px 10px rgba(0,0,0,0.03); font-size: 0.95rem; color: var(--text); position: relative; }
.echo-note::after { content: ''; position: absolute; bottom: 0; right: 0; width: 15px; height: 15px; background: var(--ice); border-top-left-radius: 12px; border-top: 1px solid var(--mist); border-left: 1px solid var(--mist); }
.echo-note span { display: block; margin-top: 10px; font-size: 0.85rem; color: var(--sky); font-weight: 600; }

/* Section: Explore list */
.explore-section { background: var(--white); }
.explore-grid { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 1200px; margin: 0 auto; }
.explore-card { background: var(--ice); border-radius: 16px; padding: 15px; display: flex; gap: 15px; align-items: center; border: 1px solid var(--mist); }
.explore-card img { width: 100px; height: 150px; object-fit: cover; border-radius: 8px; }
.explore-info h3 { color: var(--deep); margin-bottom: 5px; }
.explore-info p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 10px; }
.tag-row { display: flex; gap: 8px; }
.tag-sm { background: var(--white); color: var(--sky); padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; }

/* Section: APP Features */
.app-features { background: var(--deep); color: var(--white); }
.app-features .section-header h2 { color: var(--white); }
.app-features .section-header p { color: var(--ice); }
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.feature-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 25px; border-radius: 20px; backdrop-filter: blur(10px); }
.feature-card h3 { color: var(--yellow); font-size: 1.2rem; margin-bottom: 10px; }
.feature-card p { color: var(--ice); font-size: 0.95rem; margin-bottom: 20px; }
.ui-mockup { background: rgba(0,0,0,0.2); border-radius: 10px; height: 100px; display: flex; align-items: center; justify-content: center; border: 1px dashed rgba(255,255,255,0.2); color: rgba(255,255,255,0.3); font-size: 14px; }

/* Section: FAQ */
.faq-section { background: var(--white); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--ice); margin-bottom: 10px; border-radius: 12px; overflow: hidden; border: 1px solid var(--mist); }
.faq-q { padding: 20px; font-weight: 600; color: var(--deep); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q::after { content: '+'; font-size: 20px; color: var(--sky); transition: transform 0.3s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; font-size: 0.95rem; color: var(--text-light); }
.faq-item.open .faq-a { padding-bottom: 20px; max-height: 200px; }

/* Section: Download */
.download-section { background: linear-gradient(135deg, var(--deep), var(--darkblue)); color: var(--white); text-align: center; padding: 80px 20px; }
.download-section h2 { font-size: 2.2rem; margin-bottom: 15px; }
.download-section p { color: var(--mist); margin-bottom: 40px; }
.download-btns { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.download-btns .btn-download { background: var(--yellow); color: var(--deep); padding: 15px 40px; font-size: 16px; box-shadow: 0 4px 15px rgba(247, 224, 94, 0.3); }
.download-btns .btn-download:hover { background: #fff; color: var(--deep); }

/* Footer */
footer {
  background: var(--darkblue);
  color: rgba(255, 255, 255, 0.5);
  padding: 40px 20px 20px;
  font-size: 13px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.footer-links { display: flex; gap: 15px; flex-wrap: wrap; }
.footer-links a { color: rgba(255, 255, 255, 0.6); transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; gap: 10px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(255, 255, 255, 0.5); }
.footer-bottom a:hover { color: var(--white); }
.time-info { font-size: 12px; color: rgba(255, 255, 255, 0.4); }

/* Media Queries */
@media (min-width: 768px) {
  nav.desktop-nav { display: flex; }
  .hero h1 { font-size: 3.5rem; }
  .hero { padding: 140px 20px 100px; }
  .floating-doors { display: block; }
  .hero-mobile-slider { display: none; }
  .branch-result { flex-direction: row; text-align: left; }
  .branch-result img { width: 180px; height: 270px; margin-right: 20px; }
  .branch-result-text { text-align: left; }
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: row; align-items: center; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 4.2rem; }
  .explore-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
  .choice-content { gap: 30px; }
  .choice-card { display: none; }
  .choice-card.active { display: block; }
}