:root {
  color-scheme: dark;
  --bg: #05070c;
  --panel: rgba(11, 18, 30, 0.76);
  --panel-strong: rgba(8, 13, 23, 0.94);
  --line: rgba(127, 232, 255, 0.24);
  --text: #f4fbff;
  --muted: rgba(244, 251, 255, 0.66);
  --cyan: #61f3ff;
  --green: #8cffc7;
  --pink: #ff4fd8;
  --amber: #ffd36c;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(97, 243, 255, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(97, 243, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 18% 12%, rgba(255, 79, 216, 0.16), transparent 28%),
    radial-gradient(circle at 76% 8%, rgba(140, 255, 199, 0.14), transparent 30%),
    var(--bg);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  color: var(--text);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.lang {
  display: inline;
}

body[data-lang="zh"] .lang-en,
body[data-lang="en"] .lang-zh {
  display: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 7, 12, 0.72);
  backdrop-filter: blur(18px);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2.5vw, 28px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 24px rgba(97, 243, 255, 0.28);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.nav-links a:hover {
  color: var(--cyan);
}

.lang-toggle {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 156px;
  height: 64px;
  border: 2px solid rgba(92, 113, 151, 0.34);
  border-radius: 999px;
  padding: 6px;
  color: rgba(244, 251, 255, 0.68);
  background:
    linear-gradient(180deg, rgba(24, 31, 52, 0.92), rgba(13, 17, 32, 0.92));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 12px 30px rgba(0, 0, 0, 0.34);
  cursor: pointer;
}

.lang-toggle::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc(50% - 6px);
  height: calc(100% - 12px);
  border-radius: 999px;
  background: linear-gradient(135deg, #8f45ff, #d447ff);
  box-shadow: 0 8px 24px rgba(183, 66, 255, 0.42);
  transition: transform 220ms ease;
}

body[data-lang="en"] .lang-toggle::before {
  transform: translateX(100%);
}

.lang-option {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

body[data-lang="zh"] .lang-option.zh,
body[data-lang="en"] .lang-option.en {
  color: #fff;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(28px, 5vw, 64px);
  min-height: 92vh;
  padding: 128px clamp(18px, 5vw, 72px) 76px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 130px;
  pointer-events: none;
  background: linear-gradient(0deg, var(--bg), transparent);
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.75;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(97, 243, 255, 0.13) 42% 42.3%, transparent 42.3%),
    linear-gradient(64deg, transparent 0 57%, rgba(255, 211, 108, 0.13) 57% 57.3%, transparent 57.3%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.core-title {
  margin-bottom: 22px;
  font-size: clamp(58px, 9vw, 136px);
  line-height: 0.92;
  letter-spacing: 0;
}

.core-title .brand-title {
  display: block;
  color: var(--text);
  text-shadow: 0 0 34px rgba(244, 251, 255, 0.18);
}

.core-title .brand-title > span {
  display: block;
  margin-top: 16px;
  color: transparent;
  font-size: clamp(34px, 5.8vw, 84px);
  line-height: 1.02;
  background:
    linear-gradient(135deg, #f5e8ff 0%, #d447ff 36%, #8f45ff 68%, #61f3ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 18px rgba(183, 66, 255, 0.42));
  text-shadow: 0 0 38px rgba(143, 69, 255, 0.3);
}

.hero-lede {
  max-width: 650px;
  color: rgba(244, 251, 255, 0.86);
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.55;
}

.company-section .lang-en {
  color: var(--muted);
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 800;
  font-size: 14px;
}

.primary-action {
  color: #031015;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 0 28px rgba(97, 243, 255, 0.25);
}

.secondary-action {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.hero-stage {
  position: relative;
  z-index: 1;
  align-self: center;
  min-height: 590px;
}

.feature-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.main-card {
  right: 6%;
  top: 2%;
  width: min(100%, 520px);
}

.main-card img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
}

.main-card div {
  padding: 22px;
}

.chip {
  display: inline-flex;
  margin-bottom: 12px;
  border: 1px solid rgba(140, 255, 199, 0.45);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.main-card h2 {
  margin-bottom: 8px;
  font-size: clamp(24px, 3.4vw, 38px);
}

.main-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.mini-card {
  width: 230px;
}

.mini-card img {
  width: 100%;
  aspect-ratio: 1.24;
  object-fit: cover;
}

.mini-card span {
  display: block;
  padding: 12px 14px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.card-a {
  left: 0;
  bottom: 100px;
}

.card-b {
  right: 0;
  bottom: 10px;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 clamp(18px, 5vw, 72px);
  border: 1px solid var(--line);
  background: var(--line);
}

.stats-band div {
  padding: clamp(22px, 4vw, 38px);
  background: rgba(5, 7, 12, 0.88);
}

.stats-band strong {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
}

.stats-band span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: clamp(72px, 10vw, 124px) clamp(18px, 5vw, 72px);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.65fr);
  gap: clamp(22px, 5vw, 70px);
  align-items: end;
  margin-bottom: 36px;
}

.section-head h2,
.company-section h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 5vw, 72px);
  line-height: 1.02;
}

.section-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.concept-grid article,
.test-card,
.company-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.concept-grid article {
  min-height: 240px;
  padding: 26px;
}

.icon-line {
  display: block;
  width: 54px;
  height: 4px;
  margin-bottom: 28px;
  background: linear-gradient(90deg, var(--cyan), var(--pink), var(--amber));
  box-shadow: 0 0 22px rgba(97, 243, 255, 0.32);
}

.concept-grid h3,
.test-card h3 {
  margin-bottom: 12px;
  font-size: 24px;
}

.concept-grid p,
.test-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.test-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.test-card {
  overflow: hidden;
  background: var(--panel-strong);
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease;
}

.test-card:hover,
.test-card:focus-visible {
  border-color: rgba(97, 243, 255, 0.62);
  outline: none;
  transform: translateY(-2px);
}

.test-card img {
  width: 100%;
  aspect-ratio: 1.32;
  object-fit: cover;
  transition: transform 400ms ease;
}

.test-card:hover img {
  transform: scale(1.04);
}

.test-body {
  padding: 20px;
}

.test-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.test-meta span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.company-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(28px, 5vw, 56px);
  background:
    linear-gradient(135deg, rgba(97, 243, 255, 0.12), transparent 36%),
    linear-gradient(315deg, rgba(255, 79, 216, 0.11), transparent 36%),
    var(--panel-strong);
}

.company-panel p {
  color: rgba(244, 251, 255, 0.8);
  line-height: 1.75;
}

.company-list {
  display: grid;
  gap: 1px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.12);
}

.company-list div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  background: rgba(5, 7, 12, 0.72);
}

.company-list dt {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.company-list dd {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

.company-list a {
  color: var(--cyan);
}

.qr-dialog {
  width: min(92vw, 820px);
  border: 1px solid rgba(97, 243, 255, 0.34);
  border-radius: var(--radius);
  padding: 0;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(97, 243, 255, 0.12), transparent 42%),
    linear-gradient(315deg, rgba(255, 79, 216, 0.12), transparent 42%),
    rgba(6, 10, 18, 0.96);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
}

.qr-dialog::backdrop {
  background: rgba(1, 4, 10, 0.76);
  backdrop-filter: blur(8px);
}

.qr-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.qr-close:hover,
.qr-close:focus-visible {
  border-color: rgba(97, 243, 255, 0.72);
  outline: none;
}

.qr-dialog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 5vw, 48px);
}

.qr-copy h2 {
  margin-bottom: 16px;
  padding-right: 42px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
}

.qr-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.qr-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  border-radius: var(--radius);
  padding: 0 18px;
  color: #031015;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  font-weight: 900;
}

.qr-image-wrap {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
}

.qr-image-wrap img {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1;
  object-fit: contain;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .hero,
  .section-head,
  .company-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 112px;
  }

  .hero-stage {
    min-height: 520px;
  }

  .main-card {
    right: 0;
  }

  .concept-grid,
  .test-grid {
    grid-template-columns: 1fr;
  }

  .qr-dialog-grid {
    grid-template-columns: 1fr;
  }

  .qr-image-wrap {
    justify-self: center;
    width: min(100%, 320px);
  }
}

@media (max-width: 700px) {
  .site-header {
    align-items: center;
    gap: 10px;
  }

  .brand span:last-child {
    display: none;
  }

  .header-actions {
    gap: 10px;
  }

  .nav-links {
    gap: 10px;
    font-size: 11px;
  }

  .lang-toggle {
    width: 112px;
    height: 48px;
    padding: 5px;
  }

  .lang-toggle::before {
    top: 5px;
    left: 5px;
    width: calc(50% - 5px);
    height: calc(100% - 10px);
  }

  .lang-option {
    font-size: 18px;
  }

  .hero {
    padding-top: 106px;
    padding-bottom: 40px;
  }

  h1 {
    font-size: clamp(50px, 18vw, 84px);
  }

  .hero-stage {
    min-height: auto;
  }

  .feature-card {
    position: relative;
  }

  .main-card,
  .card-a,
  .card-b {
    inset: auto;
    width: 100%;
  }

  .mini-card {
    margin-top: 12px;
  }

  .stats-band {
    grid-template-columns: 1fr;
  }

  .company-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

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

  .test-card img {
    transition: none;
  }
}
