/* 食光日记官网。色值对齐 apps/app/src/shared/theme.ts 的 design token。 */
:root {
  --page-bg: #e8dec9;
  --bg: #f8f1e4;
  --card: #fffdf6;
  --card-alt: #f3ead8;
  --primary: #d1762a;
  --primary-deep: #a85512;
  --primary-soft: #f8e4cb;
  --accent: #6f8452;
  --accent-soft: #e7ecda;
  --text: #3a2d1f;
  --text-secondary: #8a775e;
  --border: #e6dac2;
  --shadow: 0 18px 40px rgba(88, 62, 32, 0.14);
  --radius: 16px;
  --sans: 'Noto Sans SC', system-ui, -apple-system, 'PingFang SC', sans-serif;
  --serif: 'Fraunces', 'Noto Serif SC', 'Songti SC', serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page-bg: #1c1610;
    --bg: #2a211a;
    --card: #362c21;
    --card-alt: #413626;
    --primary: #e08a3e;
    --primary-deep: #f0a45c;
    --primary-soft: #4a3520;
    --accent: #a3b483;
    --accent-soft: #3b4028;
    --text: #f1e6d3;
    --text-secondary: #b3a186;
    --border: #4b3f2e;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.shell { width: min(1080px, 100% - 48px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.25; margin: 0; letter-spacing: 0; }
h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 900; }
h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0; }

.eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 13px;
  font-weight: 500;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 18px; font-weight: 700; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--text-secondary); }
.nav a:hover, .nav a[aria-current='page'] { color: var(--primary-deep); }

.hero { padding: clamp(40px, 7vw, 84px) 0 clamp(32px, 5vw, 56px); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--text-secondary); max-width: 34em; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff7ec;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.button:hover { background: var(--primary-deep); }
.button.secondary { background: transparent; color: var(--text); border-color: var(--border); }
.button.secondary:hover { background: var(--card-alt); }
.button[aria-disabled='true'] { opacity: 0.45; pointer-events: none; }

.meta { color: var(--text-secondary); font-size: 14px; }
.meta a { color: var(--primary-deep); }

.hero-shot, .shot {
  margin: 0;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-shot img, .shot img { width: 100%; }
.hero-shot { max-width: 420px; justify-self: center; }

.band { padding: clamp(40px, 6vw, 72px) 0; }
.band > .shell > h2 { margin-bottom: 28px; }

.feature-list { display: flex; flex-direction: column; gap: 20px; }
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  padding: clamp(20px, 3vw, 32px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.feature:nth-child(even) .feature-copy { order: 2; }
.feature-copy { display: flex; flex-direction: column; gap: 10px; }
.feature-copy p { color: var(--text-secondary); }
.shot { max-width: 320px; justify-self: center; }

.download-band { background: var(--card-alt); }
.download-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(24px, 5vw, 56px); align-items: center; }
.download-inner > div { display: flex; flex-direction: column; gap: 16px; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.steps span {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 14px;
}

.faq-band { background: var(--bg); }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-list details { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; }
.faq-list summary { cursor: pointer; font-weight: 500; }
.faq-list p { margin-top: 10px; color: var(--text-secondary); }

.prose { padding: clamp(32px, 5vw, 64px) 0; max-width: 46em; }
.prose h1 { margin-bottom: 6px; }
.prose h2 { margin: 30px 0 8px; font-size: 20px; }
.prose p { color: var(--text-secondary); }
.prose .item { margin-top: 4px; }
.updated { color: var(--text-secondary); font-size: 14px; }

.site-footer { border-top: 1px solid var(--border); padding: 28px 0; background: var(--page-bg); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--text-secondary); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--primary-deep); }

@media (max-width: 760px) {
  .hero-inner, .download-inner { grid-template-columns: 1fr; }
  .hero-shot { order: -1; }
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-copy { order: 0; }
  .nav { gap: 14px; font-size: 14px; }
  .header-inner { flex-wrap: wrap; padding: 10px 0; min-height: 0; }
}
