/* GeSole(TM) —— 商业软件，版权所有 | Copyright (c) 2026 GenSpring.
   专有与机密。未经 GenSpring 书面许可，禁止复制、修改或分发。

   设计基调：精密医疗器械 + 专业 CAD——冷调纸白、临床青蓝、细网格、
   毫米刻度与真实产品窗口。大字号高可读；system-ui 字形栈保 14 语全显。 */

:root {
  --bg: #F4F7F5;
  --surface: #FFFFFF;
  --ink: #163034;
  --ink-soft: #526A6D;
  --primary: #0C6B63;
  --primary-deep: #084C47;
  --primary-soft: #DDEDE7;
  --panel: #E7EFEB;
  --line: #CFDDD8;
  --night: #12383B;
  --night-deep: #0D2C2F;
  --night-text: #B8CFCA;
  --mint: #C4E8DC;
  --white: #FFFFFF;
  --focus: #0C6B63;
  --mono: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", "Microsoft YaHei",
          "PingFang SC", "Hiragino Sans", "Malgun Gothic", sans-serif;
  --content: 1160px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;  /* 粘性顶栏遮挡锚点目标的偏移补偿 */
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}

/* 长词安全：德/俄等合成词不撑破容器 */
h1, h2, h3, p, a, button, label, span, li, option, summary {
  overflow-wrap: anywhere;
}
/* 标题仅在单词本身超宽时才允许断词，避免俄/德标题被任意截断 */
h1, h2, h3 { overflow-wrap: break-word; }

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--primary-deep); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--primary-soft); color: var(--night-deep); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---- 粘性顶栏 ---- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(244, 247, 245, 0.90);
  border-bottom: 1px solid rgba(207, 221, 216, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.topbar-inner {
  max-width: var(--content); margin: 0 auto;
  display: flex; align-items: center; gap: 26px;
  padding: 12px 28px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  flex: 0 0 auto;
  color: var(--ink); text-decoration: none;
}
.brand-icon {
  width: 34px; height: 34px;
  fill: var(--primary-soft);
  stroke: var(--primary);
  stroke-width: 1.7;
  stroke-linejoin: round;
}
.brand-icon .brand-arch {
  fill: none;
  stroke: var(--primary-deep);
  stroke-linecap: round;
}
.brand-mark {
  font-size: 22px; font-weight: 750; letter-spacing: 0.01em;
  color: var(--primary-deep);
}
.topnav { display: flex; gap: 4px; margin-left: auto; }
.topnav a {
  color: var(--ink-soft); text-decoration: none; font-weight: 600;
  font-size: 15px; padding: 7px 13px; border-radius: 8px;
}
.topnav a:hover { color: var(--primary-deep); background: var(--primary-soft); }
.lang-box { flex: 0 0 auto; }
.lang-box select {
  font: inherit; font-size: 14px;
  padding: 8px 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink);
  border-radius: 8px; cursor: pointer; max-width: 160px;
}
.lang-box select:hover { border-color: var(--primary); }

/* ---- 按钮 ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  font: inherit; font-weight: 650; font-size: 16px;
  text-decoration: none; text-align: center;
  border-radius: 9px; padding: 12px 24px;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 160ms ease, box-shadow 160ms ease,
              transform 160ms ease;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover {
  background: var(--primary-deep); color: var(--white);
  box-shadow: 0 8px 20px rgba(8, 76, 71, 0.16);
  transform: translateY(-1px);
}
/* 下载闸门禁用态：灰化、不可点（无 href 已断交互，此处视觉强化） */
.btn.is-disabled {
  background: #C7D3CF; color: #536865;
  cursor: default; pointer-events: none;
  box-shadow: none; transform: none;
}
.btn-big { font-size: 17px; padding: 14px 28px; }
.btn-ghost {
  background: transparent; color: var(--primary);
  border: 1px solid var(--line); border-radius: 7px;
  font: inherit; font-size: 14px; padding: 6px 13px; cursor: pointer;
}
.btn-ghost:hover { border-color: var(--primary); }
.btn-ghost:disabled { opacity: 0.5; cursor: default; }

/* ---- Hero：价值主张 + CAD 产品窗口 ---- */
.hero {
  position: relative;
  padding: 96px 28px 100px;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(12, 107, 99, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 107, 99, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center;
}
.hero-inner {
  max-width: var(--content); margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: 72px; align-items: center;
}
.hero-copy { min-width: 0; }
.hero-product-row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero-product-name {
  color: var(--primary-deep);
  font-size: 21px; font-weight: 750; letter-spacing: 0.02em;
}
.hero-version {
  padding-left: 16px; border-left: 1px solid var(--line);
  font-size: 13px; color: var(--ink-soft);
}
.hero-tagline {
  margin: 0 0 22px;
  font-size: clamp(38px, 3.6vw, 50px);
  font-weight: 680;
  line-height: 1.15;
  letter-spacing: -0.028em;
}
.hero-sub {
  margin: 0 0 32px; max-width: 36em;
  color: var(--ink-soft); font-size: 17px; line-height: 1.75;
}
.hero-actions { display: flex; align-items: center; gap: 18px; margin-bottom: 34px; }

/* 毫米刻度尺：毫米级精度的视觉转译 */
.ruler {
  width: min(340px, 100%); height: 16px;
  background-image:
    repeating-linear-gradient(to right,
      var(--ink-soft) 0, var(--ink-soft) 1px, transparent 1px, transparent 10px),
    repeating-linear-gradient(to right,
      var(--ink) 0, var(--ink) 1.5px, transparent 1.5px, transparent 50px);
  background-size: 100% 7px, 100% 16px;
  background-repeat: repeat-x;
  border-bottom: 1.5px solid var(--ink);
  opacity: 0.5;
}
.hero-shot-wrap {
  position: relative; min-width: 0;
  padding: 18px 0 0 18px;
}
.hero-shot-wrap::before {
  content: ""; position: absolute; inset: 0 18px 18px 0;
  border: 1px solid rgba(12, 107, 99, 0.22);
  border-radius: 22px;
}
.shot-frame {
  position: relative; z-index: 1;
  padding: 12px;
  background: var(--night-deep);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(13, 44, 47, 0.17);
}
.shot-frame-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4px 10px;
  color: var(--night-text); font-size: 12px; font-weight: 600;
}
.shot-measure { color: var(--mint); }
.hero-shot {
  width: 100%; margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: var(--night);
}

/* ---- 演示视频：眼见为实 ---- */
#demo { background: var(--surface); }
.demo-wrap {
  position: relative; max-width: 900px; margin: 0 auto;
  padding: 12px;
  background: var(--night-deep);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(13, 44, 47, 0.15);
}
.demo-poster {
  display: block; width: 100%; padding: 0;
  border: none; border-radius: 8px; cursor: pointer;
  background: var(--night); position: relative; overflow: hidden;
}
.demo-poster img {
  width: 100%; height: auto; display: block;
  aspect-ratio: 16 / 9; object-fit: cover;
}
.demo-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(13, 44, 47, 0.35);
  transition: background-color 200ms ease;
}
.demo-poster:hover .demo-play,
.demo-poster:focus-visible .demo-play {
  background: rgba(13, 44, 47, 0.22);
}
.demo-play svg {
  width: 72px; height: 72px; color: var(--white);
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.4));
}
.demo-video {
  width: 100%; display: block;
  border-radius: 8px; background: var(--night);
  aspect-ratio: 16 / 9;
}
@media (prefers-reduced-motion: reduce) {
  .demo-play { transition: none; }
}

/* ---- 分区通用 ---- */
.section { padding: 104px 28px; }
.section-inner { max-width: var(--content); margin: 0 auto; }
.section-alt { background: var(--panel); }
h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.24; letter-spacing: -0.025em;
}
.section-intro {
  margin: 0 0 48px; max-width: 46em;
  color: var(--ink-soft); font-size: 18px; line-height: 1.7;
}

/* ---- 产品：四步真实工序卡 ---- */
#product { background: var(--surface); }
#product h2 { max-width: 23em; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.card {
  position: relative; min-width: 0;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.card-index {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  background: rgba(244, 247, 245, 0.94);
  border: 1px solid rgba(12, 107, 99, 0.25);
  border-radius: 50%;
  color: var(--primary-deep); font-size: 14px; font-weight: 750;
}
.card img {
  width: 100%; margin: 0;
  aspect-ratio: 634 / 481; object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.card-body { padding: 26px 28px 30px; }
.card h3 { margin: 0 0 9px; font-size: 21px; line-height: 1.35; }
.card p { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.7; }

.features {
  list-style: none; margin: 44px 0 0; padding: 30px 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 48px;
  max-width: 920px;
  border-top: 1px solid var(--line);
}
.features li {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--ink); font-size: 15px; line-height: 1.55;
}
.features li::before {
  content: "✓"; flex: 0 0 20px;
  display: grid; place-items: center;
  width: 20px; height: 20px; margin-top: 2px;
  background: var(--primary-soft); border-radius: 50%;
  color: var(--primary-deep); font-size: 12px; font-weight: 750;
}

/* ---- 下载区：深色版本面板 ---- */
#download h2 { margin-bottom: 32px; }
.dl-panel {
  position: relative; min-width: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px 40px;
  padding: 40px;
  overflow: hidden;
  background: var(--night);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 3px solid #79BBA8;
  border-radius: 20px;
  color: #EFF8F5;
}
.dl-meta {
  min-width: 0;
  display: flex; align-items: baseline; gap: 16px 24px; flex-wrap: wrap;
}
.dl-version { font-size: 44px; font-weight: 720; line-height: 1; color: var(--mint); }
.dl-os, .dl-row { font-size: 14px; color: var(--night-text); }
.dl-row span:first-child { margin-right: 4px; }
#download-date, #download-size { color: #EFF8F5; }
.dl-panel .btn-primary { align-self: center; background: var(--mint); color: var(--night-deep); }
.dl-panel .btn-primary:hover { background: var(--white); color: var(--night-deep); }
.dl-panel .btn-primary.is-disabled { background: #526B68; color: #D2DEDA; }
.dl-sha-details {
  grid-column: 1 / -1;
  padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.dl-sha-details summary {
  cursor: pointer; color: #EFF8F5;
  font-size: 16px; font-weight: 650;
}
.dl-sha-details summary:hover { color: var(--mint); }
.dl-sha {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 12px;
  margin-top: 18px;
}
.dl-sha-label { font-size: 14px; color: var(--night-text); }
#download-sha {
  font-family: var(--mono); font-size: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 6px; padding: 8px 10px;
  color: #D5E7E2; word-break: break-all;
}
.dl-panel .btn-ghost { color: var(--mint); border-color: rgba(196, 232, 220, 0.35); }
.dl-panel .btn-ghost:hover { border-color: var(--mint); }
.dl-notes { grid-column: 1 / -1; }
.dl-notes summary {
  cursor: pointer; font-weight: 650; font-size: 16px;
  padding: 4px 0; color: #EFF8F5;
}
.dl-notes p { margin: 10px 0 0; color: var(--night-text); white-space: pre-line; }
.dl-fallback {
  grid-column: 1 / -1;
  margin: 0; font-size: 15px; color: #F4D7A1;
  background: #4A381F; border: 1px solid #7A5B2E;
  border-radius: 7px; padding: 10px 14px;
}
.dl-manual { grid-column: 1 / -1; margin: 0; font-size: 15px; }
.dl-manual a { color: var(--mint); }

/* ---- 反馈区：说明与表单双栏 ---- */
#feedback .section-inner {
  display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 80px; align-items: start;
}
.feedback-copy { min-width: 0; }
.feedback-copy .section-intro { margin-bottom: 0; }
.fb-form {
  min-width: 0; max-width: none;
  display: flex; flex-direction: column; gap: 22px;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 46px rgba(22, 48, 52, 0.05);
}
.fb-row {
  display: flex; flex-direction: column; gap: 7px;
  color: var(--ink); font-weight: 650; font-size: 15px;
}
.fb-row select, .fb-row textarea, .fb-row input {
  font: inherit; font-size: 16px; font-weight: 400;
  padding: 11px 13px;
  border: 1px solid #C5D6D0; border-radius: 8px;
  background: #FBFCFB; color: var(--ink);
  width: 100%;
}
.fb-row select:focus, .fb-row textarea:focus, .fb-row input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(12, 107, 99, 0.10);
  outline: none;
}
.fb-row textarea { resize: vertical; min-height: 120px; }
.fb-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 2px; }
.fb-status { font-size: 15px; }
.fb-status.ok { color: var(--primary-deep); font-weight: 650; }
.fb-status.err { color: #9C3D20; font-weight: 650; }

/* 蜜罐：视觉与键盘均不可达 */
.hp-field {
  position: absolute; left: -9999px; top: -9999px;
  height: 1px; width: 1px; overflow: hidden;
}

/* ---- 页脚 ---- */
.footer {
  padding: 24px 28px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-size: 14px; color: var(--ink-soft);
}
.footer-inner {
  display: flex; justify-content: space-between; gap: 14px 22px; flex-wrap: wrap;
}
.footer a { color: var(--ink-soft); }
.footer a:hover { color: var(--primary); }

/* ---- 中屏：首屏与反馈转单列 ---- */
@media (max-width: 1020px) {
  .hero-inner { gap: 38px; }
  .hero-tagline { font-size: clamp(36px, 4.6vw, 48px); }
  .features { grid-template-columns: 1fr 1fr; }
  #feedback .section-inner { gap: 36px; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 128px; }
  .topbar-inner { gap: 10px 16px; flex-wrap: wrap; }
  .topnav { order: 3; width: 100%; margin-left: 0; justify-content: flex-start; }
  .lang-box { margin-left: auto; }
  .hero { padding: 58px 24px 66px; }
  .hero-inner { grid-template-columns: 1fr; gap: 42px; }
  .hero-copy { max-width: 720px; }
  .hero-shot-wrap { max-width: 760px; }
  .section { padding: 68px 24px; }
  .dl-panel { grid-template-columns: 1fr; }
  .dl-panel #download-btn { justify-self: start; }
  #feedback .section-inner { grid-template-columns: 1fr; }
  .feedback-copy .section-intro { margin-bottom: 0; }
}

/* ---- 窄屏：全部单列 ---- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar-inner { gap: 10px 16px; flex-wrap: wrap; padding: 10px 20px; }
  .topnav { order: 3; width: 100%; margin-left: 0; justify-content: space-between; }
  .topnav a { padding: 6px 10px; }
  .lang-box { margin-left: auto; }
  .hero { padding: 52px 20px 64px; background-size: 44px 44px; }
  .hero-tagline { font-size: 36px; }
  .hero-sub { font-size: 16px; }
  .hero-shot-wrap { padding: 12px 0 0 12px; }
  .shot-frame { padding: 8px; border-radius: 13px; }
  .section { padding: 64px 20px; }
  .cards { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .card-body { padding: 20px; }
  .dl-panel { padding: 24px 20px; border-radius: 15px; }
  .dl-version { font-size: 38px; }
  .dl-sha { grid-template-columns: 1fr; }
  .dl-sha .btn-ghost { justify-self: start; }
  .fb-form { padding: 22px 18px; }
  .footer-inner { flex-direction: column; }
}

/* ---- 条款页（terms.html / privacy.html，2026-10-14 上架） ---- */
.legal-page { padding: 40px 24px 64px; }
.legal-version {
  margin: 0 0 28px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg, #f6f7f4); font-size: 15px; color: var(--ink-soft);
}
.legal-page article { max-width: 820px; margin: 0 auto; line-height: 1.9; font-size: 16px; }
.legal-page h1 { font-size: 30px; margin: 0 0 24px; }
.legal-page h2 { font-size: 20px; margin: 32px 0 10px; }
.legal-page p { margin: 8px 0; }
.legal-page a { color: var(--ink); }

/* 法律页双语显隐（terms/privacy，2026-10-14 审查 #10 补）：
   默认含无 JS 只显英文；html[lang=zh] 时只显中文。脚本仅改 html 的 lang
   属性——显隐全交给 CSS，无 JS 双语堆叠不可能发生。 */
.legal-page [lang="zh"], .footer-legal [lang="zh"] { display: none; }
html[lang="zh"] .legal-page [lang="zh"],
html[lang="zh"] .footer-legal [lang="zh"] { display: revert; }
html[lang="zh"] .legal-page [lang="en"],
html[lang="zh"] .footer-legal [lang="en"] { display: none; }
