/* YOMP 新版视觉：明亮、温暖的户外风格，全站共用 */
:root {
  --forest: #1f4d3a;
  --leaf: #5a8f4e;
  --leaf-soft: #e3eedc;
  --sun: #f6c453;
  --sun-deep: #e9a92a;
  --sky: #dcebf2;
  --earth: #8a5a3b;
  --sand: #f7f3ea;
  --paper: #fffdf8;
  --ink: #1d2a24;
  --muted: #5d6b63;
  --line: rgba(31, 77, 58, .12);
  --radius: 24px;
  --shadow: 0 18px 50px rgba(31, 77, 58, .10);

  /* 语义变量：页面只用这些，深色模式只需要改这一组 */
  color-scheme: light dark;
  --bg: var(--sand);
  --surface: var(--paper);
  --heading: var(--forest);
  --primary: var(--forest);
  --primary-hover: #173d2e;
  --on-primary: #fff;
  --on-sun: #1d2a24;
  --header-bg: rgba(247, 243, 234, .88);
  --chip-bg: rgba(255, 255, 255, .7);
  --idea-sun: #fbe9bf;
  --idea-earth: #efe0d2;
  --safety-bg: #fbe9bf;
  --safety-text: #6b5420;
  --dash: rgba(90, 143, 78, .4);
  --cta-bg: var(--forest);
  --scene-filter: none;
}

/* 深色模式：跟随系统设置 */
@media (prefers-color-scheme: dark) {
  :root {
    --leaf: #8cc47a;
    --leaf-soft: rgba(140, 196, 122, .14);
    --sky: rgba(120, 170, 205, .16);
    --ink: #e6ede8;
    --muted: #a3b2a9;
    --line: rgba(220, 235, 225, .12);
    --shadow: 0 18px 50px rgba(0, 0, 0, .35);

    --bg: #121a16;
    --surface: #18221d;
    --heading: #e3f0dd;
    --primary: #8cc47a;
    --primary-hover: #a3d493;
    --on-primary: #10200f;
    --header-bg: rgba(18, 26, 22, .85);
    --chip-bg: rgba(255, 255, 255, .1);
    --idea-sun: rgba(246, 196, 83, .14);
    --idea-earth: rgba(205, 150, 110, .16);
    --safety-bg: rgba(246, 196, 83, .12);
    --safety-text: #ead39a;
    --dash: rgba(140, 196, 122, .35);
    --cta-bg: #1f4d3a;
    /* 晴天插画在深色页面里稍微压暗，不刺眼 */
    --scene-filter: brightness(.88) saturate(.95);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
section[id] { scroll-margin-top: 76px; }
p { margin: 0; }

/* viewport-fit=cover：横屏时避开刘海 */
.container { width: min(1160px, 100% - 32px - env(safe-area-inset-left) - env(safe-area-inset-right)); margin: 0 auto; }
.section { padding: 96px 0; }
.section-tight { padding: 32px 0; }
.section-tint { background: var(--surface); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  color: var(--leaf);
  font-size: 14px; font-weight: 700; letter-spacing: .08em;
}
.badge {
  padding: 2px 10px; border-radius: 999px;
  background: var(--sun); color: var(--on-sun);
  font-size: 12px; font-style: normal; letter-spacing: 0;
}
h2 { font-size: clamp(30px, 4vw, 46px); color: var(--heading); }
h3 { font-size: 20px; color: var(--heading); }
.lead { color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); }
.hl { color: var(--leaf); }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 16px;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 10px 24px rgba(31, 77, 58, .25); }
.button-primary:hover { background: var(--primary-hover); }
.button-ghost { border-color: var(--heading); color: var(--heading); }
.button-ghost:hover { background: var(--leaf-soft); }

/* 导航 */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--header-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-shell { width: min(1160px, 100% - 32px - env(safe-area-inset-left) - env(safe-area-inset-right)); margin: 0 auto; height: 68px; display: flex; align-items: center; justify-content: space-between; }
.brand-link { display: flex; align-items: center; gap: 12px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 15px; font-weight: 600; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--heading); background: var(--leaf-soft); }
.nav-links .nav-cta, .nav-links .nav-cta[aria-current="page"] { margin-left: 8px; background: var(--sun); color: var(--on-sun); }
.nav-links .nav-cta:hover { background: var(--sun-deep); color: var(--on-sun); }
.menu-button { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--leaf-soft); color: var(--heading); font-size: 20px; cursor: pointer; }

/* Logo（template/inc/logo.html，内嵌 SVG）：文字用 currentColor，跟随主题；导航栏里隐藏标语并把字母居中 */
.brand-logo { display: block; height: 40px; width: auto; overflow: visible; color: var(--heading); }
.brand-logo .logo-tag { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; opacity: .72; }
.site-header .logo-tag { display: none; }
.site-header .logo-letters { transform: translate(0, 29px); }
.footer-brand .brand-logo { height: 80px; }

/* 首屏 */
.hero { padding: 64px 0 88px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.2vw, 66px); color: var(--heading); font-weight: 800; }
.hero h1 .hl { white-space: nowrap; }
.hero .lead { margin-top: 24px; max-width: 540px; }
.activity-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; padding: 0; list-style: none; }
.activity-tags li { padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.hero-scene { border-radius: 32px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 5 / 4; background: #dcebe6; }
.hero-scene svg { width: 100%; height: 100%; display: block; filter: var(--scene-filter); }

/* 关于 */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.about-text p { color: var(--muted); font-size: 18px; }
.about-text p + p { margin-top: 18px; }

.section-heading { max-width: 640px; margin-bottom: 44px; }
.section-sub { margin-top: 14px; color: var(--muted); }

/* 和谁一起 */
.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.who-card { padding: 30px 26px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.who-card svg { width: 52px; height: 52px; margin-bottom: 18px; fill: none; stroke: var(--leaf); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.who-card p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* 周末灵感 */
.idea-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.idea-card { min-height: 220px; padding: 28px 26px; border-radius: var(--radius); display: flex; flex-direction: column; justify-content: flex-end; }
.idea-card span { align-self: flex-start; margin-bottom: auto; padding: 3px 12px; border-radius: 999px; background: var(--chip-bg); font-size: 13px; font-weight: 700; color: var(--heading); }
.idea-card p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.idea-green { background: var(--leaf-soft); }
.idea-sun { background: var(--idea-sun); }
.idea-sky { background: var(--sky); }
.idea-earth { background: var(--idea-earth); }

/* App */
.app-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 64px; align-items: center; }
.app-copy .lead { margin-top: 18px; }
.feature-list { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.feature-list li { padding: 18px 22px; border-radius: 18px; background: var(--bg); color: var(--muted); font-size: 15px; }
.feature-list b { display: block; margin-bottom: 2px; color: var(--heading); font-size: 17px; }
.phone { justify-self: center; width: min(300px, 80%); padding: 10px; border-radius: 44px; background: var(--forest); box-shadow: var(--shadow); }
.phone img { border-radius: 36px; }

/* 社区 */
.community-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.community-card { padding: 30px 28px; border-radius: var(--radius); border: 2px dashed var(--dash); background: var(--surface); }
.community-card p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* 安全提示 */
.safety { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; padding: 26px 32px; border-radius: var(--radius); background: var(--safety-bg); }
.safety h3 { font-size: 17px; }
.safety ul { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding-left: 18px; color: var(--safety-text); font-size: 15px; }

/* 行动号召 */
.cta { padding: 72px 32px; border-radius: 36px; background: var(--cta-bg); text-align: center; color: #e8f1e4; }
.cta h2 { color: #fff; }
.cta p { margin-top: 14px; font-size: 18px; }
.cta .button-row { justify-content: center; }
.cta .button-primary { background: var(--sun); color: var(--on-sun); box-shadow: none; }
.cta .button-primary:hover { background: var(--sun-deep); }
.cta .button-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.cta .button-ghost:hover { background: rgba(255, 255, 255, .1); }

/* 页脚 */
.site-footer { padding: 64px 0 36px; background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; }
.footer-brand p { max-width: 340px; margin-top: 16px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-column b { display: block; margin-bottom: 12px; color: var(--heading); }
.footer-column a { display: block; width: fit-content; margin: 6px 0; }
.footer-column a:hover { color: var(--heading); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }

/* 滚动渐显（site.js 加 .visible） */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .button { transition: none; }
}

@media (max-width: 960px) {
  .hero-grid, .about-grid, .app-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .who-grid, .idea-grid { grid-template-columns: repeat(2, 1fr); }
  .community-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .section-tight { padding: 20px 0; }
  .section-heading { margin-bottom: 26px; }
  h2 { font-size: 28px; }
  .lead { font-size: 16px; }
  .button-row .button { flex: 1 1 auto; padding: 0 18px; white-space: nowrap; }

  /* 导航：折叠菜单 */
  .menu-button { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(0, 0, 0, .08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-links .nav-cta { margin-left: 0; text-align: center; }

  /* 首屏：标题 → 插画 → 文案 → 按钮，第一屏就能看到插画 */
  .hero { padding: 24px 0 44px; }
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero-copy { display: contents; }
  .hero .eyebrow { order: 1; margin-bottom: 8px; }
  .hero h1 { order: 2; font-size: 38px; }
  .hero-scene { order: 3; margin-top: 22px; border-radius: 24px; }
  .hero .lead { order: 4; margin-top: 22px; }
  .hero .button-row { order: 5; margin-top: 22px; }
  .activity-tags { order: 6; flex-wrap: nowrap; overflow-x: auto; margin: 18px -16px 0; padding: 0 16px; scrollbar-width: none; }
  .activity-tags::-webkit-scrollbar { display: none; }
  .activity-tags li { flex: none; }

  .about-grid { gap: 18px; }
  .about-text p { font-size: 16px; }

  /* 和谁一起：2×2 紧凑网格 */
  .who-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .who-card { padding: 18px 16px; border-radius: 20px; }
  .who-card svg { width: 40px; height: 40px; margin-bottom: 8px; }
  .who-card h3 { font-size: 17px; }
  .who-card p { margin-top: 6px; font-size: 14px; line-height: 1.6; }

  /* 周末建议：左右滑动，露出下一张的一角 */
  .idea-grid {
    display: flex; gap: 12px; overflow-x: auto;
    margin: 0 -16px; padding: 0 16px 4px;
    scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none;
  }
  .idea-grid::-webkit-scrollbar { display: none; }
  .idea-card { flex: 0 0 74%; min-height: 170px; padding: 22px 20px; scroll-snap-align: start; }
  .idea-card.reveal { opacity: 1; transform: none; }

  /* App：列表紧凑，截图缩小 */
  .app-grid { gap: 32px; }
  .app-copy .lead { margin-top: 12px; }
  .feature-list { gap: 10px; margin-top: 22px; }
  .feature-list li { padding: 14px 16px; border-radius: 16px; font-size: 14px; }
  .feature-list b { font-size: 16px; }
  .phone { width: 62%; padding: 8px; border-radius: 36px; }
  .phone img { border-radius: 29px; }

  .community-grid { gap: 12px; }
  .community-card { padding: 20px 18px; border-radius: 20px; }
  .community-card p { margin-top: 6px; }

  .safety { padding: 20px; gap: 10px; }
  .safety ul { flex-direction: column; gap: 6px; }

  .cta { padding: 44px 20px; border-radius: 28px; }
  .cta p { font-size: 16px; }
  .cta .button-row { flex-direction: column; align-items: stretch; }

  .site-footer { padding: 48px 0 calc(28px + env(safe-area-inset-bottom)); }
  .footer-grid { gap: 32px; }
  .footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .footer-brand .brand-logo { height: 64px; }
  .footer-bottom { flex-direction: column; gap: 6px; margin-top: 32px; }
}

/* ===== 子页面（内测、帮助、隐私、协议、会员、404）===== */
button { font: inherit; cursor: pointer; }
.accent { color: var(--leaf); }
.text-link { color: var(--heading); font-weight: 600; text-decoration: underline; text-decoration-color: var(--leaf); text-decoration-thickness: 2px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.text-link:hover { color: var(--leaf); }

.page-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 820px; font-size: clamp(34px, 4.6vw, 52px); font-weight: 800; color: var(--heading); }
.page-hero .lead { max-width: 700px; margin-top: 20px; }
.page-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.status-chip { padding: 5px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.status-chip.live { background: var(--sun); border-color: transparent; color: var(--on-sun); font-weight: 700; }
.install-hint { max-width: 700px; margin-top: 18px; color: var(--muted); font-size: 14px; }

/* 区块标题：标题 + 右侧说明 */
.section-heading:has(> div) { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 16px 40px; }
.section-heading > div { max-width: 640px; }
.section-heading > p { max-width: 420px; color: var(--muted); }

/* 卡片：在 section-tint 上用 --bg，否则用 --surface */
.install-qr-panel, .step-card, .check-card, .contact-card, .feature-card, .toc, .faq-list details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.section-tint :is(.step-card, .check-card, .contact-card, .feature-card, .toc, .faq-list details) { background: var(--bg); }

.install-qr-panel { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; padding: 28px; margin-bottom: 20px; }
.install-qr-panel img { width: 180px; height: 180px; padding: 8px; background: #fff; border-radius: 16px; }
.install-qr-panel > div { flex: 1 1 260px; min-width: 0; }
.install-qr-panel p { margin: 10px 0 12px; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card { padding: 28px 26px; }
.step-card em { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 18px; border-radius: 50%; background: var(--sun); color: var(--on-sun); font-style: normal; font-weight: 800; }
.step-card p { margin-top: 8px; color: var(--muted); font-size: 15px; }

.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.check-card { padding: 22px 24px; }
.check-card b { display: flex; align-items: center; gap: 10px; color: var(--heading); font-size: 17px; }
.check-card b::before { content: "✓"; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--leaf-soft); color: var(--leaf); font-size: 13px; }
.check-card p { margin-top: 6px; color: var(--muted); font-size: 15px; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card { padding: 26px; }
.contact-card span { color: var(--leaf); font-size: 14px; font-weight: 700; letter-spacing: .08em; }
.contact-card b { display: block; margin: 12px 0 6px; color: var(--heading); font-size: 18px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { padding: 28px 26px; }
.feature-card p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.icon-orb { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 16px; background: var(--leaf-soft); color: var(--leaf); font-size: 22px; font-weight: 800; }

/* 长文：目录 + 正文 */
.content-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 92px; display: grid; gap: 2px; padding: 14px; border-radius: 20px; }
.toc a { padding: 8px 12px; border-radius: 12px; color: var(--muted); font-size: 15px; }
.toc a:hover { color: var(--heading); background: var(--leaf-soft); }
.legal { max-width: 760px; }
.legal > section { scroll-margin-top: 92px; padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.legal > section:last-child { margin-bottom: 0; border-bottom: 0; }
.legal .eyebrow { margin-bottom: 8px; }
.legal h2 { font-size: 26px; }
.legal h3 { margin-top: 24px; font-size: 18px; }
.legal section > :is(p, ul, ol, .notice, .faq-list, .feedback-box) { margin-top: 14px; }
.legal p, .legal li { color: var(--muted); }
.legal b { color: var(--ink); }
.legal ul, .legal ol { margin-bottom: 0; padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal .button-row { margin-top: 20px; }
.notice { padding: 16px 20px; border-radius: 16px; background: var(--leaf-soft); color: var(--ink); }
.danger-notice { background: var(--safety-bg); color: var(--safety-text); }

.faq-list { display: grid; gap: 10px; }
.faq-list details { border-radius: 18px; }
.faq-list summary { padding: 16px 20px; color: var(--heading); font-weight: 700; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; float: right; margin-left: 12px; color: var(--leaf); font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0; padding: 0 20px 18px; }

.feedback-box { padding: 22px 24px; border-radius: 18px; background: var(--surface); border: 1px dashed var(--dash); }
.feedback-box pre { margin: 0; white-space: pre-wrap; color: var(--ink); font: 14px/1.8 ui-monospace, SFMono-Regular, Menlo, monospace; }

@media (max-width: 960px) {
  .content-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .page-hero { padding: 40px 0 36px; }
  .page-hero h1 { font-size: 32px; }
  .section-heading:has(> div) { display: block; }
  .section-heading > p { margin-top: 12px; }
  .check-grid, .feature-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .install-qr-panel { padding: 20px; }
  .install-qr-panel img { width: 150px; height: 150px; }
  .legal h2 { font-size: 22px; }
  .legal > section { padding-bottom: 32px; margin-bottom: 32px; }
}
