/* Keep all phone layouts untouched; desktop starts at 1024px. */
#desktop-header { display: none; }
@media (min-width: 1024px) {
  html { --mall-width: min(1280px, calc(100vw - 64px)); --mall-accent: #dc591b; scroll-padding-top: 136px; }
  html body { max-width: none !important; margin: 0; padding-top: 76px; background: #f5f6f8; font-family: "Microsoft YaHei", "PingFang SC", sans-serif; }
  #desktop-header { display: block; position: fixed; inset: 0 0 auto; height: 76px; z-index: 990; background: white; border-bottom: 1px solid #e6e8eb; }
  #desktop-header .desktop-inner { width: var(--mall-width); height: 100%; margin: auto; display: flex; align-items: center; gap: 24px; }
  #desktop-header a { text-decoration: none; color: #454545; font-size: 14px; white-space: nowrap; }
  #desktop-header a:hover, #desktop-header a[aria-current] { color: var(--mall-accent); }
  #desktop-header .desktop-brand { font-size: 24px; font-weight: 700; color: var(--mall-accent); display: flex; align-items: center; gap: 8px; }
  #desktop-header img { width: 36px; height: 36px; }
  #desktop-header nav { display: flex; gap: 20px; }
  #desktop-header form { flex: 1; display: flex; min-width: 160px; height: 40px; border: 1px solid var(--mall-accent); border-radius: 4px; overflow: hidden; }
  #desktop-header input { width: 0; flex: 1; min-width: 0; padding: 0 14px; border: 0; outline: none; background: white; font: inherit; font-size: 14px; }
  #desktop-header button { border: 0; background: var(--mall-accent); color: white; padding: 0 20px; cursor: pointer; font: inherit; font-size: 14px; }
  #desktop-header :focus-visible { outline: 2px solid #173f8f; outline-offset: 3px; }
  #desktop-header form:focus-within { outline: 2px solid #173f8f; outline-offset: 3px; }
  html body uni-page-body { max-width: var(--mall-width) !important; width: var(--mall-width); margin: 0 auto; min-height: calc(100vh - 76px); }
  html body .u-navbar, html body .uni-page-head { max-width: var(--mall-width) !important; top: 76px !important; }
  html body .uni-tabbar { display: none !important; }
  html body uni-page-wrapper { padding-bottom: 0 !important; }
  html body .footerWrap, html body .amountFooter, html body .person-button, html body .add_shou { max-width: var(--mall-width) !important; }
  html body .u-mask, html body .u-drawer, html body .uni-popup { max-width: none !important; }
  html body .popup-content, html body .grace-product-attr { max-width: 620px !important; margin-left: auto; margin-right: auto; }
  html body .popup-layer { max-width: none !important; position: fixed !important; }
  html body .mescroll-uni-fixed { max-width: var(--mall-width) !important; top: 120px !important; }
  html body .u-waterfall { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 20px 0 !important; }
  html body .u-waterfall > .u-column { display: contents !important; }
  html body .u-waterfall > .u-column > * { min-width: 0; }
  html body .goodsCard { margin: 0 !important; width: 100% !important; height: 100%; background: white; overflow: hidden; border: 1px solid #e9eaed; border-radius: 6px; box-sizing: border-box; cursor: pointer; transition: box-shadow .18s, border-color .18s; }
  html body .goodsCard:hover { border-color: #e3a383; box-shadow: 0 5px 16px #24242412; }
  html body .goodsCard > .u-image { height: 240px !important; background: white !important; }
  html body .goodsCard .u-image__image > div { background-size: contain !important; }
  html body .goodsCard .priceWrap { padding: 16px !important; }
  html body .goodsCard .name { font-size: 15px !important; line-height: 23px !important; height: 46px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 12px; }
  html body .goodsPrice { font-size: 22px !important; }
  html body .homeBody .nav { position: relative; top: auto; height: auto; background: #df641f; }
  html body .homeBody .head-box { padding: 20px 0 0; }
  html body .homeBody .home-header { padding: 0; }
  html body .homeBody .swipe-banner uni-swiper { height: 280px !important; }
  html body .homeBody .homeActivityt { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0; }
  html body .homeBody .homeActivityt .u-image__image { height: 220px !important; }
  html body .homeBody .homeActivityt .u-image__image > div { background-size: contain !important; background-position: center !important; }
  html body .homeBody .cardTit { margin: 30px 0 16px; font-size: 24px; }
  html body .homeBody { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); column-gap: 24px; }
  html body .homeBody > * { min-width: 0; grid-column: 1 / -1; }
  html body .homeBody > .head-box { grid-column: 1; }
  html body .homeBody > .homeActivityt { grid-column: 2; grid-template-columns: 1fr; gap: 12px; margin: 20px 0 0; align-content: start; }
  html body .homeBody .homeActivityt .u-image__image { height: 148px !important; }
  html body .homeBody .swipe-banner uni-swiper { height: 220px !important; }
  html body .class_scoll { height: calc(100vh - 76px) !important; gap: 24px; }
  html body .class_scoll .scroll_left { width: 200px !important; flex: 0 0 200px; height: 100% !important; background: white; }
  html body .class_scoll .scroll_right { flex: 1; width: auto !important; min-width: 0; height: 100% !important; padding-right: 0; }
  html body .class_scoll .scroll_left_item { padding: 18px 20px; height: auto; font-size: 15px; cursor: pointer; }
  html body .class_scoll .right_scoll_items_img { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 20px 0; }
  html body .class_scoll .img_items { width: auto !important; margin: 0; padding: 16px 8px; box-sizing: border-box; border: 1px solid #e6e8eb; background: white; border-radius: 4px; cursor: pointer; }
  html body .class_scoll .img_items:hover { border-color: var(--mall-accent); }
  html body .class_scoll .swiperBox uni-swiper { height: 200px !important; }
  html[data-mall-page="auth"] body uni-page-body { max-width: 560px !important; }
  html body .goods-detail-container .details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 32px; padding: 28px 0 90px; }
  html body .goods-detail-container .details > * { min-width: 0; grid-column: 1 / -1; margin: 0; }
  html body .goods-detail-container .details > .swiper { grid-column: 1; grid-row: 1 / 4; height: 520px !important; width: 100%; background: white; }
  html body .goods-detail-container .swiper .u-image__image > div { background-size: contain !important; }
  html body .goods-detail-container .details > .topPricePanel { grid-column: 2; grid-row: 1; padding: 24px !important; }
  html body .goods-detail-container .details > .order-shop { grid-column: 2; grid-row: 2; }
  html body .goods-detail-container .details > .enterShop { grid-column: 2; grid-row: 3; }
  html body .goods-detail-container .goodsDetailsImgs { max-width: 900px; width: 100%; margin: auto; box-sizing: border-box; }
  html body .goods-detail-container .goodsDetailsImgs img { max-width: 100% !important; height: auto; }
  html body .goods-detail-container .footerWrap { padding: 12px 24px; box-sizing: border-box; border-top: 1px solid #e6e8eb; }
  html body .productBuyBtn { min-width: 180px; cursor: pointer; }
  html body .decorative-bg { display: none; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  #desktop-header .desktop-inner { gap: 14px; }
  #desktop-header nav { gap: 12px; }
  html body .u-waterfall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html body .goods-detail-container .details > .swiper { height: 420px !important; }
}
@media (prefers-reduced-motion: reduce) { html body .goodsCard { transition: none; } }
