/* 豆荚水印去除官网样式。
   纯静态、无框架、无外部请求：整站就是 index.html + 这个文件。
   同时适配浅色与深色系统主题。 */

:root {
  --brand: #2a78d6;
  --brand-ink: #1f5fac;

  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-code: #f4f6f8;
  --border: #e6e8eb;

  --ink: #16181c;
  --ink-2: #4d535c;
  --ink-3: #858b95;

  --radius: 10px;
  --maxw: 860px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #4f95e8;
    --brand-ink: #6ba7ee;

    --bg: #16171a;
    --bg-soft: #1d1f23;
    --bg-code: #1d1f23;
    --border: #2c2f35;

    --ink: #edeef0;
    --ink-2: #b0b5bd;
    --ink-3: #7d838c;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei',
    'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- 顶栏 ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 22px;
  height: 22px;
  fill: var(--brand);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topnav a { color: var(--ink-2); }
.topnav a:hover { color: var(--ink); text-decoration: none; }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); color: #fff; }

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn-lg { padding: 12px 24px; font-size: 16px; }

/* ---------- 主体 ---------- */

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0 0 20px;
}

.lede {
  color: var(--ink-2);
  font-size: 17px;
  max-width: 620px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.feature-row {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0;
  margin: 48px 0 0;
}

.feature-row li {
  flex: 1 1 200px;
  max-width: 260px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.feature-row strong { display: block; font-size: 17px; }
.feature-row span { color: var(--ink-3); font-size: 14px; }

.section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.section h2 {
  font-size: 26px;
  font-weight: 650;
  margin: 0 0 24px;
}

.section h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 40px 0 12px;
  scroll-margin-top: 70px;
}

/* ---------- 定价 ---------- */

.pricing {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: stretch;
}

.price-main {
  flex: 1 1 260px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.price-num {
  font-size: 46px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.price-num .cur { font-size: 26px; margin-right: 2px; }
.price-num .per { font-size: 17px; color: var(--ink-3); margin-left: 6px; font-weight: 500; }

.price-note { color: var(--ink-2); margin: 8px 0 0; font-size: 14px; }

.price-list {
  flex: 1 1 260px;
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.price-list li {
  display: flex;
  justify-content: space-between;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
}
.price-list li:last-child { border-bottom: none; }
.price-list b { font-variant-numeric: tabular-nums; }

/* ---------- 文档 ---------- */

.endpoint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}

.method {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 2px 8px;
  border-radius: 5px;
  color: #fff;
}
.method.post { background: #1baf7a; }
.method.get { background: var(--brand); }

code {
  font-family: 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
}

pre {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  /* 长命令行必须横向滚动，绝不能把页面撑出横向滚动条 */
  overflow-x: auto;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  line-height: 1.7;
}

.params {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 15px;
  display: block;
  overflow-x: auto;
}

.params th,
.params td {
  border: 1px solid var(--border);
  padding: 9px 14px;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.params td:last-child { white-space: normal; }
.params th { background: var(--bg-soft); font-weight: 600; }

.note {
  background: var(--bg-soft);
  border-left: 3px solid var(--brand);
  border-radius: 0 6px 6px 0;
  padding: 12px 16px;
  color: var(--ink-2);
  font-size: 15px;
}

.limits { color: var(--ink-2); padding-left: 22px; }
.limits li { margin: 6px 0; }
.limits b { color: var(--ink); }

/* ---------- 页脚 ---------- */

.footer {
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding: 28px 24px 40px;
  color: var(--ink-3);
  font-size: 14px;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer nav { display: flex; gap: 18px; }
.footer a { color: var(--ink-3); }
.footer a:hover { color: var(--brand); }

.disclaimer {
  max-width: var(--maxw);
  margin: 12px auto 0;
  font-size: 13px;
  line-height: 1.6;
}
