* { box-sizing: border-box; } body { margin: 0; font-family: "Microsoft YaHei", "SimHei", "PingFang SC", sans-serif; background: #f4f6f8; color: #222; font-size: 14px; } a { color: #1668dc; text-decoration: none; } a:hover { text-decoration: underline; } .topbar { background: #123a6b; color: #fff; padding: 0 20px; height: 52px; display: flex; align-items: center; gap: 22px; } .topbar .brand { font-size: 16px; font-weight: 600; letter-spacing: .5px; } .topbar nav a { color: #d8e6f7; font-size: 14px; } .topbar nav a:hover, .topbar nav a.active { color: #fff; text-decoration: none; } .topbar .spacer { flex: 1; } .topbar .me { color: #cfe0f5; font-size: 13px; } .wrap { max-width: 1180px; margin: 18px auto 40px; padding: 0 16px; } .card { background: #fff; border: 1px solid #e2e6ea; border-radius: 6px; padding: 16px 18px; margin-bottom: 16px; } .card h2 { margin: 0 0 12px; font-size: 15px; font-weight: 600; } .card h3 { margin: 18px 0 8px; font-size: 14px; font-weight: 600; color: #444; } h1.page { font-size: 18px; margin: 4px 0 14px; } table.grid { width: 100%; border-collapse: collapse; font-size: 13px; } table.grid th, table.grid td { border: 1px solid #dfe3e8; padding: 6px 8px; text-align: left; vertical-align: middle; } table.grid th { background: #f0f3f7; font-weight: 600; white-space: nowrap; } table.grid tr:hover td { background: #fafbfc; } table.grid td.num, table.grid th.num { text-align: right; } .form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 16px; } .form-grid.two { grid-template-columns: repeat(2, 1fr); } label { display: block; font-size: 12px; color: #666; margin-bottom: 3px; } input:not([type]), input[type=text], input[type=password], input[type=number], input[type=date], select, textarea { width: 100%; padding: 6px 8px; border: 1px solid #ccd3da; border-radius: 4px; font-size: 13px; font-family: inherit; background: #fff; } textarea { min-height: 60px; resize: vertical; } input:focus, select:focus, textarea:focus { outline: none; border-color: #1668dc; } .btn { display: inline-block; padding: 7px 14px; border: 1px solid #c4ccd4; border-radius: 4px; background: #fff; color: #333; font-size: 13px; cursor: pointer; font-family: inherit; } .btn:hover { background: #f2f5f8; text-decoration: none; } .btn.primary { background: #1668dc; border-color: #1668dc; color: #fff; } .btn.primary:hover { background: #0f57bd; } .btn.ok { background: #12a05c; border-color: #12a05c; color: #fff; } .btn.ok:hover { background: #0e8a4f; } .btn.danger { background: #d9363e; border-color: #d9363e; color: #fff; } .btn.danger:hover { background: #bc2b32; } .btn.sm { padding: 4px 9px; font-size: 12px; } .toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; } .toolbar .grow { flex: 1; } .flash { padding: 9px 12px; border-radius: 4px; margin-bottom: 12px; font-size: 13px; } .flash.ok { background: #e8f6ee; border: 1px solid #b7e2cb; color: #12703f; } .flash.error { background: #fdecec; border: 1px solid #f4bcbc; color: #a32026; } .badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; } .badge.draft { background: #eef0f2; color: #666; } .badge.pending_review { background: #fff4e0; color: #a35c00; } .badge.pending_approval { background: #e6f0ff; color: #14509b; } .badge.approved { background: #e8f6ee; color: #12703f; } .badge.rejected { background: #fdecec; color: #a32026; } .badge.voided { background: #eceef1; color: #555; text-decoration: line-through; } .stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; } .stat { background: #fff; border: 1px solid #e2e6ea; border-radius: 6px; padding: 12px 14px; } .stat .v { font-size: 22px; font-weight: 600; } .stat .k { font-size: 12px; color: #777; margin-top: 2px; } .muted { color: #888; font-size: 12px; } .right { text-align: right; } .center { text-align: center; } .nowrap { white-space: nowrap; } .login-box { width: 340px; margin: 90px auto; background: #fff; padding: 24px; border: 1px solid #e2e6ea; border-radius: 8px; } .login-box h2 { margin: 0 0 16px; font-size: 17px; text-align: center; } .login-box .field { margin-bottom: 12px; } .timeline { list-style: none; margin: 0; padding: 0; font-size: 13px; } .timeline li { padding: 6px 0; border-bottom: 1px dashed #e5e8eb; } .timeline li:last-child { border-bottom: none; } .kv-table td { padding: 5px 8px; border: 1px solid #dfe3e8; font-size: 13px; } .kv-table td.k { background: #f5f7f9; color: #555; width: 110px; white-space: nowrap; } .total-bar { display: flex; gap: 18px; align-items: center; margin: 10px 0; font-size: 14px; } .total-bar .amt { font-size: 18px; font-weight: 600; color: #c0392b; } .hint { background: #f7f9fb; border-left: 3px solid #1668dc; padding: 8px 12px; font-size: 12.5px; color: #555; margin-bottom: 12px; } footer.foot { text-align: center; color: #999; font-size: 12px; margin: 24px 0; } /* 卡片标题栏:标题 + 右侧操作按钮 */ .card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; } .card-head h2 { margin: 0; } .field { margin-bottom: 12px; } /* 模态弹窗 */ .modal-mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.45); z-index: 1000; display: flex; align-items: center; justify-content: center; } .modal-box { background: #fff; border-radius: 8px; width: 520px; max-width: 92vw; max-height: 88vh; overflow: auto; box-shadow: 0 8px 32px rgba(0,0,0,.25); } .modal-head { padding: 12px 16px; border-bottom: 1px solid #e5e8eb; font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; } .modal-close { cursor: pointer; color: #888; font-size: 22px; line-height: 1; padding: 0 4px; } .modal-close:hover { color: #333; } .modal-body { padding: 16px; } .modal-foot { padding: 12px 16px; border-top: 1px solid #e5e8eb; display: flex; justify-content: flex-end; gap: 8px; } /* 停用记录:整行置灰 */ table.grid tr.row-off td, table.grid tr.row-off:hover td { color: #a3a8ad; background: #f5f6f7; } table.grid tr.row-off td a, table.grid tr.row-off td b { color: #a3a8ad; } table.grid tr.row-off .btn { opacity: .8; } /* 电子章预览(页面上的红色圆形章) */ .seal-wrap { display: inline-block; padding: 6px 10px; border: 1px dashed #d9b3b3; border-radius: 6px; background: #fffafa; } .seal-tip { color: #12703f; font-size: 13px; font-weight: 600; margin-bottom: 6px; } .seal-preview { display: block; width: 180px; height: 180px; color: #C8102E; } .seal-company { font-family: "FangSong", "STFangsong", "Songti SC", "SimSun", serif; font-weight: 400; } .seal-code { font-family: Arial, "Helvetica Neue", sans-serif; font-weight: 400; } .notification-wide { grid-column: 1 / -1; } .tracking-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 8px 0 16px; } .tracking-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; } .tracking-forms form { min-width: 0; padding-top: 4px; border-top: 1px solid #e2e6ea; } .tracking-stat { color: #222; } .tracking-stat:hover { border-color: #1668dc; text-decoration: none; background: #f7faff; } .tracking-warning { color: #a35c00; font-size: 12px; margin-top: 4px; } .badge.track-unknown { background: #eef0f2; color: #666; } .badge.track-pending, .badge.track-unpaid { background: #fff4e0; color: #a35c00; } .badge.track-partial { background: #e6f0ff; color: #14509b; } .badge.track-received, .badge.track-delivered, .badge.track-paid { background: #e8f6ee; color: #12703f; } .mobile-only { display: none; } @media (max-width: 800px) { .topbar { height: auto; min-height: 52px; flex-wrap: wrap; gap: 12px; padding: 12px 16px; } .topbar .brand { width: 100%; } .topbar nav { width: 100%; overflow-x: auto; padding-bottom: 6px; white-space: nowrap; } .topbar .spacer { display: none; } .topbar .me { flex: 1; } .wrap { margin-top: 12px; padding: 0 10px; } .card { padding: 14px 12px; overflow-x: auto; } .form-grid, .form-grid.two { grid-template-columns: 1fr; } .form-grid > [style*="grid-column"] { grid-column: auto !important; } .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .tracking-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tracking-forms { grid-template-columns: minmax(0, 1fr); } table.grid { min-width: 680px; } table.approval-flow { min-width: 0; } .mobile-only { display: block; } .kv-table { min-width: 520px; } .toolbar > * { max-width: 100%; } .total-bar { flex-wrap: wrap; gap: 8px; } .login-box { width: calc(100% - 32px); max-width: 380px; margin: 40px auto; } h1.page { overflow-wrap: anywhere; line-height: 1.6; } .btn { min-height: 40px; } input:not([type=hidden]):not([type=checkbox]), select, textarea { font-size: 16px; } }