:root {
  color-scheme: light;
  --ink: #142d45;
  --muted: #50677b;
  --line: #dbe5ee;
  --canvas: #f3f7fb;
  --white: #fff;
  --blue: #185fa5;
  --navy: #102d49;
  --ice: #e7f1fb;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
p, h1, h2, h3 { margin: 0; }
a { color: var(--blue); }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #2270bf; outline-offset: 3px; }
.muted { color: var(--muted); }
.brand { display: flex; gap: 12px; align-items: center; font-weight: 750; letter-spacing: .04em; }
.brand-mark { width: 45px; height: 45px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #ffffff54; border-radius: 14px; background: #ffffff17; }
.brand small, .account small { display: block; font-weight: 400; font-size: .79rem; }
.brand small { color: #b5cce2; margin-top: 1px; }
.eyebrow { font-size: .84rem; font-weight: 700; letter-spacing: .09em; }

.login-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.login-visual {
  overflow: hidden;
  position: relative;
  color: var(--white);
  min-height: 710px;
  background: radial-gradient(ellipse at 81% 80%, #205882, transparent 66%), linear-gradient(145deg, #132f4e, #0c233b);
  padding: clamp(36px, 6vw, 92px);
}
.login-visual::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(#a4d9ff0e 1px, transparent 1px), linear-gradient(90deg, #a4d9ff0e 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(transparent 15%, #000); }
.login-visual > * { position: relative; z-index: 1; }
.visual-copy { margin-top: clamp(70px, 11vh, 124px); }
.visual-copy .eyebrow { color: #9fc9ef; font-family: system-ui, sans-serif; letter-spacing: .19em; }
.visual-copy h2 { font-size: clamp(2.3rem, 4.15vw, 4rem); line-height: 1.22; margin: 16px 0; letter-spacing: -.035em; }
.visual-copy > p:last-child { color: #cfdfed; }
.visual-figure { width: min(92%, 420px); height: 265px; margin: 28px auto 0; pointer-events: none; }
.orbit, .figure-core, .figure-label { position: absolute; }
.orbit { border: 1px solid #9dd5ff51; border-radius: 50%; left: 50%; top: 52%; translate: -50% -50%; }
.orbit-large { width: 100%; height: 58%; rotate: -17deg; }
.orbit-mid { width: 81%; height: 49%; rotate: -17deg; }
.orbit-small { width: 66%; height: 61%; rotate: 26deg; border-style: dashed; }
.figure-core { left: 50%; top: 48%; translate: -50% -50%; width: 124px; height: 124px; border-radius: 30px; display: grid; place-items: center; color: #d6efff; background: #144367; border: 1px solid #8fc7f4a0; box-shadow: 0 0 38px #72bafa45; }
.figure-label { border: 1px solid #8fc7f476; border-radius: 8px; padding: 5px 12px; font-size: .82rem; color: #d6efff; background: #163d5e; }
.figure-label-in { left: 2%; top: 62%; }
.figure-label-move { left: 21%; top: 20%; }
.figure-label-use { right: 1%; top: 32%; }
.login-side { background: var(--white); display: grid; grid-template-rows: 1fr auto; align-items: center; justify-items: center; min-width: 0; padding: 44px clamp(24px, 6vw, 88px) 25px; }
.login-card { width: min(100%, 390px); }
.login-symbol, .module-icon { display: grid; place-items: center; width: 48px; height: 48px; color: var(--blue); background: var(--ice); border-radius: 12px; }
.login-card h1 { font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.2; margin: 19px 0 11px; }
.login-card form { margin-top: 29px; }
.login-card label { display: block; font-size: .93rem; font-weight: 700; margin: 0 0 8px; }
.login-card input:not([type="hidden"]) { display: block; width: 100%; height: 50px; padding: 0 14px; border: 1px solid #b6c7d6; border-radius: 9px; background: #fbfdff; color: var(--ink); margin-bottom: 20px; }
.login-card input::placeholder { color: #596e80; }
.primary-button { width: 100%; min-height: 51px; border: 0; border-radius: 9px; margin-top: 6px; background: var(--blue); color: var(--white); font-weight: 700; transition: background .18s; }
.primary-button:hover { background: #124e89; }
.login-help, .login-side footer { color: var(--muted); font-size: .86rem; }
.login-help { margin-top: 19px; }
.login-side footer { text-align: center; }
.notice { margin: 12px 0; padding: 10px 13px; border-radius: 8px; background: var(--ice); color: var(--ink); }
.notice-error { background: #fff0ef; color: #9b3028; }

.workspace-layout { min-height: 100vh; display: grid; grid-template-columns: 228px minmax(0, 1fr); }
.sidebar { background: var(--navy); color: var(--white); padding: 26px 16px; }
.sidebar .brand { padding-left: 8px; }
.sidebar nav { display: grid; gap: 7px; margin-top: 36px; }
.sidebar nav a { display: flex; gap: 11px; align-items: center; min-height: 46px; text-decoration: none; border: 1px solid transparent; border-radius: 8px; padding: 9px 12px; color: #d1dfed; font-size: .93rem; }
.sidebar nav a:hover, .sidebar nav a[aria-current="page"] { background: #214b73; color: var(--white); border-color: #467399; }
.sidebar a:focus-visible { outline-color: #9fd4ff; }
.topbar { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px clamp(18px, 3vw, 44px); color: var(--muted); background: var(--white); border-bottom: 1px solid var(--line); font-size: .89rem; }
.account { display: flex; align-items: center; gap: 9px; min-width: 0; }
.account-icon { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--ice); color: var(--blue); font-weight: 700; }
.account-name { max-width: 150px; overflow-wrap: anywhere; color: var(--ink); }
.account small { color: var(--muted); }
.logout { display: flex; align-items: center; gap: 5px; min-height: 44px; white-space: nowrap; border: 0; border-radius: 7px; color: var(--muted); background: none; padding: 0 8px; }
.logout:hover { background: var(--ice); color: var(--blue); }
.workspace-content { max-width: 1480px; margin: auto; padding: 32px clamp(18px, 3vw, 44px) 54px; }
.workspace-heading { display: flex; gap: 14px; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.workspace-heading h1 { font-size: clamp(1.8rem, 3vw, 2.35rem); line-height: 1.25; }
.workspace-heading p { margin-top: 7px; color: var(--muted); }
.status, .pending { display: inline-flex; gap: 7px; align-items: center; border-radius: 20px; padding: 5px 10px; white-space: nowrap; font-size: .82rem; font-weight: 650; }
.status { color: #246448; background: #e3f4eb; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #2c7e58; }
.pending { color: #4c6174; background: #eaf0f6; }
.intro { color: var(--white); border-radius: 16px; background: radial-gradient(ellipse at 100% 55%, #285a88, transparent 71%), var(--navy); padding: clamp(23px, 3.2vw, 41px); }
.intro .eyebrow { color: #9fc9ef; }
.intro h2 { font-size: clamp(1.55rem, 2.5vw, 2.05rem); margin: 5px 0; }
.intro p:last-child { color: #d1e3f2; }
.steps { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 23px 0 0; }
.steps li { padding: 6px 11px; border-radius: 7px; border: 1px solid #b2d9ff54; background: #ffffff12; font-size: .88rem; }
.module-list { margin-top: 29px; }
.module-list h2, .detail h2 { margin-bottom: 14px; font-size: 1.25rem; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.module-card, .detail { background: var(--white); border: 1px solid var(--line); border-radius: 13px; padding: clamp(16px, 2.05vw, 26px); }
.module-card { display: flex; flex-direction: column; }
.module-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.module-card h3 { margin-top: 14px; font-size: 1.13rem; }
.module-card p { color: var(--muted); margin: 7px 0 13px; font-size: .92rem; flex: 1; }
.module-card a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; align-self: flex-start; text-decoration: none; font-size: .92rem; font-weight: 700; }
.module-card a:hover { text-decoration: underline; }
.detail dl { margin: 0; }
.detail dl div { padding: 15px 0; border-top: 1px solid var(--line); }
.detail dt { font-weight: 700; }
.detail dd { margin: 3px 0 0; color: var(--muted); }

@media (max-width: 960px) {
  .workspace-layout { grid-template-columns: 184px minmax(0, 1fr); }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .login-layout, .workspace-layout { display: block; }
  .login-visual { min-height: 0; padding: 23px 24px; }
  .visual-copy, .visual-figure { display: none; }
  .login-side { min-height: calc(100vh - 91px); min-height: calc(100dvh - 91px); gap: 36px; }
  .sidebar { padding: 14px; }
  .sidebar nav { display: flex; flex-wrap: wrap; margin-top: 12px; gap: 5px; }
  .sidebar nav a { padding-inline: 8px; gap: 5px; }
  .topbar { font-size: .83rem; }
  .account-icon { display: none; }
  .account-name { max-width: 75px; }
}
@media (max-width: 460px) {
  .module-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
