/* 掌厨官网 · 晨雾纸感
   与记账簿门户保持同一套气质：米白纸、墨绿字、细线、圆角、克制留白。 */

:root {
  --bg: #F0F1EE;
  --paper: #F8F9F6;
  --panel: #FFFFFF;
  --ink: #181C1A;
  --ink-soft: rgba(24, 28, 26, .64);
  --ink-faint: rgba(24, 28, 26, .44);
  --line: rgba(40, 56, 51, .13);
  --accent: #283833;
  --accent-deep: #3D6B52;
  --gold: #86652F;
  --gold-soft: rgba(134, 101, 47, .12);
  --danger: #A34B38;
  --shadow: 0 18px 50px rgba(40, 56, 51, .10);
  --shadow-soft: 0 8px 24px rgba(40, 56, 51, .07);
  --radius: 22px;
  --radius-sm: 14px;
  --serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, .85), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(61, 107, 82, .07), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(134, 101, 47, .05), transparent 42%);
  background-attachment: fixed;
}

a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- 顶部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(1.2) blur(16px);
  background: rgba(240, 241, 238, .82);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: .06em;
  text-decoration: none;
}

.brand:hover { text-decoration: none; }

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(40, 56, 51, .18);
}

.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: .28em;
  color: var(--ink-faint);
  margin-top: -2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  color: var(--ink-soft);
}

.nav a { color: inherit; }
.nav a:hover { color: var(--accent); text-decoration: none; }

.nav .nav-download {
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--accent);
  color: #F6F7F4;
  font-size: 12px;
  letter-spacing: .04em;
}
.nav .nav-download:hover { background: var(--accent-deep); }

/* ---------- 通用 ---------- */
main { padding: 54px 0 72px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .28em;
  color: var(--gold);
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.28;
  margin: 0;
}

h1 { font-size: clamp(38px, 6vw, 62px); }
h2 { font-size: clamp(26px, 3.6vw, 38px); }
h3 { font-size: 20px; }

p { margin: 0; }

.lead {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--ink-soft);
  line-height: 1.9;
}

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

.section { margin-top: 76px; }
.section-head { max-width: 720px; margin-bottom: 26px; }
.section-head p { margin-top: 12px; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #F7F8F5; box-shadow: 0 10px 26px rgba(40, 56, 51, .20); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { background: rgba(255,255,255,.72); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #fff; }
.btn-gold { background: var(--gold-soft); color: var(--gold); border-color: rgba(134,101,47,.22); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 12px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--ink-soft);
}

/* ---------- 首页 Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
}

.hero-copy .eyebrow { margin-bottom: 14px; }
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy .lead { max-width: 560px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
}

.stat {
  padding: 13px 12px;
  border-top: 1px solid var(--line);
}
.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1.2;
}
.stat span {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--ink-faint);
}

.hero-visual {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 4% 12% 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 107, 82, .13), rgba(61, 107, 82, 0) 68%);
  filter: blur(12px);
}

.phone {
  position: relative;
  width: min(300px, 78vw);
  border-radius: 38px;
  padding: 9px;
  background: linear-gradient(145deg, #2B3531, #4A5751);
  box-shadow: 0 30px 70px rgba(24, 28, 26, .28), inset 0 0 0 1px rgba(255,255,255,.12);
  transform: rotate(1.2deg);
}

.phone::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 24px;
  border-radius: 999px;
  background: #1B211F;
  z-index: 2;
}

.phone img {
  border-radius: 30px;
  width: 100%;
  height: auto;
}

.phone-shadow {
  position: absolute;
  bottom: 2%;
  width: 62%;
  height: 26px;
  border-radius: 50%;
  background: rgba(24, 28, 26, .18);
  filter: blur(18px);
}

.float-card {
  position: absolute;
  right: 0;
  bottom: 8%;
  width: 190px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.float-card .mini-label {
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--gold);
}
.float-card strong {
  display: block;
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}
.float-card span { display: block; margin-top: 4px; font-size: 11px; color: var(--ink-soft); }

/* ---------- 功能卡 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  padding: 24px 22px;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s ease, background .2s ease;
}
.feature:hover { transform: translateY(-2px); background: #fff; }
.feature .num {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--gold);
}
.feature h3 { margin: 10px 0 8px; font-size: 19px; }
.feature p { font-size: 13px; color: var(--ink-soft); line-height: 1.85; }

/* ---------- 规则说明 ---------- */
.rule-band {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 26px;
  align-items: stretch;
}

.rule-list {
  padding: 28px;
  background: var(--accent);
  color: #F2F5F1;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.rule-list .eyebrow { color: rgba(242, 245, 241, .56); }
.rule-list h2 { color: #fff; margin-top: 8px; }
.rule-list ul { margin: 20px 0 0; padding: 0; list-style: none; }
.rule-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: 13px;
  color: rgba(242, 245, 241, .84);
}
.rule-list li b {
  flex: 0 0 22px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  color: #D9C79E;
}

.rule-note {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.rule-note h3 { font-size: 24px; margin-bottom: 12px; }
.rule-note p { color: var(--ink-soft); font-size: 14px; }
.rule-note .quote {
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 2px solid var(--gold);
  background: var(--gold-soft);
  border-radius: 0 12px 12px 0;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
}

/* ---------- 截图 ---------- */
.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.shot {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.shot img { width: 100%; height: 320px; object-fit: cover; object-position: top; }
.shot .cap {
  padding: 13px 16px 15px;
  font-size: 12px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

/* ---------- 下载 ---------- */
.download-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 34px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 90% 10%, rgba(255,255,255,.9), transparent 40%),
    linear-gradient(135deg, #E9EEE7, #F6F7F2);
  border: 1px solid var(--line);
}
.download-band h2 { font-size: clamp(24px, 3vw, 32px); }
.download-band p { margin-top: 8px; color: var(--ink-soft); font-size: 13px; }
.download-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.download-card {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.download-card .tag {
  align-self: flex-start;
  font-size: 10px;
  letter-spacing: .12em;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
}
.download-card h3 { font-size: 22px; }
.download-card .meta { font-size: 12px; color: var(--ink-faint); }
.download-card .desc { font-size: 13px; color: var(--ink-soft); flex: 1; }
.download-card .btn { align-self: flex-start; margin-top: 6px; }
.download-card.ios { background: linear-gradient(150deg, #FFFFFF, #F2F5F1); }

.hash {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  color: var(--ink-faint);
  word-break: break-all;
  line-height: 1.6;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 14px;
}
.steps li {
  position: relative;
  padding: 14px 18px 14px 52px;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--ink-soft);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #F6F7F4;
  font-size: 11px;
  font-family: var(--serif);
}
.steps li b { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
details {
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 18px;
}
details[open] { background: #fff; }
summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--ink-faint); font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { padding: 0 0 16px; font-size: 13px; color: var(--ink-soft); }

/* ---------- 文档页 ---------- */
.doc { max-width: 780px; }
.doc h1 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 10px; }
.doc h2 { font-size: 24px; margin: 38px 0 10px; }
.doc h3 { font-size: 17px; margin: 24px 0 6px; }
.doc p, .doc li { font-size: 14px; color: var(--ink-soft); line-height: 1.95; }
.doc ul { padding-left: 20px; }
.doc li { margin: 4px 0; }
.doc .updated { font-size: 12px; color: var(--ink-faint); margin-bottom: 26px; }
.doc .callout {
  margin: 22px 0;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
  border: 1px solid rgba(134,101,47,.18);
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 46px;
  background: rgba(248, 249, 246, .6);
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
}
.site-footer .brand { font-size: 17px; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12px; color: var(--ink-soft); }
.site-footer .links a { color: inherit; }
.disclaimer {
  grid-column: 1 / -1;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.8;
  color: var(--ink-faint);
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 420px; order: -1; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .rule-band { grid-template-columns: 1fr; }
  .download-band { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .wrap { width: min(100% - 28px, 1120px); }
  main { padding: 34px 0 56px; }
  .nav { gap: 13px; }
  .nav a:not(.nav-download) { display: none; }
  .site-header .wrap { min-height: 60px; }
  .brand { font-size: 18px; }
  .brand img { width: 34px; height: 34px; }
  .hero-visual { min-height: 360px; }
  .phone { width: min(250px, 70vw); }
  .float-card { width: 156px; right: 0; bottom: 2%; padding: 11px 13px; }
  .float-card strong { font-size: 15px; }
  .feature-grid { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .shot img { height: 300px; }
  .section { margin-top: 54px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}

/* ---------- 帮助页 / 备案补充 ---------- */
.nav a.active { color: var(--ink); font-weight: 600; }
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 8px;
  font-size: 13px;
}
.doc th, .doc td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  color: var(--ink-soft);
}
.doc th { background: rgba(61,107,82,.06); color: var(--ink); font-weight: 600; }
.doc .btn { margin-right: 8px; }
.site-footer .icp {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--ink-faint);
}
.site-footer .icp a { color: inherit; }
