:root {
  color-scheme: light;
  --bg: #f3f8ff;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-border: rgba(125, 166, 255, 0.22);
  --panel-shadow: 0 18px 50px rgba(66, 103, 178, 0.12);
  --text: #16304f;
  --muted: #57708f;
  --primary: #3d7cff;
  --primary-soft: rgba(61, 124, 255, 0.1);
  --accent: #7ed7ff;
  --line: rgba(95, 124, 168, 0.18);
  --success: #1f9d74;
  --warning: #b26a00;
  --danger: #c05555;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(126, 215, 255, 0.36), transparent 22rem),
    radial-gradient(circle at top left, rgba(61, 124, 255, 0.16), transparent 28rem),
    linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
  color: var(--text);
  line-height: 1.72;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img,
svg {
  max-width: 100%;
}

.site-shell {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(245, 250, 255, 0.82);
  border-bottom: 1px solid rgba(95, 124, 168, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3d7cff 0%, #7ed7ff 100%);
  box-shadow: 0 14px 30px rgba(61, 124, 255, 0.22);
  position: relative;
  overflow: hidden;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.brand-mark::before {
  width: 19px;
  height: 19px;
  left: 8px;
  top: 6px;
}

.brand-mark::after {
  width: 11px;
  height: 11px;
  right: 7px;
  bottom: 7px;
}

.header-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.header-nav a {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 600;
}

.hero {
  padding: 72px 0 28px;
}

.hero-panel,
.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--panel-shadow);
}

.hero-panel {
  padding: 34px;
  position: relative;
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(126, 215, 255, 0.34) 0%, transparent 70%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.92rem;
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  line-height: 1.24;
  color: #112743;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}

h3 {
  font-size: 1.08rem;
}

p,
li,
dd {
  font-size: 1rem;
  color: var(--text);
}

.lead {
  max-width: 760px;
  font-size: 1.06rem;
  color: var(--muted);
}

.meta-row,
.cta-row,
.card-grid,
.split-grid,
.footer-links {
  display: grid;
  gap: 16px;
}

.meta-row {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 26px;
}

.meta-chip,
.card,
.notice,
.checklist,
.timeline-step,
.table-wrap,
.placeholder-box {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.meta-chip {
  padding: 16px 18px;
}

.meta-chip strong {
  display: block;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.page-main {
  padding: 0 0 72px;
}

.section {
  padding: 20px 0;
}

.panel {
  padding: 28px;
}

.section-stack {
  display: grid;
  gap: 20px;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  padding: 22px;
}

.card p:last-child,
.panel p:last-child,
.notice p:last-child,
.placeholder-box p:last-child {
  margin-bottom: 0;
}

.notice {
  padding: 18px 20px;
  border-left: 4px solid var(--primary);
}

.notice.warning {
  border-left-color: var(--warning);
}

.notice.danger {
  border-left-color: var(--danger);
}

.pill-list,
.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.pill-list li {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(61, 124, 255, 0.08);
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 700;
}

.inline-list li {
  margin-left: 18px;
}

.config-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.config-table th,
.config-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.config-table th {
  width: 26%;
  color: var(--muted);
  font-size: 0.95rem;
}

.table-wrap {
  overflow-x: auto;
}

.placeholder-box {
  padding: 20px;
  background: linear-gradient(180deg, rgba(61, 124, 255, 0.06), rgba(255, 255, 255, 0.9));
}

.placeholder-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(192, 85, 85, 0.08);
  color: var(--danger);
  font-weight: 700;
  font-size: 0.92rem;
}

.toc {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.toc a {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.88);
}

.content-block + .content-block {
  margin-top: 26px;
}

.content-block ul,
.content-block ol {
  margin: 10px 0 0 20px;
}

.content-block li + li {
  margin-top: 8px;
}

.split-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(250px, 0.9fr);
  align-items: start;
}

.support-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.faq-item {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.84);
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-step {
  padding: 20px;
}

.timeline-step strong {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--primary);
}

.page-footer {
  padding: 20px 0 56px;
}

.footer-panel {
  display: grid;
  gap: 18px;
  padding: 24px 28px;
}

.footer-links {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.footer-links a {
  color: var(--text);
  font-weight: 600;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.icp-slot {
  display: none;
}

.icp-slot.is-visible {
  display: inline-flex;
}

.tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31, 157, 116, 0.1);
  color: var(--success);
  font-size: 0.88rem;
  font-weight: 700;
}

.code-block {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 18px;
  border-radius: var(--radius-md);
  background: #0f1e33;
  color: #e8f1ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.65;
}

.small {
  color: var(--muted);
  font-size: 0.93rem;
}

.config-text {
  display: inline;
}

@media (max-width: 860px) {
  .split-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .panel,
  .footer-panel {
    padding: 24px;
  }

  .header-inner {
    align-items: flex-start;
    padding: 14px 0;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  body {
    line-height: 1.65;
  }

  .site-shell {
    width: min(var(--max-width), calc(100% - 20px));
  }

  .hero {
    padding-top: 44px;
  }

  .hero-panel,
  .panel,
  .footer-panel {
    padding: 20px;
    border-radius: 20px;
  }

  .card,
  .faq-item,
  .timeline-step,
  .notice,
  .placeholder-box {
    padding: 18px;
  }

  .config-table {
    min-width: 520px;
  }
}
