/* 花迹产品站 — 纸感手账 × 橄榄绿 */

:root {
  --bg: #f6f3ec;
  --bg-card: #fcfaf4;
  --ink: #2f3328;
  --ink-secondary: #6b6f5e;
  --ink-muted: #a0a290;
  --olive: #7a8b5c;
  --olive-dark: #56643f;
  --olive-soft: #e9ecdd;
  --olive-light: #a8b089;
  --water: #6fa8c7;
  --divider: rgba(47, 51, 40, 0.1);
  --shadow: 0 24px 60px rgba(47, 51, 40, 0.12);
  --radius: 20px;
  --radius-lg: 28px;
  --font-serif: "Noto Serif SC", "Songti SC", serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max-w: 1120px;
  --header-h: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--safe-bottom);
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: min(100% - 32px, var(--max-w));
  margin-inline: auto;
}

@media (min-width: 768px) {
  .container {
    width: min(100% - 48px, var(--max-w));
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 8px 16px;
  background: var(--olive);
  color: #fff;
  z-index: 9999;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(246, 243, 236, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
}

.brand-mark {
  font-size: 1.5rem;
  line-height: 1;
}

.site-nav {
  display: none;
  gap: 28px;
  margin-left: auto;
  font-size: 0.9375rem;
  color: var(--ink-secondary);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--olive-dark);
}

.header-cta {
  margin-left: auto;
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
  }
  .header-cta {
    margin-left: 0;
  }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--olive);
  color: #fff;
  box-shadow: 0 8px 24px rgba(122, 139, 92, 0.35);
}

.btn-primary:hover {
  background: var(--olive-dark);
}

.btn-ghost {
  background: transparent;
  border-color: var(--divider);
  color: var(--ink-secondary);
}

.btn-ghost:hover {
  border-color: var(--olive-light);
  color: var(--olive-dark);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: 28px 0 56px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(122, 139, 92, 0.12), transparent),
    radial-gradient(circle at 10% 80%, rgba(111, 168, 199, 0.1), transparent),
    linear-gradient(180deg, var(--bg) 0%, #f0ece3 100%);
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%237a8b5c' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-grid {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.hero-copy {
  width: 100%;
  text-align: center;
}

.hero-lead {
  margin: 0 auto 24px;
}

.hero-actions {
  justify-content: center;
  margin-bottom: 28px;
}

.hero-stats {
  justify-content: center;
  gap: 20px 28px;
}

@media (min-width: 960px) {
  .hero {
    padding: 72px 0 100px;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
  }
  .hero-copy {
    text-align: left;
  }
  .hero-lead {
    margin: 0 0 28px;
  }
  .hero-actions {
    justify-content: flex-start;
    margin-bottom: 36px;
  }
  .hero-stats {
    justify-content: flex-start;
  }
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--olive-dark);
  background: var(--olive-soft);
  border-radius: 999px;
}

.hero h1 {
  margin: 0 0 20px;
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  color: var(--olive-dark);
}

.hero-lead {
  max-width: 34em;
  font-size: 1rem;
  color: var(--ink-secondary);
}

@media (min-width: 768px) {
  .hero-lead {
    font-size: 1.0625rem;
  }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
}

.hero-actions .btn {
  width: 100%;
}

@media (min-width: 480px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    max-width: none;
    width: auto;
  }
  .hero-actions .btn {
    width: auto;
  }
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stats strong {
  font-size: 1rem;
  color: var(--ink);
}

.hero-stats span {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

/* Phone mock — 贴近小程序真实界面 */
.hero-visual {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 8px 0 12px;
}

.phone-device {
  position: relative;
  width: min(100%, 290px);
}

@media (min-width: 480px) {
  .phone-device {
    width: min(100%, 320px);
  }
}

.phone-glow {
  position: absolute;
  inset: 12% 8% -8%;
  background: radial-gradient(ellipse at center, rgba(122, 139, 92, 0.22), transparent 70%);
  filter: blur(24px);
  z-index: 0;
  pointer-events: none;
}

.phone-shell {
  position: relative;
  z-index: 1;
  background: linear-gradient(145deg, #2a2c26 0%, #121410 100%);
  border-radius: 44px;
  padding: 10px;
  box-shadow:
    0 32px 64px rgba(47, 51, 40, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.phone-island {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 28px;
  background: #0e0f0c;
  border-radius: 20px;
  z-index: 3;
}

.phone-screen {
  position: relative;
  background: var(--bg);
  border-radius: 36px;
  padding: 44px 14px 0;
  overflow: hidden;
  min-height: 520px;
}

/* 状态栏 */
.mock-status {
  position: absolute;
  top: 14px;
  left: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  z-index: 2;
}

.mock-signal {
  display: flex;
  gap: 2px;
  align-items: flex-end;
}

.mock-signal i {
  display: block;
  width: 3px;
  background: var(--ink);
  border-radius: 1px;
}

.mock-signal i:nth-child(1) { height: 4px; opacity: 0.35; }
.mock-signal i:nth-child(2) { height: 6px; opacity: 0.55; }
.mock-signal i:nth-child(3) { height: 8px; opacity: 0.75; }
.mock-signal i:nth-child(4) { height: 10px; }

/* 首页头部 */
.mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.mock-greet {
  margin: 0;
  font-size: 12px;
  color: var(--ink-secondary);
}

.mock-name {
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mock-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--olive-soft);
  border-radius: 50%;
  font-size: 18px;
  flex-shrink: 0;
}

/* 天气卡片 */
.mock-weather-card {
  padding: 14px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #eaf0e1 0%, #f3e9d6 100%);
  box-shadow: 0 4px 16px rgba(122, 139, 92, 0.1);
}

.mock-weather-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mock-weather-emoji {
  font-size: 32px;
  line-height: 1;
}

.mock-temp-row {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.mock-temp {
  font-size: 26px;
  font-weight: 700;
  color: var(--olive-dark);
  line-height: 1;
}

.mock-unit {
  font-size: 13px;
  color: var(--olive-dark);
}

.mock-cond {
  margin-left: 8px;
  font-size: 13px;
  color: var(--ink-secondary);
}

.mock-weather-info .mock-muted {
  margin: 2px 0 0;
  font-size: 11px;
}

.mock-weather-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
}

.mock-weather-tip p {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink);
}

.mock-weather-tip span {
  font-size: 14px;
  line-height: 1;
}

/* 区块标题 */
.mock-section-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.mock-section-head-spaced {
  margin-top: 14px;
}

.mock-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.mock-section-count {
  font-size: 12px;
  color: var(--ink-muted);
}

/* 待办列表 */
.mock-todo-group {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--divider);
  box-shadow: 0 2px 12px rgba(47, 51, 40, 0.04);
  overflow: hidden;
  margin-bottom: 4px;
}

.mock-todo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.mock-divider {
  height: 1px;
  margin-left: 58px;
  background: var(--divider);
}

.mock-plant-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 18px;
  flex-shrink: 0;
}

.mock-avatar-a {
  background: linear-gradient(135deg, #c8ddb0, #8fad6e);
}

.mock-avatar-b {
  background: linear-gradient(135deg, #d4c4a8, #a89070);
}

.mock-todo-body {
  flex: 1;
  min-width: 0;
}

.mock-todo-name {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.mock-chip {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  color: var(--water);
  background: rgba(111, 168, 199, 0.14);
  border-radius: 999px;
}

.mock-chip-alt {
  color: var(--olive-dark);
  background: var(--olive-soft);
}

.mock-todo-body .mock-muted {
  margin: 3px 0 0;
  font-size: 11px;
}

.mock-done-btn {
  flex-shrink: 0;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 600;
  color: var(--olive-dark);
  background: var(--olive-soft);
  border-radius: 999px;
}

.mock-muted {
  color: var(--ink-muted);
}

/* 花园网格 */
.mock-garden {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-bottom: 14px;
}

.mock-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 78px;
  padding: 10px 6px;
  background: var(--bg-card);
  border-radius: 14px;
  border: 1px solid var(--divider);
  box-shadow: 0 2px 8px rgba(47, 51, 40, 0.04);
}

.mock-tile-emoji {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 6px;
}

.mock-tile-name {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-tile-count {
  margin: 3px 0 0;
  font-size: 10px;
  color: var(--ink-muted);
}

/* 底部 TabBar */
.mock-tabbar {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 54px;
  padding: 0 8px 8px;
  background: var(--bg-card);
  border-top: 1px solid var(--divider);
  border-radius: 0 0 36px 36px;
}

.mock-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 16px;
  color: var(--ink-muted);
}

.mock-tab small {
  font-size: 9px;
  font-weight: 500;
}

.mock-tab-on {
  color: var(--olive);
}

.mock-tab-on small {
  font-weight: 600;
}

.mock-tab-spacer {
  flex: 0.55;
}

.mock-fab {
  position: absolute;
  left: 50%;
  top: -16px;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: var(--olive);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(122, 139, 92, 0.45);
}

/* ── Sections ── */
.section {
  padding: 56px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 80px 0;
  }
}

.section-head {
  max-width: 560px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .section-head {
    margin-bottom: 48px;
  }
}

.section-head h2 {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.25;
}

.section-lead {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 1.0625rem;
}

/* Features */
.features {
  background: var(--bg-card);
  border-block: 1px solid var(--divider);
}

.feature-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 22px;
  background: var(--bg);
  border: 1px solid rgba(122, 139, 92, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(47, 51, 40, 0.04);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

@media (min-width: 768px) {
  .feature-card {
    padding: 28px;
    border-style: dashed;
    border-width: 2px;
    box-shadow: none;
  }
}

.feature-card:hover {
  border-color: var(--olive-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(47, 51, 40, 0.08);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-size: 1.5rem;
  background: var(--olive-soft);
  border-radius: 14px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.125rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-secondary);
  line-height: 1.6;
}

/* How */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .how-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 64px;
    align-items: start;
  }
  .how-layout .section-head {
    margin-bottom: 0;
  }
}

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--divider);
  box-shadow: 0 2px 12px rgba(47, 51, 40, 0.03);
}

@media (min-width: 768px) {
  .step {
    gap: 20px;
    padding: 24px;
  }
}

.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--olive-dark);
  background: var(--olive-soft);
  border-radius: 50%;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.0625rem;
}

.step p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-secondary);
}

/* Design */
.design-panel {
  display: grid;
  gap: 28px;
  padding: 28px 22px;
  background: linear-gradient(135deg, var(--olive-soft) 0%, var(--bg-card) 50%, rgba(111, 168, 199, 0.12) 100%);
  border-radius: 24px;
  border: 1px solid var(--divider);
}

@media (min-width: 768px) {
  .design-panel {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    padding: 64px;
    border-radius: 32px;
  }
}

.design-copy h2 {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.25;
}

.design-copy > p {
  margin: 0 0 24px;
  color: var(--ink-secondary);
}

.palette {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.palette li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--ink-secondary);
}

.palette span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--swatch);
  border: 1px solid var(--divider);
}

.design-quote {
  margin: 0;
  padding: 28px;
  background: rgba(252, 250, 244, 0.8);
  border-left: 4px solid var(--olive);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.design-quote p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-secondary);
}

/* CTA */
.cta {
  padding-bottom: calc(64px + var(--safe-bottom));
}

.cta-inner {
  text-align: center;
  padding: 40px 24px;
  background: var(--olive);
  color: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

@media (min-width: 768px) {
  .cta {
    padding-bottom: 100px;
  }
  .cta-inner {
    padding: 64px 32px;
    border-radius: 32px;
  }
}

.cta-inner h2 {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.25;
}

.cta-inner > p {
  margin: 0 0 28px;
  max-width: 28em;
  margin-inline: auto;
  opacity: 0.92;
  font-size: 1.0625rem;
}

.cta-inner .btn-primary {
  background: #fff;
  color: var(--olive-dark);
  box-shadow: none;
}

.cta-inner .btn-primary:hover {
  background: var(--olive-soft);
}

.cta-note {
  margin: 20px 0 0 !important;
  font-size: 0.8125rem !important;
  opacity: 0.75 !important;
}

/* Footer */
.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--divider);
  text-align: center;
}

.footer-inner p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-secondary);
}

.footer-sub {
  margin-top: 6px !important;
  font-size: 0.8125rem !important;
  color: var(--ink-muted) !important;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover,
  .feature-card:hover {
    transform: none;
  }
}
