/* ===== ref style block 1 ===== */
:root{
  --yz4-bg:var(--yz4-page-bg, #f5f5f8);
  --yz4-card:#ffffff;
  --yz4-glass-strong:rgba(255,255,255,.82);
  --yz4-glass-soft:rgba(255,255,255,.66);
  --yz4-glass-lite:rgba(255,255,255,.56);
  --yz4-text:#111111;
  --yz4-text-main:#333333;
  --yz4-text-sub:#666666;
  --yz4-text-muted:#999999;
  --yz4-brand:#59657D;
  --yz4-price:#C35A57;
  --yz4-success:#248a3d;
  --yz4-warn:#d97706;
  --yz4-info:#2563eb;
  --yz4-border:rgba(0,0,0,.05);
  --yz4-shadow-sm:0 2px 8px rgba(0,0,0,.02);
  --yz4-shadow-md:0 4px 16px rgba(0,0,0,.04);
  --yz4-shadow-lg:0 8px 30px rgba(0,0,0,.06);
  --yz4-radius-sm:8px;
  --yz4-radius-md:12px;
  --yz4-radius-lg:18px;
  --yz4-radius-pill:100px;
  --yz4-page-width:1100px;
  --yz4-sidebar-width:226px;
  --yz4-gap:28px;
}

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
  -webkit-font-smoothing:antialiased;
}

html,body{
  min-height:100%;
}

body.ui4-body{
  position:relative;
  background-color:var(--yz4-bg);
  background-image:
    radial-gradient(circle at top left, rgba(255,255,255,.4), rgba(255,255,255,0) 30%),
    linear-gradient(180deg, rgba(255,255,255,.32), rgba(245,245,248,.68));
  background-position:center top;
  background-size:cover,cover;
  background-attachment:fixed,fixed;
  color:var(--yz4-text-main);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC","Microsoft YaHei",sans-serif;
  line-height:1.5;
}

body.ui4-body.yz4-modal-active{
  overflow:hidden;
}

body.ui4-body::before,
body.ui4-body::after{
  content:'';
  position:fixed;
  z-index:0;
  pointer-events:none;
  filter:blur(14px);
}

body.ui4-body::before{
  inset:0;
  width:auto;
  height:auto;
  border-radius:0;
  background-image:var(--yz4-page-bg-image);
  background-position:center center;
  background-size:cover;
  background-repeat:no-repeat;
  background-attachment:fixed;
  opacity:var(--yz4-page-bg-opacity, .45);
  filter:none;
  transform:none;
  mix-blend-mode:normal;
}

body.ui4-body::after{
  left:-96px;
  top:142px;
  width:260px;
  height:260px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(255,255,255,.34), rgba(255,255,255,0));
}

.yz4-card,
.yz4-search-box,
.yz4-notice-card,
.yz4-sidebar,
.yz4-product-card,
.yz4-results-count,
.yz4-category-item,
.yz4-query-result-card,
.yz4-query-card-preview,
.yz4-pay-item{
  backdrop-filter:saturate(180%) blur(18px);
  -webkit-backdrop-filter:saturate(180%) blur(18px);
}

a{
  color:inherit;
  text-decoration:none;
}

button,input,textarea,select{
  font:inherit;
}

img{
  display:block;
  max-width:100%;
}

.yz4-hidden-copy-source{
  position:absolute;
  left:-9999px;
  opacity:0;
  pointer-events:none;
}

.yz4-page-kicker,
.yz4-order-overline{
  margin:0 0 10px;
  color:var(--yz4-text-muted);
  font-size:12px;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.yz4-primary-button,
.yz4-secondary-button,
.yz4-text-button{
  transition:all .2s ease;
  cursor:pointer;
}

.yz4-primary-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding:0 24px;
  border:none;
  border-radius:var(--yz4-radius-pill);
  background:linear-gradient(180deg, var(--yz4-brand), var(--yz4-brand-hover));
  color:#fff;
  box-shadow:0 10px 20px rgba(58, 63, 77, .16);
  font-size:14px;
  font-weight:600;
}

.yz4-primary-button:hover{
  background:linear-gradient(180deg, var(--yz4-brand-hover), var(--yz4-brand-deep));
  transform:translateY(-1px);
  box-shadow:0 12px 22px rgba(58, 63, 77, .2);
}

.yz4-primary-button[disabled]{
  opacity:.64;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}

.yz4-primary-button.is-wide{
  width:100%;
}

.yz4-secondary-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:42px;
  padding:0 18px;
  border:1px solid var(--yz4-border);
  border-radius:var(--yz4-radius-pill);
  background:#fff;
  color:var(--yz4-text-main);
  font-size:13px;
  font-weight:600;
}

.yz4-secondary-button:hover{
  box-shadow:var(--yz4-shadow-sm);
  border-color:rgba(0,0,0,.1);
}

.yz4-secondary-button.is-small{
  min-height:36px;
  padding:0 14px;
}

.yz4-text-button{
  border:none;
  background:none;
  color:var(--yz4-brand);
  font-size:14px;
  font-weight:600;
}

.yz4-status-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:0 12px;
  border-radius:var(--yz4-radius-pill);
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
}

.yz4-status-badge.is-success{background:#ebf8ef;color:var(--yz4-success)}
.yz4-status-badge.is-warn{background:#fff3e0;color:var(--yz4-warn)}
.yz4-status-badge.is-danger{background:#fdecef;color:var(--yz4-price)}
.yz4-status-badge.is-info{background:#eff6ff;color:var(--yz4-info)}
.yz4-status-badge.is-muted{background:#f3f4f6;color:#6b7280}

.yz4-toast{
  position:fixed;
  left:50%;
  bottom:28px;
  z-index:1400;
  min-width:220px;
  max-width:min(92vw,480px);
  padding:14px 18px;
  border-radius:16px;
  background:rgba(17,17,17,.92);
  color:#fff;
  box-shadow:var(--yz4-shadow-lg);
  font-size:14px;
  text-align:center;
  opacity:0;
  transform:translateX(-50%) translateY(16px);
  pointer-events:none;
  transition:.2s ease;
}

.yz4-toast.show{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

.yz4-snow-layer{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:1;
  overflow:hidden;
  mix-blend-mode:screen;
}

.yz4-snow-layer.is-back{
  opacity:.62;
}

.yz4-snow-layer.is-front{
  opacity:1;
}

.yz4-snowflake{
  position:absolute;
  top:-10%;
  left:var(--left);
  width:var(--size);
  height:var(--size);
  border-radius:50%;
  background:radial-gradient(circle at 35% 35%, rgba(255,255,255,.98), rgba(255,255,255,.26));
  box-shadow:0 0 16px rgba(255,255,255,.6);
  opacity:var(--opacity, .82);
  animation:yz4SnowFall var(--duration) linear infinite;
  animation-delay:var(--delay);
}

@keyframes yz4SnowFall{
  0%{
    transform:translate3d(0,-12px,0) scale(1);
    opacity:0;
  }
  10%{
    opacity:var(--opacity, .82);
  }
  100%{
    transform:translate3d(var(--drift, 22px),110vh,0) scale(.86);
    opacity:.08;
  }
}

/* ===== ref style block 6 ===== */
@media (max-width: 1100px){
  .yz4-category-list.ui4-hide-cat-icon-mobile .yz4-category-main{
    gap:0;
    justify-content:center;
  }

  .yz4-category-list.ui4-hide-cat-icon-mobile .yz4-category-icon{
    display:none;
  }

  .yz4-home-layout{
    grid-template-columns:1fr;
    gap:12px;
  }

  .yz4-sidebar{
    position:static;
    padding:8px 0 2px;
    background:transparent;
    border:none;
    box-shadow:none;
  }

  .yz4-category-list{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:8px;
    overflow:visible;
    padding:0 0 4px;
  }

  .yz4-category-list::-webkit-scrollbar{
    display:none;
  }

  .yz4-category-item{
    width:100%;
    min-width:0;
    min-height:58px;
    padding:10px 10px;
    border-color:rgba(0,0,0,.04);
    background:linear-gradient(180deg,#ffffff,#fbfbfd);
    flex-shrink:1;
  }

  .yz4-category-item.is-active{
    transform:none;
  }

  .yz4-category-item.is-active::before{
    top:10px;
    bottom:10px;
  }

  .yz4-category-main{
    gap:8px;
  }

  .yz4-category-icon{
    width:18px;
    font-size:14px;
  }

  .yz4-category-copy strong{
    font-size:12px;
  }

  .yz4-category-copy small{
    font-size:10px;
  }

  .yz4-category-count{
    min-width:22px;
    height:22px;
    padding:0 6px;
    font-size:10px;
  }

  .yz4-modal-panel{
    max-width:min(100vw - 24px,920px);
    margin:20px auto;
  }

  .yz4-modal-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 560px){
  .yz4-buy-page-panel .yz4-form-row{
    gap:5px;
    padding:7px 0;
  }

  .yz4-buy-page-panel .yz4-form-row label{
    font-size:11.5px;
  }

  .yz4-buy-page-panel .yz4-form-row input,
  .yz4-buy-page-panel .yz4-form-row textarea{
    min-height:36px;
    padding:0 10px;
    border-radius:10px;
    background:rgba(255,255,255,.68);
    font-size:13px;
  }

  .yz4-buy-page-panel .yz4-form-row textarea{
    min-height:72px;
    padding:10px;
  }

  .yz4-buy-page-panel .yz4-pay-list{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:6px;
  }

  .yz4-buy-page-panel .yz4-pay-item{
    min-height:36px;
    padding:6px 4px;
    gap:4px;
    justify-content:center;
  }

  .yz4-buy-page-panel .yz4-pay-icon{
    width:16px;
    height:16px;
    border-radius:5px;
    font-size:9px;
  }

  .yz4-buy-page-panel .yz4-pay-copy span{
    font-size:10.5px;
    letter-spacing:-.02em;
    text-align:center;
  }

  .yz4-buy-page-panel .yz4-buy-detail-toggle{
    padding-bottom:8px;
    font-size:14px;
  }

  .yz4-buy-page-panel .yz4-buy-detail{
    font-size:12px;
    line-height:1.85;
  }
}

@media (max-width: 560px){
  .yz4-buy-page-view{
    margin:8px auto 22px;
  }

  .yz4-buy-page-top{
    margin-bottom:8px;
    align-items:center;
  }

  .yz4-buy-page-links{
    display:none;
  }

  .yz4-buy-page-top .yz4-secondary-button{
    min-height:30px;
    padding:0 12px;
    border-radius:999px;
    font-size:11.5px;
    font-weight:700;
    background:rgba(255,255,255,.82);
    border:1px solid rgba(89,101,125,.08);
    box-shadow:none;
  }

  .yz4-buy-page-panel{
    padding:14px 14px 16px;
    border-radius:20px;
    background:rgba(255,255,255,.82);
    border:1px solid rgba(89,101,125,.07);
    box-shadow:0 8px 20px rgba(71,78,92,.04);
  }

  .yz4-buy-page-hero{
    gap:8px;
    padding-bottom:10px;
    border-bottom:1px solid rgba(89,101,125,.06);
  }

  .yz4-modal-head{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:14px;
  }

  .yz4-modal-media{
    display:block !important;
    width:100%;
    height:auto;
    aspect-ratio:1/1;
    border-radius:20px;
    box-shadow:none;
  }

  .yz4-modal-copy h3{
    margin-bottom:4px;
    font-size:19px;
    line-height:1.4;
  }

  .yz4-modal-price-row{
    margin-top:6px;
    gap:8px;
  }

  .yz4-modal-price-row strong{
    font-size:28px;
  }

  .yz4-modal-price-row span{
    font-size:11px;
  }

  .yz4-modal-price-row em{
    display:none;
  }

  .yz4-buy-page-chips{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
  }

  .yz4-buy-page-chip{
    min-height:24px;
    padding:0 9px;
    border-radius:999px;
    background:rgba(248,249,252,.92);
    border:1px solid rgba(89,101,125,.08);
    box-shadow:none;
    color:var(--yz4-text-sub);
    font-size:10px;
    font-weight:600;
  }

  .yz4-buy-page-chip.is-coupon{
    display:none;
  }

  .yz4-modal-grid{
    margin-top:12px;
    gap:12px;
  }

  .yz4-form-stack{
    gap:0;
  }

  .yz4-form-row{
    gap:7px;
    padding:12px 0;
    border:0;
    border-bottom:1px solid rgba(89,101,125,.08);
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }

  .yz4-form-row:last-of-type{
    border-bottom:0;
    padding-bottom:0;
  }

  .yz4-form-row label{
    font-size:12.5px;
    font-weight:700;
    color:var(--yz4-text);
  }

  .yz4-form-row input,
  .yz4-form-row textarea{
    min-height:42px;
    padding:0 13px;
    border-radius:12px;
    border:1px solid rgba(89,101,125,.12);
    background:rgba(255,255,255,.82);
    box-shadow:none;
    font-size:14px;
    font-weight:500;
  }

  .yz4-form-row textarea{
    min-height:88px;
    padding:12px 13px;
  }

  .yz4-form-row input::placeholder,
  .yz4-form-row textarea::placeholder{
    color:rgba(89,101,125,.56);
    font-size:13px;
  }

  .yz4-inline-field,
  .yz4-captcha-row{
    flex-direction:row;
    align-items:center;
    gap:8px;
  }

  .yz4-inline-field input,
  .yz4-captcha-row input{
    flex:1 1 auto;
    min-width:0;
  }

  .yz4-inline-field .yz4-secondary-button{
    width:auto;
    min-height:38px;
    padding:0 12px;
    border-radius:11px;
    font-size:12px;
    flex:0 0 auto;
  }

  .yz4-form-row-qty{
    gap:8px;
  }

  .yz4-qty-shell{
    width:138px;
    padding:4px;
    border-radius:14px;
    background:rgba(255,255,255,.82);
    border:1px solid rgba(89,101,125,.12);
    box-shadow:none;
  }

  .yz4-qty-button{
    width:32px;
    height:32px;
    border-radius:10px;
    border:0;
    background:linear-gradient(180deg, rgba(255,132,160,.14), rgba(255,99,140,.22));
    color:#e85d8e;
    font-size:15px;
    font-weight:800;
    box-shadow:none;
  }

  .yz4-qty-button:hover{
    transform:none;
    box-shadow:none;
  }

  .yz4-qty-row input{
    width:54px;
    min-height:32px;
    padding:0;
    font-size:16px;
    font-weight:700;
  }

  .yz4-pay-list{
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:8px;
  }

  .yz4-pay-item{
    min-height:42px;
    padding:8px 10px;
    gap:8px;
    border-radius:12px;
    border:1px solid rgba(89,101,125,.1);
    background:rgba(255,255,255,.84);
    box-shadow:none;
  }

  .yz4-pay-item:hover{
    transform:none;
    box-shadow:none;
  }

  .yz4-pay-icon{
    width:20px;
    height:20px;
    border-radius:7px;
    font-size:10px;
  }

  .yz4-pay-copy span{
    font-size:12px;
    font-weight:700;
    white-space:nowrap;
  }

  .yz4-pay-copy small{
    display:none !important;
  }

  .yz4-pay-check{
    width:14px;
    height:14px;
    box-shadow:none;
  }

  .yz4-pay-item.is-active{
    background:linear-gradient(180deg, rgba(130,145,224,.08), rgba(255,255,255,.92));
    box-shadow:none;
  }

  .yz4-pay-item.is-active .yz4-pay-check::before{
    width:4px;
    height:4px;
    margin:4px auto 0;
  }

  .yz4-buy-note{
    margin-top:10px;
    padding:10px 12px;
    border-radius:12px;
    background:rgba(248,249,252,.92);
    border:1px solid rgba(89,101,125,.08);
    font-size:11.5px;
    line-height:1.7;
  }

  .yz4-buy-submit-inline{
    margin-top:12px;
    min-height:44px;
    border-radius:12px;
    font-size:14px;
    letter-spacing:.01em;
    box-shadow:0 8px 18px rgba(103,122,218,.14);
  }

  .yz4-buy-page-panel .yz4-modal-stickybar{
    display:none !important;
  }

  .yz4-buy-page-detail-card{
    margin-top:14px;
    padding:14px 13px;
    border-radius:18px;
    background:rgba(255,255,255,.9);
    border:1px solid rgba(89,101,125,.08);
    box-shadow:none;
  }

  .yz4-buy-page-detail-head{
    gap:8px;
    margin-bottom:10px;
  }

  .yz4-buy-page-detail-head span{
    width:3px;
    height:18px;
  }

  .yz4-buy-page-detail-head h4{
    font-size:15px;
    font-weight:800;
  }

  .yz4-buy-detail{
    max-height:none;
    margin:0;
    padding:0;
    font-size:12.5px;
    line-height:1.8;
    color:var(--yz4-text-main);
  }

  .yz4-buy-detail:empty::before{
    font-size:12px;
  }

  .yz4-buy-detail img,
  .yz4-buy-detail video{
    margin:10px 0;
    border-radius:10px;
  }
}

@media (max-width: 820px){
  .yz4-header-inner,
  .yz4-wrap,
  .yz4-footer-inner{
    padding-left:14px;
    padding-right:14px;
  }

  .yz4-header-nav{
    gap:12px;
    font-size:13px;
  }

  .yz4-wrap{
    margin-top:12px;
  }

  .yz4-results-head{
    align-items:center;
  }

  .yz4-brand-text small{
    display:none;
  }

  .yz4-notice-card{
    padding:12px 14px;
    flex-direction:column;
    align-items:flex-start;
  }

  .yz4-notice-main{
    width:100%;
    align-items:flex-start;
  }

  .yz4-notice-copy{
    width:100%;
  }

  .yz4-page-hero,
  .yz4-order-query-card,
  .yz4-order-success,
  .yz4-order-summary,
  .yz4-card-secret,
  .yz4-collapse-card,
  .yz4-step-card,
  .yz4-contact-card,
  .yz4-article-card,
  .yz4-auth-card,
  .yz4-user-summary,
  .yz4-user-order-card{
    padding:22px 18px;
  }

  .yz4-category-list{
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:7px;
  }

  .yz4-user-statusbar{
    top:78px;
    padding:18px;
  }

  .yz4-user-status-track{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .yz4-user-stats-grid,
  .yz4-user-wallet-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .yz4-product-card{
    min-height:74px;
    padding:10px 11px;
  }

  .yz4-product-action{
    gap:8px;
    padding-left:6px;
  }

  .yz4-order-grid,
  .yz4-order-grid.compact,
  .yz4-order-grid-simple,
  .yz4-contact-grid,
  .yz4-order-insights{
    grid-template-columns:1fr;
  }

  .yz4-order-panel,
  .yz4-order-success-head,
  .yz4-order-success-main,
  .yz4-order-summary-head,
  .yz4-order-panel-head,
  .yz4-card-secret-head,
  .yz4-order-delivery-head,
  .yz4-user-order-main,
  .yz4-auth-head{
    flex-direction:column;
    align-items:flex-start;
  }

  .yz4-order-product-brief{
    flex-direction:column;
    align-items:flex-start;
  }

  .yz4-order-product-price{
    min-width:0;
    text-align:left;
  }

  .yz4-user-wallet-head,
  .yz4-user-orders-head{
    flex-direction:column;
    align-items:flex-start;
  }

  .yz4-user-order-modal-panel{
    width:min(100vw - 20px, 920px);
    margin:20px auto;
    padding:18px 16px;
    max-height:calc(100vh - 40px);
  }

  .yz4-order-delivery-panel .yz4-order-delivery-actions{
    width:100%;
    justify-content:flex-start;
  }

  .yz4-order-delivery-panel .yz4-primary-button,
  .yz4-order-delivery-panel .yz4-secondary-button,
  .yz4-order-footer-actions .yz4-primary-button,
  .yz4-order-footer-actions .yz4-secondary-button{
    min-width:0;
  }
}

@media (max-width: 560px){
  .yz4-home-layout{
    display:flex;
    flex-direction:column;
    gap:10px;
  }

  .yz4-home-main{
    display:contents;
  }

  .yz4-search-row{
    order:1;
  }

  .yz4-sidebar{
    order:2;
  }

  .yz4-product-list{
    order:3;
  }

  .yz4-order-panel{
    padding:22px 18px;
  }

  .yz4-order-grid-simple > div{
    min-height:0;
    padding:16px 16px 15px;
  }

  .yz4-order-grid-simple strong{
    font-size:16px;
  }

  .yz4-order-delivery-textarea-simple{
    min-height:220px;
    padding:16px;
  }

  .yz4-order-footer-actions{
    flex-direction:column;
    align-items:stretch;
  }

  .yz4-order-footer-actions .yz4-primary-button,
  .yz4-order-footer-actions .yz4-secondary-button{
    width:100%;
    justify-content:center;
  }

  body.ui4-body{
    background-image:
      radial-gradient(circle at top left, rgba(255,255,255,.72), rgba(255,255,255,0) 24%),
      linear-gradient(180deg, rgba(255,255,255,.54), rgba(245,245,248,.7));
    background-attachment:scroll,scroll;
  }

  body.ui4-body::before{
    background-attachment:scroll;
  }

  .yz4-header-inner{
    height:56px;
    min-height:56px;
    padding-top:10px;
    padding-bottom:10px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    row-gap:0;
  }

  .yz4-header-nav{
    width:auto;
    gap:8px;
    justify-content:flex-end;
    font-size:12px;
  }

  .yz4-header-nav a{
    flex:none;
    min-height:32px;
    padding:0 12px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    background:rgba(255,255,255,.84);
    border:1px solid rgba(0,0,0,.04);
    box-shadow:var(--yz4-shadow-sm);
  }

  .yz4-header-nav a.is-strong{
    background:var(--yz4-brand);
    color:#fff;
  }

  .yz4-brand{
    gap:10px;
  }

  .yz4-brand-text strong{
    font-size:14px;
  }

  .yz4-nav-desktop{
    display:none;
  }

  .yz4-nav-mobile{
    display:inline;
  }

  .yz4-wrap,
  .yz4-footer-inner{
    padding-left:14px;
    padding-right:14px;
  }

  .yz4-wrap{
    margin-top:10px;
    margin-bottom:42px;
  }

  .yz4-buy-page-view{
    width:100%;
    margin:10px auto 24px;
  }

  .yz4-buy-page-top{
    margin-bottom:10px;
    gap:10px;
  }

  .yz4-buy-page-links{
    gap:10px;
  }

  .yz4-results-head{
    display:none;
  }

  .yz4-notice-card{
    gap:7px;
    padding:11px 12px 10px;
  }

  .yz4-notice-main{
    width:100%;
    align-items:center;
    gap:8px;
    flex-direction:row;
  }

  .yz4-notice-copy{
    width:100%;
    gap:3px;
  }

  .yz4-notice-copy strong{
    font-size:13px;
  }

  .yz4-sidebar{
    padding:8px 0 2px;
    background:transparent;
    border:none;
    box-shadow:none;
    border-radius:0;
    top:auto;
  }

  .yz4-sidebar-title{
    margin-bottom:8px;
    padding:0;
  }

  .yz4-category-list{
    display:flex;
    flex-wrap:nowrap;
    gap:8px;
    overflow-x:auto;
    overflow-y:hidden;
    padding:0 2px 6px 0;
    scrollbar-width:none;
  }

  .yz4-category-list::-webkit-scrollbar{
    display:none;
  }

  .yz4-category-item{
    min-width:88px;
    min-height:58px;
    padding:10px 10px;
    border-radius:16px;
    align-items:center;
    box-shadow:0 8px 14px rgba(71,78,92,.05);
    background:linear-gradient(180deg, rgba(255,255,255,.9), rgba(249,250,252,.8));
  }

  .yz4-category-main{
    gap:7px;
  }

  .yz4-category-icon{
    width:16px;
    font-size:13px;
  }

  .yz4-category-copy strong{
    font-size:10.5px;
    line-height:1.25;
  }

  .yz4-category-copy small{
    display:none;
  }

  .yz4-category-count{
    min-width:22px;
    height:22px;
    padding:0 6px;
    font-size:9px;
  }

  .yz4-buy-page-panel{
    padding:18px 14px calc(112px + env(safe-area-inset-bottom));
    border-radius:20px;
  }

  .yz4-buy-page-panel .yz4-modal-stickybar{
    display:flex;
  }

  .yz4-buy-page-top .yz4-secondary-button{
    min-height:34px;
    padding:0 14px;
  }

  .yz4-buy-page-links .yz4-text-button{
    font-size:12px;
  }

  .yz4-buy-page-chips{
    gap:8px;
  }

  .yz4-buy-page-chip{
    min-height:28px;
    padding:0 10px;
    font-size:11px;
  }

  .yz4-notice-badge{
    width:auto;
    min-height:24px;
    padding:0 9px;
    border-radius:999px;
    font-size:11px;
    line-height:1;
  }

  .yz4-notice-text{
    font-size:12px;
    line-height:1.55;
  }

  .yz4-notice-link{
    margin-left:0;
    font-size:12px;
  }

  .yz4-inline-field,
  .yz4-captcha-row,
  .yz4-inline-actions,
  .yz4-user-summary{
    flex-direction:column;
    align-items:stretch;
  }

  .yz4-user-statusbar{
    top:68px;
    padding:0;
    background:transparent;
    border:none;
    box-shadow:none;
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
  }

  .yz4-user-status-track{
    display:flex;
    gap:10px;
    overflow-x:auto;
    padding:0 14px 8px;
    scrollbar-width:none;
  }

  .yz4-user-status-track::-webkit-scrollbar{
    display:none;
  }

  .yz4-user-status-item{
    min-width:172px;
    padding:14px;
    border-radius:16px;
    background:rgba(255,255,255,.72);
  }

  .yz4-user-status-actions{
    padding:0 14px;
    flex-wrap:nowrap;
    overflow-x:auto;
    scrollbar-width:none;
  }

  .yz4-user-status-actions::-webkit-scrollbar{
    display:none;
  }

  .yz4-user-status-actions .yz4-secondary-button{
    width:auto;
    white-space:nowrap;
  }

  .yz4-primary-button,
  .yz4-secondary-button{
    width:100%;
  }

  .yz4-buy-page-top .yz4-secondary-button{
    width:auto;
  }

  .yz4-modal-panel{
    position:absolute;
    inset:46px 0 0;
    max-width:none;
    max-height:none;
    margin:0;
    border-radius:18px 18px 0 0;
    padding:16px 14px calc(96px + env(safe-area-inset-bottom));
    background:rgba(255,255,255,.94);
  }

  .yz4-modal-stickybar{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:1400;
    margin:0;
    padding:12px 14px calc(12px + env(safe-area-inset-bottom));
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    background:linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(247,248,253,.98) 100%);
    border-top:1px solid rgba(0,0,0,.06);
    border-radius:18px 18px 0 0;
    box-shadow:0 -18px 36px rgba(17,17,17,.14);
  }

  .yz4-modal-sticky-side{
    justify-content:flex-end;
    gap:8px;
    margin-left:0;
  }

  .yz4-modal-sticky-home{
    display:none;
  }

  .yz4-modal-sticky-total{
    min-height:40px;
    padding:0 12px;
    border-radius:14px;
    font-size:18px;
  }

  .yz4-modal-sticky-copy{
    min-width:0;
    display:flex;
    flex-direction:column;
    flex:1;
    gap:3px;
  }

  .yz4-modal-sticky-copy strong{
    font-size:13px;
    line-height:1.25;
  }

  .yz4-modal-sticky-copy small{
    font-size:10.5px;
    line-height:1.4;
  }

  .yz4-modal-sticky-side .yz4-primary-button{
    width:104px;
    min-width:104px;
    height:40px;
    padding:0 14px;
    border-radius:14px;
    font-size:12px;
  }

  .yz4-buy-summary{
    display:none;
  }

  .yz4-buy-page-panel .yz4-buy-summary{
    display:flex;
    position:static;
    margin-top:2px;
    border-radius:22px;
    background:#fff;
    border:1px solid rgba(17,17,17,.06);
    box-shadow:0 14px 28px rgba(17,17,17,.05);
  }

  .yz4-buy-page-panel .yz4-summary-head{
    display:none;
  }

  .yz4-buy-page-panel .yz4-summary-body{
    display:flex;
    flex-direction:column;
    gap:14px;
    width:100%;
    padding:16px;
  }

  .yz4-buy-page-panel .yz4-summary-item{
    display:none;
  }

  .yz4-buy-page-panel .yz4-summary-item.total{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    padding:0;
    border:0;
    background:transparent;
  }

  .yz4-buy-page-panel .yz4-summary-item.total span{
    font-size:12px;
    color:var(--yz4-text-sub);
  }

  .yz4-buy-page-panel .yz4-summary-item.total strong{
    text-align:right;
    font-size:34px;
  }

  .yz4-buy-page-panel .yz4-summary-body .yz4-primary-button{
    margin-top:0;
    min-height:52px;
    border-radius:18px;
    font-size:18px;
  }

  .yz4-modal-head{
    flex-direction:column;
    gap:14px;
    align-items:stretch;
    padding-right:0;
  }

  .yz4-modal-media{
    width:100%;
    height:auto;
    aspect-ratio:1/1;
    border-radius:24px;
  }

  .yz4-modal-copy h3{
    margin-bottom:6px;
    font-size:22px;
  }

  .yz4-modal-copy p:last-child{
    font-size:12px;
    line-height:1.6;
  }

  .yz4-modal-price-row{
    margin-top:8px;
    gap:8px;
  }

  .yz4-modal-price-row strong{
    font-size:34px;
  }

  .yz4-modal-price-row span{
    font-size:12px;
  }

  .yz4-modal-price-row em{
    min-height:24px;
    padding:0 8px;
    font-size:11px;
  }

  .yz4-modal-grid{
    margin-top:16px;
    gap:16px;
  }

  .yz4-form-stack{
    gap:16px;
  }

  .yz4-form-row{
    gap:10px;
  }

  .yz4-field-head{
    align-items:flex-end;
  }

  .yz4-field-hint{
    font-size:11px;
    white-space:normal;
    text-align:right;
  }

  .yz4-form-row label{
    font-size:16px;
    font-weight:800;
  }

  .yz4-form-row input,
  .yz4-form-row textarea{
    min-height:50px;
    padding:0 16px;
    border-radius:16px;
    font-size:16px;
  }

  .yz4-form-row textarea{
    min-height:116px;
    padding:14px 16px;
  }

  .yz4-qty-shell{
    border-radius:16px;
  }

  .yz4-qty-button{
    width:40px;
    height:40px;
    border-radius:12px;
  }

  .yz4-qty-row input{
    font-size:20px;
  }

  .yz4-pay-list{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }

  .yz4-pay-item{
    min-height:54px;
    padding:12px 14px;
    border-radius:16px;
  }

  .yz4-pay-copy span{
    font-size:14px;
  }

  .yz4-pay-copy small{
    display:none;
  }

  .yz4-buy-page-panel .yz4-modal-stickybar{
    display:none !important;
  }

  .yz4-buy-page-detail-card{
    margin-top:18px;
    padding:18px 16px 16px;
    border-radius:22px;
  }

  .yz4-buy-page-detail-head h4{
    font-size:18px;
  }

  .yz4-form-row textarea{
    min-height:100px;
    padding:10px 12px;
  }

  .yz4-inline-field,
  .yz4-qty-row,
  .yz4-captcha-row{
    gap:8px;
  }

  .yz4-qty-button{
    width:36px;
    height:36px;
    border-radius:12px;
    font-size:16px;
  }

  .yz4-qty-row input{
    width:56px;
    font-size:18px;
  }

  .yz4-qty-shell{
    width:100%;
    justify-content:space-between;
    padding:5px;
  }

  .yz4-pay-list{
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:8px;
  }

  .yz4-pay-item{
    min-height:48px;
    padding:9px 10px;
    border-radius:14px;
  }

  .yz4-pay-icon{
    width:24px;
    height:24px;
    border-radius:8px;
    font-size:11px;
  }

  .yz4-pay-copy span{
    font-size:13px;
  }

  .yz4-pay-copy small{
    font-size:11px;
  }

  .yz4-buy-note{
    padding:10px 12px;
    font-size:12px;
    line-height:1.7;
  }

  .yz4-buy-detail{
    max-height:160px;
    padding:12px 14px;
    border-radius:14px;
    font-size:12px;
    line-height:1.75;
  }

  .yz4-captcha-row img{
    width:98px;
    height:38px;
    border-radius:10px;
  }

  .yz4-results-head{
    align-items:flex-start;
    gap:6px;
    padding:0 1px 2px;
    flex-direction:column;
  }

  .yz4-results-copy h2{
    font-size:17px;
  }

  .yz4-results-copy p:last-child{
    font-size:11px;
  }

  .yz4-results-count{
    min-width:60px;
    min-height:28px;
    padding:0 10px;
    font-size:11px;
    align-self:flex-start;
  }

  .yz4-user-stats-grid,
  .yz4-user-wallet-grid{
    grid-template-columns:1fr;
  }

  .yz4-search-box{
    height:48px;
    padding:0 6px 0 14px;
    gap:10px;
    background:rgba(255,255,255,.9);
  }

  .yz4-search-button{
    width:78px;
    height:36px;
    min-height:36px;
    padding:0 10px;
    font-size:12px;
    border-radius:12px;
  }

  .yz4-search-icon{
    width:16px;
    height:16px;
  }

  .yz4-search-icon::before{
    width:10px;
    height:10px;
    border-width:2px;
  }

  .yz4-search-icon::after{
    width:6px;
  }

  .yz4-product-card{
    display:grid;
    grid-template-columns:42px minmax(0,1fr);
    column-gap:9px;
    row-gap:7px;
    padding:10px 11px;
    min-height:auto;
    border-radius:14px;
    background:rgba(255,255,255,.9);
  }

  .yz4-product-action{
    grid-column:1 / -1;
    width:100%;
    padding-left:0;
    display:grid;
    grid-template-columns:minmax(0,1fr) 74px;
    align-items:center;
    gap:8px;
    padding-top:7px;
    border-top:1px solid rgba(0,0,0,.05);
  }

  .yz4-product-media{
    width:42px;
    height:42px;
    margin-right:0;
    border-radius:10px;
  }

  .yz4-product-info h3{
    font-size:12px;
    line-height:1.25;
  }

  .yz4-product-meta{
    display:grid;
    grid-template-columns:1fr;
    gap:4px;
    font-size:10px;
    line-height:1.3;
  }

  .yz4-product-summary{
    width:100%;
    white-space:normal;
    line-height:1.35;
  }

  .yz4-stock-pill{
    justify-self:flex-start;
    font-size:9.5px;
  }

  .yz4-product-price{
    min-width:0;
    text-align:left;
    font-size:15px;
    align-self:center;
  }

  .yz4-product-price span{
    font-size:10px;
  }

  .yz4-buy-button,
  .yz4-search-button{
    min-width:0;
  }

  .yz4-buy-button{
    width:74px;
    height:30px;
    padding:0 10px;
    border-radius:10px;
    font-size:11px;
    white-space:nowrap;
    justify-self:end;
  }
}

@media (max-width: 420px){
  .yz4-wrap,
  .yz4-footer-inner{
    padding-left:12px;
    padding-right:12px;
  }

  .yz4-category-list{
    padding-left:0;
    padding-right:0;
    gap:6px;
  }

  .yz4-category-item{
    min-width:84px;
    min-height:48px;
    padding:8px 9px;
    border-radius:14px;
  }

  .yz4-category-main{
    gap:6px;
  }

  .yz4-category-icon{
    width:14px;
    font-size:12px;
  }

  .yz4-category-count{
    min-width:18px;
    height:18px;
    font-size:8.5px;
  }

  .yz4-modal-panel{
    inset:42px 0 0;
    padding:15px 12px calc(92px + env(safe-area-inset-bottom));
  }

  .yz4-modal-stickybar{
    padding:10px 12px calc(10px + env(safe-area-inset-bottom));
    gap:10px;
  }

  .yz4-modal-sticky-copy strong{
    font-size:12px;
  }

  .yz4-modal-sticky-copy small{
    font-size:9px;
  }

  .yz4-modal-sticky-side{
    gap:8px;
  }

  .yz4-modal-sticky-home{
    display:none;
  }

  .yz4-modal-sticky-total{
    min-height:36px;
    padding:0 10px;
    font-size:16px;
  }

  .yz4-modal-sticky-side .yz4-primary-button{
    width:92px;
    min-width:92px;
    height:36px;
    font-size:11px;
  }

  .yz4-product-card{
    grid-template-columns:40px minmax(0,1fr);
    column-gap:8px;
    padding:9px;
  }

  .yz4-product-media{
    width:40px;
    height:40px;
  }

  .yz4-product-action{
    grid-template-columns:minmax(0,1fr) 72px;
    gap:6px;
  }

  .yz4-buy-button{
    width:72px;
    height:30px;
    font-size:10.5px;
  }

  .yz4-product-info h3{
    font-size:11.5px;
  }
}

@media (max-width: 1100px){
  .yz4-member-shell{
    grid-template-columns:1fr;
    gap:14px;
  }

  .yz4-member-sidebar{
    position:static;
    top:auto;
  }

  .yz4-member-sidebar-actions{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }

  .yz4-member-sidebar-actions .yz4-primary-button{
    grid-column:auto;
  }

  .yz4-member-overview-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .yz4-account-hero{
    grid-template-columns:1fr;
  }

  .yz4-upgrade-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .yz4-member-record-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 820px){
  .yz4-member-page{
    gap:14px;
  }

  .yz4-member-shell{
    gap:14px;
  }

  .yz4-member-sidebar{
    padding:16px 14px;
    border-radius:18px;
  }

  .yz4-member-sidebar-top h1{
    font-size:22px;
  }

  .yz4-member-sidebar-stats{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .yz4-member-nav{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }

  .yz4-member-nav-item{
    min-height:38px;
    text-align:center;
    font-size:12px;
  }

  .yz4-member-sidebar-actions{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .yz4-member-panel{
    padding:16px 14px;
    border-radius:18px;
  }

  .yz4-member-panel-head{
    flex-direction:column;
    align-items:stretch;
  }

  .yz4-member-panel-side{
    align-items:flex-start;
  }

  .yz4-member-overview-grid,
  .yz4-upgrade-grid,
  .yz4-member-form-grid,
  .yz4-member-mini-stats{
    grid-template-columns:1fr;
  }

  .yz4-member-record-grid{
    grid-template-columns:1fr;
  }

  .yz4-member-pay-list,
  .yz4-member-type-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 560px){
  .yz4-member-page{
    gap:12px;
  }

  .yz4-member-sidebar{
    padding:12px 10px;
    gap:10px;
    border-radius:16px;
  }

  .yz4-member-sidebar-profile{
    padding:10px;
    border-radius:14px;
  }

  .yz4-member-avatar{
    width:38px;
    height:38px;
    border-radius:12px;
    font-size:15px;
  }

  .yz4-member-sidebar-highlight{
    padding:11px 10px 12px;
    border-radius:14px;
  }

  .yz4-member-sidebar-highlight strong{
    font-size:16px;
  }

  .yz4-member-sidebar-stats{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px;
  }

  .yz4-member-sidebar-stat{
    padding:8px 6px;
    border-radius:12px;
  }

  .yz4-member-sidebar-stat strong{
    font-size:13px;
  }

  .yz4-member-nav{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:6px;
  }

  .yz4-member-panel{
    padding:12px 10px;
    border-radius:16px;
  }

  .yz4-member-panel-head h2{
    font-size:18px;
  }

  .yz4-member-hero-card,
  .yz4-member-overview-card,
  .yz4-member-mini-card,
  .yz4-upgrade-card,
  .yz4-member-inner-card,
  .yz4-member-record-card{
    padding:12px 10px;
    border-radius:14px;
  }

  .yz4-member-hero-card > strong,
  .yz4-upgrade-price{
    font-size:18px;
  }

  .yz4-account-hero{
    padding:12px 10px;
    border-radius:14px;
  }

  .yz4-account-hero-copy strong{
    font-size:19px;
  }

  .yz4-account-hero-balance strong{
    font-size:21px;
  }

  .yz4-member-hero-meta{
    grid-template-columns:1fr;
  }

  .yz4-member-mini-card strong,
  .yz4-member-overview-card strong{
    font-size:18px;
  }

  .yz4-user-order-filters{
    width:100%;
    overflow-x:auto;
    flex-wrap:nowrap;
    padding-bottom:2px;
    scrollbar-width:none;
  }

  .yz4-user-order-filters::-webkit-scrollbar{
    display:none;
  }

  .yz4-filter-chip{
    white-space:nowrap;
  }
}

@media (max-width: 420px){
  .yz4-member-sidebar-stats{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .yz4-member-nav{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:6px;
  }

  .yz4-member-nav-item{
    min-height:36px;
    padding:0 9px;
    border-radius:12px;
    font-size:11px;
  }

  .yz4-member-nav-item small{
    display:none;
  }

  .yz4-member-sidebar-actions{
    grid-template-columns:1fr;
  }

  .yz4-member-sidebar-actions .yz4-primary-button{
    grid-column:auto;
  }

  .yz4-member-panel{
    padding:10px 9px;
  }

  .yz4-member-panel-head h2{
    font-size:17px;
  }

  .yz4-member-hero-card > strong,
  .yz4-upgrade-price,
  .yz4-member-overview-card strong,
  .yz4-member-mini-card strong{
    font-size:17px;
  }
}

@media (max-width: 560px){
  .yz4-wrap{
    margin-top:10px;
    margin-bottom:30px;
    padding-left:10px;
    padding-right:10px;
  }

  .yz4-home-layout{
    gap:10px;
  }

  .yz4-home-main,
  .yz4-search-row,
  .yz4-sidebar,
  .yz4-product-list{
    width:100%;
  }

  .yz4-notice-card{
    margin-bottom:0;
    padding:12px 14px;
    gap:10px;
    border-radius:18px;
    box-shadow:0 10px 20px rgba(71,78,92,.05);
  }

  .yz4-notice-main{
    align-items:flex-start;
    gap:8px;
  }

  .yz4-notice-copy{
    gap:2px;
  }

  .yz4-notice-copy strong{
    font-size:13px;
    line-height:1.35;
  }

  .yz4-notice-text{
    font-size:11px;
    line-height:1.55;
  }

  .yz4-notice-link{
    min-height:30px;
    padding:0 10px;
    font-size:11px;
    border-radius:999px;
    box-shadow:none;
  }

  .yz4-search-row{
    order:2;
    margin-top:0;
    margin-left:0;
    margin-right:0;
  }

  .yz4-search-box{
    width:100%;
    height:44px;
    padding:0 5px 0 12px;
    gap:8px;
    border-radius:16px;
    background:linear-gradient(180deg, rgba(255,255,255,.48), rgba(248,250,252,.34));
    border:1px solid rgba(255,255,255,.44);
    box-shadow:0 6px 14px rgba(71,78,92,.035);
  }

  .yz4-search-input{
    font-size:12.5px;
  }

  .yz4-search-button{
    width:70px;
    height:32px;
    min-width:70px;
    padding:0 9px;
    border-radius:11px;
    background:linear-gradient(180deg, rgba(255,255,255,.72), rgba(244,246,249,.64));
    color:rgba(17,17,17,.52);
    box-shadow:0 5px 10px rgba(71,78,92,.045);
    font-size:11.5px;
  }

  .yz4-search-button:hover{
    background:linear-gradient(180deg, rgba(255,255,255,.8), rgba(246,248,250,.72));
    color:rgba(17,17,17,.66);
    box-shadow:0 7px 12px rgba(71,78,92,.06);
  }

  .yz4-sidebar{
    order:1;
    padding:0;
    border:none;
    background:transparent;
    box-shadow:none;
  }

  .yz4-sidebar-title{
    display:none;
  }

  .yz4-sidebar-mobile-title{
    display:flex;
    margin:4px 0 12px;
    padding:0 2px 0 4px;
    color:var(--yz4-text);
    font-size:13px;
    font-weight:800;
    line-height:1.2;
    letter-spacing:.02em;
  }

  .yz4-category-list{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:7px;
    overflow:visible;
    padding:2px 0 4px;
  }

  .yz4-category-list::-webkit-scrollbar{
    display:none;
  }

  .yz4-category-item{
    min-width:0;
    min-height:48px;
    padding:8px 7px;
    border-radius:16px;
    justify-content:center;
    background:linear-gradient(180deg, rgba(255,255,255,.9), rgba(248,249,252,.82));
    box-shadow:0 6px 12px rgba(71,78,92,.035);
  }

  .yz4-category-item.is-active{
    background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(245,247,250,.9));
    border-color:rgba(89,101,125,.1);
    box-shadow:0 10px 18px rgba(71,78,92,.07);
  }

  .yz4-category-item.is-active::before{
    display:none;
  }

  .yz4-category-main{
    width:100%;
    gap:5px;
    justify-content:center;
  }

  .yz4-category-icon{
    width:14px;
    font-size:12px;
  }

  .yz4-category-copy{
    gap:0;
    align-items:center;
  }

  .yz4-category-copy strong{
    font-size:10px;
    line-height:1.2;
    text-align:center;
  }

  .yz4-category-copy small{
    display:none;
  }

  .yz4-category-count{
    display:none;
  }

  .yz4-category-item.is-empty{
    display:none;
  }

  .yz4-product-list{
    order:3;
    gap:6px;
    margin-left:0;
    margin-right:0;
  }

  .yz4-product-card{
    width:100%;
    display:grid;
    grid-template-columns:40px minmax(0,1fr) 82px;
    column-gap:9px;
    row-gap:2px;
    align-items:center;
    min-height:64px;
    padding:8px 10px;
    border-radius:12px;
    background:rgba(255,255,255,.86);
    border:1px solid rgba(89,101,125,.07);
    box-shadow:0 4px 10px rgba(71,78,92,.025);
  }

  .yz4-product-media{
    width:40px;
    height:40px;
    margin-right:0;
    border-radius:10px;
    grid-row:1 / span 2;
  }

  .yz4-product-info{
    align-self:center;
    gap:2px;
  }

  .yz4-product-info h3{
    font-size:11.5px;
    line-height:1.28;
  }

  .yz4-product-meta{
    display:flex;
    flex-direction:column;
    gap:2px;
    align-items:flex-start;
    font-size:9px;
  }

  .yz4-product-summary{
    max-width:none;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    line-height:1.3;
  }

  .yz4-stock-pill{
    font-size:8.5px;
  }

  .yz4-product-action{
    grid-column:3;
    grid-row:1 / span 2;
    width:82px;
    min-width:82px;
    padding:0;
    border-top:none;
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    justify-content:center;
    gap:5px;
  }

  .yz4-product-price{
    min-width:0;
    text-align:right;
    font-size:13px;
    line-height:1;
  }

  .yz4-product-price span{
    font-size:8px;
  }

  .yz4-buy-button{
    width:64px;
    min-width:64px;
    height:26px;
    padding:0 8px;
    border-radius:9px;
    background:linear-gradient(180deg, #525968, #404653);
    box-shadow:0 6px 12px rgba(64,70,83,.14);
    color:rgba(255,255,255,.84);
    font-size:10px;
    justify-self:auto;
  }

  .yz4-buy-button:hover{
    background:linear-gradient(180deg, #4A5160, #3B414D);
    box-shadow:0 8px 14px rgba(59,65,77,.16);
  }
}

@media (max-width: 420px){
  .yz4-wrap{
    padding-left:8px;
    padding-right:8px;
  }

  .yz4-notice-card{
    padding:11px 12px;
    border-radius:16px;
  }

  .yz4-search-box{
    height:42px;
    padding:0 5px 0 12px;
  }

  .yz4-search-button{
    width:66px;
    min-width:66px;
    height:30px;
    font-size:10.5px;
  }

  .yz4-category-list{
    gap:6px;
  }

  .yz4-sidebar-mobile-title{
    margin:4px 0 9px;
    font-size:12px;
  }

  .yz4-category-item{
    min-height:44px;
    padding:7px 6px;
    border-radius:14px;
  }

  .yz4-category-copy strong{
    font-size:9px;
  }

  .yz4-product-card{
    grid-template-columns:38px minmax(0,1fr) 74px;
    column-gap:9px;
    row-gap:3px;
    min-height:58px;
    padding:7px 8px;
    border-radius:11px;
  }

  .yz4-product-media{
    width:38px;
    height:38px;
    border-radius:9px;
  }

  .yz4-product-info h3{
    font-size:11px;
  }

  .yz4-product-meta{
    gap:2px;
  }

  .yz4-product-price{
    font-size:12px;
  }

  .yz4-buy-button{
    width:60px;
    min-width:60px;
    height:24px;
    padding:0 8px;
    color:rgba(255,255,255,.84);
    font-size:9px;
  }
}

@media (max-width: 560px){
  .yz4-notice-card{
    margin-bottom:6px;
    padding:13px 14px 13px;
    border-radius:18px;
  }

  .yz4-notice-head{
    margin-bottom:0;
  }

  .yz4-notice-badge{
    min-height:24px;
    padding:0 11px;
    font-size:11px;
    letter-spacing:.05em;
  }

  .yz4-notice-divider{
    margin:10px 0 8px;
  }

  .yz4-notice-body{
    min-height:0;
    padding:0;
  }

  .yz4-notice-body.has-media{
    padding-right:42px;
  }

  .yz4-notice-media{
    top:0;
    right:0;
    width:28px;
    height:28px;
    border-radius:9px;
  }

  .yz4-notice-content{
    font-size:11.5px;
    line-height:1.72;
  }

  .yz4-notice-content p,
  .yz4-notice-content div,
  .yz4-notice-content ul,
  .yz4-notice-content ol,
  .yz4-notice-content blockquote{
    margin-bottom:6px;
  }
}

@media (max-width: 420px){
  .yz4-notice-card{
    padding:12px 12px 11px;
    border-radius:16px;
  }

  .yz4-notice-head{
    margin-bottom:0;
  }

  .yz4-notice-badge{
    min-height:23px;
    padding:0 10px;
    font-size:10.5px;
  }

  .yz4-notice-divider{
    margin:9px 0 7px;
  }

  .yz4-notice-body{
    padding:0;
  }

  .yz4-notice-body.has-media{
    padding-right:38px;
  }

  .yz4-notice-media{
    width:26px;
    height:26px;
    border-radius:8px;
  }

  .yz4-notice-content{
    font-size:11px;
    line-height:1.68;
  }
}

/* Mobile category cards */
@media (max-width: 1100px){
  .yz4-sidebar{
    padding:8px 0 2px;
    background:transparent;
    border:none;
    box-shadow:none;
    border-radius:0;
    top:auto;
  }

  .yz4-sidebar-title{
    display:none;
  }

  .yz4-sidebar-mobile-title{
    display:flex;
    margin:4px 0 10px;
    padding:0 2px 0 4px;
    color:var(--yz4-text);
    font-size:13px;
    font-weight:800;
    line-height:1.2;
    letter-spacing:.02em;
  }

  .yz4-category-list{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:8px;
    overflow:visible;
    padding:2px 0 6px;
  }

  .yz4-category-list::-webkit-scrollbar{
    display:none;
  }

  .yz4-category-item,
  .yz4-category-item{
    position:relative;
    width:100%;
    min-width:0;
    min-height:82px;
    padding:6px 4px 8px;
    display:flex;
    align-items:flex-start;
    justify-content:center;
    border:none;
    border-radius:16px;
    background:transparent;
    box-shadow:none;
  }

  .yz4-category-list:not(.ui4-hide-cat-icon-mobile) .yz4-category-icon{
    display:inline-flex;
  }

  .yz4-category-item.is-active{
    background:rgba(255,255,255,.32);
    box-shadow:inset 0 0 0 1px rgba(89,101,125,.08);
  }

  .yz4-category-item.is-active::before{
    display:none;
  }

  .yz4-category-main{
    width:100%;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    gap:6px;
  }

  .yz4-category-icon{
    width:40px;
    height:40px;
    border-radius:14px;
    font-size:18px;
  }

  .yz4-category-icon.is-image{
    width:40px;
    height:40px;
    border-radius:14px;
    box-shadow:0 6px 14px rgba(71,78,92,.06);
  }

  .yz4-category-icon.is-generated{
    border:none;
    box-shadow:0 6px 14px rgba(71,78,92,.08);
  }

  .yz4-category-icon.is-generated::before{
    opacity:.72;
  }

  .yz4-category-icon-all{
    background:linear-gradient(180deg, rgba(89,101,125,.09), rgba(89,101,125,.03));
    box-shadow:inset 0 0 0 1px rgba(89,101,125,.06);
  }

  .yz4-category-icon-all-text{
    font-size:8.5px;
    letter-spacing:.04em;
  }

  .yz4-category-copy{
    width:100%;
    align-items:center;
    justify-content:center;
    gap:0;
  }

  .yz4-category-copy strong{
    font-size:10px;
    line-height:1.28;
    text-align:center;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    min-height:24px;
  }

  .yz4-category-copy small{
    display:none;
  }

  .yz4-category-icon-text{
    padding:0 4px;
    letter-spacing:.02em;
    white-space:nowrap;
    writing-mode:horizontal-tb;
    text-orientation:mixed;
  }

  .yz4-category-icon-text[data-length="1"]{
    font-size:17px;
  }

  .yz4-category-icon-text[data-length="2"]{
    font-size:12px;
  }

  .yz4-category-list.ui4-hide-cat-icon-mobile .yz4-category-item{
    min-height:46px;
    padding:5px 4px 6px;
    border-radius:14px;
    border:1px solid rgba(89,101,125,.06);
    background:linear-gradient(180deg, rgba(255,255,255,.86), rgba(248,249,252,.72));
    box-shadow:0 4px 10px rgba(71,78,92,.03);
    align-items:center;
    justify-content:center;
  }

  .yz4-category-list.ui4-hide-cat-icon-mobile .yz4-category-item.is-active{
    background:linear-gradient(180deg, rgba(255,255,255,.94), rgba(245,247,250,.82));
    border-color:rgba(89,101,125,.1);
    box-shadow:0 8px 16px rgba(71,78,92,.05);
  }

  .yz4-category-list.ui4-hide-cat-icon-mobile .yz4-category-main{
    height:100%;
    justify-content:center;
    align-items:center;
    gap:0;
  }

  .yz4-category-list.ui4-hide-cat-icon-mobile .yz4-category-copy{
    width:100%;
    align-items:center;
    justify-content:center;
  }

  .yz4-category-list.ui4-hide-cat-icon-mobile .yz4-category-copy strong{
    min-height:auto;
    white-space:normal;
    font-size:9.5px;
    line-height:1.25;
    text-align:center;
    width:100%;
  }
}

@media (max-width: 420px){
  .yz4-category-list{
    gap:7px;
  }

  .yz4-category-item{
    min-height:76px;
    padding:6px 4px 8px;
  }

  .yz4-category-icon,
  .yz4-category-icon.is-image{
    width:36px;
    height:36px;
    border-radius:13px;
  }

  .yz4-category-copy strong{
    font-size:9.5px;
    min-height:22px;
  }

  .yz4-category-icon-all-text{
    font-size:8px;
  }

  .yz4-category-list.ui4-hide-cat-icon-mobile .yz4-category-item{
    min-height:44px;
    padding:4px 3px 5px;
    border-radius:13px;
  }
}

@media (max-width: 560px){
  .yz4-buy-page-panel{
    padding:16px 14px 18px;
    border-radius:20px;
    background:#fff;
    box-shadow:none;
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
  }

  .yz4-buy-page-hero{
    gap:12px;
    padding-bottom:14px;
    border-bottom:1px solid rgba(17,17,17,.06);
  }

  .yz4-modal-head{
    flex-direction:column;
    align-items:stretch;
    gap:14px;
  }

  .yz4-modal-media{
    width:100%;
    height:auto;
    aspect-ratio:1/1;
    border-radius:20px;
    box-shadow:none;
  }

  .yz4-modal-copy h3{
    margin-bottom:4px;
    font-size:20px;
  }

  .yz4-modal-price-row{
    margin-top:8px;
    gap:8px;
  }

  .yz4-modal-price-row strong{
    font-size:30px;
  }

  .yz4-buy-page-chips{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }

  .yz4-buy-page-chip{
    min-height:40px;
    padding:10px 12px;
    border-radius:14px;
    justify-content:flex-start;
    background:#f8f9fc;
    box-shadow:none;
    font-size:11px;
  }

  .yz4-modal-grid{
    display:block;
    margin-top:14px;
  }

  .yz4-buy-page-panel .yz4-buy-summary{
    display:none !important;
  }

  .yz4-form-row{
    padding:14px 0 12px;
    border:0;
    border-bottom:1px solid rgba(17,17,17,.08);
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }

  .yz4-form-row:last-of-type{
    border-bottom:0;
    padding-bottom:0;
  }

  .yz4-form-row label{
    font-size:13px;
    font-weight:700;
  }

  .yz4-form-row input,
  .yz4-form-row textarea{
    border-radius:12px;
    background:#fafbfc;
    border:1px solid var(--yz4-border);
  }

  .yz4-qty-shell{
    width:172px;
    max-width:100%;
    padding:4px;
    border-radius:14px;
    background:#fafbfc;
    border:1px solid var(--yz4-border);
  }

  .yz4-pay-list{
    grid-template-columns:1fr;
    gap:8px;
  }

  .yz4-pay-item{
    min-height:48px;
    padding:10px 12px;
    border-radius:14px;
    box-shadow:none;
  }

  .yz4-pay-copy span{
    font-size:12.5px;
  }

  .yz4-pay-copy small{
    display:none;
  }

  .yz4-buy-note{
    margin-top:12px;
    padding:12px 14px;
    border-radius:14px;
    background:#f8f9fc;
    border:1px solid rgba(17,17,17,.06);
  }

  .yz4-buy-submit-inline{
    margin-top:14px;
    min-height:48px;
    border-radius:14px;
    font-size:15px;
  }

  .yz4-buy-page-panel .yz4-modal-stickybar{
    display:none !important;
  }

  .yz4-buy-page-detail-card{
    margin-top:16px;
    padding:16px 14px;
    border-radius:18px;
    box-shadow:none;
    background:#fff;
  }
}

@media (max-width: 560px){
  .yz4-buy-page-links{
    display:none !important;
  }

  .yz4-buy-page-top .yz4-secondary-button{
    min-height:30px;
    padding:0 12px;
    border-radius:999px;
    font-size:11.5px;
    font-weight:700;
    background:rgba(255,255,255,.82);
    border:1px solid rgba(89,101,125,.08);
    box-shadow:none;
  }

  .yz4-buy-page-panel{
    padding:14px 14px 16px;
    border-radius:20px;
    background:rgba(255,255,255,.82);
    border:1px solid rgba(89,101,125,.07);
    box-shadow:0 8px 20px rgba(71,78,92,.04);
  }

  .yz4-buy-page-hero{
    gap:8px;
    padding-bottom:10px;
    border-bottom:1px solid rgba(89,101,125,.06);
  }

  .yz4-modal-head{
    display:block;
  }

  .yz4-modal-media{
    display:none !important;
  }

  .yz4-modal-copy{
    display:flex;
    flex-direction:column;
    gap:4px;
  }

  .yz4-modal-copy h3{
    margin-bottom:0;
    font-size:18px;
    line-height:1.35;
    letter-spacing:-.02em;
  }

  .yz4-modal-price-row{
    gap:7px;
    margin-top:2px;
  }

  .yz4-modal-price-row strong{
    font-size:26px;
  }

  .yz4-modal-price-row span{
    font-size:10.5px;
  }

  .yz4-modal-price-row em{
    display:none;
  }

  .yz4-buy-page-chips{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }

  .yz4-buy-page-chip{
    min-height:40px;
    padding:10px 12px;
    border-radius:14px;
    background:#f8f9fc;
    border:1px solid rgba(89,101,125,.05);
    box-shadow:none;
    color:#6d778c;
    font-size:11px;
    font-weight:600;
    line-height:1.3;
    justify-content:flex-start;
  }

  .yz4-buy-page-chip.is-delivery{
    color:#52a36c;
    background:rgba(77,201,126,.08);
  }

  .yz4-buy-page-chip.is-sales{
    color:#7a82d4;
    background:rgba(109,123,255,.08);
  }

  .yz4-buy-page-chip.is-stock{
    color:#4f9164;
    background:rgba(86,177,119,.08);
  }

  .yz4-buy-page-chip.is-coupon{
    display:none;
  }

  .yz4-form-row{
    gap:7px;
    padding:10px 0;
    border-bottom:1px solid rgba(89,101,125,.08);
  }

  .yz4-form-row label{
    font-size:12px;
    font-weight:700;
    color:rgba(17,17,17,.72);
  }

  .yz4-form-row input,
  .yz4-form-row textarea{
    min-height:40px;
    padding:0 12px;
    border-radius:11px;
    border:1px solid rgba(89,101,125,.1);
    background:rgba(255,255,255,.74);
    box-shadow:none;
    font-size:13.5px;
  }

  .yz4-form-row textarea{
    min-height:82px;
    padding:12px 13px;
  }

  .yz4-inline-field,
  .yz4-captcha-row{
    flex-direction:row;
    align-items:center;
    gap:8px;
  }

  .yz4-inline-field .yz4-secondary-button{
    width:auto;
    min-height:36px;
    padding:0 11px;
    border-radius:10px;
    font-size:11.5px;
    flex:0 0 auto;
  }

  .yz4-qty-shell{
    width:126px;
    max-width:none;
    padding:3px;
    border-radius:999px;
    background:rgba(255,255,255,.74);
    border:1px solid rgba(89,101,125,.1);
    box-shadow:none;
  }

  .yz4-qty-button{
    width:30px;
    height:30px;
    border-radius:999px;
    border:0;
    background:linear-gradient(180deg, rgba(255,125,166,.18), rgba(255,99,140,.28));
    color:#e76596;
    font-size:14px;
    font-weight:800;
    box-shadow:none;
  }

  .yz4-qty-row input{
    width:52px;
    min-height:30px;
    padding:0;
    font-size:15px;
    font-weight:700;
  }

  .yz4-pay-list{
    grid-template-columns:1fr;
    gap:8px;
  }

  .yz4-pay-item{
    min-height:38px;
    padding:7px 10px;
    gap:7px;
    border-radius:999px;
    border:1px solid rgba(89,101,125,.08);
    background:rgba(255,255,255,.78);
    box-shadow:none;
  }

  .yz4-pay-icon{
    width:18px;
    height:18px;
    border-radius:6px;
    font-size:10px;
  }

  .yz4-pay-copy span{
    font-size:11.5px;
    font-weight:700;
    white-space:nowrap;
  }

  .yz4-pay-copy small{
    display:none !important;
  }

  .yz4-pay-check{
    display:none;
  }

  .yz4-pay-item.is-active{
    border-color:rgba(89,101,125,.16);
    background:rgba(255,255,255,.95);
    box-shadow:0 6px 14px rgba(71,78,92,.04);
  }

  .yz4-buy-note{
    margin-top:10px;
    padding:0;
    border-radius:0;
    background:transparent;
    border:0;
    color:rgba(17,17,17,.5);
    font-size:11px;
    line-height:1.7;
  }

  .yz4-buy-submit-inline{
    margin-top:12px;
    min-height:42px;
    border-radius:14px;
    font-size:13px;
    box-shadow:0 8px 18px rgba(89,101,125,.12);
  }

  .yz4-buy-page-detail-card{
    margin-top:14px;
    padding:14px 0 0;
    border-radius:0;
    background:transparent;
    border:0;
    border-top:1px solid rgba(89,101,125,.06);
  }

  .yz4-buy-page-detail-head{
    gap:8px;
    margin-bottom:10px;
  }

  .yz4-buy-page-detail-head span{
    width:6px;
    height:6px;
    border-radius:999px;
    background:rgba(89,101,125,.34);
  }

  .yz4-buy-page-detail-head h4{
    font-size:14px;
    font-weight:800;
  }

  .yz4-buy-detail{
    max-height:none;
    margin:0;
    padding:0;
    font-size:12.5px;
    line-height:1.9;
  }
}

@media (max-width:768px){
  input,
  textarea,
  select{
    font-size:16px !important;
  }
}

/* ===== ref style block 7 ===== */
/* ==========================================================================
   独角模板（Dujiao）— 视觉还原 Dujiao-Next 前台
   设计变量取自 Dujiao-Next 线上主题；业务组件沿用 UI4 结构，在这里统一换肤。
   ========================================================================== */

:root{
  --ui-bg-page:#f5f5f7;
  --ui-bg-elevated:#fff;
  --ui-bg-soft:#f2f2f4;
  --ui-bg-muted:#ececf0;
  --ui-bg-overlay:rgba(255,255,255,.8);
  --ui-bg-overlay-strong:rgba(255,255,255,.92);
  --ui-text-primary:#1d1d1f;
  --ui-text-secondary:#424245;
  --ui-text-muted:#6e6e73;
  --ui-text-on-accent:#fff;
  --ui-border:rgba(0,0,0,.12);
  --ui-border-strong:rgba(0,0,0,.2);
  --ui-accent:#0071e3;
  --ui-accent-hover:#0067d2;
  --ui-accent-soft:rgba(0,113,227,.14);
  --ui-success:#2f8f6f;
  --ui-success-soft:rgba(47,143,111,.14);
  --ui-warning:#b06b00;
  --ui-warning-soft:rgba(176,107,0,.15);
  --ui-danger:#c9342f;
  --ui-danger-soft:rgba(201,52,47,.15);
  --ui-info:#0a84ff;
  --ui-info-soft:rgba(10,132,255,.14);
  --ui-focus-ring:rgba(0,113,227,.22);
  --ui-shadow-1:0 10px 24px -18px rgba(0,0,0,.26);
  --ui-shadow-2:0 18px 38px -24px rgba(0,0,0,.3);
  --ui-shadow-3:0 30px 64px -34px rgba(0,0,0,.36);
  --ui-shadow-soft:0 12px 30px -24px rgba(0,0,0,.28);
  --ui-shadow-card:0 24px 52px -32px rgba(0,0,0,.35);
  --ui-accent-warm:#d97706;
  --ui-accent-warm-soft:rgba(217,119,6,.14);
  --ui-price-primary:#1d1d1f;
  --ui-price-promotion:#dc2626;
  --ui-price-original:#6e6e73;
  --ui-ease-out:cubic-bezier(.16,1,.3,1);

  /* UI4 业务组件变量 → 独角配色 */
  --yz4-page-bg:var(--ui-bg-page);
  --yz4-bg:var(--ui-bg-page);
  --yz4-card:var(--ui-bg-elevated);
  --yz4-glass-strong:var(--ui-bg-elevated);
  --yz4-glass-soft:var(--ui-bg-elevated);
  --yz4-glass-lite:var(--ui-bg-soft);
  --yz4-text:var(--ui-text-primary);
  --yz4-text-main:var(--ui-text-secondary);
  --yz4-text-sub:var(--ui-text-muted);
  --yz4-text-muted:var(--ui-text-muted);
  --yz4-brand:var(--ui-accent);
  --yz4-brand-light:var(--ui-accent-hover);
  --yz4-brand-surface:var(--ui-accent-soft);
  --yz4-brand-deep:var(--ui-accent);
  --yz4-brand-deep-hover:var(--ui-accent-hover);
  --yz4-brand-hover:var(--ui-accent-hover);
  --yz4-price:var(--ui-price-primary);
  --yz4-success:var(--ui-success);
  --yz4-warn:var(--ui-warning);
  --yz4-info:var(--ui-info);
  --yz4-border:var(--ui-border);
  --yz4-shadow-sm:none;
  --yz4-shadow-md:none;
  --yz4-shadow-lg:var(--ui-shadow-soft);
  --yz4-radius-sm:8px;
  --yz4-radius-md:12px;
  --yz4-radius-lg:16px;
  --yz4-page-width:1280px;
  --yz4-notice-title-color:var(--ui-text-primary);
  --yz4-notice-text-color:var(--ui-text-secondary);
  color-scheme:light;
}

html.dark{
  --ui-bg-page:#000;
  --ui-bg-elevated:#1c1c1e;
  --ui-bg-soft:#2c2c2e;
  --ui-bg-muted:#242426;
  --ui-bg-overlay:rgba(28,28,30,.78);
  --ui-bg-overlay-strong:rgba(28,28,30,.9);
  --ui-text-primary:#f5f5f7;
  --ui-text-secondary:#d2d2d7;
  --ui-text-muted:#8e8e93;
  --ui-text-on-accent:#f5f5f7;
  --ui-border:rgba(255,255,255,.14);
  --ui-border-strong:rgba(255,255,255,.24);
  --ui-accent:#0a84ff;
  --ui-accent-hover:#409cff;
  --ui-accent-soft:rgba(10,132,255,.24);
  --ui-success:#30d158;
  --ui-success-soft:rgba(48,209,88,.22);
  --ui-warning:#ffd60a;
  --ui-warning-soft:rgba(255,214,10,.24);
  --ui-danger:#ff453a;
  --ui-danger-soft:rgba(255,69,58,.24);
  --ui-info:#64d2ff;
  --ui-info-soft:rgba(100,210,255,.24);
  --ui-focus-ring:rgba(10,132,255,.32);
  --ui-shadow-1:0 14px 30px -22px rgba(0,0,0,.72);
  --ui-shadow-2:0 24px 48px -28px rgba(0,0,0,.78);
  --ui-shadow-3:0 36px 76px -34px rgba(0,0,0,.84);
  --ui-shadow-soft:0 22px 46px -30px rgba(0,0,0,.78);
  --ui-shadow-card:0 30px 70px -34px rgba(0,0,0,.88);
  --ui-accent-warm:#fbbf24;
  --ui-accent-warm-soft:rgba(251,191,36,.22);
  --ui-price-primary:#f5f5f7;
  --ui-price-promotion:#f87171;
  --ui-price-original:#8e8e93;
  color-scheme:dark;
}

/* ---------- 基础 ---------- */
html{background:var(--ui-bg-page)}
/* 和原版一样的细滚动条，页面切换时内容不左右跳；只给有鼠标的设备，手机保持系统悬浮滚动条 */
@media (hover:hover) and (pointer:fine){
  html{scrollbar-gutter:stable}
  html::-webkit-scrollbar{width:10px;height:10px}
  html::-webkit-scrollbar-track{background:transparent}
  html::-webkit-scrollbar-thumb{background-color:var(--ui-border-strong);background-clip:content-box;border:2px solid transparent;border-radius:999px}
  html::-webkit-scrollbar-thumb:hover{background-color:var(--ui-text-muted)}
}
body.dj-body{
  margin:0;
  min-height:100vh;
  background:var(--ui-bg-page)!important;
  background-image:none!important;
  color:var(--ui-text-primary);
  font-family:Inter,system-ui,-apple-system,"SF Pro Text","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:16px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  transition:background-color .25s,color .25s;
}
body.dj-body::before,
body.dj-body::after{display:none!important}
.dj-body [hidden]{display:none!important}
.dj-body .is-hidden{display:none!important}
.dj-body a{color:inherit;text-decoration:none}
.dj-body button{font:inherit}
.dj-icon{flex:none;display:inline-block;vertical-align:middle}
.dj-container{max-width:1280px;margin:0 auto;padding:0 16px;box-sizing:border-box}
.dj-main{min-height:calc(100vh - 380px);padding:24px 0 56px}

@keyframes dj-slide-up{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes dj-fade{from{opacity:0}to{opacity:1}}
@keyframes dj-sheet-up{from{transform:translateY(100%)}to{transform:none}}
@media (prefers-reduced-motion:reduce){
  .dj-body *{animation:none!important;transition:none!important}
}

/* ---------- 顶部导航 ---------- */
.dj-nav{
  position:fixed;top:0;left:0;right:0;z-index:50;
  background:var(--ui-bg-overlay);
  -webkit-backdrop-filter:saturate(180%) blur(12px);
  backdrop-filter:saturate(180%) blur(12px);
  border-bottom:1px solid var(--ui-border);
}
.dj-nav-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;height:72px}
.dj-nav-spacer{height:73px}
.dj-brand{
  display:inline-flex;align-items:center;gap:10px;
  height:40px;padding:0 16px;max-width:46vw;
  border-radius:24px;
  background:var(--ui-bg-overlay-strong);
  border:1px solid rgba(0,113,227,.3);
  box-shadow:var(--ui-shadow-1);
  color:var(--ui-text-primary);
  font-size:15px;font-weight:700;letter-spacing:.01em;
  transition:box-shadow .25s,transform .25s var(--ui-ease-out);
}
.dj-brand:hover{transform:translateY(-1px);box-shadow:var(--ui-shadow-2)}
.dj-brand-logo{width:24px;height:24px;border-radius:7px;object-fit:cover}
.dj-brand-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dj-nav-links{flex:1;display:flex;justify-content:center;gap:4px;min-width:0}
.dj-nav-actions{display:flex;align-items:center;gap:4px;flex:none}
.dj-nav-link{
  display:inline-flex;align-items:center;gap:6px;
  height:32px;padding:0 12px;border-radius:12px;
  font-size:12px;font-weight:500;color:var(--ui-text-muted);white-space:nowrap;
  transition:color .2s,background-color .2s;
}
.dj-nav-link:hover{color:var(--ui-text-primary);background:var(--ui-bg-soft)}
.dj-nav-link.is-active{color:var(--ui-accent);background:var(--ui-accent-soft)}
.dj-icon-btn{
  width:32px;height:32px;border-radius:12px;border:0;padding:0;
  display:inline-flex;align-items:center;justify-content:center;
  background:transparent;color:var(--ui-text-muted);cursor:pointer;
  transition:color .2s,background-color .2s;
}
.dj-icon-btn:hover{background:var(--ui-bg-soft);color:var(--ui-text-primary)}
.dj-theme-moon,.dj-theme-sun{display:inline-flex}
.dj-theme-sun{display:none}
html.dark .dj-theme-sun{display:inline-flex}
html.dark .dj-theme-moon{display:none}
.dj-show-mobile{display:none!important}
.dj-nav.is-compact .dj-nav-links{visibility:hidden}
.dj-nav.is-compact .dj-show-mobile{display:inline-flex!important}
.dj-mobile-menu{border-top:1px solid var(--ui-border);padding:8px 0 12px;background:var(--ui-bg-elevated);box-shadow:var(--ui-shadow-2);animation:dj-fade .2s}
.dj-mobile-menu-link{
  display:flex;align-items:center;gap:10px;height:44px;padding:0 12px;border-radius:12px;
  font-size:14px;color:var(--ui-text-secondary);
}
.dj-mobile-menu-link:hover{background:var(--ui-bg-soft)}
.dj-mobile-menu-link.is-active{color:var(--ui-accent);background:var(--ui-accent-soft)}

/* ---------- 手机底部导航 ---------- */
.dj-tabbar{display:none}

/* ---------- 页脚 ---------- */
.dj-footer{
  background:var(--ui-bg-overlay-strong);
  border-top:1px solid var(--ui-border);
  color:var(--ui-text-muted);
  font-size:14px;
}
.dj-footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:40px;padding:48px 0 32px}
.dj-footer-grid.is-two{grid-template-columns:2fr 1fr}
.dj-footer-logo{display:inline-flex;align-items:center;gap:10px;color:var(--ui-text-primary)}
.dj-footer-logo img{width:32px;height:32px;border-radius:8px;object-fit:cover}
.dj-footer-logo strong{font-size:18px;font-weight:700}
.dj-footer-mark{
  width:32px;height:32px;border-radius:8px;
  display:inline-flex;align-items:center;justify-content:center;
  background:var(--ui-accent);color:#fff;font-size:15px;font-weight:700;
}
.dj-footer-brand p{margin:16px 0 0;max-width:420px;line-height:1.7}
.dj-footer-col h4{margin:4px 0 16px;color:var(--ui-text-primary);font-size:15px;font-weight:700}
.dj-footer-col ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.dj-footer-col a,.dj-footer-col span{display:inline-flex;align-items:center;gap:8px;transition:color .2s;word-break:break-all}
.dj-footer-col a:hover{color:var(--ui-accent)}
.dj-footer-bottom{
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;
  padding:20px 0 28px;border-top:1px solid var(--ui-border);font-size:12px;
}
.dj-footer-bottom a:hover{color:var(--ui-accent)}

/* ---------- 通用组件 ---------- */
.dj-panel{background:var(--ui-bg-elevated);border:1px solid var(--ui-border);border-radius:16px}
.dj-badges{display:flex;flex-wrap:wrap;align-items:center;gap:4px}
.dj-badge{
  display:inline-flex;align-items:center;
  padding:2px 6px;border-radius:6px;border:1px solid transparent;
  font-size:10px;font-weight:600;line-height:15px;white-space:nowrap;
}
.dj-badges.is-lg{gap:6px}
.dj-badges.is-lg .dj-badge{font-size:12px;line-height:18px;padding:3px 9px;border-radius:8px}
.dj-badge.is-info{color:var(--ui-info);background:var(--ui-info-soft);border-color:var(--ui-info-soft)}
.dj-badge.is-warning{color:var(--ui-warning);background:var(--ui-warning-soft);border-color:var(--ui-warning-soft)}
.dj-badge.is-success{color:var(--ui-success);background:var(--ui-success-soft);border-color:var(--ui-success-soft)}
.dj-badge.is-danger{color:var(--ui-danger);background:var(--ui-danger-soft);border-color:var(--ui-danger-soft)}
.dj-badge.is-accent{color:var(--ui-accent);background:var(--ui-accent-soft);border-color:var(--ui-accent-soft)}
.dj-badge.is-muted{color:var(--ui-text-muted);background:var(--ui-bg-soft);border-color:var(--ui-border)}

.dj-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  height:44px;padding:0 18px;border-radius:12px;border:1px solid transparent;
  font-size:14px;font-weight:700;white-space:nowrap;cursor:pointer;
  transition:background-color .2s,color .2s,box-shadow .2s,opacity .2s;
}
.dj-btn-lg{height:48px}
.dj-btn-primary{background:var(--ui-accent);color:#fff}
/* .dj-body a{color:inherit} 权重更高，会把链接按钮的白字压成灰字 */
.dj-body a.dj-btn-primary{color:#fff}
.dj-btn-primary:hover{background:var(--ui-accent-hover)}
.dj-btn-soft{background:var(--ui-bg-soft);color:var(--ui-text-primary);border-color:var(--ui-border)}
.dj-btn-soft:hover{background:var(--ui-bg-muted)}
.dj-btn:disabled{opacity:.5;cursor:not-allowed}

.dj-input,
.dj-detail-info .yz4-extra-field input,
.dj-detail-info .yz4-extra-field textarea{
  width:100%;height:44px;padding:0 14px;box-sizing:border-box;
  border-radius:12px;border:1px solid var(--ui-border);
  background:var(--ui-bg-elevated);color:var(--ui-text-primary);
  font-size:14px;outline:none;
  transition:border-color .2s,box-shadow .2s;
}
.dj-detail-info .yz4-extra-field textarea{height:auto;min-height:96px;padding:10px 14px;line-height:1.6;resize:vertical}
.dj-detail-info .yz4-extra-field input,.dj-detail-info .yz4-extra-field textarea{font-size:14px!important;font-family:inherit}
.dj-input::placeholder,
.dj-detail-info .yz4-extra-field input::placeholder,
.dj-detail-info .yz4-extra-field textarea::placeholder{color:var(--ui-text-muted)}
.dj-input:focus,
.dj-detail-info .yz4-extra-field input:focus,
.dj-detail-info .yz4-extra-field textarea:focus{border-color:var(--ui-accent);box-shadow:0 0 0 3px var(--ui-focus-ring)}

.dj-richtext{font-size:15px;line-height:1.75;color:var(--ui-text-secondary);word-break:break-word;overflow-wrap:anywhere}
.dj-richtext p{margin:0 0 .8em}
.dj-richtext p:last-child{margin-bottom:0}
.dj-richtext img,.dj-richtext video{max-width:100%!important;height:auto!important;border-radius:12px}
.dj-richtext a{color:var(--ui-accent)}
.dj-richtext table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse}
.dj-richtext td,.dj-richtext th{border:1px solid var(--ui-border);padding:6px 10px}

/* ---------- 首页 ---------- */
.dj-home{display:grid;grid-template-columns:240px minmax(0,1fr);gap:24px;align-items:start}
.dj-sidebar-panel{position:sticky;top:96px;padding:20px}
.dj-sidebar-title{display:flex;align-items:center;gap:8px;margin:0 0 16px;font-size:16px;font-weight:700;color:var(--ui-text-primary)}
.dj-cat-list{display:flex;flex-direction:column;gap:6px}
.dj-cat-item{
  width:100%;text-align:left;
  padding:10px 12px;border-radius:12px;border:1px solid transparent;
  background:transparent;color:var(--ui-text-muted);
  font-size:14px;line-height:20px;cursor:pointer;
  transition:background-color .25s,color .25s;
}
.dj-cat-item span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dj-cat-item:hover{background:var(--ui-bg-soft);color:var(--ui-text-primary)}
.dj-cat-item.is-active{background:var(--ui-accent);color:#fff}

.dj-filter-btn{display:none}
.dj-search{position:relative;margin:0 0 16px}
.dj-search input{
  width:100%;height:40px;box-sizing:border-box;padding:0 40px;
  border-radius:12px;border:1px solid var(--ui-border);
  background:var(--ui-bg-elevated);color:var(--ui-text-primary);
  font-size:14px;outline:none;-webkit-appearance:none;appearance:none;
  transition:border-color .2s,box-shadow .2s;
}
.dj-search input::placeholder{color:var(--ui-text-muted)}
.dj-search input:focus{border-color:var(--ui-accent);box-shadow:0 0 0 3px var(--ui-focus-ring)}
.dj-search input::-webkit-search-cancel-button{display:none}
.dj-search-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);display:flex;color:var(--ui-text-muted);pointer-events:none}
.dj-search-clear{
  position:absolute;right:6px;top:50%;transform:translateY(-50%);
  width:28px;height:28px;border:0;border-radius:8px;background:transparent;
  display:flex;align-items:center;justify-content:center;color:var(--ui-text-muted);cursor:pointer;
}
.dj-search-clear:hover{background:var(--ui-bg-soft);color:var(--ui-text-primary)}

.dj-notice{
  margin:0 0 20px;padding:16px 18px;border-radius:16px;
  background:var(--ui-bg-elevated);border:1px solid var(--ui-border);
}
.dj-notice-head{display:flex;align-items:center;gap:8px;margin-bottom:8px;color:var(--ui-accent);font-size:14px}
.dj-notice-head strong{color:var(--ui-text-primary);font-weight:700}
.dj-notice-body{font-size:13px;line-height:1.75}

.dj-groups{display:flex;flex-direction:column;gap:28px}
.dj-group-head{display:flex;align-items:center;gap:8px;margin:0 0 12px;padding:0 2px}
.dj-group-bar{width:4px;height:20px;border-radius:999px;background:var(--ui-accent);flex:none}
.dj-group-name{font-size:14px;font-weight:600;color:var(--ui-text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dj-group-count{font-size:12px;color:var(--ui-text-muted)}
.dj-group-list{display:flex;flex-direction:column;gap:12px}

.dj-product-card{
  position:relative;display:flex;align-items:center;gap:12px;
  padding:10px 14px 10px 10px;border-radius:12px;
  background:var(--ui-bg-elevated);border:1px solid var(--ui-border);
  box-shadow:var(--ui-shadow-2);color:var(--ui-text-primary);
  cursor:pointer;overflow:hidden;
  transition:transform .3s var(--ui-ease-out),box-shadow .3s,border-color .3s;
  animation:dj-slide-up .45s var(--ui-ease-out) both;
}
.dj-product-card:hover{transform:translateY(-2px);box-shadow:var(--ui-shadow-3);border-color:var(--ui-border-strong)}
.dj-product-card.is-out > *{opacity:.55}
.dj-product-thumb{
  width:64px;height:64px;flex:none;border-radius:10px;overflow:hidden;
  display:flex;align-items:center;justify-content:center;background:var(--ui-bg-soft);
}
.dj-product-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.dj-product-card:hover .dj-product-thumb img{transform:scale(1.1)}
.dj-product-thumb-text{font-size:22px;font-weight:800;color:var(--ui-accent)}
.dj-product-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.dj-product-line{display:flex;align-items:center;gap:10px;min-width:0}
.dj-product-cat{
  flex:none;max-width:80px;font-size:11px;color:var(--ui-text-muted);
  text-transform:uppercase;letter-spacing:.06em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.dj-product-title{flex:1;min-width:0;font-size:14px;font-weight:600;line-height:1.4;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;word-break:break-all}
.dj-product-side{display:flex;align-items:center;gap:10px;flex:none}
.dj-product-price{display:flex;flex-direction:column;align-items:flex-end;line-height:1.25}
.dj-product-price strong{font-size:14px;font-weight:700;color:var(--ui-price-primary);white-space:nowrap;font-variant-numeric:tabular-nums}
.dj-product-price del{font-size:11px;color:var(--ui-price-original)}
.dj-product-note{font-size:11px;color:var(--ui-text-muted);white-space:nowrap}
.dj-product-sales{margin-left:2px;font-size:11px;color:var(--ui-text-muted);white-space:nowrap}
.dj-product-buy{
  width:32px;height:32px;border-radius:12px;flex:none;
  display:inline-flex;align-items:center;justify-content:center;
  background:var(--ui-bg-page);border:1px solid var(--ui-border);box-shadow:var(--ui-shadow-1);
  color:var(--ui-text-primary);transition:background-color .2s,color .2s,border-color .2s;
}
.dj-product-card:hover .dj-product-buy{background:var(--ui-accent);border-color:transparent;color:#fff}
.dj-product-card.is-out .dj-product-buy{opacity:.45}
.dj-product-arrow{display:flex;color:var(--ui-text-muted)}

.dj-empty{
  display:flex;flex-direction:column;align-items:center;gap:12px;
  padding:64px 20px;text-align:center;color:var(--ui-text-muted);
  background:var(--ui-bg-elevated);border:1px solid var(--ui-border);border-radius:16px;
}
.dj-empty p{margin:0;font-size:14px}
.dj-loading-note{margin:16px 0 0;text-align:center;font-size:12px;color:var(--ui-text-muted)}

/* 分类抽屉（手机） */
.dj-sheet{position:fixed;inset:0;z-index:90}
.dj-sheet-mask{position:absolute;inset:0;background:rgba(0,0,0,.38);animation:dj-fade .2s}
.dj-sheet-panel{
  position:absolute;left:0;right:0;bottom:0;max-height:78vh;overflow:auto;
  padding:16px 16px calc(20px + env(safe-area-inset-bottom));
  background:var(--ui-bg-elevated);border-radius:20px 20px 0 0;
  animation:dj-sheet-up .3s var(--ui-ease-out);
}
.dj-sheet-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;font-size:16px;color:var(--ui-text-primary)}
.dj-sheet-search{margin:0 0 14px}
.dj-sheet-search .dj-input{height:42px}
.dj-cat-list.is-sheet{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.dj-cat-list.is-sheet .dj-cat-item{text-align:center;background:var(--ui-bg-soft);color:var(--ui-text-secondary)}
.dj-cat-list.is-sheet .dj-cat-item.is-active{background:var(--ui-accent);color:#fff}
body.dj-lock{overflow:hidden}

/* ---------- 商品详情 / 购买 ---------- */
.dj-breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 24px;font-size:14px;color:var(--ui-text-muted)}
.dj-breadcrumb a{display:inline-flex;align-items:center;transition:color .2s}
.dj-breadcrumb a:hover{color:var(--ui-text-primary)}
.dj-breadcrumb > span{opacity:.6}
.dj-breadcrumb strong{font-weight:500;color:var(--ui-text-primary);max-width:60vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dj-crumb-back{display:none}
/* 商品详情：和独角原版一样是一张大卡片，左边灰底放图片，右边白底放信息 */
.dj-detail-card{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);overflow:hidden;
  border-radius:24px;border:1px solid var(--ui-border);background:var(--ui-bg-elevated);box-shadow:var(--ui-shadow-3);
}
.dj-detail-media{padding:32px;background:var(--ui-bg-soft);border-right:1px solid var(--ui-border)}
.dj-detail-image{
  position:relative;aspect-ratio:4/3;border-radius:12px;overflow:hidden;
  display:flex;align-items:center;justify-content:center;
  background:var(--ui-bg-elevated);border:1px solid var(--ui-border);box-shadow:var(--ui-shadow-3);
}
.dj-detail-image img{width:100%;height:100%;object-fit:cover}
.dj-detail-imagewrap{position:relative}
.dj-detail-imagewrap .dj-cover-ribbon,.dj-detail-imagewrap .dj-cover-sales{z-index:3;top:12px}
.dj-detail-imagewrap .dj-cover-ribbon{left:12px}
.dj-detail-imagewrap .dj-cover-sales{right:12px}
.dj-detail-image .yz4-modal-media-placeholder{
  display:block;width:96px;height:96px;border-radius:26px;
  background:linear-gradient(135deg,var(--ui-accent),#5ac8fa);opacity:.85;
}
.dj-detail-assure{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:24px;font-size:13px;color:var(--ui-text-muted)}
.dj-detail-assure span{display:inline-flex;align-items:center;gap:6px}
.dj-detail-info{display:flex;flex-direction:column;justify-content:center;min-width:0;padding:48px}
.dj-detail-kicker{margin:0 0 12px;font-size:12px;letter-spacing:.05em;color:var(--ui-text-muted)}
.dj-detail-title{
  margin:0 0 16px;font-size:48px;font-weight:800;line-height:1.25;
  letter-spacing:-.018em;color:var(--ui-text-primary);word-break:break-word;
}
.dj-detail-badges{gap:8px;margin-bottom:24px}
.dj-detail-badges .dj-badge{gap:4px;padding:2px 10px;border-radius:12px;font-size:12px;line-height:18px;font-weight:600}
.dj-detail-pricebox{margin:0 0 32px;padding:0 0 32px;border-bottom:1px solid var(--ui-border)}
.dj-detail-price-label{margin:0 0 8px;font-size:14px;color:var(--ui-text-muted)}
.dj-detail-desc{margin:0;font-size:18px;line-height:1.625;color:var(--ui-text-muted);word-break:break-word}
.dj-field{margin:0 0 28px}
.dj-field-title{margin:0 0 12px;font-size:14px;font-weight:700;letter-spacing:.1em;color:var(--ui-text-muted)}
.dj-field-title label{cursor:default}
.dj-field-hint{margin:6px 0 0;font-size:12px;line-height:1.6;color:var(--ui-text-muted)}
.dj-field-hint a{color:var(--ui-accent)}
.dj-field-hint.is-warn{color:var(--ui-warning)}
.dj-detail-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:10px}
.dj-detail-price strong{font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace;font-size:44px;font-weight:800;letter-spacing:-.02em;color:var(--ui-accent);font-variant-numeric:tabular-nums;line-height:1.1}
.dj-detail-price del{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:16px;color:var(--ui-price-original)}
.dj-detail-price em{
  font-style:normal;font-size:12px;font-weight:600;
  padding:2px 8px;border-radius:999px;
  color:var(--ui-accent-warm);background:var(--ui-accent-warm-soft);
}
.dj-wholesale{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:12px}
.dj-wholesale-label{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:var(--ui-text-muted)}
.dj-wholesale-item{padding:3px 9px;border-radius:8px;background:var(--ui-bg-soft);font-size:12px;color:var(--ui-text-secondary)}
.dj-wholesale-item b{color:var(--ui-price-promotion)}
.dj-extra-fields{display:flex;flex-direction:column;gap:28px;margin:0 0 28px}
.dj-detail-info .yz4-extra-field{display:block;margin:0;padding:0;background:none;border:0}
.dj-detail-info .yz4-extra-field label{
  display:block;margin:0 0 12px;font-size:14px;font-weight:700;letter-spacing:.1em;color:var(--ui-text-muted);
}
.dj-qty-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.dj-stepper{
  display:inline-flex;align-items:center;overflow:hidden;
  border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-bg-elevated);
}
.dj-stepper button{
  width:40px;height:40px;border:0;padding:0;background:transparent;cursor:pointer;
  display:flex;align-items:center;justify-content:center;color:var(--ui-text-muted);
  transition:background-color .2s,color .2s;
}
.dj-stepper button:hover{background:var(--ui-bg-soft);color:var(--ui-text-primary)}
.dj-stepper input{
  width:60px;height:40px;padding:0;text-align:center;
  border:0;border-left:1px solid var(--ui-border);border-right:1px solid var(--ui-border);
  background:transparent;color:var(--ui-text-primary);
  font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;outline:none;
  -moz-appearance:textfield;appearance:textfield;
}
.dj-stepper input::-webkit-outer-spin-button,
.dj-stepper input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.dj-qty-hint{margin:0}
.dj-inline{display:flex;gap:10px}
.dj-inline .dj-input{flex:1;min-width:0}
.dj-captcha-img{
  width:120px;height:44px;flex:none;object-fit:cover;cursor:pointer;
  border-radius:12px;border:1px solid var(--ui-border);background:#fff;
}
.dj-total-row{
  display:flex;align-items:baseline;justify-content:space-between;gap:12px;
  margin:6px 0 18px;padding:16px 0 0;border-top:1px solid var(--ui-border);
}
.dj-total-row span{font-size:14px;color:var(--ui-text-muted)}
.dj-total-row strong{font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,monospace;font-size:28px;font-weight:800;letter-spacing:-.02em;color:var(--ui-accent);font-variant-numeric:tabular-nums}
.dj-detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.dj-detail-actions .dj-btn{height:48px;border:0;border-radius:12px;font-size:14px;font-weight:700}
.dj-detail-actions .dj-btn-soft{background:var(--ui-bg-soft);box-shadow:var(--ui-shadow-1)}
.dj-detail-actions .dj-btn-primary{box-shadow:var(--ui-shadow-2)}
.dj-secure-note{display:flex;align-items:center;gap:6px;margin-top:14px}
.dj-detail-section{
  margin-top:32px;padding:48px;border-radius:24px;
  background:var(--ui-bg-elevated);border:1px solid var(--ui-border);
}
.dj-section-title{
  display:flex;align-items:center;gap:12px;
  margin:0 0 32px;padding:0 0 24px;border-bottom:1px solid var(--ui-border);
  font-size:24px;font-weight:700;color:var(--ui-text-primary);
}
.dj-section-title .dj-group-bar{width:6px;height:32px}
/* 购买页的商品介绍要完整展开（沿用的弹窗样式会把它限制在 260px 高并出现内部滚动条） */
.dj-detail-section .yz4-buy-detail{max-height:none;overflow:visible;margin:0;padding:0;font-size:15px;line-height:1.8;color:var(--ui-text-secondary)}
.dj-back-row{display:flex;justify-content:center;margin-top:48px}
.dj-back-link{display:inline-flex;align-items:center;gap:8px;padding:4px 0;font-size:16px;color:var(--ui-text-muted);transition:color .2s}
.dj-back-link:hover{color:var(--ui-accent)}
.dj-buybar{display:none}

/* 支付方式（沿用 UI4 结构） */
.dj-body .yz4-pay-list{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px}
.dj-body .yz4-pay-item{
  position:relative;display:flex!important;align-items:center;gap:10px;
  min-height:56px;width:100%;padding:10px 12px!important;margin:0!important;
  border-radius:12px!important;border:1px solid var(--ui-border)!important;
  background:var(--ui-bg-elevated)!important;box-shadow:none!important;
  color:var(--ui-text-primary)!important;text-align:left;cursor:pointer;
  -webkit-backdrop-filter:none;backdrop-filter:none;
  transition:border-color .2s,background-color .2s,box-shadow .2s;
}
.dj-body .yz4-pay-item:hover{border-color:var(--ui-border-strong)!important}
.dj-body .yz4-pay-item.is-active{
  border-color:var(--ui-accent)!important;background:var(--ui-accent-soft)!important;
  box-shadow:0 0 0 1px var(--ui-accent)!important;
}
.dj-body .yz4-pay-icon{
  width:32px!important;height:32px!important;flex:none;overflow:hidden;
  display:flex!important;align-items:center;justify-content:center;
  border-radius:8px!important;background:var(--ui-bg-soft)!important;
  color:var(--ui-text-primary)!important;font-size:13px;font-weight:700;
}
.dj-body .yz4-pay-icon img{width:100%;height:100%;object-fit:cover}
.dj-body .yz4-pay-copy{display:flex!important;flex-direction:column;min-width:0;flex:1}
.dj-body .yz4-pay-copy span{font-size:14px;font-weight:600;color:var(--ui-text-primary)}
.dj-body .yz4-pay-copy small{font-size:11px;color:var(--ui-text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dj-body .yz4-pay-check{
  width:18px!important;height:18px!important;flex:none;border-radius:50%!important;
  border:2px solid var(--ui-border-strong)!important;background:transparent!important;
}
.dj-body .yz4-pay-check::before,.dj-body .yz4-pay-check::after{display:none!important}
.dj-body .yz4-pay-item.is-active .yz4-pay-check{
  border-color:var(--ui-accent)!important;
  background:radial-gradient(circle,var(--ui-accent) 0 4px,transparent 5px)!important;
}

/* ---------- 内容页 / 查单 / 订单 / 会员（UI4 结构换肤） ---------- */
.dj-body .yz4-wrap{max-width:1280px;margin:0 auto;padding:0 16px;box-sizing:border-box}
.dj-body .yz4-page-wrap{gap:20px}
.dj-body .yz4-page-hero{padding:0!important;background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important}
.dj-body .yz4-page-hero .yz4-page-kicker{display:none}
.dj-body .yz4-page-hero h1{margin:0 0 8px;font-size:30px;font-weight:800;color:var(--ui-text-primary)}
.dj-body .yz4-page-hero p:last-child{font-size:14px;color:var(--ui-text-muted)}
.dj-body .yz4-page-kicker{color:var(--ui-text-muted)}
.dj-body .yz4-card,
.dj-body .yz4-query-result-card,
.dj-body .yz4-query-card-preview{
  background:var(--ui-bg-elevated)!important;
  border:1px solid var(--ui-border)!important;
  border-radius:16px!important;
  box-shadow:0 1px 2px rgba(0,0,0,.04)!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
  color:var(--ui-text-secondary);
}
.dj-body .yz4-card h2,.dj-body .yz4-card h3,
.dj-body .yz4-query-result-card h3{color:var(--ui-text-primary)}
.dj-body .yz4-empty-card{color:var(--ui-text-muted)}
.dj-body .yz4-empty-card strong{color:var(--ui-text-primary)}
.dj-body .yz4-primary-button{
  background:var(--ui-accent)!important;color:#fff!important;
  border:0!important;border-radius:12px!important;box-shadow:none!important;
  font-weight:700!important;
}
.dj-body .yz4-primary-button:hover{background:var(--ui-accent-hover)!important}
.dj-body .yz4-primary-button:disabled{opacity:.5}
.dj-body .yz4-secondary-button{
  background:var(--ui-bg-soft)!important;color:var(--ui-text-primary)!important;
  border:1px solid var(--ui-border)!important;border-radius:12px!important;box-shadow:none!important;
}
.dj-body .yz4-secondary-button:hover{background:var(--ui-bg-muted)!important}
.dj-body .yz4-text-button{color:var(--ui-accent)!important;background:none!important}
.dj-body .yz4-form-row label{color:var(--ui-text-secondary);font-weight:600}
.dj-body .yz4-wrap input:not([type=checkbox]):not([type=radio]):not([type=file]),
.dj-body .yz4-wrap textarea,
.dj-body .yz4-wrap select{
  background:var(--ui-bg-elevated)!important;color:var(--ui-text-primary)!important;
  border:1px solid var(--ui-border)!important;border-radius:12px!important;box-shadow:none!important;
}
.dj-body .yz4-wrap input:focus,
.dj-body .yz4-wrap textarea:focus,
.dj-body .yz4-wrap select:focus{border-color:var(--ui-accent)!important;box-shadow:0 0 0 3px var(--ui-focus-ring)!important;outline:none}
.dj-body .yz4-wrap input::placeholder,.dj-body .yz4-wrap textarea::placeholder{color:var(--ui-text-muted)}
.dj-body .yz4-captcha-row img{border-radius:12px;border:1px solid var(--ui-border);background:#fff}
.dj-body .yz4-status-badge{border-radius:999px!important;font-weight:600}
.dj-body .yz4-status-badge.is-success{color:var(--ui-success)!important;background:var(--ui-success-soft)!important}
.dj-body .yz4-status-badge.is-warn{color:var(--ui-warning)!important;background:var(--ui-warning-soft)!important}
.dj-body .yz4-status-badge.is-info{color:var(--ui-info)!important;background:var(--ui-info-soft)!important}
.dj-body .yz4-status-badge.is-danger{color:var(--ui-danger)!important;background:var(--ui-danger-soft)!important}
.dj-body .yz4-status-badge.is-muted{color:var(--ui-text-muted)!important;background:var(--ui-bg-soft)!important}
.dj-body .yz4-richtext{color:var(--ui-text-secondary)}
.dj-body .yz4-richtext a{color:var(--ui-accent)}
.dj-body .yz4-order-delivery-textarea{
  background:var(--ui-bg-soft)!important;color:var(--ui-text-primary)!important;
  border:1px solid var(--ui-border)!important;border-radius:12px!important;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
.dj-body .yz4-order-grid > div{background:var(--ui-bg-soft)!important;border-color:var(--ui-border)!important;border-radius:12px!important}
.dj-body .yz4-order-grid span{color:var(--ui-text-muted)!important}
.dj-body .yz4-order-grid strong{color:var(--ui-text-primary)!important}
.dj-body .yz4-delivery-instructions{background:var(--ui-bg-soft)!important;border:1px solid var(--ui-border)!important;border-radius:12px!important;color:var(--ui-text-secondary)}
.dj-body .yz4-delivery-instructions strong{color:var(--ui-text-primary)}
.dj-body .yz4-order-live-tip{color:var(--ui-accent)!important;background:var(--ui-accent-soft)!important;border-radius:10px}

/* 会员中心 */
.dj-body .yz4-member-sidebar{position:sticky;top:96px}
.dj-body .yz4-member-sidebar h1{color:var(--ui-text-primary)}
.dj-body .yz4-member-avatar{background:var(--ui-accent)!important;color:#fff!important}
.dj-body .yz4-member-profile-copy strong{color:var(--ui-text-primary)}
.dj-body .yz4-member-profile-copy span{color:var(--ui-text-muted)}
.dj-body .yz4-member-nav-item{color:var(--ui-text-muted)!important;background:transparent!important;border-radius:12px!important;border-color:transparent!important;box-shadow:none!important}
.dj-body .yz4-member-nav-item:hover{background:var(--ui-bg-soft)!important;color:var(--ui-text-primary)!important}
.dj-body .yz4-member-nav-item.is-active{background:var(--ui-accent)!important;color:#fff!important}
.dj-body .yz4-member-panel-head h2{color:var(--ui-text-primary)}
.dj-body .yz4-member-panel-head p{color:var(--ui-text-muted)}
.dj-body .yz4-account-hero{
  background:linear-gradient(135deg,#0071e3 0%,#2f8cf0 55%,#5ac8fa 100%)!important;
  border:0!important;border-radius:16px!important;color:#fff!important;box-shadow:var(--ui-shadow-2)!important;
}
.dj-body .yz4-account-hero *{color:#fff!important}
.dj-body .yz4-account-hero em{opacity:.85}
.dj-body .yz4-member-overview-card span,
.dj-body .yz4-member-mini-card span{color:var(--ui-text-muted)!important}
.dj-body .yz4-member-overview-card strong,
.dj-body .yz4-member-mini-card strong{color:var(--ui-text-primary)!important}
.dj-body .yz4-member-overview-card p{color:var(--ui-text-muted)!important}
.dj-body .yz4-auth-card{max-width:460px;width:100%;margin:0 auto;padding:28px!important}
.dj-body .yz4-auth-head h2{color:var(--ui-text-primary)}
.dj-body .yz4-contact-card strong{color:var(--ui-text-primary)}
.dj-body .yz4-contact-label{color:var(--ui-text-muted)}
.dj-body .yz4-step-index{color:var(--ui-accent)!important;background:var(--ui-accent-soft)!important}
.dj-body .yz4-collapse-card h3,.dj-body .yz4-step-card h3{color:var(--ui-text-primary)}

/* 深色模式：UI4 里写死浅色背景的地方 */
html.dark .dj-body .yz4-wrap table th,
html.dark .dj-body .yz4-wrap table td{border-color:var(--ui-border)!important;color:var(--ui-text-secondary)!important}
html.dark .dj-body .yz4-wrap table thead th,
html.dark .dj-body .yz4-wrap table tr:nth-child(even) td{background:var(--ui-bg-soft)!important}
html.dark .dj-body .yz4-wrap [class*="panel"],
html.dark .dj-body .yz4-wrap [class*="-box"],
html.dark .dj-body .yz4-wrap [class*="-item"]:not(.yz4-member-nav-item):not(.yz4-pay-item){background-color:transparent}
html.dark .dj-body .yz4-wrap h1,
html.dark .dj-body .yz4-wrap h2,
html.dark .dj-body .yz4-wrap h3,
html.dark .dj-body .yz4-wrap strong{color:var(--ui-text-primary)}
html.dark .dj-body .yz4-wrap p,
html.dark .dj-body .yz4-wrap small,
html.dark .dj-body .yz4-wrap span{color:inherit}
html.dark .dj-body .yz4-upgrade-card,
html.dark .dj-body .yz4-member-record-grid > div,
html.dark .dj-body .yz4-empty-card,
html.dark .dj-body .yz4-filter-chip,
html.dark .dj-body .yz4-member-type-chip,
html.dark .dj-body .yz4-contact-label{
  background:var(--ui-bg-soft)!important;border-color:var(--ui-border)!important;color:var(--ui-text-secondary)!important;box-shadow:none!important;
}
html.dark .dj-body .yz4-filter-chip.is-active,
html.dark .dj-body .yz4-member-type-chip.is-active,
html.dark .dj-body .yz4-upgrade-card.is-active,
html.dark .dj-body .yz4-upgrade-card.is-current{
  background:var(--ui-accent-soft)!important;border-color:var(--ui-accent)!important;color:var(--ui-text-primary)!important;
}
html.dark .dj-body .yz4-upgrade-card strong,
html.dark .dj-body .yz4-member-record-grid strong{color:var(--ui-text-primary)!important}
html.dark .dj-body .yz4-member-record-grid span{color:var(--ui-text-muted)!important}
html.dark .dj-captcha-img,
html.dark .dj-body .yz4-captcha-row img{filter:brightness(.92)}

/* 提示条 */
.dj-body .yz4-toast{
  position:fixed;left:50%;bottom:96px;z-index:2147483000;
  max-width:min(90vw,420px);padding:10px 16px;border-radius:12px;
  background:rgba(29,29,31,.92);color:#fff;font-size:14px;line-height:1.5;text-align:center;
  box-shadow:var(--ui-shadow-3);
  transform:translate(-50%,12px);opacity:0;pointer-events:none;
  transition:opacity .25s,transform .25s var(--ui-ease-out);
}
.dj-body .yz4-toast.show{opacity:1;transform:translate(-50%,0)}
html.dark .dj-body .yz4-toast{background:rgba(245,245,247,.95);color:#1d1d1f}

/* ---------- 查单页 ---------- */
.dj-page-head{margin:0 0 24px}
.dj-page-head h1{display:flex;align-items:center;gap:12px;margin:0 0 8px;font-size:30px;font-weight:800;color:var(--ui-text-primary)}
.dj-page-head p{margin:0;font-size:14px;color:var(--ui-text-muted)}
.dj-query-card{padding:24px;margin:0 0 24px;border-radius:16px;background:var(--ui-bg-elevated);border:1px solid var(--ui-border)}
.dj-query-card h2{margin:0 0 4px;font-size:16px;font-weight:700;color:var(--ui-text-primary)}
.dj-query-card > p{margin:0 0 18px;font-size:13px;color:var(--ui-text-muted)}
.dj-query-form{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1.4fr) 160px;gap:12px;align-items:center}
.dj-query-form .dj-inline{gap:8px}
.dj-query-form .dj-btn{width:100%}
.dj-query-results{display:flex;flex-direction:column;gap:12px}
.dj-body .yz4-query-result-card{padding:18px!important}
.dj-body .yz4-user-order-main{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:center}
.dj-body .yz4-user-order-main h3{margin:0 0 4px;font-size:15px;font-weight:700}
.dj-body .yz4-user-order-main p{margin:0;font-size:12px;color:var(--ui-text-muted)}
.dj-body .yz4-query-card-preview{margin-top:14px;padding:14px!important;background:var(--ui-bg-soft)!important}

/* ---------- 订单结果页 ---------- */
.dj-order-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;margin:0 0 4px}
.dj-order-head h1{margin:0 0 6px;font-size:30px;font-weight:800;color:var(--ui-text-primary)}
.dj-order-head p{margin:0;font-size:14px;color:var(--ui-text-muted);max-width:720px;line-height:1.7}
.dj-order-no{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border-radius:999px;background:var(--ui-bg-elevated);border:1px solid var(--ui-border);font-size:13px;color:var(--ui-text-secondary);font-variant-numeric:tabular-nums}
.dj-body .yz4-order-panel{padding:24px!important}
.dj-body .yz4-order-panel-head h2{font-size:18px;font-weight:700}
.dj-body .yz4-order-footer-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}

/* ---------- 登录页 ---------- */
.dj-auth-page{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,460px);gap:48px;align-items:center;min-height:calc(100vh - 420px)}
.dj-auth-intro{padding:8px 0}
.dj-auth-mark{
  display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;margin-bottom:20px;
  border-radius:16px;background:var(--ui-accent);color:#fff;font-size:22px;font-weight:800;box-shadow:var(--ui-shadow-2);
}
.dj-auth-intro h1{margin:0 0 12px;font-size:clamp(28px,3.2vw,40px);font-weight:800;line-height:1.15;color:var(--ui-text-primary)}
.dj-auth-intro > p{margin:0 0 28px;font-size:15px;line-height:1.75;color:var(--ui-text-muted);max-width:520px}
.dj-auth-perks{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.dj-auth-perks li{display:flex;gap:12px;align-items:flex-start;padding:14px;border-radius:14px;background:var(--ui-bg-elevated);border:1px solid var(--ui-border)}
.dj-auth-perk-icon{
  width:36px;height:36px;flex:none;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;
  background:var(--ui-accent-soft);color:var(--ui-accent);
}
.dj-auth-perks strong{display:block;font-size:14px;color:var(--ui-text-primary)}
.dj-auth-perks small{display:block;margin-top:2px;font-size:12px;line-height:1.55;color:var(--ui-text-muted)}
.dj-body .dj-auth-form{max-width:none;margin:0;padding:0}
.dj-body .dj-auth-form .yz4-auth-card{max-width:none;padding:28px!important;box-shadow:var(--ui-shadow-card)!important}
.dj-body .yz4-auth-head{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap;gap:8px 12px;margin-bottom:20px;text-align:left!important}
.dj-body .yz4-auth-head > div{text-align:left!important}
.dj-body .yz4-auth-card .yz4-form-row{border:0!important;padding:0!important;margin:0!important;background:none!important}
.dj-body .yz4-auth-card .yz4-form-row label{font-size:13px}
.dj-body .yz4-auth-head .yz4-page-kicker{display:none}
.dj-body .yz4-auth-head h2{margin:0;font-size:22px;font-weight:800}
.dj-body .yz4-auth-card .yz4-form-stack{display:flex;flex-direction:column;gap:14px}
.dj-body .yz4-auth-card .yz4-form-row{display:flex;flex-direction:column;gap:6px}
.dj-body .yz4-auth-card input{height:44px;padding:0 14px;font-size:14px}
.dj-body .yz4-auth-card .yz4-primary-button{height:46px;margin-top:6px;font-size:15px}

/* ---------- 首页公告（多条） ---------- */
.dj-notice-list{display:flex;flex-direction:column}
.dj-notice-item{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;padding:10px 0;border-top:1px dashed var(--ui-border)}
.dj-notice-item:first-child{padding-top:0;border-top:0}
.dj-notice-item:last-child{padding-bottom:0}
.dj-notice-item .dj-notice-body{flex:1;min-width:0}
.dj-notice-item time{flex:none;font-size:12px;color:var(--ui-text-muted);line-height:1.75;font-variant-numeric:tabular-nums}
.dj-notice-body img,.dj-notice-body video{max-height:320px;width:auto}

/* ---------- 顶部轮播图（两种模式共用） ---------- */
.dj-hero{padding:0 0 24px;margin-top:-8px;border-bottom:1px solid var(--ui-border);margin-bottom:24px}
.dj-hero-frame{position:relative;overflow:hidden;min-height:320px;border-radius:16px;border:1px solid var(--ui-border);background:var(--ui-bg-elevated)}
.dj-hero-slide{position:absolute;inset:0;display:flex;align-items:flex-end;opacity:0;visibility:hidden;transition:opacity .6s var(--ui-ease-out),visibility .6s;color:#fff}
.dj-hero-slide.is-active{opacity:1;visibility:visible}
.dj-hero-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.dj-hero-mask{position:absolute;inset:0;background:rgba(0,0,0,.5)}
.dj-hero-copy{position:relative;display:flex;flex-direction:column;gap:12px;padding:40px 40px 56px;max-width:900px}
.dj-hero-badge{
  display:inline-flex;align-items:center;gap:8px;align-self:flex-start;padding:2px 10px;border-radius:8px;
  border:1px solid rgba(255,255,255,.25);background:rgba(0,0,0,.55);
  -webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);
  font-size:12px;font-weight:600;letter-spacing:.06em;color:#fff;
}
.dj-hero-dot{width:8px;height:8px;border-radius:50%;background:#6ee7b7}
.dj-hero-title{font-size:30px;font-weight:600;letter-spacing:-.02em;line-height:1.25}
.dj-hero-sub{font-size:15px;line-height:1.6;color:rgba(255,255,255,.82)}
.dj-hero-arrows{position:absolute;top:20px;right:20px;z-index:2;display:flex;gap:8px}
.dj-hero-arrow{
  width:36px;height:36px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;
  border:1px solid rgba(255,255,255,.3);background:rgba(0,0,0,.2);color:#fff;transition:background-color .2s;
}
.dj-hero-arrow:hover{background:rgba(0,0,0,.35)}
.dj-hero-dots{position:absolute;left:40px;bottom:24px;z-index:2;display:flex;gap:8px}
.dj-hero-dotbtn{height:8px;width:8px;border:0;padding:0;border-radius:999px;background:rgba(255,255,255,.45);cursor:pointer;transition:width .3s,background-color .3s}
.dj-hero-dotbtn:hover{background:rgba(255,255,255,.7)}
.dj-hero-dotbtn.is-active{width:24px;background:#fff}

/* ---------- 商品封面模式：区块标题 ---------- */
.dj-featured{padding:47px 0 56px}
.dj-featured.has-hero{padding-top:8px}
.dj-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:0 0 32px}
.dj-section-heading{margin:0;font-size:36px;font-weight:700;letter-spacing:-.02em;line-height:1.2;color:var(--ui-text-primary)}
.dj-section-heading.is-sm{font-size:27.2px;line-height:1.1}
.dj-section-head p{margin:8px 0 0;font-size:14px;line-height:20px;color:var(--ui-text-muted)}
.dj-body .dj-section-more{flex:none;font-size:14px;font-weight:600;line-height:20px;color:var(--ui-text-muted);transition:color .2s}
.dj-body .dj-section-more:hover{color:var(--ui-text-primary)}

/* ---------- 商品封面卡片（还原独角原版） ---------- */
.dj-cover-grid{display:grid;gap:16px}
.dj-cover-grid.is-home{grid-template-columns:repeat(5,minmax(0,1fr))}
.dj-cover-grid.is-center{grid-template-columns:repeat(4,minmax(0,1fr))}
.dj-grid-empty{grid-column:1 / -1}
.dj-cover{
  position:relative;display:flex;flex-direction:column;height:100%;overflow:hidden;
  border-radius:16px;border:1px solid var(--ui-border);background:var(--ui-bg-elevated);color:var(--ui-text-primary);
  box-shadow:var(--ui-shadow-2);cursor:pointer;
  transition:transform .3s var(--ui-ease-out),border-color .3s,box-shadow .3s;
  animation:dj-slide-up .45s var(--ui-ease-out) both;
}
.dj-cover:hover{transform:translateY(-4px);border-color:rgba(var(--dj-accent-rgb,0,113,227),.3);box-shadow:var(--ui-shadow-3)}
.dj-cover.is-out > *{opacity:.6}
.dj-cover-media{position:relative;flex:none;display:block;aspect-ratio:4/3;overflow:hidden;background:var(--ui-bg-muted)}
.dj-cover-shade{position:absolute;inset:0;z-index:1;background:rgba(0,0,0,.15);transition:background-color .3s}
.dj-cover:hover .dj-cover-shade{background:rgba(0,0,0,.05)}
.dj-cover-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .7s var(--ui-ease-out)}
.dj-cover:hover .dj-cover-media img{transform:scale(1.05)}
.dj-cover-placeholder{display:flex;width:100%;height:100%;align-items:center;justify-content:center;font-size:44px;font-weight:800;color:var(--ui-accent)}
.dj-cover-ribbon{position:absolute;top:10px;left:10px;z-index:2;padding:2px 8px;border-radius:6px;background:var(--ui-danger);color:#fff;font-size:11px;font-weight:700}
.dj-cover-soldout{position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:center;color:#fff;font-size:15px;font-weight:700;background:rgba(0,0,0,.35);letter-spacing:.1em}
.dj-cover-body{position:relative;z-index:2;display:flex;flex-direction:column;flex:1;padding:16px}
.dj-cover-cat{margin-bottom:8px;font-size:12px;line-height:16px;color:var(--ui-text-muted);letter-spacing:.05em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dj-cover-title{margin-bottom:8px;font-size:18px;font-weight:700;line-height:26px;min-height:52px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;word-break:break-all}
.dj-cover-badges{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:12px}
.dj-cover-badges .dj-badge{gap:4px}
.dj-only-sm{display:none!important}
.dj-cover-desc{
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  margin-bottom:24px;font-size:14px;line-height:20px;color:var(--ui-text-muted);
}
.dj-cover-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:16px;border-top:1px solid var(--ui-border)}
.dj-cover-price{display:flex;flex-direction:column;min-width:0}
.dj-cover-price-label{font-size:12px;line-height:16px;color:var(--ui-text-muted);letter-spacing:.05em}
.dj-cover-price strong{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:18px;font-weight:700;line-height:1.2;color:var(--ui-price-primary);font-variant-numeric:tabular-nums;white-space:nowrap}
/* 价格下方固定一行：划线价 + 起购/会员提示；没有内容也占位，同一排卡片的分隔线才能对齐 */
.dj-cover-sub{display:flex;align-items:center;gap:6px;min-width:0;height:16px;overflow:hidden;white-space:nowrap}
.dj-cover-price del{flex:none;font-size:11px;line-height:16px;color:var(--ui-price-original)}
.dj-cover-note{min-width:0;font-size:11px;line-height:16px;color:var(--ui-text-muted);overflow:hidden;text-overflow:ellipsis}
/* 图片右上角的销量：半透明深色小胶囊，浅色深色图片上都看得清 */
.dj-cover-sales{
  position:absolute;top:10px;right:10px;z-index:2;display:inline-flex;align-items:center;gap:4px;
  padding:3px 8px;border-radius:999px;background:rgba(0,0,0,.55);color:#fff;
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  font-size:11px;font-weight:600;line-height:16px;font-variant-numeric:tabular-nums;
}
.dj-cover-sales .dj-icon{color:#fdba74}
.dj-cover-actions{display:flex;align-items:center;gap:8px;flex:none}
.dj-cover-buy{
  width:36px;height:36px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--ui-border);background:var(--ui-bg-page);box-shadow:var(--ui-shadow-1);color:var(--ui-text-primary);
  transition:background-color .2s,color .2s,border-color .2s;
}
.dj-cover:hover .dj-cover-buy{background:var(--ui-accent);border-color:transparent;color:#fff}
.dj-cover-go{display:flex;color:var(--ui-text-muted);transition:color .2s,transform .2s}
.dj-cover:hover .dj-cover-go{color:var(--ui-text-primary);transform:translateX(2px)}

/* ---------- 商品封面模式：最新动态 ---------- */
.dj-section-divider{height:1px;margin:32px 16px;border:0;background:linear-gradient(to right,transparent,var(--ui-border),transparent)}
@media (min-width:768px){.dj-section-divider{max-width:1152px;margin:32px auto}}
.dj-news{padding:48px 0}
.dj-news-links{display:flex;gap:12px;font-size:14px;line-height:20px}
.dj-news .dj-section-head p{margin-top:4px}
.dj-news-links a{color:var(--ui-text-muted);transition:color .2s}
.dj-news-links a:hover{color:var(--ui-text-primary)}
.dj-news .dj-section-head{margin-bottom:24px}
.dj-news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.dj-news-card{padding:20px;border-radius:16px;border:1px solid var(--ui-border);background:var(--ui-bg-elevated)}
.dj-news-meta{display:flex;align-items:center;gap:6px;margin-bottom:10px;font-size:12px;color:var(--ui-accent)}
.dj-news-meta time{margin-left:auto;color:var(--ui-text-muted);font-variant-numeric:tabular-nums}
.dj-news-body{font-size:14px;max-height:9.5em;overflow:hidden}
.dj-news-empty{padding:48px 0;border-radius:16px;border:1px dashed var(--ui-border-strong);text-align:center;color:var(--ui-text-muted)}

/* ---------- 商品封面模式：商品中心 ---------- */
.dj-products-head{margin:31px 0 48px;text-align:center}
.dj-products-head h1{margin:0 0 16px;font-size:48px;font-weight:800;letter-spacing:-.018em;line-height:1.1;color:var(--ui-text-primary)}
.dj-products-head p{max-width:672px;margin:0 auto;padding-bottom:32px;border-bottom:1px solid var(--ui-border);font-size:18px;line-height:28px;color:var(--ui-text-muted)}
.dj-products-layout{display:flex;gap:32px;align-items:flex-start}
.dj-products-aside{flex:none;width:256px}
.dj-products-panel{position:sticky;top:96px;padding:24px}
.dj-products-label{display:block;font-size:12px;font-weight:600;letter-spacing:.06em;color:var(--ui-text-muted)}
.dj-products-search{margin:12px 0 24px}
.dj-products-search .dj-input{height:36px;font-size:14px}
.dj-products-cat-title{display:flex;align-items:center;gap:8px;margin:0 0 24px;font-size:18px;font-weight:700;color:var(--ui-text-primary)}
.dj-cat-list.is-products{gap:8px}
.dj-cat-list.is-products .dj-cat-item{padding:12px 16px}
.dj-products-main{flex:1;min-width:0}
.dj-pager{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:40px}
.dj-pager-btn{
  width:48px;height:48px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;
  border:1px solid var(--ui-border);background:var(--ui-bg-elevated);color:var(--ui-text-primary);box-shadow:var(--ui-shadow-1);
}
.dj-pager-btn:hover{background:var(--ui-bg-soft)}
.dj-pager-btn:disabled{opacity:.45;cursor:not-allowed}
.dj-pager-info{display:flex;align-items:center;padding:8px 16px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--ui-text-muted)}
.dj-pager-info b{color:var(--ui-text-primary)}
.dj-pager-info i{font-style:normal;margin:0 8px;opacity:.5}
.dj-filter-btn.is-products{display:none}
.dj-tabbar.is-four{grid-template-columns:repeat(4,1fr)!important}

/* ---------- 内容页：常见问题 / 购买教程 / 联系我们 / 条款 ---------- */
.dj-content-page{max-width:880px}
.dj-faq-list{display:flex;flex-direction:column;gap:12px}
.dj-faq-item{background:var(--ui-bg-elevated);border:1px solid var(--ui-border);border-radius:16px;overflow:hidden;transition:border-color .2s,box-shadow .2s}
.dj-faq-item[open]{border-color:var(--ui-border-strong);box-shadow:var(--ui-shadow-soft)}
.dj-faq-item summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;cursor:pointer;list-style:none}
.dj-faq-item summary::-webkit-details-marker{display:none}
.dj-faq-q{display:flex;align-items:flex-start;gap:10px;font-size:15px;font-weight:600;color:var(--ui-text-primary);line-height:1.5}
.dj-faq-no{flex:none;width:24px;height:24px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;color:var(--ui-accent);background:var(--ui-accent-soft)}
.dj-faq-arrow{flex:none;display:flex;color:var(--ui-text-muted);transition:transform .25s var(--ui-ease-out)}
.dj-faq-item[open] .dj-faq-arrow{transform:rotate(90deg);color:var(--ui-accent)}
.dj-faq-a{padding:0 18px 18px 52px;font-size:14px}

.dj-steps{list-style:none;margin:0;padding:0;position:relative}
.dj-steps::before{content:'';position:absolute;left:17px;top:18px;bottom:18px;width:2px;background:var(--ui-border)}
.dj-step{position:relative;display:flex;gap:16px;align-items:flex-start;margin:0 0 16px}
.dj-step:last-child{margin-bottom:0}
.dj-step-no{
  position:relative;z-index:1;flex:none;width:36px;height:36px;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  background:var(--ui-accent);color:#fff;font-size:15px;font-weight:800;box-shadow:0 0 0 4px var(--ui-bg-page);
}
.dj-step-card{flex:1;min-width:0;padding:16px 18px;border-radius:16px;background:var(--ui-bg-elevated);border:1px solid var(--ui-border)}
.dj-step-card h3{display:flex;align-items:center;gap:8px;margin:0 0 8px;font-size:16px;font-weight:700;color:var(--ui-text-primary)}
.dj-step-emoji{font-size:20px;line-height:1}
.dj-step-card .dj-richtext{font-size:14px}

.dj-contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.dj-contact-card{display:flex;align-items:center;gap:14px;padding:18px;border-radius:16px;background:var(--ui-bg-elevated);border:1px solid var(--ui-border)}
.dj-contact-icon{flex:none;width:44px;height:44px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;background:var(--ui-accent-soft);color:var(--ui-accent)}
.dj-contact-copy{flex:1;min-width:0}
.dj-contact-copy small{display:block;font-size:12px;color:var(--ui-text-muted)}
.dj-contact-copy strong,.dj-contact-copy a{display:block;margin-top:2px;font-size:16px;font-weight:700;color:var(--ui-text-primary);word-break:break-all}
.dj-contact-copy a:hover{color:var(--ui-accent)}
.dj-contact-copy-btn{flex:none;height:36px;padding:0 14px;font-size:13px}

.dj-article{padding:28px 32px;border-radius:20px;background:var(--ui-bg-elevated);border:1px solid var(--ui-border)}
.dj-content-cta{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px 12px;
  margin-top:28px;padding:20px;border-radius:16px;background:var(--ui-bg-elevated);border:1px dashed var(--ui-border-strong);
  font-size:14px;color:var(--ui-text-muted);
}
.dj-content-cta .dj-btn{height:40px}

/* 页脚条款链接 */
.dj-footer-bottom-left{display:flex;flex-wrap:wrap;gap:8px 16px}
.dj-footer-legal{display:flex;gap:16px}

/* ---------- 响应式 ---------- */
@media (max-width:1279px){
  .dj-cover-grid.is-home{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (max-width:1023px){
  .dj-cover-grid.is-home,.dj-cover-grid.is-center{grid-template-columns:repeat(3,minmax(0,1fr))}
  .dj-products-layout{flex-direction:column;align-items:stretch;gap:32px}
  .dj-products-aside{display:none}
  .dj-body .dj-filter-btn.is-products{display:flex;width:100%;height:44px;margin:0;padding:0 16px;border:0;border-radius:12px;background:var(--ui-bg-soft);box-shadow:var(--ui-shadow-1);font-size:14px;font-weight:500}
  .dj-news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dj-home{grid-template-columns:minmax(0,1fr)}
  .dj-sidebar{display:none}
  .dj-filter-btn{
    display:flex;align-items:center;justify-content:center;gap:8px;
    width:100%;height:48px;margin:0 0 12px;border-radius:16px;
    background:var(--ui-bg-elevated);border:1px solid var(--ui-border);box-shadow:var(--ui-shadow-soft);
    color:var(--ui-text-primary);font-size:14px;font-weight:500;cursor:pointer;
  }
  .dj-filter-btn em{font-style:normal;font-size:12px;color:var(--ui-accent)}
  .dj-detail-card{grid-template-columns:minmax(0,1fr)}
  .dj-detail-media{border-right:0;border-bottom:1px solid var(--ui-border)}
  .dj-detail-info{padding:32px}
  .dj-hero-frame{min-height:240px}
  .dj-hero-title{font-size:24px}
  .dj-auth-page{grid-template-columns:minmax(0,1fr);gap:24px;min-height:0}
  .dj-auth-intro{order:2}
  .dj-detail-media{position:static}
  .dj-body .yz4-member-sidebar{position:static}
}

@media (max-width:900px){
  .dj-nav-links{display:none}
  .dj-hide-mobile{display:none!important}
  .dj-show-mobile{display:inline-flex!important}
  .dj-brand{padding:0 14px;font-size:16px;max-width:calc(100vw - 150px)}
  .dj-nav-actions{gap:8px}
  .dj-nav-actions .dj-icon-btn{width:36px;height:36px}
  .dj-main{padding:16px 0 32px;min-height:calc(100vh - 300px)}
  .dj-products-head{margin:18px 0 20px}
  .dj-products-head h1{font-size:26px;margin-bottom:6px}
  .dj-products-head p{font-size:14px;line-height:20px;padding-bottom:16px}
  .dj-featured{padding-top:55px}

  .dj-tabbar{
    display:grid;grid-template-columns:repeat(3,1fr);
    position:fixed;left:0;right:0;bottom:0;z-index:45;
    height:calc(57px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);box-sizing:border-box;
    background:var(--ui-bg-overlay-strong);
    -webkit-backdrop-filter:saturate(180%) blur(16px);backdrop-filter:saturate(180%) blur(16px);
    border-top:1px solid var(--ui-border);
  }
  .dj-tabbar-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:12px;color:var(--ui-text-muted)}
  .dj-tabbar-item.is-active{color:var(--ui-accent)}
  body.dj-has-tabbar{padding-bottom:calc(57px + env(safe-area-inset-bottom))}
  .dj-body .yz4-toast{bottom:calc(80px + env(safe-area-inset-bottom))}

  .dj-footer-grid{grid-template-columns:1fr 1fr;gap:28px;padding:32px 0 24px}
  .dj-footer-brand{grid-column:1 / -1}

  .dj-detail-actions{grid-template-columns:minmax(0,1fr)}
  .dj-detail-section{padding:32px}

  .dj-query-form{grid-template-columns:1fr}
  .dj-page-head h1,.dj-order-head h1,.dj-body .yz4-page-hero h1{font-size:24px}
}

@media (max-width:767px){
  .dj-detail-media{padding:16px}
  .dj-detail-assure{margin-top:16px}
  .dj-detail-info{padding:24px}
  .dj-detail-title{font-size:24px;line-height:30px;margin-bottom:12px}
  .dj-detail-section{padding:24px}
  .dj-section-title{font-size:20px;margin-bottom:20px;padding-bottom:16px}
  .dj-section-title .dj-group-bar{height:24px}
  .dj-breadcrumb .dj-crumb-home{display:none}
  .dj-crumb-back{display:inline-flex;margin-right:4px}
  .dj-back-row{margin-top:32px}
  .dj-featured{padding-top:39px}
  .dj-cover-grid.is-home,.dj-cover-grid.is-center{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
}

@media (max-width:640px){
  .dj-product-cat,.dj-hide-sm,.dj-product-arrow{display:none}
  .dj-product-card{padding:10px;gap:10px}
  .dj-product-thumb{width:56px;height:56px}
  .dj-product-title{font-size:13px}
  .dj-body .yz4-pay-list{grid-template-columns:1fr}
  .dj-footer-grid{grid-template-columns:1fr}
  .dj-query-card{padding:18px}
  .dj-auth-perks{grid-template-columns:1fr}
  .dj-cover-grid.is-home,.dj-cover-grid.is-center{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .dj-cover-body{padding:12px}
  .dj-cover-cat{margin-bottom:4px}
  .dj-cover-title{font-size:14px;line-height:20px;min-height:40px;margin-bottom:4px}
  .dj-cover-badges{gap:4px;margin-bottom:8px}
  .dj-only-sm{display:inline-flex!important}
  .dj-cover-desc,.dj-cover-price-label{display:none}
  .dj-cover-foot{padding-top:8px}
  .dj-cover-price strong{font-size:16px;white-space:normal;word-break:break-all}
  .dj-cover-buy{width:32px;height:32px}
  .dj-section-heading{font-size:30px}
  .dj-news-grid{grid-template-columns:1fr}
  .dj-hero-frame{min-height:200px}
  .dj-hero-copy{padding:20px 20px 40px;gap:8px}
  .dj-hero-title{font-size:20px}
  .dj-hero-sub{font-size:13px}
  .dj-hero-dots{left:20px;bottom:16px}
  .dj-hero-arrows{top:12px;right:12px}
  .dj-hero-arrow{width:32px;height:32px}
  .dj-contact-grid{grid-template-columns:1fr}
  .dj-article{padding:20px}
  .dj-faq-item summary{padding:14px}
  .dj-faq-a{padding:0 14px 14px}
  .dj-notice-item{flex-direction:column;gap:4px}
  .dj-auth-intro h1{font-size:26px}
}

/* 375 以下的超窄屏：价格区太窄，收起小箭头给价格让位 */
@media (max-width:374px){
  .dj-cover-go{display:none}
  .dj-cover-price strong{font-size:15px}
}
/* 图片发货：按钮跟随模板主题色 */
.dimg{--dimg-accent:var(--ui-accent)}

/* ===== ref style block 8 ===== */
/* ==========================================================================
   流光模板（Liuguang）— 深蓝渐变顶部 + 大圆弧光 + 毛玻璃卡片 + 蓝紫渐变按钮
   在独角样式之后加载：首页 / 页头 / 底部栏为新结构，内页沿用独角结构统一换肤。
   断点：≤768px 为手机布局。
   ========================================================================== */
:root{
  --ui-bg-page:#eef0fd;
  --ui-bg-elevated:rgba(255,255,255,.8);
  --ui-bg-soft:rgba(240,242,255,.85);
  --ui-bg-muted:#e8ebfb;
  --ui-text-primary:#14172a;
  --ui-text-secondary:#2f3347;
  --ui-text-muted:#7d8299;
  --ui-border:rgba(205,210,238,.85);
  --ui-border-strong:rgba(170,176,215,.9);
  --ui-price-primary:#f02f47;
  --ui-price-promotion:#f02f47;
  --ui-shadow-soft:0 8px 24px rgba(100,115,210,.12);
  --ui-shadow-card:0 10px 28px rgba(100,115,210,.14);
  --lg-ink:#14172a;
  --lg-ink2:#2f3347;
  --lg-sub:#4a4f63;
  --lg-mute:#8a8fa3;
  --lg-red:#f02f47;
  --lg-line:rgba(215,219,238,.8);
  --lg-grad:linear-gradient(100deg,#829cfb 0%,#6873f6 45%,#5a4cf3 100%);
  --lg-grad2:linear-gradient(90deg,#456bf4,#7775fc);
  --lg-glass:linear-gradient(180deg,rgba(255,255,255,.78),rgba(255,255,255,.62));
  --lg-glass-line:rgba(255,255,255,.95);
  --lg-shadow:0 8px 24px rgba(100,115,210,.11);
  --lg-wrap:1200px;
}
html{background:#eef0fd}
html.lg-lock,html.lg-lock body{overflow:hidden}
body.lg-body{background:transparent!important;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","SF Pro Text","Helvetica Neue","Microsoft YaHei",sans-serif;color:var(--lg-ink);position:relative;overflow-x:hidden}
.lg-body .dj-nav,.lg-body .dj-nav-spacer{display:none!important}
.lg-wrap{width:100%;max-width:var(--lg-wrap);margin:0 auto;padding:0 20px;box-sizing:border-box}
.lg-body .dj-container{max-width:var(--lg-wrap)}
.lg-body .lg-main{padding:14px 0 56px;min-height:calc(100vh - 360px)}
.lg-glass{background:var(--lg-glass);border:1px solid var(--lg-glass-line);box-shadow:var(--lg-shadow);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.lg-show-m{display:none!important}

/* ---------- 背景：深蓝顶部 → 淡紫，带大圆弧光 ---------- */
.lg-bg{position:absolute;left:0;right:0;top:0;height:720px;z-index:-1;overflow:hidden;pointer-events:none;
  background:radial-gradient(700px 300px at 0 0,rgba(10,22,70,.8),rgba(10,22,70,0)),
    linear-gradient(180deg,#1e3488 0,#2b47a3 90px,#4767c0 190px,#7e9bdc 260px,#b6c8f1 330px,#dfe6fc 420px,#eef0fd 540px)}
.lg-bg::after{content:"";position:fixed;left:0;right:0;bottom:0;height:300px;z-index:-2;background:linear-gradient(90deg,rgba(222,210,255,.55),rgba(205,226,255,.55));-webkit-mask:linear-gradient(180deg,transparent,#000);mask:linear-gradient(180deg,transparent,#000)}
.lg-bg-arc{position:absolute;left:46%;top:-420px;width:1500px;height:1500px;border-radius:50%;border:1.5px solid rgba(165,205,255,.7);
  box-shadow:-4px 0 22px rgba(120,180,255,.45),inset 18px 0 46px rgba(150,195,255,.32);
  background:radial-gradient(circle at 16% 34%,rgba(140,175,255,.4),rgba(110,150,250,.1) 30%,rgba(80,120,230,0) 55%);
  -webkit-mask:linear-gradient(180deg,#000 0,#000 520px,transparent 660px);mask:linear-gradient(180deg,#000 0,#000 520px,transparent 660px)}
.lg-bg-glow{position:absolute;left:44%;top:120px;width:420px;height:200px;border-radius:50%;background:radial-gradient(closest-side,rgba(130,185,255,.45),rgba(130,185,255,0))}

/* ---------- 页头（电脑端） ---------- */
.lg-top{position:relative;top:auto;z-index:60;transition:background .25s,box-shadow .25s}
.lg-top.is-solid{background:rgba(30,50,140,.8);box-shadow:0 8px 30px rgba(15,25,80,.25);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}
.lg-top-inner{height:72px;display:flex;align-items:center;gap:28px;color:#fff}
.lg-brand{display:flex;align-items:center;gap:12px;min-width:0;flex:none;color:#fff!important}
.lg-logo-svg{width:40px;height:42px;flex:none;filter:drop-shadow(0 4px 10px rgba(20,20,120,.3))}
.lg-logo-img{width:40px;height:40px;border-radius:11px;object-fit:cover;flex:none;box-shadow:0 4px 12px rgba(10,20,90,.3)}
.lg-brand-text{display:flex;flex-direction:column;min-width:0}
.lg-brand-text b{font-size:18px;line-height:22px;font-weight:700;letter-spacing:.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:240px}
.lg-brand-text small{font-size:11px;color:rgba(255,255,255,.78);letter-spacing:.3px;white-space:nowrap}
.lg-nav{display:flex;gap:4px;min-width:0;overflow:hidden}
.lg-nav-link{height:36px;padding:0 15px;border-radius:18px;display:flex;align-items:center;font-size:14px;white-space:nowrap;color:rgba(255,255,255,.84)!important;transition:all .2s}
.lg-nav-link:hover{color:#fff!important;background:rgba(255,255,255,.1)}
.lg-nav-link.is-active{color:#fff!important;font-weight:600;background:rgba(255,255,255,.16);box-shadow:inset 0 0 0 1px rgba(255,255,255,.28)}
.lg-search{position:relative;margin-left:auto;width:270px;flex:none}
.lg-search input{width:100%;height:38px;padding:0 14px 0 38px;border-radius:19px;border:1px solid rgba(255,255,255,.38);outline:none;color:#fff;font-size:13px;box-sizing:border-box;
  background:linear-gradient(180deg,rgba(255,255,255,.22),rgba(255,255,255,.12));-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);transition:all .2s;-webkit-appearance:none}
.lg-search input::placeholder{color:rgba(255,255,255,.72)}
.lg-search input:focus{background:#fff;color:var(--lg-ink);border-color:#fff;box-shadow:0 6px 20px rgba(10,20,90,.25)}
.lg-search input:focus::placeholder{color:#aab0c4}
.lg-search .lg-search-icon{position:absolute;left:13px;top:11px;color:rgba(255,255,255,.85);pointer-events:none}
.lg-search:focus-within .lg-search-icon{color:#8a8fa3}
.lg-suggest{position:absolute;left:0;right:0;top:44px;padding:8px;border-radius:14px;background:#fff;box-shadow:0 18px 40px rgba(20,25,80,.22);color:var(--lg-ink)}
.lg-suggest-item{display:flex;align-items:center;gap:10px;padding:7px 8px;border-radius:9px;font-size:13px;color:var(--lg-ink2)!important}
.lg-suggest-item:hover,.lg-suggest-item.is-on{background:#f2f3ff}
.lg-suggest-item img,.lg-suggest-ph{width:32px;height:32px;border-radius:8px;object-fit:cover;flex:none;background:#eceefa;display:flex;align-items:center;justify-content:center;color:#5145e6;font-weight:700}
.lg-suggest-item span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lg-suggest-item b{color:var(--lg-red);font-size:13px}
.lg-suggest-all{width:100%;height:34px;margin-top:4px;border:0;border-radius:9px;background:#f4f5ff;color:#5145e6;font-size:13px;cursor:pointer}
.lg-suggest-empty{margin:0;padding:12px;text-align:center;font-size:13px;color:var(--lg-mute)}
.lg-top-actions{display:flex;align-items:center;gap:10px;flex:none}
.lg-search + .lg-top-actions{margin-left:0}
.lg-nav + .lg-top-actions{margin-left:auto}
.lg-gbtn{height:38px;border-radius:19px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 16px;color:#fff!important;font-size:13.5px;font-weight:500;cursor:pointer;box-sizing:border-box;white-space:nowrap;
  background:linear-gradient(180deg,rgba(255,255,255,.26),rgba(255,255,255,.13));border:1px solid rgba(255,255,255,.38);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 2px 8px rgba(10,30,100,.12);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);transition:transform .15s,background .2s}
.lg-gbtn:hover{background:linear-gradient(180deg,rgba(255,255,255,.34),rgba(255,255,255,.2))}
.lg-gbtn:active{transform:scale(.96)}
.lg-user-btn{padding:0 14px 0 4px}
.lg-avatar{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#a9b8ff,#6a6cf0);border:1.5px solid rgba(255,255,255,.7);font-weight:700;font-size:13px}
.lg-user-name{max-width:96px;overflow:hidden;text-overflow:ellipsis}
.lg-mtop,.lg-msearch{display:none}

/* ---------- 通用按钮 / 输入框 ---------- */
.lg-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:40px;padding:0 20px;border:0;border-radius:20px;font-size:14px;font-weight:600;cursor:pointer;white-space:nowrap;transition:transform .12s,box-shadow .2s}
.lg-btn:active{transform:scale(.97)}
.lg-btn-pri{color:#fff;background:var(--lg-grad);box-shadow:0 8px 18px rgba(90,80,240,.3),inset 0 1px 0 rgba(255,255,255,.3)}
.lg-btn-white{color:#4b3fe0;background:#fff;box-shadow:0 6px 14px rgba(20,20,110,.18)}
.lg-input{display:flex;align-items:center;gap:8px;height:40px;padding:0 12px;border-radius:12px;background:rgba(255,255,255,.88);border:1px solid #e1e5f5;color:#9aa0b8;box-sizing:border-box;transition:all .2s}
.lg-input:focus-within{border-color:#8b93f8;box-shadow:0 0 0 3px rgba(106,120,246,.14);background:#fff}
.lg-input input{flex:1;min-width:0;height:100%;border:0;outline:none;background:transparent;font-size:13px;color:var(--lg-ink)}

/* ---------- 首页：横幅 + 公告查单 ---------- */
.lg-hero{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:20px;margin-top:8px}
.lg-banner{position:relative;height:190px;border-radius:20px;overflow:hidden;color:#fff;
  background:radial-gradient(360px 220px at 100% 0,rgba(140,175,255,.55),rgba(140,175,255,0)),linear-gradient(180deg,rgba(130,150,255,0) 25%,rgba(150,150,255,.42) 100%),linear-gradient(90deg,#2b4dbb 0%,#3956c8 42%,#6878ee 74%,#9a98fd 100%);
  border:1px solid rgba(255,255,255,.55);box-shadow:0 18px 40px rgba(40,60,190,.22),inset 0 0 0 1px rgba(255,255,255,.12)}
.lg-art{position:absolute;right:18px;top:6px;width:250px;height:178px}
.lg-banner-txt{position:absolute;left:38px;top:26px;right:300px}
.lg-banner-txt h2{margin:0;font-size:30px;line-height:38px;font-weight:800;font-style:italic;letter-spacing:.6px;text-shadow:0 4px 14px rgba(20,30,120,.3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lg-banner-txt h2 i{font-style:normal;margin:0 9px}
.lg-banner-txt p{margin:3px 0 0;font-size:14px;color:rgba(255,255,255,.88);letter-spacing:.4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lg-banner-txt p i{font-style:normal;margin:0 7px;opacity:.8}
.lg-kpis{position:absolute;left:38px;bottom:24px;display:flex;gap:26px}
.lg-kpi{display:flex;align-items:center;gap:9px;position:relative}
.lg-kpi + .lg-kpi::before{content:"";position:absolute;left:-13px;top:7px;bottom:7px;width:1px;background:rgba(255,255,255,.22)}
.lg-kpi-ic{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:none;background:radial-gradient(circle at 50% 35%,rgba(255,255,255,.28),rgba(255,255,255,.08) 70%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.22)}
.lg-kpi-tx b{display:block;font-size:15px;line-height:19px;font-weight:800;white-space:nowrap}
.lg-kpi-tx em{display:block;font-style:normal;font-size:11.5px;line-height:15px;color:rgba(255,255,255,.78);white-space:nowrap}
.lg-slides,.lg-slide{position:absolute;inset:0}
.lg-slide{opacity:0;transition:opacity .5s;display:block}
.lg-slide.is-on{opacity:1}
.lg-slide img{width:100%;height:100%;object-fit:cover;display:block}
.lg-dots{position:absolute;right:22px;bottom:14px;display:flex;gap:6px;z-index:2}
.lg-dots i{width:7px;height:5px;border-radius:3px;background:rgba(255,255,255,.5);cursor:pointer;transition:all .25s}
.lg-dots i.is-on{width:20px;background:#fff}
.lg-side{border-radius:20px;padding:14px 16px 16px;display:flex;flex-direction:column;box-sizing:border-box;min-width:0}
.lg-side-head{display:flex;align-items:center;gap:7px;margin-bottom:4px;color:#5348d9}
.lg-side-head b{font-size:14.5px;background:linear-gradient(90deg,#4b4fe0,#6550e6);-webkit-background-clip:text;background-clip:text;color:transparent}
.lg-side-more{margin-left:auto;border:0;background:none;font-size:12px;color:var(--lg-mute);display:flex;align-items:center;gap:2px;cursor:pointer}
.lg-side-list{list-style:none;margin:0;padding:0}
.lg-side-list li{display:flex;align-items:center;gap:8px;height:24px;font-size:12.5px;color:var(--lg-ink2);cursor:pointer}
.lg-side-list li:hover{color:#5145e6}
.lg-side-list li.is-empty{cursor:default;color:var(--lg-mute)}
.lg-side-list li i{flex:none;width:5px;height:5px;border-radius:50%;background:#c6c9f8}
.lg-side-list li:first-child i{background:var(--lg-red)}
.lg-side-list li span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lg-side-list li em{font-style:normal;font-size:11.5px;color:var(--lg-mute)}
.lg-side-query{margin-top:auto}
.lg-side-qh{display:flex;align-items:center;justify-content:space-between;margin:0 0 7px;padding-top:9px;border-top:1px dashed #d8dcef}
.lg-side-qh b{font-size:13.5px}
.lg-side-qh span{font-size:12px;color:var(--lg-mute)}
.lg-side-qrow{display:flex;gap:8px}
.lg-side-qrow .lg-input{flex:1;height:36px;border-radius:11px}
.lg-side-qrow .lg-btn{height:36px;border-radius:11px;padding:0 16px;font-size:13px}
.lg-mnotice,.lg-mcats{display:none}

/* ---------- 首页：分类 + 商品 ---------- */
.lg-shop{display:grid;grid-template-columns:240px minmax(0,1fr);gap:20px;margin-top:20px;align-items:start}
.lg-cats{position:relative;top:auto;border-radius:20px;padding:14px;box-sizing:border-box}
.lg-cats-title{font-size:15px;font-weight:700;padding:4px 8px 8px}
.lg-cat{width:100%;display:flex;align-items:center;gap:12px;height:48px;padding:0 12px;margin-top:4px;border:0;border-radius:14px;background:none;font-size:14px;color:var(--lg-ink2);cursor:pointer;transition:all .18s;text-align:left}
.lg-cat:hover{background:rgba(255,255,255,.7)}
.lg-cat-ic{width:32px;height:32px;border-radius:10px;flex:none;display:flex;align-items:center;justify-content:center;overflow:hidden;background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(240,243,255,.85));border:1px solid #fff;box-shadow:0 3px 8px rgba(110,125,210,.14)}
.lg-cat-ic svg{max-width:20px;max-height:20px}
.lg-cat-ic img{width:100%;height:100%;object-fit:cover}
.lg-cat-ic.is-all{color:#5a5cf3}
.lg-cat-name{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lg-cat em{font-style:normal;font-size:12px;color:var(--lg-mute)}
.lg-cat.is-on{color:#fff;font-weight:600;background:linear-gradient(135deg,#6b88fd 0%,#5d6af9 50%,#5a4ff6 100%);box-shadow:0 8px 18px rgba(88,78,240,.35)}
.lg-cat.is-on .lg-cat-ic{background:rgba(255,255,255,.2);border-color:rgba(255,255,255,.3);box-shadow:none;color:#fff}
.lg-cat.is-on .lg-cat-ic svg{filter:brightness(0) invert(1)}
.lg-cat.is-on em{color:rgba(255,255,255,.82)}
.lg-hot{margin-top:14px;padding-top:12px;border-top:1px solid var(--lg-line)}
.lg-hot a{display:flex;align-items:center;gap:10px;padding:7px 8px;font-size:13px;color:var(--lg-ink2)!important;border-radius:10px}
.lg-hot a:hover{background:rgba(255,255,255,.7);color:#5145e6!important}
.lg-hot a .lg-hot-name{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lg-hot-n{flex:none;display:inline-flex;align-items:center;gap:2px;font-style:normal;font-size:11px;font-weight:700;color:#ff7a45}
.lg-hot-n .dj-icon{width:11px;height:11px}
.lg-rank{width:20px;height:20px;border-radius:6px;flex:none;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;background:#eceefa;color:var(--lg-mute)}
.lg-rank.r1{background:linear-gradient(135deg,#ff8a5b,#f02f47);color:#fff}
.lg-rank.r2{background:linear-gradient(135deg,#ffc35b,#f08a00);color:#fff}
.lg-rank.r3{background:linear-gradient(135deg,#7f9bfa,#5a4cf3);color:#fff}
.lg-toolbar{display:flex;align-items:center;gap:14px;margin-bottom:14px;min-height:36px}
.lg-toolbar-title{display:flex;align-items:baseline;gap:10px;min-width:0}
.lg-toolbar-title b{font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lg-toolbar-title span{font-size:13px;color:var(--lg-mute);white-space:nowrap}
.lg-sorts{display:flex;gap:8px;margin-left:auto}
.lg-sort{height:34px;padding:0 16px;border-radius:17px;border:1px solid #fff;background:rgba(255,255,255,.75);box-shadow:0 3px 8px rgba(110,125,210,.08);font-size:13px;color:#4a5068;cursor:pointer;white-space:nowrap;transition:all .2s}
.lg-sort:hover{color:#5145e6}
.lg-sort.is-on{color:#fff;font-weight:700;background:var(--lg-grad2);border-color:transparent;box-shadow:0 6px 14px rgba(80,90,240,.3)}
.lg-sort-ar{margin-left:2px;font-size:11px}
.lg-views{display:flex;padding:3px;border-radius:12px;background:rgba(255,255,255,.75);border:1px solid #fff}
.lg-views button{width:32px;height:28px;border:0;border-radius:9px;background:none;display:flex;align-items:center;justify-content:center;color:#8a8fa3;cursor:pointer}
.lg-views button.is-on{background:#fff;color:#5145e6;box-shadow:0 2px 6px rgba(110,125,210,.2)}

/* 商品卡：电脑端网格 */
.lg-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;transition:opacity .2s}
.lg-grid.is-loading{opacity:.5;pointer-events:none}
.lg-card{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"m m" "t t" "s s" "p b";align-items:center;padding:10px 10px 14px;border-radius:18px;
  background:var(--lg-glass);border:1px solid var(--lg-glass-line);box-shadow:0 6px 18px rgba(100,115,210,.1);color:var(--lg-ink)!important;transition:transform .2s,box-shadow .2s;animation:lgUp .35s both}
@keyframes lgUp{from{opacity:0;transform:translateY(8px)}}
.lg-card:hover{transform:translateY(-4px);box-shadow:0 16px 34px rgba(90,100,210,.2)}
.lg-card-media{grid-area:m;position:relative;display:block;aspect-ratio:6/5;border-radius:13px;overflow:hidden;background:linear-gradient(135deg,#dfe4ff,#c9cdfb)}
.lg-card-media img{width:100%;height:100%;object-fit:cover;display:block}
.lg-card-ph{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:44px;font-weight:800;color:#fff;background:linear-gradient(135deg,#829cfb,#5a4cf3)}
.lg-card-flag{position:absolute;left:8px;top:8px;height:22px;padding:0 8px;border-radius:7px;display:flex;align-items:center;font-size:11.5px;font-weight:600;color:#fff;background:rgba(16,160,80,.88)}
.lg-card-flag.is-dark{background:rgba(20,24,60,.55);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.lg-card-tag{position:absolute;right:8px;top:8px;height:22px;padding:0 8px;border-radius:7px;display:flex;align-items:center;font-size:11.5px;font-weight:700;color:#fff;background:linear-gradient(135deg,#ff8a5b,#f02f47)}
.lg-card-soldout{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(20,24,50,.48);color:#fff;font-weight:700;letter-spacing:2px}
.lg-card-title{grid-area:t;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:42px;margin:12px 4px 0;font-size:14.5px;line-height:21px;font-weight:700}
.lg-card-meta{grid-area:s;display:flex;align-items:center;gap:8px;margin:6px 4px 0;font-size:12px;color:var(--lg-sub);white-space:nowrap;overflow:hidden}
.lg-card-meta span{display:flex;align-items:center;gap:3px;min-width:0;overflow:hidden;text-overflow:ellipsis}
.lg-card-meta i{flex:none;width:1px;height:10px;background:#d3d5df}
.lg-card-meta .dj-icon{flex:none;color:var(--lg-sub)}
.lg-card-price{grid-area:p;display:flex;flex-wrap:wrap;align-items:baseline;column-gap:4px;margin:12px 0 0 4px;min-width:0;line-height:1.15}
.lg-card-price b{font-size:21px;font-weight:800;color:var(--lg-red);letter-spacing:-.2px;font-family:-apple-system,"SF Pro Display",sans-serif}
.lg-card-price small{font-size:13px;font-weight:700;color:var(--lg-red)}
.lg-card-price del{flex-basis:100%;font-size:12px;color:#a3a8bc}
.lg-card-price em{flex-basis:100%;font-style:normal;font-size:11.5px;color:#7a62f8;margin-top:2px}
.lg-card-buy{grid-area:b;align-self:end;margin-top:12px;height:34px;padding:0 14px;border-radius:17px;display:flex;align-items:center;gap:6px;color:#fff;font-size:13px;font-weight:500;white-space:nowrap;background:var(--lg-grad);box-shadow:0 6px 12px rgba(90,80,240,.3)}
.lg-card.is-out .lg-card-buy{background:linear-gradient(100deg,#b9bdd0,#9ea3ba);box-shadow:none}
/* 电脑端列表模式 */
.lg-grid.is-list{grid-template-columns:repeat(2,minmax(0,1fr))}
.lg-grid.is-list .lg-card{grid-template-columns:112px minmax(0,1fr) auto;grid-template-areas:"m t t" "m s s" "m p b";column-gap:14px;padding:12px}
.lg-grid.is-list .lg-card-media{aspect-ratio:1/1}
.lg-grid.is-list .lg-card-title{-webkit-line-clamp:1;min-height:0;margin:0}
.lg-grid.is-list .lg-card-price,.lg-grid.is-list .lg-card-buy{margin-top:6px}
.lg-grid.is-list .lg-card-ph{font-size:34px}
.lg-empty{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;gap:10px;padding:56px 0;color:var(--lg-mute);font-size:14px}
.lg-empty p{margin:0}
.lg-more{display:block;margin:20px auto 0;height:42px;padding:0 30px;border-radius:21px;border:1px solid rgba(160,168,240,.6);background:rgba(255,255,255,.85);color:#4a4fe0;font-size:14px;font-weight:600;cursor:pointer}
.lg-more[hidden]{display:none}

/* 新手三步 */

/* 公告弹层 */
.lg-sheet{position:fixed;inset:0;z-index:2147482100;display:flex;align-items:center;justify-content:center}
.lg-sheet[hidden]{display:none}
.lg-sheet-mask{position:absolute;inset:0;background:rgba(14,18,48,.45);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.lg-sheet-panel{position:relative;width:520px;max-width:calc(100vw - 32px);max-height:76vh;display:flex;flex-direction:column;border-radius:22px;background:#f7f8ff;box-shadow:0 30px 70px rgba(10,15,60,.35);animation:lgUp .25s both}
.lg-sheet-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px 10px}
.lg-sheet-head b{font-size:17px}
.lg-sheet-x{width:32px;height:32px;border:0;border-radius:16px;background:rgba(120,128,170,.12);color:#6b7086;display:flex;align-items:center;justify-content:center;cursor:pointer}
.lg-sheet-body{padding:0 20px 22px;overflow-y:auto}
.lg-notice-item{padding:12px 0;border-top:1px solid var(--lg-line);font-size:14px;line-height:1.75;color:var(--lg-ink2)}
.lg-notice-item:first-child{border-top:0}
.lg-notice-item time{display:block;font-size:12px;color:var(--lg-mute);margin-bottom:2px}

/* ---------- 底部栏（仅手机） ---------- */
.lg-tabbar{display:none}

/* ---------- 页脚 ---------- */
.lg-body .dj-footer{background:rgba(255,255,255,.5)!important;border-top:1px solid rgba(255,255,255,.9)!important;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}

/* ---------- 内页统一换肤（沿用独角结构） ---------- */
.lg-body .dj-panel,.lg-body .dj-detail-card,.lg-body .dj-card,.lg-body .yz4-card,.lg-body .ui4-card{background:var(--lg-glass)!important;border-color:var(--lg-glass-line)!important;box-shadow:var(--lg-shadow)!important}
.lg-body .dj-btn-primary,.lg-body .yz4-btn-primary,.lg-body .yz4-buy-submit,.lg-body button.yz4-primary{background:var(--lg-grad)!important;border-color:transparent!important;color:#fff!important;box-shadow:0 8px 18px rgba(90,80,240,.28)!important}
.lg-body a.dj-btn-primary{color:#fff!important}
.lg-body .dj-input:focus,.lg-body input:focus,.lg-body textarea:focus{border-color:#8b93f8}
.lg-body .dj-breadcrumb{color:rgba(255,255,255,.82)}
.lg-body .dj-breadcrumb a{color:rgba(255,255,255,.82)!important}
.lg-body .dj-breadcrumb strong{color:#fff}
.lg-body .dj-detail-price strong,.lg-body #yz4-modal-price{color:var(--lg-red)!important}
.lg-body .dj-page-head h1,.lg-body .dj-page-title{color:#fff}

/* 在线客服插件的流光换肤见文件末尾 .lg-chat-own（后台可选跟随系统客服设置） */

/* ==========================================================================
   手机端（≤768px）
   ========================================================================== */
@media (max-width:768px){
  .lg-hide-m{display:none!important}
  .lg-show-m{display:flex!important}
  .lg-wrap{padding:0 12px}
  .lg-bg{height:420px;background:radial-gradient(300px 190px at 0 0,rgba(10,22,70,.78),rgba(10,22,70,0)),linear-gradient(180deg,#203a8e 0,#2c4aa5 40px,#4a6cc0 92px,#7695d8 125px,#a3bbe9 162px,#cbd8f6 200px,#e5eafd 240px,#ebeefd 300px,#eef0fd 420px)}
  .lg-bg-arc{left:155px;top:-139px;width:832px;height:832px;-webkit-mask:linear-gradient(180deg,#000 0,#000 210px,transparent 300px);mask:linear-gradient(180deg,#000 0,#000 210px,transparent 300px)}
  .lg-bg-glow{left:150px;top:62px;width:200px;height:90px}
  .lg-top{position:relative;padding-top:env(safe-area-inset-top,0)}
  .lg-top.is-solid{background:none;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
  .lg-top-inner{display:none}
  .lg-mtop{display:flex;align-items:center;gap:8px;height:52px;padding:0 12px;color:#fff}
  .lg-mbrand{flex:1;min-width:0;display:flex;align-items:center;gap:11px;color:#fff!important}
  .lg-mbrand .lg-logo-svg{width:35px;height:37px}
  .lg-mbrand .lg-logo-img{width:36px;height:36px;border-radius:10px}
  .lg-mbrand > span{display:flex;flex-direction:column;min-width:0}
  .lg-mbrand b{font-size:15.4px;line-height:19px;font-weight:600;letter-spacing:.15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .lg-mbrand small{font-size:9.6px;line-height:13px;color:rgba(255,255,255,.84);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .lg-mbtn-round{width:32px;height:32px;padding:0;border-radius:16px;flex:none}
  .lg-mbtn-pill{height:32px;padding:0 13px;border-radius:16px;font-size:11px;gap:5px;flex:none;max-width:96px}
  .lg-mbtn-pill span{overflow:hidden;text-overflow:ellipsis}
  .lg-mtop.is-inner{justify-content:space-between}
  .lg-mtitle{flex:1;margin:0;text-align:center;font-size:15.4px;font-weight:600;letter-spacing:.4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .lg-msearch{display:flex;align-items:center;gap:8px;margin:2px 12px 0;height:36px;padding:0 6px 0 12px;border-radius:18px;background:rgba(255,255,255,.92);color:#8a8fa3;box-shadow:0 6px 16px rgba(10,20,90,.18)}
  .lg-msearch[hidden]{display:none}
  .lg-msearch input{flex:1;min-width:0;border:0;outline:none;background:transparent;font-size:13px;color:var(--lg-ink);-webkit-appearance:none}
  .lg-msearch-x{width:26px;height:26px;border:0;border-radius:13px;background:rgba(120,128,170,.12);color:#6b7086;display:flex;align-items:center;justify-content:center}
  .lg-body .lg-main{padding:6px 0 30px;min-height:0}
  .lg-body.lg-has-tabbar .lg-main{padding-bottom:96px}

  /* 横幅 */
  .lg-hero{display:block;margin-top:6px}
  .lg-banner{height:118px;border-radius:14px;box-shadow:0 8px 20px rgba(60,80,200,.18),inset 0 0 0 1px rgba(255,255,255,.12)}
  .lg-art{right:-6px;top:-4px;width:150px;height:118px}
  .lg-banner-txt{left:20px;top:15px;right:120px}
  .lg-banner-txt h2{font-size:18.4px;line-height:22px;letter-spacing:.2px;text-shadow:0 2px 6px rgba(20,30,120,.25)}
  .lg-banner-txt h2 i{margin:0 5px}
  .lg-banner-txt p{margin-top:3px;font-size:10.7px;line-height:14px}
  .lg-banner-txt p i{margin:0 4.6px}
  .lg-kpis{left:20px;bottom:10px;gap:14px}
  .lg-kpi{flex-direction:column;gap:2px;width:44px}
  .lg-kpi + .lg-kpi::before{display:none}
  .lg-kpi-ic{width:26px;height:26px}
  .lg-kpi-ic .dj-icon{width:12px;height:12px}
  .lg-kpi-tx b{display:none}
  .lg-kpi-tx em{font-size:8.6px;line-height:11px;color:rgba(255,255,255,.95);text-align:center}
  .lg-dots{right:auto;left:50%;transform:translateX(-50%);bottom:8px}
  .lg-side{display:none}

  /* 公告条 */
  .lg-mnotice{display:flex!important;align-items:center;gap:7px;width:100%;margin-top:11px;height:34px;padding:0 12px 0 14px;border-radius:14px;font:inherit;color:#5348d9;cursor:pointer;text-align:left;box-sizing:border-box}
  .lg-mnotice b{flex:none;font-size:11.5px;font-weight:700;background:linear-gradient(90deg,#4b4fe0,#6550e6);-webkit-background-clip:text;background-clip:text;color:transparent}
  .lg-mnotice i{flex:none;width:1px;height:10.5px;background:#c9cde0;margin:0 3px}
  .lg-mnotice span{flex:1;min-width:0;font-size:11.1px;color:var(--lg-ink2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .lg-mnotice > .dj-icon:last-child{color:#404557;flex:none}

  /* 分类宫格 */
  .lg-mcats{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 13px;margin-top:10.6px;padding:10px 12px 12px;border-radius:15px;box-sizing:border-box}
  .lg-tile{position:relative;height:53px;border:1px solid rgba(255,255,255,.8);border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:0;
    background:linear-gradient(180deg,rgba(255,255,255,.64),rgba(244,247,255,.5));box-shadow:0 3px 9px rgba(110,125,210,.11),inset 0 -1px 0 rgba(225,232,252,.5);font:inherit;cursor:pointer;transition:transform .15s}
  .lg-tile:active{transform:scale(.96)}
  .lg-tile-ic{width:26px;height:22px;display:flex;align-items:center;justify-content:center}
  .lg-tile-ic img{width:24px;height:24px;border-radius:7px;object-fit:cover}
  .lg-tile-ic svg{max-width:25px;max-height:21px}
  .lg-tile-ic.is-all{color:#5a5cf3}
  .lg-tile b{max-width:92%;font-size:10.4px;line-height:13px;font-weight:600;color:#1a1d2e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .lg-tile.is-on{border-color:rgba(255,255,255,.35);background:linear-gradient(135deg,#6b88fd 0%,#5d6af9 50%,#5a4ff6 100%);box-shadow:0 7px 16px rgba(88,78,240,.38),inset 0 1px 0 rgba(255,255,255,.3);transform:scale(1.06);z-index:1}
  .lg-tile.is-on b{color:#fff}
  .lg-tile.is-on .lg-tile-ic{color:#fff}
  .lg-tile.is-on .lg-tile-ic svg,.lg-tile.is-on .lg-tile-ic img{filter:brightness(0) invert(1)}

  /* 排序 + 列表 */
  .lg-shop{display:block;margin-top:16.7px}
  .lg-cats{display:none}
  .lg-toolbar{display:block;margin-bottom:15.5px;min-height:0}
  .lg-toolbar-title,.lg-views{display:none}
  .lg-sorts{display:grid;grid-template-columns:72fr 86fr 90fr 90fr;gap:8px;margin:0 2.7px 0 2.7px}
  .lg-sort{height:27.5px;padding:0;border-radius:14px;font-size:10.4px;letter-spacing:.3px;background:linear-gradient(180deg,rgba(255,255,255,.66),rgba(255,255,255,.5));border-color:rgba(255,255,255,.9)}
  .lg-sort.is-on{font-size:13.4px;letter-spacing:.6px;box-shadow:0 5px 12px rgba(80,90,240,.32)}
  .lg-grid,.lg-grid.is-list{grid-template-columns:1fr;gap:8.3px}
  .lg-card,.lg-grid.is-list .lg-card{grid-template-columns:48px auto minmax(0,1fr) auto;grid-template-areas:"m t t b" "m p s b";column-gap:0;row-gap:4px;padding:7.2px 10px 7.2px 11px;border-radius:11px;box-shadow:0 4px 12px rgba(110,120,200,.1);min-height:62px;box-sizing:border-box}
  .lg-card:hover{transform:none}
  .lg-card-media,.lg-grid.is-list .lg-card-media{width:48px;height:48px;aspect-ratio:auto;border-radius:9px;margin-right:13px}
  .lg-card-ph,.lg-grid.is-list .lg-card-ph{font-size:20px}
  .lg-card-flag,.lg-card-tag{display:none}
  .lg-card-soldout{font-size:10px;letter-spacing:0}
  .lg-card-title,.lg-grid.is-list .lg-card-title{-webkit-line-clamp:1;min-height:0;margin:0 0 0 13px;font-size:11.5px;line-height:15px;padding-right:8px}
  .lg-card-price,.lg-grid.is-list .lg-card-price{margin:0 0 0 13px;flex-wrap:nowrap;align-items:baseline;white-space:nowrap}
  .lg-card-price b{font-size:14.4px}
  .lg-card-price small{font-size:12px}
  .lg-card-price del,.lg-card-price em{display:none}
  .lg-card-meta{margin:0;padding-left:12px;font-size:8.6px;gap:10px;color:#3d4256}
  .lg-card-meta::before{content:"";flex:none;width:1px;height:9.5px;background:#d3d5df;margin-right:-1px}
  .lg-card-meta .dj-icon{width:10px;height:10px}
  .lg-card-buy,.lg-grid.is-list .lg-card-buy{align-self:center;margin:0 0 0 8px;width:66px;height:24.3px;padding:0 1px 0 0;justify-content:center;gap:7px;border-radius:13px;font-size:10.5px;letter-spacing:.6px}
  .lg-card-buy svg{width:13px;height:12px}
  .lg-more{height:36px;font-size:13px;margin-top:14px}

  /* 底部栏 */
  .lg-tabbar{position:fixed;left:12px;right:12px;bottom:calc(14px + env(safe-area-inset-bottom,0px));z-index:70;height:54px;display:flex;border-radius:27px;
    background:linear-gradient(180deg,rgba(255,255,255,.72),rgba(255,255,255,.6));border:1px solid rgba(255,255,255,.95);box-shadow:0 6px 18px rgba(100,110,200,.16);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
  .lg-tab{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#3f4560!important;font-size:11.8px;font-weight:500;letter-spacing:.3px}
  .lg-tab.is-active span{font-weight:600;background:linear-gradient(90deg,#4f45e6,#6a4fe0);-webkit-background-clip:text;background-clip:text;color:transparent}
  .lg-body .dj-footer{display:none}
  .lg-sheet{align-items:flex-end}
  .lg-sheet-panel{width:100%;max-width:none;border-radius:22px 22px 0 0;max-height:80vh;padding-bottom:env(safe-area-inset-bottom,0)}
  .lg-body .dj-breadcrumb{display:none}
}
@media (min-width:769px) and (max-width:1100px){
  .lg-nav{display:none}
  .lg-hero{grid-template-columns:minmax(0,1fr) 300px}
  .lg-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .lg-kpi:nth-child(n+4){display:none}
}

/* 独角基础样式 .dj-body button{font:inherit} 会把按钮撑成 16px，这里用更高优先级把字号压回设计值 */
.lg-body .lg-sort{font-size:13px;line-height:1}
.lg-body .lg-cat{font-size:14px;line-height:1.2}
.lg-body .lg-btn{font-size:14px;line-height:1}
.lg-body .lg-side-qrow .lg-btn{font-size:13px}
.lg-body .lg-gbtn{font-size:13.5px;line-height:1}
.lg-body .lg-more{font-size:14px}
.lg-body .lg-side-more{font-size:12px}
.lg-body .lg-suggest-all{font-size:13px}
.lg-body .lg-tile,.lg-body .lg-mnotice,.lg-body .lg-views button,.lg-body .lg-sheet-x,.lg-body .lg-msearch-x{line-height:1}
@media (max-width:768px){
  .lg-body .lg-sort{font-size:10.4px;letter-spacing:.3px}
  .lg-body .lg-sort.is-on{font-size:13.4px;letter-spacing:.6px}
  .lg-body .lg-mbtn-pill{font-size:11px}
  .lg-body .lg-more{font-size:13px}
}

/* 内页大标题压在深蓝顶部上：改白字 */
.lg-body .dj-page-head h1{color:#fff!important}
.lg-body .dj-page-head h1 .dj-icon{color:#fff}
.lg-body .dj-page-head p{color:rgba(255,255,255,.82)!important}
.lg-body .dj-auth-intro h1{color:#fff!important}
.lg-body .dj-auth-intro > p{color:rgba(255,255,255,.84)!important}
/* 主按钮统一蓝紫渐变 */
.lg-body .yz4-primary-button,.lg-body .dj-btn.is-primary,.lg-body .yz4-buy-pay-btn,.lg-body #yz4-buy-submit{background:var(--lg-grad)!important;border-color:transparent!important;color:#fff!important;box-shadow:0 8px 18px rgba(90,80,240,.28)!important}
.lg-body .yz4-text-button{color:#5145e6!important}
@media (max-width:768px){
  .lg-body .dj-auth-intro h1,.lg-body .dj-auth-intro > p{color:var(--lg-ink)!important}
  .lg-body .dj-auth-intro > p{color:var(--lg-sub)!important}
  .lg-body .dj-page-head p{color:rgba(255,255,255,.88)!important}
}

/* 文字横幅多张轮播：.lg-banner-txt 同时带 .lg-slide，恢复文字区自己的位置 */
.lg-banner .lg-banner-txt.lg-slide{inset:auto;left:38px;top:26px;right:300px;bottom:auto;transition:opacity .45s,transform .45s;transform:translateX(-8px)}
.lg-banner .lg-banner-txt.lg-slide.is-on{transform:none}
@media (max-width:768px){
  .lg-banner .lg-banner-txt.lg-slide{left:20px;top:15px;right:120px}
  .lg-dots{bottom:7px}
}

/* ---------- 「我的」页（未登录，设计稿：头像 → 余额卡 → 我的订单 → 常用功能 → 菜单） ---------- */
.lg-mine{max-width:740px}
.lg-mine-me{display:flex;align-items:center;gap:12px;min-height:84px;color:#fff!important}
.lg-mine-av{width:56px;height:56px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;border:2px solid rgba(255,255,255,.75);box-shadow:0 6px 16px rgba(10,20,90,.3);background:linear-gradient(135deg,#a9b8ff,#6a6cf0)}
.lg-mine-info{flex:1;min-width:0}
.lg-mine-info b{display:flex;align-items:center;gap:4px;font-size:17px;font-weight:700;letter-spacing:.4px}
.lg-mine-info small{display:block;margin-top:5px;font-size:10px;color:rgba(255,255,255,.82)}
.lg-mine-wallet{position:relative;margin-top:6px;height:106px;border-radius:16px;overflow:hidden;color:#fff;
  background:radial-gradient(150px 100px at 100% 0,rgba(190,170,255,.6),rgba(190,170,255,0)),linear-gradient(110deg,#4c5ee0 0%,#6a63f0 50%,#9580ff 100%);border:1px solid rgba(255,255,255,.55);box-shadow:0 10px 22px rgba(80,70,220,.25)}
.lg-mine-ring{position:absolute;right:-20px;bottom:-30px;width:120px;height:120px;border-radius:50%;border:1px solid rgba(255,255,255,.25)}
.lg-mine-wl{position:absolute;left:16px;top:13px;font-size:10px;color:rgba(255,255,255,.82)}
.lg-mine-wv{position:absolute;left:15px;top:29px;font:800 24px/28px -apple-system,"SF Pro Display",sans-serif;letter-spacing:.3px}
.lg-mine-wv small{font-size:14px;margin-right:2px}
.lg-mine-wbtn{position:absolute;right:14px;top:22px;height:28px;padding:0 14px;border-radius:14px;display:flex;align-items:center;font-size:11px;font-weight:600;color:#5145e6!important;background:#fff;box-shadow:0 4px 10px rgba(30,30,120,.15)}
.lg-mine-ws{position:absolute;left:0;right:0;bottom:0;height:36px;display:flex;background:rgba(255,255,255,.12);border-top:1px solid rgba(255,255,255,.18)}
.lg-mine-ws div{flex:1;display:flex;align-items:center;justify-content:center;gap:5px;font-size:9.6px;color:rgba(255,255,255,.85)}
.lg-mine-ws div b{font-size:11px;color:#fff}
.lg-mine-ws div + div{border-left:1px solid rgba(255,255,255,.18)}
.lg-mine-card{margin-top:10px;padding:12px;border-radius:14px}
.lg-mine-ch{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.lg-mine-ch b{position:relative;padding-left:8px;font-size:12.5px;font-weight:700;letter-spacing:.3px}
.lg-mine-ch b::before{content:"";position:absolute;left:0;top:2px;bottom:2px;width:3px;border-radius:2px;background:linear-gradient(180deg,#6b88fd,#5a4ff6)}
.lg-mine-ch a{display:flex;align-items:center;gap:2px;font-size:10px;color:var(--lg-mute)!important}
.lg-mine-grid{display:grid;grid-template-columns:repeat(4,1fr);row-gap:12px}
.lg-mine-grid a{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:10.2px;color:var(--lg-ink2)!important;letter-spacing:.2px}
.lg-mine-gi{width:38px;height:38px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(240,243,255,.85));border:1px solid #fff;box-shadow:0 4px 10px rgba(110,125,210,.14);transition:transform .15s}
.lg-mine-grid a:active .lg-mine-gi{transform:scale(.94)}
.lg-mine-menu{margin-top:10px;padding:2px 12px;border-radius:14px}
.lg-mine-menu a{display:flex;align-items:center;gap:10px;height:44px;font-size:11.4px;color:var(--lg-ink)!important}
.lg-mine-menu a + a{border-top:1px solid var(--lg-line)}
.lg-mine-mi{width:26px;height:26px;border-radius:8px;flex:none;display:flex;align-items:center;justify-content:center;color:#fff}
.lg-mine-menu a > span:nth-child(2){flex:1}
.lg-mine-menu small{font-size:9.6px;color:var(--lg-mute)}
.lg-mine-menu a > .dj-icon:last-child{color:#b5bad0}
.lg-mine-ver{text-align:center;margin:16px 0 0;font-size:9.4px;color:#9aa0b8}
@media (min-width:769px){
  .lg-mine{padding-top:20px}
  .lg-mine-info b{font-size:22px}
  .lg-mine-info small{font-size:13px}
  .lg-mine-wallet{height:150px}
  .lg-mine-wl{font-size:13px;left:24px;top:20px}
  .lg-mine-wv{font-size:36px;line-height:44px;left:23px;top:40px}
  .lg-mine-wbtn{height:36px;font-size:13px;padding:0 20px;right:22px;top:30px;border-radius:18px}
  .lg-mine-ws{height:44px}
  .lg-mine-ws div{font-size:12px}
  .lg-mine-ws div b{font-size:13px}
  .lg-mine-card{padding:18px 20px}
  .lg-mine-ch b{font-size:15px}
  .lg-mine-ch a{font-size:12px}
  .lg-mine-grid a{font-size:13px}
  .lg-mine-gi{width:46px;height:46px}
  .lg-mine-menu a{height:52px;font-size:14px}
  .lg-mine-menu small{font-size:12px}
}
@media (max-width:768px){ .lg-dots{left:auto;right:14px;transform:none;bottom:9px} }


/* ==========================================================================
   在线客服插件换肤（公共组件，不改它的代码；只在 body.lg-chat-own 时覆盖）
   紫色耳机圆钮（造型在公共 live_chat.php，这里只设颜色和图标）+ 蓝紫主题的聊天窗
   ========================================================================== */
.lg-chat-own .sk-live-chat{--sk-chat-accent:#6a4ff5}
.lg-chat-own .sk-chat-launch{--sk-launch-a:#8f7ffb;--sk-launch-b:#5d48ee;--sk-launch-glow:rgba(93,72,238,.42);--sk-launch-r:28px;color:#fff}
.lg-chat-own .sk-chat-launch .sk-launch-icon svg{display:none!important}
.lg-chat-own .sk-chat-launch .sk-launch-icon::before{content:"";display:block;width:21px;height:21px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'%3E%3Cpath d='M2.6 11.4V9.6a7.9 7.9 0 0 1 15.8 0v1.8' fill='none' stroke='%23000' stroke-width='2.1'/%3E%3Crect x='.6' y='9.4' width='4.4' height='6.8' rx='2'/%3E%3Crect x='16' y='9.4' width='4.4' height='6.8' rx='2'/%3E%3Cpath d='M18.1 15.8c0 2.4-2.2 3.6-5.2 3.6' fill='none' stroke='%23000' stroke-width='1.7'/%3E%3Crect x='9.2' y='18.2' width='4.4' height='2.4' rx='1.2'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'%3E%3Cpath d='M2.6 11.4V9.6a7.9 7.9 0 0 1 15.8 0v1.8' fill='none' stroke='%23000' stroke-width='2.1'/%3E%3Crect x='.6' y='9.4' width='4.4' height='6.8' rx='2'/%3E%3Crect x='16' y='9.4' width='4.4' height='6.8' rx='2'/%3E%3Cpath d='M18.1 15.8c0 2.4-2.2 3.6-5.2 3.6' fill='none' stroke='%23000' stroke-width='1.7'/%3E%3Crect x='9.2' y='18.2' width='4.4' height='2.4' rx='1.2'/%3E%3C/svg%3E") center/contain no-repeat}
.lg-chat-own .sk-chat-avatar{background:linear-gradient(135deg,#8f7cf9,#6a4ff5)!important;box-shadow:0 7px 18px rgba(106,79,245,.25)!important}
.lg-chat-own .sk-msg.mine .sk-msg-bubble{background:linear-gradient(135deg,#829cfb,#5a4cf3)!important}
.lg-chat-own .sk-chat-text:focus{border-color:rgba(106,79,245,.55)!important;box-shadow:0 0 0 3px rgba(106,79,245,.1)!important}
.lg-chat-own .sk-chat-send{background:linear-gradient(100deg,#829cfb,#6873f6 45%,#5a4cf3)!important}
.lg-chat-own .sk-chat-send:disabled{opacity:.55}
.lg-chat-own .sk-chat-text:focus-visible,.lg-chat-own .sk-chat-send:focus-visible,.lg-chat-own .sk-chat-launch:focus-visible{outline:3px solid rgba(106,79,245,.25)!important}

/* ---------- 流光页脚（电脑端） ---------- */
.lg-body .lg-foot{margin-top:40px;padding:34px 0 26px!important;background:rgba(255,255,255,.55)!important;border-top:1px solid rgba(255,255,255,.95)!important;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
.lg-foot-grid{display:grid;grid-template-columns:minmax(260px,1.5fr) repeat(var(--lg-foot-cols),minmax(0,1fr));gap:30px}
.lg-foot-logo{display:flex;align-items:center;gap:12px;color:var(--lg-ink)!important}
.lg-foot-logo .lg-logo-svg,.lg-foot-logo .lg-logo-img{width:40px;height:42px;flex:none}
.lg-foot-logo .lg-logo-img{height:40px;border-radius:11px;object-fit:cover}
.lg-foot-logo span{display:flex;flex-direction:column}
.lg-foot-logo b{font-size:16px;line-height:21px}
.lg-foot-logo small{font-size:12px;color:var(--lg-mute)}
.lg-foot-brand p{margin:14px 0 0;max-width:320px;font-size:12.5px;line-height:20px;color:var(--lg-mute)}
.lg-foot-col h4{margin:0 0 10px;font-size:14px;font-weight:700;color:var(--lg-ink)}
.lg-foot-col ul{list-style:none;margin:0;padding:0}
.lg-foot-col li{padding:3px 0;font-size:13px;color:var(--lg-sub)}
.lg-foot-col li a,.lg-foot-col li span{display:inline-flex;align-items:center;gap:6px;color:var(--lg-sub)!important}
.lg-foot-col li a:hover{color:#5145e6!important}
.lg-foot-bottom{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:24px;padding-top:16px;border-top:1px solid var(--lg-line);font-size:12px;color:var(--lg-mute)}
.lg-foot-bottom a{color:var(--lg-mute)!important}
.lg-foot-bottom a:hover{color:#5145e6!important}
.lg-foot-legal{display:flex;gap:16px}
@media (min-width:769px) and (max-width:1100px){.lg-foot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 「我的」页余额卡说明改成可点的链接 */
.lg-mine-ws a{flex:1;display:flex;align-items:center;justify-content:center;gap:5px;font-size:9.6px;color:rgba(255,255,255,.85)!important}
.lg-mine-ws a b{font-size:11px;color:#fff}
.lg-mine-ws a + a{border-left:1px solid rgba(255,255,255,.18)}
@media (min-width:769px){.lg-mine-ws a{font-size:12px}.lg-mine-ws a b{font-size:13px}}

/* ==========================================================================
   手机底部导航「钉死」：iOS Safari 下滑动页面时不跟着动
   1) 不让 body 成为滚动容器：防横向溢出放到 html，body 不设 overflow
   2) 导航栏提升为独立合成层，避免毛玻璃固定元素在惯性滚动时被拖动
   ========================================================================== */
html{overflow-x:hidden}
body.lg-body{overflow-x:visible!important;overflow-y:visible!important}
@media (max-width:768px){
  .lg-tabbar{position:fixed!important;left:12px;right:12px;top:auto;bottom:calc(14px + env(safe-area-inset-bottom,0px));
    -webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);will-change:transform;-webkit-backface-visibility:hidden;backface-visibility:hidden;
    touch-action:manipulation;-webkit-user-select:none;user-select:none}
  .lg-tab{-webkit-touch-callout:none}
  html,body.lg-body{overscroll-behavior-y:none}
}
@media (max-width:768px){
  /* 购买页底部「合计 + 购买」栏同样钉死 */
  .lg-paybar{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);will-change:transform;-webkit-backface-visibility:hidden;backface-visibility:hidden;touch-action:manipulation}
}

/* 手机底部导航离屏幕底边：iPhone 有底部横条时扣掉一部分安全区，只留约 16px（与设计稿一致）；无安全区的手机留 10px */
@media (max-width:768px){
  .lg-tabbar{bottom:max(10px,calc(env(safe-area-inset-bottom,0px) - 18px))!important}
  .lg-body.lg-has-tabbar .lg-main{padding-bottom:calc(80px + max(10px,calc(env(safe-area-inset-bottom,0px) - 18px)))}
}
@media (max-width:768px){
  /* 独角给 body 留的底部栏空间和这里重复了，只保留内容区这一份：导航高 54 + 离底边距离 + 14 呼吸空间 */
  body.lg-body.dj-has-tabbar,body.lg-body{padding-bottom:0!important}
  .lg-body.lg-has-tabbar .lg-main{padding-bottom:calc(68px + max(10px,calc(env(safe-area-inset-bottom,0px) - 18px)))!important}
  .lg-body:not(.lg-has-tabbar) .lg-main{padding-bottom:16px}
}

/* 选中的分类：图标保留原色（之前整体反白成白色剪影是 bug）；彩色图标垫白色圆角底，“全部商品”单色图标保持白色 */
.lg-cat.is-on .lg-cat-ic svg,.lg-tile.is-on .lg-tile-ic svg,.lg-tile.is-on .lg-tile-ic img{filter:none!important}
.lg-cat.is-on .lg-cat-ic:not(.is-all){background:#fff!important;border-color:#fff!important;box-shadow:0 3px 8px rgba(40,30,160,.25)!important}
.lg-cat.is-on .lg-cat-ic.is-all{color:#fff}
@media (max-width:768px){
  .lg-tile.is-on .lg-tile-ic:not(.is-all){width:30px;height:26px;border-radius:9px;background:#fff;box-shadow:0 3px 8px rgba(40,30,160,.25)}
  .lg-tile.is-on .lg-tile-ic:not(.is-all) svg{max-width:21px;max-height:18px}
  .lg-tile.is-on .lg-tile-ic:not(.is-all) img{width:22px;height:22px;border-radius:6px}
  .lg-tile.is-on .lg-tile-ic.is-all{color:#fff}
}

/* ==========================================================================
   会员中心（登录后）
   手机：不显示侧栏大菜单；总览 = 头像 → 余额卡 → 我的订单 → 账户功能 → 退出；其他面板顶部一排可滑动标签
   电脑：左侧菜单 + 右侧总览（余额卡下面两张卡并排）
   ========================================================================== */
.lg-uc-tabs{display:none}
.lg-uc .lg-uc-card{margin-top:12px}
.lg-uc-badge{position:absolute;right:-6px;top:-6px;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:#f02f47;color:#fff;font:700 10px/15px -apple-system,sans-serif;font-style:normal;text-align:center;border:1px solid #fff;box-sizing:border-box}
.lg-uc-badge.is-soft{background:#10a050}
.lg-uc-badge[hidden]{display:none}
.lg-mine-gi{position:relative}
.lg-uc-level{font-size:12px;color:var(--lg-mute)}
.lg-uc-wallet{position:relative;overflow:hidden}
.lg-uc-wallet .lg-mine-ring{right:-30px;bottom:-50px;width:160px;height:160px}
@media (min-width:769px){
  .lg-uc{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}
  .lg-uc .lg-uc-wallet{grid-column:1/-1}
  .lg-uc .lg-uc-card{margin-top:0;height:100%;box-sizing:border-box}
  .lg-uc .lg-mine-grid{row-gap:16px}
}
@media (max-width:768px){
  .lg-body .yz4-member-sidebar{display:none!important}
  .lg-body .yz4-member-shell{display:block!important}
  .lg-body .yz4-member-page{padding-top:2px}
  .lg-uc-tabs{display:flex;gap:7px;overflow-x:auto;margin:0 -12px 10px;padding:2px 12px 4px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .lg-uc-tabs::-webkit-scrollbar{display:none}
  .lg-uc-tabs a{flex:none;height:28px;padding:0 13px;border-radius:14px;display:flex;align-items:center;font-size:11px;color:#4a5068!important;white-space:nowrap;
    background:linear-gradient(180deg,rgba(255,255,255,.75),rgba(255,255,255,.58));border:1px solid rgba(255,255,255,.9);box-shadow:0 3px 8px rgba(110,125,210,.08)}
  .lg-uc-tabs a.is-on{color:#fff!important;font-weight:700;background:linear-gradient(90deg,#456bf4,#7775fc);border-color:transparent;box-shadow:0 5px 12px rgba(80,90,240,.3)}
  .lg-uc-me{display:flex!important;align-items:center;gap:12px;min-height:76px;margin-top:-4px;color:#fff!important}
  .lg-uc-av{width:54px;height:54px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:800;color:#fff;
    background:linear-gradient(135deg,#a9b8ff,#6a6cf0);border:2px solid rgba(255,255,255,.75);box-shadow:0 6px 16px rgba(10,20,90,.3)}
  .lg-uc-info{flex:1;min-width:0}
  .lg-uc-info b{display:flex;align-items:center;gap:7px;font-size:17px;font-weight:700;letter-spacing:.3px}
  .lg-uc-info b > span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .lg-uc-vip{flex:none;display:inline-flex;align-items:center;height:18px;padding:0 7px;border-radius:9px;font-size:9.5px;font-weight:700;font-style:normal;color:#7a4b00;background:linear-gradient(90deg,#ffe29a,#f7bb3d);box-shadow:0 2px 6px rgba(200,140,0,.3)}
  .lg-uc-info small{display:block;margin-top:5px;font-size:10px;color:rgba(255,255,255,.82);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .lg-uc-wallet{margin-top:6px;border-radius:16px!important;padding:14px 16px 0!important;border:1px solid rgba(255,255,255,.55);box-shadow:0 10px 22px rgba(80,70,220,.25)}
  .lg-uc-wallet header small{font-size:10px!important}
  .lg-uc-wallet header b{font-size:24px!important;line-height:30px}
  .lg-uc-wallet header a{height:28px;padding:0 14px!important;display:flex;align-items:center;font-size:11px!important;font-weight:600;box-shadow:0 4px 10px rgba(30,30,120,.15)}
  .lg-uc-wallet .lg-wallet-numbers{margin:12px -16px 0;height:38px;padding:0;background:rgba(255,255,255,.12);border-top:1px solid rgba(255,255,255,.18);gap:0}
  .lg-uc-wallet .lg-wallet-numbers > div{flex:1;display:flex;align-items:center;justify-content:center;gap:5px;font-size:9.6px}
  .lg-uc-wallet .lg-wallet-numbers > div + div{border-left:1px solid rgba(255,255,255,.18)}
  .lg-uc-wallet .lg-wallet-numbers small{display:inline!important;font-size:9.6px!important}
  .lg-uc-wallet .lg-wallet-numbers b{font-size:12px}
  .lg-uc .lg-uc-card{margin-top:10px}
  .lg-uc-logout{display:flex!important;align-items:center;justify-content:center;width:100%;height:42px;margin-top:14px;border:1px solid rgba(240,47,71,.25);border-radius:14px;background:rgba(255,255,255,.75);color:#e02a40;font-size:13px;font-weight:600;cursor:pointer}
  .lg-body .lg-uc-logout{font-size:13px}
}

/* 会员中心细节：概览去掉外层大卡（头像区直接落在蓝色页头上，白字不再糊在浅底上）；订单记录卡片压紧 */
@media (max-width:768px){
  .lg-body .yz4-member-panel.lg-uc{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
  .lg-body .yz4-member-panel.lg-uc::before,.lg-body .yz4-member-panel.lg-uc::after{display:none!important}
  .lg-body .yz4-user-order-card{padding:13px 14px!important;border-radius:16px!important}
  .lg-body .yz4-user-order-main{flex-direction:row!important;flex-wrap:nowrap!important;align-items:flex-start!important;justify-content:space-between!important;gap:10px!important}
  .lg-body .yz4-user-order-main > div{min-width:0}
  .lg-body .yz4-user-order-main h3{font-size:14px!important;line-height:20px;margin:2px 0 0!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .lg-body .yz4-user-order-card .yz4-order-overline{font-size:10.5px!important;letter-spacing:0!important;text-transform:none!important;color:var(--lg-mute)!important;margin:0!important;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
  .lg-body .yz4-user-order-main .yz4-status-badge{flex:none;height:22px;padding:0 9px;font-size:10.5px;display:inline-flex;align-items:center}
  .lg-body .yz4-user-order-card .yz4-order-grid.compact{display:grid!important;grid-template-columns:1fr .7fr 1.9fr;gap:6px!important;margin:10px 0 0!important}
  .lg-body .yz4-user-order-card .yz4-order-grid.compact > div{padding:7px 9px!important;border-radius:10px!important;min-height:0!important}
  .lg-body .yz4-user-order-card .yz4-order-grid.compact span{display:block;font-size:10px!important;line-height:13px}
  .lg-body .yz4-user-order-card .yz4-order-grid.compact strong{display:block;margin-top:2px;font-size:12px!important;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .lg-body .yz4-user-order-card .yz4-inline-actions{display:flex!important;flex-direction:row!important;justify-content:flex-end!important;align-items:center!important;margin-top:10px!important}
  .lg-body .yz4-user-order-card .yz4-inline-actions .yz4-secondary-button{height:30px!important;min-height:0!important;padding:0 15px!important;border-radius:15px!important;font-size:12px!important;width:auto!important}
}
@media (max-width:768px){
  .lg-body .yz4-member-panel-head .yz4-page-kicker{display:none!important}
  .lg-body .yz4-member-panel-head h2{font-size:17px!important;line-height:24px;margin:0!important}
  .lg-body .yz4-member-panel-head h2 + p{font-size:11.5px!important;line-height:17px;margin-top:3px!important}
  .lg-body .yz4-user-order-filters{display:flex!important;flex-wrap:nowrap!important;gap:7px!important;margin-top:12px!important;overflow-x:auto;scrollbar-width:none}
  .lg-body .yz4-user-order-filters .yz4-filter-chip{flex:none;height:30px!important;min-height:0!important;padding:0 14px!important;font-size:12px!important;border-radius:15px!important}
}
@media (max-width:768px){
  .lg-body .yz4-member-preset-row{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px!important}
  .lg-body .yz4-member-preset-row .yz4-filter-chip{height:34px!important;min-height:0!important;padding:0 6px!important;font-size:13px!important;border-radius:12px!important;justify-content:center}
  .lg-body .yz4-member-inner-head h3{font-size:15px!important;margin:0!important}
  .lg-body .yz4-member-inner-head p{font-size:11.5px!important;line-height:17px}
  .lg-body .yz4-member-panel .yz4-empty-card{padding:14px 16px!important;font-size:12px!important;line-height:19px!important;border-radius:14px!important}
  .lg-body .yz4-member-panel .yz4-empty-card strong{display:block;font-size:13.5px!important;margin-bottom:3px}
  .lg-body .yz4-member-panel .yz4-form-row label{font-size:12.5px!important}
  .lg-body .yz4-member-panel .yz4-primary-button.is-wide{height:42px!important;min-height:0!important;font-size:14px!important;border-radius:14px!important}
}

/* 电脑端会员中心：侧栏菜单加彩色图标、字号拉回正常；邮箱一行省略；订单卡片压紧；顶部导航在登录后不再被挤掉最后一项 */
.lg-body .lg-search{flex:0 1 270px;min-width:170px}
.lg-body .lg-nav{flex:0 0.2 auto}
@media (min-width:769px){
  .lg-body .yz4-member-sidebar{padding:16px 12px!important}
  .lg-body .yz4-member-sidebar-top h1{font-size:16px!important;margin:0 6px 10px!important}
  .lg-body .yz4-member-sidebar-profile{gap:10px!important;padding:10px!important;border-radius:14px;background:rgba(255,255,255,.55);margin-bottom:10px}
  .lg-body .yz4-member-profile-copy{min-width:0}
  .lg-body .yz4-member-profile-copy strong{font-size:14px!important}
  .lg-body .yz4-member-profile-copy span{display:block;font-size:11px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:normal!important}
  .lg-body .yz4-member-nav{gap:2px!important}
  .lg-body .yz4-member-nav-item{height:38px!important;min-height:0!important;padding:0 10px!important;display:flex!important;align-items:center;justify-content:flex-start!important;text-align:left!important;gap:9px;font-size:13.5px!important;color:var(--lg-ink2,#3f4560)!important}
  .lg-body .yz4-member-nav-item:hover{background:rgba(255,255,255,.7)!important;color:#5145e6!important}
  .lg-body .yz4-member-nav-item.is-active{background:linear-gradient(90deg,#456bf4,#7775fc)!important;color:#fff!important;font-weight:600;box-shadow:0 6px 14px rgba(80,90,240,.28)!important}
  .lg-sb-ic{flex:none;width:26px;height:26px;border-radius:8px;display:flex;align-items:center;justify-content:center;background:#fff;box-shadow:0 2px 6px rgba(80,90,200,.1)}
  .lg-sb-ic svg{width:16px;height:16px}
  .lg-body .yz4-member-nav-item.is-active .lg-sb-ic{background:rgba(255,255,255,.2);box-shadow:none}
  .lg-body .yz4-member-nav-item.is-active .lg-sb-ic svg{stroke:#fff}
  .lg-body .yz4-member-sidebar #yz4-logout-button{margin-top:12px;height:38px!important;min-height:0!important;font-size:13px!important;border-radius:12px!important}
  .lg-body .yz4-user-order-card{padding:16px 18px!important}
  .lg-body .yz4-user-order-card .yz4-order-overline{letter-spacing:0!important;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11.5px!important}
  .lg-body .yz4-user-order-card .yz4-order-grid.compact{gap:8px!important;margin-top:12px!important}
  .lg-body .yz4-user-order-card .yz4-order-grid.compact > div{padding:9px 12px!important;min-height:0!important}
  .lg-body .yz4-user-order-card .yz4-order-grid.compact span{font-size:11px!important}
  .lg-body .yz4-user-order-card .yz4-order-grid.compact strong{font-size:13.5px!important;margin-top:2px}
  .lg-body .yz4-user-order-card .yz4-inline-actions{justify-content:flex-end;margin-top:12px!important}
  .lg-body .yz4-user-order-card .yz4-inline-actions .yz4-secondary-button{height:32px!important;min-height:0!important;padding:0 16px!important;font-size:12.5px!important;border-radius:16px!important}
}
.lg-body .yz4-member-panel-head .yz4-page-kicker{display:none!important}

/* 底部导航「分类」按钮 + 分类弹层（三列图标宫格，选中项高亮） */
.lg-tab-cat{display:none}
.lg-catsheet{display:none}
@media (max-width:768px){
  .lg-body .lg-tab-cat{display:flex;background:none;border:0;padding:0;margin:0;font:inherit;font-size:11.8px;cursor:pointer;-webkit-tap-highlight-color:transparent}
  .lg-catsheet:not([hidden]){display:flex}
  .lg-catgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding-top:4px}
  .lg-body .lg-catgo{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 4px 10px;border-radius:16px;border:1px solid rgba(255,255,255,.9);background:linear-gradient(180deg,#fff,#f3f5ff);box-shadow:0 4px 12px rgba(90,100,200,.08);color:var(--lg-ink)!important;font:inherit;cursor:pointer;min-width:0}
  .lg-catgo .lg-tile-ic{width:36px;height:36px;display:flex;align-items:center;justify-content:center}
  .lg-catgo .lg-tile-ic svg,.lg-catgo .lg-tile-ic img{width:30px;height:30px;object-fit:contain}
  .lg-catgo .lg-tile-ic.is-all{border-radius:11px;background:linear-gradient(140deg,#8a6cff,#4f45e6);color:#fff}
  .lg-catgo .lg-tile-ic.is-all svg{width:18px;height:18px}
  .lg-catgo b{font-size:13px;font-weight:600;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .lg-catgo em{font-style:normal;font-size:10.5px;color:var(--lg-mute)}
  .lg-body .lg-catgo.is-on{border-color:transparent;background:linear-gradient(140deg,#eef0ff,#e3e2ff);box-shadow:0 0 0 1.5px #6a5cf5 inset,0 6px 14px rgba(90,80,240,.16)}
  .lg-catgo.is-on b{color:#4f45e6}
}
html.lg-lock .sk-live-chat:not(.is-open){visibility:hidden}

/* 公告自动滚动：手机公告条横向跑马灯；电脑公告卡多于 3 条时向上轮换 */
.lg-mq{flex:1;min-width:0;overflow:hidden;white-space:nowrap;display:block;position:relative}
.lg-mq-track{display:inline-flex;white-space:nowrap}
.lg-mq-item{flex:none;font-size:11.1px;color:var(--lg-ink2)}
.lg-mq-item + .lg-mq-item{margin-left:36px}
.lg-mq:not(.is-run) .lg-mq-track{display:block;overflow:hidden;text-overflow:ellipsis}
.lg-mq:not(.is-run) .lg-mq-item + .lg-mq-item{display:none}
.lg-mq.is-run{-webkit-mask-image:linear-gradient(90deg,transparent,#000 10px,#000 calc(100% - 14px),transparent);mask-image:linear-gradient(90deg,transparent,#000 10px,#000 calc(100% - 14px),transparent)}
.lg-mq.is-run .lg-mq-track{animation:lgMarquee var(--lg-mq-dur,16s) linear infinite;will-change:transform}
.lg-mnotice:hover .lg-mq.is-run .lg-mq-track,.lg-mnotice:active .lg-mq.is-run .lg-mq-track{animation-play-state:paused}
@keyframes lgMarquee{from{transform:translate3d(0,0,0)}to{transform:translate3d(var(--lg-mq-shift,-50%),0,0)}}
.lg-side-list.is-roll{height:72px;overflow:hidden;position:relative}
.lg-side-list.is-roll li{transition:transform .5s ease}
.lg-side-list.is-roll.is-moving li{transform:translateY(-24px)}
.lg-side-list.is-roll.is-reset li{transition:none}
@media (prefers-reduced-motion:reduce){.lg-mq.is-run .lg-mq-track{animation:none}.lg-side-list.is-roll li{transition:none}}

/* ============ 底部导航 V2：实心毛玻璃 + 滑动选中胶囊 + 未选中减弱 + 按压反馈 ============ */
.lg-tab-ind{display:none}
.lg-tab-ico .f{display:none}
.lg-tab.is-active .lg-tab-ico .o{display:none}
.lg-tab.is-active .lg-tab-ico .f{display:inline}
@media (max-width:768px){
  .lg-body .lg-tabbar{height:58px;padding:0 5px;border-radius:29px;box-sizing:border-box;
    background:linear-gradient(180deg,rgba(255,255,255,.97),rgba(247,248,255,.93))!important;
    border:1px solid rgba(255,255,255,.95)!important;
    box-shadow:0 12px 30px rgba(52,60,150,.18),0 2px 6px rgba(52,60,150,.08),inset 0 1px 0 #fff!important;
    -webkit-backdrop-filter:blur(22px) saturate(180%)!important;backdrop-filter:blur(22px) saturate(180%)!important}
  .lg-body .lg-tab{position:relative;z-index:1;gap:3px;color:#7d83a3!important;font-size:11px;font-weight:500;letter-spacing:.2px;-webkit-tap-highlight-color:transparent;transition:color .2s}
  .lg-body .lg-tab span{line-height:13px}
  .lg-body .lg-tab .lg-tab-ico{width:21px;height:20px;transition:transform .25s cubic-bezier(.3,1.6,.5,1)}
  .lg-body .lg-tab:active .lg-tab-ico{transform:scale(.86)}
  .lg-body .lg-tab.is-active{color:#5145e6!important}
  .lg-body .lg-tab.is-active .lg-tab-ico{transform:translateY(-1px) scale(1.06)}
  .lg-body .lg-tab.is-active span{font-weight:700}
  /* 选中胶囊：有 JS 时由一个元素滑过去；没 JS 时直接画在选中项后面 */
  .lg-tab-ind{display:block;position:absolute;z-index:0;top:6px;bottom:6px;left:0;width:0;border-radius:20px;opacity:0;
    background:linear-gradient(180deg,rgba(124,108,255,.15),rgba(96,86,245,.09));
    transition:transform .38s cubic-bezier(.32,1.25,.5,1),width .38s cubic-bezier(.32,1.25,.5,1),opacity .2s;pointer-events:none}
  .lg-tabbar.has-ind .lg-tab-ind.is-on{opacity:1}
  .lg-tabbar.no-anim .lg-tab-ind{transition:none}
  .lg-tabbar:not(.has-ind) .lg-tab.is-active::before{content:"";position:absolute;z-index:-1;top:5px;bottom:5px;left:6px;right:6px;border-radius:22px;background:rgba(106,92,245,.12)}
  /* 内容区底部留白跟着新高度走 */
  .lg-body.lg-has-tabbar .lg-main{padding-bottom:calc(72px + max(10px,calc(env(safe-area-inset-bottom,0px) - 18px)))!important}
  /* 输入框弹出键盘时把底部导航收起来，不盖住输入内容 */
  .lg-body .lg-tabbar{transition:opacity .2s,visibility .2s}
  body.lg-kb .lg-tabbar{opacity:0;visibility:hidden;pointer-events:none}
}
@media (max-width:360px){
  .lg-body .lg-tab{font-size:10.5px}
  .lg-body .lg-tabbar{left:8px;right:8px}
}
@media (prefers-reduced-motion:reduce){.lg-tab-ind,.lg-body .lg-tab .lg-tab-ico{transition:none!important}}

/* ============ 手机端固定外壳：页面本身不滚，内容在 .lg-scroller 里滚 ============
   iPhone Safari / 微信 / QQ 浏览器滚动整页时会伸缩地址栏和工具栏、到顶到底还会回弹，
   贴底的导航条就跟着上下动，CSS 没法阻止。改成内容在固定容器里滚后，浏览器的栏永远不变，
   底部导航、购买栏、客服按钮都纹丝不动。电脑端不启用。 */
@media (max-width:768px){
  html{height:100%;overflow:hidden!important;overscroll-behavior:none}
  html body.lg-body{height:100%;overflow:hidden!important;overscroll-behavior:none}
  .lg-scroller{position:fixed;top:0;right:0;bottom:0;left:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;z-index:0}
  html.lg-lock .lg-scroller{overflow:hidden}
}
@media (max-width:768px){
  /* 内容区里的弹窗（订单详情、公告弹层等）被固定容器限制了层级，打开时把底部导航和客服悬浮钮让开 */
  html.lg-lock .lg-tabbar,body.yz4-modal-active .lg-tabbar{visibility:hidden}
  body.yz4-modal-active .sk-live-chat:not(.is-open){visibility:hidden}
}

/* 手机首页商品卡：只显示销量（发货方式、库存/人工处理在商品购买页里看）；热销/新品/特价标签挂在封面左上角 */
@media (max-width:768px){
  .lg-card-meta .lg-card-stock,.lg-card-meta > i{display:none!important}
  .lg-card-meta:not(.has-sales){display:none!important}
  .lg-body .lg-card .lg-card-tag{display:flex!important;left:0;top:0;right:auto;height:13px;padding:0 3.5px;border-radius:9px 0 6px 0;font-size:8px;font-weight:700;line-height:13px;letter-spacing:.2px;box-shadow:0 1px 3px rgba(240,47,71,.25)}
}

/* 底部导航 C 位「我的」：白色圆钮比导航条高出一截（不常亮颜色），选中时图标变实心渐变、文字变紫，和其他按钮一致 */
@media (max-width:768px){
  .lg-body .lg-tab-hero{justify-content:flex-end!important;padding-bottom:6px;gap:0!important}
  .lg-tab-orb{position:absolute;left:50%;top:-15px;width:46px;height:46px;margin-left:-23px;border-radius:50%;display:flex;align-items:center;justify-content:center;
    background:linear-gradient(180deg,#fff,#f4f5fc);border:1px solid rgba(255,255,255,.98);
    box-shadow:0 8px 18px rgba(52,60,150,.18),0 2px 5px rgba(52,60,150,.08),inset 0 -2px 4px rgba(120,128,200,.08);
    transition:transform .25s cubic-bezier(.3,1.6,.5,1),box-shadow .25s}
  .lg-body .lg-tab-hero .lg-tab-orb .lg-tab-ico{width:23px;height:22px;transform:none!important}
  .lg-body .lg-tab-hero:active .lg-tab-orb{transform:scale(.92)}
  .lg-body .lg-tab-hero.is-active .lg-tab-orb{box-shadow:0 10px 22px rgba(80,70,230,.22),0 2px 5px rgba(52,60,150,.08),inset 0 -2px 4px rgba(120,128,200,.08)}
  .lg-body .lg-tab-hero .lg-tab-orb{-webkit-background-clip:border-box!important;background-clip:border-box!important}
}
@media (max-width:768px){
  /* 选中项文字的渐变裁切规则会作用到圆钮上把它染成整块紫色，这里把圆钮背景钉回白色 */
  .lg-body .lg-tab-hero .lg-tab-orb,.lg-body .lg-tab-hero.is-active .lg-tab-orb{background:linear-gradient(180deg,#fff,#f4f5fc)!important;-webkit-background-clip:border-box!important;background-clip:border-box!important;color:inherit!important}
  .lg-body .lg-tab-hero{padding-bottom:10px}
}
@media (max-width:768px){
  /* C 位圆钮只微微探出导航条（原来高出 15px 太突兀） */
  .lg-tab-orb{top:-7px;width:40px;height:40px;margin-left:-20px}
  .lg-body .lg-tab-hero .lg-tab-orb .lg-tab-ico{width:21px;height:20px}
}

/* 教程步骤：图标换成步骤序号（原来 4 个图标轮流用，「付款」配了个问号） */
.lg-lesson-icon.is-num{font:800 16px/1 -apple-system,"PingFang SC",sans-serif;font-style:normal;color:#fff!important;background:linear-gradient(135deg,#8a6cff,#4f45e6)!important;box-shadow:0 6px 14px rgba(80,70,230,.25)}

/* 横幅右侧插画换成后台上传的图片时：按插画区域等比放下 */
.lg-art.lg-art-img{object-fit:contain;object-position:center right;filter:drop-shadow(0 12px 24px rgba(20,20,90,.25))}
/* 电脑端商品卡：封面上不再盖发货方式角标（发货方式在购买页看，也免得挡住封面标题）；热销/新品/特价留在右上角，左上角是封面标题 */
@media (min-width:769px){
  .lg-card .lg-card-flag{display:none!important}
}

/* ============ 上传图片自适应 ============
   图片比例和显示框差不多：铺满（只裁一点边）；差得多：整张完整显示，空出来的地方垫一层同图放大模糊的底，不留白边。
   由 liuguang.js 的 lgFit() 按图片真实尺寸判断后加 .lg-fit-contain。 */
.lg-fit-contain{overflow:hidden}
.lg-product-cover.lg-fit-contain{position:relative} /* 轮播的每张本身是绝对定位，不能改成 relative */
.lg-fit-contain::before{content:"";position:absolute;inset:-14%;z-index:0;background:var(--lg-fit-bg) center/cover no-repeat;filter:blur(22px) saturate(1.25) brightness(.92);transform:translateZ(0)}
.lg-fit-contain > img{position:relative;z-index:1;object-fit:contain!important}
.lg-fit-contain > :not(img){z-index:2}
/* 左上角标志：方的照旧是圆角方块；横的、竖的按原比例完整显示，不裁不压 */
.lg-logo-img.is-wide,.lg-logo-img.is-tall{object-fit:contain!important;border-radius:0!important;box-shadow:none!important;background:none}
.lg-logo-img.is-wide{width:auto!important;max-width:132px}
.lg-mbrand .lg-logo-img.is-wide{max-width:104px}
.lg-foot-logo .lg-logo-img.is-wide{width:auto!important;max-width:132px}
/* 分类图标：不是方图时完整显示 */
.lg-cat-ic img.is-odd,.lg-tile-ic img.is-odd{object-fit:contain!important}

/* 横幅图片比例不对时：
   方图/竖图 → 保留模板渐变横幅，图片做成右侧圆角卡片，左边显示横幅文字（.lg-fit-card）
   超宽图 → 完整显示在渐变底上（.lg-fit-wide） */
.lg-slide-cap{display:none}
.lg-slide.lg-fit-card img{position:absolute;right:26px;top:50%;transform:translateY(-50%);width:auto;height:calc(100% - 40px);max-width:40%;object-fit:cover;border-radius:16px;border:2px solid rgba(255,255,255,.75);box-shadow:0 16px 32px rgba(20,30,110,.35)}
.lg-slide.lg-fit-card .lg-slide-cap{display:block;position:absolute;left:38px;right:calc(40% + 50px);top:50%;transform:translateY(-50%);color:#fff}
.lg-slide-cap b{display:block;font-size:30px;line-height:38px;font-weight:800;font-style:italic;letter-spacing:.6px;text-shadow:0 4px 14px rgba(20,30,120,.3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lg-slide-cap b i{font-style:normal;margin:0 9px}
.lg-slide-cap small{display:block;margin-top:4px;font-size:14px;color:rgba(255,255,255,.88);letter-spacing:.4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lg-slide-cap small i{font-style:normal;margin:0 7px;opacity:.8}
.lg-slide.lg-fit-wide img{object-fit:contain}
@media (max-width:768px){
  .lg-slide.lg-fit-card img{right:14px;height:calc(100% - 24px);border-radius:11px;border-width:1.5px}
  .lg-slide.lg-fit-card .lg-slide-cap{left:18px;right:calc(40% + 24px)}
  .lg-slide-cap b{font-size:16px;line-height:21px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .lg-slide-cap b i{display:block;height:0;overflow:hidden;margin:0} /* 手机上在「·」处换行，不在词中间断开 */
  .lg-slide-cap small{font-size:10.5px;margin-top:2px}
}

/* ============ v17 手机端适配：字号放大到真机可读、查单验证码一行放得下、客服钮固定停靠 ============ */
@media (max-width:768px){
  /* 页头小字、分类宫格、公告 */
  .lg-body .lg-mbrand small{font-size:10.5px;line-height:14px}
  .lg-body .lg-tile b{font-size:11.5px;line-height:14px}
  .lg-body .lg-mnotice b{font-size:12.5px}
  .lg-body .lg-mnotice span,.lg-body .lg-mq-item{font-size:12.5px}

  /* 排序按钮 */
  .lg-body .lg-sort{height:30px;font-size:12px;letter-spacing:.2px}
  .lg-body .lg-sort.is-on{font-size:13.5px}

  /* 商品行：缩略图、标题、价格、销量、购买按钮整体放大一档 */
  .lg-body .lg-card,.lg-body .lg-grid.is-list .lg-card{min-height:70px;padding:9px 10px 9px 10px;row-gap:5px}
  .lg-body .lg-card-media,.lg-body .lg-grid.is-list .lg-card-media{width:52px;height:52px;margin-right:12px;border-radius:10px}
  .lg-body .lg-card-title,.lg-body .lg-grid.is-list .lg-card-title{margin-left:12px;font-size:13.5px;line-height:18px}
  .lg-body .lg-card-price,.lg-body .lg-grid.is-list .lg-card-price{margin-left:12px}
  .lg-body .lg-card-price b{font-size:16px}
  .lg-body .lg-card-price small{font-size:12.5px}
  .lg-body .lg-card-meta{font-size:11px;padding-left:10px;gap:8px;min-width:0;overflow:hidden;white-space:nowrap}
  .lg-body .lg-card-meta::before{height:10px}
  .lg-body .lg-card-meta .dj-icon{width:11px;height:11px;flex:none}
  .lg-body .lg-card-sales{overflow:hidden;text-overflow:ellipsis}
  .lg-body .lg-card-buy,.lg-body .lg-grid.is-list .lg-card-buy{width:68px;height:30px;border-radius:15px;font-size:12.5px;gap:5px;letter-spacing:.3px}
  .lg-body .lg-card-buy svg{width:14px;height:13px}
  .lg-body .lg-card .lg-card-tag{height:15px;line-height:15px;padding:0 4px;font-size:9.5px}
  .lg-body .lg-card-soldout{font-size:11px}

  /* 首页横幅（窄图卡片样式）小字：放不下就换第二行，不再截成「各类虚…」 */
  .lg-slide-cap small{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:14px;font-size:11px;word-break:keep-all}
  .lg-slide-cap small i::after{content:"\200b"}

  /* 订单查询：搜索框一行、验证码+图片一行、按钮整行，320 宽也不挤 */
  .lg-body .lg-query-fields{grid-template-columns:minmax(0,1fr);gap:9px}
  .lg-body .lg-query-fields>*,.lg-body .lg-query-fields .lg-input-box{min-width:0}
  .lg-body .lg-query-fields input{min-width:0;width:100%}
  .lg-body .lg-query-fields .lg-input-box{height:42px}
  .lg-body .lg-query-fields .lg-input-row{display:flex;gap:8px;min-width:0}
  .lg-body .lg-query-fields .lg-input-row>.lg-input-box{flex:1 1 0}
  .lg-body .lg-query-fields .lg-captcha{flex:none;width:108px;height:42px}
  .lg-body .lg-query-fields .lg-btn{height:44px;font-size:15px;border-radius:14px}

  /* 段落标题不留单字孤行 */
  .lg-body .lg-page-title p,.lg-body .lg-auth-brand p,.lg-body .dj-page-head p{text-wrap:balance}

  /* 在线客服按钮：公共组件会自动找空位，但流光手机端内容在容器里滚，它收不到滚动、会停在横幅或购买按钮上。
     固定停靠在底栏右上方；用户自己拖过（sk-dragged）就尊重拖动的位置。 */
  .lg-body .sk-live-chat.sk-auto-placed:not(.sk-dragged){left:auto!important;top:auto!important;right:12px!important;
    bottom:calc(82px + max(10px,calc(env(safe-area-inset-bottom,0px) - 18px)))!important;transition:none}
  /* 给最后一行留出客服按钮的位置，滚到底时购买按钮不被盖住 */
  .lg-body.lg-sec-home.lg-has-tabbar .lg-main{padding-bottom:calc(136px + max(10px,calc(env(safe-area-inset-bottom,0px) - 18px)))!important}
}
@media (max-width:360px){
  .lg-body .lg-card-media,.lg-body .lg-grid.is-list .lg-card-media{width:48px;height:48px;margin-right:10px}
  .lg-body .lg-card-title,.lg-body .lg-grid.is-list .lg-card-title,.lg-body .lg-card-price,.lg-body .lg-grid.is-list .lg-card-price{margin-left:10px}
  .lg-body .lg-card-buy,.lg-body .lg-grid.is-list .lg-card-buy{width:60px}
  .lg-body .lg-card-price b{font-size:15px}
  .lg-body .lg-sorts{gap:6px}
  .lg-body .lg-sort{font-size:11.5px}
  .lg-body input::placeholder,.lg-body textarea::placeholder{font-size:14px}
}

/* 页面按 85% 缩放显示时，禁止安卓 Chrome 自动放大文字（text autosizing） */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}

/* ===== ref style block 9 ===== */

:root{
  --ui-accent:#5B5CF6;
  --ui-accent-hover:#5455E2;
  --ui-accent-soft:rgba(91,92,246,.14);
  --ui-focus-ring:rgba(91,92,246,.22);
  --dj-accent-rgb:91,92,246;
}
html.dark{
  --ui-accent:#6F70F7;
  --ui-accent-hover:#8485F8;
  --ui-accent-soft:rgba(91,92,246,.26);
  --ui-focus-ring:rgba(91,92,246,.34);
}
