:root {
  color-scheme: dark;
  --bg: #020705;
  --text: #f3f8f4;
  --muted: rgba(220, 231, 223, 0.72);
  --line: rgba(94, 151, 118, 0.2);
  --line-strong: rgba(124, 199, 155, 0.28);
  --panel-border: rgba(84, 131, 108, 0.34);
  --panel-soft: rgba(12, 18, 15, 0.68);
  --accent: #8ff8bf;
  --accent-strong: #2fdf90;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  --font-latin: "Avenir Next", "SF Pro Display", "Helvetica Neue", sans-serif;
  --font-cn: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 18% 18%, rgba(46, 219, 140, 0.18), transparent 28%),
    radial-gradient(circle at 82% 16%, rgba(124, 255, 190, 0.12), transparent 24%),
    linear-gradient(180deg, #04100c 0%, #020705 52%, #020403 100%);
  color: var(--text);
  font-family: var(--font-cn);
}

[lang="zh-CN"] {
  font-family: var(--font-cn);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(72, 109, 87, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 109, 87, 0.14) 1px, transparent 1px);
  background-size: 110px 110px;
  mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.35));
  pointer-events: none;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 24px 28px 18px;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(6px);
  opacity: 0.8;
}

.page-shell::before {
  width: 220px;
  height: 220px;
  top: 110px;
  left: -80px;
  background: radial-gradient(circle, rgba(20, 235, 149, 0.32), transparent 65%);
}

.page-shell::after {
  width: 280px;
  height: 280px;
  right: -120px;
  top: 70px;
  background: radial-gradient(circle, rgba(143, 248, 191, 0.18), transparent 68%);
}

.page-brand-row {
  position: relative;
  z-index: 1;
  max-width: 1260px;
  margin: 0 auto clamp(28px, 4vw, 42px);
  display: flex;
  align-items: center;
  gap: 20px;
}

.page-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid rgba(123, 198, 154, 0.22);
  border-radius: 999px;
  background: rgba(13, 23, 18, 0.72);
  color: rgba(227, 240, 231, 0.84);
  letter-spacing: 0.08em;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-latin);
  text-decoration: none;
}

.page-brand img {
  width: 22px;
  height: 22px;
}

.page-brand-intro {
  flex: 1;
  min-width: 0;
}

.page-brand-intro span {
  display: block;
  color: rgba(229, 239, 233, 0.84);
  font-size: clamp(16px, 1.25vw, 22px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.hero-shell {
  position: relative;
  z-index: 1;
  max-width: 1260px;
  margin: 0 auto;
  display: grid;
  min-height: calc(100vh - 96px);
  gap: clamp(24px, 3vw, 34px);
  align-content: start;
}

.hero-primary {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 352px);
  gap: 30px;
  align-items: center;
  min-height: 30vh;
}

.hero-copy {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding-top: 6px;
}

.hero-copy h1 {
  margin: 0;
  display: grid;
  gap: 12px;
  font-size: clamp(48px, 6.1vw, 86px);
  line-height: 0.92;
  letter-spacing: -0.055em;
  font-weight: 660;
  font-family: var(--font-latin);
}

.hero-copy h1 span {
  display: block;
}

.hero-copy h1 span:last-child {
  position: relative;
}

.hero-copy h1 span:last-child::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, #8ff8bf 0%, #2fdf90 70%, rgba(47, 223, 144, 0.18) 100%);
  box-shadow: 0 0 24px rgba(143, 248, 191, 0.7);
  vertical-align: 16px;
}

.hero-description {
  margin: 0;
  max-width: 30rem;
  color: var(--muted);
  font-size: clamp(15px, 1vw, 18px);
  line-height: 1.4;
  letter-spacing: -0.03em;
}

.home-video-button {
  appearance: none;
  border: 1px solid rgba(0, 195, 128, 0.24);
  border-radius: 999px;
  min-width: 220px;
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  color: rgba(240, 246, 242, 0.92);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-cn);
  background:
    linear-gradient(180deg, rgba(117, 255, 197, 0.12), rgba(0, 195, 128, 0.06)),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.2);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.home-video-button:hover {
  border-color: rgba(117, 255, 197, 0.44);
  background:
    linear-gradient(180deg, rgba(117, 255, 197, 0.14), rgba(0, 195, 128, 0.08)),
    rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.home-video-button-icon {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(117, 255, 197, 0.34);
  background: radial-gradient(circle at 30% 30%, rgba(117, 255, 197, 0.36), rgba(0, 195, 128, 0.14));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.home-video-button-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid rgba(248, 255, 252, 0.92);
  transform: translate(-34%, -50%);
}

.site-footer {
  position: relative;
  z-index: 1;
  max-width: 1260px;
  margin: 24px auto 0;
  display: flex;
  justify-content: center;
  gap: 18px;
  color: rgba(220, 231, 223, 0.68);
  font-size: 13px;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

.legal-shell {
  overflow: visible;
}

.legal-page {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.legal-hero {
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid rgba(123, 198, 154, 0.22);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 12%, rgba(143, 248, 191, 0.16), transparent 34%),
    rgba(13, 23, 18, 0.72);
  box-shadow: var(--shadow);
}

.legal-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-family: var(--font-latin);
}

.legal-hero p,
.legal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.legal-card {
  padding: 24px;
  border: 1px solid rgba(123, 198, 154, 0.2);
  border-radius: 22px;
  background: rgba(13, 23, 18, 0.7);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.legal-card h2 {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.2;
}

.legal-card p + p {
  margin-top: 10px;
}

.legal-wide-card {
  display: grid;
  gap: 12px;
}

.legal-link-button {
  justify-self: start;
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(143, 248, 191, 0.28);
  color: rgba(240, 246, 242, 0.92);
  text-decoration: none;
  font-weight: 700;
  background: rgba(143, 248, 191, 0.09);
}

.download-card {
  width: min(100%, 352px);
  justify-self: end;
  display: flex;
  justify-content: flex-end;
}

.download-platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
  width: 100%;
}

.platform-card {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.qr-frame {
  position: relative;
  border-radius: 18px;
  border: none;
  background: transparent;
}

.platform-qr-frame {
  min-height: 144px;
  min-width: 144px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-coming-soon {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid rgba(11, 18, 15, 0.12);
  border-radius: 999px;
  background: rgba(7, 12, 10, 0.84);
  color: rgba(245, 248, 246, 0.96);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
  white-space: nowrap;
  pointer-events: none;
}

.qr-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(143, 248, 191, 0.12), transparent 52%);
  pointer-events: none;
}

.qr-grid {
  position: relative;
  z-index: 1;
  width: 138px;
  aspect-ratio: 1;
  padding: 8px;
  border-radius: 16px;
  background: #f7f7f2;
  display: grid;
  grid-template-columns: repeat(21, 1fr);
  gap: 1.75px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.qr-cell {
  border-radius: 2px;
  background: transparent;
}

.qr-cell.active {
  background: #202624;
}

.platform-caption {
  color: rgba(240, 246, 242, 0.9);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  font-family: var(--font-cn);
}

.hero-secondary {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(320px, 0.76fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 0;
}

.workflow-panel {
  height: 100%;
  padding: 18px 20px 20px;
  border-radius: 24px;
  border: 1px solid var(--panel-border);
  background:
    linear-gradient(180deg, rgba(20, 31, 25, 0.88), rgba(7, 13, 10, 0.92));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-direction: column;
}

.workflow-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.workflow-head-copy {
  min-width: 0;
}

.workflow-head-action {
  display: flex;
  justify-content: flex-end;
}

.section-kicker {
  color: rgba(143, 248, 191, 0.84);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.section-title {
  margin-top: 8px;
  font-size: clamp(24px, 1.8vw, 30px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  font-weight: 650;
}

.workflow-track {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  flex: 1;
}

.step-card {
  min-height: 112px;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid rgba(112, 173, 140, 0.18);
  background: rgba(12, 18, 15, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.step-index {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(73, 238, 150, 0.2), rgba(20, 70, 48, 0.76));
  border: 1px solid rgba(143, 248, 191, 0.24);
  color: rgba(241, 249, 244, 0.94);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.step-card h3 {
  margin: 12px 0 0;
  font-size: 17px;
  line-height: 1.16;
  letter-spacing: -0.04em;
  font-family: var(--font-cn);
}

.step-card p {
  margin: 8px 0 0;
  color: rgba(220, 231, 223, 0.72);
  font-size: 13px;
  line-height: 1.52;
  font-family: var(--font-cn);
}

.protocol-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  padding: 18px 18px 16px;
  border-radius: 24px;
  border: 1px solid rgba(88, 145, 114, 0.28);
  background:
    radial-gradient(circle at 100% 0%, rgba(75, 220, 139, 0.22), transparent 44%),
    linear-gradient(180deg, rgba(8, 35, 25, 0.94), rgba(8, 21, 16, 0.92));
  display: flex;
  flex-direction: column;
}

.protocol-card::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -30px;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(88, 220, 145, 0.2), transparent 68%);
  pointer-events: none;
}

.protocol-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(122, 201, 157, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(235, 242, 238, 0.94);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.protocol-title {
  margin-top: 10px;
  max-width: none;
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: -0.05em;
  font-weight: 650;
  font-family: var(--font-cn);
  white-space: nowrap;
}

.protocol-description {
  margin: 10px 0 0;
  color: rgba(220, 231, 223, 0.8);
  font-size: 13px;
  line-height: 1.56;
  font-family: var(--font-cn);
}

.protocol-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.protocol-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(122, 201, 157, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(240, 246, 242, 0.9);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  font-family: var(--font-cn);
}

.overlay-shell {
  position: fixed;
  inset: 0;
  z-index: 30;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 4, 0.78);
  backdrop-filter: blur(10px);
}

.overlay-card {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100vw - 32px));
  margin: min(8vh, 56px) auto;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(117, 255, 197, 0.16);
  background: rgba(7, 12, 10, 0.96);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.4);
}

.overlay-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.overlay-card-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.overlay-card-close {
  appearance: none;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(240, 246, 242, 0.9);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.home-video-surface {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(9, 18, 14, 0.98), rgba(4, 8, 6, 0.98));
  min-height: min(62vh, 620px);
}

.home-video-player,
.home-video-placeholder {
  display: block;
  width: 100%;
  min-height: min(62vh, 620px);
}

.home-video-player {
  background: #020403;
}

.home-video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at 14% 18%, rgba(117, 255, 197, 0.16), transparent 26%),
    radial-gradient(circle at 82% 22%, rgba(117, 255, 197, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(8, 14, 11, 0.96), rgba(4, 8, 6, 0.98));
}

.home-video-placeholder-copy {
  max-width: 420px;
  text-align: center;
}

.home-video-placeholder-title {
  font-size: 28px;
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.home-video-placeholder-text {
  margin-top: 12px;
  color: rgba(224, 233, 227, 0.7);
  font-size: 14px;
  line-height: 1.7;
}

body.video-open {
  overflow: hidden;
}

@media (min-width: 1101px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .page-shell {
    height: 100vh;
  }
}

@media (max-width: 1100px) {
  .page-brand-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
  }

  .hero-primary {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: auto;
  }

  .hero-secondary {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .page-brand-intro span {
    white-space: normal;
  }

  .protocol-title {
    white-space: normal;
  }

  .workflow-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .workflow-head-action {
    justify-content: flex-start;
  }

  .download-card {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 24px 18px 28px;
  }

  .page-brand {
    font-size: 13px;
  }

  .page-brand-intro span {
    font-size: 13px;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 17vw, 68px);
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-primary,
  .hero-secondary {
    gap: 16px;
  }

  .hero-shell {
    min-height: auto;
    align-content: normal;
  }

  .download-platforms {
    grid-template-columns: 1fr;
  }

  .platform-qr-frame {
    min-width: 150px;
    min-height: 150px;
  }

  .qr-coming-soon {
    min-height: 30px;
    padding: 0 14px;
    font-size: 12px;
  }

  .workflow-panel,
  .protocol-card,
  .download-card {
    border-radius: 20px;
  }

  .workflow-panel,
  .protocol-card {
    padding: 18px 16px;
  }

  .workflow-track {
    grid-template-columns: 1fr;
  }

  .step-card {
    min-height: auto;
  }

  .platform-qr-frame {
    min-height: 150px;
  }

  .qr-grid {
    width: min(100%, 150px);
  }

  .overlay-card {
    width: min(100vw - 18px, 920px);
    margin: 20px auto;
    padding: 16px;
    border-radius: 22px;
  }

  .home-video-surface,
  .home-video-player,
  .home-video-placeholder {
    min-height: 48vh;
  }
}
