:root {
  color-scheme: dark;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  --landing-text: #f7f8fb;
}
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; min-width: 320px; margin: 0; overflow: hidden; color: var(--landing-text); background: #151719; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.landing-media, .landing-scrim { position: fixed; inset: 0; pointer-events: none; }
.landing-media { z-index: 0; overflow: hidden; background: #151719; }
.landing-animation {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #151719;
}
.landing-animation::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 80px 80px;
}
.landing-animation::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 88%, rgba(0, 229, 160, .13), transparent 32%),
    radial-gradient(circle at 88% 14%, rgba(0, 202, 224, .12), transparent 30%),
    linear-gradient(to bottom, rgba(0,0,0,.02), rgba(0,0,0,.14));
}
.landing-grid-bg,
.landing-gradient-flow,
.landing-ambient-field,
.landing-grid-lines,
.landing-shooting-star,
.landing-orbit-system,
.landing-orbit-wheel,
.landing-orbit-icon,
.landing-orbit-ring,
.landing-orbit-core { display: none !important; animation: none !important; }
.landing-scrim { z-index: 1; background: transparent; }

.landing-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5.8vw, 118px);
  background: transparent;
}
.landing-brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.landing-brand img { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; }
.landing-brand strong { color: #fff; font-size: 21px; font-weight: 900; white-space: nowrap; }
.landing-top-start {
  height: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(20, 199, 233, .55);
  border-radius: 7px;
  color: #18c9ec;
  background: rgba(7, 21, 25, .30);
  font-size: 14px;
  font-weight: 900;
  box-shadow: none;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.landing-top-start:hover { color: #fff; border-color: rgba(20,199,233,.86); background: rgba(20,199,233,.14); }

.landing-page {
  position: relative;
  z-index: 3;
  --landing-page-inline-pad: clamp(42px, 7vw, 148px);
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 18px;
  overflow: hidden;
  padding: 72px var(--landing-page-inline-pad) 14px;
}
.landing-hero {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: clamp(38px, 8vh, 92px);
}
.landing-eyebrow { margin: 0 0 18px; color: rgba(220, 222, 226, .78); font-size: 11px; font-weight: 900; letter-spacing: 4px; }
.landing-hero h1 { max-width: 1200px; margin: 0; color: #fff; font-size: clamp(48px, 5.2vw, 82px); font-weight: 900; line-height: 1.06; text-shadow: 0 16px 40px rgba(0,0,0,.38); }
.landing-hero h1 span { color: #d66b96; }
.landing-lede { max-width: 1000px; margin: 26px 0 0; color: rgba(231, 235, 240, .82); font-size: clamp(16px, 1.28vw, 22px); line-height: 1.6; }
.landing-hero-start {
  min-width: 210px;
  height: 56px;
  margin-top: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.08);
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 18px 38px rgba(0,0,0,.24);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.landing-hero-start:hover { border-color: rgba(255,255,255,.62); background: rgba(255,255,255,.14); transform: translateY(-1px); }

.landing-showcase-section {
  width: calc(100% + var(--landing-page-inline-pad) + var(--landing-page-inline-pad));
  max-width: none;
  min-width: 0;
  margin: 0 0 0 calc(0px - var(--landing-page-inline-pad));
  padding: 0;
  overflow: hidden;
}
.landing-showcase-heading { display: none; }
.landing-showcase { width: 100%; overflow: hidden; }
.landing-showcase-track {
  --landing-showcase-gap: 16px;
  --landing-showcase-duration: 76s;
  width: max-content;
  display: flex;
  will-change: transform;
  animation: landing-showcase-scroll var(--landing-showcase-duration) linear infinite;
}
.landing-showcase-group { display: flex; flex: 0 0 auto; gap: var(--landing-showcase-gap); padding-right: var(--landing-showcase-gap); }
.landing-showcase:hover .landing-showcase-track,
.landing-showcase:focus-within .landing-showcase-track { animation-play-state: paused; }
.landing-showcase-card {
  position: relative;
  width: clamp(190px, 12.15vw, 228px);
  flex: 0 0 auto;
  aspect-ratio: 1.52 / 1;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  color: #fff;
  background: rgba(33,35,37,.84);
  box-shadow: 0 14px 28px rgba(0,0,0,.20);
  cursor: pointer;
  text-align: left;
}
.landing-showcase-card img,
.landing-showcase-card video,
.landing-showcase-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; background: rgba(40,42,44,.9); }
.landing-showcase-card::after { content: ""; position: absolute; inset: 65% 0 0; z-index: 1; background: rgba(0,0,0,.48); }
.landing-showcase-card div { position: relative; z-index: 2; width: 100%; padding: 12px 12px 11px; }
.landing-showcase-card strong { display: block; overflow: hidden; font-size: 14px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.landing-showcase-card span { display: block; margin-top: 4px; color: rgba(255,255,255,.68); font-size: 10px; }
.landing-showcase-placeholder::before,
.landing-showcase-placeholder::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; transform: rotate(-8deg); }
.landing-showcase-placeholder::before { width: 42%; height: 42%; top: 20%; left: 14%; }
.landing-showcase-placeholder::after { width: 42%; height: 42%; top: 30%; right: 12%; }
@keyframes landing-showcase-scroll {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .landing-showcase { overflow-x: auto; scrollbar-width: none; }
  .landing-showcase::-webkit-scrollbar { display: none; }
  .landing-showcase-track { animation: none; }
  .landing-showcase-group[aria-hidden="true"] { display: none; }
}

.landing-footer { min-height: 24px; display: flex; align-items: center; justify-content: center; gap: 13px; color: rgba(210,219,232,.58); font-size: 12px; }
.landing-footer a:hover { color: #fff; }
.landing-footer-divider { width: 1px; height: 12px; background: rgba(255,255,255,.22); }

.landing-auth-dialog { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 22px; background: rgba(0, 0, 0, .88); }
.landing-auth-dialog.hidden { display: none; }
.landing-auth-panel { position: relative; contain: layout paint style; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-start; width: min(550px, calc(100vw - 32px)); height: min(900px, calc(100vh - 32px)); max-height: none; box-sizing: border-box; overflow: hidden; padding: 42px 42px 28px; border: 1px solid rgba(41, 156, 206, .18); border-radius: 17px; color: #eef6ff; background: #09111c; box-shadow: 0 22px 80px rgba(0, 0, 0, .54); }
.landing-auth-close { position: absolute; top: 15px; right: 16px; width: 30px; height: 30px; padding: 0; border: 0; color: #7c8b9d; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; }
.landing-auth-close:hover { color: #fff; }
.landing-auth-brand { width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 50%; box-shadow: 0 0 22px rgba(37, 139, 241, .35); }
.landing-auth-brand img { width: 100%; height: 100%; display: block; border-radius: inherit; object-fit: cover; }
.landing-auth-panel h2 { margin: 0; text-align: center; font-size: 30px; line-height: 1.2; }
.landing-auth-dialog[data-auth-view="login"] .landing-auth-panel h2 { font-size: 32px; }
.landing-auth-subtitle { margin: 12px 0 26px; color: #738398; font-size: 13px; text-align: center; }
.landing-auth-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 4px; margin-bottom: 28px; border-radius: 10px; background: #141c29; }
.landing-auth-tabs button { height: 42px; border: 0; border-radius: 8px; color: #78879d; background: transparent; font-size: 14px; font-weight: 800; cursor: pointer; }
.landing-auth-tabs button.active { color: #fff; background: #128be6; box-shadow: 0 5px 15px rgba(18, 139, 230, .2); }
.landing-auth-pane label, .landing-privacy-check { display: block; color: #8d9bad; font-size: 12px; }
.landing-auth-pane label + label { margin-top: 16px; }
.landing-auth-pane[data-landing-auth-pane="login"] label + label { margin-top: 22px; }
.landing-auth-pane[data-landing-auth-pane="register"] { display: grid; grid-template-columns: 1fr; gap: 18px; }
.landing-auth-pane[data-landing-auth-pane="register"] label + label { margin-top: 0; }
.landing-auth-pane input { width: 100%; height: 42px; margin-top: 9px; padding: 0 12px; border: 1px solid #273343; border-radius: 7px; outline: 0; color: #fff; background: #151d29; font-size: 13px; }
.landing-auth-pane input:focus { border-color: #16b8e4; box-shadow: 0 0 0 3px rgba(22, 184, 228, .12); }
.landing-code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.landing-code-row input { min-width: 0; }
.landing-code-row button { height: 42px; margin-top: 9px; padding: 0 13px; border: 1px solid #087e9e; border-radius: 7px; color: #16c8ec; background: rgba(5, 96, 122, .22); font-size: 12px; font-weight: 800; cursor: pointer; }
.landing-code-row button:hover { background: rgba(5, 150, 184, .32); }
.landing-auth-hint { margin: 10px 0 0; color: #718298; font-size: 11px; line-height: 1.5; }
.landing-auth-submit { width: 100%; height: 48px; margin-top: 26px; border: 0; border-radius: 8px; color: #fff; background: #119de7; font-size: 16px; font-weight: 800; cursor: pointer; }
.landing-auth-submit:hover { background: #18b6ed; }
.landing-auth-submit:disabled { cursor: wait; opacity: .65; }
.landing-register-toggle { display: block; margin: 13px auto 0; padding: 0; border: 0; color: #66cfee; background: transparent; font-size: 12px; cursor: pointer; }
.landing-register-toggle:hover { color: #fff; }
.landing-agreement-box { margin-top: 22px; padding: 15px 14px 11px; border-radius: 10px; background: #111925; }
.landing-agreement-box strong { display: block; margin-bottom: 10px; color: #dce7f2; font-size: 13px; }
.landing-agreement-box label { display: flex; align-items: flex-start; gap: 8px; margin-top: 9px; color: #7f8da0; font-size: 11px; line-height: 1.55; cursor: pointer; }
.landing-agreement-box input, .landing-privacy-check input { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; accent-color: #12c4e3; }
.landing-privacy-check { display: flex; align-items: center; gap: 7px; margin-top: 18px; color: #738196; line-height: 1.4; cursor: pointer; }
.landing-privacy-check a { color: #d5dce7; font-weight: 800; }
.landing-auth-status { min-height: 16px; margin: 10px 0 0; color: #71d9ed; font-size: 12px; line-height: 1.5; text-align: center; }
.landing-auth-status.error { color: #ff9c9c; }
.landing-auth-pane.hidden { display: none; }
.landing-code-row button:disabled { cursor: wait; opacity: .65; }

/* Keep the registration form inside the viewport without clipping its agreement controls. */
.landing-auth-panel { max-height: min(900px, calc(100dvh - 32px)); overflow-y: auto; scrollbar-width: none; }
.landing-auth-panel::-webkit-scrollbar { width: 0; height: 0; }
.landing-auth-dialog[data-auth-view="register"] .landing-auth-brand { margin-bottom: 10px; }
.landing-auth-dialog[data-auth-view="register"] .landing-auth-subtitle { margin-bottom: 18px; }
.landing-auth-dialog[data-auth-view="register"] .landing-auth-tabs { margin-bottom: 18px; }
.landing-auth-dialog[data-auth-view="register"] .landing-auth-pane[data-landing-auth-pane="register"] { gap: 12px; }
.landing-auth-dialog[data-auth-view="register"] .landing-auth-pane input { height: 40px; margin-top: 7px; }
.landing-auth-dialog[data-auth-view="register"] .landing-code-row button { height: 40px; margin-top: 7px; }
.landing-auth-dialog[data-auth-view="register"] .landing-auth-submit { margin-top: 16px; }
.landing-auth-dialog[data-auth-view="register"] .landing-agreement-box { margin-top: 12px; padding: 11px 12px 9px; }
.landing-auth-dialog[data-auth-view="register"] .landing-agreement-box label { margin-top: 7px; line-height: 1.4; }
.landing-auth-dialog[data-auth-view="register"] .landing-privacy-check { margin-top: 10px; }

.site-agreement-dialog { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 22px; background: rgba(0,0,0,.78); }
.site-agreement-dialog.hidden { display: none; }
.site-agreement-panel { width: min(720px, calc(100vw - 32px)); max-height: min(780px, calc(100vh - 32px)); display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: #0c111a; box-shadow: 0 22px 70px rgba(0,0,0,.52); }
.site-agreement-panel header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-agreement-panel h2 { margin: 0; font-size: 18px; }
.site-agreement-panel button { width: 30px; height: 30px; border: 0; color: #94a3b8; background: transparent; font-size: 22px; cursor: pointer; }
.site-agreement-content { margin: 0; padding: 18px; overflow: auto; color: #cbd5e1; white-space: pre-wrap; line-height: 1.7; }

@media (max-width: 1200px) {
  .landing-page { --landing-page-inline-pad: 26px; gap: 14px; }
  .landing-showcase-card { aspect-ratio: 1.64 / 1; }
}
@media (max-width: 700px) {
  html, body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }
  .landing-header { height: 60px; padding: 0 16px; }
  .landing-brand img { width: 28px; height: 28px; }
  .landing-brand strong { font-size: 16px; }
  .landing-top-start { height: 32px; min-height: 32px; margin-right: 48px; padding: 0 11px; font-size: 12px; }
  .landing-page {
    --landing-page-inline-pad: 12px;
    height: auto;
    min-height: 100dvh;
    grid-template-rows: auto auto auto;
    gap: 8px;
    overflow: visible;
    padding-top: 60px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }
  .landing-hero { min-height: max(320px, calc(100svh - 224px)); padding: 12px 0 4px; }
  .landing-eyebrow { margin-bottom: 12px; font-size: 9px; letter-spacing: 2px; }
  .landing-hero h1 { font-size: clamp(32px, 10vw, 48px); line-height: 1.14; }
  .landing-lede { margin-top: 16px; font-size: 13px; line-height: 1.58; }
  .landing-hero-start { min-width: 156px; height: 44px; margin-top: 22px; font-size: 16px; }
  .landing-showcase-track { --landing-showcase-gap: 8px; --landing-showcase-duration: 58s; }
  .landing-showcase-card { width: 164px; aspect-ratio: 1.52 / 1; border-radius: 10px; }
  .landing-showcase-card div { padding: 9px; }
  .landing-showcase-card strong { font-size: 12px; }
  .landing-showcase-card span { font-size: 10px; }
  .landing-footer { min-height: 18px; gap: 8px; font-size: 10px; }
  .landing-auth-panel { width: calc(100vw - 20px); height: min(900px, calc(100vh - 20px)); padding: 18px 20px 12px; border-radius: 13px; }
}
@media (max-width: 700px) and (max-height: 720px) {
  .landing-eyebrow { display: none; }
  .landing-hero { min-height: max(300px, calc(100svh - 204px)); padding-top: 4px; }
  .landing-hero h1 { font-size: clamp(28px, 8.8vw, 38px); }
  .landing-lede { margin-top: 10px; font-size: 12px; line-height: 1.45; }
  .landing-hero-start { min-width: 140px; height: 40px; margin-top: 14px; font-size: 15px; }
  .landing-showcase-card { width: 142px; }
  .landing-showcase-card div { padding: 7px 8px; }
  .landing-showcase-card strong { font-size: 11px; }
  .landing-showcase-card span { margin-top: 2px; font-size: 9px; }
  .landing-footer { min-height: 16px; }
}
@media (max-width: 700px) {
  .landing-auth-dialog { place-items: start center; align-items: start; overflow-y: auto; padding: 64px 10px 12px; }
  .landing-auth-panel,
  .landing-auth-dialog[data-auth-view="register"] .landing-auth-panel { width: min(550px, calc(100vw - 20px)); height: auto; max-height: calc(100dvh - 76px); margin: 0 auto; }
}
/* Compact registration layout for short browser viewports. */
.landing-auth-dialog[data-auth-view="register"] .landing-auth-panel {
  height: auto;
  max-height: min(900px, calc(100dvh - 20px));
  padding: 20px 32px 16px;
}
.landing-auth-dialog[data-auth-view="register"] .landing-auth-brand { width: 46px; height: 46px; margin-bottom: 6px; }
.landing-auth-dialog[data-auth-view="register"] .landing-auth-panel h2 { font-size: 27px; line-height: 1.15; }
.landing-auth-dialog[data-auth-view="register"] .landing-auth-subtitle { margin: 6px 0 12px; font-size: 12px; line-height: 1.3; }
.landing-auth-dialog[data-auth-view="register"] .landing-auth-tabs { padding: 3px; margin-bottom: 12px; }
.landing-auth-dialog[data-auth-view="register"] .landing-auth-tabs button { height: 36px; font-size: 13px; }
.landing-auth-dialog[data-auth-view="register"] .landing-auth-pane[data-landing-auth-pane="register"] { gap: 8px; }
.landing-auth-dialog[data-auth-view="register"] .landing-auth-pane label { font-size: 11px; line-height: 1.2; }
.landing-auth-dialog[data-auth-view="register"] .landing-auth-pane input { height: 34px; margin-top: 4px; padding: 0 10px; font-size: 12px; }
.landing-auth-dialog[data-auth-view="register"] .landing-code-row { gap: 7px; }
.landing-auth-dialog[data-auth-view="register"] .landing-code-row button { height: 34px; margin-top: 4px; padding: 0 10px; font-size: 11px; }
.landing-auth-dialog[data-auth-view="register"] .landing-auth-submit { height: 40px; margin-top: 10px; font-size: 15px; }
.landing-auth-dialog[data-auth-view="register"] .landing-agreement-box { margin-top: 8px; padding: 8px 10px 7px; border-radius: 8px; }
.landing-auth-dialog[data-auth-view="register"] .landing-agreement-box strong { margin-bottom: 4px; font-size: 11px; }
.landing-auth-dialog[data-auth-view="register"] .landing-agreement-box label { gap: 6px; margin-top: 4px; font-size: 10px; line-height: 1.25; }
.landing-auth-dialog[data-auth-view="register"] .landing-agreement-box input,
.landing-auth-dialog[data-auth-view="register"] .landing-privacy-check input { width: 14px; height: 14px; flex-basis: 14px; }
.landing-auth-dialog[data-auth-view="register"] .landing-privacy-check { gap: 5px; margin-top: 6px; font-size: 10px; line-height: 1.25; }
.landing-auth-dialog[data-auth-view="register"] .landing-auth-status { min-height: 10px; margin-top: 5px; font-size: 10px; line-height: 1.25; }
/* At browser zoom levels, preserve every registration control in the visible modal. */
.landing-auth-dialog[data-auth-view="register"] { align-items: start; overflow: auto; }
.landing-auth-dialog[data-auth-view="register"] .landing-auth-panel { min-height: 0; max-height: none; margin: auto; }
@media (max-height: 820px) {
  .landing-auth-dialog[data-auth-view="register"] { padding: 8px; }
  .landing-auth-dialog[data-auth-view="register"] .landing-auth-panel { width: min(550px, calc(100vw - 16px)); padding: 14px 24px 12px; }
  .landing-auth-dialog[data-auth-view="register"] .landing-auth-brand { width: 38px; height: 38px; margin-bottom: 4px; }
  .landing-auth-dialog[data-auth-view="register"] .landing-auth-panel h2 { font-size: 23px; }
  .landing-auth-dialog[data-auth-view="register"] .landing-auth-subtitle { margin: 4px 0 8px; font-size: 11px; }
  .landing-auth-dialog[data-auth-view="register"] .landing-auth-tabs { margin-bottom: 8px; }
  .landing-auth-dialog[data-auth-view="register"] .landing-auth-tabs button { height: 32px; }
  .landing-auth-dialog[data-auth-view="register"] .landing-auth-pane[data-landing-auth-pane="register"] { gap: 6px; }
  .landing-auth-dialog[data-auth-view="register"] .landing-auth-pane input { height: 30px; margin-top: 3px; }
  .landing-auth-dialog[data-auth-view="register"] .landing-code-row button { height: 30px; margin-top: 3px; }
  .landing-auth-dialog[data-auth-view="register"] .landing-auth-submit { height: 36px; margin-top: 8px; }
  .landing-auth-dialog[data-auth-view="register"] .landing-agreement-box { margin-top: 6px; padding: 6px 8px; }
  .landing-auth-dialog[data-auth-view="register"] .landing-agreement-box label { font-size: 9px; }
  .landing-auth-dialog[data-auth-view="register"] .landing-privacy-check { margin-top: 5px; font-size: 9px; }
}
