/* 泊声 Podbay 官网样式：温润宣纸底色 + 近黑墨字 + 朱砂红点缀（参考声渡 SubCast 排版秩序） */

:root {
  color-scheme: light;
  --bg: #f6f4ef;
  --bg-2: #ede9e0;
  --card: #ffffff;
  --surface: #faf8f4;
  --tile: #f0ede6;
  --ink: #181613;
  --ink-hover: #2f2c27;
  --text: #47443e;
  --muted: #676259;
  --faint: #8c867c;
  --ring: #e8e3d9;
  --ring-2: #d8d1c4;
  --accent: #b8432e;
  --accent-hover: #9f3623;
  --accent-soft: #f9ede9;
  --accent-text: #a23522;
  --highlight: #f7d9cf;
  --ring-shadow: 0 0 0 1px rgb(24 22 19 / 8%);
  --sh-card: 0 0 0 1px rgb(24 22 19 / 8%), 0 2px 2px rgb(24 22 19 / 4%), 0 8px 12px -8px rgb(24 22 19 / 6%);
  --sh-window: 0 0 0 1px rgb(24 22 19 / 8%), 0 4px 8px rgb(24 22 19 / 6%), 0 40px 80px -24px rgb(24 22 19 / 26%);
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Monaco, monospace;
  --container: 1120px;
  --gutter: 32px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-padding-top: 88px; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg) 0, var(--bg-2) 100%) fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body > main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
a { color: inherit; text-decoration-color: var(--ring-2); text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--ink); }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
  overflow-wrap: break-word;
  min-width: 0;
}
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--highlight); }
mark {
  background: var(--highlight);
  color: var(--accent-text);
  padding: 0.04em 0.18em;
  border-radius: 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
kbd {
  display: inline-block;
  padding: 0 0.55em;
  min-width: 2em;
  text-align: center;
  border-radius: 7px;
  background: var(--card);
  box-shadow: var(--ring-shadow), 0 1px 0 rgb(24 22 19 / 6%);
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.85em;
  line-height: 1.7;
}
code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 0.12em 0.36em;
  border-radius: 6px;
  background: var(--tile);
  color: var(--ink);
}
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 600;
  padding: 8px 16px;
  border-radius: var(--r-s);
  background: var(--ink);
  color: var(--card);
  transform: translateY(-200%);
}
.skip:focus-visible { transform: none; }
.section-title { font-size: clamp(1.875rem, 3.4vw, 2.75rem); text-align: center; margin-bottom: 52px; }
.section-title--lead { margin-bottom: 14px; }
.section-lead {
  max-width: 38em;
  margin: 0 auto 48px;
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted);
  text-wrap: balance;
}
.lead { font-size: 1.25rem; line-height: 1.65; color: var(--text); }

/* ---------- icons ---------- */
.mark-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.block-text .mark-icon, .feature-text .mark-icon { box-shadow: var(--ring-shadow); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding-inline: 20px;
  border: 0;
  border-radius: var(--r-s);
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms var(--ease), background-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn--secondary { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--ring); }
.btn--secondary:hover { background: var(--surface); box-shadow: 0 0 0 1px var(--ring-2); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: 0 0 0 1px var(--ring-2); }
.btn--ghost:hover { background: var(--tile); }
.btn--sm { min-height: 36px; padding-inline: 14px; font-size: 0.875rem; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.actions--start { justify-content: flex-start; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--r-s);
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 180ms var(--ease), color 180ms var(--ease);
}
.icon-btn:hover { background: var(--tile); color: var(--ink); }
.icon-btn:active { transform: translateY(1px); }

/* ---------- nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 300;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 rgb(24 22 19 / 6%);
}
.nav-inner { display: flex; align-items: center; gap: 24px; min-height: 60px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink);
  white-space: nowrap;
}
.brand img { border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-inline-start: 12px; }
.nav-links a {
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background-color 180ms var(--ease), color 180ms var(--ease);
}
.nav-links a:hover { background: var(--tile); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-tools { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.lang-switch {
  margin-inline: 4px 10px;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background-color 180ms var(--ease), color 180ms var(--ease);
}
.lang-switch:hover { background: var(--tile); color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding-top: 84px; text-align: center; }
.hero-text { display: grid; justify-items: center; gap: 20px; }
.hero h1 { font-size: clamp(2.65rem, 6.2vw, 4.6rem); line-height: 1.1; max-width: 14em; font-weight: 700; }
.hero .lead { max-width: 32em; font-size: 1.25rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--ring-shadow);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 180ms var(--ease), transform 180ms var(--ease);
}
.chip:hover { background: var(--surface); transform: translateY(-1px); }
.chip .icon { color: var(--accent); }
.hero .actions { margin-top: 4px; }
.hero-meta { font-size: 0.875rem; color: var(--faint); }

.window { margin: 56px auto 0; max-width: 1040px; }
.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding-inline: 14px;
  border-radius: var(--r-m) var(--r-m) 0 0;
  background: #ece8df;
  box-shadow: var(--ring-shadow);
}
.window-bar i { display: block; width: 11px; height: 11px; border-radius: 50%; background: #d2ccc1; }
.window img { width: 100%; height: auto; border-radius: 0 0 var(--r-m) var(--r-m); background: var(--card); box-shadow: var(--sh-window); }
.window figcaption { margin-top: 16px; font-size: 0.875rem; color: var(--faint); }

/* ---------- feature blocks ---------- */
.blocks { padding-block: 104px 24px; }
.block { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; padding-block: 44px; }
.block:nth-of-type(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.block:nth-of-type(even) .block-text { order: 2; }
.block-text { display: grid; gap: 14px; justify-items: start; }
.block-text h3 { font-size: clamp(1.55rem, 2.7vw, 2.15rem); max-width: 15em; }
.block-text p:not([class]) { font-size: 1.0625rem; line-height: 1.78; max-width: 29em; color: var(--muted); }
.visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--sh-card);
}
.visual img { width: 100%; height: auto; border-radius: 12px; box-shadow: var(--ring-shadow); background: var(--card); }

/* ---------- cards ---------- */
.more { padding-block: 88px; }
.more--tinted { background: var(--accent-soft); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  display: grid;
  align-content: start;
  gap: 10px;
  height: 100%;
  padding: 26px;
  border-radius: var(--r-l);
  background: var(--card);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--sh-card);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
a.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgb(24 22 19 / 10%), 0 2px 4px rgb(24 22 19 / 5%), 0 16px 28px -12px rgb(24 22 19 / 14%);
}
.card .mark-icon { margin-bottom: 4px; }
.card h3 { font-size: 1.125rem; }
.card p { font-size: 0.95rem; line-height: 1.7; color: var(--muted); }
.more-link { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- principles ---------- */
.principles { padding-block: 36px; }
.principles-panel { padding: 52px; border-radius: 26px; background: var(--ink); color: #ccc8c1; }
.principles-panel ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.principles-panel h3 { margin-bottom: 10px; font-size: 1.3125rem; color: var(--card); }
.principles-panel li p { font-size: 0.95rem; line-height: 1.75; }
.principles-note {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgb(255 255 255 / 14%);
  font-size: 0.875rem;
  color: #9e9990;
  max-width: 62em;
}

/* ---------- get / install & agent handoff ---------- */
.get { padding-block: 92px 84px; }
.install-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.install-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--sh-card);
}
.install-card--accent { box-shadow: 0 0 0 2px var(--accent), 0 10px 28px -12px rgb(184 67 46 / 24%); }
.install-card h3 { font-size: 1.3125rem; }
.install-card p { font-size: 0.9688rem; color: var(--muted); line-height: 1.7; }
.edition-badge {
  display: inline-block;
  margin-inline-start: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.75rem;
  font-weight: 600;
  vertical-align: 0.16em;
}
.edition-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.8125rem;
  color: var(--faint);
}
.edition-sha {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--faint);
  word-break: break-all;
}
.install-tip {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted);
  padding: 12px 14px;
  border-radius: var(--r-s);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--ring);
}
.code-block {
  margin: 0;
  padding: 16px 18px;
  border-radius: var(--r-m);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--ring);
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}

.agent-card {
  margin-top: 24px;
  padding: 28px 32px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--sh-card);
  display: grid;
  gap: 16px;
}
.agent-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; }
.agent-copy { display: grid; gap: 6px; max-width: 44em; }
.agent-copy h3 { font-size: 1.25rem; }
.agent-copy p { font-size: 0.95rem; color: var(--muted); }
.agent-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.agent-llms { font-size: 0.875rem; color: var(--muted); }
.agent-pre {
  margin: 0;
  max-height: 280px;
  overflow-y: auto;
  padding: 16px 18px;
  border-radius: var(--r-m);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--ring);
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---------- faq ---------- */
.faq-home { padding-block: 36px 104px; }
.faq-narrow { max-width: 860px; }
.qa-list { display: grid; gap: 10px; }
.qa { border-radius: var(--r-m); background: var(--card); box-shadow: var(--sh-card); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 62px;
  padding: 12px 22px;
  cursor: pointer;
  list-style: none;
  border-radius: var(--r-m);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { font-size: 1.05rem; font-weight: 600; max-width: none; }
.qa summary::after {
  content: "+";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 220ms var(--ease);
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { padding: 0 22px 22px; max-width: 46em; font-size: 0.9688rem; line-height: 1.85; color: var(--muted); }

/* ---------- inner pages ---------- */
.page-head { padding-block: 80px 44px; text-align: center; }
.page-head .container { display: grid; gap: 14px; justify-items: center; }
.page-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.35rem); }
.page-head .lead { max-width: 34em; color: var(--muted); }
.feature { padding-block: 10px; }
.feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 40px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--sh-card);
}
.feature-card--text { grid-template-columns: minmax(0, 1fr); }
.feature-text { display: grid; gap: 14px; justify-items: start; align-content: start; }
.feature-text h2 { font-size: clamp(1.55rem, 2.7vw, 2.05rem); max-width: none; }
.feature-text .lead { font-size: 1.0625rem; color: var(--muted); }
.shot {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: var(--r-l);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--ring);
}
.shot img { width: 100%; height: auto; border-radius: 10px; box-shadow: var(--ring-shadow); background: var(--card); }
.points { margin: 0; padding-inline-start: 22px; display: grid; gap: 8px; font-size: 0.975rem; color: var(--text); }
.keys { width: 100%; border-collapse: collapse; margin-top: 4px; }
.keys th, .keys td { padding: 13px 0; text-align: start; border-top: 1px solid var(--ring); font-size: 0.9688rem; font-weight: 400; }
.keys th { width: 11rem; }
.keys tr:last-child th, .keys tr:last-child td { border-bottom: 1px solid var(--ring); }
.close { padding-block: 76px 96px; }
.close-inner { display: grid; justify-items: center; gap: 24px; }
.close-inner .section-title { margin-bottom: 0; }

/* ---------- footer ---------- */
.site-foot { padding-block: 68px 36px; background: var(--card); box-shadow: 0 -1px 0 rgb(24 22 19 / 6%); }
.foot-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
.foot-mast { display: flex; align-items: center; gap: 14px; align-self: start; }
.foot-mast img { border-radius: 12px; }
.foot-name { font-weight: 700; font-size: 1.25rem; color: var(--ink); line-height: 1.2; }
.foot-tag { font-size: 0.9375rem; color: var(--muted); }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-title { margin: 0 0 12px; font-weight: 600; font-size: 0.875rem; color: var(--faint); }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot-col a { display: inline-block; padding-block: 4px; color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.foot-col a:hover { text-decoration: underline; text-decoration-color: var(--ink); }
.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--ring);
  font-size: 0.875rem;
  color: var(--faint);
}
.foot-icons { display: flex; gap: 2px; }

/* ---------- modals ---------- */
.modal {
  width: min(24rem, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 0 0 1px rgb(24 22 19 / 8%), 0 30px 80px -20px rgb(24 22 19 / 40%);
}
.modal::backdrop { background: rgb(24 22 19 / 42%); backdrop-filter: blur(4px); }
.modal-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; padding: 16px 12px 6px 24px; }
.modal-bar h2 { font-size: 1.15rem; }
.modal-body { display: grid; gap: 14px; justify-items: center; padding: 8px 24px 28px; text-align: center; }
.modal-body img { width: 240px; height: 240px; object-fit: contain; border-radius: var(--r-m); }
.modal-body p { font-size: 0.95rem; color: var(--muted); }
.modal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; font-size: 0.875rem; }

/* ---------- responsive ---------- */
@media (max-width: 62rem) {
  :root { --gutter: 24px; }
  .block, .block:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 34px; }
  .block:nth-of-type(even) .block-text { order: 0; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles-panel { padding: 36px 28px; }
  .principles-panel ul { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .install-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-top, .feature-card { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .feature-card { padding: 28px 22px; }
  .nav-links { margin-inline-start: 0; }
}
@media (max-width: 46rem) {
  :root { --gutter: 16px; }
  .nav-inner { flex-wrap: wrap; gap: 2px 8px; min-height: 0; padding-block: 8px; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .nav-tools .btn { display: none; }
  .hero { padding-top: 40px; }
  .hero .lead { font-size: 1.0625rem; }
  .window { margin-top: 40px; }
  .blocks, .more, .get { padding-block: 56px; }
  .section-title { margin-bottom: 32px; }
  .cards, .cards--four { grid-template-columns: minmax(0, 1fr); }
  .install-card, .agent-card { padding: 22px 18px; }
  .agent-actions { width: 100%; }
  .agent-actions .btn { width: 100%; }
  .foot-cols { grid-template-columns: minmax(0, 1fr); }
  .page-head { padding-block: 48px 28px; }
  .qa summary { padding-inline: 16px; }
  .qa p { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .icon-btn, .card, .chip, .qa summary::after, .nav-links a, .lang-switch { transition: none; }
}
