:root{font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;color:#292a31;background:#f6f6f7;font-size:15px;line-height:1.6;--red:#a62d32;--border:#e5e5e8}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--border);background:white;border-radius:8px;padding:9px 17px;color:inherit}button:hover{border-color:var(--red);color:var(--red)}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #d9a649;outline-offset:3px}a{color:inherit;text-decoration:none}input,textarea,select{border:1px solid #d4d4d9;border-radius:8px;padding:11px;width:100%;background:white;color:#292a31}input:focus,textarea:focus{outline:2px solid #ddadb0;border-color:var(--red)}label{display:block;font-weight:500;margin-bottom:17px}label input,label textarea{display:block;margin-top:7px}.check{display:flex;gap:8px;align-items:center}.check input{width:17px;margin:0}.notice{background:#fff3df;color:#785a25;text-align:center;padding:9px 20px;font-size:13px}header{background:white;border-bottom:1px solid var(--border);display:flex;gap:36px;align-items:center;justify-content:space-between;padding:25px max(30px,calc((100vw - 1160px)/2));min-height:112px}.brand{display:flex;gap:13px;align-items:center;white-space:nowrap;font-size:25px;font-weight:700;letter-spacing:2px}.brandmark{background:var(--red);color:white;width:48px;height:48px;display:grid;place-items:center;border-radius:12px;font:29px serif}.brand small{display:block;color:#8e8e97;font-size:11px;font-weight:400;letter-spacing:3px;margin-top:3px}nav{display:flex;gap:10px}nav button{border:0;white-space:nowrap}nav button.selected{color:var(--red);background:#fbf0f0}.user-actions{display:flex;gap:10px;align-items:center;white-space:nowrap;font-size:13px}.user-actions button{padding:7px 12px}main{max-width:1160px;margin:35px auto;min-height:55vh}h1{font-size:30px;margin:0 0 8px;line-height:1.4}h2{font-size:22px;margin:0 0 10px}h3{font-size:17px;margin:0 0 12px}.muted{color:#787984}.small,small{font-size:12px}.hero{background:#efe8e3;border-radius:16px;padding:38px 42px;display:flex;justify-content:space-between;align-items:center;margin-bottom:30px;gap:25px}.eyebrow{font-size:12px;letter-spacing:3px;color:var(--red);margin-bottom:12px}.hero p{margin:0;max-width:600px;color:#68636a}.hero-mark{color:#b9a89d;font:90px serif;line-height:1}.section-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:24px 0 20px}.section-head p{margin:0}.search{display:flex;gap:8px;width:330px}.search input{padding:8px 12px}.empty{border:1px solid var(--border);background:white;border-radius:14px;text-align:center;padding:65px 24px;color:#787984}.empty-icon{display:grid;place-items:center;width:62px;height:62px;border:1px solid #d8d8de;border-radius:16px;margin:0 auto 20px;color:#9b9ba4;font-size:30px}.empty h2{color:#4d4d56;font-size:20px}.empty p{margin:8px auto;max-width:580px}.primary{background:var(--red);color:white;border-color:var(--red)}.primary:hover{background:#8d252a;color:white}.wide{width:100%;padding:12px}.secondary{color:var(--red)}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.product{background:white;border:1px solid var(--border);border-radius:12px;overflow:hidden}.product-image{height:205px;background:#eeeef0;display:grid;place-items:center;color:#a7a7ae;font-size:45px}.product-image img{width:100%;height:100%;object-fit:cover}.product-info{padding:18px}.product-info h3{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-info p{font-size:13px;height:42px;overflow:hidden;color:#787984;margin:8px 0 14px}.price{font-size:23px;color:var(--red);font-weight:600}.product-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px}.cartbar{background:white;border:1px solid var(--border);border-radius:12px;position:sticky;bottom:20px;margin-top:28px;padding:18px 23px;box-shadow:0 5px 25px #00000008}.cart-head{display:flex;justify-content:space-between;align-items:center;gap:15px}.cart-items{border-bottom:1px solid var(--border);padding-bottom:12px;margin-bottom:12px;display:grid;gap:10px}.cart-item{display:flex;align-items:center;justify-content:space-between;gap:12px}.cart-item .name{flex:1}.qty{display:flex;align-items:center;gap:9px}.qty button{padding:1px 10px}.toolbar{display:flex;gap:10px}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:25px 0}.metric{background:white;border:1px solid var(--border);border-radius:12px;padding:22px}.metric strong{display:block;font-size:30px;margin-top:10px}.tabs{display:flex;gap:10px}.tabs .selected{background:var(--red);color:white;border-color:var(--red)}.table-wrap{overflow:auto;background:white;border:1px solid var(--border);border-radius:12px}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:13px}th,td{text-align:left;border-bottom:1px solid #eeeef0;padding:17px}th{background:#fafafa;color:#777780;font-weight:500}td .toolbar button{font-size:12px;padding:5px 10px}.badge{font-size:12px;background:#f1f1f3;padding:4px 9px;border-radius:5px}.badge.pending{color:#9c6a10;background:#fff5dd}.badge.completed,.badge.confirmed{color:#1b7655;background:#e9f7ef}.order{background:white;border:1px solid var(--border);border-radius:12px;padding:24px;margin-bottom:17px}.order-heading{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--border);padding-bottom:14px;margin-bottom:15px;font-size:13px}.order-lines{display:grid;gap:8px;margin-bottom:15px}.order-line{display:flex;justify-content:space-between;gap:15px}.order-address{font-size:13px;color:#787984;margin:12px 0}.order-bottom{display:flex;justify-content:space-between;align-items:center;gap:15px}.pagination{display:flex;justify-content:center;align-items:center;gap:15px;margin:25px 0}.error{color:#b22f35;font-size:13px;min-height:20px;white-space:pre-wrap}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.segmented{display:flex;background:#f4f4f6;border-radius:8px;padding:4px;margin:23px 0}.segmented button{flex:1;background:transparent;border:0}.segmented button.selected{background:white;box-shadow:0 1px 5px #00000009;color:var(--red)}dialog{border:1px solid var(--border);border-radius:18px;padding:35px;width:min(480px,calc(100% - 30px));max-height:90vh;overflow:auto;box-shadow:0 25px 100px #00000025}dialog::backdrop{background:#20212870}.dialog-close{position:absolute;right:15px;top:12px;border:0;font-size:24px;padding:1px 8px;color:#9696a0}dialog>p{margin:0 0 15px}.dialog-close:hover{background:#f5f5f7}.loading{text-align:center;color:#86868e;padding:100px 0}footer{max-width:1160px;margin:60px auto 0;padding:25px 0 35px;border-top:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;gap:15px;color:#8a8a94;font-size:12px}footer button{border:0;background:transparent;font-size:12px;color:#8a8a94}#toast{position:fixed;z-index:100;bottom:28px;left:50%;transform:translateX(-50%);background:#282932;color:white;border-radius:10px;padding:13px 24px;box-shadow:0 4px 20px #00000025;max-width:90vw}[hidden]{display:none!important}@media(max-width:1000px){header{padding:20px;gap:18px;flex-wrap:wrap}.brand{font-size:22px}.user-actions{margin-left:auto}main,footer{margin-left:20px;margin-right:20px}.grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:700px){header{gap:15px}.brand{font-size:20px}.brandmark{height:42px;width:42px}.brand small{font-size:10px;letter-spacing:1px}nav{order:3;width:100%;justify-content:center;border-top:1px solid var(--border);padding-top:10px}nav button{flex:1}.user-actions{gap:6px}.user-actions button{font-size:12px;padding:6px 8px}#user-name{display:none}main{margin-top:20px}.hero{padding:26px;min-height:195px}.hero-mark{display:none}h1{font-size:25px}.section-head{align-items:flex-start;flex-wrap:wrap}.search{width:100%}.grid{grid-template-columns:repeat(2,1fr);gap:12px}.product-image{height:150px}.product-info{padding:12px}.product-info h3{font-size:15px}.product-bottom{flex-wrap:wrap}.price{font-size:20px}.product-bottom button{padding:7px 11px}.metrics{gap:10px}.metric{padding:15px}.metric strong{font-size:23px}.cartbar{padding:15px;bottom:10px}.cart-item .name{max-width:45%;font-size:13px}.order{padding:17px}.order-heading{flex-wrap:wrap}.order-line{font-size:13px}.order-bottom{flex-wrap:wrap}footer{flex-wrap:wrap;justify-content:center;text-align:center}dialog{padding:28px 23px}}
