:root { --bg: #f4f7fb; --surface: #fff; --surface-soft: #f8fafc; --surface-blue: #eff6ff; --line: #d9e2ec; --line-strong: #c4d1df; --text: #122033; --muted: #6d7c8d; --subtle: #94a3b8; --blue: #2563eb; --blue-deep: #1d4ed8; --green: #14815d; --green-soft: #eaf8f2; --shadow-sm: 0 4px 14px rgba(29, 61, 92, .06); --font-sans: "Microsoft YaHei", "Noto Sans SC", "Segoe UI", Arial, sans-serif; }
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; } button { cursor: pointer; }
.app-shell { width: min(1700px, calc(100% - 40px)); margin: 20px auto 36px; }
.topbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 13px 18px 13px 22px; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow-sm); }
.brand-container, .header-actions, .preview-title, .workflow-heading, .feedback-bar > div { display: flex; align-items: center; }
.brand-container { gap: 12px; } .brand-mark { width: 40px; height: 40px; display: grid; place-items: center; background: #15263b; color: #fff; border-radius: 9px; font-size: 10px; letter-spacing: .08em; font-weight: 800; box-shadow: inset 0 -5px 12px rgba(0,0,0,.12); }
.title-group { display: grid; gap: 1px; } .eyebrow, .panel-kicker, .sheet-overline { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.title-group h1, .page-intro h2, .panel-heading h3, .preview-title h3, .workflow-heading h3 { margin: 0; letter-spacing: -.025em; } .title-group h1 { font-size: 17px; line-height: 1.2; }
.version-badge, .status-pill, .paper-size, .live-dot { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; } .version-badge { padding: 4px 8px; color: var(--blue-deep); background: var(--surface-blue); border: 1px solid #cfe0ff; border-radius: 6px; font-size: 11px; font-weight: 700; }
.header-actions { gap: 9px; } .status-pill { padding: 6px 10px; color: var(--green); background: var(--green-soft); border: 1px solid #c9eddd; border-radius: 999px; font-size: 11px; font-weight: 700; } .status-pill i { width: 6px; height: 6px; background: #2db67d; border-radius: 50%; box-shadow: 0 0 0 3px rgba(45,182,125,.12); }
.button { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; font-weight: 700; transition: .18s ease; } .button:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.button-primary { color: #fff; background: linear-gradient(135deg, #2a6cea, #1951c6); border-color: #1f5bd1; box-shadow: 0 5px 12px rgba(37,99,235,.17); } .button-outline { color: #30445c; background: #fff; border-color: var(--line-strong); } .button-ghost { color: var(--blue-deep); background: transparent; border-color: #cfe0ff; } .button-block { width: 100%; } .app-icon { display: inline-grid; place-items: center; width: 15px; height: 15px; font-size: 14px; line-height: 1; }
.page-intro { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 25px 4px 17px; } .breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--subtle); font-size: 11px; } .breadcrumb b { color: #bac6d2; font-weight: 400; } .breadcrumb strong { color: #5a6d83; font-weight: 600; }
.page-intro h2 { margin-top: 8px; font-size: 24px; font-weight: 800; } .page-intro h2 span { color: var(--blue); padding: 0 5px; } .page-intro p { max-width: 650px; margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.workspace { display: grid; grid-template-columns: minmax(315px, 360px) minmax(0, 1fr); gap: 17px; align-items: start; } .control-panel, .preview-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); } .control-panel { position: sticky; top: 18px; overflow: hidden; }
.panel-heading, .preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); } .panel-heading { padding: 15px 16px 13px; } .panel-heading h3, .preview-title h3, .workflow-heading h3 { font-size: 16px; } .panel-heading .panel-kicker, .preview-title .panel-kicker, .workflow-heading .panel-kicker { display: block; margin-bottom: 2px; color: var(--subtle); font-size: 9px; } .panel-check { color: var(--green); font-size: 10px; font-weight: 700; } .panel-scroll { padding: 0 16px; }
.form-section { padding: 17px 0 16px; border-bottom: 1px solid #e8eef4; } .form-section:last-child { border-bottom: 0; } .section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: #2f4258; font-size: 12px; font-weight: 800; } .section-title small { color: var(--subtle); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.field-grid { display: grid; gap: 9px; } .field-grid.two { grid-template-columns: 1fr 1fr; } .field-grid.three { grid-template-columns: repeat(3, 1fr); gap: 8px; } .compact-top-gap { margin-top: 9px; }
.param-field, .text-field, .select-field { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 600; } .input-with-unit { position: relative; }
.input-with-unit input, .text-field input, .select-field select, .text-field select { width: 100%; height: 34px; padding: 0 29px 0 9px; color: var(--text); background: #fbfdff; border: 1px solid var(--line); border-radius: 6px; outline: none; font-size: 12px; font-weight: 600; transition: .15s ease; } .text-field input, .select-field select, .text-field select { padding-right: 8px; }
.input-with-unit input:focus, .text-field input:focus, .select-field select:focus { border-color: #83aaf7; box-shadow: 0 0 0 3px rgba(37,99,235,.09); background: #fff; } .input-with-unit em { position: absolute; top: 0; right: 9px; display: flex; align-items: center; height: 34px; color: var(--subtle); font-size: 10px; font-style: normal; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 10px 11px; background: var(--surface-soft); border: 1px solid #e3ebf3; border-radius: 7px; } .switch-row span { display: grid; gap: 2px; } .switch-row b { color: #3b4d62; font-size: 11px; } .switch-row small { color: var(--subtle); font-size: 10px; }
.switch-row input { width: 34px; height: 19px; margin: 0; appearance: none; position: relative; background: #cbd5e1; border-radius: 999px; cursor: pointer; transition: .18s ease; } .switch-row input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(15,23,42,.25); transition: .18s ease; } .switch-row input:checked { background: var(--blue); } .switch-row input:checked::after { left: 18px; }
.calculated-section { padding-bottom: 12px; } .calculated-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .calculated-grid div { display: grid; gap: 3px; padding: 8px 9px; background: var(--surface-blue); border: 1px solid #e0ebff; border-radius: 7px; } .calculated-grid span { color: #6b86aa; font-size: 10px; } .calculated-grid strong { color: var(--blue-deep); font-size: 15px; line-height: 1; } .calculated-grid em { margin-left: 3px; color: #7c9bca; font-size: 9px; font-style: normal; font-weight: 600; }
.panel-note { display: flex; gap: 6px; margin: 11px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; } .panel-note span { flex: 0 0 auto; width: 14px; height: 14px; display: grid; place-items: center; color: var(--blue); border: 1px solid #bcd2ff; border-radius: 50%; font-size: 9px; font-weight: 800; } .panel-footer { padding: 13px 16px 15px; background: #fbfdff; border-top: 1px solid var(--line); } .update-hint { display: block; margin-top: 8px; color: var(--subtle); font-size: 10px; text-align: center; }
.preview-toolbar { min-height: 66px; padding: 11px 16px 10px 18px; } .preview-title { gap: 11px; } .preview-title .panel-kicker { align-self: center; margin: 0; } .live-dot { padding: 3px 7px; color: var(--green); background: var(--green-soft); border-radius: 5px; font-size: 9px; font-weight: 800; } .view-tabs { display: flex; align-items: center; gap: 3px; padding: 3px; background: #f2f6fa; border: 1px solid #e5ecf3; border-radius: 7px; } .view-tabs button { min-width: 42px; height: 27px; padding: 0 7px; color: #718096; background: transparent; border: 0; border-radius: 5px; font-size: 11px; font-weight: 700; } .view-tabs button.active { color: var(--blue-deep); background: #fff; box-shadow: 0 2px 6px rgba(30,64,175,.1); } .paper-size { color: var(--subtle); font-size: 10px; font-weight: 700; }
.print-sheet { padding: 23px; background: #eaf0f6; } .sheet-frame { width: 100%; aspect-ratio: 297 / 210; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 7px; padding: 13px; overflow: hidden; background: #fff; border: 1px solid #8595a8; box-shadow: 0 11px 25px rgba(30,55,82,.12); }
.sheet-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 3px 7px; border-bottom: 1px solid #23384e; } .sheet-heading h2 { margin: 3px 0 0; color: #172b42; font-size: clamp(14px, 1.4vw, 21px); line-height: 1; letter-spacing: .02em; } .sheet-heading-right { display: grid; justify-items: end; gap: 3px; color: #657689; font-size: 9px; } .sheet-heading-right strong { color: #172b42; font-size: 12px; letter-spacing: .08em; }
.sheet-view-wrap { min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; border: 1px solid #b9c8d7; background: #f8fbff; } .engineering-canvas { width: 100%; height: 100%; min-height: 0; display: block; }
.view-note-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #b9c8d7; background: #fff; }
.view-note-grid > div { min-width: 0; display: grid; gap: 2px; padding: 5px 8px 4px; border-right: 1px solid #d7e0e8; }
.view-note-grid > div:last-child { border-right: 0; }
.view-note-grid strong { color: #1d4ed8; font-size: 10px; line-height: 1.1; }
.view-note-grid span { overflow: hidden; color: #64748b; font-size: 8px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.sheet-process { display: grid; grid-template-columns: 125px 1fr; gap: 10px; align-items: center; padding: 6px 8px; border: 1px solid #aabaca; background: #f5f8fb; } .sheet-process-title { display: grid; gap: 1px; padding-right: 8px; border-right: 1px solid #ccd7e2; } .sheet-process-title span { color: #253c55; font-size: 11px; font-weight: 800; } .sheet-process-title small { color: #8293a6; font-size: 7px; letter-spacing: .08em; } .sheet-process-list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; } .sheet-step { position: relative; display: flex; align-items: center; gap: 5px; min-width: 0; color: #41566d; font-size: 9px; font-weight: 700; } .sheet-step i { flex: 0 0 auto; width: 19px; height: 19px; display: grid; place-items: center; color: #fff; background: #3569bb; border-radius: 50%; font-size: 8px; font-style: normal; } .sheet-step > span { white-space: nowrap; } .sheet-step b { margin-left: auto; color: #a8b6c5; font-size: 12px; font-weight: 400; }
.sheet-footer { display: grid; grid-template-columns: 1.1fr 1.5fr 1fr; min-height: 53px; border: 1px solid #6f8296; } .sheet-company, .sheet-data-grid, .sheet-signatures { padding: 6px 8px; } .sheet-company { display: grid; align-content: center; gap: 1px; background: #f3f6f9; border-right: 1px solid #aabaca; } .sheet-logo { color: #145b9c; font-size: 17px; font-weight: 900; letter-spacing: .04em; line-height: 1; } .sheet-company strong { color: #1f344c; font-size: 8px; } .sheet-company span { color: #8091a2; font-size: 7px; } .sheet-data-grid, .sheet-signatures { display: grid; grid-template-columns: 1fr 1fr; padding: 0; } .sheet-data-grid span, .sheet-signatures span { display: flex; align-items: center; gap: 5px; padding: 3px 6px; color: #334a62; border-bottom: 1px solid #d3dce5; font-size: 8px; } .sheet-data-grid span:nth-child(odd), .sheet-signatures span:nth-child(odd) { border-right: 1px solid #d3dce5; } .sheet-data-grid span:nth-last-child(-n+2), .sheet-signatures span:nth-last-child(-n+2) { border-bottom: 0; } .sheet-data-grid b, .sheet-signatures b { color: #8b9aaa; font-size: 7px; font-weight: 700; } .sheet-signatures { border-left: 1px solid #aabaca; }
.workflow-section { padding: 0 23px 22px; } .workflow-heading { justify-content: space-between; padding: 0 1px 11px; } .workflow-heading > span { color: var(--subtle); font-size: 10px; } .workflow-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; } .workflow-card { min-height: 143px; padding: 11px; background: #fbfdff; border: 1px solid var(--line); border-radius: 8px; transition: .18s ease; } .workflow-card:hover { border-color: #a8c4f8; transform: translateY(-2px); box-shadow: var(--shadow-sm); } .workflow-card-top { display: flex; align-items: center; justify-content: space-between; } .workflow-card-top > span { color: var(--blue); font-size: 19px; font-weight: 900; line-height: 1; } .workflow-card-top em { padding: 3px 5px; color: #5f7ca4; background: var(--surface-blue); border-radius: 4px; font-size: 9px; font-style: normal; font-weight: 700; } .workflow-card h4 { margin: 10px 0 4px; color: #263b53; font-size: 12px; } .workflow-card p { min-height: 51px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; } .workflow-card small { display: flex; align-items: center; gap: 5px; padding-top: 8px; color: var(--green); border-top: 1px solid #e7eef4; font-size: 9px; font-weight: 700; } .workflow-card small i { font-style: normal; }
.feedback-bar { justify-content: space-between; gap: 18px; margin: 0 23px 22px; padding: 13px 15px; background: var(--green-soft); border: 1px solid #c8e9da; border-radius: 8px; } .feedback-bar > div { gap: 10px; } .feedback-icon { width: 25px; height: 25px; display: grid; place-items: center; color: #fff; background: var(--green); border-radius: 50%; font-size: 13px; } .feedback-bar p { display: grid; gap: 2px; margin: 0; } .feedback-bar strong { color: #176c4e; font-size: 11px; } .feedback-bar p span { color: #5c8877; font-size: 10px; }
@media (max-width: 1180px) { .workflow-grid { grid-template-columns: repeat(3, 1fr); } .workflow-card { min-height: 132px; } .sheet-process { grid-template-columns: 95px 1fr; } .sheet-process-title small { display: none; } }
@media (max-width: 920px) { .app-shell { width: min(100% - 24px, 760px); margin-top: 12px; } .topbar, .page-intro { align-items: flex-start; flex-direction: column; } .header-actions { width: 100%; flex-wrap: wrap; } .header-actions .button-primary { margin-left: auto; } .workspace { grid-template-columns: 1fr; } .control-panel { position: static; } .print-sheet { padding: 10px; } .workflow-section { padding: 0 10px 15px; } .feedback-bar { margin: 0 10px 15px; } }
@media (max-width: 580px) { .app-shell { width: calc(100% - 16px); } .title-group h1 { font-size: 15px; } .version-badge, .status-pill, .paper-size { display: none; } .page-intro h2 { font-size: 20px; } .preview-toolbar { align-items: flex-start; flex-wrap: wrap; } .view-tabs { order: 3; width: 100%; justify-content: space-between; } .view-tabs button { flex: 1; } .sheet-frame { padding: 7px; } .sheet-footer { grid-template-columns: 1fr 1fr; } .sheet-company { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid #aabaca; } .sheet-signatures { border-left: 0; } .sheet-process { display: none; } .view-note-grid { grid-template-columns: 1fr 1fr; } .view-note-grid > div:nth-child(2) { border-right: 0; } .view-note-grid > div:nth-child(-n+2) { border-bottom: 1px solid #d7e0e8; } .engineering-canvas { min-height: 240px; } .workflow-grid { grid-template-columns: 1fr 1fr; } .feedback-bar { align-items: flex-start; flex-direction: column; } }
@media print { @page { size: A4 landscape; margin: 0; } html, body { width: 297mm; height: 210mm; background: #fff; } body { overflow: hidden; } .app-shell { width: 297mm; margin: 0; } .topbar, .page-intro, .control-panel, .preview-toolbar, .screen-only { display: none !important; } .workspace, .preview-panel { display: block; border: 0; box-shadow: none; } .print-sheet { width: 297mm; height: 210mm; padding: 0; background: #fff; } .sheet-frame { width: 297mm; height: 210mm; padding: 6mm; gap: 2.4mm; border: .35mm solid #61778d; box-shadow: none; } .sheet-heading { padding-bottom: 2mm; } .sheet-view-wrap { min-height: 0; } .engineering-canvas { min-height: 0; } .sheet-process { padding: 1.4mm 2mm; } .sheet-footer { min-height: 16mm; } .sheet-company, .sheet-data-grid, .sheet-signatures { padding: 1.5mm 2mm; } .sheet-logo { font-size: 16pt; } .sheet-company strong { font-size: 7pt; } .sheet-company span, .sheet-data-grid span, .sheet-signatures span { font-size: 6.5pt; } .sheet-overline { font-size: 6pt; } .sheet-heading h2 { font-size: 16pt; } .sheet-heading-right { font-size: 7pt; } .sheet-heading-right strong { font-size: 9pt; } }
@media print { .view-note-grid strong { font-size: 7pt; } .view-note-grid span { font-size: 5.6pt; } .view-note-grid > div { padding: 1.2mm 1.8mm 1mm; } }
