:root {
  --text-deep: #07366f;
  --text-muted: #4b6685;
  --white-glass: rgba(255, 255, 255, .78);
  --shadow-card: 0 28px 80px rgba(17, 88, 165, .16);
  --salmon: #3e6270;
  --shrimp: #8c3f32;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--text-deep);
  background: #edf7ff;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

.lab-home {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

.soft-mask {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, .78) 0%, rgba(255, 255, 255, .58) 28%, rgba(255, 255, 255, .2) 58%, rgba(255, 255, 255, 0) 78%),
    linear-gradient(90deg, rgba(62, 98, 112, .14) 0%, rgba(255, 255, 255, .12) 44%, rgba(140, 63, 50, .12) 100%);
}

.langs {
  position: absolute;
  z-index: 2;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  display: inline-flex;
  overflow: hidden;
  border: 1px solid rgba(7, 95, 224, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
}

.langs button {
  height: 32px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #4b6685;
  font-size: 13px;
  cursor: pointer;
}

.langs button.is-active { background: #073c91; color: #fff; }

.hero {
  width: min(1180px, calc(100vw - max(32px, env(safe-area-inset-left) + env(safe-area-inset-right))));
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(72px, 8vh, 96px) 16px clamp(28px, 4vh, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vh, 44px);
}

.hero-header { text-align: center; }

.eyebrow {
  position: absolute;
  z-index: 2;
  top: max(16px, env(safe-area-inset-top));
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  height: 32px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(6, 69, 137, .66);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
}

h1 {
  margin: 0;
  color: #073c91;
  font-size: clamp(44px, 6.2vw, 76px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: .05em;
  text-shadow: 0 12px 30px rgba(2, 56, 130, .16);
}

.subtitle {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
  max-width: 100%;
  margin: 22px 0 0;
  color: #173f78;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: .16em;
  text-align: center;
}

.subtitle::before,
.subtitle::after {
  content: "";
  width: clamp(34px, 4vw, 66px);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(5, 95, 224, .7));
}

.subtitle::after { background: linear-gradient(90deg, rgba(5, 95, 224, .7), transparent); }

html[lang="en"] .subtitle {
  letter-spacing: .04em;
  font-size: clamp(16px, 1.7vw, 22px);
}

.system-grid {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
}

.system-card {
  position: relative;
  min-height: 0;
  padding: 32px 30px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(125, 180, 224, .48);
  border-radius: 28px;
  background: var(--white-glass);
  box-shadow: var(--shadow-card);
  color: inherit;
  text-decoration: none;
  backdrop-filter: blur(16px);
}

.system-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.card-salmon::before {
  background:
    radial-gradient(circle at 24% 12%, rgba(62, 98, 112, .22), transparent 34%),
    linear-gradient(180deg, rgba(238, 247, 249, .92), rgba(255, 255, 255, .72));
}

.card-shrimp::before {
  background:
    radial-gradient(circle at 24% 12%, rgba(140, 63, 50, .18), transparent 34%),
    linear-gradient(180deg, rgba(255, 246, 242, .94), rgba(255, 255, 255, .74));
}

.card-glow {
  position: absolute;
  top: -95px;
  right: -80px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  filter: blur(20px);
  opacity: .5;
}

.card-salmon .card-glow { background: rgba(62, 98, 112, .36); }
.card-shrimp .card-glow { background: rgba(140, 63, 50, .28); }

.card-top { width: 100%; height: auto; }

.system-icon { display: block; filter: drop-shadow(0 12px 22px rgba(12, 90, 150, .18)); }

.card-content { width: 100%; margin-top: 28px; text-align: center; }

.card-content h2 {
  margin: 0;
  font-size: clamp(31px, 3.4vw, 43px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: .04em;
}

.card-salmon h2 { color: var(--salmon); }
.card-shrimp h2 { color: var(--shrimp); }

.card-content p {
  width: min(330px, 100%);
  margin: 14px auto 24px;
  color: #344e6e;
  font-size: clamp(15px, 1.3vw, 17px);
  font-weight: 500;
  line-height: 1.75;
  text-wrap: balance;
}

.enter-button {
  width: min(240px, 82%);
  min-height: 48px;
  height: 58px;
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: 999px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .08em;
  box-shadow: 0 14px 26px rgba(7, 80, 143, .2);
}

.card-salmon .enter-button { background: linear-gradient(135deg, #5e8794, #3e6270); }
.card-shrimp .enter-button { background: linear-gradient(135deg, #c45a45, #8c3f32); }

.system-card:hover .enter-button,
.system-card:focus-visible .enter-button {
  transform: translateY(-3px);
  box-shadow: 0 20px 36px rgba(7, 80, 143, .28);
}

.system-card:focus-visible { outline: none; box-shadow: var(--shadow-card), 0 0 0 3px rgba(7, 95, 224, .35); }

.site-footer {
  padding: 8px 16px max(28px, calc(16px + env(safe-area-inset-bottom)));
  text-align: center;
}

.site-footer-line {
  margin: 0;
  color: rgba(23, 63, 120, .62);
  font-size: 12px;
  line-height: 1.7;
}

.site-footer a { color: rgba(7, 95, 224, .82); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .eyebrow {
    justify-content: flex-start;
    right: 118px;
    font-size: 11px;
    letter-spacing: .04em;
  }
}

@media (max-width: 900px) {
  .hero {
    justify-content: flex-start;
    width: min(640px, calc(100vw - 24px));
    padding-top: max(64px, env(safe-area-inset-top));
  }
  .subtitle { gap: 12px; letter-spacing: .08em; }
  .system-grid { grid-template-columns: 1fr; width: 100%; gap: 22px; }
}

@media (max-width: 560px) {
  h1 { font-size: clamp(32px, 8.5vw, 42px); letter-spacing: .03em; }
  .subtitle { font-size: 15px; letter-spacing: .06em; }
  .subtitle::before, .subtitle::after { display: none; }
  html[lang="en"] .subtitle { font-size: 14px; letter-spacing: .02em; }
  .system-card { min-height: 0; padding: 20px 18px 22px; border-radius: 22px; }
  .card-content h2 { font-size: 28px; }
  .card-content p { margin: 10px auto 18px; font-size: 14px; }
  .enter-button { width: 100%; max-width: 280px; height: auto; padding: 14px 20px; font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .enter-button, .system-card:hover .enter-button { transform: none; transition: none; }
}
