:root {
  --green-950: #12251f;
  --green-900: #17372d;
  --green-700: #2f5b45;
  --ivory: #f7f1e4;
  --ivory-soft: #fffaf0;
  --gold: #b9914b;
  --gold-soft: #e3c784;
  --red: #9d342e;
  --ink: #24312b;
  --muted: #6d766f;
  --line: rgba(185, 145, 75, 0.28);
  --shadow: 0 16px 38px rgba(18, 37, 31, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: linear-gradient(180deg, #f6efe0 0%, #fffaf0 42%, #eff5ee 100%);
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  position: relative;
  width: min(100%, 430px);
  height: 100vh;
  min-height: 100vh;
  margin: 0 auto;
  padding: 52px 0 82px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(227, 199, 132, 0.28), transparent 32%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.94), rgba(247, 241, 228, 0.97));
  transition: padding 0.28s ease;
}

.app-shell.is-welcome {
  padding: 0;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 50%;
  width: min(100%, 430px);
  height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  transform: translateX(-50%);
  color: var(--ivory-soft);
  background: rgba(18, 37, 31, 0.94);
  backdrop-filter: blur(14px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.app-shell.is-welcome .topbar {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -12px);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 28px;
  color: var(--green-950);
  background: var(--gold-soft);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.topbar-title {
  font-size: 14px;
  letter-spacing: 0;
}

.music-btn {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(227, 199, 132, 0.58);
  border-radius: 50%;
  color: var(--ivory-soft);
  background: rgba(255, 250, 240, 0.08);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.music-btn.is-playing {
  color: var(--green-950);
  background: var(--gold-soft);
}

.slide-viewport {
  height: 100%;
  overflow: hidden;
}

.slide-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.42s cubic-bezier(0.22, 0.72, 0.22, 1);
  will-change: transform;
}

.slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  padding: 24px 18px 32px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.welcome-slide {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 28px 22px 34px;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  color: var(--green-950);
  font-size: clamp(36px, 9vw, 44px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  color: var(--green-950);
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  color: var(--green-950);
  font-size: 17px;
  line-height: 1.26;
  letter-spacing: 0;
}

.hero-subtitle,
.section-intro,
.content-section p,
.guide-speech p,
.product-meta,
.modal-content p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.section-intro {
  margin-bottom: 18px;
}

.welcome-stage {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 142px;
  align-items: end;
  gap: 12px;
  margin: 24px 0 22px;
}

.welcome-actions {
  display: grid;
  gap: 10px;
}

.image-frame {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.76);
}

.welcome-guide {
  min-height: 336px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-placeholder {
  width: 100%;
  min-height: inherit;
  display: grid;
  place-items: center;
  padding: 18px;
  color: rgba(47, 91, 69, 0.76);
  background: linear-gradient(135deg, rgba(255, 250, 240, 0.92), rgba(247, 241, 228, 0.88));
  border: 1px dashed rgba(185, 145, 75, 0.5);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  word-break: break-word;
}

.guide-speech {
  padding: 15px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.88);
  box-shadow: 0 10px 26px rgba(47, 91, 69, 0.1);
}

.guide-speech p {
  margin: 0;
  font-size: 13px;
}

.primary-btn,
.ghost-btn,
.close-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-btn {
  border: 0;
  color: var(--ivory-soft);
  background: var(--green-900);
  box-shadow: 0 14px 26px rgba(18, 37, 31, 0.22);
}

.ghost-btn {
  color: var(--green-900);
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.74);
}

.content-section > .ghost-btn {
  margin-top: 14px;
}

.primary-btn:active,
.ghost-btn:active,
.close-btn:active,
.interactive-card:active,
.product-card:active {
  transform: scale(0.97);
}

.content-section {
  padding-top: 26px;
}

.timeline,
.brand-map,
.feature-grid,
.scene-list {
  display: grid;
  gap: 12px;
}

.timeline {
  margin-bottom: 14px;
}

.brand-map,
.feature-grid,
.scene-list {
  grid-template-columns: 1fr;
}

.interactive-card,
.product-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.82);
  box-shadow: 0 10px 24px rgba(18, 37, 31, 0.08);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.interactive-card:hover,
.product-card:hover {
  border-color: rgba(185, 145, 75, 0.62);
  box-shadow: 0 14px 30px rgba(18, 37, 31, 0.14);
}

.interactive-card:focus-visible,
.product-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.interactive-card span,
.timeline span,
.scene-card span {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.interactive-card p,
.timeline p,
.brand-map p,
.feature-grid p,
.scene-list p {
  margin-bottom: 0;
}

.section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.section-count {
  flex: 0 0 auto;
  padding: 5px 9px;
  color: var(--green-950);
  background: rgba(227, 199, 132, 0.4);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-card {
  padding: 10px;
}

.product-image {
  aspect-ratio: 1 / 1.18;
  border-radius: 7px;
}

.product-card h3 {
  margin: 12px 0 5px;
  font-size: 16px;
}

.product-meta {
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.55;
}

.scene-tag {
  display: inline-flex;
  max-width: 100%;
  padding: 4px 7px;
  color: var(--green-900);
  background: rgba(47, 91, 69, 0.08);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.bottom-nav {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 12px;
  width: min(calc(100% - 28px), 402px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 7px;
  transform: translateX(-50%);
  border: 1px solid rgba(227, 199, 132, 0.38);
  border-radius: 8px;
  background: rgba(18, 37, 31, 0.94);
  box-shadow: 0 12px 34px rgba(18, 37, 31, 0.28);
  backdrop-filter: blur(14px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.app-shell.is-welcome .bottom-nav {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
}

.nav-link {
  display: grid;
  place-items: center;
  min-height: 38px;
  color: rgba(255, 250, 240, 0.72);
  border-radius: 7px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-link.active {
  color: var(--green-950);
  background: var(--gold-soft);
}

.modal {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: none;
  align-items: end;
  justify-content: center;
  padding: 18px;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 37, 31, 0.62);
  animation: fadeIn 0.22s ease both;
}

.modal-card {
  position: relative;
  width: min(100%, 390px);
  padding: 18px;
  border: 1px solid rgba(227, 199, 132, 0.56);
  border-radius: 8px 8px 0 0;
  background: var(--ivory-soft);
  box-shadow: 0 -18px 42px rgba(18, 37, 31, 0.28);
  animation: modalUp 0.26s ease both;
}

.modal-guide {
  width: 124px;
  height: 124px;
  margin: -54px auto 14px;
  border-radius: 50%;
  background: var(--ivory);
}

.modal-content p {
  margin-bottom: 18px;
}

.close-btn {
  border: 0;
  color: var(--ivory-soft);
  background: var(--green-900);
}

.fade-up {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.7s ease forwards;
}

.delay-1 {
  animation-delay: 0.12s;
}

.delay-2 {
  animation-delay: 0.22s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@media (max-width: 360px) {
  .slide {
    padding-left: 14px;
    padding-right: 14px;
  }

  .welcome-stage {
    grid-template-columns: 1fr;
  }

  .welcome-guide {
    min-height: 260px;
  }

  .product-grid {
    gap: 10px;
  }

  .product-card {
    padding: 8px;
  }
}
