:root {
  --navy: #12385b;
  --navy-2: #0a2a47;
  --red: #b54132;
  --red-soft: #f7e9e6;
  --ink: #172334;
  --sub: #667284;
  --line: #d8dde3;
  --line-soft: #e9ecef;
  --paper: #f5f6f7;
  --white: #fff;
  --green: #247551;
  --amber: #9a5b19;
  --font-serif: "STSong", "SimSun", "Noto Serif SC", serif;
  --font-sans: "Microsoft YaHei UI", "Source Han Sans SC", sans-serif;
}

.section-evidence { margin: -4px 0 10px; color: var(--sub); font-size: 10px; line-height: 1.6; }

* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-sans); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }

.gov-header { height: 76px; color: white; background: var(--navy-2); border-bottom: 4px solid var(--red); }
.header-inner { width: min(1120px, calc(100% - 48px)); height: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.identity { display: flex; align-items: center; gap: 13px; color: white; text-decoration: none; }
.identity-mark { width: 40px; height: 40px; display: grid; place-items: center; background: var(--red); border-radius: 3px; font: 700 22px var(--font-serif); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.identity strong, .identity small { display: block; }.identity strong { font: 700 19px var(--font-serif); letter-spacing: .08em; }.identity small { margin-top: 3px; color: #aebdca; font-size: 10px; letter-spacing: .08em; }
.header-status { display: flex; align-items: center; gap: 8px; color: #c2ced8; font-size: 11px; }.header-status i { width: 1px; height: 15px; margin: 0 6px; background: rgba(255,255,255,.2); }.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #55b788; box-shadow: 0 0 0 4px rgba(85,183,136,.13); }
.header-tools { display: flex; align-items: center; gap: 12px; }.user-name { padding-left: 13px; border-left: 1px solid rgba(255,255,255,.2); color: #e3eaf0; font-size: 11px; }.logout-button { padding: 6px 10px; border: 1px solid rgba(255,255,255,.3); border-radius: 2px; color: #e3eaf0; background: transparent; font-size: 10px; }.logout-button:hover { color: white; border-color: rgba(255,255,255,.65); background: rgba(255,255,255,.08); }.logout-button:disabled { opacity: .5; }

.login-page { min-height: 100vh; display: flex; flex-direction: column; background: #eef1f4; }
.login-page::before { content: ""; position: fixed; inset: 0 0 auto; height: 7px; background: linear-gradient(90deg, var(--navy-2) 0 76%, var(--red) 76%); }
.login-shell { width: min(920px, calc(100% - 40px)); margin: auto; display: grid; grid-template-columns: 1.05fr .95fr; min-height: 500px; background: white; border: 1px solid #d5dce2; box-shadow: 0 18px 55px rgba(17,42,66,.12); }
.login-brand { position: relative; overflow: hidden; padding: 70px 54px; color: white; background: linear-gradient(145deg, #0a2a47, #174d76); }
.login-brand::before, .login-brand::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }.login-brand::before { width: 330px; height: 330px; right: -170px; top: -120px; }.login-brand::after { width: 240px; height: 240px; left: -150px; bottom: -130px; }
.login-emblem { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 52px; border: 1px solid rgba(255,255,255,.55); background: var(--red); box-shadow: 0 0 0 8px rgba(255,255,255,.06); font: 700 29px var(--font-serif); }
.login-overline { margin: 0 0 13px; color: #aabfd0; font-size: 9px; font-weight: 700; letter-spacing: .22em; }.login-brand h1 { max-width: 330px; margin: 0; font: 700 31px/1.4 var(--font-serif); letter-spacing: .06em; }.login-brand > p:not(.login-overline) { max-width: 340px; margin: 18px 0 0; color: #bdccd8; font-size: 12px; line-height: 1.9; }
.login-assurance { position: absolute; left: 54px; bottom: 48px; display: flex; align-items: center; gap: 9px; color: #aabfd0; font-size: 10px; }.login-assurance span { width: 7px; height: 7px; border-radius: 50%; background: #62bf91; box-shadow: 0 0 0 4px rgba(98,191,145,.13); }
.login-panel { padding: 72px 54px 50px; }.login-panel-head p { margin: 0 0 8px; color: var(--red); font-size: 10px; font-weight: 700; letter-spacing: .12em; }.login-panel-head h2 { margin: 0; font: 700 27px var(--font-serif); }.login-panel-head span { display: block; margin: 11px 0 30px; color: var(--sub); font-size: 11px; }
.login-panel form > label { display: block; margin: 17px 0 7px; color: #344255; font-size: 11px; font-weight: 600; }.login-input-wrap { height: 46px; display: flex; align-items: center; border: 1px solid #b9c2ca; background: white; transition: border .2s, box-shadow .2s; }.login-input-wrap:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(18,56,91,.09); }.login-input-wrap > span { width: 44px; color: #5d6d7e; text-align: center; font: 700 11px var(--font-serif); }.login-input-wrap input { min-width: 0; height: 100%; flex: 1; padding: 0 10px 0 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }.password-toggle { height: 100%; padding: 0 12px; border: 0; color: var(--navy); background: transparent; font-size: 10px; }
.login-error { margin-top: 15px; padding: 9px 11px; border-left: 3px solid var(--red); color: #922e25; background: #fff1ef; font-size: 10px; }.login-submit { width: 100%; height: 46px; margin-top: 22px; border: 0; border-radius: 2px; color: white; background: var(--navy); box-shadow: 0 6px 15px rgba(18,56,91,.18); font-size: 12px; font-weight: 700; letter-spacing: .08em; }.login-submit:hover { background: #194a74; }.login-submit:disabled { cursor: wait; opacity: .65; }.login-help { margin: 18px 0 0; color: #88929d; font-size: 9px; text-align: center; }.login-footer { padding: 18px; color: #7d8790; font-size: 9px; text-align: center; }

.page-shell { width: min(1040px, calc(100% - 40px)); margin: 0 auto; padding: 44px 0 64px; }
.intro { margin-bottom: 28px; text-align: center; }.overline { margin: 0 0 10px; color: var(--red); font-size: 9px; font-weight: 700; letter-spacing: .24em; }.intro h1 { margin: 0; font: 700 clamp(28px, 4vw, 38px)/1.25 var(--font-serif); letter-spacing: .04em; }.intro > p:last-child { margin: 13px auto 0; color: var(--sub); font-size: 13px; line-height: 1.8; }
.error-banner { margin-bottom: 16px; padding: 12px 16px; color: #9f2c23; background: #fff1ef; border: 1px solid #edc5bf; font-size: 12px; }
.work-card { margin-top: 16px; padding: 28px 30px; background: white; border: 1px solid var(--line); box-shadow: 0 6px 22px rgba(20,38,57,.04); }
.section-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }.step-number { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; color: white; background: var(--navy); border-radius: 50%; font-size: 12px; font-weight: 700; }.section-head h2 { margin: 2px 0 5px; font: 700 18px var(--font-serif); }.section-head p { margin: 0; color: var(--sub); font-size: 11px; }

.drop-zone { min-height: 122px; padding: 20px 24px; display: flex; align-items: center; gap: 17px; border: 1px dashed #9eabb7; background: #fafbfc; transition: border .2s, background .2s; }.drop-zone:hover, .drop-zone.dragging, .drop-zone:focus { border-color: var(--navy); background: #f3f7fa; outline: 3px solid rgba(18,56,91,.08); }.upload-icon { width: 50px; height: 50px; flex: 0 0 50px; display: grid; place-items: center; color: var(--navy); background: #e7eff5; border-radius: 50%; }.upload-icon svg { width: 23px; height: 23px; }.drop-zone > div { flex: 1; }.drop-zone strong, .drop-zone small { display: block; }.drop-zone strong { margin-bottom: 7px; font-size: 14px; }.drop-zone small { color: var(--sub); font-size: 10px; }
.outline-button, .primary-button { min-height: 40px; padding: 0 17px; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 11px; font-weight: 600; }.outline-button { color: var(--navy); background: white; border: 1px solid #aab4bd; }.outline-button:hover { border-color: var(--navy); background: #f6f9fb; }.primary-button { color: white; background: var(--navy); border: 1px solid var(--navy); box-shadow: 0 5px 13px rgba(18,56,91,.16); }.primary-button:hover { background: #194a74; }.primary-button:disabled { cursor: not-allowed; opacity: .45; box-shadow: none; }
.existing-row { margin: 10px 0 0; color: var(--sub); font-size: 10px; text-align: right; }.text-button { padding: 3px; border: 0; color: var(--navy); background: transparent; font-size: 10px; font-weight: 600; }
.file-list { display: grid; gap: 7px; margin-top: 14px; }.file-item { min-height: 52px; padding: 8px 12px; display: grid; grid-template-columns: 32px 1fr auto auto; align-items: center; gap: 10px; border: 1px solid var(--line-soft); background: #fcfcfb; }.file-item > svg { width: 18px; color: var(--navy); }.file-info strong, .file-info small { display: block; }.file-info strong { max-width: 690px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }.file-info small { margin-top: 3px; color: var(--sub); font-size: 9px; }.file-type { padding: 4px 7px; color: var(--navy); background: #eaf1f6; font-size: 9px; }.remove-file { width: 30px; height: 30px; display: grid; place-items: center; border: 0; color: #7d8793; background: transparent; }.remove-file:hover { color: var(--red); background: var(--red-soft); }.remove-file svg { width: 15px; }

.period-row { display: grid; grid-template-columns: 150px 150px 1fr; gap: 14px; margin-bottom: 20px; }.period-row label, .request-box > label { color: #344255; font-size: 11px; font-weight: 600; }.period-row select, .period-row input { width: 100%; height: 41px; margin-top: 7px; padding: 0 11px; border: 1px solid #b8c0c8; border-radius: 2px; color: var(--ink); background: white; outline: none; }.period-row select:focus, .period-row input:focus, textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(18,56,91,.09); }
.request-layout { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 16px; }.request-box { min-width: 0; }.request-box textarea { width: 100%; min-height: 184px; margin-top: 7px; padding: 14px; border: 1px solid #b8c0c8; border-radius: 2px; resize: vertical; color: var(--ink); font-size: 12px; line-height: 1.8; outline: none; }.request-foot { min-height: 35px; display: flex; align-items: center; justify-content: space-between; color: var(--sub); font-size: 9px; }.examples { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }.examples button { padding: 4px 7px; color: #536477; background: #f4f6f7; border: 1px solid #e0e4e7; border-radius: 10px; font-size: 9px; }.examples button:hover { color: var(--navy); border-color: #aebdca; }
.rule-box { border: 1px solid var(--line); background: #f8fafb; align-self: start; }.rule-title { min-height: 46px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }.rule-title > span { display: flex; align-items: center; gap: 7px; color: var(--navy); font-size: 11px; font-weight: 700; }.rule-title svg { width: 15px; }.rule-title b { padding: 4px 7px; color: var(--green); background: #e8f4ed; font-size: 8px; font-weight: 600; }.rule-summary { padding: 14px; }.rule-summary strong { display: block; margin-bottom: 8px; font: 700 15px var(--font-serif); }.rule-chips { display: flex; flex-wrap: wrap; gap: 5px; }.rule-chip { padding: 5px 7px; color: #405267; background: white; border: 1px solid #dce2e7; font-size: 9px; }.rule-note { margin: 10px 0 0; color: var(--sub); font-size: 9px; line-height: 1.6; }
.rule-toggle { width: 100%; min-height: 36px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; border: 0; border-top: 1px solid var(--line); color: var(--navy); background: white; font-size: 10px; }.rule-toggle svg { width: 14px; transition: transform .2s; }.rule-toggle.open svg { transform: rotate(180deg); }.rule-options { padding: 5px 14px 12px; background: white; }.rule-options label { display: flex; gap: 9px; padding: 9px 0; border-bottom: 1px solid #edf0f2; }.rule-options label:last-child { border-bottom: 0; }.rule-options input { width: 15px; height: 15px; accent-color: var(--navy); }.rule-options strong, .rule-options small { display: block; }.rule-options strong { font-size: 10px; }.rule-options small { margin-top: 3px; color: var(--sub); font-size: 8px; font-weight: 400; }

.action-card { margin-top: 16px; padding: 20px 28px; display: flex; align-items: center; justify-content: space-between; color: white; background: var(--navy-2); }.action-card strong, .action-card span { display: block; }.action-card strong { font: 700 15px var(--font-serif); }.action-card span { margin-top: 5px; color: #aebdca; font-size: 10px; }.action-card .primary-button { min-width: 170px; background: var(--red); border-color: var(--red); }.action-card .primary-button:hover { background: #ca4d3c; }
.progress-card { margin-top: 16px; min-height: 155px; padding: 30px 42px; display: flex; align-items: center; gap: 24px; background: white; border: 1px solid var(--line); }.progress-symbol { width: 56px; height: 56px; flex: 0 0 56px; border: 2px solid #dce3e8; border-top-color: var(--red); border-radius: 50%; animation: spin 1s linear infinite; }.progress-card > div:last-child { flex: 1; }.progress-card h2 { margin: 0 0 6px; font: 700 17px var(--font-serif); }.progress-card p { margin: 0 0 15px; color: var(--sub); font-size: 10px; }.progress-line { height: 4px; background: #e7eaed; }.progress-line i { display: block; width: 5%; height: 100%; background: var(--red); transition: width .4s ease; }@keyframes spin { to { transform: rotate(360deg); } }

.result-card { margin-top: 18px; background: white; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(22,35,52,.06); }.result-header { padding: 22px 28px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }.result-kicker { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-size: 9px; font-weight: 700; }.result-kicker svg { width: 13px; }.result-header h2 { margin: 6px 0 3px; font: 700 20px var(--font-serif); }.result-header p { margin: 0; color: var(--sub); font-size: 10px; }.result-actions { display: flex; gap: 8px; }.result-body { display: grid; grid-template-columns: minmax(0,1fr) 270px; }.report-editor { padding: 32px 38px 50px; }.draft-title { width: 100%; padding: 0 0 15px; border: 0; border-bottom: 1px solid var(--line); outline: none; text-align: center; font: 700 21px var(--font-serif); }.draft-opening, .section-editor { width: 100%; min-height: 112px; padding: 14px; border: 1px solid transparent; background: #fafafa; resize: vertical; color: var(--ink); font: 14px/2 var(--font-serif); outline: none; }.draft-opening { margin-top: 22px; }.draft-section h3 { margin: 24px 0 10px; font: 700 16px var(--font-serif); }.section-editor { min-height: 150px; background: white; border-color: #e5e7e9; }.analysis-aside { padding: 20px 18px; background: #f7f8f9; border-left: 1px solid var(--line); }.aside-block { padding: 0 0 17px; margin-bottom: 17px; border-bottom: 1px solid var(--line); }.aside-block:last-child { border: 0; }.aside-block h3 { margin: 0 0 10px; font: 700 12px var(--font-serif); }.aside-item { margin-bottom: 7px; padding: 8px 9px; background: white; border-left: 2px solid var(--navy); font-size: 9px; line-height: 1.5; }.aside-item.warning { border-color: var(--amber); }.aside-item.error { border-color: var(--red); }.aside-item.success { border-color: var(--green); }.aside-item strong { display: block; color: var(--ink); }.aside-item span { color: var(--sub); }

.page-footer { min-height: 58px; padding: 0 max(24px, calc((100% - 1040px) / 2)); display: flex; align-items: center; justify-content: space-between; color: #7a8490; background: #eceeef; border-top: 1px solid #d7dce0; font-size: 9px; }.toast-region { position: fixed; right: 22px; bottom: 22px; z-index: 20; display: grid; gap: 7px; }.toast { min-width: 270px; padding: 12px 15px; color: white; background: var(--navy-2); box-shadow: 0 8px 25px rgba(0,0,0,.18); font-size: 11px; animation: toast-in .25s ease; }.toast.error { background: var(--red); }@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } }

@media (max-width: 820px) {
  .header-inner, .page-shell { width: min(100% - 24px, 1040px); }.header-status { display: none; }.page-shell { padding-top: 28px; }.intro { text-align: left; }.intro h1 { font-size: 28px; }.work-card { padding: 22px 18px; }.period-row { grid-template-columns: 1fr 1fr; }.report-title-field { grid-column: 1 / -1; }.request-layout, .result-body { grid-template-columns: 1fr; }.rule-box { margin-top: 4px; }.analysis-aside { border-left: 0; border-top: 1px solid var(--line); }.action-card { align-items: flex-start; gap: 15px; }.drop-zone { align-items: flex-start; flex-wrap: wrap; }.drop-zone .outline-button { margin-left: 67px; }.file-info strong { max-width: 430px; }.result-header { align-items: flex-start; gap: 15px; }.result-actions { flex-direction: column; }.report-editor { padding: 26px 20px 38px; }
  .login-shell { width: min(680px, calc(100% - 32px)); grid-template-columns: 1fr; margin-block: 35px; }.login-brand { min-height: 220px; padding: 35px 38px; }.login-emblem { width: 46px; height: 46px; margin-bottom: 25px; font-size: 23px; }.login-brand h1 { font-size: 25px; }.login-brand > p:not(.login-overline) { margin-top: 9px; }.login-assurance { right: 38px; left: auto; bottom: 25px; }.login-panel { padding: 42px 38px; }
}
@media (max-width: 520px) {
  .identity small, .user-name { display: none; }.work-card { padding-inline: 14px; }.period-row { grid-template-columns: 1fr; }.report-title-field { grid-column: auto; }.request-foot { align-items: flex-start; gap: 8px; }.examples > span { width: 100%; }.action-card, .result-header { flex-direction: column; }.action-card .primary-button { width: 100%; }.file-item { grid-template-columns: 26px 1fr auto; }.file-type { display: none; }.result-actions { width: 100%; flex-direction: row; }.result-actions button { flex: 1; }.page-footer { padding: 16px; gap: 15px; }
  .login-shell { width: calc(100% - 20px); margin-block: 18px; }.login-brand { min-height: 190px; padding: 28px 25px; }.login-brand h1 { font-size: 22px; }.login-brand > p:not(.login-overline) { font-size: 10px; }.login-assurance { display: none; }.login-panel { padding: 34px 25px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
