/* ==========================================================================
   公文秒排 · 产品站样式
   与主站 gwbbm.cn 同一套「政务极简」视觉语言：
   深海蓝 #003399 / 庄严红 #C00000 / 纸感底噪 #F8F9FA / 1200px 内容轴线。
   纯手写 CSS，无框架、无外链字体，整站可直接放任意静态服务器。
   ========================================================================== */

:root {
  --paper: #f8f9fa;
  --paper-warm: #fdfcfb;
  --ink: #0f172a;
  --ink-2: #1e293b;
  --body: #475569;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --line-soft: #eef2f7;
  --blue: #003399;
  --blue-deep: #002b80;
  --blue-ink: #001a4d;
  --blue-50: #f1f5fb;
  --blue-100: #dce4f2;
  --red: #c00000;
  --green: #047857;
  --amber: #b45309;
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-lift: 0 8px 20px rgba(15, 23, 42, 0.07);
  --shadow-float: 0 18px 48px -22px rgba(15, 23, 42, 0.28);
  --radius: 12px;
  --radius-lg: 16px;
  --header-h: 64px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --font-song: "FZXiaoBiaoSong-B05S", "方正小标宋_GBK", "方正小标宋简体", "STZhongsong",
    "Songti SC", "SimSun", serif;
  --font-fangsong: "FangSong_GB2312", "FangSong", "仿宋_GB2312", "仿宋", "STFangsong", serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  background-color: var(--paper);
  /* 高档信纸质感底噪，与主站同一张 SVG */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--blue-100);
  color: var(--blue-ink);
}

img {
  max-width: 100%;
  height: auto;
}

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

a:hover {
  color: var(--blue-deep);
}

:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  border-radius: 4px;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

code,
kbd,
pre {
  font-family: var(--font-mono);
}

/* ---------- 布局骨架 ---------- */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 640px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

.section {
  padding: 68px 0;
}

.section--tight {
  padding: 44px 0;
}

.section--paper {
  background: #fff;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--blue);
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 16px;
  height: 3px;
  border-radius: 1px;
  background: var(--red);
}

.section-title {
  margin-top: 12px;
  font-size: 28px;
  line-height: 1.36;
  font-weight: 800;
  letter-spacing: -0.005em;
}

.section-sub {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 公告条 ---------- */

.announce {
  background: var(--blue-deep);
  color: #cfdcf0;
  font-size: 12.5px;
  line-height: 1.6;
  text-align: center;
  padding: 7px 16px;
  letter-spacing: 0.01em;
}

.announce a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  padding-bottom: 1px;
}

.announce a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.announce .sep {
  color: rgba(255, 255, 255, 0.35);
  margin: 0 8px;
}

/* ---------- 头部 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

/* 横版组合标（635 × 142.5），按高度缩放，宽度自适应 */
.brand img {
  height: 28px;
  width: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
}

/* 头部品牌形态与主站一致：图片 logo +「/ 公文秒排」 */
.brand-sep {
  font-size: 13px;
  font-weight: 600;
  color: #c3ccdb;
}

.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.nav {
  display: flex;
  align-items: stretch;
  gap: 28px;
  height: var(--header-h);
  margin-left: auto;
  margin-right: auto;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  transition: color 0.18s ease;
}

.nav-link:hover {
  color: var(--blue);
}

.nav-link.is-active {
  color: var(--blue);
  font-weight: 700;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.link-subtle {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.18s ease;
}

.link-subtle:hover {
  color: var(--blue);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
}

.nav-toggle svg {
  width: 18px;
  height: 18px;
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-family: inherit;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease,
    box-shadow 0.18s ease, transform 0.18s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.btn-md {
  height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

.btn-lg {
  height: 48px;
  padding: 0 22px;
  font-size: 14.5px;
  border-radius: 10px;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 51, 153, 0.22);
}

.btn-primary:hover {
  background: var(--blue-deep);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -6px rgba(0, 51, 153, 0.55);
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-card);
}

.btn-ghost:hover {
  color: var(--blue);
  border-color: #c7d2e5;
  background: #fbfcfe;
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: #c7d2e5;
}

.btn-outline:hover {
  background: var(--blue-50);
  color: var(--blue-deep);
}

.btn-light {
  background: #fff;
  color: var(--blue-deep);
}

.btn-light:hover {
  background: #f1f5fb;
  color: var(--blue-ink);
  transform: translateY(-1px);
}

.btn-quiet-light {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-quiet-light:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

/* ---------- 首页 Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 380px at 50% -12%, rgba(0, 51, 153, 0.07), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(248, 249, 250, 0.35) 58%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 52px;
  align-items: center;
  padding: 54px 0 58px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px 5px 9px;
  border: 1px solid var(--blue-100);
  background: var(--blue-50);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 6px;
}

.eyebrow .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
}

.hero-title {
  margin-top: 18px;
  font-size: 40px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.hero-title .hl {
  color: var(--blue);
  background: linear-gradient(transparent 64%, var(--blue-100) 64%);
  padding: 0 2px;
}

.hero-lead {
  margin-top: 18px;
  max-width: 33em;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--body);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--muted);
}

.hero-facts span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-facts svg {
  width: 13px;
  height: 13px;
  color: var(--green);
  flex-shrink: 0;
}

/* 文档预览（纯 CSS 绘制，非截图） */

.doc-stage {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 386px;
  padding: 6px 0;
}

.doc-paper {
  position: relative;
  width: 100%;
  aspect-ratio: 210 / 297;
  padding: 26px 26px 24px;
  background: #fff;
  border: 1px solid #e5e8ee;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.05), 0 28px 56px -26px rgba(15, 23, 42, 0.32);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.doc-paper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 62%, rgba(248, 249, 250, 0.5) 100%);
  pointer-events: none;
}

.d-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-fangsong);
  font-size: 8.5px;
  color: #475569;
  letter-spacing: 0.04em;
}

.d-redhead {
  margin-top: 22px;
  font-family: var(--font-song);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.14em;
  text-align: center;
  color: var(--red);
}

.d-rule {
  height: 1.5px;
  margin-top: 9px;
  background: var(--red);
  opacity: 0.92;
}

.d-wenhao {
  margin-top: 9px;
  font-family: var(--font-fangsong);
  font-size: 9px;
  text-align: center;
  color: #334155;
}

.d-title {
  margin: 16px 0 12px;
  font-family: var(--font-song);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
  color: #111827;
}

.d-to {
  font-family: var(--font-fangsong);
  font-size: 9.5px;
  color: #1f2937;
  margin-bottom: 4px;
}

.d-body {
  font-family: var(--font-fangsong);
  font-size: 9px;
  line-height: 2;
  color: #374151;
  text-indent: 2em;
  text-align: justify;
}

.d-body + .d-body {
  margin-top: 2px;
}

.d-sign {
  margin-top: auto;
  padding-right: 6px;
  text-align: right;
  font-family: var(--font-fangsong);
  font-size: 9px;
  line-height: 1.95;
  color: #1f2937;
}

.d-stamp {
  position: absolute;
  right: 22px;
  bottom: 46px;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 7.5px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  color: rgba(192, 0, 0, 0.6);
  border: 1.5px solid rgba(192, 0, 0, 0.5);
  border-radius: 50%;
  transform: rotate(-11deg);
  pointer-events: none;
}

.d-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px -10px rgba(15, 23, 42, 0.25);
  white-space: nowrap;
}

.d-chip svg {
  width: 13px;
  height: 13px;
  color: var(--blue);
}

.d-chip--a {
  top: 44px;
  left: -18px;
}

.d-chip--b {
  right: -22px;
  bottom: 92px;
}

/* ---------- 卡片 ---------- */

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

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

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

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

.card {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: #c7d2e5;
  box-shadow: var(--shadow-lift);
}

.icon-tile {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  color: var(--blue);
}

.icon-tile svg {
  width: 19px;
  height: 19px;
}

.icon-tile--red {
  background: #fdf3f3;
  border-color: #f5d9d9;
  color: var(--red);
}

.card h3 {
  margin-top: 14px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
}

.card p {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.78;
  color: var(--muted);
}

.card .spec {
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px dashed var(--line-soft);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--faint);
}

/* ---------- 表格 ---------- */

.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 13.5px;
}

thead th {
  padding: 11px 16px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--body);
  line-height: 1.7;
  vertical-align: top;
}

tbody td:first-child {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

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

tbody tr:hover {
  background: #fbfcfe;
}

.tag {
  display: inline-block;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--blue);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 4px;
  white-space: nowrap;
}

.tag-red {
  color: var(--red);
  background: #fdf3f3;
  border-color: #f5d9d9;
}

.tag-amber {
  color: var(--amber);
  background: #fffbeb;
  border-color: #fde68a;
}

.tag-green {
  color: var(--green);
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.tag-gray {
  color: var(--muted);
  background: #f8fafc;
  border-color: var(--line);
}

/* ---------- 步骤 ---------- */

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

.step {
  position: relative;
  padding: 24px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.step-no {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  color: #eef2f9;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.step h3 {
  position: relative;
  font-size: 15px;
  font-weight: 700;
  padding-right: 44px;
}

.step p {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

.step code,
.docs-body code,
.faq-a code {
  padding: 1px 5px;
  font-size: 12.5px;
  color: var(--ink);
  background: #f1f5f9;
  border: 1px solid var(--line);
  border-radius: 4px;
  word-break: break-all;
}

/* ---------- 环境卡 ---------- */

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

.env-card {
  position: relative;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}

.env-card--primary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--blue);
}

.env-card--soon {
  background: #fcfcfd;
  border-style: dashed;
  box-shadow: none;
}

.env-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.env-head .os {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  color: var(--blue);
}

.env-head .os svg {
  width: 19px;
  height: 19px;
}

.env-head h3 {
  font-size: 15.5px;
  font-weight: 700;
}

.env-head .sub {
  font-size: 12px;
  color: var(--faint);
  margin-top: 1px;
}

.env-head .pill {
  margin-left: auto;
}

.env-list {
  margin: 14px 0 0;
  display: grid;
  gap: 9px;
}

.env-row {
  display: flex;
  gap: 12px;
  font-size: 13px;
  line-height: 1.7;
}

.env-row dt {
  flex: 0 0 72px;
  color: var(--faint);
}

.env-row dd {
  margin: 0;
  color: var(--body);
}

.env-foot {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
}

.pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

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

.pill-amber {
  color: var(--amber);
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.pill-gray {
  color: var(--muted);
  background: #f8fafc;
  border: 1px solid var(--line);
}

/* ---------- 双栏对照（主站 / 秒排） ---------- */

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

.panel {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.panel--tint {
  background: linear-gradient(180deg, #f7f9fd 0%, #ffffff 62%);
  border-color: var(--blue-100);
}

.panel h3 {
  font-size: 16.5px;
  font-weight: 700;
  margin-top: 12px;
}

.panel p {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--muted);
}

.panel ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.panel li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--body);
}

.panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--blue-100);
}

.panel--tint li::before {
  background: var(--blue);
}

.panel .panel-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 16px;
  font-size: 13.5px;
  font-weight: 600;
}

.panel .panel-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.18s ease;
}

.panel .panel-link:hover svg {
  transform: translateX(3px);
}

/* ---------- 下载页 ---------- */

.page-head {
  position: relative;
  padding: 42px 0 26px;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(720px 300px at 18% -30%, rgba(0, 51, 153, 0.06), transparent 70%);
  pointer-events: none;
}

.page-head > .container {
  position: relative;
}

.page-title {
  margin-top: 12px;
  font-size: 32px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.page-sub {
  margin-top: 10px;
  max-width: 46em;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--muted);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--body);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.meta-chip strong {
  color: var(--ink);
  font-weight: 700;
}

.meta-chip svg {
  width: 13px;
  height: 13px;
  color: var(--blue);
}

.dl-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 20px;
  align-items: start;
}

.dl-card {
  position: relative;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.dl-card--primary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--blue);
}

.dl-card--soon {
  background: #fcfcfd;
  border-style: dashed;
  box-shadow: none;
}

.dl-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dl-head .os {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  color: var(--blue);
}

.dl-head .os svg {
  width: 20px;
  height: 20px;
}

.dl-head h2 {
  font-size: 17px;
  font-weight: 700;
}

.dl-head .sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--faint);
}

.dl-file {
  margin-top: 16px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px dashed #d8e1ee;
  border-radius: 9px;
}

.dl-file .name {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink);
  word-break: break-all;
}

.dl-file .hash {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--faint);
  word-break: break-all;
}

.dl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.dl-note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--faint);
}

.req-list {
  margin: 14px 0 0;
  display: grid;
  gap: 8px;
}

.req-row {
  display: flex;
  gap: 12px;
  font-size: 12.8px;
  line-height: 1.7;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line-soft);
}

.req-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.req-row dt {
  flex: 0 0 76px;
  color: var(--faint);
}

.req-row dd {
  margin: 0;
  color: var(--body);
}

/* ---------- 文档页 ---------- */

.docs-layout {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: 56px;
  padding: 36px 0 64px;
}

.docs-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  font-size: 13.5px;
}

.docs-toc .toc-title {
  padding-left: 14px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--faint);
  text-transform: uppercase;
}

.docs-toc a {
  display: block;
  padding: 6px 0 6px 14px;
  color: var(--muted);
  border-left: 2px solid var(--line-soft);
  margin-left: -1px;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.docs-toc a:hover {
  color: var(--blue);
}

.docs-toc a.is-active {
  color: var(--blue);
  font-weight: 600;
  border-left-color: var(--blue);
}

.docs-body {
  min-width: 0;
}

.docs-body section {
  margin-bottom: 46px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.docs-body section:last-child {
  margin-bottom: 0;
}

.docs-body h2 {
  padding-bottom: 10px;
  margin-bottom: 14px;
  font-size: 21px;
  font-weight: 800;
  border-bottom: 1px solid var(--line-soft);
}

.docs-body h3 {
  margin: 26px 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-2);
}

.docs-body h4 {
  margin: 18px 0 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-2);
}

.docs-body p {
  font-size: 14px;
  line-height: 1.88;
  color: var(--body);
  margin: 8px 0;
}

.docs-body ul,
.docs-body ol {
  margin: 8px 0 14px;
  padding-left: 1.35em;
}

.docs-body li {
  margin: 5px 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--body);
}

.docs-body li::marker {
  color: #a9b6c9;
}

.docs-body strong {
  color: var(--ink);
  font-weight: 600;
}

.note {
  display: flex;
  gap: 10px;
  margin: 14px 0;
  padding: 12px 16px;
  font-size: 13.3px;
  line-height: 1.8;
  color: var(--body);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0;
}

.note svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--blue);
}

.note strong {
  color: var(--ink);
}

.note--warn {
  background: #fffdf7;
  border-color: #f6e6c8;
  border-left-color: #d97706;
}

.note--warn svg {
  color: #b45309;
}

pre.code {
  position: relative;
  margin: 12px 0;
  padding: 13px 15px;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.75;
  color: #e2e8f0;
  background: #0f172a;
  border-radius: 8px;
  border: 1px solid #1e293b;
}

pre.code code {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}

.code-wrap {
  position: relative;
}

.code-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  font-family: var(--font-sans);
  font-size: 11px;
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 5px;
  cursor: pointer;
  transition: color 0.16s, background 0.16s;
}

.code-copy:hover {
  color: #fff;
  background: rgba(148, 163, 184, 0.26);
}

.kbd {
  display: inline-block;
  min-width: 20px;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.7;
  text-align: center;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid #cbd5e1;
  border-bottom-width: 2px;
  border-radius: 4px;
}

/* ---------- FAQ ---------- */

.faq-group {
  margin-bottom: 34px;
}

.faq-group:last-child {
  margin-bottom: 0;
}

.faq-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--faint);
  text-transform: uppercase;
}

.faq {
  border-top: 1px solid var(--line-soft);
}

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

.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 2px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.65;
  color: var(--ink-2);
  cursor: pointer;
  list-style: none;
  transition: color 0.16s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--blue);
}

.faq-item[open] summary {
  color: var(--blue);
}

.faq-icon {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-icon {
  background: var(--blue-50);
  border-color: var(--blue-100);
  color: var(--blue);
}

.faq-item[open] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-a {
  padding: 0 26px 18px 2px;
  font-size: 13.6px;
  line-height: 1.88;
  color: var(--muted);
}

.faq-a p {
  margin: 0 0 8px;
}

.faq-a p:last-child {
  margin-bottom: 0;
}

.faq-a ul,
.faq-a ol {
  margin: 8px 0;
  padding-left: 1.3em;
}

.faq-a li {
  margin: 4px 0;
}

.faq-a strong {
  color: var(--ink-2);
}

.hint {
  margin-top: 10px !important;
  padding: 10px 14px;
  font-size: 12.8px;
  line-height: 1.75;
  color: var(--body);
  background: #f8fafc;
  border-left: 2px solid var(--blue);
  border-radius: 0 6px 6px 0;
}

/* ---------- CTA ---------- */

.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 26px;
  padding: 36px 40px;
  overflow: hidden;
  color: #fff;
  background: var(--blue-deep);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px -28px rgba(0, 23, 71, 0.6);
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(520px 260px at 78% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(520px 260px at 78% 30%, #000 0%, transparent 78%);
  pointer-events: none;
}

.cta::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -110px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.cta > * {
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-size: 23px;
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
}

.cta p {
  margin-top: 8px;
  max-width: 34em;
  font-size: 13.5px;
  line-height: 1.8;
  color: #bfd0e8;
}

.cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- 页脚 ---------- */

.site-footer {
  margin-top: 68px;
  padding: 40px 0 26px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .brand img {
  height: 24px;
}

.footer-brand .brand-name {
  font-size: 16px;
}

.footer-brand p {
  margin-top: 10px;
  font-size: 12.8px;
  line-height: 1.85;
  color: var(--muted);
}

.footer-cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer-col h4 {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--faint);
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  padding: 3px 0;
  font-size: 13px;
  color: var(--body);
}

.footer-col a:hover {
  color: var(--blue);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 16px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--faint);
  border-top: 1px solid var(--line-soft);
}

.footer-bottom a {
  color: var(--faint);
}

.footer-bottom a:hover {
  color: var(--blue);
}

.footer-bottom .links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* ---------- 入场动画（尊重减少动态偏好） ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card:hover,
  .btn-primary:hover,
  .btn-light:hover {
    transform: none;
  }
}

/* ---------- 响应式 ---------- */

@media (max-width: 1080px) {
  .hero-inner {
    gap: 36px;
  }

  .hero-title {
    font-size: 34px;
  }

  .d-chip--a {
    left: -6px;
  }

  .d-chip--b {
    right: -8px;
  }

  .docs-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 36px;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 38px 0 48px;
  }

  .doc-stage {
    max-width: 340px;
    margin-top: 12px;
  }

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

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

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .env-grid,
  .split,
  .dl-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .docs-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-top: 24px;
  }

  .docs-toc {
    display: none;
  }
}

@media (max-width: 860px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: auto;
    padding: 6px 16px 12px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 28px -18px rgba(15, 23, 42, 0.22);
    margin: 0;
  }

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

  .nav-link {
    height: 46px;
    border-bottom: 1px solid var(--line-soft);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-link.is-active::after {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .link-subtle {
    display: none;
  }
}

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

  .section--tight {
    padding: 36px 0;
  }

  .section-title {
    font-size: 23px;
  }

  .page-title {
    font-size: 26px;
  }

  .hero-title {
    font-size: 29px;
    line-height: 1.36;
  }

  .hero-lead {
    font-size: 14.5px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .brand img {
    height: 24px;
  }

  .brand-name {
    font-size: 16px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-actions .btn-sm {
    height: 34px;
    padding: 0 11px;
    font-size: 12.5px;
  }

  .cta {
    padding: 26px 22px;
  }

  .cta h2 {
    font-size: 20px;
  }

  .cta-actions {
    width: 100%;
  }

  .cta-actions .btn {
    flex: 1 1 auto;
  }

  .footer-cols {
    gap: 32px;
  }

  .faq-a {
    padding-right: 8px;
  }

  .doc-stage {
    max-width: 300px;
  }

  .d-chip--a {
    left: -4px;
    top: 30px;
    font-size: 10.5px;
    padding: 5px 8px;
  }

  .d-chip--b {
    right: -4px;
    bottom: 70px;
    font-size: 10.5px;
    padding: 5px 8px;
  }

  .announce {
    font-size: 11.5px;
  }

  .announce .hide-sm {
    display: none;
  }
}

@media (max-width: 400px) {
  /* 横版组合标比原来的方形图标宽，小屏再收一档，避免顶到右侧按钮 */
  .brand img {
    height: 20px;
  }

  .brand-text {
    gap: 5px;
  }

  .doc-stage {
    max-width: 268px;
  }

  .d-chip--b {
    display: none;
  }
}
