/* 对比页 / 模板页（landing/guides）的样式，色彩和协议页、落地页一致 */
:root {
  --bg: #faf9f5;
  --card: #ffffff;
  --ink: #141413;
  --ink-2: #5e5d59;
  --ink-3: #8d8b85;
  --line: #e8e6dc;
  --accent: #d97757;
  --accent-2: #c4613f;
  --soft: #f0eee6;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f1e1d;
    --card: #2a2927;
    --ink: #f3f1ea;
    --ink-2: #bdbab1;
    --ink-3: #8c8a83;
    --line: #3a3835;
    --soft: #2a2927;
    color-scheme: dark;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.8 ui-sans-serif, -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--ink) 30%, transparent);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: var(--accent);
}
.top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 24px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
}
.brand svg {
  width: 24px;
  height: 24px;
}
.top nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}
.top nav a {
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}
.top nav a:hover {
  color: var(--ink);
}
.btn {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.btn:hover {
  background: var(--accent-2);
}
.btn.big {
  padding: 12px 24px;
  font-size: 16px;
}
.doc {
  max-width: 820px;
  margin: 0 auto;
  padding: 36px 24px 72px;
}
.crumbs {
  font-size: 13px;
  color: var(--ink-3);
}
.crumbs a {
  color: var(--ink-3);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--ink);
}
.crumbs i {
  margin: 0 8px;
  font-style: normal;
  opacity: 0.6;
}
h1 {
  margin: 14px 0 6px;
  font-family: 'Songti SC', 'STSong', 'Noto Serif SC', 'Source Han Serif SC', Georgia, serif;
  font-size: 38px;
  font-weight: 500;
  line-height: 1.25;
  text-wrap: balance;
}
.meta {
  margin: 0 0 22px;
  color: var(--ink-3);
  font-size: 13px;
}
.answer {
  margin: 0 0 18px;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  border-radius: 4px 14px 14px 4px;
  background: var(--soft);
  color: var(--ink);
}
.cover {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  align-items: start;
  margin-top: 14px;
}
.shots.wide {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.shots figure {
  margin: 0;
}
.shots img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.shots figcaption {
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 13px;
  text-align: center;
}
.prompt {
  margin: 0 0 14px;
}
.prompt code {
  display: block;
  padding: 12px 16px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink-2);
  font: 14px/1.6 ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  white-space: pre-wrap;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 0 0 8px;
}
.cta span {
  color: var(--ink-3);
  font-size: 13px;
}
.cta.end {
  margin-top: 40px;
  justify-content: center;
}
h2 {
  margin: 44px 0 10px;
  font-size: 22px;
  line-height: 1.4;
}
p,
li {
  color: var(--ink-2);
}
ul,
ol {
  padding-left: 22px;
}
li {
  margin: 6px 0;
}
.steps li::marker {
  color: var(--accent);
  font-weight: 600;
}
.table {
  margin: 14px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.65;
}
th,
td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
thead th {
  color: var(--ink-3);
  font-weight: 500;
  font-size: 13px;
  background: var(--soft);
}
tbody th {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}
td {
  color: var(--ink-2);
}
tbody tr:last-child > * {
  border-bottom: none;
}
details {
  margin: 10px 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
summary {
  cursor: pointer;
  font-weight: 600;
}
details p {
  margin: 8px 0 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.card span {
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.6;
}
.foot {
  border-top: 1px solid var(--line);
  padding: 36px 24px 28px;
  font-size: 14px;
}
.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}
.foot-cols b {
  display: block;
  margin-bottom: 8px;
}
.foot-cols a {
  display: block;
  margin: 4px 0;
  color: var(--ink-2);
  text-decoration: none;
}
.foot-cols a:hover {
  color: var(--ink);
}
.beian {
  max-width: 820px;
  margin: 28px auto 0;
  color: var(--ink-3);
  font-size: 12px;
}
.beian a {
  color: var(--ink-3);
}
@media (max-width: 640px) {
  .top {
    padding: 10px 16px;
  }
  .top nav {
    gap: 12px;
    font-size: 13px;
  }
  .top nav a:not(.btn):nth-child(-n + 2) {
    display: none;
  }
  .doc {
    padding: 24px 16px 56px;
  }
  h1 {
    font-size: 28px;
  }
  .foot-cols {
    grid-template-columns: 1fr;
  }
  .shots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .shots.wide {
    grid-template-columns: 1fr;
  }
}
