/* 上海知适医疗科技有限公司 — 公司介绍页 */
:root {
  --mint: #0ff5c8;
  --mint-light: #a0ffe6;
  --mint-soft: #0ff5c81a;
  --mint-ink: #06211c;
  --ink: #fff;
  --ink-2: #ffffffc7;
  --ink-3: #9ba5af;
  --ink-4: #ffffff47;
  --rule: #fff3;
  --rule-strong: #fff6;
  --surface: #ffffff0a;
  --surface-2: #ffffff0f;
  --topbar: #323232;
  --btn-ink: #06211c;
  --radius: 6px;
  --stroke: 0.6px;
  --font-sans: "Noto Sans SC", "Noto Sans CJK SC", "PingFang SC", "Hiragino Sans GB", "HarmonyOS Sans",
    "Microsoft YaHei", system-ui, sans-serif;
  --font-serif: "Noto Serif SC", "Noto Serif CJK SC", "Songti SC", "Source Han Serif SC", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --bg-hero: linear-gradient(90deg, #0b100e 0%, #0b1b14 25%, #0b221b 50%, #0b2824 75%, #0b2926 100%);
  --bg-page: linear-gradient(-45deg, #002c21 0%, #0f2520 26%, #1e1e1e 50%);
  --shell: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
  --topbar-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-page);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.02em;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.lang-en { display: none; }
html:has(#lang-en:checked) .lang-zh { display: none; }
html:has(#lang-en:checked) .lang-en { display: revert; }
html:has(#lang-en:checked) body { letter-spacing: 0.01em; }

a {
  color: var(--mint-light);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--mint); }
a:focus-visible,
button:focus-visible,
label:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

.wrap {
  width: min(100%, calc(var(--shell) + var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* —— Top bar —— */
.site-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--topbar-h);
  background: var(--topbar);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.brand:hover { color: inherit; }

.brand-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 1.5px solid var(--mint);
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--mint);
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}

.wordmark {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}
html:has(#lang-en:checked) .wordmark {
  letter-spacing: 0;
  font-weight: 700;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.lang-switch label {
  cursor: pointer;
  user-select: none;
  margin: 0;
  border-radius: var(--radius);
  min-height: 32px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.8px;
  line-height: 20px;
  color: var(--ink-2);
  border: var(--stroke) solid transparent;
}

.lang-switch label:hover {
  color: #fff;
  background: #ffffff14;
}

html:has(#lang-zh:checked) .lang-switch label[for="lang-zh"],
html:has(#lang-en:checked) .lang-switch label[for="lang-en"] {
  background: var(--mint);
  color: var(--btn-ink);
  border-color: var(--mint);
}

/* —— Hero —— */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100vh - var(--topbar-h));
  background: var(--bg-hero);
  display: flex;
  align-items: center;
  padding: 88px 0 96px;
}

.hero-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-texture::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0b100e 0%, #0b100ecc 22%, transparent 62%);
}

.hero-texture svg {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: min(820px, 72vw);
  height: auto;
  opacity: 0.85;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 920px);
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.28;
  letter-spacing: 1px;
}
html:has(#lang-en:checked) .hero h1 {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.5px;
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1.25;
}

.hero .legal-sub {
  margin: 14px 0 0;
  color: var(--ink-2);
  font-size: clamp(16px, 1.6vw, 20px);
  letter-spacing: 0.5px;
  line-height: 1.5;
}

.lead {
  margin: 28px 0 0;
  max-width: 42rem;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 30px;
  letter-spacing: 0.5px;
}

.hero-meta {
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--ink-3);
  font-size: 13px;
  letter-spacing: 0.4px;
}
.hero-meta .mono {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--mint-light);
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}
.hero-meta .sep {
  color: var(--ink-4);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 48px;
  min-height: 40px;
  padding: 8px 22px;
  border-radius: var(--radius);
  background: var(--mint);
  color: var(--btn-ink);
  border: var(--stroke) solid var(--mint);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  background: var(--mint-light);
  border-color: var(--mint-light);
  color: var(--btn-ink);
}
.btn:active {
  background: var(--mint);
  color: var(--btn-ink);
}

/* —— Content —— */
.content {
  position: relative;
  background: var(--bg-page);
  padding: 72px 0 24px;
}

.content section {
  padding: 0 0 64px;
}

.content h2 {
  margin: 0 0 18px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.4;
}
html:not(:has(#lang-en:checked)) .content h2 {
  letter-spacing: 0.22em;
  text-transform: none;
}

.narrow { width: min(100%, 760px); }

.prose p {
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.85;
}

.work-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.work-list li {
  background: var(--surface);
  border: var(--stroke) solid var(--rule);
  border-radius: var(--radius);
  padding: 18px 20px 18px 22px;
  border-left: 2px solid var(--mint);
}

.work-list h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.work-list p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.7;
}

.notice {
  background: var(--surface);
  border: var(--stroke) solid color-mix(in srgb, var(--mint) 22%, var(--rule));
  border-radius: var(--radius);
  padding: 16px 18px;
}

.notice p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.75;
}

.facts-card {
  background: var(--surface);
  border: var(--stroke) solid var(--rule);
  border-radius: var(--radius);
  padding: 8px 4px;
}

.facts {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(7.5rem, 10.5rem) 1fr;
  gap: 0;
}

.facts dt,
.facts dd {
  margin: 0;
  padding: 14px 20px;
  border-top: var(--stroke) solid var(--rule);
}
.facts dt:first-of-type,
.facts dt:first-of-type + dd {
  border-top: 0;
}

.facts dt {
  color: var(--ink-3);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.facts dd {
  color: #fff;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.facts .mono,
.mono {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  font-weight: 400;
}

/* —— Footer —— */
.site-footer {
  border-top: var(--stroke) solid var(--rule);
  padding: 40px 0 56px;
  background: #0b100e;
  color: var(--ink-3);
  font-size: 13.5px;
  line-height: 1.7;
}

.site-footer .legal-name {
  margin: 0 0 2px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}
.site-footer .legal-name.en {
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 12px;
}

.site-footer p { margin: 0 0 2px; }

.footer-meta {
  margin-top: 22px;
  padding-top: 18px;
  border-top: var(--stroke) solid var(--rule);
  font-size: 12.5px;
  color: var(--ink-4);
}

@media (max-width: 720px) {
  .hero {
    min-height: 0;
    padding: 56px 0 64px;
    align-items: flex-start;
  }
  .hero h1 {
    font-size: 28px;
    letter-spacing: 0.4px;
  }
  html:has(#lang-en:checked) .hero h1 {
    font-size: 26px;
    letter-spacing: 0;
  }
  .hero-texture svg {
    right: -28%;
    width: 140%;
    opacity: 0.4;
  }
  .hero-texture::after {
    background: linear-gradient(90deg, #0b100e 0%, #0b100ee6 18%, transparent 70%);
  }
  .lead { font-size: 16px; line-height: 1.7; margin-top: 22px; max-width: none; }
  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .hero-meta .sep { display: none; }
  .btn { margin-top: 32px; width: auto; }
  .content { padding-top: 48px; }
  .content section { padding-bottom: 48px; }
  .facts { grid-template-columns: 1fr; }
  .facts dt,
  .facts dd { padding: 0 18px; }
  .facts dt { padding-top: 14px; }
  .facts dd { padding-bottom: 14px; border-top: 0; }
  .facts dt:first-of-type { padding-top: 16px; }
  .facts dd:last-of-type { padding-bottom: 16px; }
}

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

@media print {
  :root { color-scheme: light; }
  body { background: #fff; color: #111; }
  .hero-texture, .lang-switch { display: none !important; }
  .site-topbar, .hero, .content, .site-footer, .facts-card, .work-list li, .notice {
    background: #fff;
    color: #111;
  }
  .hero, .content, .site-footer { min-height: 0; }
  h1, h2, h3, .wordmark, .facts dd, .site-footer .legal-name { color: #111 !important; }
  a { color: inherit; }
}
