:root {
  color-scheme: light;
  --ink: #20342e;
  --muted: #687872;
  --accent: #4f8d75;
  --accent-dark: #326b57;
  --mint: #e7f3ed;
  --paper: #fbfaf6;
  --card: #ffffff;
  --line: #dfe8e2;
  --warm: #f4eee5;
  --shadow: 0 18px 50px rgba(44, 72, 62, 0.09);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.7; }
a { color: inherit; text-underline-offset: 0.2em; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 10; padding: 0.65rem 1rem; background: var(--ink); color: white; border-radius: 0.5rem; }
.skip-link:focus { top: 1rem; }
.section-shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.site-header { width: min(1120px, calc(100% - 40px)); min-height: 80px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; font-weight: 700; }
.brand small { color: var(--muted); font-size: 0.78em; font-weight: 600; }
.brand-mark { display: grid; place-items: center; width: 2.35rem; height: 2.35rem; border-radius: 0.8rem 0.8rem 0.8rem 0.25rem; color: white; background: var(--accent); }
nav { display: flex; gap: 1.5rem; color: var(--muted); font-size: 0.95rem; }
nav a { text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--accent-dark); }

.hero { min-height: 620px; padding-block: 88px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); gap: clamp(3rem, 8vw, 7rem); align-items: center; }
.eyebrow { margin: 0 0 1rem; color: var(--accent-dark); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(2.7rem, 6vw, 5.4rem); line-height: 1.12; letter-spacing: -0.055em; }
h2 { margin: 0 0 1rem; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.2; letter-spacing: -0.035em; }
h3 { margin: 1rem 0 0.5rem; font-size: 1.25rem; }
.lead { max-width: 44rem; margin: 1.8rem 0 2rem; color: var(--muted); font-size: 1.12rem; }
.primary-link { display: inline-flex; padding: 0.85rem 1.25rem; border-radius: 999px; color: white; background: var(--accent-dark); font-weight: 700; text-decoration: none; }
.primary-link:hover, .primary-link:focus-visible { background: var(--ink); }

.rhythm-card { padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: 2rem; background: linear-gradient(145deg, var(--mint), #f4f9f6); box-shadow: var(--shadow); transform: rotate(1.5deg); }
.rhythm-heading { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); }
.status-pill { padding: 0.15rem 0.65rem; border-radius: 999px; color: var(--accent-dark); background: rgba(255,255,255,0.8); font-size: 0.82rem; }
.rhythm-title { margin-top: 3rem; font-size: 1.75rem; font-weight: 800; }
.rhythm-time { margin: 0.2rem 0 2rem; font-size: 3.3rem; font-weight: 800; letter-spacing: -0.05em; }
.reminder-list { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.reminder-list span { padding: 0.55rem 0.8rem; border-radius: 999px; background: white; box-shadow: 0 8px 22px rgba(49, 90, 74, 0.07); }

.section-block { padding-block: 96px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
.feature-card { min-height: 270px; padding: 1.7rem; border: 1px solid var(--line); border-radius: 1.5rem; background: var(--card); box-shadow: 0 12px 36px rgba(44, 72, 62, 0.05); }
.feature-card p { color: var(--muted); }
.feature-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; color: var(--accent-dark); background: var(--mint); font-size: 0.8rem; font-weight: 800; }

.split-section { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 8vw, 7rem); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.steps li { counter-increment: steps; display: grid; grid-template-columns: 2.5rem 9rem 1fr; gap: 1rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(steps, decimal-leading-zero); color: var(--accent); font-weight: 800; }
.steps span { color: var(--muted); }

.boundary-card { margin-block: 40px 110px; padding: clamp(1.8rem, 5vw, 3.5rem); display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2rem; align-items: center; border-radius: 2rem; background: var(--warm); }
.boundary-card h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.boundary-card p:last-child { color: #6f665a; }

.site-footer { min-height: 180px; padding-block: 42px; display: flex; justify-content: space-between; gap: 2rem; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer p { margin: 0.4rem 0 0; }
.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.icp-link { font-size: 0.88rem; }

.legal-page { max-width: 820px; padding-block: 80px 110px; }
.legal-page h1 { max-width: 760px; font-size: clamp(2.5rem, 5vw, 4.5rem); }
.legal-meta { margin-bottom: 4rem; color: var(--muted); }
.legal-page section { padding-block: 1.4rem; border-top: 1px solid var(--line); }
.legal-page section h2 { font-size: 1.35rem; }
.legal-page section p, .legal-page li { color: var(--muted); }
.legal-page ul { padding-left: 1.25rem; }

@media (max-width: 760px) {
  .section-shell, .site-header { width: min(100% - 28px, 1120px); }
  .site-header { min-height: 70px; }
  nav { gap: 0.8rem; font-size: 0.86rem; }
  .hero { min-height: auto; padding-block: 58px 72px; grid-template-columns: 1fr; gap: 3.5rem; }
  .rhythm-card { transform: none; }
  .feature-grid, .split-section, .boundary-card { grid-template-columns: 1fr; }
  .section-block { padding-block: 70px; }
  .feature-card { min-height: auto; }
  .steps li { grid-template-columns: 2.3rem 1fr; }
  .steps span { grid-column: 2; }
  .site-footer { flex-direction: column; min-height: auto; }
  .footer-links { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
