/* ============================================================
   PXLogic — 开源逻辑分析仪官网
   白色简约科技风 · 科技蓝 #0EA5E9 / #0284C7
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-tint: #f6f9fc;
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #64748b;
  --line: #e2e8f0;
  --blue: #0ea5e9;
  --blue-deep: #0284c7;
  --blue-soft: #e0f2fe;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 28px -12px rgba(15, 23, 42, 0.16);
  --shell-w: 1120px;
  --font: "Inter", "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: clip; /* 手机端安全网：意外溢出不产生横向滚动（不破坏 sticky 顶栏） */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: 0.92em; background: var(--blue-soft); color: var(--blue-deep); padding: 0.1em 0.4em; border-radius: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.shell { width: min(var(--shell-w), calc(100% - 48px)); margin-inline: auto; }

/* ---------- 通用元素 ---------- */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--blue-deep);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.accent { color: var(--blue-deep); }
.accent-num { color: var(--blue-deep); }

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.16; letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.22; letter-spacing: -0.015em; font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn.sm { padding: 8px 14px; font-size: 0.88rem; }
.btn.primary { background: var(--blue-deep); color: #fff; box-shadow: 0 6px 18px -8px rgba(2, 132, 199, 0.55); }
.btn.primary:hover { background: #0369a1; transform: translateY(-1px); }
.btn.ghost { border-color: var(--line); color: var(--ink-2); background: #fff; }
.btn.ghost:hover { border-color: var(--blue); color: var(--blue-deep); }
.btn.buy { background: #ff6a00; color: #fff; box-shadow: 0 6px 18px -8px rgba(255, 106, 0, 0.55); }
.btn.buy:hover { background: #f25c04; transform: translateY(-1px); }

/* 官方购买横幅 */
.buy-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin-top: 26px; padding: 22px 26px;
  background: linear-gradient(120deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fed7aa; border-radius: 16px;
}
.buy-info { display: flex; flex-direction: column; gap: 4px; }
.buy-info strong { font-size: 1.05rem; color: #9a3412; }
.buy-info span { font-size: 0.88rem; color: #c2410c; }
.btn .icon { width: 17px; height: 17px; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--blue-deep); }
.brand-mark { width: 30px; height: 30px; }
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--ink); }
.brand-name em { font-style: normal; color: var(--blue-deep); }

.nav { display: flex; gap: 2px; margin-inline: auto; }
.nav a {
  padding: 7px 10px; border-radius: 8px;
  font-size: 0.92rem; color: var(--ink-3); font-weight: 550;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav a:hover { color: var(--blue-deep); background: var(--blue-soft); }
.nav a.is-active { color: var(--blue-deep); }

/* 英文顶栏文字更宽，单独收紧以保证三语顶栏高度一致 */
html:lang(en) .topbar-inner { gap: 12px; }
html:lang(en) .nav { gap: 0; }
html:lang(en) .nav a { font-size: 0.88rem; padding: 7px 8px; }
html:lang(en) .btn.sm { padding: 8px 12px; }
html:lang(en) .lang-switch a { padding: 5px 7px; }

.topbar-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 2px; gap: 2px; }
.lang-switch a {
  font-size: 0.76rem; font-weight: 600; line-height: 1; color: var(--ink-3);
  padding: 5px 9px; border-radius: 999px; transition: color 0.15s, background 0.15s;
}
.lang-switch a:hover { color: var(--blue-deep); background: #f0f9ff; }
.lang-switch a.is-active { background: var(--blue); color: #fff; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 72px; background:
  radial-gradient(720px 340px at 85% -10%, rgba(14, 165, 233, 0.09), transparent 65%),
  radial-gradient(560px 300px at 0% 0%, rgba(14, 165, 233, 0.06), transparent 60%),
  var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero-copy .lede { margin: 20px 0 28px; color: var(--ink-3); font-size: 1.06rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex; gap: 36px; list-style: none;
  margin-top: 40px; padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-stats strong { display: block; font-size: 1.45rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.hero-stats span { font-size: 0.82rem; color: var(--ink-3); }

.hero-visual { position: relative; }
.shot-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow-md); overflow: hidden;
}
.shot-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 11px 16px;
  border-bottom: 1px solid var(--line); background: #f8fafc;
}
.shot-title {
  font-family: var(--mono); font-size: 0.82rem; font-weight: 650; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 8px;
}
.shot-title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.theme-tabs { display: flex; gap: 6px; }
.theme-tab {
  border: 1px solid var(--line); background: #fff; color: var(--ink-3);
  font-family: inherit; font-size: 0.78rem; font-weight: 600;
  padding: 4px 13px; border-radius: 999px; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.theme-tab:hover { color: var(--blue-deep); border-color: var(--blue); }
.theme-tab.is-active { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.shot-stage { position: relative; background: #0b1220; }
.shot-img { display: none; }
.shot-img.is-active { display: block; }
.shot-img img { width: 100%; height: auto; }
.ui-gallery {
  margin-top: 32px; background: #fff;
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-md); overflow: hidden;
}
.ui-gallery .theme-tabs { flex-wrap: wrap; justify-content: flex-end; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; justify-content: center; }
.chip {
  font-size: 0.76rem; font-weight: 600; font-family: var(--mono);
  padding: 4px 11px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-3);
}
.chip-more { background: var(--blue-soft); border-color: transparent; color: var(--blue-deep); }

/* ---------- 区块 ---------- */
.section { padding: 92px 0; }
.section-tint { background: var(--bg-tint); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p:not(.eyebrow) { color: var(--ink-3); margin-top: 14px; }

/* ---------- 特性 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #bae6fd; }
.feature-icon {
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--blue-soft); color: var(--blue-deep);
  display: grid; place-items: center; margin-bottom: 18px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card p { color: var(--ink-3); font-size: 0.94rem; margin-top: 8px; }

/* ---------- PXView 软件 ---------- */
.software-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sw-card {
  min-width: 0; /* 防止代码块等不可断行内容把 grid 轨道撑宽（手机端横向溢出） */
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sw-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.sw-card-wide { grid-column: span 2; }
.sw-tag {
  align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--blue-deep); background: var(--blue-soft);
  padding: 3px 10px; border-radius: 999px; text-transform: uppercase;
}
.sw-card p { color: var(--ink-3); font-size: 0.94rem; }

.code-block {
  margin-top: 8px; background: #0f172a; color: #7dd3fc;
  padding: 14px 18px; border-radius: 10px;
  font-family: var(--mono); font-size: 0.85rem;
  overflow-x: auto; cursor: pointer; position: relative;
}
.code-block::after {
  content: "点击复制";
  position: absolute; top: 10px; right: 14px;
  font-size: 0.7rem; color: #64748b; font-family: var(--font);
}
.code-block.copied::after { content: "已复制 ✓"; color: #4ade80; }

/* ---------- 硬件 ---------- */
.hw-showcase {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 28px; margin-bottom: 28px;
}
.hw-render { width: 100%; height: auto; border-radius: 12px; }
/* 三视图（透明底抠图） */
.hw-views { margin: 26px 0 0; }
.hw-views-stage {
  display: flex; align-items: flex-end; justify-content: center; gap: clamp(18px, 4vw, 56px);
  padding: 34px 28px 22px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef4f8 100%);
  border: 1px solid var(--line); border-bottom: 0; border-radius: 16px 16px 0 0;
}
.hw-view img { display: block; height: auto; filter: drop-shadow(0 14px 22px rgba(15, 23, 42, 0.16)); }
.view-side img, .view-conn img { height: clamp(180px, 26vw, 300px); }
.view-front img { height: clamp(200px, 30vw, 340px); }
.hw-views figcaption {
  padding: 10px 16px; text-align: center; font-size: 0.78rem; color: var(--ink-3);
  background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 16px 16px;
}

.hw-photo { display: flex; flex-direction: column; gap: 10px; }
.hw-photo picture {
  display: flex; align-items: center; justify-content: center;
  background: #f1f3f5; border-radius: 12px; overflow: hidden;
}
.hw-photo img { width: 100%; height: auto; max-height: 500px; object-fit: contain; }
.hw-photo figcaption { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-3); }
.inbox-card {
  margin-top: 28px; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 22px;
}
.inbox-card img { width: 100%; height: auto; border-radius: 10px; }
.inbox-card figcaption { text-align: center; font-size: 0.85rem; color: var(--ink-3); margin-top: 12px; }

.pin-panel h3 { margin-bottom: 6px; }
.pin-sub { font-size: 0.78rem; color: var(--ink-3); font-weight: 500; font-family: var(--mono); margin-left: 8px; }
/* 接口实物照片 */
.connector-photo { margin: 0 0 14px; }
.connector-photo img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.18));
}
.connector-photo figcaption {
  margin-top: 8px; font-family: var(--mono); font-size: 0.74rem; color: var(--ink-3); text-align: center;
}

.pin-strip-wrap { display: grid; gap: 8px; margin-top: 16px; }
.pin-strip-row { display: flex; align-items: center; gap: 10px; }
.pin-strip-label { flex: 0 0 34px; font-size: 0.75rem; font-weight: 700; color: var(--ink-3); }
.pin-strip {
  flex: 1; display: grid; grid-template-columns: repeat(25, 1fr); gap: 3px;
  background: #0f172a; border-radius: 8px; padding: 8px 6px;
  direction: rtl; /* 实物排针方向与页面相反，整体镜像 */
}
.pin-chip { direction: ltr; }
.pin-chip {
  font-family: var(--mono); font-size: 0.62rem; font-weight: 700;
  text-align: center; padding: 4px 0; border-radius: 4px; line-height: 1.2;
}
.pin-chip.gnd { background: #334155; color: #94a3b8; }
.pin-chip.ch { background: #0c4a6e; color: #7dd3fc; }
.pin-chip.io { background: #075985; color: #e0f2fe; }
.pin-chip.pwm { background: #78350f; color: #fcd34d; }
.pin-legend {
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px;
  margin-top: 12px; font-size: 0.8rem; color: var(--ink-3);
}
.pin-legend li { display: inline-flex; align-items: center; gap: 6px; }
.pin-legend .dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.pin-legend .dot.gnd { background: #64748b; }
.pin-legend .dot.ch { background: #0ea5e9; }
.pin-legend .dot.io { background: #0369a1; }
.pin-legend .dot.pwm { background: #d97706; }
.pin-tip { margin-top: 14px; font-size: 0.84rem; color: var(--ink-3); }

/* 完整参数对比表 */
.spec-compare {
  margin-top: 36px; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 26px;
}
.spec-compare > h3 { margin-bottom: 16px; }
.spec-scroll { overflow-x: auto; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 720px; }
.spec-table th, .spec-table td {
  border: 1px solid var(--line); padding: 10px 14px;
  text-align: left; vertical-align: top;
}
.spec-table thead th {
  background: var(--bg-tint); font-weight: 750; white-space: nowrap;
  position: sticky; top: 0;
}
.spec-table tbody td:first-child {
  font-weight: 650; color: var(--ink-2); white-space: nowrap;
  background: #fbfdff; min-width: 150px;
}
.spec-table td[colspan] { color: var(--ink-2); }
.spec-table .price-row td {
  background: var(--blue-soft); font-weight: 750; color: var(--blue-deep);
}
.spec-table .price-row td:first-child { color: var(--blue-deep); }

.device-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.device-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; padding: 22px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.device-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #bae6fd; }
.device-card header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.badge {
  font-size: 0.68rem; font-weight: 700; color: var(--blue-deep);
  background: var(--blue-soft); border-radius: 999px; padding: 2px 9px; letter-spacing: 0.06em;
}
.device-desc { color: var(--ink-3); font-size: 0.86rem; margin-bottom: 16px; min-height: 2.6em; }
.spec-list { list-style: none; border-top: 1px solid var(--line); }
.spec-list li {
  display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: baseline;
  padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.86rem;
}
.spec-list span { color: var(--ink-3); }
.spec-list strong { font-weight: 700; color: var(--ink); font-size: 0.85rem; text-align: center; }
.hw-note { margin-top: 20px; font-size: 0.88rem; color: var(--ink-3); font-family: var(--mono); }

/* ---------- 解码器 ---------- */
.decoder-panel {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 24px; box-shadow: var(--shadow-sm);
}
.decoder-bar { display: flex; align-items: center; gap: 16px; }
.decoder-bar input {
  flex: 1; padding: 12px 16px; border-radius: 10px;
  border: 1px solid var(--line); font-size: 0.95rem; font-family: inherit;
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.decoder-bar input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15); }
#decoder-count { font-family: var(--mono); font-size: 0.85rem; color: var(--ink-3); white-space: nowrap; }
.decoder-feature-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.decoder-feature-row span {
  font-size: 0.78rem; font-weight: 600; color: var(--blue-deep);
  background: var(--blue-soft); border-radius: 999px; padding: 4px 12px;
}
.decoder-list {
  list-style: none; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 8px; min-height: 120px;
}
.decoder-list li {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px;
  background: var(--bg-tint); min-width: 0;
}
.decoder-list li mark { background: #fef08a; border-radius: 2px; }
.dec-name { font-family: var(--font); font-size: 0.8rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dec-id { font-family: var(--mono); font-size: 0.66rem; color: #94a3b8; background: none; padding: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dec-badge { font-size: 0.62rem; font-weight: 700; border-radius: 999px; padding: 2px 7px; white-space: nowrap; font-family: var(--font); flex-shrink: 0; }
.dec-badge.c { background: #dcfce7; color: #15803d; }
.dec-badge.py { background: #fef3c7; color: #b45309; }
.decoder-filters { display: flex; gap: 6px; flex-shrink: 0; }
.decoder-filter {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 999px; padding: 8px 14px; font-size: 0.8rem; font-weight: 600;
  cursor: pointer; font-family: inherit; white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.decoder-filter:hover { border-color: var(--blue); color: var(--blue-deep); }
.decoder-filter.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.decoder-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.decoder-note { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--bg-tint); }
.decoder-note h3 { font-size: 0.95rem; margin-bottom: 6px; }
.decoder-note p { font-size: 0.85rem; color: var(--ink-3); line-height: 1.65; }
.decoder-note a { color: var(--blue-deep); }
.decoder-more { margin-top: 16px; font-size: 0.82rem; color: var(--ink-3); }
.decoder-more a { color: var(--blue-deep); }
.decoder-empty { grid-column: 1/-1; color: var(--ink-3); font-size: 0.9rem; padding: 20px; text-align: center; display: block; }

/* ---------- 文档与手册 ---------- */
.docs-head { margin: 40px 0 18px; }
.docs-head h3 { font-size: 1.25rem; }
.docs-head p { margin-top: 6px; font-size: 0.9rem; color: var(--ink-3); }
.docs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.doc-card {
  display: flex; flex-direction: column; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.doc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue); }
.doc-type {
  align-self: flex-start; font-family: var(--mono); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.06em; border-radius: 6px; padding: 3px 9px;
}
.doc-type.pdf { background: #fee2e2; color: #dc2626; }
.doc-type.md { background: var(--blue-soft); color: var(--blue-deep); }
.doc-type.docx { background: #dbeafe; color: #1d4ed8; }
.doc-type.txt { background: #f1f5f9; color: #64748b; }
.doc-body strong { font-size: 0.95rem; color: var(--ink-2); }
.doc-body p { margin-top: 6px; font-size: 0.8rem; color: var(--ink-3); line-height: 1.55; }
.doc-size { margin-top: auto; font-family: var(--mono); font-size: 0.72rem; color: #94a3b8; }

/* ---------- 兼容设备 ---------- */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tier-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; background: #fff; position: relative; overflow: hidden;
}
.tier-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px;
  background: linear-gradient(180deg, var(--blue), var(--blue-deep));
}
.tier-num { font-family: var(--mono); font-size: 0.78rem; font-weight: 700; color: var(--blue-deep); }
.tier-card h3 { margin: 8px 0; }
.tier-card p { color: var(--ink-3); font-size: 0.92rem; }

/* ---------- 开源 ---------- */
.oss-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.oss-copy p:not(.eyebrow) { color: var(--ink-3); margin: 18px 0 26px; }
.oss-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.oss-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.oss-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 4px;
}
.oss-card strong { font-family: var(--mono); font-size: 0.88rem; color: var(--blue-deep); }
.oss-card span { font-size: 0.84rem; color: var(--ink-3); }

/* ---------- 社区 ---------- */
.community-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }
.community-copy h2 { margin-top: 10px; }
.community-copy p { color: var(--ink-3); margin-top: 16px; }
.community-num { display: flex; flex-direction: column; gap: 4px; margin-top: 22px !important; }
.community-num strong { font-family: var(--mono); font-size: 2rem; color: var(--blue-deep); letter-spacing: 0.04em; }
.community-num span { font-size: 0.85rem; color: var(--ink-3); }
.community-tip { font-size: 0.82rem !important; }
.community-card {
  justify-self: center; width: min(340px, 100%);
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 18px; box-shadow: var(--shadow-md);
}
.community-card img { width: 100%; height: auto; border-radius: 12px; display: block; }
.community-card figcaption { margin-top: 10px; text-align: center; font-size: 0.82rem; color: var(--ink-3); }

/* ---------- 下载 ---------- */
.download-section { background: linear-gradient(180deg, var(--bg-tint), #fff); }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.dl-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 24px 22px; display: flex; flex-direction: column; gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.dl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue); }
.dl-head { display: flex; justify-content: space-between; align-items: baseline; }
.dl-head strong { font-size: 1.08rem; }
.dl-head span { font-family: var(--mono); font-size: 0.76rem; color: var(--blue-deep); background: var(--blue-soft); padding: 2px 8px; border-radius: 6px; }
.dl-card p { color: var(--ink-3); font-size: 0.87rem; flex: 1; }
.dl-cta { font-size: 0.88rem; font-weight: 650; color: var(--blue-deep); }
.dl-note { margin-top: 26px; text-align: center; color: var(--ink-3); font-size: 0.9rem; }
.dl-note a { color: var(--blue-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg); padding-top: 60px; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 44px; }
.footer-brand p { color: var(--ink-3); font-size: 0.88rem; margin-top: 14px; }
.footer-col h4 { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.footer-col a { display: block; padding: 5px 0; color: var(--ink-2); font-size: 0.92rem; }
.footer-col a:hover { color: var(--blue-deep); }
.footer-meta {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-block: 20px; border-top: 1px solid var(--line);
  font-size: 0.82rem; color: var(--ink-3);
}
.footer-meta a { color: var(--blue-deep); }
.footer-wordmark {
  font-size: clamp(3rem, 11vw, 8.5rem); font-weight: 800; letter-spacing: -0.04em;
  text-align: center; line-height: 1.1; padding: 0.15em 0 0.35em;
  color: transparent; -webkit-text-stroke: 1px var(--line); user-select: none;
}
.footer-wordmark em { font-style: normal; -webkit-text-stroke: 1px #bae6fd; }

/* ---------- 动效 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1139px) {
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 24px 18px; box-shadow: var(--shadow-md);
  }
  .nav.is-open { display: flex; }
  .menu-toggle { display: block; }
}

@media (max-width: 1020px) {
  .hero-grid, .oss-grid, .community-grid { grid-template-columns: 1fr; gap: 40px; }
  .docs-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid, .software-grid, .tier-grid { grid-template-columns: 1fr 1fr; }
  .sw-card-wide { grid-column: span 2; }
  .device-grid, .dl-grid { grid-template-columns: 1fr 1fr; }
  .hw-showcase { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .hero { padding: 56px 0; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .topbar-actions .btn.ghost,
  .topbar-actions .btn.buy,
  .topbar-actions .btn.primary { display: none; } /* 手机顶栏只留品牌 + 语言切换 + 菜单 */
  .topbar-inner { gap: 12px; }
  .lang-switch a { padding: 5px 7px; }
  .feature-grid, .software-grid, .tier-grid, .device-grid, .dl-grid,
  .oss-cards, .footer-grid, .docs-grid { grid-template-columns: 1fr; }
  .sw-card-wide { grid-column: auto; }
  .decoder-bar { flex-wrap: wrap; }
  .decoder-filters { flex-wrap: wrap; }
  .decoder-notes { grid-template-columns: 1fr; }
  .pin-strip { grid-template-columns: repeat(12, 1fr); }
  .pin-strip-row { flex-wrap: wrap; }
  .footer-meta { flex-direction: column; }
}
