.password-field{position:relative;display:flex;align-items:center}.password-field .input{padding-right:52px}.password-toggle{position:absolute;right:14px;top:50%;transform:translateY(-50%);width:24px;height:24px;display:flex;align-items:center;justify-content:center;border:none;background:transparent;color:#64748b;cursor:pointer;font-size:18px;line-height:1;padding:0;z-index:2}.password-toggle:hover{color:#1d4ed8}.image-delete-wrap{position:relative;display:inline-block;align-self:flex-start;width:max-content}.image-delete-wrap.is-hidden{display:none}.image-delete-wrap img{display:block;border-radius:12px;border:1px solid #cbd5e1;background:#f8fafc}.image-delete-btn{position:absolute;top:-10px;right:-10px;width:28px;height:28px;border:2px solid #fff;border-radius:999px;background:#dc2626;color:#fff;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:700;line-height:1;padding:0;cursor:pointer;box-shadow:0 4px 12px rgba(220,38,38,.35)}.image-delete-btn:hover{background:#b91c1c;color:#fff}.product-thumb{width:96px;height:60px;object-fit:contain;border-radius:12px;display:block;background:#fff}.product-row td{height:96px}.cell-center{min-height:60px;display:flex;align-items:center}.product-table td{vertical-align:middle}.product-table tr td:nth-child(1),.product-table tr td:nth-child(2),.product-table tr td:nth-child(4),.product-table tr td:nth-child(5),.product-table tr td:nth-child(6),.product-table tr td:nth-child(7){white-space:nowrap}.product-name{display:flex;flex-direction:column;justify-content:center;min-height:60px}.product-actions{align-items:center;justify-content:flex-start;gap:6px}.actions.product-actions{flex-wrap:nowrap}.product-actions .inline-form{display:inline-flex;margin:0}.product-actions .btn{min-width:54px;padding:7px 10px;border-radius:10px;font-size:13px;white-space:nowrap}.product-actions.cell-center{min-height:60px}.modal-backdrop{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(15,23,42,.45);z-index:100}.modal-backdrop[hidden]{display:none}.modal-card{width:min(420px,100%);background:#fff;border:1px solid #dbeafe;border-radius:20px;box-shadow:0 24px 60px rgba(15,23,42,.22);padding:24px}.modal-card h3{margin:0 0 12px}.modal-card p{margin:0}.modal-actions{justify-content:flex-end;margin-top:20px}body{font-family:Arial,"Microsoft YaHei",sans-serif;margin:0;background:linear-gradient(180deg,#eff6ff 0,#f8fafc 280px,#f8fafc 100%);color:#0f172a;display:flex;flex-direction:column;min-height:100vh}a{text-decoration:none;color:inherit}*{box-sizing:border-box}.container{max-width:1240px;margin:0 auto;padding:24px;flex:1;width:100%}.nav{position:sticky;top:0;z-index:20;background:rgba(15,23,42,.92);backdrop-filter:blur(12px);color:#fff;padding:16px 24px;display:flex;justify-content:space-between;align-items:center;box-shadow:0 8px 24px rgba(15,23,42,.18)}.nav .brand{font-weight:700;font-size:18px}.nav-links{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.nav a,.nav-button{color:#fff;opacity:.92}.nav-button{border:none;background:transparent;padding:0;font:inherit;cursor:pointer}.hero{padding:28px;border-radius:24px;background:linear-gradient(135deg,#1d4ed8,#2563eb 55%,#38bdf8);color:#fff;box-shadow:0 20px 50px rgba(37,99,235,.28);margin-bottom:24px}.hero h1,.hero h2,.hero h3,.hero p{margin:0 0 10px}.card{background:#fff;border:1px solid #dbeafe;border-radius:20px;box-shadow:0 10px 30px rgba(15,23,42,.06);padding:22px;margin-bottom:20px;min-width:0}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#2563eb;color:#fff;border:none;border-radius:12px;padding:11px 16px;cursor:pointer;font-weight:600;transition:.2s}.btn:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(37,99,235,.24)}.btn-sm{padding:8px 14px;border-radius:10px;font-size:14px}.btn-secondary{background:#475569}.btn-success{background:#16a34a}.btn-danger{background:#dc2626}.btn-link{background:none;color:#2563eb;padding:0}.input,.textarea,.file,.select{width:100%;padding:12px 14px;border:1px solid #cbd5e1;border-radius:12px;background:#fff;outline:none}.input:focus,.textarea:focus,.select:focus{border-color:#2563eb;box-shadow:0 0 0 4px rgba(37,99,235,.12)}.textarea{min-height:120px;resize:vertical}.table-wrap{overflow:visible}.table{width:100%;border-collapse:collapse;background:#fff}.table th,.table td{padding:14px 12px;border-bottom:1px solid #e2e8f0;text-align:left;vertical-align:middle}.table th{font-size:13px;color:#475569;background:#f8fafc;white-space:nowrap;word-break:keep-all}.table td{word-break:break-word}.order-table td.nowrap,.order-table th.nowrap,.nowrap{white-space:nowrap;word-break:normal}.muted{color:#64748b}.alert{padding:12px 14px;border-radius:12px;margin-bottom:16px}.alert-success{background:#dcfce7;color:#166534}.alert-error{background:#fee2e2;color:#991b1b}.form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.badge{display:inline-block;padding:5px 10px;border-radius:999px;background:#e2e8f0;font-size:12px;font-weight:700;white-space:nowrap}.badge-success{background:#dcfce7;color:#166534}.badge-warn{background:#fef3c7;color:#92400e}.badge-danger{background:#fee2e2;color:#991b1b}.badge-info{background:#dbeafe;color:#1d4ed8}.product-image{width:100%;height:190px;object-fit:contain;border-radius:16px;background:#fff}.product-card{display:flex;flex-direction:column}.product-card-title{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.product-card-title h3{margin:0;word-break:break-all}.product-card-footer{margin-top:auto;display:flex;flex-direction:column;gap:12px}.product-card-price-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.product-card-footer .toolbar{margin-bottom:0}.product-card-footer .btn{align-self:flex-end}.product-card .muted{overflow-wrap:anywhere;word-break:break-word}.product-detail-image{height:320px}.product-image-preview{width:200px;height:120px;object-fit:contain}.login-wrap{max-width:440px;margin:72px auto}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.stats-wrap{grid-auto-rows:1fr}.stat{background:#fff;padding:20px;border-radius:20px;border:1px solid #dbeafe;box-shadow:0 10px 30px rgba(15,23,42,.06);min-height:110px;display:flex;flex-direction:column}.stat .muted{margin-bottom:8px}.stat .value{font-size:28px;font-weight:700}.stat> :last-child{margin-top:auto}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:16px}.filters{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:12px;align-items:end}.filters-orders{grid-template-columns:1.5fr 1fr 1fr 1fr auto}.filters-orders-merchant{grid-template-columns:1.5fr 1fr 1fr 1fr 1fr auto}.filter-actions{display:flex;align-items:center;gap:8px;height:100%;padding-top:24px}.filter-actions .btn{height:38px;min-width:64px;padding:0 14px;font-size:14px;border-radius:10px;white-space:nowrap;flex:0 0 auto}.stack{display:flex;flex-direction:column;gap:12px}.actions{display:flex;gap:8px;flex-wrap:wrap}.empty{padding:32px;text-align:center;color:#64748b}.section-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}.site-search{display:flex;align-items:center;gap:12px;margin-bottom:20px}.site-search .input{flex:1}.site-search .btn{height:40px;min-width:64px;padding:0 14px}.site-settings-header{align-items:flex-end}.readonly-platform-field{position:relative}.readonly-platform-field .input{padding-right:76px}.readonly-platform-field span{position:absolute;right:14px;top:50%;transform:translateY(-50%);color:#dc2626;font-size:12px;font-weight:700;pointer-events:none}.price{font-size:28px;font-weight:700;color:#1d4ed8}.checkout-panel{display:grid;grid-template-columns:1.2fr .8fr;gap:20px}.list-reset{list-style:none;padding:0;margin:0}.inline-form{display:inline}.pill{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:12px;font-weight:700}.panel{background:#f8fafc;border:1px solid #dbeafe;border-radius:16px;padding:16px}.table td code{white-space:nowrap}.alipay-qrcode-wrap{display:flex;justify-content:center;margin:16px 0}.alipay-qrcode{width:256px;height:256px;max-width:100%;padding:12px;border-radius:18px;border:1px solid #dbeafe;background:#fff;box-shadow:0 10px 30px rgba(15,23,42,.08)}.qrcode-text{word-break:break-all}.contact-modal-card{width:min(760px,100%);max-height:88vh;overflow:auto}.contact-grid{display:flex;flex-wrap:wrap;align-items:flex-start;gap:16px}.contact-settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.contact-item{width:fit-content;min-width:220px;max-width:100%}.contact-settings-card{margin-bottom:0}.contact-item-title{align-items:flex-start}.contact-title-actions{display:flex;flex-direction:column;align-items:flex-end;gap:6px}.contact-copy-line{display:flex;align-items:center;justify-content:space-between;width:100%;gap:12px;margin:10px 0 6px;word-break:break-all}.contact-value{font-size:15px;color:#0f172a;min-width:0}.contact-copy-btn{border:none;border-radius:999px;background:#475569;color:#fff;padding:4px 10px;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}.contact-qr-image{display:block;width:160px;height:160px;object-fit:contain;margin-top:12px;border-radius:14px;border:1px solid #dbeafe;background:#fff}.contact-settings-qr{width:160px;height:160px;object-fit:contain}.query-contact-col{width:15ch;min-width:15ch;max-width:15ch}.query-product-col{width:31ch;max-width:31ch}.query-action-col{width:98px;min-width:98px;max-width:98px}.query-orderno-col{width:15ch;min-width:15ch;max-width:15ch}.order-query-table td:nth-child(1),.order-query-table th:nth-child(1){width:15ch;min-width:15ch;max-width:15ch;white-space:nowrap}.order-query-table td:nth-child(2),.order-query-table th:nth-child(2){width:15ch;min-width:15ch;max-width:15ch;white-space:nowrap}.order-query-table td:nth-child(3),.order-query-table th:nth-child(3){width:31ch;max-width:31ch}.order-query-table td:nth-child(4),.order-query-table th:nth-child(4){width:4ch;white-space:nowrap}.order-query-table td:nth-child(5),.order-query-table th:nth-child(5){width:7ch;white-space:nowrap}.order-query-table td:nth-child(6),.order-query-table th:nth-child(6){width:7ch;white-space:nowrap}.order-query-table td:nth-child(7),.order-query-table th:nth-child(7){width:16ch;white-space:nowrap}.order-query-table td:nth-child(8),.order-query-table th:nth-child(8){width:98px;min-width:98px;max-width:98px}.order-query-table td:nth-child(8) .btn{width:100%;height:34px;padding:0 10px;font-size:13px;border-radius:10px;white-space:nowrap}.admin-order-table td,.admin-order-table th{white-space:nowrap}.admin-order-table td:nth-child(2),.admin-order-table th:nth-child(2),.admin-order-table td:nth-child(4),.admin-order-table th:nth-child(4),.admin-order-table td:nth-child(5),.admin-order-table th:nth-child(5),.admin-order-table td:nth-child(6),.admin-order-table th:nth-child(6),.admin-order-table td:nth-child(7),.admin-order-table th:nth-child(7),.query-order-header,.query-order-row{display:grid!important;grid-template-columns:minmax(130px,.9fr) minmax(128px,1fr) minmax(300px,2.4fr) 42px 70px 72px 128px 98px!important;gap:12px;align-items:center}.query-order-header{padding:0 12px 10px;border-bottom:1px solid #e2e8f0;color:#475569;font-size:13px;font-weight:700;white-space:nowrap}.query-order-row{padding:14px 12px;border-bottom:1px solid #e2e8f0}.query-order-row .order-contact{white-space:nowrap;overflow-wrap:normal;word-break:keep-all}.query-order-row .order-actions .btn{height:34px;min-width:72px;padding:0 12px;border-radius:10px}.query-order-list code{white-space:normal;overflow-wrap:anywhere;font-size:12px}@media(max-width:1180px){.query-order-header,.query-order-row{grid-template-columns:minmax(116px,.88fr) minmax(116px,.95fr) minmax(260px,2.1fr) 36px 60px 64px 116px 78px!important;gap:8px}.query-order-row{padding:12px 10px}.query-order-row .order-contact{font-size:13px}.query-order-row .order-actions .btn{min-width:66px;padding:0 10px;font-size:13px}}
.nav-dropdown{position:relative;display:inline-flex}.nav-dropdown-toggle{cursor:pointer}.nav-dropdown-menu{display:none;position:absolute;top:100%;left:0;background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 4px 16px rgba(0,0,0,.1);min-width:140px;z-index:100;padding:4px}.nav-dropdown-menu a{display:block;padding:8px 14px;text-decoration:none;color:#334155;font-size:14px;white-space:nowrap;border-radius:6px}.nav-dropdown-menu a:hover{background:#f1f5f9;color:#1d4ed8}.nav-dropdown:hover .nav-dropdown-menu{display:block}@media(max-width:960px){.stats,.filters,.filters-orders,.filters-orders-merchant,.checkout-panel,.form-row{grid-template-columns:1fr}.filter-actions{align-items:stretch}}.order-query-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end}.order-query-form .input{min-width:0}.order-query-btn{height:36px;min-width:84px;padding:0 12px;font-size:13px;border-radius:10px;white-space:nowrap;flex:0 0 auto}.order-query-table td:nth-child(8) .btn,.order-query-table td:nth-child(8) .btn-sm{width:100%;height:32px;min-width:72px;padding:0 10px;font-size:13px;border-radius:10px;white-space:nowrap}.admin-order-actions{display:flex;flex-direction:column;align-items:flex-end;gap:8px}.admin-order-actions .btn{height:32px;min-width:72px;padding:0 10px;font-size:13px;border-radius:10px;white-space:nowrap}.admin-order-actions .btn-danger{min-width:72px}.admin-order-table td,.admin-order-table th{white-space:nowrap}.admin-order-table td:nth-child(2),.admin-order-table th:nth-child(2),.admin-order-table td:nth-child(4),.admin-order-table th:nth-child(4),.admin-order-table td:nth-child(5),.admin-order-table th:nth-child(5),.admin-order-table td:nth-child(6),.admin-order-table th:nth-child(6),.admin-order-table td:nth-child(7),.admin-order-table th:nth-child(7),.query-order-header,.query-order-row{display:grid!important;grid-template-columns:minmax(130px,.9fr) minmax(128px,1fr) minmax(300px,2.4fr) 42px 70px 72px 128px 98px!important;gap:12px;align-items:center}.query-order-header{padding:0 12px 10px;border-bottom:1px solid #e2e8f0;color:#475569;font-size:13px;font-weight:700;white-space:nowrap}.query-order-row{padding:14px 12px;border-bottom:1px solid #e2e8f0}.query-order-row .order-contact{white-space:nowrap;overflow-wrap:normal;word-break:keep-all}.query-order-row .order-actions .btn{height:34px;min-width:72px;padding:0 12px;border-radius:10px}.query-order-list code{white-space:normal;overflow-wrap:anywhere;font-size:12px}@media(max-width:1180px){.query-order-header,.query-order-row{grid-template-columns:minmax(116px,.88fr) minmax(116px,.95fr) minmax(260px,2.1fr) 36px 60px 64px 116px 78px!important;gap:8px}.query-order-row{padding:12px 10px}.query-order-row .order-contact{font-size:13px}.query-order-row .order-actions .btn{min-width:66px;padding:0 10px;font-size:13px}}.admin-order-table,.order-query-table{table-layout:fixed}.order-query-table th,.order-query-table td{padding:10px 8px;font-size:13px}.order-query-table code{white-space:normal;overflow-wrap:anywhere}.order-query-table td:nth-child(1),.order-query-table th:nth-child(1){width:17ch;min-width:0;max-width:none}.order-query-table td:nth-child(2),.order-query-table th:nth-child(2){width:13ch;min-width:0;max-width:none;white-space:normal;overflow-wrap:anywhere}.order-query-table td:nth-child(3),.order-query-table th:nth-child(3){width:auto;max-width:none}.order-query-table td:nth-child(7),.order-query-table th:nth-child(7){width:14ch}.order-query-table td:nth-child(8),.order-query-table th:nth-child(8){width:88px;min-width:0;max-width:none}.table-wrap{overflow-x:auto}.admin-order-table,.order-list{display:flex;flex-direction:column}.order-table-header{display:grid;gap:12px;padding:0 12px 10px;border-bottom:1px solid #e2e8f0;color:#475569;font-size:13px;font-weight:700;white-space:nowrap}.admin-order-header{grid-template-columns:minmax(130px,.9fr) minmax(110px,.8fr) minmax(280px,2.2fr) 42px 70px 72px 62px minmax(170px,1.2fr) 128px 88px}.dashboard-order-header{grid-template-columns:minmax(150px,1fr) minmax(360px,2.6fr) 42px 72px minmax(150px,1fr) 128px 88px}.order-row{display:grid;align-items:center;gap:12px;padding:14px 12px;border-bottom:1px solid #e2e8f0}.admin-order-row{grid-template-columns:minmax(130px,.9fr) minmax(110px,.8fr) minmax(280px,2.2fr) 42px 70px 72px 62px minmax(170px,1.2fr) 128px 88px}.dashboard-order-row{grid-template-columns:minmax(150px,1fr) minmax(360px,2.6fr) 42px 72px minmax(150px,1fr) 128px 88px}.order-cell{min-width:0}.order-contact,.order-no,.order-payment,.order-product{overflow:hidden;text-overflow:ellipsis}.order-contact,.order-payment{white-space:nowrap}.order-no code{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.order-product{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.order-qty,.order-amount,.order-status,.order-channel,.order-time,.order-actions{white-space:nowrap}.order-actions .btn{height:34px;min-width:72px;padding:0 12px;border-radius:10px}.admin-order-actions{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.order-list code{white-space:normal;overflow-wrap:anywhere;font-size:12px}@media(max-width:1180px){.order-table-header,.order-row{gap:8px}.card-secret-actions .btn{height:32px;min-width:72px;padding:0 12px;border-radius:10px;font-size:13px}.card-secret-checkbox{text-align:center}.card-secret-checkbox input{width:14px;height:14px}}.card-cell{display:flex;flex-direction:column;align-items:flex-start;gap:4px}.card-expand-btn{border:none;background:none;color:#2563eb;cursor:pointer;font-size:13px;padding:2px 0;text-align:left}.card-expand-btn.is-hidden{display:none}.table .copy-card-value{white-space:pre-wrap;word-break:break-all;display:block}.table .card-cell code{-webkit-line-clamp:2;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;word-break:break-all;white-space:normal}.modal-card-wide{width:min(720px,100%);max-height:88vh;display:flex;flex-direction:column}.card-detail-content{white-space:pre-wrap;word-break:break-all;overflow-y:auto;background:#f8fafc;border:1px solid #dbeafe;border-radius:12px;padding:16px;margin:0;font-size:14px;line-height:1.6;max-height:60vh}.card-table{table-layout:fixed;width:100%}.card-table td,.card-table th{padding:10px 8px;vertical-align:middle;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-table td:nth-child(3){white-space:normal;max-width:0;word-break:break-all}.card-table td:nth-child(3) .card-cell{max-height:3em;overflow:hidden;display:grid;grid-template-columns:1fr auto;grid-template-rows:1fr 1fr}.card-table td:nth-child(3) .card-cell code{-webkit-line-clamp:2;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;word-break:break-all;white-space:normal;grid-column:1/-1;grid-row:1/-1}.card-table td:nth-child(3) .card-expand-btn{grid-column:2;grid-row:2;justify-self:end;align-self:end}.card-table td:nth-child(4),.card-table td:nth-child(5){text-align:center;overflow:visible;text-overflow:clip}.card-table th:nth-child(2),.card-table td:nth-child(2){text-align:center;overflow:visible;text-overflow:clip}
.field-hint{display:block;font-size:12px;margin-top:4px;min-height:16px;color:#64748b}.field-hint.ok{color:#22c55e}.field-hint.err{color:#dc2626}
