/* 菜谱罐子 Jarnal · 官网样式 */

:root {
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --link: #0066cc;
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --line: #d2d2d7;
  --nav: rgba(255, 255, 255, 0.8);
  --accent: #ff8a3d;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", "Noto Sans SC", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* 语言切换：html.en 时只显示英文 */
html:not(.en) [data-lang="en"],
html.en [data-lang="zh"] { display: none !important; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nav);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  height: 52px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  margin-right: auto;
}
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; border-radius: 6px; }
.nav a.item { color: var(--text-2); font-size: 13px; }
.nav a.item:hover { color: var(--text); text-decoration: none; }
.nav a.item[aria-current="page"] { color: var(--text); }
.lang-switch {
  font-size: 12px;
  color: var(--text-2);
  border: 1px solid var(--line);
  border-radius: 980px;
  padding: 3px 11px;
  white-space: nowrap;
}
.lang-switch:hover { color: var(--text); text-decoration: none; border-color: var(--text-3); }

@media (max-width: 640px) {
  .nav-inner { gap: 16px; padding: 0 16px; }
  .brand span { display: none; }
}

/* ---------- 正文页（隐私政策、使用条款、支持） ---------- */
.doc {
  max-width: 740px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 10px;
}
.doc h1 {
  font-size: 44px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.updated { color: var(--text-3); font-size: 14px; margin: 0 0 36px; }
.lead { font-size: 21px; line-height: 1.5; color: var(--text); margin: 0 0 32px; }

.doc h2 {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 56px 0 14px;
  padding-top: 8px;
  scroll-margin-top: 72px;
}
.doc h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 30px 0 8px;
}
.doc p { margin: 0 0 16px; }
.doc ul { margin: 0 0 18px; padding-left: 1.25em; }
.doc li { margin: 6px 0; }
.doc strong { font-weight: 600; }
.muted { color: var(--text-2); }

/* 概要卡片 */
.summary {
  background: var(--bg-2);
  border-radius: 18px;
  padding: 26px 30px;
  margin: 0 0 40px;
}
.summary h2 { margin: 0 0 12px; padding: 0; font-size: 19px; }
.summary ul { margin: 0; padding-left: 1.2em; }
.summary li { margin: 8px 0; }

/* 目录 */
.toc {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  margin: 0 0 8px;
  columns: 2;
  column-gap: 32px;
  font-size: 15px;
}
.toc a { display: block; padding: 4px 0; break-inside: avoid; }
@media (max-width: 640px) {
  .doc { padding: 48px 20px 72px; }
  .doc h1 { font-size: 34px; }
  .lead { font-size: 19px; }
  .doc h2 { font-size: 23px; margin-top: 44px; }
  .toc { columns: 1; }
  .summary { padding: 22px; }
}

/* 支持页：联系卡片、常见问题 */
.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--bg-2);
  border-radius: 18px;
  padding: 26px 30px;
  margin: 8px 0 48px;
}
.contact p { margin: 0; }
.contact .label { font-size: 14px; color: var(--text-2); margin-bottom: 4px; }
.contact .mail { font-size: 21px; font-weight: 600; }
.btn {
  display: inline-block;
  background: var(--link);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  border-radius: 980px;
  padding: 9px 20px;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; background: #0077ed; }
@media (max-width: 640px) {
  .contact { flex-direction: column; align-items: flex-start; padding: 22px; }
}

.faq-group { margin: 0 0 40px; }
.faq-group h2 { margin-top: 0; }
details {
  border-bottom: 1px solid var(--line);
}
details:first-of-type { border-top: 1px solid var(--line); }
summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 36px 18px 0;
  font-weight: 600;
  position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--text-2);
  border-bottom: 1.5px solid var(--text-2);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
details > div { padding: 0 0 18px; color: var(--text); }
details > div p:last-child { margin-bottom: 0; }

/* ---------- 首页 ---------- */
.hero {
  text-align: center;
  padding: 96px 24px 72px;
}
.hero .icon {
  width: 132px;
  height: 132px;
  border-radius: 30px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
.hero h1 {
  font-size: 64px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 32px 0 12px;
}
.hero .tagline {
  font-size: 28px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}
.hero .sub {
  font-size: 19px;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 32px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text);
  color: var(--bg);
  font-size: 15px;
  font-weight: 500;
  border-radius: 980px;
  padding: 11px 22px;
}
.badge svg { width: 16px; height: 16px; fill: currentColor; }

.features {
  background: var(--bg-2);
  padding: 88px 24px;
}
.features-inner { max-width: 1000px; margin: 0 auto; }
.features h2 {
  text-align: center;
  font-size: 40px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 48px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tile {
  background: var(--bg);
  border-radius: 22px;
  padding: 30px 28px 32px;
}
.tile .glyph {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: #fff1e6;
  color: var(--accent);
}
.tile .glyph svg { width: 22px; height: 22px; }
.tile h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; }
.tile p { color: var(--text-2); font-size: 16px; margin: 0; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 20px 56px; }
  .hero h1 { font-size: 44px; }
  .hero .tagline { font-size: 22px; }
  .features h2 { font-size: 30px; }
}

.privacy-band {
  max-width: 740px;
  margin: 0 auto;
  padding: 88px 24px;
  text-align: center;
}
.privacy-band h2 { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 14px; }
.privacy-band p { color: var(--text-2); font-size: 19px; margin: 0 0 20px; }

/* ---------- 页脚 ---------- */
.footer {
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.5;
}
.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 22px 28px;
}
.footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.footer .links a { color: var(--text-2); padding: 0 12px; border-left: 1px solid var(--line); }
.footer .links a:first-child { padding-left: 0; border-left: 0; }
.footer .links a:hover { color: var(--text); }
.footer p { margin: 0; }

/* ---------- 深色模式 ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #86868b;
    --link: #2997ff;
    --bg: #000000;
    --bg-2: #1d1d1f;
    --line: #424245;
    --nav: rgba(22, 22, 23, 0.8);
  }
  .nav { border-bottom-color: rgba(255, 255, 255, 0.1); }
  .tile { background: #2a2a2d; }
  .tile .glyph { background: rgba(255, 138, 61, 0.16); }
  .btn:hover { background: #0a84ff; }
}

.footer .beian { margin-top: 6px; }
.footer .beian a { color: var(--text-2); }
.footer .beian a:hover { color: var(--text); }
