/* ==========================================================================
   联桥跨境标签 官网样式
   主色沿用 Windows 客户端界面（#2374e8 / #347ff0 / #54b7ff），保证品牌一致。
   纯静态、零依赖、无构建步骤。
   ========================================================================== */

:root {
  /* 品牌色：与客户端 styles.css 对齐 */
  --brand: #2374e8;
  --brand-dark: #1a5cc0;
  --brand-light: #3988f5;
  --brand-lighter: #54b7ff;
  --brand-soft: #e7f1ff;
  --brand-wash: #f3f8ff;

  /* 文字与线条 */
  --ink: #203047;
  --ink-2: #43556b;
  --muted: #6d7e93;
  --muted-2: #8795a9;
  --line: #dce7f5;
  --line-soft: #eaf1fa;

  /* 背景 */
  --bg: #f7fafe;
  --white: #ffffff;

  /* 功能色 */
  --ok: #17936a;
  --ok-soft: #e6f6f0;
  --warn: #b5761a;
  --warn-soft: #fdf3e2;
  --danger: #d0342c;
  --danger-soft: #fdecea;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(32, 48, 71, 0.06);
  --shadow: 0 8px 28px rgba(35, 116, 232, 0.09);
  --shadow-lg: 0 18px 48px rgba(26, 92, 192, 0.14);

  --container: 1120px;
  --font: "Microsoft YaHei UI", "Microsoft YaHei", -apple-system, BlinkMacSystemFont,
    "PingFang SC", "Hiragino Sans GB", "Segoe UI", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
}

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

/* 统一 hidden 行为，避免被后面更高优先级的 display 规则覆盖 */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

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

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

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 12px;
  line-height: 1.35;
  color: var(--ink);
  font-weight: 700;
}

h1 {
  font-size: 40px;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 28px;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 19px;
}

p {
  margin: 0 0 14px;
}

ul,
ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

code,
kbd {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--brand-wash);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  word-break: break-all;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 30px 0;
}

:focus-visible {
  outline: 3px solid rgba(57, 136, 245, 0.55);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
}

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

/* ---------------------------------------------------------------- 顶栏 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex: 0 0 auto;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #347ff0, #54b7ff);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.5px;
  flex: 0 0 auto;
}

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

.brand-text strong {
  font-size: 16.5px;
  font-weight: 700;
}

.brand-text small {
  color: var(--muted-2);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.site-nav a {
  color: var(--ink-2);
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  white-space: nowrap;
}

.site-nav a:hover {
  background: var(--brand-wash);
  color: var(--brand);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
}

.header-cta {
  margin-left: auto;
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  padding: 10px 9px;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink-2);
  border-radius: 2px;
}

/* ---------------------------------------------------------------- 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 13px 24px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease,
    transform 0.1s ease;
  text-align: center;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #2f80ef, #2374e8);
  color: #fff;
  box-shadow: 0 6px 18px rgba(35, 116, 232, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2a76e0, #1a5cc0);
  box-shadow: 0 8px 22px rgba(26, 92, 192, 0.32);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-ghost {
  background: #fff;
  color: var(--brand);
  border-color: #bcd4f3;
}

.btn-ghost:hover {
  background: var(--brand-wash);
  border-color: var(--brand-light);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

.btn[disabled],
.btn[aria-disabled="true"],
.btn.is-disabled {
  background: #e8eef7;
  color: #97a6ba;
  border-color: #dde6f2;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 0;
}

/* ---------------------------------------------------------------- 区块 */
.section {
  padding: 72px 0;
}

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

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

.section-head {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 16px;
}

.lead {
  font-size: 17.5px;
  color: var(--ink-2);
}

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

.small {
  font-size: 13.5px;
  line-height: 1.7;
}

/* ---------------------------------------------------------------- 首页首屏 */
.hero {
  padding: 64px 0 56px;
  background:
    radial-gradient(1000px 420px at 78% -8%, rgba(84, 183, 255, 0.22), transparent 62%),
    radial-gradient(760px 380px at 6% 0%, rgba(35, 116, 232, 0.13), transparent 60%),
    linear-gradient(180deg, #f2f8ff 0%, var(--bg) 82%);
  border-bottom: 1px solid var(--line-soft);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: 44px;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 18px;
  color: var(--ink-2);
  margin-bottom: 14px;
}

.hero-extra {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 0;
}

.download-meta {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

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

.download-meta .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b9c9dc;
}

/* 产品截图位 */
.shot {
  margin: 0;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.shot img {
  display: block;
  width: 100%;
}

.shot-placeholder {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 320px;
  padding: 34px 26px;
  margin: 0;
  background:
    repeating-linear-gradient(135deg, #f7fbff 0 14px, #eef6ff 14px 28px);
  color: var(--muted);
}

.shot-placeholder strong {
  color: var(--ink-2);
  font-size: 16px;
}

.shot-placeholder span {
  font-size: 13.5px;
  max-width: 420px;
  line-height: 1.7;
}

.shot.is-ready .shot-placeholder {
  display: none;
}

/* ---------------------------------------------------------------- 卡片 */
.grid {
  display: grid;
  gap: 20px;
}

.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 var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin-bottom: 8px;
  font-size: 17.5px;
}

.card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.feature-card .card-icon {
  margin-bottom: 0;
  flex: 0 0 auto;
}

.feature-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.feature-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
}

/* 本地处理说明 */
.local-panel {
  background: linear-gradient(160deg, #eef7ff 0%, #f7fbff 100%);
  border: 1px solid #cfe3fb;
  border-radius: var(--radius-lg);
  padding: 36px;
}

.local-panel h2 {
  margin-bottom: 14px;
}

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

.local-points li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-2);
  font-size: 15px;
  margin: 0;
}

.local-points li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 7px;
  height: 12px;
  border-right: 2.5px solid var(--ok);
  border-bottom: 2.5px solid var(--ok);
  transform: rotate(42deg);
}

/* 流程步骤 */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 22px;
  margin: 0;
  box-shadow: var(--shadow-sm);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -16px;
  left: 22px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #347ff0, #54b7ff);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(35, 116, 232, 0.3);
}

.steps h3 {
  font-size: 16.5px;
  margin: 12px 0 6px;
}

.steps p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
}

/* 规格清单 */
.spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.spec-list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 0;
  font-size: 15px;
  color: var(--ink-2);
}

.spec-list .mark {
  color: var(--brand);
  font-weight: 800;
  text-align: center;
}

/* 授权卡片 */
.plan-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.plan-card.featured {
  border-color: var(--brand-light);
  box-shadow: var(--shadow);
}

.plan-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.plan-card p {
  color: var(--ink-2);
  font-size: 14.5px;
  flex: 1;
}

.plan-price {
  font-size: 14px;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  margin-top: 6px;
}

.plan-price strong {
  font-size: 24px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-right: 6px;
}

.plan-original {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
}

.plan-note {
  flex: 0 0 auto !important;
  font-size: 13px !important;
  color: var(--muted) !important;
  margin-top: 6px;
}

/* 提示条 */
.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 14.5px;
  line-height: 1.7;
  margin: 0 0 20px;
}

.notice-info {
  background: var(--brand-wash);
  border: 1px solid #cfe3fb;
  color: var(--ink-2);
}

.notice-warn {
  background: var(--warn-soft);
  border: 1px solid #f0d8ae;
  color: #7d4f10;
}

.notice-ok {
  background: var(--ok-soft);
  border: 1px solid #c2e8d9;
  color: #0f6b4d;
}

.notice strong {
  display: block;
}

.notice-icon {
  flex: 0 0 auto;
  font-weight: 800;
  line-height: 1.5;
}

/* 公告条 */
.announce {
  background: linear-gradient(90deg, #fff4d9, #fffaf0);
  border-bottom: 1px solid #f2dfb4;
  color: #7d540f;
  font-size: 14.5px;
  padding: 11px 0;
}

.announce[hidden] {
  display: none;
}

.announce .container {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.announce b {
  flex: 0 0 auto;
}

/* ---------------------------------------------------------------- 版本信息 */
.version-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
}

.version-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 18px;
  margin-bottom: 20px;
}

.version-num {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.version-num .placeholder {
  font-size: 20px;
  font-weight: 700;
  color: var(--warn);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 12px;
  background: var(--brand-soft);
  color: var(--brand);
}

.badge-muted {
  background: #eef2f7;
  color: var(--muted);
}

.badge-warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.meta-table th,
.meta-table td {
  text-align: left;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.meta-table th {
  width: 132px;
  color: var(--muted);
  font-weight: 500;
}

.meta-table td {
  color: var(--ink);
  word-break: break-word;
}

.meta-table tr:last-child th,
.meta-table tr:last-child td {
  border-bottom: 0;
}

.hash-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.hash-line code {
  flex: 1 1 260px;
}

.copy-btn {
  border: 1px solid #c8d8ee;
  background: #fff;
  color: var(--brand);
  border-radius: 7px;
  padding: 5px 12px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  flex: 0 0 auto;
}

.copy-btn:hover {
  background: var(--brand-wash);
}

.release-notes {
  margin-top: 20px;
  background: var(--brand-wash);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 14.5px;
  color: var(--ink-2);
  white-space: pre-wrap;
}

/* ---------------------------------------------------------------- 文档页（帮助 / 法律） */
.page-head {
  padding: 52px 0 34px;
  background: linear-gradient(180deg, #f2f8ff 0%, var(--bg) 90%);
  border-bottom: 1px solid var(--line-soft);
}

.page-head h1 {
  font-size: 34px;
  margin-bottom: 10px;
}

.page-head p {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
}

.doc-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  padding: 44px 0 72px;
}

.doc-toc {
  position: sticky;
  top: 92px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  font-size: 14.5px;
  box-shadow: var(--shadow-sm);
}

.doc-toc h2 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 12px;
}

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

.doc-toc a {
  display: block;
  padding: 6px 10px;
  border-radius: 7px;
  color: var(--ink-2);
  font-size: 14px;
}

.doc-toc a:hover {
  background: var(--brand-wash);
  color: var(--brand);
  text-decoration: none;
}

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

.doc-body h2 {
  font-size: 23px;
  margin-top: 42px;
  padding-top: 8px;
}

.doc-body h2:first-child {
  margin-top: 0;
}

.doc-body h3 {
  font-size: 17.5px;
  margin-top: 28px;
}

.doc-body p,
.doc-body li {
  color: var(--ink-2);
}

.doc-body .card {
  margin-bottom: 16px;
}

.doc-note {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-light);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 18px 0;
  font-size: 14.5px;
  color: var(--ink-2);
}

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

.placeholder-text {
  background: var(--warn-soft);
  border: 1px dashed #e3c489;
  border-radius: 6px;
  padding: 1px 7px;
  color: #8a5a12;
  font-weight: 700;
  white-space: nowrap;
}

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

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 52px 18px 22px;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  list-style: none;
  position: relative;
}

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

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2.5px solid var(--brand-light);
  border-bottom: 2.5px solid var(--brand-light);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.18s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq-item summary:hover {
  background: var(--brand-wash);
}

.faq-item .faq-body {
  padding: 0 22px 20px;
  color: var(--ink-2);
  font-size: 15px;
  border-top: 1px solid var(--line-soft);
  padding-top: 16px;
}

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

/* ---------------------------------------------------------------- 表单 */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 14.5px;
  margin-bottom: 7px;
  color: var(--ink);
}

.field .hint {
  display: block;
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d7e2ef;
  border-radius: 9px;
  padding: 11px 14px;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.7;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #b9cde8;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand-light);
  box-shadow: 0 0 0 3px rgba(57, 136, 245, 0.16);
  outline: none;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: #e2908a;
  background: #fffafa;
}

.field-error {
  display: none;
  color: var(--danger);
  font-size: 13px;
  margin-top: 6px;
}

.field-error.is-visible {
  display: block;
}

.form-status {
  margin-top: 18px;
  font-size: 14.5px;
  border-radius: var(--radius);
  padding: 14px 18px;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.ok {
  background: var(--ok-soft);
  border: 1px solid #c2e8d9;
  color: #0f6b4d;
}

.form-status.warn {
  background: var(--warn-soft);
  border: 1px solid #f0d8ae;
  color: #7d4f10;
}

.required-mark {
  color: var(--danger);
  margin-left: 3px;
}

/* ---------------------------------------------------------------- 页脚 */
.site-footer {
  background: #16273d;
  color: #b8c7db;
  padding: 56px 0 26px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .brand-text strong,
.footer-brand strong {
  color: #fff;
}

.site-footer .brand-mark {
  background: linear-gradient(135deg, #3a86ee, #5fbcff);
}

.footer-brand p {
  margin: 14px 0 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: #93a5bd;
  max-width: 320px;
}

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}

.footer-col a {
  color: #b8c7db;
  font-size: 14px;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  font-size: 13px;
  color: #8b9db6;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: #a9bcd4;
}

.footer-icp:empty {
  display: none;
}

/* ---------------------------------------------------------------- 404 */
.error-page {
  text-align: center;
  padding: 96px 0 110px;
}

.error-code {
  font-size: 76px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #347ff0, #54b7ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 6px;
}

.error-page p {
  color: var(--muted);
}

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 1000px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero h1 {
    font-size: 36px;
  }

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

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

  .doc-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .doc-toc {
    position: static;
  }

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

@media (max-width: 820px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    min-height: 64px;
    padding-top: 11px;
    padding-bottom: 11px;
  }

  .nav-toggle {
    display: flex;
  }

  .header-cta {
    order: 3;
    width: 100%;
    margin: 10px 0 0;
  }

  .site-nav {
    order: 4;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin: 10px 0 0;
    gap: 2px;
  }

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

  .site-nav a {
    padding: 11px 14px;
    border-radius: var(--radius-sm);
  }

  .section {
    padding: 54px 0;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15.5px;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 23px;
  }

  .container {
    padding: 0 18px;
  }

  .hero {
    padding: 40px 0 44px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .steps,
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .local-panel,
  .version-card,
  .form-card {
    padding: 24px 20px;
  }

  .btn-row .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .meta-table th {
    width: 96px;
  }

  .page-head {
    padding: 38px 0 26px;
  }
}

/* ---------------------------------------------------------------- 打印 */
@media print {
  .site-header,
  .site-footer,
  .btn-row,
  .doc-toc,
  .announce {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .doc-layout {
    grid-template-columns: 1fr;
  }
}
