/* Above-the-fold critical styles — inlined as a blocking, tiny stylesheet
   so the first paint is correct while main.css loads asynchronously. */
:root {
  --brand: #0165ff;
  --brand-2: #00beff;
  --brand-soft: #e7f0ff;
  --ink: #0b1b33;
  --ink-2: #44546a;
  --line: #e3e8f0;
  --bg-dark: #071529;
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1240px;
  --header-h: 76px;
  --font: "Inter", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: #fff;
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 700; }
p { margin: 0; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid rgba(11, 27, 51, .08); transition: background .3s ease, border-color .3s ease;
}
.site-header.solid { background: rgba(255, 255, 255, .97); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }

/* English site: keep only the English MATRIX mark, crop the Chinese line away */
html[lang="en"] .brand img { width: 107px; height: 21px; object-fit: cover; object-position: top; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; font-size: 13px;
  font-weight: 600; color: var(--ink-2); font-family: inherit; cursor: pointer;
}
.nav-toggle { display: none; width: 40px; height: 40px; border: 0; background: transparent; padding: 0; }
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--ink); border-radius: 2px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(1, 101, 255, .28); }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }

/* home hero */

/* 与 main.css 保持一致，避免首屏绘制后再跳一次 */
.hero {
  position: relative; display: flex; align-items: center;
  padding: calc(var(--header-h) + 24px) 0 44px; color: #fff; overflow: hidden;
  background:
    radial-gradient(900px 520px at 86% 8%, rgba(1, 101, 255, .34), transparent 62%),
    radial-gradient(700px 440px at 6% 92%, rgba(0, 190, 255, .16), transparent 60%),
    linear-gradient(152deg, #04203f 0%, #071b33 46%, #04122a 100%);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; width: 100%; }
.hero h1 { font-size: clamp(28px, 4.4vw, 54px); margin-bottom: 16px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--brand-2); }
.hero-sub { font-size: 17.5px; line-height: 1.7; color: rgba(255, 255, 255, .82); max-width: 620px; margin-bottom: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--brand-2); border-radius: 2px; }

/* inner page hero */
.page-hero {
  position: relative; padding: calc(var(--header-h) + 46px) 0 46px;
  background: linear-gradient(140deg, #04203f 0%, #0a3a72 60%, #0165ff 130%); color: #fff; overflow: hidden;
}
.page-hero-inner { position: relative; z-index: 2; max-width: 860px; }
.page-hero h1 { font-size: clamp(27px, 3.6vw, 42px); margin-bottom: 12px; }
.page-hero p { font-size: 17.5px; color: rgba(255, 255, 255, .8); }
.breadcrumb { display: flex; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .6); margin-bottom: 16px; }

.site-footer { background: var(--bg-dark); min-height: 40vh; }

@media (max-width: 1080px) {
.hero-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 860px) {
.nav-toggle { display: block; }
.main-nav { display: none; }
.hero { padding: calc(var(--header-h) + 20px) 0 40px; }
}
