:root {
  color-scheme: light;
  --navy: #083a89;
  --blue: #315fa9;
  --accent: #4e70df;
  --ink: #172235;
  --muted: #67748a;
  --line: #dbe1ea;
  --surface: #f4f6f9;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif; color: var(--ink); }
button, input { font: inherit; }
a { color: inherit; }

.login-body { min-height: 100vh; background: #edf0f4; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(300px, 24vw) 1fr; }
.software-sidebar { position: relative; min-height: 100vh; overflow: hidden; color: white; background: var(--navy); }
.sidebar-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.brand-lockup { position: relative; z-index: 1; display: flex; flex-direction: column; padding: 7vh 3.2vw 0; line-height: 1; }
.brand-lockup strong { font-size: 25px; letter-spacing: .08em; }
.brand-lockup span { font-size: 22px; font-weight: 700; letter-spacing: .05em; margin-top: 5px; }
.software-directory { position: absolute; z-index: 1; left: 2.2vw; right: 2.2vw; top: 50%; transform: translateY(-50%); display: grid; gap: 18px; }
.software-option { width: 100%; min-height: 62px; display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 12px; color: rgba(255,255,255,.82); background: rgba(4,42,104,.48); border: 1px solid rgba(255,255,255,.2); border-radius: 5px; padding: 10px 14px; text-align: left; cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; }
.software-option:hover { color: white; border-color: rgba(255,255,255,.55); transform: translateX(3px); }
.software-option.is-selected { color: white; background: rgba(255,255,255,.18); border-color: white; box-shadow: inset 4px 0 0 white; }
.option-index { font-family: Arial, sans-serif; font-size: 13px; opacity: .68; letter-spacing: .08em; }
.software-option span:last-child { font-size: 15px; line-height: 1.55; font-weight: 600; }
.sidebar-caption { position: absolute; z-index: 1; left: 3.2vw; bottom: 4vh; font-size: 12px; letter-spacing: .16em; color: rgba(255,255,255,.72); }

.login-content { min-height: 100vh; position: relative; display: grid; place-items: center; padding: 60px 8vw; background: #f4f5f7; }
.login-panel { width: min(440px, 100%); }
.login-kicker { margin: 0 0 14px; color: var(--accent); font: 700 12px/1.2 Arial, sans-serif; letter-spacing: .18em; }
.login-panel h1 { min-height: 72px; margin: 0; font-size: 28px; line-height: 1.45; font-weight: 500; color: #111b2d; }
.login-description { margin: 8px 0 34px; color: var(--muted); font-size: 14px; }
.form-error { margin-bottom: 18px; padding: 11px 14px; color: #a32424; background: #fff1f1; border: 1px solid #f3cccc; border-radius: 4px; font-size: 14px; }
.field-label { display: block; margin: 0 0 8px; color: #465267; font-size: 13px; }
.input-field { height: 48px; display: grid; grid-template-columns: 56px 1fr auto; align-items: center; margin-bottom: 20px; background: white; border: 1px solid #d5dbe4; border-radius: 3px; transition: border-color .18s ease, box-shadow .18s ease; }
.input-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(78,112,223,.12); }
.input-icon { padding: 0 13px; color: #536075; font-size: 12px; border-right: 1px solid #e4e8ee; }
.input-field input { width: 100%; height: 100%; padding: 0 13px; border: 0; outline: 0; background: transparent; color: var(--ink); }
.password-toggle { height: 100%; padding: 0 14px; border: 0; background: transparent; color: #6f7c91; cursor: pointer; font-size: 12px; }
.login-button { width: 100%; min-height: 48px; display: inline-grid; place-items: center; margin-top: 6px; color: white; background: var(--accent); border: 0; border-radius: 3px; text-decoration: none; cursor: pointer; transition: background .18s ease; }
.login-button:hover { background: #3f61cb; }
.login-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; color: #7a8597; font-size: 12px; }
.login-links a { color: #4866bd; text-decoration: none; }
.knowledge-account-links { display: none; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; color: #7a8597; font-size: 12px; }
.knowledge-account-links.is-visible { display: flex; }
.knowledge-account-links a { color: #4866bd; text-decoration: none; }
.login-content footer { position: absolute; bottom: 24px; color: #7b8491; font-size: 12px; }

.dashboard-body { min-height: 100vh; margin: 0; display: grid; grid-template-columns: 292px 1fr; background: #f3f5f8; }
.dashboard-sidebar { min-height: 100vh; position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; padding: 36px 24px 28px; color: white; background: var(--navy); }
.dashboard-brand { display: flex; flex-direction: column; margin: 0 8px 54px; }
.dashboard-brand strong { font-size: 22px; letter-spacing: .08em; }
.dashboard-brand span { margin-top: 3px; font-size: 17px; font-weight: 700; letter-spacing: .07em; }
.directory-title { margin: 0 8px 13px; color: rgba(255,255,255,.62); font-size: 12px; letter-spacing: .14em; }
.dashboard-sidebar nav { display: grid; gap: 9px; }
.dashboard-software { display: block; padding: 13px 14px; color: rgba(255,255,255,.77); border: 1px solid transparent; border-radius: 4px; text-decoration: none; font-size: 13px; line-height: 1.55; }
.dashboard-software:hover { color: white; background: rgba(255,255,255,.1); }
.dashboard-software.is-selected { color: white; background: rgba(255,255,255,.17); border-color: rgba(255,255,255,.55); box-shadow: inset 3px 0 0 white; }
.logout-button { width: 100%; margin-top: auto; padding: 11px; color: white; background: transparent; border: 1px solid rgba(255,255,255,.5); border-radius: 4px; cursor: pointer; }
.dashboard-main { min-width: 0; padding: 0 48px 64px; }
.dashboard-header { min-height: 112px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.dashboard-header p { margin: 0 0 7px; color: var(--muted); font-size: 12px; letter-spacing: .16em; }
.dashboard-header h1 { margin: 0; font-size: 25px; font-weight: 600; }
.review-user { color: var(--muted); font-size: 12px; line-height: 1.55; text-align: right; }
.review-user strong { color: var(--ink); font-size: 14px; }
.software-intro { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin: 42px 0 34px; padding: 30px 34px; background: white; border: 1px solid var(--line); border-radius: 7px; }
.intro-tag { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.software-intro h2 { margin: 9px 0 8px; font-size: 25px; }
.software-intro p { max-width: 760px; margin: 0; color: var(--muted); line-height: 1.8; }
.step-total { min-width: 125px; padding-left: 30px; border-left: 1px solid var(--line); text-align: center; }
.step-total strong { display: block; color: var(--accent); font: 600 34px/1 Arial, sans-serif; }
.step-total span { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading p { margin: 0 0 6px; color: var(--accent); font: 700 11px/1 Arial, sans-serif; letter-spacing: .16em; }
.section-heading h2 { margin: 0; font-size: 20px; }
.section-heading > span { color: var(--muted); font-size: 12px; }
.workflow-list { display: grid; gap: 12px; }
.workflow-card { min-height: 116px; display: grid; grid-template-columns: 60px minmax(0,1fr) 160px; align-items: center; gap: 22px; padding: 22px 24px; background: white; border: 1px solid var(--line); border-radius: 7px; transition: border-color .18s ease, transform .18s ease; }
.workflow-card:hover { border-color: #aebae0; transform: translateY(-1px); }
.step-number { color: var(--accent); font: 600 20px/1 Arial, sans-serif; letter-spacing: .04em; }
.card-content { padding-left: 22px; border-left: 1px solid var(--line); }
.card-content h3 { margin: 0 0 8px; font-size: 17px; }
.card-content p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.card-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; color: #3858b2; border: 1px solid #b9c4e6; border-radius: 4px; text-decoration: none; font-size: 13px; }
.card-action:hover { color: white; background: var(--accent); border-color: var(--accent); }

.help-body { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: #eef1f5; }
.help-card { width: min(520px, 100%); padding: 42px; background: white; border: 1px solid var(--line); border-radius: 7px; }
.help-card h1 { margin: 0 0 18px; }
.help-card p:not(.login-kicker) { color: var(--muted); line-height: 1.8; }
.help-back { margin-top: 22px; }

@media (max-width: 980px) {
  .login-shell { grid-template-columns: 320px 1fr; }
  .software-directory { left: 22px; right: 22px; }
  .dashboard-body { grid-template-columns: 240px 1fr; }
  .dashboard-main { padding-inline: 28px; }
  .workflow-card { grid-template-columns: 46px 1fr; }
  .card-action { grid-column: 2; width: 180px; }
}

@media (max-width: 720px) {
  .login-shell { display: block; }
  .software-sidebar { min-height: auto; padding-bottom: 24px; }
  .sidebar-background { object-position: top; }
  .brand-lockup { padding: 28px 24px 0; }
  .software-directory { position: relative; left: auto; right: auto; top: auto; transform: none; margin: 28px 20px 0; gap: 8px; }
  .software-option { min-height: 50px; }
  .sidebar-caption { display: none; }
  .login-content { min-height: 620px; padding: 54px 24px 86px; }
  .login-content footer { padding: 0 20px; text-align: center; }
  .dashboard-body { display: block; }
  .dashboard-sidebar { position: static; min-height: auto; padding: 24px 18px; }
  .dashboard-brand { margin-bottom: 22px; }
  .logout-button { margin-top: 18px; }
  .dashboard-main { padding: 0 18px 40px; }
  .dashboard-header { align-items: flex-start; padding: 24px 0; }
  .dashboard-header h1 { font-size: 20px; }
  .software-intro { align-items: flex-start; margin-top: 24px; padding: 24px; }
  .step-total { display: none; }
  .section-heading > span { display: none; }
  .workflow-card { grid-template-columns: 36px 1fr; gap: 12px; padding: 20px 16px; }
  .card-content { padding-left: 14px; }
  .card-action { grid-column: 1 / -1; width: 100%; }
}
