:root {
  --ink: #182642;
  --muted: #546581;
  --quiet: #66748d;
  --line: #dae3ef;
  --surface: #fff;
  --canvas: #f4f7fc;
  --nav: #122347;
  --nav-light: #233862;
  --accent: #2558d7;
  --accent-hover: #1744b5;
  --accent-soft: #eaf0ff;
  --radius: 14px;
  --shadow: 0 3px 10px rgb(25 53 97 / 4%);
}
* { box-sizing: border-box; }
html { min-width: 280px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}
[hidden] { display: none !important; }
a { color: var(--accent-hover); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #4e77ed; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.85rem, 3vw, 2.45rem); line-height: 1.2; letter-spacing: -.025em; }
h2 { font-size: 1.13rem; line-height: 1.35; }
h3 { font-size: .96rem; line-height: 1.45; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .7; }
small { font-size: .86rem; color: var(--muted); }
.muted, time { color: var(--muted); }
.preserved { white-space: pre-wrap; overflow-wrap: anywhere; }
.text-link { font-weight: 650; font-size: .9rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.workspace { min-height: 100vh; display: grid; grid-template-columns: 235px minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  padding: 26px 16px 18px; background: var(--nav); color: #fff;
}
.brand, .login-brand {
  display: flex; align-items: center; gap: 11px; white-space: nowrap;
  font-size: .99rem; font-weight: 750; color: #fff;
}
.brand { margin: 0 6px 38px; }
.brand:hover { text-decoration: none; }
.brand-icon {
  width: 36px; height: 36px; display: inline-grid; place-items: center; flex: none;
  border-radius: 9px; color: white; background: #3768eb; font-weight: 800; font-size: 1.02rem;
}
.main-nav { display: grid; gap: 6px; }
.main-nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px;
  border-radius: 8px; color: #c8d8fa; font-weight: 600; font-size: .92rem;
}
.main-nav a:hover, .main-nav a[aria-current] { background: var(--nav-light); color: #fff; text-decoration: none; }
.nav-icon { position: relative; width: 17px; height: 17px; flex: none; }
.overview-icon {
  border: 1.5px solid currentColor; border-radius: 3px;
  background: linear-gradient(currentColor, currentColor) 50% 50% / 1px 100% no-repeat,
    linear-gradient(currentColor, currentColor) 50% 50% / 100% 1px no-repeat;
}
.new-icon::before, .new-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 13px; height: 1.5px;
  border-radius: 1px; background: currentColor; transform: translate(-50%,-50%);
}
.new-icon::after { transform: translate(-50%,-50%) rotate(90deg); }
.identity {
  display: flex; align-items: center; gap: 9px; margin-top: auto; border-top: 1px solid #314571;
  padding: 17px 1px 2px; font-size: .875rem;
}
.identity strong, .identity small { display: block; }
.identity small { color: #c1d0ee; font-size: .8rem; }
.identity form { margin-left: auto; }
.avatar {
  width: 34px; height: 34px; display: grid; place-items: center;
  flex: none; border-radius: 50%; color: #e4ecff; background: #344b7a;
}
.logout { background: transparent; border: 0; color: #c6d6fa; padding: 5px; font-size: .86rem; }
.logout:hover { color: white; text-decoration: underline; }
.workspace-main { min-width: 0; }
.content { width: min(100%, 1440px); margin-inline: auto; padding: 38px clamp(22px, 4vw, 57px) 55px; }
.page-heading {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 14px 20px; margin-bottom: 25px;
}
.page-heading p { margin-top: 8px; }
.button {
  display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 44px;
  padding: 9px 17px; border: 1px solid transparent; border-radius: 8px;
  font-weight: 700; font-size: .92rem; white-space: nowrap; text-decoration: none !important;
}
.primary { background: var(--accent); color: #fff; }
.primary:hover { background: var(--accent-hover); }
.secondary { background: #fff; border-color: #c5d4ec; color: var(--accent-hover); }
.secondary:hover { background: #f0f5ff; border-color: #8ca6e2; }
.breadcrumb { display: inline-block; font-size: .91rem; font-weight: 650; margin-bottom: 13px; }

.pending { --status-ink: #774803; --status-bg: #fff1cf; --status-dot: #ad6a00; }
.review { --status-ink: #24469a; --status-bg: #e9efff; --status-dot: #4268d0; }
.revision { --status-ink: #8b3924; --status-bg: #ffede5; --status-dot: #c15b39; }
.completed { --status-ink: #226451; --status-bg: #e2f4ed; --status-dot: #2d8366; }
.status-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 29px; }
.status-card {
  display: grid; align-content: start; gap: 10px; min-width: 0; padding: 15px 17px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  color: var(--ink); box-shadow: var(--shadow);
}
.status-card:hover, .status-card.selected { border-color: #88a2e7; background: #f9fbff; text-decoration: none; }
.status-card.selected { box-shadow: inset 0 0 0 1px #88a2e7; }
.status-card-label { display: flex; align-items: center; gap: 8px; font-size: .91rem; color: var(--status-ink); font-weight: 650; }
.state-dot { width: 8px; height: 8px; flex: none; background: var(--status-dot); display: inline-block; border-radius: 50%; }
.status-card strong { font-size: 1.95rem; font-variant-numeric: tabular-nums; line-height: 1; }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; flex-wrap: wrap; }
.list-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; font-size: .87rem; }
.quiet-label { background: var(--accent-soft); color: #26488d; padding: 4px 9px; border-radius: 6px; font-size: .85rem; font-weight: 650; }
.table-frame, .empty-state, .panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.table-frame { overflow: hidden; }
.task-table { border-collapse: collapse; width: 100%; text-align: left; }
.task-table th, .task-table td { padding: 13px 15px; }
.task-table th {
  background: #f9fbff; color: var(--muted); font-size: .86rem; font-weight: 650;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.task-table td { border-bottom: 1px solid #e9eef7; font-size: .93rem; }
.task-table tr:last-child td { border-bottom: 0; }
.task-table td:first-child { width: 32%; }
.task-table td:last-child { width: 26%; }
.task-table td:nth-child(3) { white-space: nowrap; }
.task-table small { margin-top: 5px; display: block; overflow-wrap: anywhere; }
.task-table .task-name a { font-weight: 750; color: var(--ink); overflow-wrap: anywhere; }
.task-table .task-name a:hover { color: var(--accent); }
.task-table tr.actionable { background: #f7faff; }
.task-table tr.actionable td:first-child { box-shadow: inset 3px 0 #527ce8; }
.step-action { color: #1d4ab2; font-weight: 700; }
.status-pill, .version-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px;
  font-size: .85rem; font-weight: 700; white-space: nowrap; vertical-align: middle;
}
.status-pill { background: var(--status-bg); color: var(--status-ink); }
.status-pill .state-dot { height: 7px; width: 7px; }
.version-tag { background: #edf2f9; color: #425573; }
.empty-state { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 48px 18px; }
.empty-state p { color: var(--muted); }
.empty-icon {
  display: block; width: 43px; height: 47px; border: 2px solid #8ba5e6; border-radius: 8px;
  margin-bottom: 4px; background: repeating-linear-gradient(#a5b8ee 0 2px, transparent 2px 8px) 50% 60% / 21px 20px no-repeat, #edf3ff;
}

.form-stack { display: grid; gap: 17px; }
.form-panel { display: grid; gap: 17px; }
.panel { min-width: 0; padding: 18px 21px; }
.panel-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 14px; }
.form-panel .panel-title { margin: 0; }
.form-grid { display: grid; gap: 13px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three, .choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: grid; min-width: 0; align-content: start; gap: 7px; }
.field label, .field legend, .login-form label { font-size: .92rem; font-weight: 700; }
fieldset { padding: 0; margin: 0; border: none; min-width: 0; }
fieldset legend { margin: 0 0 6px; padding: 0; }
input:not([type=radio],[type=checkbox],[type=file],[type=hidden]), select, textarea {
  width: 100%; min-height: 43px; padding: 8px 11px; color: var(--ink);
  background: #fff; border: 1px solid #bfcde2; border-radius: 7px;
}
textarea { resize: vertical; }
select {
  appearance: none; padding-right: 34px;
  background-image: linear-gradient(45deg,transparent 50%,#526686 50%), linear-gradient(135deg,#526686 50%,transparent 50%);
  background-position: calc(100% - 16px) 52%,calc(100% - 11px) 52%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
input[type=radio], input[type=checkbox] { accent-color: var(--accent); flex: none; margin: 0; }
.quick-values, .radio-group, .form-actions { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.quick-values button {
  background: var(--accent-soft); color: #244888; border: 1px solid transparent;
  border-radius: 7px; padding: 4px 8px; font-size: .85rem;
}
.quick-values button:hover, .quick-values button[aria-pressed=true] { border-color: #8ca6e2; }
.choice-grid { display: grid; gap: 8px; }
.choice-card, .radio-group label {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 8px; background: #f9fbff;
}
.choice-card:has(:checked), .radio-group label:has(:checked) { border-color: #7797e9; background: #eef3ff; }
.choice-card small { display: block; font-weight: 400; }
.field .remove-option { display: flex; gap: 8px; font-weight: 400; overflow-wrap: anywhere; }
.file-input {
  display: block; min-width: 0; width: 100%; padding: 7px 8px; background: #f8faff;
  border: 1px dashed #a8badb; border-radius: 7px; color: var(--muted); font-size: .91rem;
}
.file-input::file-selector-button {
  padding: 6px 9px; margin-right: 9px; border: 1px solid #c5d4ec; border-radius: 5px;
  background: #fff; color: var(--ink); font: inherit; cursor: pointer;
}
.optional { color: var(--quiet); font-size: .83rem; font-weight: 400; }
.form-actions { gap: 9px; }
.notice {
  background: #eef3ff; color: #213f78; border: 1px solid #cbd9f9; padding: 10px 13px;
  margin-bottom: 16px; border-radius: 8px; overflow-wrap: anywhere;
}
.notice.success { background: #e6f5ed; border-color: #bbdfcd; color: #1e5d47; }
.notice.failure { background: #fff0ec; border-color: #f1c7ba; color: #802e22; }

.detail-heading h1 { overflow-wrap: anywhere; }
.page-heading .task-reference { margin: 0 0 7px; font-size: .88rem; color: var(--muted); }
.current-status {
  display: flex; align-items: center; gap: 9px 14px; flex-wrap: wrap; padding: 11px 13px; margin-bottom: 18px;
  background: white; border: 1px solid var(--line); border-radius: 9px; font-size: .9rem;
}
.current-status time { margin-left: auto; font-size: .86rem; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 242px; gap: 16px; align-items: start; }
.detail-main { display: grid; gap: 15px; min-width: 0; }
.panel-title time { font-size: .86rem; }
.export-form { margin-bottom: 14px; }
.delivery-form { border-top: 1px solid var(--line); padding-top: 14px; }
.spec-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin: 0 0 17px; }
.spec-grid div { background: #f3f6fc; border-radius: 7px; padding: 8px 9px; overflow-wrap: anywhere; }
.spec-grid dt { color: var(--muted); font-size: .82rem; }
.spec-grid dd { margin: 3px 0 0; font-weight: 650; font-size: .93rem; }
.requirements-body { display: grid; gap: 8px; }
.file-list { padding: 0; margin: 8px 0 0; list-style: none; }
.file-list li {
  display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #e8edf6;
}
.file-list li:last-child { border-bottom: 0; }
.file-type { flex: none; font-size: .73rem; font-weight: 750; background: #eaf0ff; color: #3657a1; padding: 4px 6px; border-radius: 5px; min-width: 39px; text-align: center; }
.file-name { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: .9rem; }
.file-name small { display: block; font-size: .82rem; }
.preview-box { padding: 10px; background: #f3f6fc; border-radius: 8px; color: var(--muted); font-size: .9rem; }
.preview-toolbar { display: flex; justify-content: space-between; gap: 6px 12px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.preview-toolbar h3 { color: var(--ink); }
.pdf-frame { background: #fff; border: 1px solid var(--line); width: 100%; display: block; border-radius: 6px; height: clamp(270px, 52vh, 550px); }
.review-note { padding: 11px 12px; margin-top: 10px; background: #f3f6fc; border-radius: 8px; }
.review-note h3 { margin-bottom: 4px; }
.sub-action, .review-disclosure, .version-history { margin-top: 10px; }
.sub-action summary, .review-disclosure summary, .version-history summary { color: var(--accent-hover); cursor: pointer; font-weight: 700; }
.sub-action[open] summary, .review-disclosure[open] summary, .version-history[open] summary { margin-bottom: 10px; }
.version-history { border: 1px solid var(--line); border-radius: 8px; padding: 9px; }
.version-history summary span { color: var(--muted); font-weight: 400; font-size: .88rem; }
.finish-form { margin-top: 15px; }
.inline-form { display: flex; align-items: start; flex-wrap: wrap; gap: 8px; }
.inline-form .file-input { flex: 1 1 190px; }
.timeline { margin: 0; padding: 0 0 0 5px; list-style: none; }
.timeline li { position: relative; padding: 0 0 14px 13px; border-left: 1px solid #ccdaf3; }
.timeline li:last-child { padding-bottom: 0; border-color: transparent; }
.timeline li::before {
  content: ""; position: absolute; top: 5px; left: -4px; width: 7px; height: 7px;
  background: #6284d6; border-radius: 50%;
}
.timeline li:first-child::before { background: var(--accent); box-shadow: 0 0 0 3px #e8efff; }
.timeline strong { display: block; font-size: .9rem; }
.timeline time { display: block; margin-top: 2px; font-size: .82rem; }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 1fr) minmax(330px, 1fr); }
.login-aside {
  display: flex; flex-direction: column; align-items: flex-start; gap: 30px;
  min-height: 680px; padding: clamp(24px,6vw,75px);
  color: white; background: radial-gradient(ellipse at 75% 87%, #244fbc 0%, #172d65 47%, #122347 90%);
  overflow: hidden;
}
.login-brand { align-self: flex-start; }
.login-intro { margin-top: clamp(20px, 8vh, 100px); }
.login-intro h1 { font-size: clamp(2rem, 4.4vw, 3.65rem); }
.login-intro p { margin-top: 14px; color: #d3e0fa; }
.paper-stack { position: relative; width: 253px; height: 223px; margin-top: 13px; flex: none; max-width: 91%; }
.paper-sheet { width: 84%; height: 93%; border-radius: 11px; position: absolute; }
.sheet-behind { left: 16%; top: 5%; background: #7193ee; transform: rotate(10deg); }
.sheet-front {
  display: grid; align-content: center; gap: 10px; padding: 19px 20px; left: 4%; top: 4%;
  background: #f4f8ff; transform: rotate(-6deg); box-shadow: 0 12px 40px rgb(0 0 0 / 19%);
}
.paper-heading { width: 83px; height: 10px; border-radius: 3px; background: #446acb; }
.paper-subhead { width: 116px; height: 6px; border-radius: 3px; background: #b5c9ef; }
.paper-rule { height: 1px; background: #c0d0ec; }
.paper-question, .paper-options { display: flex; gap: 7px; align-items: center; }
.paper-question i { width: 8px; height: 8px; border-radius: 2px; background: #90ace9; }
.paper-question b { width: 118px; height: 5px; border-radius: 3px; background: #bdcdef; }
.paper-options i { width: 25px; height: 8px; border: 1px solid #a1b9ec; border-radius: 3px; }
.paper-answer { height: 1px; background: #becff0; margin-left: 15px; }
.login-main { display: grid; place-items: center; padding: 32px clamp(22px, 5vw, 65px); background: white; }
.login-card { width: min(100%, 360px); }
.login-card h2 { font-size: 1.85rem; margin-bottom: 9px; }
.login-card p.muted { margin-bottom: 21px; }
.login-form { display: grid; gap: 8px; }
.login-form input:not([type=hidden]) { margin-bottom: 8px; }
.login-form button { margin-top: 4px; }
.mobile-brand { display: none; }
.guest-error { display: grid; min-height: 100vh; place-items: center; padding: 20px; }
.error-panel { display: grid; gap: 14px; justify-items: start; }
.error-panel h1 { font-size: 1.35rem; }

@media (max-width: 1100px) {
  .detail-layout { grid-template-columns: minmax(0, 1fr) 205px; }
  .task-table th, .task-table td { padding-inline: 10px; }
}
@media (max-width: 920px) {
  .workspace { grid-template-columns: 176px minmax(0,1fr); }
  .sidebar { padding-inline: 10px; }
  .brand { margin-inline: 3px; gap: 6px; font-size: .91rem; }
  .brand-icon { width: 30px; height: 30px; }
  .identity { gap: 6px; }
  .detail-layout { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 700px) {
  .workspace { display: block; }
  .sidebar { padding: 8px 12px; position: static; height: auto; flex-wrap: wrap; flex-direction: row; align-items: center; gap: 7px 11px; }
  .brand { margin: 0; }
  .identity { margin: 0 0 0 auto; padding: 0; border: 0; }
  .identity .avatar, .identity small { display: none; }
  .identity strong { font-size: .8rem; }
  .main-nav { display: flex; order: 1; flex-basis: 100%; }
  .main-nav a { padding: 6px 9px; gap: 8px; }
  .content { padding: 23px 13px 32px; }
  .status-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 20px; }
  .status-card { padding: 10px 12px; gap: 6px; }
  .status-card strong { font-size: 1.55rem; }
  .table-frame { background: transparent; border: 0; box-shadow: none; border-radius: 0; }
  .task-table, .task-table tbody { display: block; }
  .task-table thead { display: none; }
  .task-table tr { display: grid; gap: 4px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 8px; background: #fff; padding: 8px 10px; }
  .task-table tr.actionable { border-left: 3px solid #527ce8; }
  .task-table tr.actionable td:first-child { box-shadow: none; }
  .task-table td, .task-table td:first-child, .task-table td:last-child { padding: 2px 0; border: 0; width: auto; }
  .task-table td[data-label]::before { content: attr(data-label); color: var(--muted); display: inline-block; width: 66px; font-size: .84rem; }
  .task-table td small { margin-top: 3px; }
  .task-table td[data-label] small { margin-left: 66px; }
  .login-shell { display: block; background: white; }
  .login-aside { display: none; }
  .login-main { padding: 34px 20px; min-height: 100vh; align-items: start; }
  .mobile-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; font-weight: 700; }
}
@media (max-width: 440px) {
  .panel { padding: 14px 12px; }
  .form-grid.three, .choice-grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .file-list li { gap: 6px; }
}

