:root {
  color-scheme: light;
  --bg: #f4f5f7;
  --panel: #ffffff;
  --ink: #141922;
  --muted: #667084;
  --line: #e4e7ee;
  --line-strong: #cad1dc;
  --blue: #2667ff;
  --green: #12a56f;
  --red: #d92828;
  --purple: #7467f0;
  --lime: #d7ff68;
  --shadow: 0 18px 42px rgba(17, 24, 39, .08);
  --lift-shadow: 0 18px 34px rgba(17, 24, 39, .13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 62% 11%, rgba(38, 103, 255, .08), transparent 24rem),
    linear-gradient(180deg, #f8f9fb 0%, var(--bg) 48%, #eef1f6 100%);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: var(--muted);
}

.boot-screen img {
  width: 142px;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 56px;
  align-items: center;
  width: min(1120px, calc(100vw - 56px));
  margin: 0 auto;
  padding: 42px 0;
}

.auth-brand {
  max-width: 660px;
}

.auth-logo-row {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}

.auth-logo-row img {
  width: 78px;
  height: 50px;
  object-fit: contain;
  background: #fff;
}

.auth-logo-row b,
.auth-logo-row span {
  display: block;
}

.auth-logo-row b {
  font-size: 18px;
}

.auth-logo-row span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.auth-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-brand h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 4.8vw, 62px);
  line-height: 1.06;
  letter-spacing: 0;
}

.auth-brand p {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.auth-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.auth-points div {
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}

.auth-points b,
.auth-points span {
  display: block;
}

.auth-points b {
  margin-bottom: 6px;
}

.auth-points span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.auth-preview {
  width: min(620px, 100%);
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 24px 60px rgba(15, 23, 42, .09);
  overflow: hidden;
}

.preview-head {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: #647087;
  font-size: 12px;
}

.preview-head span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #c8d0dc;
}

.preview-head b {
  margin-left: auto;
}

.preview-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 14px 0;
}

.preview-tabs i {
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eef2f7;
  color: #536073;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.preview-tabs i:first-child {
  background: #111827;
  color: #fff;
}

.preview-body {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 14px;
  padding: 14px;
}

.preview-upload {
  min-height: 138px;
  display: grid;
  place-items: center;
  border: 1px dashed #c6d0de;
  border-radius: 8px;
  background: #f9fafc;
  color: #667084;
  font-size: 13px;
  font-weight: 800;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.preview-grid span {
  min-height: 64px;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(38, 103, 255, .12), rgba(18, 165, 111, .10)),
    #fff;
}

.preview-bars {
  display: grid;
  gap: 8px;
  padding: 0 14px 16px;
}

.preview-bars span {
  height: 8px;
  border-radius: 999px;
  background: #dfe5ee;
}

.preview-bars span:nth-child(1) {
  width: 72%;
  background: #2667ff;
}

.preview-bars span:nth-child(2) {
  width: 48%;
  background: #12a56f;
}

.preview-bars span:nth-child(3) {
  width: 58%;
  background: #d69a18;
}

.auth-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 28px 70px rgba(17, 24, 39, .12);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 10px;
  background: #eef2f7;
}

.auth-tabs button {
  height: 42px;
  border: 0;
  border-radius: 8px;
  color: #536073;
  background: transparent;
  font-weight: 900;
}

.auth-tabs button.is-active {
  color: #fff;
  background: #111827;
  box-shadow: 0 12px 22px rgba(17, 24, 39, .18);
}

.auth-form {
  display: grid;
  gap: 13px;
  padding: 26px;
}

.auth-form h2 {
  margin: 0 0 4px;
  font-size: 24px;
}

.auth-form p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

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

.field span {
  color: #354052;
  font-size: 13px;
  font-weight: 800;
}

.field input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 12px;
  outline: none;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(38, 103, 255, .12);
}

.captcha-row,
.email-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.captcha-image {
  width: 128px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  object-fit: contain;
}

.turnstile-box {
  min-height: 74px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: #f8fafc;
}

.primary,
.secondary,
.notice-trigger,
.read-btn,
.icon-btn {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 900;
  border: 1px solid var(--line);
  user-select: none;
}

.primary {
  color: #fff;
  border: 0;
  background: linear-gradient(180deg, #171d28 0%, #0c1017 100%);
  box-shadow: 0 13px 26px rgba(17, 21, 28, .22), inset 0 1px 0 rgba(255,255,255,.18);
}

.primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--lift-shadow);
}

.secondary {
  color: #1f2937;
  background: linear-gradient(180deg, #fff, #f7f9fc);
}

.logout-account {
  height: 34px;
  padding: 0 12px;
  color: var(--red);
  border-color: rgba(217, 40, 40, .2);
  background: linear-gradient(180deg, #fff, #fff5f5);
}

.logout-account:hover {
  border-color: rgba(217, 40, 40, .34);
  background: linear-gradient(180deg, #fffafa, #ffecec);
}

.ghost {
  min-height: 44px;
  padding: 0 14px;
}

.status {
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.status[data-tone="error"] {
  color: var(--red);
}

.status[data-tone="success"] {
  color: var(--green);
}

.status a {
  color: #1f4fd8;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100vw - 48px));
  margin: 0 auto;
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: #4c5668;
}

.notice-trigger {
  gap: 8px;
  height: 34px;
  padding: 0 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(244,247,252,.86));
  color: #1e2633;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
}

.notice-trigger:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(18,165,111,.12);
}

.badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  line-height: 1;
}

.shell {
  width: min(1120px, calc(100vw - 48px));
  margin: 0 auto;
}

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 470px;
  align-items: center;
  gap: 74px;
  padding: 78px 0 88px;
}

.nav-workbench {
  height: 34px;
  padding: 0 14px;
}

.home-hero-stack {
  display: grid;
  gap: 16px;
}

.hero-status-panel {
  border: 1px solid #dfe4ed;
  border-radius: 12px;
  padding: 22px;
  background:
    linear-gradient(140deg, rgba(215,255,104,.34), rgba(38,103,255,.10)),
    rgba(255,255,255,.88);
  box-shadow: var(--shadow);
}

.hero-entry-card {
  position: relative;
  overflow: hidden;
}

.workspace-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 14px;
  padding: 0 10px;
  border-radius: 999px;
  color: #111827;
  background: var(--lime);
  font-size: 12px;
  font-weight: 900;
}

.hero-status-panel h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
}

.hero-status-panel p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.quick-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.quick-entry-grid span {
  min-width: 0;
  border: 1px solid rgba(202,209,220,.9);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255,255,255,.72);
}

.quick-entry-grid b,
.quick-entry-grid small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.quick-entry-grid b {
  color: #111827;
  font-size: 17px;
}

.quick-entry-grid small {
  margin-top: 4px;
  color: #6b7485;
  font-size: 12px;
  font-weight: 800;
}

.hero-status-panel .primary {
  width: 100%;
  min-height: 42px;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #dfe3ea;
  color: #3f4756;
  background: rgba(255,255,255,.72);
  box-shadow: 0 10px 22px rgba(15,23,42,.04);
  font-size: 13px;
  font-weight: 800;
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.06;
  letter-spacing: 0;
}

.lead {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-actions .primary,
.hero-actions .secondary,
.nav .primary,
.cta .primary {
  height: 40px;
  padding: 0 18px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.chip {
  border: 1px solid #dfe3ea;
  border-radius: 8px;
  padding: 8px 12px;
  color: #4b5563;
  background: rgba(255,255,255,.7);
  font-size: 13px;
  font-weight: 700;
}

.studio-card {
  border: 1px solid #dfe4ed;
  border-radius: 10px;
  background: rgba(255,255,255,.76);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.studio-head {
  height: 48px;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-bottom: 1px solid #edf0f5;
  color: #6d7787;
  font-size: 12px;
}

.dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c9d0dc;
}

.studio-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 14px;
}

.tab {
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e9edf4;
  color: #697386;
  font-size: 12px;
  font-weight: 800;
}

.tab.active {
  color: #fff;
  background: #111827;
}

.studio-body {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 14px;
  padding: 0 14px 14px;
}

.upload,
.canvas-preview {
  min-height: 150px;
  border: 1px solid #e1e6ef;
  border-radius: 8px;
  background: rgba(250,251,253,.92);
}

.upload {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  color: #657184;
  font-size: 12px;
}

.upload strong {
  color: #303949;
}

.canvas-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 12px;
}

.mini-img {
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(38,103,255,.12), rgba(18,165,111,.10)),
    #f2f4f8;
}

.prompt {
  padding: 14px;
  border-top: 1px solid #edf0f5;
}

.prompt-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  color: #667084;
  font-size: 12px;
  font-weight: 800;
}

.bar {
  height: 7px;
  border-radius: 99px;
  background: #e8edf4;
  overflow: hidden;
  margin-top: 7px;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.bar:nth-child(3) span {
  width: 58%;
  background: var(--green);
}

.bar:nth-child(4) span {
  width: 73%;
  background: #db8a16;
}

.bar:nth-child(2) span {
  width: 86%;
}

section.shell {
  padding: 72px 0 0;
}

section h2 {
  max-width: 720px;
  margin: 10px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: 0;
}

.section-copy {
  max-width: 860px;
  margin: 14px 0 26px;
  color: var(--muted);
  line-height: 1.8;
}

.scenario-grid,
.feature-grid,
.workflow {
  display: grid;
  gap: 14px;
}

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

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

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

.card {
  min-height: 160px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.76);
  padding: 20px;
  box-shadow: 0 10px 26px rgba(15,23,42,.04);
}

.card strong,
.card p,
.card .meta {
  display: block;
}

.card strong {
  margin-bottom: 10px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: #657184;
  font-size: 14px;
  line-height: 1.7;
}

.meta {
  width: max-content;
  margin-top: 18px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #eef2f7;
  color: #4a5568;
  font-size: 12px;
  font-weight: 800;
}

.num {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 9px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.n2 { background: var(--green); }
.n3 { background: var(--purple); }
.n4 { background: #db8a16; }
.n5 { background: #0aa6b7; }
.n6 { background: #111827; }

.cta {
  margin-top: 76px;
  padding: 36px;
  border: 1px solid #dfe4ed;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(215,255,104,.42), rgba(38,103,255,.10)),
    #fff;
  box-shadow: var(--shadow);
}

.cta h2 {
  margin: 0;
}

.cta p {
  max-width: 620px;
  margin: 12px 0 20px;
  color: var(--muted);
  line-height: 1.8;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-actions .primary,
.cta-actions .secondary {
  min-height: 42px;
  padding: 0 18px;
}

footer {
  padding: 28px 0 42px;
  text-align: center;
  color: #8993a4;
  font-size: 12px;
}

.notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 24, 39, .38);
  backdrop-filter: blur(4px);
}

.notice-overlay.is-hidden {
  display: none;
}

.notice-modal {
  width: min(520px, 100%);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 32px 90px rgba(15,23,42,.26);
  overflow: hidden;
}

.notice-head,
.notice-meta-line,
.notice-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notice-head {
  height: 56px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  font-weight: 900;
}

.icon-btn,
.close {
  width: 32px;
  height: 32px;
  padding: 0;
  color: #778195;
  background: #fff;
}

.notice-meta-line {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  color: #6b7485;
  font-size: 13px;
  font-weight: 800;
}

.unread {
  color: var(--red);
}

.notice-content {
  padding: 26px 18px 30px;
  line-height: 1.8;
}

.notice-content h3 {
  margin: 0 0 16px;
  text-align: center;
  font-size: 22px;
}

.notice-content p {
  margin: 12px 0 0;
  color: #3f4858;
}

.notice-content .mark {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 201, 64, .32);
  font-weight: 900;
}

.notice-content .warn {
  color: var(--red);
  font-weight: 900;
}

.notice-foot {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: #f8fafc;
}

.read-btn {
  min-width: 56px;
  height: 34px;
  border: 0;
  color: #fff;
  background: var(--green);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  border-radius: 8px;
  padding: 11px 14px;
  color: #fff;
  background: #111827;
  box-shadow: var(--lift-shadow);
  transition: opacity .2s ease, transform .2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 980px) {
  .auth-screen,
  .hero {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    max-width: none;
  }

  .auth-preview {
    display: none;
  }

  .auth-points,
  .scenario-grid,
  .feature-grid,
  .quick-entry-grid,
  .workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav span:not(.notice-trigger):not(.primary) {
    display: none;
  }
}

@media (max-width: 620px) {
  .auth-screen,
  .shell,
  .topbar {
    width: min(100% - 28px, 1120px);
  }

  .auth-screen {
    padding: 28px 0;
  }

  .auth-logo-row {
    margin-bottom: 24px;
  }

  .auth-logo-row img {
    width: 64px;
    height: 42px;
  }

  .auth-points,
  .scenario-grid,
  .feature-grid,
  .quick-entry-grid,
  .workflow,
  .studio-tabs,
  .studio-body {
    grid-template-columns: 1fr;
  }

  .captcha-row,
  .email-row {
    grid-template-columns: 1fr;
  }

  .captcha-image {
    width: 100%;
  }

  .topbar {
    gap: 12px;
  }

  .nav-workbench {
    padding: 0 10px;
  }

  .notice-trigger {
    display: none;
  }

  .hero {
    padding-top: 42px;
    gap: 36px;
  }
}
