/* 宜序产品首页：音频辅助的状态切换 */
.home-page {
  --page-ivory: #f9f5ef;
  --page-paper: #fffdf9;
  --ink: #34271f;
  --ink-soft: #75685f;
  --copper: #a75f3d;
  --copper-dark: #7b432c;
  --copper-light: #d8a184;
  --line: rgba(92, 65, 49, 0.17);
  --dream-ink: #38303b;
  --dream-soft: #746b76;
  --dream-accent: #7e6d7e;
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--page-ivory);
  color: var(--ink);
  overflow-x: hidden;
}

.home-page button,
.home-page input {
  font: inherit;
}

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

.home-page img {
  max-width: 100%;
}

.product-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(85, 61, 47, 0.09);
  background: rgba(249, 245, 239, 0.9);
  backdrop-filter: blur(18px);
}

.product-nav__inner {
  width: min(100% - 48px, 1240px);
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.product-nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.product-nav__links a,
.nav-download {
  color: var(--ink-soft);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  transition: color 180ms ease;
}

.product-nav__links a:hover,
.product-nav__links a.is-active {
  color: var(--copper-dark);
}

.nav-download {
  justify-self: end;
  color: var(--copper-dark);
  border-bottom: 1px solid currentColor;
  padding: 5px 0;
}

.nav-download:hover {
  color: var(--copper);
}

.state-hero {
  min-height: 860px;
  padding: clamp(70px, 9vh, 106px) 24px 48px;
  background: var(--page-ivory);
  text-align: left;
}

.hero-copy {
  width: min(100%, 1240px);
  margin: 0 auto;
}

.hero-kicker,
.module-kicker,
.state-choice__kicker {
  margin: 0 0 22px;
  color: var(--copper);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.state-hero h1 {
  max-width: 930px;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 5.2vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.13;
}

.hero-lead {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.9;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.action {
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.action:hover {
  transform: translateY(-2px);
}

.action--primary {
  color: #fffaf5;
  background: var(--copper);
  border-color: var(--copper);
  box-shadow: 0 14px 34px rgba(115, 65, 40, 0.2);
}

.action--primary:hover {
  color: #fffaf5;
  background: var(--copper-dark);
  border-color: var(--copper-dark);
}

.action--quiet {
  color: var(--ink-soft);
  border-color: transparent;
  background: transparent;
}

.action--quiet:hover {
  color: var(--ink);
  border-color: transparent;
  background: rgba(255, 253, 249, 0.54);
}

.hero-state-visual {
  width: calc(100% + 48px);
  margin: clamp(30px, 5vh, 54px) auto 0;
  margin-left: -24px;
}

.hero-state-art {
  width: 100%;
  max-width: none;
  height: min(38.75vw, 411px);
  margin-inline: 0;
  display: block;
  object-fit: fill;
  object-position: center;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 94%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 94%, transparent 100%);
}

.state-track {
  width: min(100%, 1060px);
  margin: -4px auto 0;
  position: relative;
}

.state-track__line {
  position: absolute;
  top: 8px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: rgba(109, 83, 67, 0.2);
  overflow: hidden;
}

.state-track__line span {
  display: block;
  width: var(--state-progress);
  height: 100%;
  background: var(--copper);
  transition: width 520ms ease;
}

.state-track__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.state-step {
  min-height: 72px;
  padding: 24px 6px 8px;
  position: relative;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}

.state-step::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 50%;
  width: 13px;
  height: 13px;
  border: 2px solid var(--page-ivory);
  border-radius: 50%;
  background: #c7b9ae;
  box-shadow: 0 0 0 1px rgba(91, 66, 50, 0.25);
  transform: translateX(-50%);
  transition: background-color 180ms ease, transform 180ms ease;
}

.state-step.is-passed::before,
.state-step.is-active::before {
  background: var(--copper);
}

.state-step.is-active::before {
  transform: translateX(-50%) scale(1.35);
}

.state-step span,
.state-step small {
  display: block;
}

.state-step span {
  color: inherit;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
}

.state-step small {
  margin-top: 3px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.state-step.is-active {
  color: var(--copper-dark);
}

.state-track__description {
  min-height: 24px;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.product-principle {
  min-height: 430px;
  padding: 120px 24px;
  display: grid;
  place-items: center;
  background: var(--page-paper);
  text-align: center;
}

.product-principle p {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.3vw, 3.2rem);
  line-height: 1.65;
  letter-spacing: -0.035em;
}

.module {
  width: 100%;
  min-height: 880px;
  margin: 0;
  scroll-margin-top: 88px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.module-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.module::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 250, 244, 0.28);
  pointer-events: none;
}

.module--dream {
  border: 0;
  box-shadow: none;
}

.module--dream::after {
  background: rgba(247, 242, 246, 0.22);
}

.module-grid {
  width: min(100% - 64px, 1240px);
  min-height: 880px;
  margin: 0 auto;
  padding: 82px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.76fr);
  align-items: center;
  column-gap: clamp(54px, 7vw, 106px);
  row-gap: 46px;
}

.module-grid--reverse {
  min-height: 820px;
  grid-template-columns: minmax(340px, 0.76fr) minmax(0, 1fr);
}

.module-grid--reverse .module-copy {
  grid-column: 2;
  grid-row: 1;
}

.module-grid--reverse .product-preview {
  grid-column: 1;
  grid-row: 1;
}

.module-copy {
  max-width: 610px;
}

.module--dream .module-copy {
  color: var(--dream-ink);
}

.module--dream .module-kicker {
  color: var(--dream-accent);
}

.module-copy h2 {
  margin: 0;
  color: inherit;
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 4.6vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.16;
}

.module-lead {
  max-width: 570px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(0.95rem, 1.25vw, 1.08rem);
  line-height: 2;
}

.module--dream .module-lead {
  color: var(--dream-soft);
}

.audio-console {
  max-width: 590px;
  margin-top: 38px;
  padding: 22px;
  border: 1px solid rgba(118, 78, 54, 0.16);
  border-radius: 22px;
  background: rgba(255, 252, 247, 0.74);
  box-shadow: 0 18px 50px rgba(105, 65, 42, 0.09);
  backdrop-filter: blur(14px);
}

.module--morning .audio-console {
  width: 100%;
  max-width: none;
  margin-top: 0;
  grid-column: 1 / -1;
}

.audio-console__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.audio-console__topline strong,
.audio-console__topline span {
  display: block;
}

.audio-console__topline strong {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.audio-console__topline span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.audio-toggle {
  min-width: 104px;
  min-height: 44px;
  padding: 0 16px;
  flex: 0 0 auto;
  border: 1px solid var(--copper);
  border-radius: 999px;
  background: var(--copper);
  color: #fff;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  transition: background-color 180ms ease, transform 180ms ease;
}

.audio-toggle:hover {
  background: var(--copper-dark);
  transform: translateY(-1px);
}

.audio-timeline {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
}

.audio-timeline span:last-child {
  text-align: right;
}

.audio-timeline input {
  width: 100%;
  height: 20px;
  cursor: pointer;
  accent-color: var(--copper);
}

.audio-stages {
  margin-top: 15px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.audio-stage {
  min-height: 42px;
  padding: 6px 4px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.68rem;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.audio-stage:hover,
.audio-stage.is-active {
  border-color: rgba(146, 90, 58, 0.22);
  background: rgba(174, 101, 62, 0.08);
  color: var(--copper-dark);
}

.module-note {
  margin: 24px 0 0;
  color: var(--copper-dark);
  font-family: var(--font-serif);
  font-size: 0.98rem;
}

.product-preview {
  width: min(100%, 500px);
  margin: 0 auto;
  padding: 20px 20px 16px;
  border: 1px solid rgba(116, 82, 59, 0.14);
  border-radius: 34px;
  background: rgba(255, 253, 249, 0.64);
  box-shadow: 0 32px 74px rgba(89, 58, 39, 0.16);
  backdrop-filter: blur(18px);
}

.product-preview--dream {
  border-color: rgba(85, 70, 88, 0.16);
  background: rgba(249, 246, 249, 0.63);
  box-shadow: 0 32px 74px rgba(54, 45, 60, 0.17);
}

.product-preview__meta {
  min-height: 52px;
  margin: 0 5px 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 8px;
  color: var(--ink-soft);
}

.product-preview__meta span,
.product-preview__meta small {
  padding-bottom: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.product-preview__meta strong {
  justify-self: start;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1;
}

.product-preview--dream .product-preview__meta {
  color: var(--dream-soft);
}

.product-preview--dream .product-preview__meta strong {
  color: var(--dream-ink);
}

.product-preview__screen {
  width: 100%;
  height: 360px;
  overflow: hidden;
  border: 1px solid rgba(70, 51, 39, 0.11);
  border-radius: 24px;
  background: #f8efe6;
}

.product-preview__screen img {
  width: 100%;
  height: auto;
  display: block;
}

.product-preview__screen--dream-main {
  height: auto;
  aspect-ratio: 1080 / 1520;
}

.product-preview figcaption {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-align: center;
}

.night-path {
  max-width: 590px;
  margin: 38px 0 0;
  list-style: none;
  border-top: 1px solid rgba(91, 73, 94, 0.16);
}

.night-path li {
  min-height: 74px;
  display: grid;
  grid-template-columns: 42px minmax(100px, 0.7fr) 1fr;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid rgba(91, 73, 94, 0.16);
}

.night-path span {
  color: var(--dream-accent);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.night-path strong {
  color: var(--dream-ink);
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 600;
}

.night-path small {
  color: var(--dream-soft);
  font-size: 0.72rem;
  line-height: 1.6;
}

.state-choice {
  min-height: 440px;
  padding: 82px 24px 72px;
  scroll-margin-top: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--page-paper);
  text-align: center;
}

.state-choice h2 {
  max-width: 830px;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.5vw, 4.6rem);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -0.05em;
}

.state-choice__lead {
  max-width: 520px;
  margin: 20px auto 34px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.8;
}

.state-choice__options {
  width: min(100%, 760px);
  margin: 48px auto 36px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.state-choice__options a {
  min-height: 114px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--page-ivory);
  color: var(--ink);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.state-choice__options a:hover {
  color: var(--ink);
  border-color: rgba(132, 77, 48, 0.38);
  background: #fffaf4;
  transform: translateY(-3px);
}

.state-choice__options span,
.state-choice__options strong {
  display: block;
}

.state-choice__options span {
  color: var(--ink-soft);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.state-choice__options strong {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
}

.state-choice__note {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.home-footer {
  background: #f3ece4;
  border-color: rgba(92, 65, 49, 0.13);
}

.home-page :focus-visible {
  outline: 3px solid rgba(167, 95, 61, 0.38);
  outline-offset: 4px;
}

@media (max-width: 820px) {
  .product-nav__inner {
    grid-template-columns: 1fr;
  }

  .product-nav__links {
    display: none;
  }

  .module {
    width: 100%;
  }

  .module-grid,
  .module-grid--reverse {
    width: min(100% - 40px, 680px);
    padding: 72px 24px;
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .module-grid--reverse .module-copy,
  .module-grid--reverse .product-preview {
    grid-column: 1;
    grid-row: auto;
  }

  .module-grid--reverse .module-copy {
    grid-row: 1;
  }

  .module-grid--reverse .product-preview {
    grid-row: 2;
  }

  .module-copy {
    max-width: 680px;
  }
}

@media (max-width: 700px) {
  .product-nav__inner {
    width: min(100% - 32px, 640px);
    min-height: 64px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .nav-download {
    font-size: 0.72rem;
  }

  .state-hero {
    min-height: auto;
    padding: 64px 18px 44px;
    text-align: center;
  }

  .state-hero h1 {
    font-size: clamp(2.35rem, 11.4vw, 3.2rem);
    line-height: 1.2;
  }

  .state-hero h1 br {
    display: none;
  }

  .hero-lead {
    max-width: 340px;
    margin-top: 20px;
    font-size: 0.92rem;
    line-height: 1.85;
  }

  .hero-actions {
    margin-top: 28px;
    justify-content: center;
    flex-direction: column;
  }

  .hero-actions .action {
    width: min(100%, 310px);
  }

  .hero-state-visual {
    width: calc(100% + 36px);
    margin-top: 38px;
    margin-left: -18px;
  }

  .hero-state-art {
    width: 100%;
    max-width: none;
    height: auto;
    margin-left: 0;
  }

  .state-step {
    min-height: 76px;
    padding-inline: 2px;
  }

  .state-step span {
    font-size: 0.76rem;
  }

  .state-step small {
    display: none;
  }

  .state-track__description {
    max-width: 290px;
    margin: 4px auto 0;
    font-size: 0.72rem;
  }

  .product-principle {
    min-height: 350px;
    padding: 90px 26px;
  }

  .product-principle p {
    font-size: clamp(1.65rem, 7.8vw, 2.25rem);
  }

  .module {
    width: 100%;
    min-height: 0;
    margin: 0;
    border-radius: 0;
  }

  .module-grid,
  .module-grid--reverse {
    min-height: 0;
    width: min(100% - 24px, 560px);
    padding: 64px 20px;
    gap: 44px;
  }

  .module-copy h2 {
    font-size: clamp(2.35rem, 11vw, 3.2rem);
  }

  .module-lead {
    margin-top: 22px;
    font-size: 0.9rem;
    line-height: 1.9;
  }

  .audio-console {
    margin-top: 30px;
    padding: 18px 14px;
    border-radius: 18px;
  }

  .audio-console__topline {
    align-items: flex-start;
    gap: 12px;
  }

  .audio-console__topline span {
    max-width: 150px;
  }

  .audio-toggle {
    min-width: 92px;
    min-height: 42px;
    padding: 0 12px;
  }

  .audio-stages {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-preview {
    width: min(100%, 370px);
    padding: 14px 14px 12px;
    border-radius: 26px;
  }

  .product-preview__screen {
    height: 300px;
    border-radius: 18px;
  }

  .product-preview__screen--dream-main {
    height: auto;
    aspect-ratio: 1080 / 1520;
  }

  .product-preview__meta strong {
    font-size: 1.9rem;
  }

  .night-path li {
    min-height: 82px;
    grid-template-columns: 34px 1fr;
    gap: 8px 10px;
  }

  .night-path small {
    grid-column: 2;
    padding-bottom: 14px;
  }

  .state-choice {
    min-height: 590px;
    padding: 96px 20px 84px;
  }

  .state-choice__options {
    margin: 36px auto 30px;
    grid-template-columns: 1fr;
  }

  .state-choice__options a {
    min-height: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page,
  .home-page * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
