/* ImageRecipe 官网共享样式 —— 沿用 App 品牌色板(prototype design tokens) */
:root {
  --primary: #4E5BD8;
  --primary-dark: #3A46B5;
  --container: #E6E8FB;
  --container-ink: #2C3798;
  --bg: #F5F6FA;
  --surface: #FFFFFF;
  --ink: #171B26;
  --ink-2: #5C6373;
  --ink-3: #8A91A0;
  --line: #E4E7F0;
  --ok: #1E9E6A;
  --radius-l: 28px;
  --radius-m: 18px;
  --max: 1120px;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶栏 ---------- */
header.bar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245, 246, 250, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); }
.logo svg { width: 30px; height: 30px; border-radius: 8px; }
nav.links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
nav.links a { color: var(--ink-2); }
nav.links a:hover { color: var(--primary); }
.pill {
  display: inline-block; background: var(--primary); color: #fff;
  padding: 9px 22px; border-radius: 999px; font-size: 15px; font-weight: 600;
}
.pill:hover { background: var(--primary-dark); }
header .pill { margin-left: 4px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.22; font-weight: 800; letter-spacing: .5px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .sub { margin-top: 18px; font-size: 17px; color: var(--ink-2); max-width: 32em; }
.hero .acts { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.ghost {
  display: inline-block; border: 1.5px solid var(--primary); color: var(--primary);
  padding: 9px 22px; border-radius: 999px; font-size: 15px; font-weight: 600;
}
.ghost:hover { background: var(--container); }
.chips { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
  font-size: 13px; padding: 5px 14px; border-radius: 999px;
}
.chip b { color: var(--primary); font-weight: 700; }

/* 截图叠层:呼应 App 的 layers 标志 */
.stack { position: relative; height: 480px; }
.stack figure {
  position: absolute; width: 224px; border-radius: var(--radius-m);
  border: 1px solid var(--line); background: var(--surface);
  box-shadow: 0 18px 44px rgba(23, 27, 38, .12);
  overflow: hidden;
}
.stack figure img { width: 100%; }
.stack .s1 { right: 150px; top: 60px; transform: rotate(-7deg); }
.stack .s2 { right: 30px; top: 150px; transform: rotate(5deg); z-index: 2; }
.stack .s3 { right: -60px; top: 20px; transform: rotate(-2deg); z-index: 1; width: 180px; opacity: .95; }

/* ---------- 分区通用 ---------- */
section { padding: 76px 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.sec-head { max-width: 40em; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; line-height: 1.3; }
.sec-head p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }

/* ---------- 流水线(真序列,编号成立) ---------- */
.flow { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; }
.flow .node {
  flex: 1 1 150px; min-width: 140px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 20px 16px; text-align: center; position: relative;
}
.alt .flow .node { background: var(--bg); }
.flow .node .n {
  display: inline-flex; width: 34px; height: 34px; border-radius: 50%;
  background: var(--container); color: var(--container-ink);
  font-weight: 800; align-items: center; justify-content: center; margin-bottom: 8px;
}
.flow .node h3 { font-size: 16px; }
.flow .node p { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.flow .arr { align-self: center; padding: 0 6px; color: var(--primary); font-weight: 700; flex: 0 0 auto; }

/* ---------- 功能网格 ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-m); padding: 26px 24px;
}
.alt .card { background: var(--surface); }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--ink-2); }
.card .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--container); color: var(--container-ink); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 20px; }

/* ---------- 隐私横幅 ---------- */
.offline {
  background: linear-gradient(120deg, var(--primary), var(--primary-dark));
  color: #fff; border-radius: var(--radius-l); padding: 52px 48px;
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 28px; align-items: center;
}
.offline h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; line-height: 1.35; }
.offline p { margin-top: 12px; opacity: .92; font-size: 16px; }
.offline .big { font-size: 64px; font-weight: 800; text-align: center; line-height: 1.1; }
.offline .big small { display: block; font-size: 15px; font-weight: 500; opacity: .85; margin-top: 6px; }
.offline a.doc { display: inline-block; margin-top: 22px; background: #fff; color: var(--primary-dark); padding: 10px 24px; border-radius: 999px; font-weight: 700; font-size: 15px; }

/* ---------- 截图长廊 ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery figure { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
/* 手机截图统一按竖屏比例裁头显示,避免懒加载/尺寸不一造成的错行 */
.gallery img { aspect-ratio: 9 / 19; object-fit: cover; object-position: top; width: 100%; }
.gallery figcaption { font-size: 13px; color: var(--ink-2); padding: 10px 12px; border-top: 1px solid var(--line); }

/* ---------- FAQ ---------- */
.faq dl { max-width: 46em; }
.faq dt { font-size: 17px; font-weight: 700; margin-top: 26px; }
.faq dt::before { content: "Q"; color: var(--primary); font-weight: 800; margin-right: 10px; }
.faq dd { margin-top: 6px; color: var(--ink-2); }

/* ---------- 页脚 ---------- */
footer { background: var(--ink); color: #B9BFCF; padding: 40px 0; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
footer a { color: #D8DCE8; }
footer .logo { color: #fff; }

/* ---------- 隐私政策正文 ---------- */
.doc-page { padding: 64px 0 88px; }
.doc {
  max-width: 46em; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-l); padding: 56px 56px 64px;
}
.doc h1 { font-size: 32px; font-weight: 800; }
.doc .meta { color: var(--ink-3); font-size: 14px; margin: 10px 0 36px; }
.doc h2 { font-size: 20px; margin-top: 38px; }
.doc p, .doc li { color: var(--ink-2); font-size: 15.5px; }
.doc ul { padding-left: 1.4em; margin-top: 8px; }
.doc .key { background: var(--container); color: var(--container-ink); border-radius: 10px; padding: 14px 18px; margin-top: 24px; font-size: 15px; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14.5px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.doc th { background: var(--bg); color: var(--ink); }
.back { display: inline-block; margin-bottom: 26px; font-size: 15px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .stack { height: 420px; margin-top: 8px; }
  .stack .s1 { right: auto; left: 10px; }
  .stack .s2 { right: auto; left: 130px; }
  .stack .s3 { display: none; }
  .grid { grid-template-columns: 1fr 1fr; }
  .offline { grid-template-columns: 1fr; text-align: center; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .flow .arr { display: none; }
  .flow .node { margin: 6px; flex-basis: calc(50% - 12px); }
  nav.links { display: none; }
}
@media (max-width: 520px) {
  .grid, .gallery { grid-template-columns: 1fr; }
  .doc { padding: 30px 22px 40px; border-radius: var(--radius-m); }
  section { padding: 56px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
