:root {
  color-scheme: light;
  --ink: #102a25;
  --muted: #63736f;
  --line: #dbe5e1;
  --paper: #f6f8f7;
  --card: #ffffff;
  --green: #087f65;
  --green-soft: #e5f5ef;
  --orange: #c66b19;
  --orange-soft: #fff1df;
  --red: #b83a35;
  --navy: #0c3832;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(8, 127, 101, 0.09), transparent 28%),
    var(--paper);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

a { color: inherit; }

.demo-header {
  min-height: 68px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 5;
}

.demo-brand { text-decoration: none; font-weight: 800; }
.demo-header nav { display: flex; gap: 18px; }
.demo-header nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.demo-header nav a:hover, .demo-header nav a:focus-visible { color: var(--green); }

.demo-main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 64px 0 88px; }

.demo-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 36px; align-items: end; margin-bottom: 34px; }
.eyebrow { color: var(--green); font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
h1 { max-width: 820px; margin: 12px 0 14px; font-size: clamp(34px, 5vw, 64px); line-height: 1.08; letter-spacing: -0.04em; }
.lead { max-width: 800px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.8; }
.demo-badge { padding: 10px 14px; border-radius: 999px; background: var(--orange-soft); color: var(--orange); font-weight: 800; white-space: nowrap; }

.notice { margin: 24px 0; padding: 16px 18px; border: 1px solid #f0d6b6; border-radius: 14px; background: #fff8ed; color: #795128; line-height: 1.7; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.card { min-width: 0; grid-column: span 4; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: 0 12px 35px rgba(13, 49, 43, 0.06); }
.card.wide { grid-column: span 8; }
.card.full { grid-column: 1 / -1; }
.card h2, .card h3 { margin: 0 0 12px; overflow-wrap: anywhere; }
.card p { color: var(--muted); line-height: 1.7; }
.metric { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 6px; }
.metric strong { font-size: 34px; }
.metric span { color: var(--muted); }
.meta-list { display: grid; gap: 0; margin: 10px 0 0; }
.meta-row { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.meta-row:last-child { border-bottom: 0; }
.meta-row span { color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 7px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 13px; font-weight: 700; }
.tag.warn { background: var(--orange-soft); color: var(--orange); }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 800; color: var(--green); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.timeline { display: grid; gap: 0; margin-top: 14px; }
.timeline-item { display: grid; grid-template-columns: 34px 150px 1fr; gap: 14px; align-items: start; padding: 15px 0; border-bottom: 1px solid var(--line); }
.timeline-item:last-child { border-bottom: 0; }
.timeline-index { width: 30px; height: 30px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-weight: 800; }
.timeline-item.pending .timeline-index { background: #edf0ef; color: #84918d; }
.timeline-item strong { padding-top: 5px; }
.timeline-item p { margin: 4px 0 0; }

.code-block { max-width: 100%; overflow-x: auto; margin: 16px 0 0; padding: 20px; border-radius: 16px; background: #092b27; color: #dff7ed; font: 13px/1.7 Consolas, "SFMono-Regular", monospace; white-space: pre; }
.api-method { display: inline-flex; padding: 5px 9px; border-radius: 8px; background: var(--green); color: #fff; font-size: 12px; font-weight: 800; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 13px; }

.demo-footer { padding: 28px 16px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 13px; }

@media (max-width: 820px) {
  .demo-header { padding: 0 16px; }
  .demo-header nav a:not(:last-child) { display: none; }
  .demo-main { padding-top: 42px; }
  .demo-hero { grid-template-columns: 1fr; gap: 20px; }
  .demo-badge { justify-self: start; }
  .card, .card.wide { grid-column: 1 / -1; }
  .timeline-item { grid-template-columns: 34px 1fr; }
  .timeline-item > div:last-child { grid-column: 2; }

  table {
    min-width: 0;
    table-layout: fixed;
  }

  th,
  td {
    padding: 10px 7px;
    overflow-wrap: anywhere;
  }
}
