:root {
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-display: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif;
  --ink: #18352a;
  --ink-deep: #10241c;
  --leaf: #4f8f64;
  --leaf-dark: #2f6e48;
  --mint: #cfe5c8;
  --cream: #fff8e9;
  --paper: #fffdf4;
  --sand: #ead8ae;
  --amber: #c77b33;
  --berry: #b24c44;
  --sky: #4d7892;
  --line: rgba(24, 53, 42, 0.16);
  --shadow: 0 20px 60px rgba(24, 53, 42, 0.18);
  --shadow-soft: 0 12px 32px rgba(24, 53, 42, 0.12);
  --radius-card: 8px;
  --nav-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f7efd9;
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(247, 239, 217, 0.88), rgba(245, 231, 195, 0.94)),
    url("../images/forest-background.webp") center top / cover no-repeat;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    repeating-linear-gradient(0deg, rgba(24, 53, 42, 0.05), rgba(24, 53, 42, 0.05) 1px, transparent 1px, transparent 6px);
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(255, 253, 244, 0.78);
  border-bottom: 1px solid rgba(24, 53, 42, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 253, 244, 0.92);
  box-shadow: 0 10px 28px rgba(24, 53, 42, 0.12);
}

.nav-shell {
  width: min(1160px, calc(100% - 40px));
  height: var(--nav-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand-name,
.footer-brand span {
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: rgba(24, 53, 42, 0.82);
  font-size: 0.96rem;
  transition: color 160ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--amber);
  transition: transform 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink-deep);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 244, 0.86);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: calc(100svh - 42px);
  overflow: hidden;
  padding: calc(var(--nav-height) + 28px) 0 46px;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(14, 38, 28, 0.78) 0%, rgba(30, 71, 48, 0.52) 42%, rgba(255, 248, 233, 0.32) 100%),
    url("../images/forest-background.webp") center / cover no-repeat;
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(247, 239, 217, 0.92));
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(120deg, rgba(255, 253, 244, 0.08), rgba(255, 253, 244, 0.08) 1px, transparent 1px, transparent 18px);
  mix-blend-mode: screen;
}

.hero-inner,
.section-inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
  min-height: calc(100svh - var(--nav-height) - 116px);
}

.hero-copy {
  color: var(--paper);
  max-width: 690px;
  text-shadow: 0 2px 20px rgba(16, 36, 28, 0.34);
}

.hero-logo {
  width: 92px;
  height: 92px;
  object-fit: contain;
  margin-bottom: 18px;
  filter: drop-shadow(0 16px 24px rgba(16, 36, 28, 0.26));
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero h1,
.section h2,
.doc-title h1,
.download-card h1 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0;
  line-height: 1.1;
}

.hero h1 {
  font-size: 6.4rem;
}

.hero-slogan {
  margin: 16px 0 0;
  max-width: 640px;
  color: #fff8e9;
  font-size: 1.38rem;
  font-weight: 700;
}

.hero-desc {
  margin: 18px 0 0;
  max-width: 640px;
  color: rgba(255, 253, 244, 0.86);
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn,
.store-button,
.doc-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.btn svg,
.store-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.btn-primary,
.store-button.android {
  color: #fffdf4;
  background: linear-gradient(135deg, var(--leaf-dark), var(--leaf));
  box-shadow: 0 14px 32px rgba(47, 110, 72, 0.32);
}

.btn-primary:hover,
.store-button.android:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(47, 110, 72, 0.4);
}

.btn-quiet {
  color: #fffdf4;
  border-color: rgba(255, 253, 244, 0.5);
  background: rgba(255, 253, 244, 0.12);
}

.btn-quiet:hover {
  transform: translateY(-2px);
  background: rgba(255, 253, 244, 0.22);
}

.hero-scene {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-home-image {
  width: min(342px, 84vw);
  max-height: min(720px, calc(100svh - 132px));
  object-fit: contain;
  border-radius: 28px;
  box-shadow: 0 34px 70px rgba(16, 36, 28, 0.38);
  transform: rotate(2deg);
}

.section {
  padding: 84px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section h2 {
  color: var(--ink-deep);
  font-size: 3.2rem;
}

.section p {
  color: rgba(24, 53, 42, 0.74);
}

.intro-band {
  padding: 42px 0;
  background: rgba(255, 253, 244, 0.62);
  border-top: 1px solid rgba(255, 253, 244, 0.72);
  border-bottom: 1px solid rgba(24, 53, 42, 0.09);
}

.intro-grid,
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
}

.intro-grid h2 {
  max-width: 520px;
}

.intro-grid p,
.about-grid p {
  margin: 0;
  font-size: 1.06rem;
}

.features {
  background: linear-gradient(180deg, rgba(247, 239, 217, 0.3), rgba(232, 214, 169, 0.28));
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  position: relative;
  min-height: 318px;
  padding: 24px;
  border: 1px solid rgba(24, 53, 42, 0.13);
  border-radius: var(--radius-card);
  background: rgba(255, 253, 244, 0.82);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 143, 100, 0.45);
  box-shadow: var(--shadow);
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 6px;
  background: linear-gradient(90deg, var(--leaf), var(--amber), var(--sky));
}

.feature-art {
  width: 170px;
  height: 54px;
  object-fit: contain;
  margin-bottom: 28px;
}

.feature-icon {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 28px;
}

.feature-index {
  position: absolute;
  top: 20px;
  right: 20px;
  color: rgba(24, 53, 42, 0.22);
  font-family: var(--font-display);
  font-size: 2rem;
}

.feature-card h3,
.rhythm-list h3 {
  margin: 0;
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0;
}

.feature-card p {
  margin: 14px 0 0;
}

.rhythm {
  background:
    linear-gradient(180deg, rgba(255, 253, 244, 0.74), rgba(247, 239, 217, 0.8)),
    url("../images/pet-background.webp") center / cover no-repeat;
  border-top: 1px solid rgba(24, 53, 42, 0.08);
  border-bottom: 1px solid rgba(24, 53, 42, 0.08);
}

.rhythm-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: clamp(34px, 8vw, 120px);
  align-items: start;
}

.rhythm-copy {
  position: sticky;
  top: 104px;
}

.rhythm-copy p {
  max-width: 440px;
}

.rhythm-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rhythm-list li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-height: 132px;
  padding: 22px;
  border: 1px solid rgba(24, 53, 42, 0.12);
  border-radius: var(--radius-card);
  background: rgba(255, 253, 244, 0.84);
}

.step-num {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fffdf4;
  background: var(--berry);
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.rhythm-list li:nth-child(2) .step-num {
  background: var(--leaf-dark);
}

.rhythm-list li:nth-child(3) .step-num {
  background: var(--sky);
}

.rhythm-list p {
  margin: 8px 0 0;
}

.download-section {
  padding: 90px 0;
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 6vw, 58px);
  border: 1px solid rgba(255, 253, 244, 0.7);
  border-radius: var(--radius-card);
  background:
    linear-gradient(135deg, rgba(24, 53, 42, 0.9), rgba(47, 110, 72, 0.84)),
    url("../images/forest-background.webp") center / cover no-repeat;
  color: #fffdf4;
  box-shadow: var(--shadow);
}

.download-panel h2,
.download-panel p,
.download-panel .section-kicker {
  color: #fffdf4;
}

.download-panel p {
  max-width: 560px;
  margin-bottom: 0;
}

.download-actions {
  display: grid;
  gap: 12px;
  width: min(290px, 100%);
}

.store-button {
  min-height: 56px;
  font-weight: 700;
}

.store-button.ios {
  color: var(--ink);
  background: rgba(255, 253, 244, 0.9);
  border-color: rgba(255, 253, 244, 0.72);
}

.store-button.ios:hover {
  transform: translateY(-2px);
  background: #fffdf4;
}

.about {
  background: rgba(255, 253, 244, 0.52);
}

.info-list {
  display: grid;
  gap: 12px;
}

.info-list div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 58px;
  padding: 14px 18px;
  border: 1px solid rgba(24, 53, 42, 0.12);
  border-radius: var(--radius-card);
  background: rgba(255, 253, 244, 0.84);
}

.info-list span {
  color: rgba(24, 53, 42, 0.6);
}

.info-list strong {
  color: var(--ink-deep);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 38px 0 44px;
  background: var(--ink-deep);
  color: rgba(255, 253, 244, 0.72);
}

.footer-inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

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

.footer-brand span {
  color: #fffdf4;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 26px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #fffdf4;
}

.copyright {
  margin: 0;
  color: rgba(255, 253, 244, 0.54);
  font-size: 0.9rem;
}

.beian-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: -6px 0 0;
  color: rgba(255, 253, 244, 0.54);
  font-size: 0.86rem;
}

.beian-row a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.beian-row a:hover,
.beian-row a:focus-visible {
  color: #fffdf4;
}

.beian-icon {
  width: auto;
  height: 16px;
}

.page-simple {
  min-height: 100vh;
  padding-top: var(--nav-height);
}

.doc-hero,
.download-hero {
  padding: 84px 0 48px;
  background:
    linear-gradient(180deg, rgba(255, 253, 244, 0.6), rgba(247, 239, 217, 0.82)),
    url("../images/forest-background.webp") center / cover no-repeat;
  border-bottom: 1px solid rgba(24, 53, 42, 0.1);
}

.doc-title,
.download-card {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
}

.doc-title h1,
.download-card h1 {
  color: var(--ink-deep);
  font-size: 4.5rem;
}

.doc-title p,
.download-card p {
  margin: 16px 0 0;
  max-width: 680px;
  color: rgba(24, 53, 42, 0.74);
}

.doc-back {
  margin-top: 26px;
  color: #fffdf4;
  background: var(--leaf-dark);
}

.doc-body {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 84px;
}

.doc-section {
  padding: 26px 0;
  border-bottom: 1px solid rgba(24, 53, 42, 0.12);
}

.doc-section h2 {
  margin: 0 0 14px;
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: 0;
}

.doc-section p,
.doc-section li {
  color: rgba(24, 53, 42, 0.76);
}

.doc-section ul {
  margin: 0;
  padding-left: 1.2em;
}

.download-page-shell {
  min-height: calc(100vh - var(--nav-height));
  display: grid;
  place-items: center;
  padding: 112px 20px 72px;
  background:
    linear-gradient(180deg, rgba(247, 239, 217, 0.3), rgba(247, 239, 217, 0.86)),
    url("../images/forest-background.webp") center / cover no-repeat;
}

.download-card {
  display: grid;
  justify-items: center;
  max-width: 440px;
  padding: 34px 28px;
  border: 1px solid rgba(24, 53, 42, 0.12);
  border-radius: var(--radius-card);
  background: rgba(255, 253, 244, 0.88);
  box-shadow: var(--shadow);
  text-align: center;
}

.download-card .app-icon {
  width: 98px;
  height: 98px;
  object-fit: contain;
  margin-bottom: 20px;
}

.download-card .download-actions {
  width: 100%;
  margin-top: 26px;
}

.download-card .store-button.ios {
  border-color: var(--line);
}

.download-note {
  margin-top: 18px;
  color: rgba(24, 53, 42, 0.58);
  font-size: 0.92rem;
}

.download-beian {
  justify-content: center;
  margin-top: 16px;
  color: rgba(24, 53, 42, 0.62);
}

.download-beian a:hover,
.download-beian a:focus-visible {
  color: var(--ink-deep);
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(var(--nav-height) - 1px);
    left: 20px;
    right: 20px;
    display: grid;
    gap: 2px;
    padding: 14px;
    border: 1px solid rgba(24, 53, 42, 0.12);
    border-radius: var(--radius-card);
    background: rgba(255, 253, 244, 0.96);
    box-shadow: var(--shadow-soft);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    min-height: 44px;
    padding: 0 8px;
  }

  .nav-links a::after {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 24px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero h1 {
    font-size: 5.5rem;
  }

  .section h2 {
    font-size: 2.8rem;
  }

  .doc-title h1,
  .download-card h1 {
    font-size: 3.8rem;
  }

  .hero-scene {
    min-height: 380px;
  }

  .hero-home-image {
    width: min(300px, 76vw);
    max-height: 620px;
    transform: rotate(0deg);
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-grid,
  .rhythm-layout,
  .about-grid,
  .download-panel {
    grid-template-columns: 1fr;
  }

  .rhythm-copy {
    position: static;
  }

  .download-actions {
    width: 100%;
  }
}

@media (max-width: 640px) {
  :root {
    --nav-height: 64px;
  }

  .nav-shell,
  .hero-inner,
  .section-inner,
  .footer-inner,
  .doc-title,
  .doc-body {
    width: min(100% - 28px, 1160px);
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 1.16rem;
  }

  .hero {
    min-height: calc(100svh - 28px);
    padding-top: calc(var(--nav-height) + 20px);
  }

  .hero h1 {
    font-size: 3.35rem;
  }

  .section h2 {
    font-size: 2.25rem;
  }

  .doc-title h1,
  .download-card h1 {
    font-size: 2.75rem;
  }

  .hero-slogan {
    font-size: 1.16rem;
  }

  .hero-desc {
    font-size: 0.98rem;
  }

  .hero-actions,
  .download-actions {
    align-items: stretch;
  }

  .btn,
  .store-button {
    width: 100%;
  }

  .hero-scene {
    min-height: 320px;
  }

  .hero-home-image {
    width: min(280px, 78vw);
    max-height: 560px;
  }

  .section {
    padding: 58px 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }

  .rhythm-list li {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    min-height: 124px;
    padding: 18px;
  }

  .step-num {
    width: 40px;
    height: 40px;
  }

  .info-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .footer-links {
    gap: 12px 18px;
  }
}

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