:root {
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f1f5f9;
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-sub: #64748b;
  --sapphire: #0284c7;
  --sapphire-light: #38bdf8;
  --sapphire-bg: #e0f2fe;
  --sapphire-hover: #0369a1;
  --max-w: 1140px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a {
  color: inherit;
  text-decoration: none;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}
.nav-shell {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--sapphire), var(--sapphire-light));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
}
.brand-meta {
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}
.brand-domain {
  font-size: 11px;
  color: var(--sapphire);
  font-weight: 600;
}
.nav-menu {
  display: flex;
  list-style: none;
  gap: 20px;
  align-items: center;
}
.nav-menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
  padding: 6px 0;
}
.nav-menu a:hover,
.nav-menu a.current {
  color: var(--sapphire);
}
.nav-menu a.current {
  border-bottom: 2px solid var(--sapphire);
}
.mobile-nav-toggle {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}
.main-wrapper {
  flex: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 32px 20px 60px;
}
.breadcrumbs {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 20px;
  align-items: center;
}
.breadcrumbs a {
  color: var(--text-muted);
}
.breadcrumbs a:hover {
  color: var(--sapphire);
}
.banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 36px 30px;
  margin-bottom: 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.banner-badge {
  display: inline-block;
  background: var(--sapphire-bg);
  border: 1px solid rgba(2, 132, 199, 0.25);
  color: var(--sapphire);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.banner h1 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text-main);
}
.banner-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 860px;
  line-height: 1.7;
}
.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-sub);
}
.meta-strip strong {
  color: var(--text-main);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
}
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
}
.section-sub {
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 4px;
}
.section-more {
  font-size: 13px;
  color: var(--sapphire);
  font-weight: 600;
}
.section-more:hover {
  color: var(--sapphire-hover);
}
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  border-color: var(--sapphire-light);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}
.card-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--sapphire-bg);
  color: var(--sapphire);
  margin-bottom: 10px;
}
.card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
  color: var(--text-main);
}
.card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.card-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-sub);
}
.article-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
}
.sidebar-nav {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 20px;
  height: fit-content;
}
.sidebar-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toc-list a {
  font-size: 13px;
  color: var(--text-muted);
  display: block;
}
.toc-list a:hover {
  color: var(--sapphire);
}
.content-body {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.content-body h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  margin: 10px 0 14px;
}
.content-body h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
  margin: 28px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
}
.content-body h2:first-of-type {
  margin-top: 16px;
}
.content-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin: 18px 0 8px;
}
.content-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}
.content-body ul, .content-body ol {
  margin: 0 0 16px 20px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.75;
}
.content-body li {
  margin-bottom: 6px;
}
.data-table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid var(--border-light);
  border-radius: 6px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
.data-table th, .data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
}
.data-table th {
  background: var(--bg-surface-alt);
  color: var(--text-main);
  font-weight: 600;
}
.data-table tr:last-child td {
  border-bottom: none;
}
.callout {
  background: var(--sapphire-bg);
  border-left: 3px solid var(--sapphire);
  padding: 14px 18px;
  border-radius: 0 6px 6px 0;
  margin: 18px 0;
  font-size: 13px;
  color: #0c4a6e;
}
.callout-title {
  font-weight: 700;
  color: #075985;
  margin-bottom: 4px;
}
.code-block {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 6px;
  padding: 14px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  color: #38bdf8;
  overflow-x: auto;
  margin: 16px 0;
  line-height: 1.5;
}
.faq-stack {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-node {
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: var(--bg-surface-alt);
  overflow: hidden;
}
.faq-q {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}
.faq-a {
  padding: 0 16px 14px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 14px;
}
.form-grid.full {
  grid-template-columns: 1fr;
}
.form-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.form-item label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.form-item input, .form-item textarea, .form-item select {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}
.form-item input:focus, .form-item textarea:focus, .form-item select:focus {
  border-color: var(--sapphire);
}
.btn-submit {
  background: var(--sapphire);
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  width: fit-content;
}
.btn-submit:hover {
  background: var(--sapphire-hover);
}
.status-msg {
  display: none;
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  padding: 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-top: 12px;
}
.site-footer {
  border-top: 1px solid var(--border-light);
  background: var(--bg-surface);
  padding: 40px 20px 28px;
  margin-top: auto;
}
.footer-shell {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-sub);
}
.footer-links a:hover {
  color: var(--sapphire);
}
.footer-summary {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.6;
  max-width: 320px;
}
.legal-bar {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-sub);
  flex-wrap: wrap;
  gap: 10px;
}
.showcase-media {
      width: 100%;
      max-width: 640px;
      margin: 0 auto 24px;
      border-radius: 10px;
      overflow: hidden;
      border: 1px solid var(--border-light);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
      background: #f8f9fa;
    }
    .showcase-media img {
      width: 100%;
      height: auto;
      display: block;
    }
.media-placeholder {
  width: 100%;
  max-width: 100%;
  height: 2600px;
  background-color: #f8fafc;
  border-radius: 8px;
  margin: 30px auto;
  display: block;
}
@media (max-width: 860px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .footer-shell {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    padding: 16px 20px;
    align-items: flex-start;
    gap: 12px;
  }
  .nav-menu.open {
    display: flex;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .banner {
    padding: 24px 18px;
  }
  .banner h1 {
    font-size: 22px;
  }
  .footer-shell {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}
