/* WORLDHOME storefront presentation. No business rules or API overrides. */
:root {
  --wh-ink: #233e32;
  --wh-muted: #64735f;
  --wh-subtle: #788571;
  --wh-paper: #f6f7f2;
  --wh-field: #edf1e7;
  --wh-line: #e1e7da;
  --wh-accent: #294e3b;
  --wh-radius: 12px;
  --wh-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* Preserve the icon fonts supplied by uni-app and uView. */
body, .uni-page-body, uni-page-head, uni-tabbar,
uni-view, uni-text:not([class*="icon"]), uni-input, uni-button,
uni-rich-text, p, h1, h2, h3, td {
  font-family: var(--wh-font) !important;
  -webkit-font-smoothing: antialiased;
}
.uni-page-body { color: var(--wh-ink); background: var(--wh-paper); font-size: 14px; }
uni-page { box-shadow: none !important; }
uni-page-head .uni-page-head { background: var(--wh-ink) !important; color: #fff !important; }
uni-page-head .uni-page-head__title { font-size: 14px !important; font-weight: 600 !important; letter-spacing: .4px; }
uni-page-head .uni-page-head-btn { min-width: 40px; }
uni-page-head .uni-page-head-btn svg path { fill: #fff !important; }
uni-page-head .uni-page-head-btn, uni-page-head .uni-btn-icon { color: #fff !important; }
uni-page-refresh { width: min(100vw, 450px) !important; }

/* The original mobile canvas and fixed navigation remain centered on desktop. */
uni-tabbar.uni-tabbar-bottom {
  left: var(--window-left, 0px) !important;
  right: var(--window-right, 0px) !important;
  width: auto !important;
}
uni-tabbar .uni-placeholder { width: 100% !important; }
.uni-tabbar { border-top: 1px solid var(--wh-line) !important; box-shadow: none !important; }
.uni-tabbar__item { min-height: 50px; cursor: pointer; }
.uni-tabbar .uni-tabbar__label { font-size: 11px !important; }
.uni-tabbar__label[style*="250, 34, 9"] { color: var(--wh-accent) !important; }
.uni-tabbar__icon img[src*="-active"] { filter: hue-rotate(100deg) saturate(.4) brightness(.65); }

/* Native page-decoration components. */
.page-items { background: var(--wh-paper); padding-bottom: 12px; }
.page-items > .diy-richText:first-child { padding: 0 !important; }
.page-items > .diy-richText:first-child img { display: block !important; width: 98px !important; margin: 0 auto !important; mix-blend-mode: multiply; }
.page-items > .diy-richText:first-child ._div { padding-top: 18px !important; padding-bottom: 16px !important; }
.page-items > .diy-richText:first-child ._p:first-child { margin-bottom: 12px !important; }
.page-items > .diy-richText:first-child h1 { font-size: 24px !important; font-weight: 500 !important; }
.page-items:has(.diy-goods) > .diy-richText:first-child img { width: 88px !important; }
.page-items:has(.diy-goods) > .diy-richText:first-child ._div { padding-top: 16px !important; padding-bottom: 16px !important; }
.page-items .diy-banner { box-sizing: border-box; height: auto !important; padding-left: 16px !important; padding-right: 16px !important; }
.page-items .diy-banner .swiper-box { overflow: hidden; height: auto !important; aspect-ratio: 794 / 465; }
.page-items .diy-banner .slide-image { height: 100% !important; }
.page-items .diy-banner .indicator-dots { bottom: 13px !important; }
.page-items .diy-banner .dots-item { width: 5px !important; height: 5px !important; margin: 0 3px !important; opacity: .5; }
.page-items .diy-banner .dots-item.active { width: 17px !important; border-radius: 8px !important; opacity: 1; }
.page-items .diy-search { padding: 14px 16px !important; }
.page-items .diy-search .inner { height: 44px !important; border-radius: 10px !important; cursor: pointer; }
.page-items .diy-search .search-input { display: flex; align-items: center; height: 44px !important; padding: 0 13px !important; font-size: 13px !important; line-height: 1.5 !important; color: var(--wh-muted) !important; }
.page-items .diy-search .search-input > uni-text:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-items .diy-navBar { padding: 3px 16px 8px !important; }
.page-items .diy-navBar .data-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; margin: 0 !important; }
.page-items .diy-navBar .data-list::after { display: none !important; }
.page-items .diy-navBar .item-nav { width: auto !important; float: none !important; margin: 0 !important; border-radius: 9px; cursor: pointer; }
.page-items .diy-navBar .item-image { width: 100%; margin-bottom: 7px !important; }
.page-items .diy-navBar .item-image .image { width: 100% !important; height: 56px !important; border-radius: 8px; overflow: hidden; }
.page-items .diy-navBar .item-image .image > div { background-size: cover !important; background-position: center !important; }
.page-items .diy-navBar .item-text { font-size: 12px; font-weight: 500; line-height: 20px; }
.page-items .diy-title { padding: 26px 16px 16px !important; }
.page-items .diy-title .title-content { align-items: center; }
.page-items .diy-title .title { line-height: 1.5; letter-spacing: -.35px; }
.page-items .diy-title .title uni-text { font-size: 20px !important; font-weight: 600 !important; }
.page-items .diy-title .more-content { min-height: 40px; display: flex; align-items: center; margin: -8px 0 -8px 12px !important; font-size: 12px !important; white-space: nowrap; cursor: pointer; }
.page-items .diy-title .desc-content { margin-top: 5px !important; line-height: 1.85; }
.page-items .diy-title .desc-content uni-text { color: var(--wh-muted) !important; font-size: 12px !important; }

/* One consistent card geometry for both the homepage and native product grid. */
.page-items .diy-goods .goods-list.column-2,
.goods-list.column-2:not(.page-items .goods-list) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
  padding: 0 16px 12px !important;
}
.goods-list.column-2::after { display: none !important; }
.goods-list.column-2 > .goods-item {
  width: 100% !important;
  min-width: 0;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: var(--wh-radius) !important;
  background: #fff;
  overflow: hidden;
  box-shadow: none !important;
  cursor: pointer;
}
.goods-list.column-2 .goods-image { height: 0 !important; padding-bottom: 76% !important; background: var(--wh-field) !important; }
.goods-list.column-2 .goods-image::after { display: none !important; }
.goods-list.column-2 .goods-image .image { inset: 12px !important; width: calc(100% - 24px) !important; height: calc(100% - 24px) !important; mix-blend-mode: multiply; }
.goods-list.column-2 .goods-image .image > div { background-size: contain !important; background-position: center !important; }
.goods-list.column-2 .goods-info, .goods-list.column-2 .detail { padding: 12px !important; background: white; }
.goods-list.column-2 .goods-name { height: 40px !important; min-height: 40px; font-size: 14px !important; line-height: 20px !important; font-weight: 600; color: var(--wh-ink) !important; margin: 0 0 7px !important; }
.goods-list.column-2 .goods-selling { height: 18px; min-height: 18px !important; font-size: 12px !important; line-height: 18px; margin: 0 0 10px !important; }
.goods-list.column-2 .goods-selling .selling { color: var(--wh-muted) !important; }
.page-items .diy-goods .footer { position: static !important; min-height: 44px; gap: 4px; align-items: center !important; }
.page-items .diy-goods .goods-price { min-width: 0; overflow: visible !important; line-height: 21px; }
.page-items .diy-goods .goods-price .value { font-size: 16px !important; font-weight: 600; letter-spacing: -.45px; }
.page-items .diy-goods .goods-price .unit { font-size: 10px !important; }
.page-items .diy-goods .goods-price::after { content: '演示价格'; display: block; color: var(--wh-muted); font-size: 11px; line-height: 17px; font-weight: 400; }
.page-items .diy-goods .btn-cart { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer; }
.page-items .diy-goods .cart-icon { font-size: 22px !important; }
.goods-list.column-2 .detail-price { min-height: 39px; padding-top: 6px; }
.goods-list.column-2 .detail-price .goods-price { color: var(--wh-accent) !important; font-size: 16px !important; font-weight: 600; }
.goods-list.column-2 .detail-price::after { content: '演示价格'; display: block; margin-top: 4px; font-size: 11px; color: var(--wh-muted); }
.goods-price, .floor-price { font-variant-numeric: tabular-nums; }
.goods-list.column-1 { padding: 0 16px 16px !important; }
.goods-list.column-1 > .goods-item { width: 100% !important; box-sizing: border-box; padding: 14px !important; margin: 0 0 12px !important; border-radius: 12px; background: #fff; cursor: pointer; }
.goods-list.column-1 .goods-item-left { flex: 0 0 108px; width: 108px !important; height: 92px; margin-right: 14px !important; border-radius: 8px; background: var(--wh-field) !important; overflow: hidden; }
.goods-list.column-1 .goods-item-left .image { width: 100% !important; height: 100% !important; }
.goods-list.column-1 .goods-item-left .image > div { background-size: contain !important; background-position: center !important; }
.goods-list.column-1 .goods-item-right { min-width: 0; }
.goods-list.column-1 .goods-name { margin-top: 0 !important; font-size: 14px !important; line-height: 21px !important; font-weight: 600; color: var(--wh-ink) !important; }
.goods-list.column-1 .desc-selling-point { max-width: 100%; font-size: 12px !important; color: var(--wh-muted) !important; }
.goods-list.column-1 .price-x { color: var(--wh-accent) !important; font-size: 16px !important; font-weight: 600; }

/* Native search controls, list toggles and sorting states. */
.index-cont-search { min-height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 10px !important; background: #fff !important; color: var(--wh-muted); cursor: pointer; }
.index-cont-search .search-text { font-size: 13px !important; color: var(--wh-muted) !important; }
.index-cont-search .search-icon { font-size: 17px !important; color: #7b8c72; }
.show-view { width: 44px !important; min-height: 44px; display: flex; align-items: center; justify-content: center; color: var(--wh-accent); cursor: pointer; }
.store-sort { background: var(--wh-paper) !important; padding: 2px 16px 12px !important; box-sizing: border-box; }
.store-sort .sort-item { min-height: 40px; border-radius: 8px; color: var(--wh-muted) !important; font-size: 13px !important; cursor: pointer; }
.store-sort .sort-item.active { color: var(--wh-accent) !important; font-weight: 600; background: #e9eee2; }
.search-button .button { min-width: 60px; min-height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--wh-accent) !important; color: white !important; font-size: 13px; cursor: pointer; }
.container:has(> .search-wrapper) { padding: 20px 16px !important; }
.container > .search-wrapper { gap: 10px; align-items: center; }
.container > .search-wrapper .search-input { background: #fff; border-radius: 10px; border: 1px solid var(--wh-line); }
.container > .search-wrapper .search-input-wrapper { min-height: 44px; }
.container > .search-wrapper .input { font-size: 14px !important; }
.container:has(> .search-wrapper):not(:has(.history))::after { content: '输入型号或关键词，找到适合的空间。'; display: block; padding: 30px 8px; font-size: 13px; line-height: 1.8; text-align: center; color: var(--wh-muted); }
.history { padding-top: 22px; }
.history .title { font-size: 15px !important; font-weight: 600; color: var(--wh-ink); }
.history .history-button { min-height: 40px; display: flex; align-items: center; padding: 0 16px !important; border-radius: 8px !important; background: #eaf0e3 !important; color: var(--wh-accent) !important; font-size: 13px !important; cursor: pointer; }

/* Native category list with a stable rail width at every screen size. */
.container:has(> .cate-left) { padding-left: 82px !important; }
.cate-left { background: #edf1e7 !important; width: 82px !important; }
.cate-left .type-nav { height: 56px !important; min-height: 56px; padding: 0 5px !important; font-size: 12px !important; line-height: 1.5 !important; color: var(--wh-muted); cursor: pointer; }
.cate-left .type-nav.selected { color: var(--wh-accent) !important; font-weight: 600; background: var(--wh-paper) !important; }
.cate-content { background: var(--wh-paper) !important; padding-left: 10px !important; padding-right: 12px !important; }
.cate-content .goods-list { background: transparent !important; }
.cate-content .goods-item--container { padding: 0 !important; margin-bottom: 12px !important; }
.cate-content .goods-item { display: flex; align-items: center; gap: 10px; padding: 12px !important; border-radius: 10px; background: #fff !important; cursor: pointer; }
.cate-content .goods-item-left { width: 84px !important; height: 84px !important; flex: 0 0 84px; margin: 0 !important; }
.cate-content .goods-item-left .image { width: 100% !important; height: 100% !important; }
.cate-content .goods-item-left .image > div { background-size: contain !important; background-position: center !important; }
.cate-content .goods-item-right { min-width: 0; min-height: 84px; }
.cate-content .goods-name { height: 40px; margin: 0 0 5px !important; font-size: 13px !important; line-height: 20px !important; font-weight: 500; color: var(--wh-ink) !important; }
.cate-content .goods-item-desc { margin-top: 0 !important; }
.cate-content .desc-footer { position: static !important; gap: 2px; min-height: 39px !important; }
.cate-content .price-x { font-size: 14px !important; font-weight: 600; color: var(--wh-accent) !important; margin-right: 0 !important; }
.cate-content .add-cart { display: flex; flex: 0 0 36px; align-items: center; justify-content: center; width: 36px; height: 40px; cursor: pointer; }

/* Product details and the existing SKU sheet. */
.images-swiper { background: #fff; padding: 16px 18px; }
.images-swiper .swiper-box { width: 100% !important; height: 265px !important; }
.images-swiper .slide-image .image > div { background-size: contain !important; background-position: center !important; }
.images-swiper .swiper-count { bottom: 21px !important; right: 23px !important; padding: 3px 10px !important; font-size: 11px !important; background: #233e3280 !important; }
.images-swiper + .goods-info { padding: 21px 20px !important; margin-top: 10px !important; }
.goods-info .info-item__top { margin-bottom: 16px; }
.goods-info .floor-price { font-size: 29px !important; font-weight: 600; letter-spacing: -.8px; color: var(--wh-accent) !important; }
.goods-info .floor-price__samll { color: var(--wh-accent) !important; font-size: 13px !important; }
.goods-info .block-left::after { content: '演示价格'; color: var(--wh-muted); font-size: 11px; margin-left: 10px; padding-top: 8px; }
.goods-info .goods-sales { font-size: 11px !important; color: var(--wh-muted) !important; }
.goods-info .info-item__name .goods-name { font-size: 20px !important; line-height: 1.5 !important; font-weight: 600; color: var(--wh-ink) !important; }
.goods-info .info-item_selling-point { margin-top: 10px; color: var(--wh-muted) !important; font-size: 13px !important; line-height: 1.9 !important; }
.goods-info .share-btn { color: var(--wh-muted) !important; min-width: 44px; min-height: 44px; }
.goods-content { margin-top: 12px !important; }
.goods-content > .item-title { display: none !important; }
.goods-content__detail { padding: 0 !important; }
.goods-content__detail ._p { line-height: 1.9; }
.goods-content__detail ._root { overflow: hidden; }
.goods-content__detail img { max-width: 100%; }
.footer-fixed .footer-container { background: #fff !important; padding-top: 9px !important; padding-bottom: 9px !important; border-top: 1px solid var(--wh-line); }
.footer-fixed .btn-item { border-radius: 8px !important; height: 44px !important; line-height: 44px !important; font-size: 13px !important; cursor: pointer; }
.footer-fixed .btn-wrapper { gap: 8px; border-radius: 8px !important; overflow: hidden; }
.footer-fixed .btn-item-deputy { background: #e5ecdd !important; color: var(--wh-accent) !important; }
.footer-fixed .fast-item { min-width: 44px; min-height: 44px; cursor: pointer; }
.goods-sku-popup .layer { border-radius: 18px 18px 0 0 !important; }
.goods-sku-popup .specification-header { padding: 24px 20px 20px !important; }
.goods-sku-popup .product-img > div { background-size: contain !important; background-position: center !important; }
.goods-sku-popup .inventory { font-size: 12px !important; color: var(--wh-muted) !important; margin-top: 10px !important; }
.goods-sku-popup .price { font-size: 25px !important; font-weight: 600; }
.goods-sku-popup .close { width: 44px !important; height: 44px !important; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.goods-sku-popup .close-item { width: 22px !important; height: 22px !important; }
.goods-sku-popup .number-box-view { padding: 20px !important; font-size: 14px; }
.goods-sku-popup .number-box .u-icon-plus, .goods-sku-popup .number-box .u-icon-minus { min-width: 36px; height: 40px !important; border-radius: 7px; }
.goods-sku-popup .number-box .u-number-input { height: 40px !important; }
.goods-sku-popup .sure { min-height: 46px; border-radius: 9px !important; font-size: 14px !important; cursor: pointer; }
.goods-sku-popup .btn-wrapper { gap: 8px; }

/* Empty states use the original illustration and original actions. */
.empty-content { padding: 86px 24px !important; }
.empty-content .empty-icon .image { width: 122px !important; height: 80px !important; opacity: .75; filter: grayscale(.55); }
.empty-content .tips { max-width: 270px; margin: 24px auto !important; color: var(--wh-muted) !important; font-size: 14px !important; line-height: 1.9; }
.empty-content .empty-ipt { display: inline-flex; align-items: center; justify-content: center; min-width: 142px; min-height: 44px; border: 0 !important; border-radius: 9px !important; background: var(--wh-accent) !important; color: #fff !important; font-size: 14px; cursor: pointer; }
.mescroll-empty .empty-tip, .mescroll-upwarp { color: var(--wh-muted) !important; font-size: 12px !important; }

/* Login and account screens, without changing their available services. */
.login .container { padding: 42px 24px !important; min-height: calc(100vh - 44px) !important; background: var(--wh-paper) !important; }
.login .header { margin-bottom: 30px !important; }
.login .header .title { font-size: 28px !important; font-weight: 600; color: var(--wh-ink) !important; }
.login .header .sub-title { font-size: 13px !important; line-height: 1.9; color: var(--wh-muted) !important; margin-top: 12px !important; }
.login .form-item { box-sizing: border-box; height: 56px !important; padding: 12px 14px !important; margin-bottom: 14px !important; border: 1px solid var(--wh-line) !important; border-radius: 10px; background: #fff; }
.login .form-item--input { font-size: 14px !important; min-width: 0; }
.login .captcha-sms { font-size: 12px !important; padding-right: 0 !important; }
.login .captcha .image { width: 90px !important; border-radius: 5px; }
.login .login-button { height: 48px !important; margin-top: 26px !important; border-radius: 9px !important; background: var(--wh-accent) !important; box-shadow: none !important; font-size: 15px; letter-spacing: 2px !important; cursor: pointer; }
.main-header { background: var(--wh-accent) !important; height: 150px !important; padding-left: 24px !important; }
.main-header .bg-image { opacity: 0; }
.main-header .user-content { color: #fff !important; }
.main-header .nick-name { font-size: 21px !important; font-weight: 500 !important; }
.main-header .login-tips, .main-header .mobile { color: #d9e5d1 !important; font-size: 13px !important; margin-top: 8px !important; }
.main-header .user-info { cursor: pointer; }
.my-asset { box-sizing: border-box; width: auto !important; margin: 12px 16px !important; padding: 22px 0 !important; border-radius: 12px; }
.my-asset .item-name { font-size: 12px !important; color: var(--wh-muted); }
.my-asset .item-value { font-size: 22px !important; color: var(--wh-accent) !important; }
.order-navbar { box-sizing: border-box; width: auto !important; margin: 12px 16px !important; padding: 20px 8px !important; border-radius: 12px !important; box-shadow: none !important; background: white; }
.order-navbar .item-name { font-size: 12px !important; color: var(--wh-muted); }
.order-navbar .item-icon { color: var(--wh-accent); }
.order-navbar-item { min-height: 56px; cursor: pointer; }
.my-service { box-sizing: border-box; width: auto !important; margin: 12px 16px !important; border-radius: 12px; overflow: hidden; background: white; }
.my-service .service-title { font-size: 16px !important; font-weight: 600; color: var(--wh-ink); }
.my-service .item-name { font-size: 12px !important; color: var(--wh-muted); }
.my-service .item-icon { color: var(--wh-accent); }
.my-service .service-item { min-height: 78px; cursor: pointer; }
.my-logout .logout-btn { min-height: 44px; margin: 18px 16px; border-radius: 9px; font-size: 14px; }

/* Feedback is purely visual; disabled-state validation stays with YoShop. */
[data-wh-action] { -webkit-tap-highlight-color: transparent; }
[data-wh-action]:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid #628552 !important;
  outline-offset: 3px;
  border-radius: 6px;
}
.login .form-item:focus-within, .search-input:focus-within { border-color: #628552 !important; }
.disabled, .noactived, .un-activate { cursor: default !important; }
@media (hover:hover) {
  [data-wh-action]:not(.disabled):hover { filter: brightness(.97); }
  .goods-list.column-2 > .goods-item:hover .goods-name { color: #4f7144 !important; }
}
@media (prefers-reduced-motion:no-preference) {
  [data-wh-action], .form-item { transition: background-color .16s ease, border-color .16s ease, opacity .16s ease; }
  [data-wh-action]:active { opacity: .8; }
}
@media (prefers-reduced-motion:reduce) {
  [data-wh-action], .form-item { transition: none !important; }
}
@media (max-width:360px) {
  .goods-list.column-2 { gap: 12px 10px !important; padding-left: 12px !important; padding-right: 12px !important; }
  .goods-list.column-2 .goods-info, .goods-list.column-2 .detail { padding: 10px !important; }
  .page-items .diy-goods .goods-price .value { font-size: 14px !important; }
  .cate-content .goods-item { padding: 9px !important; gap: 8px; }
  .cate-content .goods-item-left { width: 62px !important; height: 82px !important; flex-basis: 62px; }
  .cate-content .price-x { font-size: 13px !important; }
  .login .container { padding: 34px 18px !important; }
  .goods-info .floor-price { font-size: 26px !important; }
  .goods-info .block-left::after { margin-left: 7px; font-size: 10px; }
}
