/* 基础重置 & 移动端优化 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* CSS变量 - 统一主题色 */
:root {
  --primary-color: #8c414d;
  --primary-light: #a65560;
  --primary-dark: #6d313b;
  --secondary-color: #f5f5f5;
  --accent-color: #d4a574;
  --text-primary: #333;
  --text-secondary: #666;
  --text-muted: #999;
  --border-color: #e0e0e0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
  --transition-base: all 0.3s ease;
  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
}

/* 酒红色样式 - 统一主题色 */
.text-maroon,
.text-primary {
  color: var(--primary-color) !important;
}

.text-maroon:hover {
  color: var(--primary-light) !important;
}

/* 酒红色按钮样式 */
.btn-maroon,
.btn-primary {
  background-color: var(--primary-color) !important;
  border: 1px solid var(--primary-color) !important;
  color: white !important;
  transition: var(--transition-base);
}

.btn-maroon:hover,
.btn-primary:hover {
  background-color: var(--primary-light) !important;
  border-color: var(--primary-light) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-maroon:focus,
.btn-maroon:active,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  color: white !important;
  box-shadow: 0 0 0 0.2rem rgba(140, 65, 77, 0.5) !important;
}

.btn-outline-primary {
  background-color: transparent !important;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  transition: var(--transition-base);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: white !important;
  transform: translateY(-2px);
}

html {
  font-size: 14px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: #fff;
  overflow-x: hidden;
}

ul,li,ol{ list-style:none; margin: 0px; padding: 0px;}
a { text-decoration: none;  color: #3e3e3e;}
a:hover, a:visited, a:active, a:focus { text-decoration: none; }

/* 登录弹窗样式 */
.modal-content {
  background-color: #e6f2ff;
  border-radius: 10px;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.login_index {
  padding: 15px;
}

.login_index .form-control {
  border-radius: 10px;
  padding: 10px 15px;
  border: 1px solid #ccc;
  margin-bottom: 15px;
  background-color: white;
  width: 100%;
}

.login_code {
  display: flex;
  align-items: center;
}

.login_code .col-xs-7 {
  flex: 7;
  padding-right: 10px;
}

.login_code .col-xs-5 {
  flex: 5;
}

.login_code_img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  background-color: white;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 15px;
}

.login_code_img img {
  max-width: 100%;
  max-height: 100%;
}

.login_link {
  text-align: right;
  margin-bottom: 15px;
}

.login_link a {
  color: #3498db;
  text-decoration: none;
  font-size: 14px;
}

.btn-primary {
  background-color: #007bff;
  border: none;
  border-radius: 10px;
  padding: 12px 30px;
  margin-bottom: 15px;
  font-weight: 500;
  font-size: 16px;
  width: 100%;
  color: white;
}

.btn-info {
  background-color: #e6f2ff;
  border: none;
  border-radius: 10px;
  padding: 12px 30px;
  font-weight: 500;
  font-size: 16px;
  width: 100%;
  color: #007bff;
}


.procategory_list {
  display: flex;
  width: 100%;
  margin: 0 auto;
  padding: 0px;
  box-sizing: border-box;
}

.procategory_list > div.pro_class {
  width: 25%;
  position: relative;
  box-sizing: border-box;
  transition: transform 0.3s ease; /* 悬停动效 */
}

.procategory_list a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: #333;
}
 .procategory_list a.imgcard {
    transition: transform 0.3s;
}
.procategory_list a.imgcard:hover {
    transform: translateY(-5px);
}

.procategory_list img {
  width: 100%;
  object-fit: contain; /* 保持图片比例 */
  object-position: center;
  padding: 5px;
  border-radius: 50px;
  box-sizing: border-box;
  transition: transform 0.3s ease;
}

.procategory_list span {
  display: block;
  text-align: center;
  padding: 5px;
  font-size: 14px;
  line-height: 1.4;
  background: #f8f8f8;
}

/* 响应式处理 */

@media (max-width: 768px) {
  .procategory_list {
    grid-template-columns: repeat(5, 100px); /* 移动端横向滚动 */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0px;
  }
  
  .procategory_list span {
    font-size: 12px;
    padding: 3px;
  }
}

/* 悬停效果 */
@media (hover: hover) {
  .procategory_list > div.pro_class:hover {
    transform: translateY(-5px);
  }
  .procategory_list img:hover {
    transform: scale(1.03);
  }
}

.goods-list-item{ position:relative; }
.goods-list-item .shipping{ position:absolute; top:7px; left:20px; padding:0px 5px; background-color:#ccc; }
.goods-list-item .original{ color:#aaa; font-size: 14px;}
.goods-list-item .price{ font-weight:bold; color:#ff5b00;}
.goods-list-item .view span{     --ds-button-color: #DBEAFE;
    --button-text-color: #4D6BFE;
    --button-border-color: rgba(0, 122, 255, 0.15);
    --ds-button-hover-color: #C3DAF8;    border: 1px solid #4D6BFE; background-color: #DBEAFE;
    border-radius: 14px;
    justify-content: center;
    align-items: center;
    height: 28px;
    margin-right: 10px;
    padding: 0 7px;
    display: flex; }

.met_module2_list li.list_3{ margin-bottom:1rem; }
.news-list-info span,.news-list-info em{ color:#999;}
.news_desc{ color:#aaa; }
.news_desc  p{ margin-bottom: 0.25rem !important;}
.met_editor{word-wrap: break-word; width:100%;  margin-top: 15px;} 
.met_editor p{ margin-bottom:0px !important; }
.met_editor img{max-width:100% ;  max-height: 200px;  margin-top: 10px; margin-bottom: 10px; border-radius: var(--bs-border-radius-lg) !important;}
.met_infos img{ float:left; }
.met_infos .met_source,.met_infos .met_time ,.met_infos .met_hits,.met_infos .met_source a{ font-size:14px; color:#aaa; }
h1.met_title{ font-weight:bold; }
.ShowTag{ color:#999; font-size:14px;}
.ShowTag a{ border:1px solid #C3DAF8; margin-bottom:5px; margin-right:5px;color:#4D6BFE; border-radius: 5px; display: inline-block; padding: 0px 4px;font-size: 14px;}
.met_editor .art-c{ color:#999; }
.met_page .met_page_preinfo span,.met_page .met_page_next span{ border:1px solid #aaa; background-color: #C3DAF8; padding:3px 0px 3px 10px; margin-right: 10px; border-radius: 3px; }
.news_related .title{ color:#333; font-size:16px; font-weight:bold; }
.news_related .desc{ color:#999; }



.tem_index_product_ph .rax-view{box-sizing: border-box;display: flex;position: relative;flex-direction: row;flex-shrink: 0;place-content: flex-start space-between;border-width: 0vw;border-style: solid;border-color: black;margin: 0vw auto;padding: 0vw 0.8vw;min-width: 0vw;align-items: center;width: 96.1333vw;height: 11.7333vw;background-color: #f1f1f1;border-radius: 6.4vw;}
.tem_index_product_ph .rax-view li{box-sizing: border-box;display: flex;position: relative;flex-direction: column;flex-shrink: 0;place-content: flex-start center;border-width: 0vw;border-style: solid;border-color: black;margin: 0vw;padding: 0vw;min-width: 0vw;align-items: center;width: 29.3333vw;height: 10.1333vw;border-radius: 5.0667vw;transform: translate3d(0px, 0px, 0px);z-index: 100;}
.tem_index_product_ph .rax-view li.active{box-sizing: border-box;display: flex;position: relative;flex-direction: column;flex-shrink: 0;place-content: flex-start center;border-width: 0vw;border-style: solid;border-color: black;margin: 0vw;padding: 0vw;min-width: 0vw;align-items: center;width: 29.3333vw;
height: 10.1333vw;border-radius: 5.0667vw;transform: translate3d(0px, 0px, 0px);z-index: 100;background-color: #5ea5db; color:#fff;}
.tem_index_product_ph .rax-view li.active span{ color:#fff;}
.tem_index_product_ph .rax-view li span{border-width: 0px;border-style: solid;border-color: black;position: relative;box-sizing: border-box;display: block;flex-direction: column;align-content: flex-start;flex-shrink: 0;font-size: 4.2667vw;white-space: pre-wrap;font-family: PingFangSC-Medium;line-height: 4.2667vw;color: rgb(51, 51, 51);}
.tem_index_product_ph .ph-tabs{}
.tem_index_product_ph .ph-tabs .ph-item{box-sizing: border-box;display: flex;position: relative;flex-direction: column;flex-shrink: 0;place-content: flex-start;border-width: 0vw;border-style: solid;border-color: black;margin: 2.4vw auto;padding: 3.7333vw 3.2vw 4vw;min-width: 0vw;width: 96.2vw;background-color:#f1f1f1;border-radius: 3.2vw;}
.tem_index_product_ph .ph-tabs .ph-item li{box-sizing: border-box;display: flex;position: relative;flex-direction: row;flex-shrink: 0;align-content: flex-start;border-width: 0vw;border-style: solid; border-color: black;margin: 0vw 0vw 3.2vw;padding: 0vw;min-width: 0vw;width: 88.8vw;height: 31.7333vw;}
.tem_index_product_ph .ph-tabs .ph-item li:last-child{ margin-bottom:0px;}
.tem_index_product_ph .ph-tabs .ph-item li a{display: flex;}
.swiper-container-ph{width: 96.1333vw;margin: 0vw auto;}
.tem_index_product_ph .ph-tabs .ph-item li .top-icon{
    width: 9.0667vw;
    height: 10.6667vw;
    position: absolute;
    top: -1.3333vw;
    left: 1.8667vw;
    z-index: 1;
}
.tem_index_product_ph .ph-tabs .ph-item li .ph-item-info h3{border-width: 0px;
    border-style: solid;
    border-color: black;
    position: relative;
    box-sizing: border-box;
    display: block;
    flex-direction: column;
    align-content: flex-start;
    flex-shrink: 0;
    font-size: 3.7333vw;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 4.8vw;
    color: rgb(51, 51, 51);
    overflow: hidden;
}
.tem_index_product_ph .ph-tabs .ph-item li .g-price em{border-width: 0px;
    border-style: solid;
    border-color: black;
    position: relative;
    box-sizing: border-box;
    display:inline-block;
    flex-direction: row;
    align-content: flex-start;
    flex-shrink: 0;
    font-size: 3.2vw;
    white-space: pre-wrap;
    color: rgb(255, 80, 0);
    height: 4vw;
    align-items: center;
    line-height: normal;
   font-style:normal;
}
.tem_index_product_ph .ph-tabs .ph-item li .g-price .z-p{border-width: 0px;
    border-style: solid;
    border-color: black;
    position: relative;
    box-sizing: border-box;
    display: inline-block;
    flex-direction: row;
    align-content: flex-start;
    flex-shrink: 0;
    font-size: 4.8vw;
    white-space: nowrap;
    font-family: PingFangSC-Medium;
    height: 4.8vw;
    color: rgb(255, 80, 0);
    text-overflow: ellipsis;
    align-items: center;
    line-height: normal;
}
.tem_index_product_ph .ph-tabs .ph-item li .g-price .g-hits{border-width: 0px;
    border-style: solid;
    border-color: black;
    position: relative;
    box-sizing: border-box;
    display: inline-block;
    flex-direction: row;
    align-content: flex-start;
    flex-shrink: 0;
    font-size: 3.2vw;
    white-space: nowrap;
    height: 3.7333vw;
    color: rgb(153, 153, 153);
    text-overflow: ellipsis;
    margin-left: 1.3333vw;
    align-items: center;
    line-height: normal;
    overflow: hidden;
}
.tem_index_product_ph .ph-tabs .ph-item li .g-xq img{width: 3.4667vw;height: 3.4667vw;margin: 0vw 0.5333vw;object-fit: contain;}
.tem_index_product_ph .ph-tabs .ph-item li .g-xq .sales{border-width: 0px;
    border-style: solid;
    border-color: black;
    position: relative;
    box-sizing: border-box;
    display:inline-block;
    flex-direction: column;
    align-content: flex-start;
    flex-shrink: 0;
    font-size: 3.4667vw;
    white-space: pre-wrap;
    color: rgb(255, 80, 0);
    margin-left: 1.0667vw;
    margin-right: 1.0667vw;
}

.tem_index_product_ph .ph-tabs .ph-item .ph-item-img{box-sizing: border-box;display: flex;position: relative;flex-direction: column;flex-shrink: 0;align-content: flex-start;border-width: 0vw;border-style: solid;border-color: black;margin: 0vw;padding: 0vw;min-width: 0vw;width: 31.7333vw;height: 31.7333vw;border-radius: 1.6vw;overflow: hidden;}
.tem_index_product_ph .ph-tabs .ph-item .ph-item-info{box-sizing: border-box;display: flex;position: relative;flex-direction: column;flex-shrink: 0;place-content: flex-start space-between;border-width: 0vw;border-style: solid;border-color: black;margin: 0vw 0vw 0vw 3.2vw;padding: 0vw;min-width: 0vw;
width: 53.8667vw;height: 31.7333vw;}


/*分页*/
.met_pager{text-align:center; margin: 10px 0px 30px 0px;}
.met_pager a{display:inline-block; padding:0px 10px;height:30px;border:1px solid #e0e0e0;color:#aaa;text-align:center; text-align:center;line-height:30px;}
.met_pager a:hover{border:1px solid #a0a0a0;color:#aaa;}
.met_pager .PreSpan,.met_pager .NextSpan{display:inline-block; padding:0px 10px;height:30px;border:1px solid #e0e0e0;background:#f0f0f0;color:#ccc;text-align:center;line-height:30px;}
.met_pager .PreA,.met_pager .NextA{height:28px;min-width:58px;color:#aaa;line-height:28px;_width:58px;}
.met_pager .PreSpan,.met_pager .PreA{margin-right:6px;}
.met_pager .NextSpan,.met_pager .NextA{margin-left:6px;}
.met_pager .firstPage,.met_pager .lastPage{height:28px;min-width:40px;color:#aaa;font-weight:bold;line-height:28px;_width:40px;}
.met_pager .Ahover{background:#f0f0f0;color:#aaa;}
.met_pager .PageText{display:none;margin-left:10px;color:#aaa; }
.met_pager #metPageT,#metPageB{border:1px solid #e0e0e0;color:#aaa;text-align:center;}
.met_pager #metPageT{display:none;padding:6px 5px 5px;width:20px;}
.met_pager #metPageB{display:none;padding:6px 0 5px;min-width:40px;font-weight:bold;cursor:pointer;_width:40px;}
*html .met_pager #metPageT{height:13px;line-height:13px;}
*html .met_pager #metPageB{padding:0;height:28px;line-height:20px;}
*+html .met_pager #metPageT{height:13px;line-height:13px;}
*+html .met_pager #metPageB{padding:0;height:28px;line-height:20px;}

/* ========================================
   移动端优化增强样式
   ======================================== */

/* 产品卡片操作按钮 */
.product-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding: 0 10px 10px;
}

.product-actions .btn-view {
  flex: 1;
  padding: 8px 12px;
  background: var(--primary-color);
  color: #fff;
  border-radius: var(--border-radius-sm);
  font-size: 12px;
  text-align: center;
  text-decoration: none;
  transition: var(--transition-base);
}

.product-actions .btn-view:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.product-actions .btn-add-cart {
  width: 40px;
  height: 36px;
  background: var(--primary-light);
  border: none;
  border-radius: var(--border-radius-sm);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-actions .btn-add-cart:hover {
  background: var(--primary-color);
  transform: scale(1.1);
}

.product-actions .btn-add-cart:active {
  transform: scale(0.95);
}

/* 产品卡片操作按钮（新品区域） */
.product-card-actions {
  display: flex;
  gap: 8px;
  padding: 0 10px 10px;
}

.product-card-actions .btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 12px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-base);
}

.product-card-actions .btn-outline-primary {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.product-card-actions .btn-outline-primary:hover {
  background: var(--primary-color);
  color: #fff;
}

.product-card-actions .btn-primary {
  width: 40px;
  flex: none;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-actions .btn-primary:hover {
  transform: scale(1.1);
}

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 45px;
  height: 45px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
  z-index: 999;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.back-to-top:active {
  transform: translateY(-1px);
}

/* 底部导航购物车数量角标 */
.bottom-nav-cart {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  background: #ff4757;
  color: #fff;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.cart-badge:empty {
  display: none;
}

/* 骨架屏加载效果 */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-card {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  background: #fff;
}

.skeleton-image {
  width: 100%;
  height: 150px;
}

.skeleton-text {
  height: 14px;
  margin: 10px;
  border-radius: 4px;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-text.price {
  width: 40%;
  height: 18px;
  background: linear-gradient(90deg, #ffe0e0 25%, #ffd0d0 50%, #ffe0e0 75%);
  background-size: 200% 100%;
}

/* 产品卡片优化 */
.product-item {
  background: #fff;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.product-card {
  background: #fff;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* 加载提示 */
.loading-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 15px 25px;
  border-radius: var(--border-radius-md);
  font-size: 14px;
  z-index: 9999;
  display: none;
}

.loading-toast.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 响应式优化 */
@media (max-width: 575.98px) {
  .product-actions {
    gap: 6px;
    padding: 0 8px 8px;
  }
  
  .product-actions .btn-view {
    padding: 6px 10px;
    font-size: 11px;
  }
  
  .product-actions .btn-add-cart {
    width: 36px;
    height: 32px;
    font-size: 14px;
  }
  
  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 70px;
    right: 15px;
    font-size: 18px;
  }
}