:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --bg-accent: #dfeafb;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --surface-soft: #eef4fb;
  --surface-dark: #17324d;
  --text: #102235;
  --text-muted: #5f7287;
  --text-soft: #7d8d9d;
  --line: rgba(16, 34, 53, 0.1);
  --line-strong: rgba(16, 34, 53, 0.16);
  --primary: #2f6fed;
  --primary-deep: #1848ad;
  --secondary: #0ea5a4;
  --accent: #ff8a3d;
  --success: #1c9b61;
  --danger: #d14c45;
  --warning: #c97a14;
  --shadow-xl: 0 26px 70px rgba(32, 65, 102, 0.14);
  --shadow-lg: 0 14px 34px rgba(32, 65, 102, 0.1);
  --shadow-sm: 0 8px 18px rgba(32, 65, 102, 0.06);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --font-display: "Noto Sans SC", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  --font-body: "Noto Sans SC", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  --font-mono: "Cascadia Code", "Consolas", monospace;
  --max-width: 1360px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  background:
    radial-gradient(circle at 0% 0%, rgba(47, 111, 237, 0.16), transparent 24%),
    radial-gradient(circle at 92% 12%, rgba(14, 165, 164, 0.14), transparent 20%),
    radial-gradient(circle at 50% 100%, rgba(255, 138, 61, 0.12), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 44%, var(--bg-accent) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.6) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: radial-gradient(circle at center, black, transparent 84%);
  opacity: 0.35;
}

a,
button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
.button,
.nav-link,
.list-card,
.feature-link {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

button:hover,
.button:hover,
.nav-link:hover,
.list-card:hover,
.feature-link:hover {
  transform: translateY(-2px);
}

button:active,
.button:active,
.nav-link:active,
.list-card:active,
.feature-link:active {
  transform: scale(0.985);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.nav-link:focus-visible,
.list-card:focus-visible {
  outline: 3px solid rgba(47, 111, 237, 0.26);
  outline-offset: 3px;
}

.page-shell {
  width: min(var(--max-width), calc(100vw - 28px));
  margin: 0 auto;
  padding: 22px 0 42px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-badge,
.tag,
.status-badge,
.mini-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(47, 111, 237, 0.08);
  border: 1px solid rgba(47, 111, 237, 0.08);
  color: var(--primary-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-badge {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(47, 111, 237, 0.28);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-copy span {
  font-size: 12px;
  color: var(--text-soft);
}

.nav,
.button-row,
.meta-row,
.split-line {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
}

.button.is-static {
  cursor: default;
  transform: none;
}

.button.is-static:hover,
.button.is-static:active {
  transform: none;
}

.nav-link,
.button.secondary,
.button.ghost {
  background: rgba(16, 34, 53, 0.04);
  border-color: rgba(16, 34, 53, 0.06);
  color: var(--text);
}

.nav-link.active,
.button.primary {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(47, 111, 237, 0.22);
}

.button.ghost {
  background: transparent;
}

.hero-grid,
.workspace-grid,
.bento-grid,
.dual-grid,
.auth-grid {
  display: grid;
  gap: 22px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  margin-bottom: 22px;
}

.workspace-grid {
  grid-template-columns: 380px minmax(0, 1fr);
  align-items: start;
}

.bento-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dual-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-grid {
  width: min(1120px, calc(100vw - 28px));
  margin: 20px auto;
  grid-template-columns: 0.96fr 1.04fr;
  overflow: hidden;
}

.panel,
.hero-panel,
.spotlight-panel,
.auth-shell,
.subpanel,
.list-card,
.sentence-card,
.feature-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.panel,
.hero-panel,
.spotlight-panel,
.auth-shell {
  border-radius: var(--radius-xl);
}

.subpanel,
.list-card,
.sentence-card,
.feature-card {
  border-radius: var(--radius-lg);
}

.hero-panel,
.panel,
.spotlight-panel,
.auth-pane {
  position: relative;
  overflow: hidden;
  padding: 28px;
}

.hero-panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(242, 248, 255, 0.82)),
    var(--surface);
}

.hero-panel::before,
.spotlight-panel::before {
  content: "";
  position: absolute;
  inset: auto auto -70px -70px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 164, 0.14), transparent 70%);
  pointer-events: none;
}

.hero-panel::after {
  content: attr(data-mark);
  position: absolute;
  right: 20px;
  bottom: -20px;
  font-family: var(--font-display);
  font-size: clamp(72px, 11vw, 148px);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(16, 34, 53, 0.05);
  pointer-events: none;
}

.spotlight-panel {
  background:
    linear-gradient(180deg, rgba(23, 50, 77, 0.96), rgba(28, 62, 96, 0.94));
  color: #eff6ff;
}

.spotlight-panel .tag,
.spotlight-panel .mini-tag {
  color: #d7ebff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

.spotlight-panel .helper,
.spotlight-panel .metric-label,
.spotlight-panel .soft {
  color: rgba(239, 246, 255, 0.72);
}

.display {
  margin: 14px 0 14px;
  max-width: 12ch;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.section-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.lede {
  margin: 0;
  max-width: 58ch;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.85;
}

.metric-stack,
.stack,
.timeline,
.detail-stack,
.sentence-stack,
.list-stack,
.form-stack {
  display: grid;
  gap: 14px;
}

.metric-row {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(239, 246, 255, 0.14);
}

.metric-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.metric-row span,
.metric-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metric-row strong,
.stat-card strong,
.big-number {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  font-weight: 800;
}

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

.stat-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-card,
.subpanel,
.sentence-card {
  padding: 22px;
}

.feature-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(242, 248, 255, 0.86));
}

.build-notice {
  display: grid;
  grid-template-columns: minmax(280px, 0.76fr) minmax(0, 1.24fr);
  gap: 18px;
  align-items: stretch;
  margin: 0 0 22px;
}

.build-status,
.build-flow {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.build-status {
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 245, 234, 0.82)),
    var(--surface);
}

.build-status h2 {
  margin: 16px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.build-status p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.85;
}

.build-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
}

.build-flow li {
  position: relative;
  min-height: 210px;
  padding: 24px 20px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.78));
}

.build-flow li:last-child {
  border-right: 0;
}

.build-flow li::after {
  content: "";
  position: absolute;
  top: 38px;
  right: -8px;
  width: 16px;
  height: 16px;
  border-top: 2px solid rgba(47, 111, 237, 0.36);
  border-right: 2px solid rgba(47, 111, 237, 0.36);
  transform: rotate(45deg);
  background: rgba(247, 251, 255, 0.9);
  z-index: 1;
}

.build-flow li:last-child::after {
  display: none;
}

.build-flow span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(47, 111, 237, 0.2);
}

.build-flow strong {
  display: block;
  margin-top: 18px;
  font-size: 17px;
}

.build-flow p {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.feature-card h2,
.subpanel h2,
.panel-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-card p,
.subpanel p,
.sentence-card p {
  margin: 0;
}

.focus-box {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(47, 111, 237, 0.12);
  background:
    linear-gradient(180deg, rgba(47, 111, 237, 0.06), rgba(14, 165, 164, 0.04)),
    #ffffff;
  box-shadow: var(--shadow-sm);
}

.list-card {
  padding: 18px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  cursor: pointer;
}

.list-card.active {
  border-color: rgba(47, 111, 237, 0.28);
  box-shadow: 0 18px 36px rgba(47, 111, 237, 0.12);
  background: linear-gradient(180deg, #f7fbff, #edf5ff);
}

.status-badge {
  min-width: 92px;
}

.status-badge.success {
  color: var(--success);
  background: rgba(28, 155, 97, 0.1);
}

.status-badge.danger {
  color: var(--danger);
  background: rgba(209, 76, 69, 0.1);
}

.status-badge.warn {
  color: var(--warning);
  background: rgba(201, 122, 20, 0.12);
}

.status-badge.neutral {
  color: var(--text-muted);
  background: rgba(16, 34, 53, 0.06);
}

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

.key-card {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.key-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.empty-state,
.note {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line-strong);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.52);
  text-align: center;
}

.field {
  display: grid;
  gap: 8px;
}

.field label,
.field span {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.input,
select,
textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

textarea {
  min-height: 180px;
  resize: vertical;
}

.input::placeholder,
textarea::placeholder {
  color: var(--text-soft);
}

.helper,
.soft,
.message {
  font-size: 14px;
}

.helper,
.soft {
  color: var(--text-muted);
}

.message {
  min-height: 22px;
}

.message.error {
  color: var(--danger);
}

.message.success {
  color: var(--success);
}

.auth-shell {
  background: var(--surface);
}

.auth-pane {
  padding: 34px;
}

.auth-pane.brand-side {
  background:
    radial-gradient(circle at 100% 0%, rgba(14, 165, 164, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(47, 111, 237, 0.08), rgba(255, 138, 61, 0.06)),
    #f7fbff;
}

.auth-pane h1 {
  margin: 14px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 68px);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.timeline-step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.timeline-index {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(47, 111, 237, 0.08);
  font-weight: 800;
}

.timeline-step.done {
  border-color: rgba(28, 155, 97, 0.22);
}

.timeline-step.active {
  border-color: rgba(47, 111, 237, 0.24);
  background: rgba(47, 111, 237, 0.06);
}

.timeline-step.error {
  border-color: rgba(209, 76, 69, 0.24);
  background: rgba(209, 76, 69, 0.06);
}

.task-ledger {
  max-height: calc(100vh - 290px);
  overflow: auto;
  padding-right: 4px;
}

.task-ledger::-webkit-scrollbar {
  width: 10px;
}

.task-ledger::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(16, 34, 53, 0.12);
}

.footer-note {
  margin-top: 20px;
  color: var(--text-soft);
  font-size: 14px;
}

.site-record-footer {
  width: min(var(--max-width), calc(100vw - 28px));
  margin: 0 auto;
  padding: 0 0 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-soft);
  font-size: 13px;
  text-align: center;
}

.site-record-footer a {
  color: var(--text-muted);
}

.site-record-footer a:hover {
  color: var(--primary-deep);
}

.site-record-footer .record-muted {
  color: rgba(95, 114, 135, 0.58);
}

.mono,
pre,
code {
  font-family: var(--font-mono);
}

pre,
textarea.output {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.7;
}

@keyframes lift-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-panel,
.panel,
.feature-card,
.auth-shell {
  animation: lift-in 420ms ease both;
}

.maintenance-page {
  display: grid;
  min-height: 100vh;
  grid-template-rows: 1fr auto;
  place-items: center;
}

.maintenance-shell {
  width: min(1180px, calc(100vw - 32px));
  padding: 32px 0;
}

.maintenance-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  gap: 30px;
  align-items: center;
  min-height: min(760px, calc(100vh - 64px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(242, 248, 255, 0.84)),
    var(--surface);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(18px);
  animation: lift-in 420ms ease both;
}

.maintenance-copy {
  position: relative;
  z-index: 1;
  padding: 46px 0 46px 46px;
}

.maintenance-copy h1 {
  margin: 22px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 112px);
  line-height: 0.92;
  letter-spacing: 0;
}

.maintenance-copy p {
  max-width: 34em;
  margin: 0;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.9;
}

.maintenance-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.maintenance-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(16, 34, 53, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.maintenance-visual {
  align-self: stretch;
  min-height: 420px;
  margin: 0;
}

.maintenance-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@media (max-width: 1120px) {
  .hero-grid,
  .workspace-grid,
  .bento-grid,
  .dual-grid,
  .auth-grid,
  .build-notice {
    grid-template-columns: 1fr;
  }

  .build-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .build-flow li:nth-child(2) {
    border-right: 0;
  }

  .build-flow li:nth-child(2)::after {
    display: none;
  }

  .maintenance-hero {
    grid-template-columns: 1fr;
  }

  .maintenance-copy {
    padding: 34px 34px 0;
  }

  .maintenance-visual {
    min-height: 360px;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(var(--max-width), calc(100vw - 18px));
    padding-top: 14px;
    padding-bottom: 28px;
  }

  .topbar {
    position: static;
    border-radius: 28px;
  }

  .hero-panel,
  .panel,
  .spotlight-panel,
  .auth-pane {
    padding: 22px;
  }

  .display,
  .section-title,
  .auth-pane h1 {
    font-size: clamp(34px, 11vw, 52px);
  }

  .stat-grid,
  .key-grid {
    grid-template-columns: 1fr;
  }

  .build-status {
    padding: 22px;
  }

  .build-flow {
    grid-template-columns: 1fr;
  }

  .build-flow li {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .build-flow li:last-child {
    border-bottom: 0;
  }

  .build-flow li::after {
    display: none;
  }

  .timeline-step {
    grid-template-columns: auto 1fr;
  }

  .task-ledger {
    max-height: none;
  }

  .site-record-footer {
    width: min(var(--max-width), calc(100vw - 18px));
    padding-bottom: 18px;
    font-size: 12px;
  }

  .maintenance-shell {
    width: min(100vw - 18px, 1180px);
    padding: 14px 0;
  }

  .maintenance-hero {
    min-height: auto;
    border-radius: 28px;
  }

  .maintenance-copy {
    padding: 26px 22px 0;
  }

  .maintenance-copy h1 {
    font-size: clamp(44px, 16vw, 68px);
  }

  .maintenance-copy p {
    font-size: 16px;
  }

  .maintenance-visual {
    min-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
