:root { color-scheme: light; font-family: "Microsoft YaHei", system-ui, sans-serif; color: #172033; background: #f4f7fb; }
* { box-sizing: border-box; }
body { margin: 0; }
.page { max-width: 1320px; margin: 0 auto; padding: 32px 20px 56px; }
.card { background: #fff; border: 1px solid #e3e9f3; border-radius: 10px; box-shadow: 0 6px 20px rgb(28 58 107 / 5%); }
.login-card { width: min(100%, 420px); margin: 10vh auto; padding: 32px; }
.workspace { display: grid; gap: 16px; }
#order-list-view:not([hidden]), #order-detail-view:not([hidden]), #order-edit-view:not([hidden]) { display: grid; gap: 16px; }
.topbar, .toolbar, .account, .status-form { display: flex; gap: 12px; align-items: end; }
.topbar { justify-content: space-between; align-items: center; }
.eyebrow { color: #2d6cdf; font-size: 13px; font-weight: 700; margin: 0 0 4px; }
h1 { margin: 0; font-size: 26px; } h2 { font-size: 17px; margin: 0 0 12px; }
.stack, label { display: grid; gap: 6px; font-size: 14px; }
.stack { gap: 16px; margin-top: 24px; }
input, select, button { min-height: 38px; border-radius: 6px; border: 1px solid #cbd7e8; font: inherit; }
input, select { padding: 7px 10px; background: #fff; }
button { cursor: pointer; padding: 7px 14px; color: #fff; background: #1769e0; border-color: #1769e0; font-weight: 600; }
button.secondary { color: #24548d; background: #fff; border-color: #cbd7e8; }
.board-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.board-nav button { color: #3f506b; background: #fff; border-color: #d8e1ee; }
.board-nav button.active { color: #fff; background: #1769e0; border-color: #1769e0; }
.toolbar { padding: 14px; align-items: end; } .toolbar label { flex: 1; max-width: 420px; }
.table-card { overflow-x: auto; } table { width: 100%; border-collapse: collapse; min-width: 900px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #edf1f6; font-size: 14px; white-space: nowrap; }
th { color: #52647f; background: #f8faff; } tbody tr:hover { background: #f9fbfe; }
.order-detail-card { padding: 18px; display: grid; gap: 16px; }
.order-detail-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; }
.order-detail-fields div { display: grid; gap: 3px; padding: 8px 0; border-bottom: 1px solid #edf1f6; }
.order-detail-fields span { color: #52647f; font-size: 13px; }
.order-detail-fields strong { font-size: 14px; overflow-wrap: anywhere; }
.attachment-card { padding-top: 4px; }
.attachment-header, .image-preview-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.attachment-groups { display: grid; gap: 18px; }
.attachment-group { border-top: 1px solid #edf1f6; padding-top: 14px; }
.attachment-group h3 { font-size: 15px; margin: 0 0 10px; }
.attachment-items { display: flex; flex-wrap: wrap; gap: 12px; }
.attachment-item { width: 152px; display: grid; gap: 7px; align-content: start; }
.attachment-thumbnail { padding: 0; min-height: 104px; overflow: hidden; background: #f7f9fc; border-color: #d8e1ee; }
.attachment-thumbnail img { display: block; width: 100%; height: 120px; object-fit: cover; }
.attachment-thumbnail.load-error::after { content: "图片加载失败"; color: #b42318; font-size: 13px; }
.attachment-name { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.attachment-download { color: #1769e0; font-size: 13px; font-weight: 600; text-decoration: none; }
.attachment-file-icon { display: grid; place-items: center; min-height: 76px; border: 1px solid #d8e1ee; border-radius: 6px; color: #52647f; background: #f7f9fc; font-size: 13px; }
.image-preview { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 24px; background: rgb(12 21 38 / 78%); }
.image-preview[hidden] { display: none; }
.image-preview-content { width: min(100%, 1100px); max-height: 100%; display: grid; gap: 12px; }
.image-preview-actions { justify-content: flex-end; }
.preview-download { display: inline-flex; align-items: center; padding: 7px 14px; min-height: 38px; text-decoration: none; }
.image-preview img { max-width: 100%; max-height: calc(100vh - 110px); margin: 0 auto; object-fit: contain; border-radius: 6px; background: #fff; }
.status-card { padding: 18px; } .status-form { flex-wrap: wrap; align-items: end; } .status-form label { min-width: 180px; }
.business-form-card { padding: 18px; display: grid; gap: 16px; }
.business-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.order-number { min-height: auto; padding: 0; color: #1769e0; background: transparent; border: 0; font-weight: 700; text-decoration: underline; }
.section-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.business-form { display: grid; gap: 14px; }
.form-grid { display: grid; gap: 12px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.checkbox-label { display: flex; align-items: center; gap: 8px; min-height: 38px; }
.checkbox-label input { min-height: auto; width: 16px; height: 16px; }
textarea { width: 100%; min-height: 64px; padding: 7px 10px; border: 1px solid #cbd7e8; border-radius: 6px; font: inherit; resize: vertical; }
.attachment-inputs input[type="file"] { padding: 5px; font-size: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.upload-results { display: grid; gap: 5px; margin: 0; padding-left: 20px; color: #b42318; font-size: 14px; }
.upload-results .ok { color: #16803c; }
.supplement-form { border-top: 1px solid #edf1f6; padding-top: 16px; }
.supplement-form h3 { margin: 0; font-size: 15px; }
.message { min-height: 20px; margin: 0; color: #b42318; font-size: 14px; } .message.ok { color: #16803c; }
@media (max-width: 760px) { .form-grid.two, .form-grid.three, .order-detail-fields { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .page { padding: 20px 12px; } .topbar { align-items: start; } .toolbar, .status-form { align-items: stretch; flex-direction: column; } .status-form label { min-width: 0; } .attachment-item { width: calc(50% - 6px); } }
