:root {
  --bg-page: #ffffff;
  --bg-subtle: #f6f8fa;
  --bg-panel: #ffffff;
  --bg-code: #f8fafc;
  --ink: #1e293b;
  --ink-heading: #10233f;
  --ink-muted: #475569;
  --ink-dim: #64748b;
  --line: #dce2ea;
  --line-strong: #cbd5e1;
  --accent: #1d4ed8;
  --accent-dark: #10233f;
  --accent-hover: #173156;
  --green: #15803d;
  --amber: #b45309;
  --red: #b91c1c;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Cascadia Mono", "Consolas", "SFMono-Regular", "Liberation Mono", Menlo, monospace;
  --radius: 6px;
  --radius-sm: 4px;
  --container: 1220px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: var(--font-mono);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 68px 0;
}

.section-alt {
  background: var(--bg-subtle);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.panel-box {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

/* 按钮体系 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 11px 22px;
  font-size: 0.95rem;
}

.btn-block {
  width: 100%;
  padding: 11px 16px;
}

.btn-primary {
  background: var(--accent-dark);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: #ffffff;
  border-color: var(--line-strong);
  color: var(--ink-heading);
}

.btn-secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-link:hover {
  text-decoration: underline;
}

/* 顶部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink-heading);
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  font-family: var(--font-mono);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--ink-heading);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-btn {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.lang-btn:hover {
  color: var(--ink-heading);
  border-color: #94a3b8;
  background: #f8fafc;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink-heading);
}

/* Hero 首屏 */
.hero {
  padding-top: 44px;
  padding-bottom: 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.96fr 1.24fr;
  gap: 32px;
  align-items: start;
}

.spec-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-dark);
  background: #eef2f7;
  border: 1px solid var(--line-strong);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(1.85rem, 2.9vw, 2.55rem);
  line-height: 1.22;
  color: var(--ink-heading);
  letter-spacing: -0.02em;
  font-weight: 700;
}

.hero-desc {
  margin: 0 0 24px;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-subtle);
}

.metric-item {
  padding: 12px 10px;
  border-right: 1px solid var(--line);
}

.metric-item:last-child {
  border-right: none;
}

.metric-item strong {
  display: block;
  font-size: 1.05rem;
  color: var(--ink-heading);
}

.metric-item.metric-secure strong {
  color: var(--green);
}

.metric-item span {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  color: var(--ink-dim);
  line-height: 1.3;
}

/* Hero 右侧双视图工作区 */
.hero-stage {
  padding: 14px;
  background: #fdfdfe;
}

.stage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.stage-tabs {
  display: inline-flex;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}

.stage-tab {
  background: transparent;
  border: none;
  color: var(--ink-muted);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 3px;
  cursor: pointer;
}

.stage-tab.active {
  background: #ffffff;
  color: var(--ink-heading);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.stage-frame-tag {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-heading);
  background: #eef2f7;
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
}

.sandbox-top {
  display: grid;
  grid-template-columns: 1.22fr 0.88fr;
  gap: 12px;
  margin-bottom: 12px;
}

.sandbox-matrix-wrap,
.sandbox-inspector,
.sandbox-code-wrap {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px;
}

.matrix-header,
.inspector-head,
.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}

.matrix-title,
.inspector-head span,
.code-header span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-heading);
}

.matrix-hint {
  font-size: 0.71rem;
  color: var(--ink-dim);
}

/* 浅色 8x8 CAN 位图矩阵 */
.bit-matrix {
  display: grid;
  grid-template-columns: 42px repeat(8, minmax(0, 1fr));
  gap: 3px;
  align-items: center;
}

.bit-col-head {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-dim);
  text-align: center;
  padding-bottom: 2px;
}

.bit-row-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.bit-cell {
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  transition: filter 0.1s ease;
}

.bit-cell:hover {
  filter: brightness(0.95);
}

.bit-cell.is-selected {
  outline: 2px solid var(--ink-heading);
  outline-offset: -1px;
  z-index: 2;
}

/* 右侧字段输入器 */
.field-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.field-chip {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 5px 7px;
}

.field-chip.is-selected {
  border-color: var(--accent);
  background: #eff6ff;
}

.field-chip-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 3px;
}

.field-name {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 700;
  color: var(--ink-heading);
  cursor: pointer;
}

.field-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}

.field-bits {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ink-dim);
}

.field-input {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  padding: 3px 6px;
}

.hex-bar {
  background: var(--bg-code);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 7px 9px;
}

.hex-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: var(--ink-muted);
  margin-bottom: 3px;
}

.hex-output {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-heading);
  letter-spacing: 0.04em;
  word-break: break-all;
}

/* 浅色 C 结构体预览 */
.sandbox-code-wrap {
  background: var(--bg-code);
}

.c-struct-pre {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.48;
  color: #334155;
  overflow-x: auto;
}

.c-line {
  display: block;
  padding: 1px 6px;
  border-left: 2px solid transparent;
}

.c-line.is-selected {
  background: #dbeafe;
  border-left-color: var(--accent);
  color: #0f172a;
}

.c-kw { color: #1d4ed8; font-weight: 600; }
.c-type { color: #0f766e; font-weight: 600; }
.c-comment { color: #64748b; }

.screenshot-frame {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ffffff;
}

.app-screenshot {
  width: 100%;
  height: auto;
}

.screenshot-caption {
  padding: 9px 12px;
  font-size: 0.78rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--line);
  background: var(--bg-subtle);
}

/* 左对齐章节标题（技术规格书式） */
.section-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 34px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.section-num {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--accent-dark);
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  margin-top: 4px;
  flex-shrink: 0;
}

.section-title {
  margin: 0 0 6px;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  line-height: 1.25;
  color: var(--ink-heading);
}

.section-subtitle {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.96rem;
}

/* 六大核心能力（共享细线规格矩阵） */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #ffffff;
}

.spec-cell {
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.spec-index {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.spec-cell h3 {
  margin: 0 0 8px;
  font-size: 1.04rem;
  color: var(--ink-heading);
}

.spec-cell p {
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: var(--ink-muted);
  flex: 1;
}

/* 实机界面缩略图与看图灯箱 */
.shot-trigger,
.shot-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f8fafc;
  overflow: hidden;
  cursor: zoom-in;
  text-align: left;
  transition: border-color 0.15s ease;
}

.shot-trigger {
  border: none;
  border-radius: 0;
}

.shot-thumb {
  aspect-ratio: 16 / 10;
}

.shot-thumb:hover,
.proto-shot-banner .shot-trigger:hover {
  border-color: var(--accent-dark);
}

.shot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.shot-zoom-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(16, 35, 63, 0.86);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 3px;
  pointer-events: none;
}

.shot-thumb:hover .shot-zoom-badge,
.shot-trigger:hover .shot-zoom-badge {
  background: var(--accent);
}

.proto-shot-banner {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  overflow: hidden;
}

.proto-shot-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--line);
}

.proto-shot-bar strong {
  display: block;
  font-size: 0.9rem;
  color: var(--ink-heading);
}

.proto-shot-bar span {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.proto-shot-banner .shot-trigger img {
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: cover;
  object-position: top left;
}

.modal-dialog.lightbox-dialog {
  width: min(1180px, 95vw);
  padding: 18px 20px;
}

.lightbox-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.lightbox-counter {
  font-size: 0.76rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--accent-dark);
  padding: 2px 8px;
  border-radius: 3px;
  flex-shrink: 0;
}

.lightbox-stage {
  background: #f1f5f9;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 72vh;
  width: auto;
  height: auto;
  border: 1px solid var(--line-strong);
  background: #ffffff;
}

.lightbox-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
}

/* 15 类协议矩阵 */
.protocol-panel {
  padding: 20px;
  margin-bottom: 34px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.filter-pill {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  color: var(--ink-muted);
  font-family: inherit;
  font-size: 0.83rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.filter-pill:hover {
  color: var(--ink-heading);
  border-color: var(--line-strong);
}

.filter-pill.active {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #ffffff;
}

.protocols-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.proto-card {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.proto-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.proto-card h4 {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-heading);
}

.proto-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent-dark);
  background: #e2e8f0;
  padding: 2px 7px;
  border-radius: 3px;
  white-space: nowrap;
}

.proto-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* 6 大硬件接口兼容表 */
.hardware-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hardware-header h3 {
  margin: 0 0 4px;
  font-size: 1.12rem;
  color: var(--ink-heading);
}

.hardware-header p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.spec-table th {
  background: var(--bg-subtle);
  color: var(--ink-heading);
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.spec-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
}

.spec-table tbody tr:last-child td {
  border-bottom: none;
}

.spec-table td strong {
  color: var(--ink-heading);
}

.spec-table code {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--amber);
  background: #fef3c7;
  padding: 2px 7px;
  border-radius: 3px;
}

/* 安全与合规 */
.security-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.sec-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.sec-card-head {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.sec-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 8px;
}

.badge-green {
  background: #dcfce7;
  color: var(--green);
  border: 1px solid #bbf7d0;
}

.badge-blue {
  background: #dbeafe;
  color: var(--accent);
  border: 1px solid #bfdbfe;
}

.sec-card-head h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--ink-heading);
}

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

.check-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.89rem;
  color: var(--ink-muted);
}

.check-list li::before {
  content: "▪";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-dark);
  font-weight: 700;
}

.check-list li strong {
  color: var(--ink-heading);
}

.sec-card-foot {
  margin-top: auto;
  padding-top: 18px;
}

/* 商业授权报价 */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.price-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.price-featured {
  border-color: var(--accent-dark);
  border-top: 4px solid var(--accent-dark);
  background: #fcfdff;
}

.featured-bar {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price-tier {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink-heading);
  margin-bottom: 10px;
}

.price-value {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink-heading);
  margin-bottom: 10px;
}

.price-value .currency {
  font-size: 1.15rem;
  vertical-align: top;
  margin-right: 2px;
}

.price-value .currency-text {
  font-size: 1.75rem;
}

.price-value .unit {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-dim);
}

.price-summary {
  margin: 0 0 18px;
  font-size: 0.87rem;
  color: var(--ink-muted);
}

.price-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 9px;
  flex: 1;
}

.price-features li {
  position: relative;
  padding-left: 18px;
  font-size: 0.88rem;
  color: var(--ink);
}

.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* 下载中心 */
.download-box {
  padding: 24px;
  display: grid;
  grid-template-columns: 1.38fr 0.82fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 20px;
}

.release-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.rel-badge {
  font-size: 0.75rem;
  padding: 3px 9px;
  border-radius: 3px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  color: var(--ink-muted);
}

.rel-ver {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #ffffff;
  font-weight: 700;
}

.download-main h3 {
  margin: 0 0 6px;
  font-size: 1.22rem;
  color: var(--ink-heading);
}

.download-main p {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.sha-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--bg-code);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
}

.sha-label {
  font-size: 0.72rem;
  color: var(--ink-dim);
  font-weight: 700;
}

.sha-value {
  font-size: 0.75rem;
  color: var(--ink-heading);
  word-break: break-all;
  flex: 1;
}

.download-actions {
  display: grid;
  gap: 10px;
}

.download-note {
  margin: 2px 0 0;
  font-size: 0.77rem;
  color: var(--ink-dim);
}

/* 更新日志 */
.changelog-panel {
  padding: 22px 24px;
}

.changelog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.changelog-head h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink-heading);
}

.changelog-range {
  font-size: 0.78rem;
  color: var(--ink-dim);
}

.changelog-list {
  display: grid;
  gap: 8px;
}

.cl-item {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

.cl-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cl-ver {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.cl-text {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--ink-heading);
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 600;
  text-align: left;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.faq-q:hover {
  background: var(--bg-subtle);
}

.faq-icon {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--ink-dim);
}

.faq-q[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  padding: 0 18px 16px;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.faq-a p {
  margin: 0;
}

/* 页脚 */
.site-footer {
  padding: 36px 0 24px;
  border-top: 1px solid var(--line);
  background: var(--accent-dark);
  color: #cbd5e1;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand strong {
  color: #ffffff;
}

.footer-brand p {
  margin: 2px 0 0;
  font-size: 0.81rem;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.86rem;
}

.footer-links a:hover,
.footer-links .btn-link:hover {
  color: #ffffff;
}

.footer-links .btn-link {
  color: #93c5fd;
}

.footer-bottom {
  padding-top: 16px;
  font-size: 0.78rem;
  color: #94a3b8;
  text-align: center;
}

.footer-disclaimer {
  margin: 6px auto 0;
  max-width: 820px;
  font-size: 0.73rem;
  color: #64748b;
}

/* 弹窗与 Toast */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-dialog {
  width: min(600px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--ink-heading);
}

.modal-close {
  background: none;
  border: none;
  color: var(--ink-dim);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.modal-body {
  display: grid;
  gap: 13px;
}

.modal-intro {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

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

.form-row {
  display: grid;
  gap: 5px;
}

.form-row label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-heading);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.88rem;
  padding: 8px 10px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.form-result {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
}

.form-result.is-error {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

.driver-item {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: grid;
  gap: 3px;
}

.driver-item strong {
  font-size: 0.88rem;
  color: var(--ink-heading);
}

.driver-item span {
  font-size: 0.81rem;
  color: var(--ink-muted);
}

.info-callout {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-dark);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.info-callout p {
  margin: 0 0 8px;
}

.info-callout p:last-child {
  margin-bottom: 0;
}

.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 300;
  background: var(--accent-dark);
  color: #ffffff;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 0.86rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
}

/* 响应式适配 */
@media (max-width: 1024px) {
  .hero-grid,
  .download-box,
  .security-split {
    grid-template-columns: 1fr;
  }

  .spec-grid,
  .protocols-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 14px 20px;
    gap: 12px;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .sandbox-top,
  .spec-grid,
  .protocols-grid,
  .pricing-grid,
  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .metrics-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-item {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 480px) {
  .section {
    padding: 52px 0;
  }

  .bit-cell {
    height: 22px;
    font-size: 0.56rem;
  }

  .cl-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
