:root {
  color-scheme: light;
  --ink: #17211b;
  --muted: #5e6c63;
  --paper: #f7f7f1;
  --card: rgba(255, 255, 255, 0.92);
  --line: #d9ded7;
  --green: #1f6b45;
  --green-dark: #155235;
  --green-soft: #e3f1e8;
  --amber: #8a5b13;
  --amber-soft: #fff2d4;
  --red: #9b2f2f;
  --shadow: 0 18px 50px rgba(35, 54, 42, 0.09);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(116, 180, 142, 0.22), transparent 30rem),
    radial-gradient(circle at 92% 18%, rgba(237, 190, 93, 0.18), transparent 28rem),
    var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", sans-serif;
  line-height: 1.65;
}

a { color: var(--green); }

.shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 80px;
}

.hero { max-width: 820px; margin-bottom: 34px; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2 { line-height: 1.18; letter-spacing: -0.025em; }
h1 { margin: 0; font-size: clamp(36px, 6vw, 62px); }
h2 { margin: 0; font-size: 25px; }
.lead { margin: 18px 0 22px; color: var(--muted); font-size: 19px; }

.privacy-note, .boundary-note {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--green-soft);
  color: #254a36;
}
.privacy-note strong, .boundary-note strong { display: block; }
.boundary-note { margin-top: 20px; background: var(--amber-soft); color: #654817; }

.provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  padding: 26px;
  border: 1px solid rgba(209, 217, 211, 0.9);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.card-title { display: flex; align-items: center; gap: 14px; }
.card-title p { margin: 5px 0 0; color: var(--muted); }
.provider-mark {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  font-weight: 800;
}
.deepseek-mark { color: #184dd8; background: #e7edff; }
.doubao-mark { color: #9a3b23; background: #ffe7df; }

ol, ul { padding-left: 1.3em; }
li + li { margin-top: 7px; }
code {
  padding: 0.12em 0.38em;
  border-radius: 6px;
  background: rgba(33, 72, 49, 0.07);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
}

button, .primary-button, .secondary-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.primary-button { color: white; background: var(--green); }
.primary-button:hover { background: var(--green-dark); }
.secondary-button { color: var(--ink); background: #edf0ec; }
.bookmarklet { width: 100%; margin-top: 8px; text-align: center; }

.fallback { margin-top: 16px; }
summary { color: var(--green); font-weight: 700; cursor: pointer; }
textarea {
  width: 100%;
  min-height: 128px;
  margin: 12px 0;
  padding: 14px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fbfcfa;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
}

.parser, .security { margin-top: 20px; }
.section-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.local-only {
  padding: 5px 10px;
  border: 1px solid #b9d3c2;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}
.parser > label { display: block; margin-top: 22px; font-weight: 700; }
.curl-input { min-height: 190px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.status { min-height: 26px; margin: 14px 0 0; color: var(--muted); }
.status-success { color: var(--green); }
.status-error { color: var(--red); }
.output-panel { margin-top: 12px; }
.output-panel textarea { min-height: 240px; }
.secret-output { filter: blur(5px); user-select: none; }
.output-actions { justify-content: space-between; }
.reveal-control { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.security li { color: var(--muted); }

@media (max-width: 760px) {
  .shell { width: min(100% - 20px, 680px); padding: 36px 0 56px; }
  .provider-grid { grid-template-columns: 1fr; }
  .card { padding: 21px; border-radius: 18px; }
  .section-heading { display: block; }
  .local-only { display: inline-flex; margin-top: 12px; }
}
