/* This theme keeps the Dream storefront's table and purchase layout. */
:root{--c1:#d381a8;--c1h:#b86a92;--text:#34343b;--sub:#777780;--light:#999;--border:#f1dfe7;--card:#fff;--bg:#fff}
body.theme-yiciyuan-maple{min-height:100vh;color:#333;background-color:#fff;background-position:center;background-size:cover;background-attachment:fixed}
body.theme-yiciyuan-maple::before{content:"";position:fixed;inset:0;background:rgba(255,255,255,var(--store-overlay,.4));pointer-events:none;z-index:-1}
body.maple-catalog{font-family:HarmonyOS,'PingFang SC',Arial,sans-serif!important}
body.maple-catalog .navbar-brand{display:flex;align-items:center;min-width:0}
body.maple-catalog .navbar-brand>a:first-child{display:inline-flex;align-items:center;min-width:0}
.maple-store-nav .site-logo-image{display:block;flex:none;width:30px;height:30px;object-fit:contain;box-shadow:#f0d1d4 1px 1px 1px;border-radius:50%}
.maple-store-name{position:relative;top:4px;left:3px;max-width:min(34vw,260px);font-weight:bold;color:#1396558a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.maple-login{position:relative;top:4px;left:10px;font-size:18px;color:#79b9fbbd;font-weight:bold;white-space:nowrap}
.maple-store-nav .nav-link{font-weight:bolder}
.maple-announcement-content{overflow:visible}
.maple-announcement-content p:first-child{text-align:center}
.maple-announcement-content img{max-width:100%;height:auto;object-fit:contain}
.maple-announcement-content .maple-notice-image{display:inline-block;width:72px;max-height:52px;margin:3px 5px 3px 0;cursor:zoom-in}
.maple-product-name{color:inherit;display:inline-flex;align-items:center;gap:3px;max-width:100%;overflow-wrap:anywhere}
.maple-product-name:hover{color:#d381a8}
.maple-buy-link{white-space:nowrap}
.category-list .commodity-icon{object-fit:contain;vertical-align:middle}
.maple-pagination{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;padding:10px 0 30px}
.maple-pagination a{padding:5px 10px;border:1px solid #f6d9e6;border-radius:8px;background:#fff;color:#8b7080}
.maple-pagination a[aria-current=page]{background:#fce3ee;color:#a54d79}
.maple-purchase-dialog:not([open]){display:none!important}
.maple-purchase-dialog[open]{display:block;position:fixed;inset:0;margin:auto;width:620px;max-width:calc(100vw - 24px);max-height:min(760px,calc(100dvh - 36px));padding:0;overflow:hidden;border:0;border-radius:20px!important;background:linear-gradient(#ffffffed,#ffe7f4)!important;box-shadow:0 7px 29px #fdadcc59!important;color:#333}
.maple-purchase-dialog::backdrop{background:rgba(0,0,0,.32)}
.maple-purchase-dialog .layui-layer-title{height:50px;min-height:50px;line-height:50px;padding:0 80px 0 20px;border-bottom:1px solid #f6dfe8;background:transparent;color:#666;font-size:14px;font-weight:500}
.maple-purchase-dialog .layui-layer-content{height:calc(100% - 50px);max-height:calc(min(760px,100dvh - 36px) - 50px);overflow:auto;overscroll-behavior:contain}
.maple-purchase-dialog .open-commodity{padding:50px}
.maple-purchase-dialog .maple-purchase-close,.maple-purchase-dialog .maple-purchase-close:hover{position:absolute;right:5px;top:1px;z-index:2;display:grid;place-items:center;width:40px;height:40px;min-width:40px;min-height:40px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#797377;font:26px/1 sans-serif;text-decoration:none;cursor:pointer}
.maple-purchase-dialog .maple-purchase-close:focus-visible{outline:0;color:#3e343b;font-weight:700}
.maple-purchase-dialog .commodity_name{color:#7a7878}
.maple-purchase-dialog .description{max-height:220px;overflow:auto}
.maple-purchase-dialog .description img,.maple-purchase-dialog .description video{max-width:100%;height:auto}
.maple-purchase-dialog .share_url:focus-visible{outline:2px solid #8e8eef;outline-offset:2px}
.maple-purchase-dialog .general{line-height:1.8}
.maple-purchase-dialog .acg-input{max-width:100%}
.maple-purchase-dialog .product-extra-fields{font-size:14px;margin:9px 0}
.maple-purchase-dialog .product-extra-field{margin:7px 0}
.maple-purchase-dialog .product-extra-field label{display:block;color:#7c7674}
.maple-purchase-dialog .product-extra-field input,.maple-purchase-dialog .product-extra-field textarea{background:#fff;border:1px solid #f2d9e5;border-radius:6px;max-width:100%;padding:5px 8px}
.maple-purchase-dialog .product-spec-picker{margin:12px 0 18px}
.maple-purchase-dialog .product-spec-options{display:flex;flex-wrap:wrap;gap:6px}
.maple-purchase-dialog .product-spec-option{padding:6px 10px;border:1px solid #f3cddc;border-radius:8px;background:#fff;color:#66565f;cursor:pointer}
.maple-purchase-dialog .product-spec-option[aria-pressed=true]{border-color:#d381a8;background:#fff0f6}
.maple-purchase-dialog .product-spec-option span{display:block;font-size:12px}
.maple-purchase-dialog .maple-total{font-size:13px;color:#7c7674;margin:4px 0}
.maple-purchase-dialog .maple-total strong{color:#e72451}
.maple-purchase-dialog .pay-button{min-height:32px}
.maple-purchase-dialog .pay-button:disabled{opacity:.55;cursor:default}
.maple-purchase-dialog .lot{margin-top:10px}
body.maple-query{font-family:Inter,'PingFang SC',sans-serif}
.maple-query .navbar-brand{display:inline-flex;gap:7px;align-items:center;min-width:0}
.maple-query .navbar-brand .site-logo-image{width:30px;height:30px;object-fit:contain;flex:none}
.maple-query .navbar-brand span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:190px}
.maple-query .maple-query-input{width:300px;max-width:100%}
.maple-query .panel-title{font-size:1rem;margin:0}
.maple-query .order-query-form .query-captcha-field{max-width:380px;margin:12px auto 0}
.maple-query .query-captcha-row{display:flex;gap:8px}
.maple-query .query-captcha-row input{min-width:0;flex:1}
.maple-query .query-captcha-refresh{border:0;background:transparent;padding:0;cursor:pointer}
.maple-query .maple-result-card{border:1px solid #edf0f4;border-radius:12px;margin-bottom:14px;overflow:hidden;background:#fff}
.maple-result-head{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:14px 20px;border-bottom:1px solid #f0f1f5;font-size:13px;overflow-wrap:anywhere}
.maple-result-head span{font-size:12px;color:#8a8e98}
.maple-result-card dl{display:grid;gap:10px;margin:0;padding:16px 20px;font-size:13px}
.maple-result-card dl>div{display:flex;justify-content:space-between;gap:16px}
.maple-result-card dt{color:#7c818c;font-weight:400}.maple-result-card dd{margin:0;text-align:right;overflow-wrap:anywhere}
.maple-result-actions{display:flex;gap:10px;padding:0 20px 18px}
.maple-result-actions a{padding:7px 12px;border:1px solid #e7d9e2;border-radius:8px;color:#aa6787;text-decoration:none}
.maple-card-delivery{padding:0 20px 12px;font-size:13px;color:#39855b}.maple-card-delivery textarea{display:block;width:100%;min-height:100px;margin-top:7px;padding:10px;border:1px solid #eed7e2;border-radius:8px;resize:vertical}
.maple-site-popup:not([open]){display:none}
.maple-site-popup[open]{display:block;position:fixed;inset:0;width:min(520px,calc(100vw - 24px));max-height:min(70dvh,600px);margin:auto;padding:0;border:0;border-radius:20px;background:linear-gradient(#fffafc,#ffe7f4);box-shadow:0 14px 45px #bd779f55;color:#666}
.maple-site-popup::backdrop{background:#0006}
.maple-site-popup section{display:flex;flex-direction:column;max-height:min(70dvh,600px)}
.maple-site-popup header{display:flex;align-items:center;justify-content:space-between;padding:8px 8px 8px 20px;border-bottom:1px solid #f4d7e4}
.maple-site-popup h2{margin:0;font-size:17px;line-height:1.5;color:#886c7b}
.maple-site-popup header button,.maple-site-popup header button:hover{display:grid;place-items:center;width:40px;height:40px;min-width:40px;min-height:40px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#79626d;font:26px/1 sans-serif;cursor:pointer;text-decoration:none}
.maple-site-popup header button:focus-visible{outline:0;font-weight:700;color:#3e343b}
.maple-site-popup .maple-popup-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:18px 22px;font-size:14px;line-height:1.9;overflow-wrap:anywhere}
.maple-site-popup .maple-popup-body img{max-width:100%;height:auto;max-height:320px;object-fit:contain}
.maple-site-popup footer{padding:10px 20px 16px;text-align:right}
.maple-site-popup footer button{padding:7px 15px;border:0;border-radius:8px;background:#e7a1bc;color:#fff;cursor:pointer}
body.maple-auth{background-color:#fff}
.maple-auth .brand-icon.site-logo-image{object-fit:contain}
.maple-auth .maple-auth-error{margin:-8px 0 14px;padding:8px 12px;border-radius:8px;background:#ffe5ec;color:#a73055;font-size:13px}
.maple-auth .maple-forgot-content{font-size:14px;color:#676976;line-height:1.7}
#toast{position:fixed;left:50%;top:25%;transform:translateX(-50%);z-index:10020;width:max-content;max-width:90vw;pointer-events:none}
#toast .toast-item{padding:10px 14px;margin-bottom:8px;border-radius:8px;background:#2a2630ed;color:white;font-size:13px;box-shadow:0 5px 18px #0002}
@media(max-width:768px){
  .maple-purchase-dialog[open]{inset:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0!important}
  .maple-purchase-dialog .layui-layer-content{max-height:calc(100dvh - 50px)}
  .maple-purchase-dialog .open-commodity{padding:20px}
  .maple-query .order-query-form>div:first-child{flex-wrap:wrap}
  .maple-query .maple-query-input{width:300px}
  .maple-query .navbar-brand span{max-width:calc(100vw - 260px)}
  .maple-query .navbar-toggler{order:1;margin-left:auto}
  .maple-query .user-login-box{order:2;display:flex;flex-direction:row-reverse;gap:4px;margin-left:6px!important}
  .maple-query .user-login-box a{white-space:nowrap}
  .maple-store-name{max-width:35vw}
  .maple-store-nav .navbar-brand{width:100%;margin-right:0}
  .maple-store-nav .maple-login{position:static;margin-left:auto;flex:none;font-size:16px}
  .maple-store-nav .maple-store-name{max-width:calc(100vw - 150px)}
}
@media(max-width:390px){.maple-store-name{max-width:30vw}.maple-login{font-size:15px}.maple-store-nav .nav-link{padding-left:8px;padding-right:8px}}
@media(prefers-reduced-motion:reduce){body.theme-yiciyuan-maple *,body.theme-yiciyuan-maple *::before,body.theme-yiciyuan-maple *::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
