/* 首页独立排版；法律与支持页面继续使用原有公共样式。 */
body.home-page {
  --paper: #fffefa;
  --ink: #202b33;
  --muted: #5d6b75;
  --line: #e0e6ea;
  --accent: #28688e;
  --wash: #f6f8fa;
  margin: 0;
  background: radial-gradient(ellipse at 50% 0%, #e9f5ff 0%, transparent 60%) 0 0 / 100% 900px no-repeat, linear-gradient(170deg, #e9f5ff 0%, #f6fbff 43%, #fffefa 100%) 0 0 / 100% 900px no-repeat, #fffefa;
  color: var(--ink);
  font-family: "Avenir Next", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.home-page [hidden] { display: none !important; }
.home-page a:focus-visible, .home-page button:focus-visible, .home-page summary:focus-visible, .home-page [tabindex="0"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.home-page h1, .home-page h2, .home-page h3, .home-page h4 { margin: 0; font-family: inherit; font-weight: 600; letter-spacing: -.025em; }
.home-page h2 { font-size: clamp(32px, 3vw, 42px); line-height: 1.3; letter-spacing: -.04em; }
.home-page h3 { font-size: 25px; line-height: 1.4; }
.home-page h4 { font-size: 17px; line-height: 1.6; }
.home-page .page-width { width: min(1240px, calc(100% - 112px)); margin-inline: auto; }
.home-header { display: flex; align-items: center; gap: 36px; min-height: 104px; }
.home-brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; font-size: 23px; font-weight: 650; letter-spacing: -.045em; }
.home-brand img { display: block; object-fit: contain; border-radius: 8px; }
.home-nav { display: flex; gap: 34px; margin-left: auto; font-size: 15px; color: var(--muted); }
.home-nav a { display: flex; align-items: center; min-height: 44px; }
.home-nav a:hover, .home-legal a:hover { color: var(--accent); }
.home-language { padding: 8px 0 8px 18px; min-height: 44px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 13px; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr); align-items: center; gap: 56px; padding-block: 64px 92px; }
.home-page .home-hero h1 { font-size: clamp(50px, 6.2vw, 82px); font-weight: 650; line-height: 1.16; letter-spacing: -.055em; }
.hero-command { display: flex; flex-wrap: wrap; }
.hero-command > span { display: block; }
.hero-lead { max-width: 520px; margin-top: 32px; color: var(--muted); font-size: 20px; line-height: 1.8; }
.home-page .hero-actions { display: flex; align-items: center; gap: 29px; flex-wrap: wrap; margin-top: 34px; }
.home-button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 12px 26px; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: white; font-size: 16px; font-weight: 500; }
.home-button:hover { background: #215877; }
.text-action { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--muted); text-decoration: underline; text-decoration-color: #bdc8d0; text-underline-offset: 5px; }
.hero-platforms { margin-top: 23px; font-size: 13px; color: var(--muted); }
/* 沿用旧首页的设备示意，背景和终端样式来自公共样式。 */
.home-page .workspace-visual { width: 100%; height: 560px; margin: 0; }
.home-page .workspace-window { top: 31px; width: 88%; }
.home-page .phone-window { top: 170px; right: 0; width: 210px; }
.home-page .workspace-visual figcaption { bottom: -2px; font-size: 11px; }
.architecture-section, .install-section, .supported-section { padding-block: 76px; border-top: 1px solid var(--line); }
.section-heading > p { max-width: 760px; margin-top: 17px; color: var(--muted); font-size: 18px; line-height: 1.8; }
.architecture-figure { margin: 39px 0 0; }
/* 设备轮廓表达部署位置，蓝线只连接持有密钥的 App 与 Link。 */
.architecture-art { display: block; width: 100%; height: auto; }
.architecture-narrow { display: none; }
.architecture-art text { font-family: inherit; }
.computer-enclosure { fill: #f1f7fb; stroke: #b9ccda; stroke-width: 1.5; }
.computer-stand { fill: none; stroke: #a6bdcd; stroke-width: 1.7; stroke-linecap: round; }
.phone-enclosure { fill: white; stroke: #88a6bc; stroke-width: 1.6; }
.phone-detail { fill: none; stroke: #b5c9d7; stroke-width: 2.5; stroke-linecap: round; }
.link-badge { fill: white; stroke: #d2e0e9; stroke-width: 1.2; }
.relay-rack { fill: #fffefa; stroke: #aabcc8; stroke-width: 1.3; }
.relay-rack path { stroke: #d0dce4; }
.relay-rack circle { fill: #d0dce4; stroke: none; }
.secure-route { fill: none; stroke: #397ca5; stroke-width: 2.2; stroke-linecap: round; }
.secure-anchor { fill: #397ca5; }
.secure-route-label { fill: #28688e; font-size: 16px; font-weight: 600; }
.diagram-key, .diagram-lock { fill: none; stroke: #397ca5; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.message-route { fill: none; stroke: #a6bdcc; stroke-width: 1.4; }
.local-route { stroke: #adbcc7; }
.diagram-label { fill: #253b49; font-size: 19px; font-weight: 500; }
.diagram-caption { fill: #738b9c; font-size: 13px; }
.computer-caption { fill: #5c788d; font-size: 14px; }
.local-caption { font-size: 11px; }
.agent-terminal { fill: #203e53; }
.terminal-frame-line { fill: none; stroke: #476379; stroke-width: 1; }
.terminal-glyph { fill: none; stroke: #c3ddeb; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.terminal-code-lines { fill: none; stroke: #66879c; stroke-width: 1.2; stroke-linecap: round; }
.architecture-notes { margin-top: 25px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.architecture-notes summary { width: fit-content; cursor: pointer; }
.privacy-details-body { max-width: 900px; margin-top: 15px; }
.architecture-notes p + p { margin-top: 6px; }
.safety-baseline { margin-top: 8px; }
.safety-baseline ol { margin: 0 0 9px; padding-inline-start: 1.45em; }
.safety-baseline li + li { margin-top: 4px; }
.safety-baseline a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.installation-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.installation-layout > article { min-width: 0; padding: clamp(16px, 2.4vw, 28px); border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.installation-purpose { margin-top: 4px; color: var(--muted); font-size: 14px; }
.app-downloads { margin: 14px 0 16px; font-size: 15px; }
.app-downloads > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-block: 8px; border-bottom: 1px solid var(--line); }
.app-downloads > .app-store-download { gap: 11px; padding-block: 11px; }
.app-downloads dt { font-weight: 500; }
.app-downloads dd { margin: 0; color: var(--muted); font-size: 13px; text-align: right; }
.app-store-link { display: block; }
.app-store-link img { display: block; width: auto; height: 44px; }
html[data-language="zh"] .app-store-link img[lang="en"],
html[data-language="en"] .app-store-link img[lang="zh-CN"] { display: none; }
.pairing-instructions ol { display: grid; gap: 5px; margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.pairing-instructions li { padding-left: 4px; }
.installation-panel { margin-top: 15px; }
.installation-header { font-size: 15px; }
.install-requirements { margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.command-block, .small-command { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 11px 10px 15px; border: 1px solid var(--line); border-radius: 5px; background: var(--wash); }
.command-block { margin-top: 9px; }
.installation-panel code, .pairing-instructions code { min-width: 0; font: 14px/1.8 "SFMono-Regular", Consolas, monospace; color: #25465a; overflow-wrap: anywhere; user-select: all; }
.copy-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 40px; flex-shrink: 0; padding: 7px 9px; border: 1px solid #d8e0e6; border-radius: 4px; background: #fff; color: var(--muted); font-size: 12px; }
.copy-button:hover { background: #eef3f6; }
.copy-button .icon { width: 13px; height: 13px; }
.platform-tabs, .support-tabs { display: flex; gap: 24px; margin-top: 13px; border-bottom: 1px solid var(--line); }
.platform-tabs button, .support-tabs button { min-height: 44px; margin-bottom: -1px; padding: 8px 3px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 15px; }
.platform-tabs button[aria-selected="true"], .support-tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.platform-panel { padding-top: 10px; }
.home-page .platform-panel h3 { font-size: 17px; font-weight: 500; }
.platform-panel p { margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.platform-panel .terminal-alternative { margin-top: 8px; font-size: 13px; }
.small-command { margin-top: 6px; padding-block: 5px; }
.copy-feedback { min-height: 18px; margin-top: 8px; font-size: 11px; line-height: 1.7; color: var(--accent); }
.online-note { margin-top: 15px; font-size: 13px; color: var(--muted); line-height: 1.65; }
.documentation-entry { margin-top: 8px; font-size: 14px; }
.documentation-entry a { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.inline-link, .cli-source a, .support-download-links a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.inline-link { display: inline-flex; gap: 7px; align-items: center; min-height: 40px; }
.support-tabs { margin-top: 16px; }
.support-tabs button { min-width: 74px; }
.support-panel { margin-top: 12px; }
.support-table { width: 100%; border-spacing: 0; text-align: left; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.support-table th, .support-table td { padding: 9px 10px; text-align: left; vertical-align: middle; }
.support-table thead th { background: #eef5f8; color: var(--ink); font-weight: 600; }
.support-table tbody td { color: var(--muted); }
.desktop-table tbody tr > * { border-bottom: 1px solid var(--line); }
.desktop-table tbody th { width: 23%; }
.tool-name { font-weight: 600; }
.tool-version { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 400; }
.support-download-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.cli-source { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 14px; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.cli-source strong { color: var(--ink); }
.cli-source a { display: inline-flex; align-items: center; min-height: 40px; }
.cli-table { display: block; }
.table-heading-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cli-table tbody { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 18px; }
.cli-table tr { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; gap: 3px 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.cli-table th, .cli-table td { padding: 0; }
.home-footer { padding-block: 25px; border-top: 1px solid var(--line); }
.footer-top { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-top .home-brand { font-size: 18px; }
.footer-message { font-size: 12px; color: var(--muted); }
.home-legal { display: flex; flex-wrap: wrap; gap: 23px; margin-left: auto; color: var(--muted); font-size: 12px; }
.home-legal a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 15px; margin-top: 21px; color: #75818a; font-size: 10px; line-height: 1.9; }
.home-filings { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.home-filings a { display: inline-flex; align-items: center; gap: 5px; }
html[data-language="en"] .home-page .home-hero h1 { font-size: clamp(46px, 5.2vw, 74px); line-height: 1.12; }
html[data-language="en"] .hero-command { column-gap: .2em; }
@media (max-width: 960px) {
  .home-page .page-width { width: calc(100% - 56px); }
  .home-header { gap: 24px; }
  .home-nav { gap: 24px; }
  .home-hero { gap: 30px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); padding-block: 50px 70px; }
  .home-page .workspace-visual { height: 535px; }
  .home-page .workspace-window { width: 97%; }
  .home-page .phone-window { top: 170px; width: 190px; }
  .home-page .home-hero h1 { font-size: clamp(44px, 5.8vw, 58px); }
  .hero-lead { font-size: 18px; }
  .footer-message { display: none; }
}
@media (max-width: 850px) {
  .desktop-table, .desktop-table tbody { display: block; }
  .desktop-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .desktop-table tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px 10px; padding-block: 8px; border-bottom: 1px solid var(--line); }
  .desktop-table tbody tr > * { padding: 0; border: 0; }
  .desktop-table tbody th { width: auto; grid-column: 1 / -1; }
  .desktop-table td[data-column-title]::before { content: attr(data-column-title); display: block; color: var(--ink); font-size: 11px; }
  .desktop-table td[data-i18n-column="matrixDownloads"] { grid-column: 1 / -1; }
  .cli-table tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .home-page .page-width { width: calc(100% - 40px); }
  .home-header { gap: 18px; flex-wrap: wrap; padding-top: 13px; }
  .home-brand { font-size: 20px; }
  .home-language { margin-left: auto; }
  .home-nav { order: 3; justify-content: flex-start; flex-wrap: wrap; gap: 0 22px; width: 100%; margin: 0; padding-bottom: 5px; font-size: 13px; }
  .home-hero { grid-template-columns: 1fr; gap: 45px; padding-block: 48px 52px; }
  .home-page .home-hero h1 { font-size: clamp(46px, 10.5vw, 72px); }
  html[data-language="en"] .home-page .home-hero h1 { font-size: clamp(38px, 8.4vw, 62px); }
  .hero-lead { max-width: 520px; margin-top: 24px; font-size: 17px; }
  .home-page .workspace-visual { width: min(100%, 460px); height: 515px; margin-inline: auto; }
  .home-page .workspace-window { top: 20px; width: 88%; }
  .home-page .phone-window { top: 133px; right: 5px; width: 190px; }
  .architecture-section, .install-section, .supported-section { padding-block: 48px; }
  .home-page h2 { font-size: 32px; }
  .section-heading > p { font-size: 16px; }
  .architecture-figure { margin-top: 24px; }
  .architecture-wide { display: none; }
  .architecture-narrow { display: block; width: min(430px, 100%); margin-inline: auto; }
  .architecture-notes { font-size: 12px; }
  .installation-layout { grid-template-columns: 1fr; gap: 14px; margin-top: 18px; }
  .support-table { font-size: 13px; }
  .cli-table tr { grid-template-columns: 1fr; }
  .footer-top { gap: 9px 20px; }
  .home-legal { margin-left: 0; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 380px) {
  .home-page .page-width { width: calc(100% - 32px); }
  .command-block { flex-wrap: wrap; }
  .command-block .copy-button { margin-left: auto; }
  .installation-panel code, .pairing-instructions code { font-size: 12px; }
  .home-page .home-hero h1 { font-size: 46px; }
  .home-page .workspace-visual { height: 540px; }
  .home-page .workspace-window { width: 95%; }
  .home-page .phone-window { top: 160px; width: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home-page *, .home-page *::before, .home-page *::after { transition: none !important; animation: none !important; }
}
