:root {
  --ink: #102a43; --muted: #657685; --paper: #f3f6f7; --card: #ffffff;
  --line: #d9e2e7; --jade: #147d92; --jade-dark: #0b5c6f; --jade-soft: #e3f3f6;
  --gold: #e08a2e; --red: #bc4c42; --red-soft: #fcedea; --amber: #c37818;
  --shadow: 0 18px 48px rgba(16, 42, 67, .09); --radius: 18px;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; }
button, input, select, textarea { font: inherit; }
button, label[for] { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
.topbar { height: 72px; padding: 0 clamp(20px, 4vw, 64px); display: flex; align-items: center; justify-content: space-between; background: var(--ink); color: white; position: sticky; top: 0; z-index: 20; }
.brand-lockup { display: flex; gap: 12px; align-items: center; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: #dff6fa; border: 1px solid rgba(223,246,250,.55); font-family: "STHeiti", sans-serif; font-size: 20px; font-weight: 700; }
.brand-lockup strong, .brand-lockup small { display: block; }
.brand-lockup strong { letter-spacing: .08em; font-weight: 600; }
.brand-lockup small { margin-top: 3px; color: rgba(255,255,255,.52); font-size: 9px; letter-spacing: .22em; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.mobile-data-menu, .process-flow-mobile { display: none; }
.btn { min-height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; text-decoration: none; transition: .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--jade); color: white; box-shadow: 0 7px 20px rgba(61,111,96,.24); }
.btn-primary:hover { background: var(--jade-dark); }
.btn-quiet { border-color: var(--line); background: transparent; color: inherit; }
.topbar .btn-quiet { border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.82); }
.page-shell { width: min(1500px, calc(100% - 48px)); margin: 0 auto; padding: 38px 0 56px; }
.welcome { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.eyebrow { margin: 0 0 8px; color: var(--jade); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.welcome h1 { margin: 0; font-family: "STSong", "Songti SC", serif; font-size: clamp(28px, 3.2vw, 46px); font-weight: 500; letter-spacing: .02em; }
.welcome-copy { margin: 10px 0 0; color: var(--muted); }
.today-card { min-width: 190px; padding: 14px 18px; border-left: 2px solid var(--gold); }
.today-card span, .today-card small { display: block; color: var(--muted); font-size: 12px; }
.today-card strong { display: block; margin: 4px 0; font-family: Georgia, serif; font-size: 19px; }
.process-band { margin-top: 28px; padding: 17px 20px 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--card); box-shadow: 0 8px 28px rgba(16,42,67,.04); }
.process-band-title { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 15px; }
.process-band-title span { font-size: 13px; font-weight: 700; letter-spacing: .05em; }
.process-band-title small { color: var(--muted); font-size: 11px; }
.process-flow { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(95px, 1fr)); list-style: none; }
.process-flow li { min-height: 54px; padding: 0 11px; display: flex; align-items: center; gap: 9px; position: relative; border-right: 1px solid var(--line); }
.process-flow li:last-child { border: 0; }
.process-flow b { width: 25px; height: 25px; flex: 0 0 25px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--jade); font: 700 10px/1 Inter, sans-serif; }
.process-flow span { color: #394f61; font-size: 11px; line-height: 1.55; white-space: nowrap; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 16px 0 18px; }
.metric { padding: 18px 20px; background: rgba(255,253,249,.72); border: 1px solid var(--line); border-radius: 14px; }
.metric-head { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; }
.metric-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--jade-soft); color: var(--jade); }
.metric-value { margin-top: 10px; font-family: Georgia, serif; font-size: 31px; }
.metric-value small { margin-left: 4px; color: var(--muted); font-family: inherit; font-size: 12px; }
.metric.alert .metric-icon { color: var(--red); background: var(--red-soft); }
.metric.alert .metric-value { color: var(--red); }
.workspace { min-height: 650px; display: grid; grid-template-columns: minmax(330px, 420px) minmax(0, 1fr); overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.order-panel { border-right: 1px solid var(--line); background: #f7f9fa; }
.panel-heading { padding: 22px 22px 14px; display: flex; align-items: center; justify-content: space-between; }
.panel-heading h2 { margin: 0; font-size: 18px; }
.panel-heading h2 span { color: var(--muted); font-size: 12px; font-weight: 400; }
.icon-btn { width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; font-size: 20px; }
.filters { padding: 0 22px 16px; display: grid; grid-template-columns: 1fr 108px; gap: 8px; }
.filters input, .filters select, .form-grid input, .form-grid select, .form-grid textarea, .form-stack input, .form-stack textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; background: white; outline: none; }
.filters input, .filters select { height: 40px; }
.filters input:focus, .filters select:focus, .form-grid :is(input,select,textarea):focus, .form-stack :is(input,textarea):focus { border-color: var(--jade); box-shadow: 0 0 0 3px rgba(61,111,96,.11); }
.search-box { position: relative; }
.search-box span { position: absolute; left: 12px; top: 7px; color: var(--muted); font-size: 20px; }
.search-box input { padding: 0 10px 0 36px; }
.filters select { padding: 0 8px; color: var(--muted); }
.order-list { border-top: 1px solid var(--line); }
.order-card { width: 100%; padding: 18px 22px; display: block; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; cursor: pointer; position: relative; }
.order-card:hover { background: white; }
.order-card.active { background: white; }
.order-card.active::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--jade); }
.order-line, .order-meta, .progress-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.order-no { font-family: Georgia, serif; font-size: 14px; letter-spacing: .03em; }
.badge { padding: 4px 8px; border-radius: 999px; color: var(--jade-dark); background: var(--jade-soft); font-size: 11px; white-space: nowrap; }
.badge.alert { color: var(--red); background: var(--red-soft); }
.badge.shipped { color: #46604b; background: #e9efe8; }
.order-product { margin: 9px 0 5px; font-size: 15px; font-weight: 600; }
.order-meta { color: var(--muted); font-size: 12px; }
.progress-line { margin-top: 12px; color: var(--muted); font-size: 11px; }
.progress-track { height: 5px; flex: 1; overflow: hidden; border-radius: 10px; background: #e2e9ec; }
.progress-fill { height: 100%; border-radius: inherit; background: var(--jade); }
.empty-state { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty-state span, .empty-state small { display: block; }
.empty-state small { margin-top: 6px; }
.detail-panel { min-width: 0; padding: 28px clamp(24px, 3vw, 44px) 38px; }
.detail-empty { height: 100%; min-height: 480px; display: grid; place-items: center; text-align: center; color: var(--muted); }
.detail-empty span { display: block; margin: auto; width: 58px; height: 58px; line-height: 58px; border-radius: 50%; background: var(--jade-soft); color: var(--jade); font-size: 25px; }
.detail-empty h2 { margin: 14px 0 6px; color: var(--ink); font-size: 20px; }
.detail-empty p { margin: 0; }
.detail-head { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.detail-title { display: flex; gap: 13px; align-items: flex-start; }
.priority-flag { margin-top: 4px; padding: 5px 7px; border-radius: 5px; background: var(--ink); color: white; font-size: 10px; }
.priority-flag.urgent { background: var(--red); }
.detail-head h2 { margin: 3px 0 7px; font-family: "STSong", serif; font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; }
.detail-sub { margin: 0; color: var(--muted); font-size: 13px; }
.detail-actions { display: flex; gap: 8px; align-items: flex-start; }
.detail-actions .btn { min-height: 36px; padding: 0 12px; font-size: 13px; }
.notice { margin: 18px 0 0; padding: 11px 14px; border-radius: 9px; color: var(--red); background: var(--red-soft); font-size: 13px; }
.summary-strip { margin: 18px 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 12px; }
.summary-item { padding: 14px 16px; border-right: 1px solid var(--line); }
.summary-item:last-child { border: 0; }
.summary-item span, .summary-item strong { display: block; }
.summary-item span { color: var(--muted); font-size: 11px; }
.summary-item strong { margin-top: 5px; font-size: 14px; }
.detail-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; align-items: start; }
.detail-column { display: grid; gap: 18px; }
.section-card { border: 1px solid var(--line); border-radius: 14px; background: white; }
.section-card-head { min-height: 56px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.section-card-head h3 { margin: 0; font-size: 15px; }
.section-card-head small { color: var(--muted); }
.text-btn { padding: 6px 0; border: 0; color: var(--jade); background: transparent; cursor: pointer; font-size: 12px; }
.item-list { padding: 5px 17px; }
.item-row { min-height: 60px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; border-bottom: 1px solid #e8eef1; }
.item-row:last-child { border: 0; }
.item-main { min-width: 0; }
.item-main strong, .item-main small { display: block; }
.item-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.item-main small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.status-select { height: 30px; padding: 0 6px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #f7fafb; font-size: 12px; }
.status-select:disabled, .shipment-body :is(input,select):disabled { color: var(--muted); background: #eef3f5; cursor: not-allowed; opacity: .78; }
.row-actions { display: flex; align-items: center; gap: 6px; }
.remove-btn { width: 26px; height: 26px; padding: 0; border: 0; color: #9c9890; background: transparent; cursor: pointer; }
.stage-list { padding: 12px 17px 4px; }
.stage-row { min-height: 56px; display: grid; grid-template-columns: 22px minmax(0,1fr) auto; gap: 10px; position: relative; }
.stage-row:not(:last-child)::before { content: ""; position: absolute; left: 9px; top: 22px; bottom: -4px; width: 1px; background: var(--line); }
.stage-dot { width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; color: white; font-size: 10px; z-index: 1; }
.stage-dot.done { border-color: var(--jade); background: var(--jade); }
.stage-dot.active { border-color: var(--gold); box-shadow: inset 0 0 0 4px white; background: var(--gold); }
.shipment-body { padding: 16px 17px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shipment-body label span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.shipment-body :is(input,select) { width: 100%; height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; background: #f7fafb; }
.shipment-body .wide { grid-column: 1 / -1; }
.log-list { padding: 8px 17px; }
.log-entry { padding: 11px 0; border-bottom: 1px solid #e8eef1; }
.log-entry:last-child { border: 0; }
.log-entry p { margin: 0 0 7px; line-height: 1.55; font-size: 13px; }
.log-entry small { color: var(--muted); font-size: 11px; }
.note-box { margin: 0; padding: 16px 17px; color: #4f5753; line-height: 1.65; font-size: 13px; }
.modal { width: min(680px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 16px; color: var(--ink); background: var(--card); box-shadow: 0 30px 100px rgba(0,0,0,.27); }
.modal::backdrop { background: rgba(17,27,23,.58); backdrop-filter: blur(3px); }
.modal-small { width: min(460px, calc(100% - 32px)); }
.modal form { padding: 24px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.modal-head h2 { margin: 0; font-family: "STSong", serif; font-size: 25px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid label span, .form-stack label span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.form-grid :is(input,select) { height: 42px; padding: 0 11px; }
.form-grid textarea, .form-stack textarea { padding: 10px 11px; resize: vertical; }
.form-grid .wide { grid-column: 1 / -1; }
.form-stack { display: grid; gap: 14px; }
.form-stack input { height: 42px; padding: 0 11px; }
.form-tip { margin: 14px 0 0; color: var(--muted); font-size: 11px; }
.modal-actions { margin-top: 22px; display: flex; justify-content: flex-end; gap: 8px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 50; padding: 11px 16px; border-radius: 999px; color: white; background: var(--ink); box-shadow: var(--shadow); opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: .22s ease; font-size: 13px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
