:root {
    --ice: #f0f6fc;
    --fog: #dbe9f7;
    --sky: #b8d4f1;
    --deep: #0f2a47;
    --navy: #1a3a5c;
    --blue: #2a6fdb;
    --lemon: #f7d94c;
    --text: #1c2e42;
    --muted: #5a7188;
    --glass: rgba(255, 255, 255, 0.55);
    --glass-brd: rgba(255, 255, 255, 0.8);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--ice);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
  }
  img { max-width: 100%; display: block; }
  a { text-decoration: none; color: inherit; }

  /* Header */
  .site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(240, 246, 252, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.6);
    transition: box-shadow .3s;
  }
  .site-header.scrolled { box-shadow: 0 4px 24px rgba(42, 111, 219, 0.12); }
  .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-weight: 700; font-size: 18px; color: var(--deep); }
  .brand img { height: 34px; width: auto; }
  .nav-links { display: none; gap: 28px; font-size: 15px; color: var(--muted); }
  .nav-links a:hover { color: var(--blue); }
  .header-actions { display: flex; align-items: center; gap: 12px; }
  .btn-download {
    background: var(--deep); color: #fff; padding: 9px 20px; border-radius: 30px;
    font-size: 14px; font-weight: 600; transition: transform .2s, background .2s;
    white-space: nowrap;
  }
  .btn-download:hover { background: var(--blue); transform: translateY(-2px); }
  .menu-toggle {
    display: flex; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 8px;
  }
  .menu-toggle span { width: 20px; height: 2px; background: var(--deep); border-radius: 2px; }

  /* Hero */
  .hero {
    position: relative; padding: 130px 20px 70px;
    background: linear-gradient(160deg, #dceafb 0%, #eef5fd 40%, #ffffff 100%);
    overflow: hidden;
  }
  .hero::before {
    content: ""; position: absolute; top: -120px; right: -100px;
    width: 480px; height: 480px; border-radius: 50%;
    background: radial-gradient(circle, rgba(184,212,241,0.6) 0%, rgba(184,212,241,0) 70%);
    pointer-events: none;
  }
  .hero::after {
    content: ""; position: absolute; bottom: -80px; left: -80px;
    width: 360px; height: 360px; border-radius: 50%;
    background: radial-gradient(circle, rgba(247,217,76,0.18) 0%, rgba(247,217,76,0) 70%);
    pointer-events: none;
  }
  .hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }
  .hero-text { max-width: 620px; }
  .hero-badge {
    display: inline-block; background: rgba(255,255,255,0.7); border: 1px solid rgba(42,111,219,0.2);
    color: var(--blue); padding: 5px 16px; border-radius: 20px; font-size: 13px; margin-bottom: 22px;
  }
  .hero h1 { font-size: 34px; line-height: 1.3; color: var(--deep); margin-bottom: 18px; letter-spacing: -0.5px; }
  .hero h1 em { font-style: normal; color: var(--blue); }
  .hero-sub { font-size: 16px; color: var(--muted); margin-bottom: 32px; max-width: 520px; }
  .hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
  .btn-primary {
    background: var(--blue); color: #fff; padding: 14px 32px; border-radius: 32px;
    font-weight: 600; font-size: 16px; transition: transform .2s, box-shadow .2s;
    box-shadow: 0 8px 24px rgba(42,111,219,0.3); display: inline-block;
  }
  .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(42,111,219,0.4); }
  .btn-ghost {
    background: rgba(255,255,255,0.7); color: var(--deep); padding: 14px 32px; border-radius: 32px;
    font-weight: 600; font-size: 16px; border: 1px solid rgba(42,111,219,0.25); transition: background .2s;
    display: inline-block;
  }
  .btn-ghost:hover { background: #fff; }

  /* Floating doors */
  .hero-doors {
    display: flex; gap: 18px; margin-top: 56px; overflow-x: auto; padding-bottom: 16px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  }
  .hero-doors::-webkit-scrollbar { height: 4px; }
  .hero-doors::-webkit-scrollbar-thumb { background: rgba(42,111,219,0.3); border-radius: 2px; }
  .story-door {
    flex: 0 0 210px; scroll-snap-align: start;
    background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(219,233,247,0.7));
    border: 1px solid rgba(255,255,255,0.9);
    border-radius: 16px 16px 8px 8px;
    padding: 12px; box-shadow: 0 16px 40px rgba(15,42,71,0.1);
    transition: transform .3s;
  }
  .story-door:hover { transform: translateY(-6px); }
  .story-door:nth-child(2) { margin-top: 26px; }
  .story-door:nth-child(3) { margin-top: 12px; }
  .door-cover {
    border-radius: 10px; overflow: hidden; aspect-ratio: 2/3; background: var(--fog);
  }
  .door-cover img { width: 100%; height: 100%; object-fit: cover; }
  .door-title { font-size: 15px; font-weight: 700; color: var(--deep); margin: 10px 0 4px; }
  .door-hint { font-size: 12px; color: var(--muted); line-height: 1.5; }

  /* Section base */
  section { position: relative; }
  .wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
  .sec-head { text-align: center; margin-bottom: 44px; }
  .sec-head h2 { font-size: 26px; color: var(--deep); margin-bottom: 10px; }
  .sec-head p { font-size: 15px; color: var(--muted); max-width: 620px; margin: 0 auto; }
  .sec-tag {
    display: inline-block; font-size: 13px; color: var(--blue); background: rgba(42,111,219,0.08);
    padding: 4px 14px; border-radius: 16px; margin-bottom: 14px;
  }

  /* Mood selector */
  .mood-section { padding: 80px 0; background: #fff; }
  .mood-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 36px;
  }
  .mood-btn {
    background: var(--ice); border: 1.5px solid transparent; border-radius: 14px;
    padding: 16px 14px; text-align: left; cursor: pointer; font-size: 15px; color: var(--deep);
    font-family: inherit; transition: all .25s; line-height: 1.5;
  }
  .mood-btn:hover { border-color: rgba(42,111,219,0.35); }
  .mood-btn.active { background: rgba(42,111,219,0.1); border-color: var(--blue); box-shadow: 0 6px 20px rgba(42,111,219,0.12); }
  .mood-btn small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
  .mood-result {
    background: linear-gradient(135deg, #e8f1fc, #f5f9ff);
    border-radius: 18px; padding: 24px; display: grid; grid-template-columns: 1fr; gap: 20px;
    border: 1px solid rgba(255,255,255,0.9);
  }
  .mood-cover { width: 140px; border-radius: 10px; overflow: hidden; aspect-ratio: 2/3; background: var(--fog); flex-shrink: 0; }
  .mood-cover img { width: 100%; height: 100%; object-fit: cover; }
  .mood-detail h3 { font-size: 18px; color: var(--deep); margin-bottom: 8px; }
  .mood-detail p { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
  .mood-tags { display: flex; gap: 8px; flex-wrap: wrap; }
  .tag { font-size: 12px; background: rgba(42,111,219,0.1); color: var(--blue); padding: 3px 12px; border-radius: 12px; }

  /* Fork section */
  .fork-section { padding: 80px 0; background: linear-gradient(180deg, #f0f6fc, #e1edfa); }
  .fork-choice { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 30px; }
  .fork-option {
    background: var(--glass); border: 1.5px solid var(--glass-brd); border-radius: 14px;
    padding: 18px 20px; cursor: pointer; transition: all .25s; font-size: 15px; color: var(--deep);
    font-family: inherit; text-align: left;
  }
  .fork-option:hover { border-color: var(--blue); }
  .fork-option.active { background: #fff; border-color: var(--blue); box-shadow: 0 8px 24px rgba(42,111,219,0.15); }
  .fork-option strong { display: block; margin-bottom: 4px; font-size: 16px; }
  .fork-option span { color: var(--muted); font-size: 13px; }
  .fork-reveal {
    background: #fff; border-radius: 18px; padding: 24px; display: none; align-items: flex-start; gap: 20px;
    border: 1px solid rgba(42,111,219,0.1);
  }
  .fork-reveal.show { display: flex; }
  .fork-cover { width: 120px; aspect-ratio: 2/3; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--fog); }
  .fork-cover img { width: 100%; height: 100%; object-fit: cover; }
  .fork-body h3 { font-size: 17px; color: var(--deep); margin-bottom: 8px; }
  .fork-body p { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
  .link-btn { display: inline-block; background: var(--deep); color: #fff; padding: 9px 22px; border-radius: 24px; font-size: 13px; }

  /* Emotion meter */
  .emotion-section { padding: 80px 0; background: #fff; }
  .emotion-controls { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 34px; }
  .emo-chip {
    background: var(--ice); border: 1.5px solid transparent; padding: 9px 20px; border-radius: 30px;
    font-size: 14px; color: var(--deep); cursor: pointer; transition: all .25s; font-family: inherit;
  }
  .emo-chip:hover { border-color: var(--blue); }
  .emo-chip.active { background: var(--blue); color: #fff; }
  .emotion-panel {
    background: linear-gradient(135deg, #eaf2fc, #d5e7f9);
    border-radius: 20px; padding: 26px; transition: background .5s;
  }
  .emotion-content { display: none; gap: 20px; align-items: center; }
  .emotion-content.show { display: flex; }
  .emotion-content img { width: 110px; aspect-ratio: 2/3; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
  .emotion-content div h3 { font-size: 18px; color: var(--deep); margin-bottom: 8px; }
  .emotion-content div p { font-size: 14px; color: var(--muted); }

  /* POV section */
  .pov-section { padding: 80px 0; background: linear-gradient(180deg, #eaf2fb, #f7fafe); }
  .pov-card {
    background: rgba(255,255,255,0.75); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.9); border-radius: 20px; padding: 28px; max-width: 760px; margin: 0 auto;
    box-shadow: 0 12px 40px rgba(15,42,71,0.08);
  }
  .pov-intro { font-size: 16px; color: var(--deep); margin-bottom: 20px; line-height: 1.8; }
  .pov-choices { display: flex; flex-direction: column; gap: 12px; }
  .pov-choice {
    background: #fff; border: 1.5px solid rgba(42,111,219,0.2); border-radius: 12px; padding: 14px 18px;
    font-size: 15px; color: var(--deep); cursor: pointer; text-align: left; transition: all .25s; font-family: inherit;
  }
  .pov-choice:hover { border-color: var(--blue); background: #f6faff; }
  .pov-result { display: none; margin-top: 20px; padding-top: 20px; border-top: 1px dashed rgba(42,111,219,0.2); }
  .pov-result.show { display: block; }
  .pov-result p { font-size: 14px; color: var(--muted); margin-bottom: 14px; }

  /* Duration & Trail section */
  .duration-section { padding: 80px 0; background: #fff; }
  .dur-time { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 30px; }
  .dur-chip {
    flex: 0 0 auto; background: var(--ice); border: 1.5px solid transparent; padding: 10px 22px; border-radius: 30px;
    font-size: 14px; color: var(--deep); cursor: pointer; transition: all .25s; font-family: inherit;
  }
  .dur-chip:hover { border-color: var(--blue); }
  .dur-chip.active { background: var(--deep); color: #fff; }
  .dur-panel { display: none; gap: 20px; background: var(--ice); border-radius: 16px; padding: 22px; align-items: center; }
  .dur-panel.show { display: flex; }
  .dur-panel img { width: 110px; aspect-ratio: 2/3; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
  .dur-panel h3 { font-size: 17px; color: var(--deep); margin-bottom: 6px; }
  .dur-panel p { font-size: 14px; color: var(--muted); }

  /* Trail list */
  .trail-section { padding: 80px 0; background: #f2f7fd; }
  .trail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .trail-node {
    background: #fff; border-radius: 14px; padding: 12px; box-shadow: 0 6px 20px rgba(15,42,71,0.06);
  }
  .trail-node img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 8px; margin-bottom: 10px; }
  .trail-node h3 { font-size: 14px; color: var(--deep); margin-bottom: 2px; }
  .trail-node p { font-size: 12px; color: var(--muted); }

  /* Echo section */
  .echo-section { padding: 80px 0; background: #fff; }
  .echo-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
  .echo-chip {
    background: rgba(247,217,76,0.2); border: 1.5px solid transparent; padding: 8px 20px;
    border-radius: 20px; font-size: 14px; color: var(--deep); cursor: pointer; transition: all .2s; font-family: inherit;
  }
  .echo-chip:hover { border-color: var(--lemon); }
  .echo-chip.active { background: var(--lemon); border-color: #e5c531; }
  .echo-notes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .echo-note {
    background: var(--ice); border-radius: 12px; padding: 16px; font-size: 13px; color: var(--muted);
    border-left: 3px solid var(--sky);
  }
  .echo-note strong { display: block; color: var(--deep); margin-bottom: 4px; font-size: 14px; }

  /* Gallery */
  .gallery-section { padding: 80px 0; background: linear-gradient(180deg, #f7fafe, #e8f1fb); }
  .gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .gallery-item {
    background: #fff; border-radius: 12px; overflow: hidden; transition: transform .3s;
    box-shadow: 0 6px 20px rgba(15,42,71,0.05);
  }
  .gallery-item:hover { transform: translateY(-4px); }
  .gallery-item img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
  .gallery-info { padding: 12px; }
  .gallery-info h3 { font-size: 14px; color: var(--deep); margin-bottom: 4px; }
  .gallery-info p { font-size: 12px; color: var(--muted); }

  /* App experience */
  .app-section { padding: 80px 0; background: #fff; }
  .app-features { display: grid; grid-template-columns: 1fr; gap: 18px; }
  .feature-card {
    background: var(--ice); border-radius: 16px; padding: 22px;
    border: 1px solid rgba(255,255,255,0.8);
  }
  .feature-icon {
    width: 44px; height: 44px; border-radius: 12px; background: rgba(42,111,219,0.1);
    display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
    font-size: 20px; color: var(--blue); font-weight: 700;
  }
  .feature-card h3 { font-size: 17px; color: var(--deep); margin-bottom: 8px; }
  .feature-card p { font-size: 14px; color: var(--muted); }

  /* FAQ */
  .faq-section { padding: 80px 0; background: var(--ice); }
  .faq-list { max-width: 800px; margin: 0 auto; }
  .faq-item { background: #fff; border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
  .faq-q {
    width: 100%; background: none; border: none; text-align: left; padding: 18px 22px;
    font-size: 15px; color: var(--deep); font-weight: 600; cursor: pointer; display: flex;
    justify-content: space-between; align-items: center; font-family: inherit;
  }
  .faq-q::after { content: "+"; font-size: 20px; color: var(--blue); transition: transform .3s; }
  .faq-q.open::after { transform: rotate(45deg); }
  .faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; padding: 0 22px; }
  .faq-a p { padding-bottom: 18px; font-size: 14px; color: var(--muted); }
  .faq-a.open { max-height: 300px; }

  /* Download zone */
  .download-section {
    padding: 80px 20px; text-align: center;
    background: linear-gradient(160deg, #1b3a5c 0%, #0f2a47 100%);
    color: #fff;
  }
  .download-section h2 { font-size: 26px; margin-bottom: 12px; }
  .download-section p { color: rgba(255,255,255,0.7); font-size: 15px; max-width: 560px; margin: 0 auto 28px; }
  .dl-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
  .dl-btn {
    background: #fff; color: var(--deep); padding: 14px 34px; border-radius: 32px;
    font-weight: 700; font-size: 15px; transition: transform .2s; display: inline-block;
  }
  .dl-btn:hover { transform: translateY(-3px); }
  .dl-btn.outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.6); }
  .dl-meta { font-size: 12px; color: rgba(255,255,255,0.5); }

  /* Footer */
  .site-footer {
    background: #0a1e33; color: rgba(255,255,255,0.5); padding: 44px 20px 30px; font-size: 13px;
  }
  .footer-inner { max-width: 1200px; margin: 0 auto; }
  .footer-top { display: flex; flex-direction: column; gap: 24px; margin-bottom: 30px; }
  .footer-brand { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 8px; }
  .footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
  .footer-links a { color: rgba(255,255,255,0.55); }
  .footer-links a:hover { color: #fff; }
  .footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 12px; line-height: 2; }
  .footer-bottom a { color: rgba(255,255,255,0.6); }

  /* Responsive */
  @media (min-width: 768px) {
    .nav-links { display: flex; }
    .menu-toggle { display: none; }
    .hero { padding: 150px 40px 90px; }
    .hero h1 { font-size: 46px; }
    .hero-sub { font-size: 17px; }
    .hero-doors { gap: 26px; margin-top: 70px; }
    .story-door { flex: 0 0 240px; }
    .hero-doors { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; }
    .story-door:nth-child(2) { margin-top: 40px; }
    .story-door:nth-child(3) { margin-top: 18px; }
    .mood-grid { grid-template-columns: repeat(4, 1fr); }
    .mood-result { grid-template-columns: auto 1fr; align-items: center; padding: 30px; }
    .fork-choice { grid-template-columns: repeat(2, 1fr); }
    .trail-grid { grid-template-columns: repeat(4, 1fr); }
    .echo-notes { grid-template-columns: repeat(3, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .app-features { grid-template-columns: repeat(2, 1fr); }
    .footer-top { flex-direction: row; justify-content: space-between; }
    .sec-head h2 { font-size: 32px; }
    .wrap { padding: 0 40px; }
  }
  @media (min-width: 1024px) {
    .hero h1 { font-size: 52px; }
    .hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
    .hero-doors { margin-top: 0; grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .story-door { flex: none; }
    .story-door:nth-child(2) { margin-top: 45px; }
    .story-door:nth-child(3) { margin-top: 20px; }
    .mood-grid { grid-template-columns: repeat(4, 1fr); }
    .trail-grid { grid-template-columns: repeat(4, 1fr); }
    .gallery-grid { grid-template-columns: repeat(4, 1fr); }
    .app-features { grid-template-columns: repeat(4, 1fr); }
    .echo-notes { grid-template-columns: repeat(4, 1fr); }
  }