/* 两页共享的色板、容器和动效；场景不影响文档的阅读顺序。 */
:root {
  color-scheme: dark;
  --ink: #fff;
  --muted: #c7c1d9;
  --orange: #f6821f;
  --peach: #ffb984;
  --night: #0b0b12;
  --line: #ffffff23;
  --header-height: 76px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--night);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
:focus-visible { outline: 2px solid var(--peach); outline-offset: 4px; }
::selection { color: #1d1d20; background: var(--peach); }
.entry-width { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.entry-header { position: relative; z-index: 2; border-bottom: 1px solid var(--line); background: #0b0b12; }
.entry-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-height); }
.entry-brand { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; font-size: 22px; font-weight: 760; }
.entry-brand img { display: block; object-fit: contain; flex-shrink: 0; }
.entry-icon { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.entry-cta {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 43px; padding: 0 17px; border: 1px solid #ffbc8a; border-radius: 6px;
  color: #261408; background: var(--orange);
  font-size: 14px; font-weight: 750; text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.entry-cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, #ffffff60 50%, transparent 68%);
  transform: translateX(-110%);
}
.entry-cta:hover:not(:disabled) { background: #fba55c; transform: translateY(-2px); box-shadow: 0 7px 22px #f6821f40; }
.entry-cta:hover:not(:disabled)::after { transform: translateX(110%); transition: transform 480ms ease; }
.entry-cta:active:not(:disabled) { transform: translateY(0); }
.entry-nav .entry-cta .entry-icon { width: 16px; height: 16px; margin-left: 5px; }
.entry-stage { position: relative; isolation: isolate; overflow: hidden; background: #171025; }
.network-scene, .network-scene > *, .network-scene canvas { position: absolute; inset: 0; pointer-events: none; }
.network-scene { z-index: -1; overflow: hidden; background: linear-gradient(120deg, #0b0b12 5%, #1a1228 46%, #2f1a4a 80%, #301c38); }
.network-grid {
  background: radial-gradient(circle, #cfb8e540 0.65px, transparent 1.15px) 0 0 / 23px 23px;
  mask-image: linear-gradient(120deg, transparent 5%, #000 45%, #000 83%, transparent);
  transform: scale(1.04);
}
.network-haze {
  background: radial-gradient(ellipse at 81% 63%, #e7813849, transparent 48%),
    radial-gradient(ellipse at 65% 92%, #8e4ca968, transparent 54%);
  transform: scale(1.08);
  animation: drift 19s ease-in-out infinite alternate;
}
.network-horizon {
  background:
    linear-gradient(90deg, #0b0b12aa 0%, #100b18aa 28%, transparent 60%),
    linear-gradient(0deg, #120d1b 0%, transparent 19%);
}
.network-scene canvas { display: block; width: 100%; height: 100%; }
.network-scene > canvas + .network-horizon { z-index: 1; }
@keyframes drift { to { transform: translate(2%, -3%) scale(1.18); opacity: .76; } }
.landing-layout { position: relative; display: flex; align-items: center; min-height: clamp(525px, calc(100svh - var(--header-height) - 90px), 865px); }
.landing-copy { padding-block: 37px 48px; max-width: 590px; }
.copy-rule { width: 48px; height: 3px; background: linear-gradient(90deg, #f38020, #ffb984); margin-bottom: 26px; }
.landing-copy h1 { margin: 0; font-size: 68px; line-height: 1.13; font-weight: 790; overflow-wrap: anywhere; }
.landing-copy h1 span { display: block; color: var(--peach); }
.landing-copy p { color: var(--muted); margin: 25px 0 0; max-width: 365px; font-size: 17px; line-height: 1.8; }
.stage-index { position: absolute; right: 6px; bottom: 27px; display: flex; align-items: center; gap: 10px; color: #ffbc92; font-size: 11px; font-weight: 650; }
.stage-index span { width: 22px; height: 1px; background: #ffbc9270; }
.capabilities { border-block: 1px solid var(--line); background: #1d1d20; }
.capability-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
.capability-grid article { padding: 24px 29px 26px; border-inline-start: 1px solid var(--line); }
.capability-grid article:first-child { padding-inline-start: 0; border-inline-start: none; }
.capability-grid .entry-icon { float: left; width: 25px; height: 25px; margin: 1px 12px 0 0; color: var(--orange); }
.capability-grid h2 { margin: 0; font-size: 21px; line-height: 1.3; }
.capability-grid p { clear: both; margin: 9px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.landing-footer { display: flex; justify-content: space-between; gap: 12px; padding-block: 24px; font-size: 13px; color: var(--muted); }
.login-body { min-height: 100svh; display: flex; flex-direction: column; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; text-decoration: none; }
.back-link:hover, .auth-options a:hover, .auth-links a:hover { color: var(--peach); text-decoration: underline; text-underline-offset: 4px; }
.login-stage { flex: 1; display: grid; align-items: center; }
.login-stage .network-scene { background: linear-gradient(140deg, #0b0b12 7%, #281e3b 54%, #171021 92%); }
.login-stage .network-haze { background: radial-gradient(ellipse at 26% 66%, #e77a3a45, transparent 53%), radial-gradient(ellipse at 42% 20%, #5c338460, transparent 65%); }
.login-stage .network-horizon { background: linear-gradient(90deg, transparent 26%, #140d2299 66%), linear-gradient(0deg, #120d1b 0%, transparent 23%); }
.login-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 450px); align-items: center; gap: 56px; padding-block: 32px; }
.login-copy { align-self: end; padding: 18px 0 30px; text-shadow: 0 3px 16px #0b0b12; }
.login-copy .copy-rule { margin-bottom: 16px; }
.login-copy p { margin: 0 0 8px; font-weight: 760; font-size: 32px; line-height: 1.3; }
.login-copy > span { color: #e6d9ed; font-size: 14px; }
.auth-card {
  width: 100%; padding: 34px; min-width: 0; border-radius: 8px;
  border: 1px solid #ff9d635e; background: rgba(45,26,74,.55); backdrop-filter: blur(20px);
  box-shadow: 0 18px 56px #0b0b128a;
}
.auth-heading h1 { margin: 0; font-size: 28px; font-weight: 780; line-height: 1.3; overflow-wrap: anywhere; }
.auth-heading p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.auth-form { display: grid; gap: 17px; margin-top: 24px; }
.auth-field label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 640; }
.field-input {
  min-height: 46px; display: flex; align-items: center; gap: 9px;
  padding-left: 12px; border: 1px solid #d3bfef49; border-radius: 6px; background: #0d0b18af;
}
.field-input > .entry-icon { color: #bfb3d5; }
.field-input:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px #f6821f40; }
.field-input:has([aria-invalid="true"]) { border-color: #ffa6a0; }
.field-input input { width: 100%; min-width: 0; align-self: stretch; border: 0; outline: none; background: transparent; color: white; caret-color: var(--peach); padding: 0 11px 0 0; font-size: 16px; }
.field-input input::placeholder { color: #b4a9c8; }
.password-toggle { display: grid; place-items: center; align-self: stretch; width: 43px; flex: none; border: 0; border-radius: 6px; color: #c7c1d9; background: transparent; }
.password-toggle:hover { color: var(--peach); }
.password-toggle:focus-visible { outline-offset: -3px; }
.auth-options { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; font-size: 13px; }
.auth-options a, .auth-links a { color: #f1c3a3; text-underline-offset: 3px; }
.remember { display: inline-flex; align-items: center; gap: 7px; color: #ece5f5; min-height: 26px; cursor: pointer; }
.remember input { margin: 0; width: 16px; height: 16px; accent-color: var(--orange); }
.auth-submit { min-height: 46px; width: 100%; gap: 9px; }
.submit-spinner { display: none; width: 16px; height: 16px; border: 2px solid #26140847; border-top-color: #261408; border-radius: 50%; }
[aria-busy="true"] .submit-spinner { display: block; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.field-error, .auth-error { color: #ffd1cb; margin: 5px 0 0; font-size: 13px; line-height: 1.45; }
.auth-error { margin: 0; padding: 9px 11px; background: #601f2f65; border: 1px solid #de777777; border-radius: 6px; }
.auth-links { display: flex; gap: 18px; justify-content: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.info-dialog { width: min(410px, calc(100% - 32px)); padding: 24px; color: var(--ink); background: #281e3b; border: 1px solid #ff9d6385; border-radius: 8px; box-shadow: 0 12px 46px #0008; }
.info-dialog::backdrop { background: #0b0b12bb; }
.info-dialog h2 { margin: 0; font-size: 21px; }
.info-dialog p { margin: 13px 0 20px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.info-dialog form { display: flex; justify-content: flex-end; }
@media (max-width: 1120px) {
  .entry-width { width: calc(100% - 64px); }
  .landing-copy h1 { font-size: 54px; }
  .login-layout { gap: 28px; grid-template-columns: minmax(0, 1fr) minmax(0, 410px); }
}
@media (max-width: 760px) {
  :root { --header-height: 62px; }
  .entry-width { width: calc(100% - 36px); }
  .entry-brand { gap: 7px; font-size: 17px; }
  .entry-brand img { width: 30px; height: 30px; }
  .entry-nav .entry-cta { min-height: 39px; padding-inline: 10px; font-size: 12px; }
  .entry-nav .entry-cta .entry-icon { margin-left: 2px; width: 14px; height: 14px; }
  .landing-layout { align-items: start; justify-content: center; text-align: center; min-height: clamp(421px, calc(100svh - var(--header-height) - 72px), 760px); }
  .landing-copy { padding: 32px 0 0; }
  .landing-copy .copy-rule { margin: 0 auto 14px; }
  .landing-copy h1 { font-size: 38px; }
  .landing-copy p { font-size: 14px; margin: 12px auto 0; max-width: 310px; }
  .network-horizon { background: linear-gradient(0deg, #120d1b 0%, transparent 22%, transparent 72%, #100b188c); }
  .stage-index { right: 50%; transform: translateX(50%); bottom: 16px; white-space: nowrap; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid article, .capability-grid article:first-child { padding: 14px 0; border-inline-start: 0; }
  .capability-grid article + article { border-top: 1px solid var(--line); }
  .capability-grid .entry-icon { width: 21px; height: 21px; }
  .capability-grid h2 { font-size: 18px; }
  .capability-grid p { margin-top: 6px; }
  .login-layout { max-width: 450px; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 14px; padding-block: 18px; }
  .login-copy { padding: 0; text-align: center; }
  .login-copy .copy-rule { display: none; }
  .login-copy p { font-size: 17px; margin: 0; }
  .login-copy > span { display: none; }
  .login-stage .network-horizon { background: linear-gradient(0deg, #0b0b1270, transparent 55%, #140d2255); }
  .auth-card { padding: 21px; }
  .auth-heading h1 { font-size: 23px; }
  .auth-form { margin-top: 17px; gap: 12px; }
  .auth-links { margin-top: 14px; padding-top: 12px; }
}
@media (max-width: 380px) {
  .landing-copy h1 { font-size: 32px; }
  .auth-card { padding: 16px; }
  .auth-heading h1 { font-size: 21px; }
}
@media (max-height: 620px) and (min-width: 761px) {
  .login-layout { padding-block: 17px; }
  .auth-card { padding-block: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .network-grid, .network-haze, .network-horizon, .network-scene canvas { display: none; }
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
  .entry-cta:hover:not(:disabled) { transform: none; }
}
