:root { font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; color: #171c1b; background: #f5f6f6; font-size: 14px; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 1160px; background: #f5f6f6; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.order-topbar { position: fixed; z-index: 30; inset: 0 0 auto 0; height: 72px; padding: 0 18px 0 28px; display: flex; align-items: center; gap: 28px; background: #fff; border-bottom: 1px solid #eceeed; }
.wx-brand { display: flex; align-items: center; min-width: 176px; color: #1b201f; font-size: 24px; text-decoration: none; }
.wx-mark { display: grid; place-items: center; width: 34px; height: 29px; margin-right: 9px; border-radius: 10px 10px 13px 13px; color: #fff; background: #10bfae; }
.top-search { width: 400px; height: 46px; display: grid; grid-template-columns: 34px minmax(0,1fr) 70px; align-items: center; border: 1px solid #dedfdf; border-radius: 10px; }
.top-search span { padding-left: 16px; color: #69716f; }
.top-search input { min-width: 0; border: 0; outline: 0; }
.top-search button { height: 36px; margin-right: 6px; border: 0; border-radius: 6px; background: #f7f7f7; }
.order-topbar nav { display: flex; gap: 30px; white-space: nowrap; }
.order-topbar nav a, .top-tools button { color: #111; text-decoration: none; }
.top-tools { margin-left: auto; display: flex; gap: 17px; white-space: nowrap; }
.top-tools button { position: relative; padding: 0; border: 0; background: transparent; }
.top-tools em { position: absolute; top: -15px; right: -9px; min-width: 22px; padding: 2px 5px; border-radius: 11px; color: #fff; background: #ff5353; font-style: normal; font-size: 11px; }
.order-account { position: relative; }
.order-account > button { height: 46px; display: flex; align-items: center; gap: 7px; border: 0; border-radius: 6px; background: #f6f7f7; cursor: pointer; }
.order-avatar { position: relative; width: 29px; height: 29px; overflow: hidden; border-radius: 50%; background: #dff4e5; }
.order-avatar img, .order-avatar i { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.order-avatar i { display: grid; place-items: center; color: #5c8d67; font-style: normal; }
.account-popover { position: absolute; top: 54px; right: 0; display: none; width: 166px; padding: 20px; border-radius: 10px; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.order-account.open .account-popover { display: grid; gap: 9px; }
.account-popover span { color: #7f8785; font-size: 12px; }
.account-popover hr { width: 100%; border: 0; border-top: 1px solid #e8ebea; }
.account-popover a, .account-popover button { min-height: 34px; padding: 0; border: 0; color: #27302e; background: transparent; text-align: left; text-decoration: none; }
.order-sidebar { position: fixed; z-index: 20; top: 72px; bottom: 0; left: 0; width: 300px; overflow-y: auto; background: #f4f5f5; }
.order-sidebar nav { padding: 20px 16px 50px; }
.order-sidebar a, .order-nav-group > button { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border: 0; color: #202624; background: transparent; text-decoration: none; text-align: left; cursor: pointer; }
.order-sidebar a > span, .order-nav-group > button > span { width: 22px; color: #171d1b; font-size: 20px; text-align: center; }
.order-nav-group > button { position: relative; font-size: 16px; }
.order-nav-group > button b { margin-left: auto; color: #a0a5a4; font-weight: 400; }
.order-nav-group > button i { width: 7px; height: 7px; border-radius: 50%; background: #ff5858; }
.order-nav-group > div { display: none; grid-template-columns: 1fr 1fr; padding: 0 7px 8px 40px; }
.order-nav-group.open > div { display: grid; }
.order-nav-group > div a { min-height: 36px; padding: 0; color: #656d6b; font-size: 13px; }
.order-nav-group > div a.active { color: #08b4a5; font-weight: 650; }
.order-nav-group em { padding: 1px 4px; color: #0ca99c; background: #d7f8f3; font-size: 10px; font-style: normal; }
.order-main { margin: 72px 0 0 300px; padding: 28px 26px 70px; }
.order-main h1 { margin: 0 0 17px; font-size: 25px; }
.info-banner { min-height: 42px; padding: 11px 16px; color: #466a77; background: #e1f5fc; border-radius: 7px; }
.info-banner button { border: 0; color: #39739b; background: transparent; }
.info-banner b { float: right; color: #9db1b8; font-weight: 400; }
.order-workspace { margin-top: 15px; }
.all-orders-label { padding: 18px 20px; color: #08af9f; background: #fff; border-radius: 9px; }
.status-tabs { display: flex; gap: 32px; height: 55px; margin-top: 12px; padding: 0 24px; align-items: end; white-space: nowrap; background: #fff; border-radius: 9px 9px 0 0; }
.status-tabs button { height: 44px; padding: 0; border: 0; border-bottom: 2px solid transparent; color: rgba(0,0,0,.9); background: transparent; font-weight: 400; }
.status-tabs button.active { border-color: rgba(0,0,0,.9); font-weight: 400; }
#order-filters { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; padding: 16px 24px 0; background: #fff; }
#order-filters.compact .extra-filter { display: none; }
#order-filters label { height: 40px; min-width: 0; padding-left: 12px; display: grid; grid-template-columns: max-content minmax(0,1fr); align-items: center; overflow: hidden; color: rgba(0,0,0,.55); border: 1px solid rgba(0,0,0,.1); border-radius: 8px; background: #fff; }
#order-filters input, #order-filters select { min-width: 0; width: calc(100% - 8px); height: 20px; margin-left: 8px; padding: 0 8px; border: 0; border-left: .5px solid rgba(0,0,0,.1); outline: 0; color: rgba(0,0,0,.9); background: transparent; }
#order-filters label:focus-within { border-color: #13b7aa; }
#order-filters input::placeholder { color: rgba(0,0,0,.3); }
.date-range { grid-column: span 2; }
.date-range > span { display: grid; grid-template-columns: 1fr 24px 1fr; align-items: center; margin-left: 8px; border-left: .5px solid rgba(0,0,0,.1); }
.date-range > span input { width: 100% !important; margin: 0 !important; border: 0 !important; }
.date-range i { color: rgba(0,0,0,.3); font-style: normal; text-align: center; }
.filter-actions { grid-column: 1 / -1; display: flex; align-items: center; height: 40px; margin-top: -4px; margin-bottom: 12px; color: rgba(0,0,0,.55); }
.filter-actions button, .list-tools button { height: 38px; padding: 0 20px; border: 0; border-radius: 6px; background: #f5f6f6; }
.query-button { color: #fff !important; background: #10b7a8 !important; }
.filter-actions .query-button { width: 108px; margin-right: 16px; color: rgba(0,0,0,.9) !important; background: rgba(0,0,0,.03) !important; }
.filter-actions button:not(.query-button) { height: 40px; padding: 0; display: flex; align-items: center; margin-right: 16px; color: rgba(0,0,0,.55); background: transparent; }
.reset-icon { width: 16px; height: 16px; margin-left: 4px; opacity: .55; }
.hide-search-icon { width: 20px; height: 20px; margin-left: 2px; transition: transform .15s ease; }
.hide-search-icon.collapsed { transform: rotate(180deg); }
.list-tools { height: 44px; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; color: rgba(0,0,0,.55); background: #fff; }
.list-tools > div { display: flex; align-items: center; }
.list-divider { width: .5px; height: 12px; margin: 0 12px; background: rgba(0,0,0,.1); }
.list-tools button { height: auto; padding: 0; color: #576b95; background: transparent; }
.list-tools > button { display: flex; align-items: center; color: rgba(0,0,0,.55); }
.sort-icon { width: 7px; height: 7px; margin: -3px 1px 0 6px; border-right: 1px solid rgba(0,0,0,.55); border-bottom: 1px solid rgba(0,0,0,.55); transform: rotate(45deg); }
.sort-icon.up { margin-top: 3px; transform: rotate(225deg); }
.order-table-wrap { overflow-x: auto; padding: 0 24px 24px; background: #fff; }
.order-table-head, .order-detail-grid { min-width: 1120px; display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); column-gap: 16px; }
.order-table-head { height: 44px; padding: 0 16px; align-items: center; color: rgba(0,0,0,.55); background: rgba(0,0,0,.03); border-bottom: .5px solid rgba(0,0,0,.1); }
.order-product-head { grid-column: span 4; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); column-gap: 32px; align-items: center; }
.order-product-head .product-head { grid-column: span 2; display: flex; align-items: center; }
.order-product-head input, .order-strip input { width: 16px; height: 16px; margin: 0 12px 0 0; }
.paid-head { grid-column: span 2; }
.buyer-head-cell { grid-column: span 3; }
.status-head { grid-column: span 2; }
.actions-head { grid-column: span 1; text-align: right; }
.order-card { min-width: 1120px; }
.order-strip { padding: 8px 16px; display: flex; align-items: center; color: rgba(0,0,0,.55); background: #f7f7f7; line-height: 20px; }
.order-strip span:first-of-type { margin-right: 12px; }
.order-strip span:last-of-type { margin-right: 16px; }
.order-detail-grid { padding: 0 16px; border-bottom: .5px solid rgba(0,0,0,.1); }
.order-product-list { grid-column: span 4; min-width: 0; padding: 16px 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); column-gap: 32px; border-right: .5px solid rgba(0,0,0,.1); }
.order-product-content { grid-column: span 3; min-width: 0; display: flex; justify-content: space-between; }
.order-product { min-width: 0; display: flex; flex-direction: row; padding-right: 16px; }
.order-product img { width: 64px; height: 64px; flex-shrink: 0; margin-right: 12px; border-radius: 4px; object-fit: cover; background: #f5e8d8; }
.order-product > div { min-width: 0; display: flex; flex-direction: column; }
.order-product strong { display: -webkit-box; overflow: hidden; padding-right: 16px; color: rgba(0,0,0,.9); font-weight: 400; line-height: 20px; text-overflow: ellipsis; word-break: break-all; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.order-product span { margin-top: 2px; color: rgba(0,0,0,.5); line-height: 20px; }
.order-product em { margin-top: 2px; color: #576b95; font-style: normal; line-height: 20px; }
.order-unit { height: 64px; flex-shrink: 0; text-align: right; white-space: nowrap; }
.order-unit strong, .order-unit span { display: block; color: rgba(0,0,0,.9); font-weight: 400; line-height: 20px; }
.order-unit span { color: rgba(0,0,0,.55); }
.order-after-sale { padding-right: 16px; color: rgba(0,0,0,.9); line-height: 20px; }
.order-paid, .buyer-cell, .order-status { min-width: 0; padding: 16px 16px 16px 0; display: flex; flex-direction: column; align-items: flex-start; border-right: .5px solid rgba(0,0,0,.1); line-height: 20px; }
.order-paid { grid-column: span 2; gap: 2px; }
.order-paid strong { color: rgba(0,0,0,.9); font-weight: 400; }
.order-paid span { color: rgba(0,0,0,.55); }
.buyer-cell { grid-column: span 3; }
.buyer-head { margin-bottom: 4px; line-height: 20px; }
.buyer-head strong { color: rgba(0,0,0,.9); font-weight: 400; }
.buyer-cell button { margin-left: 8px; padding: 0; border: 0; color: #576b95; background: transparent; }
.order-address { display: flex; color: rgba(0,0,0,.9); line-height: 20px; }
.order-address > span { flex-shrink: 0; margin-right: 8px; color: rgba(0,0,0,.55); }
.order-eye { position: relative; top: 3px; width: 16px; height: 16px; margin-left: 4px; }
.order-status { grid-column: span 2; gap: 2px; }
.order-status strong { color: rgba(0,0,0,.9); font-weight: 400; }
.order-status span { color: rgba(0,0,0,.55); }
.order-actions { grid-column: span 1; padding: 16px 0; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.order-actions button { padding: 0; border: 0; color: #576b95; background: transparent; }
.order-empty { padding: 80px 20px; color: #87908e; text-align: center; }
.float-help, .float-mail { position: fixed; z-index: 15; right: 18px; width: 46px; height: 46px; border: 1px solid #e3e6e5; border-radius: 50%; background: #fff; box-shadow: 0 4px 13px rgba(0,0,0,.06); }
.float-help { bottom: 78px; color: #10baa9; }.float-mail { bottom: 22px; }
.order-backdrop { position: fixed; z-index: 40; inset: 0; display: none; background: rgba(20,27,26,.28); }
.order-backdrop.open { display: block; }
.order-drawer { position: fixed; z-index: 41; top: 0; right: -480px; width: 460px; height: 100vh; padding: 24px; background: #fff; box-shadow: -10px 0 30px rgba(0,0,0,.1); transition: right .2s ease; }
.order-drawer.open { right: 0; }
.order-drawer header, .note-dialog header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e6e9e8; }
.order-drawer header button, .note-dialog header button { border: 0; background: transparent; font-size: 24px; }
.drawer-content { display: grid; gap: 0; margin-top: 20px; }
.drawer-content div { padding: 13px 0; display: grid; grid-template-columns: 90px 1fr; border-bottom: 1px solid #edf0ef; }
.drawer-content span { color: #7a8381; }.drawer-content strong { font-weight: 500; }
.note-dialog { position: fixed; z-index: 42; top: 50%; left: 50%; display: none; width: 440px; padding: 22px; border-radius: 10px; background: #fff; transform: translate(-50%,-50%); }
.note-dialog.open { display: block; }
.note-dialog textarea { width: 100%; min-height: 120px; margin: 18px 0; padding: 12px; resize: vertical; border: 1px solid #dfe3e2; border-radius: 6px; }
.note-dialog footer { display: flex; justify-content: flex-end; gap: 10px; }.note-dialog footer button { height: 38px; padding: 0 20px; border: 1px solid #dfe3e2; border-radius: 6px; background: #fff; }
.order-toast { position: fixed; z-index: 50; left: 50%; bottom: 34px; padding: 11px 18px; border-radius: 6px; color: #fff; background: rgba(31,39,37,.9); opacity: 0; transform: translate(-50%,12px); transition: .18s ease; pointer-events: none; }
.order-toast.show { opacity: 1; transform: translate(-50%,0); }
[hidden] { display: none !important; }
@media (max-width: 1450px) { .order-sidebar { width: 220px; } .order-main { margin-left: 220px; } }
@media (max-width: 1320px) { .order-topbar nav { display: none; } .top-search { width: 320px; } }
