/* Shared blue and white storefront, with responsive quotation workspaces. */
:root{
  --steel-900:#18304b;--steel-800:#1b4b83;--steel-700:#1761cf;--steel-500:#3478d6;
  --steel-100:#edf4ff;--orange:#1761cf;--orange-dark:#104dac;--price:#d92d36;
  --bg:#f5f7fa;--card:#fff;--ink:#202b3a;--ink-2:#5f6c7b;--ink-3:#728093;
  --line:#e3e9f0;--green:#16816b;--radius:8px;--shadow:0 2px 8px rgba(32,55,86,.04);
}
body,.stage{background:#f5f7fa}
body{letter-spacing:0;font-size:15px}
.stage{display:block;padding:0}
#app{max-width:1240px;min-height:100vh;margin:0 auto;border-radius:0;background:#fff;box-shadow:none;overflow:clip}
#view{padding-bottom:calc(76px + env(safe-area-inset-bottom))}
.page{animation:none}
.page,.brand-name,.brand-domain,.bl-card .bl-dim .dimtxt{letter-spacing:0}
button,a,[role=link],summary,.quick-item,.goods-card,.tab-item{touch-action:manipulation}
button:focus-visible,a:focus-visible,summary:focus-visible,[role=link]:focus-visible{outline:2px solid var(--steel-700);outline-offset:3px}
input,select,textarea{accent-color:var(--steel-700)}
.btn,.pd-bar .b-cart,.cart-bar .btn-check{border-radius:6px}
.btn-primary,.btn-orange,.mg-command.primary,.pd-bar .b-cart,.cart-bar .btn-check{background:var(--steel-700)!important;border-color:var(--steel-700);color:#fff}
.btn-primary:hover,.btn-orange:hover,.mg-command.primary:hover{background:var(--orange-dark)!important}
.mg-command,.mg-icon{border-color:#d7e0ec;transition:background .15s,border-color .15s}
.mg-command:not(.primary):not(:disabled):hover,.mg-icon:not(:disabled):hover{background:#f2f6fc;border-color:#adc4e2}
.mg-command.danger,.mg-icon.danger{color:#b63f48}
.tag.orange{background:#edf4ff;color:#1761cf}
.tag.green,.mg-status{background:#eaf6f1;color:#18765f}
.price .num{font-variant-numeric:tabular-nums;font-weight:700}
.price .unit{color:#677588}
.topbar{background:#fff;color:var(--ink);border-bottom:1px solid var(--line);height:54px}
.topbar .ttl{font-weight:600}
.topbar .back{color:var(--ink-2)}
.topbar .act{color:var(--steel-700)}
#desktop-sidebar,#desktop-header{display:none}

/* Storefront: product photos remain the main visual assets. */
.home-head{background:#fff;color:var(--ink);padding:20px 16px 14px}
.brand-row{gap:10px;margin-bottom:16px}
.page .brand-logo{width:48px;height:48px;border-radius:9px;background:var(--steel-700);color:white;font-size:22px}
.brand-logo i{background:#37aa92;border:2px solid white;width:11px;height:11px}
.page .brand-name{font-size:19px;font-weight:700;line-height:1.5}
.brand-domain{font-size:11px;color:#69798d;opacity:1;margin-top:1px}
.head-search .search-box{height:42px;min-height:42px;border:1px solid #e0e7ef;border-radius:6px;background:#f6f8fb;color:#68768a}
.notice{margin:0 16px!important;padding:9px 0;background:#fff;color:#5c6c80;border-top:1px solid var(--line);font-size:12px;min-height:38px}
.notice>span{color:#1761cf}
.notice-track{animation:none!important;white-space:normal;line-height:1.6}
.swiper{margin:12px 16px 16px;border-radius:8px;box-shadow:none}
.swiper-slide img{height:196px}
.swiper-cap{padding:30px 18px 18px;background:linear-gradient(transparent,rgba(11,29,49,.8))}
.swiper-cap b{font-size:21px;line-height:1.5}
.swiper-cap span{font-size:12px;line-height:1.6;opacity:.94}
.swiper-dots{right:18px;bottom:18px}
.page:has(>.home-head)>.card{border-radius:0;box-shadow:none;margin:0 16px!important}
.quick-grid{padding:0 0 14px;gap:10px 0;border-bottom:1px solid var(--line)}
.quick-item{padding:6px 0;gap:7px;cursor:pointer}
.quick-ic{width:42px;height:42px;border-radius:8px;background:#eff5ff;color:#1761cf}
.quick-item:nth-child(3n) .quick-ic{background:#edf7f4;color:#217b69}
.quick-item span{font-size:12px;color:#36495f;line-height:1.5}
.assure{margin:0 16px;padding:14px 0;border-radius:0;box-shadow:none;border-bottom:1px solid var(--line)}
.assure div{color:#677588;flex-direction:row;justify-content:center;font-size:11px;gap:4px}
.assure svg{width:16px;height:16px;color:#687f9c}
.assure div::after{display:none}
.sec-head{padding:22px 16px 12px;gap:12px}
.sec-head h3{font-size:18px}
.sec-head h3::before{width:3px;background:#1761cf}
.sec-head .more{color:#5d7490}
.page .cnc-promo{margin:0 16px;border-radius:8px;box-shadow:none}
.page .cnc-promo .mask{background:linear-gradient(90deg,rgba(10,37,64,.85),rgba(10,37,64,.25) 68%,transparent);padding:20px;min-height:144px}
.cnc-promo .mask .btn{background:#fff;color:#1557b2;border-radius:5px;font-weight:600}
.goods-grid{padding:0 16px;gap:14px}
.goods-card{border:1px solid var(--line);border-radius:8px;box-shadow:none;transition:border-color .15s,box-shadow .15s}
.goods-card:hover{border-color:#b6cbea;box-shadow:0 4px 14px rgba(26,74,128,.08)}
.goods-card .g-img{height:auto;aspect-ratio:1.38;object-fit:cover;background:#f1f4f7}
.goods-card .g-body{padding:12px}
.goods-card .g-name{font-weight:600;font-size:14px;height:40px;line-height:1.45}
.goods-card .g-spec{font-size:12px;line-height:1.6;margin:6px 0 12px;color:#6e7c8b}
.h-scroll{padding:0 16px 4px;gap:12px}
.h-scroll .goods-card{flex-basis:160px}
.h-scroll .goods-card .g-img{height:132px;aspect-ratio:auto}
.add-cart{background:#eaf2ff;color:#1761cf;border-radius:6px;width:30px;height:30px}
.add-cart:active{background:#d8e8ff}
.tabbar{position:fixed;left:50%;right:auto;transform:translateX(-50%);width:100%;max-width:1240px;box-shadow:0 -3px 16px rgba(27,61,99,.04)}
.tab-item{color:#6c7b8e;font-size:11px}
.tab-item.on{color:#1761cf;font-weight:600}
.tab-center .circle,.tab-center.on .circle{background:#1761cf;box-shadow:none;top:5px;width:30px;height:28px;border:0;border-radius:6px}
.tab-center .circle svg{width:20px;height:20px}
.tab-center span{margin-top:30px}

/* Forms, product calculations and the order list share the same visual scale. */
.calc-card,.bl-card,.bl-total-bar,.order-card{border-radius:8px;box-shadow:none;border:1px solid var(--line)}
.calc-grid{gap:16px;padding:18px}
.dim-input .lab{font-size:12px;color:var(--ink-2)}
.dim-input .box{background:#fff;border:1px solid #d6e1ec;border-radius:6px;min-height:44px}
.calc-result{background:#f3f7ff;color:var(--ink);border-radius:0;margin:0;padding:18px;border-top:1px solid #dce7f6}
.calc-result-title{font-size:15px;font-weight:700;margin-bottom:12px}
.calc-result .rrow{color:#637186;opacity:1;padding:5px 0;gap:16px;flex-wrap:wrap}
.calc-result .rrow b{color:var(--ink);font-weight:600}
.calc-result .rrow.total{border-color:#d4e0f1;padding-top:14px;margin-top:10px;color:#1f3552}
.calc-result .rrow.total b{color:#1761cf;font-size:27px;overflow-wrap:anywhere}
.calc-result .tiny{color:#607289;opacity:1!important;line-height:1.8}
.pd-swiper .slide img{object-fit:contain;background:#f1f3f6}
.pd-price,.pd-name,.pd-params,.pd-detail{background:#fff}
.pd-bar{position:fixed;left:50%;right:auto;transform:translateX(-50%);width:100%;max-width:900px;box-shadow:0 -2px 16px rgba(27,61,99,.04)}
.cart-bar{position:fixed;left:50%;right:auto;transform:translateX(-50%);width:100%;max-width:900px}
.bl-card .bl-top{background:#f8fafd}
.bl-card .bl-meta{gap:14px}
.bl-card .bl-meta b{font-size:15px}
.bl-card .bl-foot .sub b{color:#1761cf;font-size:18px}
.bl-total-bar .r.grand b{font-size:25px;color:#1761cf}
.quote-box{background:#f2f6fd;border-radius:6px;color:#4e6580}
.mg-nav{background:#f9fbfe;border-color:var(--line)}
.mg-nav a[aria-current=page]{background:#eaf2ff;color:#1761cf}
.mg-fields{gap:16px 14px}
.mg-field{font-size:12px;color:#617085;gap:7px}
.mg-field>input,.mg-field>select,.mg-field>textarea{border-color:#d6e1ec;border-radius:5px;min-height:41px;font-size:14px;color:#243448;background:#fff}
.mg-field>input:focus,.mg-field>select:focus,.mg-field>textarea:focus{border-color:#3478d6;outline:2px solid #e0ecff}
.mg-checks input{accent-color:#1761cf}
.admin-top{background:#1761cf}
.admin-top .mg-icon{color:#1761cf}
.admin-todo,.admin-grid,.chart-card{box-shadow:none;border-radius:0}
.admin-stats .as{border-radius:8px;box-shadow:none;border:1px solid var(--line)}
.login-page{background:#f5f8fd}
.login-brand{color:#243c58}
.login-brand h1{color:#243c58}
.login-brand p{color:#687c94}
.login-brand .lg-logo{background:#1761cf;color:#fff;border-radius:8px}
.login-card{box-shadow:none;border:1px solid var(--line);border-radius:8px}
.mine-head{background:#1761cf}

/* Drawing quotation: an import column, editable line items and a clear total. */
.draw-heading{padding:24px 16px 20px;border-bottom:1px solid var(--line)}
.draw-heading h2{font-size:24px;font-weight:700;color:#22364e}
.draw-heading p{margin-top:6px;color:#68788d}
.draw-workspace{display:grid;grid-template-columns:minmax(0,1fr)}
.draw-sidebar,.draw-content{min-width:0}
.draw-import{padding:18px 16px;background:#f9fbfe}
.draw-section-title{display:flex;align-items:center;gap:8px;font-size:15px;margin:0 0 14px}
.draw-section-title svg{width:18px;height:18px;color:#1761cf}
.draw-ai-bar{margin:0 0 16px;gap:10px;padding-bottom:12px}
.draw-ai-bar>span{font-size:12px;line-height:1.6}
.draw-ai-bar .mg-icon{width:32px;height:32px;min-height:32px}
.draw-upload{border:1px dashed #99b7e2;background:#fff;border-radius:6px;gap:10px;padding:24px 12px;margin-bottom:20px;color:#1761cf;position:relative}
.draw-upload:hover{border-color:#1761cf;background:#f2f7ff}
.draw-upload:focus-within{outline:2px solid #1761cf;outline-offset:2px}
.draw-upload>svg{width:28px;height:28px}
.draw-upload b{font-size:14px}
.draw-upload input{font-size:11px;color:#677b95;width:100%;max-width:240px}
.draw-upload input::file-selector-button{border:0;background:#eef4ff;color:#1761cf;border-radius:4px;padding:6px 9px;margin-right:8px;cursor:pointer}
.draw-note{color:#6a798c;font-size:12px;line-height:1.75;margin-top:12px}
.draw-status{background:#eaf3ff;color:#215da3;border-radius:4px;font-size:12px}
.draw-status:empty{display:none}
.draw-preview{background:#edf1f6;max-height:220px}
.draw-sidebar .draw-text{background:#f9fbfe}
.draw-text{border-color:var(--line);padding:14px 16px}
.draw-text summary{color:#486681;font-size:12px;line-height:1.8}
.draw-text[open] summary{margin-bottom:12px}
.draw-list-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:20px 16px 12px}
.draw-list-heading h3{font-size:18px}
.draw-list-heading>span{font-size:12px;color:#6c7c90}
.draw-tools{padding:0 16px 16px;gap:8px;border-bottom:1px solid var(--line)}
.draw-tools .mg-command{font-size:12px;padding:7px 10px;min-height:34px;gap:5px}
.draw-tools .mg-command svg{width:15px;height:15px}
.draw-rows{padding:16px;display:grid;gap:16px;background:#f6f8fb}
.draw-row{padding:16px;background:white;border:1px solid #e0e6ef;border-radius:8px;min-width:0}
.draw-row[data-selected=true]{border-color:#afc8eb}
.draw-row-head{gap:10px;border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:16px}
.draw-row-head>b{font-size:15px;color:#273d58;line-height:1.6}
.draw-row-head label{font-variant-numeric:tabular-nums;font-size:12px;color:#68809e;gap:8px}
.draw-row-head .mg-icon{border:0;width:28px;height:28px;min-height:28px;padding:5px}
.draw-row input[type=checkbox]{accent-color:#1761cf;width:16px;height:16px}
.draw-row .mg-fields{gap:14px 12px}
.draw-row .mg-field>input,.draw-row .mg-field>select{font-variant-numeric:tabular-nums}
.draw-badge{flex:none;font-size:11px;padding:3px 7px;border-radius:4px;white-space:nowrap;font-weight:500}
.draw-badge.pending{background:#fff4e2;color:#92600a}
.draw-badge.review{background:#edf3ff;color:#2461b5}
.draw-badge.checked{background:#e8f6ef;color:#177d5f}
.draw-row .draw-optional-fields{margin-top:6px}
.draw-optional-fields .mg-fields{padding-top:12px}
.draw-price{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;align-items:start;margin:0 0 16px;padding:0 0 16px;border-bottom:1px solid var(--line);color:#253954}
.draw-price-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0;min-width:0}
.draw-price-metrics dt,.draw-line-total>span,.draw-price.pending span{font-size:11px;color:#728093;display:block;margin-bottom:6px}
.draw-price-metrics dd{font-size:17px;font-weight:600;margin:0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;line-height:1.5}
.draw-price small{font-size:11px;font-weight:400;color:#65778e}
.draw-line-total{text-align:right;min-width:0;max-width:100%;overflow-wrap:anywhere}
.draw-line-total strong{font-size:24px;line-height:1.3;color:#1761cf;font-variant-numeric:tabular-nums}
.draw-price-formula{grid-column:1/-1;font-size:11px;color:#718098;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin:2px 0 0}
.draw-price.pending{grid-template-columns:minmax(0,1fr);gap:6px;color:#93620c}
.draw-price.pending strong{font-size:18px}
.draw-price.pending p{font-size:12px;line-height:1.7}
.draw-row details{color:#63778e;padding:10px 0}
.draw-row details>summary{cursor:pointer}
.draw-confirm{border-top:1px solid var(--line);margin-top:4px;padding:12px 0 0;align-items:flex-start;color:#496079;font-size:12px}
.draw-confirm input{margin-top:2px}
.draw-review-note{border-radius:0;background:#fff8e9;font-size:12px;line-height:1.8}
.draw-summary{border-top:1px solid #c8d9ef;border-bottom:1px solid #c8d9ef;padding:20px 16px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;background:#f4f8ff}
.draw-summary .draw-summary-stats{grid-column:1/-1;flex-direction:row;flex-wrap:wrap;gap:8px 20px}
.draw-summary-stats span{font-size:12px;color:#667a91}
.draw-summary-stats b{font-size:14px;color:#2b4360;margin:0 3px;font-variant-numeric:tabular-nums}
.draw-summary .draw-summary-cost{gap:4px;min-width:0}
.draw-summary-cost>span{font-size:12px;color:#445c7a}
.draw-summary-cost>strong{font-size:29px;color:#1761cf;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;line-height:1.5}
.draw-summary-cost>small{font-size:11px;color:#738297;line-height:1.6}
.draw-summary .primary{height:42px;align-self:center;font-size:13px}
.draw-empty{padding:54px 16px;min-height:260px;text-align:center;color:#7b8da3;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:16px}
.draw-empty>svg{width:40px;height:40px;color:#8ba7ce}
.draw-empty h3{font-size:14px;font-weight:500;margin:0}
.draw-empty .mg-command{color:#1761cf;background:#fff}

/* Light motion layer: adds hierarchy without distracting from quotation work. */
.page{animation:pageIn .46s cubic-bezier(.22,1,.36,1) both}
.home-head{position:relative;overflow:hidden}
.home-head::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(105deg,transparent 20%,rgba(52,120,214,.07) 48%,transparent 72%);transform:translateX(-105%);animation:homeSheen 9s ease-in-out infinite}
.home-head>*{position:relative;z-index:1}
.page .brand-logo{box-shadow:0 0 0 0 rgba(23,97,207,.22);animation:brandPulse 4.8s ease-out infinite}
.notice{background:linear-gradient(90deg,#fff,#f8fbff,#fff);border-radius:7px!important;box-shadow:0 4px 16px rgba(32,76,128,.05)!important}
.notice-track{animation:noticeFloat 12s ease-in-out infinite alternate!important;will-change:transform}
.swiper{box-shadow:0 10px 28px rgba(20,61,111,.12);transition:box-shadow .25s ease,transform .25s ease}
.swiper:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(20,61,111,.16)}
.swiper-slide img{transition:transform .8s cubic-bezier(.22,1,.36,1),filter .3s ease}
.swiper-slide:hover img{transform:scale(1.035);filter:saturate(1.05)}
.quick-item{transition:transform .22s cubic-bezier(.22,1,.36,1),color .2s ease;animation:riseIn .55s cubic-bezier(.22,1,.36,1) both}
.quick-item:hover,.quick-item:focus-visible{transform:translateY(-4px);color:var(--steel-700)}
.quick-item:active{transform:translateY(-1px) scale(.98)}
.quick-ic{transition:transform .22s cubic-bezier(.22,1,.36,1),box-shadow .22s ease}
.quick-item:hover .quick-ic,.quick-item:focus-visible .quick-ic{transform:translateY(-2px) rotate(-3deg);box-shadow:0 8px 18px rgba(23,97,207,.12)}
.quick-item:nth-child(2){animation-delay:.04s}.quick-item:nth-child(3){animation-delay:.08s}.quick-item:nth-child(4){animation-delay:.12s}.quick-item:nth-child(5){animation-delay:.16s}
.quick-item:nth-child(6){animation-delay:.20s}.quick-item:nth-child(7){animation-delay:.24s}.quick-item:nth-child(8){animation-delay:.28s}.quick-item:nth-child(9){animation-delay:.32s}.quick-item:nth-child(10){animation-delay:.36s}
.cnc-promo{overflow:hidden;transition:transform .25s ease,box-shadow .25s ease}
.cnc-promo:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(20,61,111,.14)}
.cnc-promo img{transition:transform .8s cubic-bezier(.22,1,.36,1),filter .3s ease}
.cnc-promo:hover img{transform:scale(1.045);filter:saturate(1.06)}
.cnc-promo .mask .btn{transition:transform .22s ease,box-shadow .22s ease}
.cnc-promo:hover .mask .btn{transform:translateX(3px);box-shadow:0 6px 14px rgba(12,52,104,.16)}
.goods-card{transition:transform .24s cubic-bezier(.22,1,.36,1),border-color .2s ease,box-shadow .24s ease}
.goods-card:hover{transform:translateY(-5px);border-color:#b6cbea;box-shadow:0 12px 24px rgba(26,74,128,.12)}
.goods-card .g-img{transition:transform .65s cubic-bezier(.22,1,.36,1),filter .3s ease}
.goods-card:hover .g-img{transform:scale(1.035);filter:saturate(1.04)}
.goods-grid .goods-card,.h-scroll .goods-card{animation:riseIn .52s cubic-bezier(.22,1,.36,1) both}
.goods-grid .goods-card:nth-child(2),.h-scroll .goods-card:nth-child(2){animation-delay:.06s}
.goods-grid .goods-card:nth-child(3),.h-scroll .goods-card:nth-child(3){animation-delay:.12s}
.goods-grid .goods-card:nth-child(4),.h-scroll .goods-card:nth-child(4){animation-delay:.18s}
.add-cart{transition:transform .2s ease,background .2s ease,box-shadow .2s ease}
.add-cart:hover{transform:translateY(-2px) rotate(4deg);box-shadow:0 5px 12px rgba(23,97,207,.16)}
.assure div{transition:color .2s ease,transform .2s ease}
.assure div:hover{color:var(--steel-700);transform:translateY(-2px)}
.sec-head h3::before{animation:sectionTick 2.8s ease-in-out infinite alternate}
.customer-note{margin-top:5px;padding:3px 7px;border-left:2px solid #78a6db;background:#f2f7ff;color:#53708f;font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.customer-note-btn{margin-top:7px;font-size:11px;padding:4px 8px;min-height:28px;color:#1761cf;background:#f3f7fd}
.add-control{display:inline-flex;align-items:center;gap:7px;min-height:30px;flex-shrink:0}
.add-control.compact{gap:5px}
.add-control .cart-minus[data-empty=true]{display:none}
.add-control .cart-minus,.add-control .cart-plus{border:0;padding:0}
.cart-qty{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:24px;padding:0 6px;border-radius:12px;background:#eaf2ff;color:#1761cf;font-size:13px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}
.cart-qty[data-empty=true]{display:none}
.login-tabs .lt{cursor:pointer;min-height:48px;padding:12px 8px;font-size:16px;display:flex;align-items:center;justify-content:center;border:0;font-family:inherit}
.login-submit{height:48px;font-size:16px;font-weight:700}
.login-register-toggle{min-height:48px;font-size:16px}

@keyframes pageIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes riseIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@keyframes homeSheen{0%,18%{transform:translateX(-105%)}52%,68%{transform:translateX(105%)}100%{transform:translateX(105%)}}
@keyframes brandPulse{0%,72%,100%{box-shadow:0 0 0 0 rgba(23,97,207,0)}82%{box-shadow:0 0 0 7px rgba(23,97,207,.08)}}
@keyframes noticeFloat{0%,18%{transform:translateX(0)}82%,100%{transform:translateX(-24px)}}
@keyframes sectionTick{from{height:36%;opacity:.65}to{height:82%;opacity:1}}

@media(min-width:700px){
  .goods-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .quick-grid{grid-template-columns:repeat(10,minmax(0,1fr));gap:8px}
  .quick-item span{font-size:12px}
  .swiper-slide img{height:220px}
  .draw-row .mg-fields{grid-template-columns:repeat(3,minmax(0,1fr))}
  .draw-row .mg-field.full{grid-column:1/-1}
}
@media(min-width:760px){
  .stage{padding:0;background:#f4f7fb}
  #app{max-width:1440px;min-height:100vh;border-radius:0;box-shadow:0 8px 36px rgba(27,61,99,.08)}
  #desktop-header{position:sticky;top:0;z-index:40;display:flex;align-items:center;gap:18px;min-height:72px;padding:12px 36px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.96);backdrop-filter:blur(14px)}
  .desktop-brand{display:flex;align-items:center;gap:10px;flex:1;min-width:0;font-size:15px;font-weight:700;color:#263f5d}
  .desktop-brand>span:last-child{min-width:0;overflow-wrap:anywhere}
  .desktop-brand small{display:block;font-size:10px;font-weight:400;color:#71819a;margin-top:3px}
  .desktop-mark{display:flex;align-items:center;justify-content:center;flex:none;width:36px;height:36px;border-radius:6px;background:#1761cf;color:#fff;font-size:16px;overflow:hidden}
  #desktop-header nav{display:flex;align-self:stretch;align-items:center;gap:14px}
  #desktop-header nav a{font-size:13px;line-height:30px;white-space:nowrap;color:#62728a;border-bottom:2px solid transparent;transition:color .2s ease,border-color .2s ease}
  #desktop-header nav a:hover{color:#1761cf}
  #desktop-header nav a[aria-current=page]{color:#1761cf;border-bottom-color:#1761cf;font-weight:600}
  #desktop-header nav a em{font-style:normal;font-size:10px;line-height:1;margin-left:4px;padding:2px 5px;border-radius:9px;background:#eaf2ff;color:#1761cf}
  .desktop-more{position:relative;align-self:stretch;display:flex;align-items:center;color:#62728a;font-size:13px}
  .desktop-more summary{display:flex;align-items:center;gap:3px;cursor:pointer;list-style:none;white-space:nowrap}
  .desktop-more summary::-webkit-details-marker{display:none}
  .desktop-more summary svg{width:13px;height:13px;transition:transform .2s ease}
  .desktop-more[open] summary{color:#1761cf}
  .desktop-more[open] summary svg{transform:rotate(180deg)}
  .desktop-more-menu{position:absolute;top:calc(100% + 10px);right:-10px;min-width:142px;padding:7px;background:#fff;border:1px solid #e3e9f0;border-radius:8px;box-shadow:0 14px 30px rgba(24,48,75,.14)}
  .desktop-more-menu a{display:block!important;padding:8px 10px!important;border:0!important;border-radius:5px;color:#50647c!important;font-size:12px!important;line-height:1.4!important}
  .desktop-more-menu a:hover{background:#f1f6fd!important;color:#1761cf!important}
  .desktop-auth,.desktop-user{display:flex;align-items:center;gap:8px;flex:none;padding-left:16px;border-left:1px solid var(--line);white-space:nowrap}
  .desktop-auth a,.desktop-auth button,.desktop-user button{height:42px;padding:0 16px;border-radius:6px;font-size:15px}
  .desktop-login{display:flex;align-items:center;justify-content:center;border:1px solid #b9cfe9;background:#f7fbff;color:#1761cf;transition:background .2s ease,border-color .2s ease}
  .desktop-login:hover{background:#edf4ff}
  .desktop-register{background:#1761cf;color:#fff;transition:background .2s ease,transform .2s ease}
  .desktop-register:hover{background:#104dac;transform:translateY(-1px)}
  .desktop-user-link{display:flex;align-items:center;gap:6px;color:#365575;max-width:150px;overflow:hidden}
  .desktop-user-link svg{width:17px;height:17px;color:#1761cf;flex:none}
  .desktop-user-link span{overflow:hidden;text-overflow:ellipsis}
  .desktop-logout{color:#6c7b8e;transition:color .2s ease,background .2s ease}
  .desktop-logout:hover{color:#b63f48;background:#fff1f1}
  #tabbar-slot{display:none!important}
  #view{padding-bottom:24px}
  .home-head{padding:24px 28px 18px;display:flex;align-items:center;justify-content:space-between;gap:30px}
  .home-head .brand-row{display:none}
  .head-search{flex:0 1 640px;min-width:260px;margin-left:auto}
  .head-search .search-box{height:44px}
  .notice{margin:0 28px!important}
  .swiper{margin:12px 28px 22px}
  .swiper-slide img{height:220px}
  .swiper-cap{padding:36px 28px 24px}
  .swiper-cap b{font-size:27px}
  .swiper-cap span{font-size:14px}
  .page:has(>.home-head)>.card{margin:0 28px!important}
  .assure{margin:0 28px;padding:16px 0}
  .assure div{font-size:12px;gap:7px}
  .sec-head{padding:26px 28px 14px}
  .page .cnc-promo{margin:0 28px}
  .page .cnc-promo .mask{padding:22px 28px;min-height:145px}
  .cnc-promo .mask b{font-size:20px}
  .cnc-promo .mask p{font-size:13px}
  .goods-grid{grid-template-columns:repeat(4,minmax(0,1fr));padding:0 28px;gap:18px}
  .h-scroll{padding:0 28px 4px;gap:16px}
  .h-scroll .goods-card{flex-basis:calc((100% - 48px)/4)}
  .h-scroll .goods-card .g-img{height:150px;object-fit:cover}
  .goods-card .g-body{padding:16px}
  .goods-card .g-name{font-size:16px}
  .goods-card .g-spec{font-size:13px}
  .price .num{font-size:21px}
  .quick-item span{font-size:13px}
  .sec-head h3{font-size:19px}
  .sec-head .more{font-size:13px}
  .goods-card .g-img{aspect-ratio:1.48;max-height:190px}
  .h-scroll .goods-card .g-img{height:132px;max-height:none}
  .login-submit{height:52px;font-size:17px}
  .cat-side{width:160px;flex-shrink:0}
  .cat-main{padding:20px}
  .cat-banner{height:170px}
  #app[data-view=product] #view>.page,#app[data-view=cart] #view>.page,#app[data-view=cnc] #view>.page,#app[data-view=checkout] #view>.page{max-width:900px;margin:auto}
  #app[data-view=login] #view>.login-page{max-width:520px;margin:0 auto}
  .cart-bar{bottom:0}
  .mg-toolbar{padding:24px 28px 16px}
  .mg-form>.mg-section{padding:24px 28px}
  .mg-form>.mg-section>.mg-fields{grid-template-columns:repeat(3,minmax(0,1fr))}
  .mg-form .mg-fields .full,.mg-form .mg-fields .mg-checks{grid-column:1/-1}
  .admin-stats{grid-template-columns:repeat(4,minmax(0,1fr));margin:20px}
  .admin-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
  .draw-heading{padding:28px}
  .draw-heading h2{font-size:26px}
  .draw-workspace{grid-template-columns:304px minmax(0,1fr);align-items:start}
  .draw-sidebar{border-right:1px solid var(--line);background:#f9fbfe}
  .draw-import{padding:20px}
  .draw-sidebar .mg-fields{grid-template-columns:minmax(0,1fr);gap:12px}
  .draw-sidebar .mg-field{gap:5px}
  .draw-sidebar .mg-field>select{font-size:12px;min-height:36px;padding:7px 9px}
  .draw-list-heading{padding:24px 24px 14px}
  .draw-tools{padding:0 24px 18px}
  .draw-content>.draw-text{padding:12px 24px}
  .draw-rows{padding:20px 24px;gap:18px}
  .draw-row{padding:20px}
  .draw-summary{padding:18px 24px;position:sticky;top:54px;z-index:5}
  .draw-price-metrics{gap:24px}
  .draw-price-metrics dd{font-size:20px}
  .draw-line-total strong{font-size:28px}
}
@media(min-width:760px) and (max-width:920px){
  #desktop-header{padding-left:20px;padding-right:20px;gap:12px}
  .desktop-brand{flex-basis:150px;font-size:13px}
  .desktop-brand small{font-size:9px}
  #desktop-header nav{gap:9px}
  #desktop-header nav a,.desktop-more{font-size:12px}
  .desktop-auth,.desktop-user{padding-left:10px;gap:4px}
  .desktop-auth a,.desktop-auth button,.desktop-user button{height:38px;padding-left:10px;padding-right:10px;font-size:13px}
}
@media(max-width:420px){
  .page .brand-name{font-size:17px}
  .quick-item span{font-size:11px}
  .draw-heading h2{font-size:21px}
  .draw-row{padding:12px}
  .draw-row .mg-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px}
  .draw-row .mg-field>input,.draw-row .mg-field>select{font-size:14px;padding:8px}
  .draw-price{grid-template-columns:minmax(0,1fr)}
  .draw-line-total{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;border-top:1px dashed var(--line);padding-top:12px;margin-top:4px}
  .draw-line-total>span{margin:0}
  .draw-summary{grid-template-columns:minmax(0,1fr)}
  .draw-summary .primary{width:100%}
  .draw-summary-cost>strong{font-size:28px}
  .draw-row-head{gap:7px}
  .draw-row-head>b{font-size:14px}
  .draw-badge{font-size:10px;padding:3px 5px}
  .draw-summary .draw-summary-stats{gap:8px 12px}
}

/* Desktop workbench preview: a fixed navigation rail with a quiet content area. */
.desktop-workbench-title{display:none}
.home-summary{display:none}
.home-footer{margin:28px 0 12px;text-align:center;color:#7a899a;font-size:12px}

@media(min-width:760px){
  #app{display:grid;grid-template-columns:228px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);max-width:1600px;min-height:100vh;background:#f5f7fa;overflow:clip}
  #desktop-sidebar{grid-column:1;grid-row:1 / span 2;display:flex;flex-direction:column;min-width:0;height:100vh;position:sticky;top:0;padding:22px 14px 16px;background:#fff;border-right:1px solid #e1e8f0;color:#50647c;z-index:45}
  .sidebar-brand{display:flex;align-items:center;gap:11px;padding:4px 9px 22px;border-bottom:1px solid #edf1f5;color:#22364e;min-width:0}
  .sidebar-brand>span:last-child{min-width:0;overflow-wrap:anywhere}
  .sidebar-brand b{display:block;font-size:15px;line-height:1.45;white-space:normal}
  .sidebar-brand small{display:block;margin-top:4px;color:#8795a6;font-size:10px;letter-spacing:.4px}
  .sidebar-label{padding:22px 12px 8px;font-size:11px;color:#97a5b5;letter-spacing:.5px}
  .desktop-mark{display:flex;align-items:center;justify-content:center;flex:none;width:50px;height:50px;border-radius:10px;background:#1761cf;color:#fff;font-size:24px;font-weight:800;box-shadow:0 8px 18px rgba(23,97,207,.2);overflow:hidden}
  #desktop-sidebar nav{display:flex;flex-direction:column;gap:4px}
  #desktop-sidebar nav a,#desktop-sidebar .sidebar-extra a{display:flex;align-items:center;gap:10px;min-height:42px;padding:0 12px;border:0;border-radius:7px;color:#617187;font-size:13px;line-height:1.35;transition:background .18s ease,color .18s ease,transform .18s ease}
  #desktop-sidebar nav a:hover,#desktop-sidebar .sidebar-extra a:hover{background:#f1f6fd;color:#1761cf;transform:translateX(2px)}
  #desktop-sidebar nav a[aria-current=page]{background:#eaf2ff;color:#1761cf;font-weight:700}
  #desktop-sidebar nav a svg,#desktop-sidebar .sidebar-extra a svg{width:18px;height:18px;color:currentColor}
  #desktop-sidebar nav a span,#desktop-sidebar .sidebar-extra a span{min-width:0}
  #desktop-sidebar nav a em{font-style:normal;margin-left:auto;min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:#1761cf;color:#fff;font-size:10px;display:flex;align-items:center;justify-content:center}
  .sidebar-spacer{flex:1}
  .sidebar-extra{display:flex;flex-direction:column;gap:3px;padding-top:10px;border-top:1px solid #edf1f5}
  .sidebar-footer{display:flex;align-items:center;gap:8px;margin:16px 8px 0;padding:12px 10px;background:#f6f9fd;border-radius:7px;color:#7b8b9d;font-size:11px;overflow:hidden}
  .sidebar-footer svg{width:16px;height:16px;color:#1761cf;flex:none}
  .sidebar-footer span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #desktop-header{grid-column:2;grid-row:1;display:flex;align-items:center;justify-content:space-between;gap:20px;min-width:0;min-height:74px;padding:14px 36px;border-bottom:1px solid #e1e8f0;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);z-index:40}
  .desktop-page-title{min-width:0}
  .desktop-page-title b{display:block;color:#24384f;font-size:20px;line-height:1.35}
  .desktop-page-title small{display:block;margin-top:3px;color:#8a98a8;font-size:11px}
  .desktop-top-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px;min-width:0}
  .desktop-search{display:flex;align-items:center;gap:8px;width:min(370px,32vw);height:40px;padding:0 13px;border:1px solid #e0e7ef;border-radius:6px;background:#f8fafc;color:#718197;font-size:12px;cursor:pointer}
  .desktop-search svg{width:17px;height:17px;color:#1761cf;flex:none}
  .desktop-search span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .desktop-search.material-picker{position:relative;cursor:text;overflow:visible}
  .desktop-search.material-picker input{width:100%;min-width:0;height:100%;padding:0;border:0;outline:0;background:transparent;color:var(--ink);font:inherit}
  .desktop-search.material-picker input::placeholder{color:#718197;opacity:1}
  .desktop-auth,.desktop-user{padding-left:14px;border-left:1px solid #e1e8f0}
  .desktop-auth a,.desktop-auth button,.desktop-user button{height:40px;font-size:14px}
  .desktop-user-link{font-size:13px}
  #view{grid-column:2;grid-row:2;min-width:0;padding-bottom:28px;background:#f5f7fa}
  #tabbar-slot{display:none!important}
  .page:has(>.home-head){background:#f5f7fa}
  .home-head{padding:20px 36px 16px;background:#f5f7fa;color:var(--ink);border-bottom:0}
  .page:has(>.home-head)>.home-head{display:none}
  .home-head .brand-row{display:none}
  .desktop-workbench-title{display:flex;flex-direction:column;gap:3px;margin-right:auto}
  .desktop-workbench-title b{font-size:15px;color:#334b67}
  .desktop-workbench-title span{font-size:11px;color:#8997a8}
  .home-head .head-search{width:min(560px,48%);flex:0 1 560px;margin-left:auto}
  .home-head .head-search .search-box{height:42px;background:#fff}
  .notice{margin:0 36px!important}
  .home-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 36px 4px}
  .home-summary>div{display:flex;flex-direction:column;min-height:100px;padding:16px 18px;background:#fff;border:1px solid #e2e9f1;border-radius:8px;box-shadow:0 4px 14px rgba(32,76,128,.045)}
  .home-summary span{font-size:12px;color:#748397}
  .home-summary b{margin-top:8px;color:#273d57;font-size:25px;line-height:1.15;font-variant-numeric:tabular-nums}
  .home-summary small{margin-top:auto;color:#9aa7b5;font-size:11px}
  .home-summary .summary-live{color:#1b9a72;font-size:20px}
  .swiper{margin:18px 36px 22px;border-radius:8px}
  .swiper-slide img{height:224px}
  .swiper-cap{padding:36px 28px 24px}
  .swiper-cap b{font-size:25px}
  .page:has(>.home-head)>.card{margin:0 36px!important}
  .quick-grid{padding:0 0 16px;gap:10px}
  .assure{margin:0 36px;padding:14px 0}
  .sec-head{padding:24px 36px 13px}
  .page .cnc-promo{margin:0 36px}
  .goods-grid{grid-template-columns:repeat(4,minmax(0,1fr));padding:0 36px;gap:16px}
  .goods-card .g-img{aspect-ratio:1.75;max-height:158px}
  .h-scroll{padding-left:36px;padding-right:36px}
  .h-scroll .goods-card{flex-basis:calc((100% - 48px)/4)}
  .h-scroll .goods-card .g-img{height:128px}
}

@media(min-width:760px) and (max-width:1050px){
  #app{grid-template-columns:198px minmax(0,1fr)}
  #desktop-sidebar{padding-left:10px;padding-right:10px}
  .sidebar-brand{padding-left:6px;padding-right:6px}
  .sidebar-brand b{font-size:13px}
  .desktop-mark{width:44px;height:44px;font-size:21px}
  #desktop-header{padding-left:24px;padding-right:24px}
  .desktop-search{width:250px}
  .home-head,.sec-head{padding-left:24px;padding-right:24px}
  .notice,.assure{margin-left:24px!important;margin-right:24px!important}
  .home-summary,.goods-grid{margin-left:24px;margin-right:24px;padding-left:0;padding-right:0}
  .swiper{margin-left:24px;margin-right:24px}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}
}
