:root {
  --ink: #111b30;
  --white: #f1f5ff;
  --muted: #4c5c76;
  --blue: #2857ed;
  --blue-hover: #1646df;
  --line: #d4ddec;
  --gutter: clamp(23px, 4.3vw, 67px);
  --shell: 1440px;
  --sans: Inter, "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--white);
  background: #0b0d0f;
  font-family: var(--sans);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 280px; margin: 0; }
button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, figure, ol, fieldset, blockquote { margin: 0; }
:focus-visible { outline: 2px solid #6489ff; outline-offset: 4px; }
.shell { width: min(var(--shell), 100% - 2 * var(--gutter)); margin-inline: auto; }
.visually-hidden { position: absolute; clip-path: inset(50%); overflow: hidden; width: 1px; height: 1px; white-space: nowrap; }
.skip-link { position: fixed; z-index: 5; top: 10px; left: 10px; padding: 12px 18px; color: white; background: var(--blue); transform: translateY(calc(-100% - 12px)); }
.skip-link:focus { transform: none; }
#about, #approach, #workflow, #company { scroll-margin-top: 18px; }

.site-header { position: relative; z-index: 2; border-bottom: 1px solid #24262a; }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 76px; gap: 20px; }
.brand { display: inline-flex; align-items: center; justify-self: start; gap: 11px; white-space: nowrap; }
.brand-mark { display: block; width: 44px; height: 44px; background: currentColor; mask: url("/images/qingtong-mark.png") center / contain no-repeat; }
.brand strong { font-size: clamp(21px, 1.8vw, 28px); line-height: 1; font-weight: 680; letter-spacing: .035em; }
.header-nav { display: flex; align-items: center; justify-content: center; gap: clamp(24px, 4vw, 64px); }
.header-nav a { padding-block: 12px; font-size: clamp(15px, 1.17vw, 18px); font-weight: 540; white-space: nowrap; transition: color .18s ease; }
.header-action { justify-self: end; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 53px;
  padding: 0 21px;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
.button svg { flex: none; width: 19px; height: 19px; }
.button-primary { background: var(--blue); color: white; }
.button-primary:hover { background: var(--blue-hover); }
.button-outline { border-color: #7a7d82; background: transparent; color: currentColor; }
.button.header-action { min-height: 43px; font-size: 15px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; min-height: 91px; padding-block: 20px; font-size: 13px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 7px 21px; }
.legal-links a { white-space: nowrap; }

.light-page { color-scheme: light; min-height: 100dvh; display: flex; flex-direction: column; background: #f8faff; color: var(--ink); }
.light-page .site-header, .light-page .site-footer { background: white; border-color: var(--line); }
.light-page .site-footer { margin-top: auto; border-top: 1px solid var(--line); }
.light-page :is(.header-nav a, .footer-inner) { color: var(--muted); }
.light-page :is(.header-nav a, .legal-links a):hover { color: #1746cd; }
.light-page .brand-mark { color: #214cc7; }
.light-page .button-outline { color: #1746cd; border-color: #9aafd8; background: white; }
.light-page .button-outline:hover { color: #1038aa; background: #eef3ff; }

@media (max-width: 740px) {
  .header-inner { grid-template-columns: 1fr auto; min-height: auto; gap: 0 10px; padding-top: 7px; }
  .brand { gap: 6px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand strong { font-size: 20px; }
  .header-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: clamp(14px, 4.8vw, 24px); }
  .header-nav a { font-size: 13px; padding-block: 10px 12px; }
  .button.header-action { grid-column: 2; grid-row: 1; min-height: 37px; padding-inline: 12px; font-size: 13px; }
  .button { min-height: 46px; border-radius: 6px; padding-inline: 15px; }
  .button svg { width: 17px; height: 17px; }
  .footer-inner { align-items: flex-start; flex-direction: column; min-height: 0; font-size: 11px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
