:root {
  color-scheme: dark;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  --landing-text: #f7f8fb;
  --landing-muted: rgba(235, 240, 248, .75);
  --landing-line: rgba(255, 255, 255, .24);
  --landing-cyan: #14c7e9;
  --landing-blue: #258bf1;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: #17191b; }
body { min-height: 100vh; margin: 0; overflow-x: hidden; color: var(--landing-text); background: #17191b; }
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: -2; overflow: hidden; background: #252729; }
.landing-video { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.landing-scrim { z-index: 1; background: rgba(0, 0, 0, .42); }

.landing-header { position: fixed; top: 0; left: 0; right: 0; z-index: 10; height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(22px, 6vw, 122px); }
.landing-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.landing-brand img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.landing-brand strong { font-size: 20px; font-weight: 800; white-space: nowrap; }
.landing-top-start { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border: 1px solid rgba(20, 199, 233, .74); border-radius: 7px; color: #16c8ec; background: rgba(10, 34, 43, .32); font-size: 14px; font-weight: 800; transition: background .18s ease, color .18s ease, transform .18s ease; }
.landing-top-start:hover { color: #fff; background: rgba(20, 199, 233, .28); transform: translateY(-1px); }

.landing-page { position: relative; z-index: 2; min-height: 100vh; display: flex; flex-direction: column; padding: 76px clamp(22px, 4vw, 80px) 0; }
.landing-hero { min-height: min(600px, 64vh); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.landing-eyebrow { margin: 0 0 18px; color: rgba(255, 255, 255, .7); font-size: 11px; font-weight: 800; letter-spacing: 2px; }
.landing-hero h1 { max-width: 1200px; margin: 0; color: #fff; font-size: clamp(46px, 6vw, 88px); font-weight: 900; line-height: 1.05; text-shadow: 0 8px 25px rgba(0, 0, 0, .24); }
.landing-hero h1 span { color: #d67a9a; }
.landing-lede { max-width: 980px; margin: 28px 0 0; color: rgba(255, 255, 255, .88); font-size: clamp(15px, 1.45vw, 23px); line-height: 1.65; text-shadow: 0 3px 14px rgba(0, 0, 0, .4); }
.landing-hero-start { min-width: 224px; height: 60px; margin-top: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .7); border-radius: 999px; color: #fff; background: rgba(255, 255, 255, .1); font-size: 20px; font-weight: 800; box-shadow: 0 8px 28px rgba(0, 0, 0, .18); transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.landing-hero-start:hover { border-color: #fff; background: rgba(255, 255, 255, .22); transform: translateY(-2px); }

.landing-showcase-section { width: 100%; max-width: 1880px; margin: auto auto 0; padding: 18px 0 18px; }
.landing-showcase-heading { display: none; }
.landing-showcase { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 18px; }
.landing-showcase-card { position: relative; min-width: 0; aspect-ratio: 1.08 / 1; overflow: hidden; display: flex; align-items: flex-end; padding: 0; border: 1px solid rgba(255, 255, 255, .28); border-radius: 18px; color: #fff; background: rgba(21, 24, 28, .72); box-shadow: 0 15px 32px rgba(0, 0, 0, .24); cursor: pointer; text-align: left; transition: border-color .18s ease, transform .18s ease; }
.landing-showcase-card:hover { border-color: rgba(255, 255, 255, .72); transform: translateY(-4px); }
.landing-showcase-card img, .landing-showcase-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; background: rgba(35, 42, 48, .85); }
.landing-showcase-card::after { content: ""; position: absolute; inset: 45% 0 0; z-index: 1; background: rgba(0, 0, 0, .52); }
.landing-showcase-card div { position: relative; z-index: 2; width: 100%; padding: 16px 14px 14px; }
.landing-showcase-card strong { display: block; overflow: hidden; font-size: 15px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.landing-showcase-card span { display: block; margin-top: 5px; color: rgba(255, 255, 255, .7); font-size: 11px; }
.landing-showcase-placeholder::before, .landing-showcase-placeholder::after { content: ""; position: absolute; border: 1px solid rgba(255, 255, 255, .35); 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%; }

.landing-footer { min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 14px; color: rgba(210, 219, 232, .62); font-size: 12px; }
.landing-footer a:hover { color: #fff; }
.landing-footer-divider { width: 1px; height: 13px; background: rgba(255, 255, 255, .28); }

.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; }

@media (max-width: 1200px) {
  .landing-showcase { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .landing-hero { min-height: 520px; }
}
@media (max-width: 700px) {
  .landing-header { height: 64px; padding: 0 16px; }
  .landing-brand img { width: 34px; height: 34px; }
  .landing-brand strong { font-size: 16px; }
  .landing-top-start { min-height: 34px; padding: 0 12px; font-size: 12px; }
  .landing-page { padding: 64px 14px 0; }
  .landing-hero { min-height: 485px; }
  .landing-eyebrow { margin-bottom: 15px; font-size: 9px; }
  .landing-hero h1 { font-size: clamp(34px, 10vw, 56px); line-height: 1.15; }
  .landing-lede { margin-top: 20px; font-size: 13px; line-height: 1.7; }
  .landing-hero-start { min-width: 180px; height: 48px; margin-top: 28px; font-size: 16px; }
  .landing-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .landing-showcase-card { border-radius: 12px; }
  .landing-showcase-card div { padding: 11px 10px 10px; }
  .landing-showcase-card strong { font-size: 12px; }
  .landing-showcase-card span { font-size: 10px; }
  .landing-footer { min-height: 64px; gap: 9px; font-size: 10px; }
  .landing-auth-panel { width: calc(100vw - 20px); height: min(900px, calc(100vh - 20px)); padding: 18px 20px 12px; border-radius: 13px; }
}

.landing-code-row button:disabled { cursor: wait; opacity: .65; }
.landing-auth-pane.hidden { display: none; }
