@charset "utf-8";
/* CSS Document - Accessories List Styles */

/* Accessories List Main Container */
.accessories_list {
  width: 100%;
  height: auto;
  margin: 20px auto 20px;
  overflow: visible;
}

/* Sort Access Styles */
.sort_access {
  width: 65%;
  height: 40px;
  overflow: hidden;
}
.sort_access > dl > dt {
  width: 330px;
  float: left;
}
.sort_access > .page {
  margin: 2px 14px 0 0;
}
.sort_access > dl > dt > .tab {
  height: 24px;
  line-height: 24px;
  padding: 0 12px;
  margin: 8px 8px 0 0;
  cursor: pointer;
  color: #999;
  background: #f6f6f6;
  border: 1px #dedede solid;
  border-radius: 8px;
  float: left;
}
.sort_access > dl > dt > .tab:hover {
  color: #c77405;
  background: #fdf5ce;
  border: 1px #fbcb09 solid;
}
.sort_access > dl > dt > a.current {
  background: #22a3a7;
  border: #e7e7e7 solid 1px;
  color: #fff;
}

/* Access Header Styles */
.at_access {
  width: 100%;
  height: 40px;
  padding: 5px 0 5px;
  background: #ededed;
  border-radius: 40px;
}
.at_access > h1 {
  font: bold 18px/42px arial;
  text-align: left;
  color: #22a3a7;
  text-indent: 40px;
  display: inline-block;
  background: url(../images/svg/h1.svg) no-repeat 20px 13px;
  background-size: 12px;
}

/* Accessories List Items */
.accessories_list > ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-content: start;
  gap: 20px;
  width: 100%;
  height: auto;
  min-height: auto;
  padding: 0;
  margin: 0;
  position: relative;
  overflow: visible;
}
.accessories_list > ul > li {
  height: 480px;
  border: 1px solid #ededed;
  border-radius: 20px;
  margin: 0;
  background: #fff;
}
.accessories_list > ul > li:hover {
  border: 1px solid #22a3a7;
}

/* Product Images */
.accessories_list > ul > li > .pic {
  width: 260px;
  height: 260px;
  margin: 10px auto 8px;
}
.accessories_list > ul > li > .pic > img {
  width: 260px;
  height: 260px;
  border-radius: 15px;
}
.accessories_list > ul > li > .pic:hover {
  opacity: 0.9;
  filter: alpha(opacity=90);
  -moz-opacity: 0.9;
  -khtml-opacity: 0.9;
}

/* Product Text Content */
.accessories_list > ul > li > p {
  text-align: center;
  width: 260px;
  height: 78px;
  word-wrap: break-word;
  overflow: hidden;
  word-break: normal;
  margin: 10px auto 0;
  font: normal 14px/19px arial;
}
.accessories_list > ul > li > h2 {
  text-align: center;
  width: 260px;
  height: 78px;
  word-wrap: break-word;
  overflow: hidden;
  word-break: normal;
  margin: 10px auto 6px;
  font: normal 14px/19px arial;
}
.accessories_list > ul > li > p.re {
  height: 80px;
  overflow: hidden;
  display: block;
}
.accessories_list > ul > li > p.remark {
  height: 40px;
  overflow: hidden;
  text-align: left;
  display: block;
  color: red;
  background: url(../images/w-bg.png) repeat;
  position: absolute;
  top: 160px;
  left: 40px;
  padding: 2px 5px;
  line-height: 14px;
}
.accessories_list > ul > li:hover h2.remark {
  background: #fff;
}
.accessories_list > ul > li > p > input {
  margin-right: 3px;
  vertical-align: text-bottom;
}
.accessories_list > ul > li > p > a:hover {
  color: #222222;
}

/* Product Pricing */
.accessories_list > ul > li > .price {
  font-weight: bold;
  text-align: center;
  line-height: 30px;
  height: 30px;
  font-size: 26px;
}
.accessories_list > ul > li > .m_price {
  color: #888;
  text-align: center;
  line-height: 16px;
  height: 16px;
}

/* Product Actions */
.accessories_list > ul > li > .so {
  width: 150px;
  height: 26px;
  margin: 5px auto 15px;
  background: url(../images/news/soldout.jpg) no-repeat left top;
  cursor: pointer;
}
.accessories_list > ul > li > a {
  text-decoration: none;
}
.accessories_list > ul > li > a:hover {
  color: #026675;
}

/* More Button */
.accessories_list > ul > li > a .more1 {
  width: 80%;
  height: 38px;
  cursor: pointer;
  color: #fff;
  background: #fa8a06 url(../images/svg/all.svg) no-repeat right 30px center;
  background-size: 18px;
  border-radius: 20px;
  position: relative;
  border: 0;
  margin: 12px auto 12px;
  font: 14px/38px arial;
  text-align: center;
}
.accessories_list > ul > li > a .more1 > span {
  width: 22px;
  height: 28px;
  display: inline-block;
  background: url(../images/svg/arrow_acc.svg) no-repeat left center;
  background-size: 16px;
  vertical-align: middle;
  margin-left: -10px;
}
.accessories_list > ul > li > a .more1:hover {
  background: #0b8988;
  color: #fff;
  background: #fa8a06 url(../images/svg/all.svg) no-repeat right 30px center;
  background-size: 18px;
}

/* Buy Button */
.accessories_list > ul > li > a .buy {
  width: 80%;
  height: 38px;
  cursor: pointer;
  text-align: center;
  color: #fff;
  border-radius: 20px;
  position: relative;
  border: 0;
  margin: 12px auto 12px;
  font: 14px/38px arial;
  background: #22a3a7;
  color: #fff;
}
.accessories_list > ul > li > a .buy.pre {
  background: #fa8a06;
}
.accessories_list > ul > li > a .buy.pre:hover {
  background: #fa7306;
}
.accessories_list > ul > li > a .buy:hover {
  color: #fff;
  background: #026675;
}
.accessories_list > ul > li > a .buy > span,
.a_box > ul > li > .buy > span {
  display: inline-block;
  width: 27px;
  height: 20px;
  background: url(../images/svg/cart1.svg?v=36) repeat-x scroll left top;
  background-size: 55px;
  margin: 3px 5px 5px 0;
  vertical-align: middle;
  transition: all 0.3s ease 0s;
  -webkit-transition: all 0.3s ease 0s;
}
.accessories_list > ul > li > a .buy:hover span,
.a_box > ul > li > .buy:hover span {
  background: url(../images/svg/cart1.svg?v=36) repeat scroll 27px top;
  background-size: 55px;
}

/* Stock Reminder */
.accessories_list > ul > li > a .stock_reminder {
  width: 80%;
  height: 38px;
  cursor: pointer;
  text-align: center;
  color: #fff;
  border-radius: 20px;
  position: relative;
  border: 0;
  margin: 12px auto 12px;
  font: 14px/34px arial;
  text-align: center;
  background: #cccccc;
}
.accessories_list > ul > li > a .stock_reminder:hover {
  color: #fff;
  background: #999999;
}
.accessories_list > ul > li > a .stock_reminder > span {
  width: 12px;
  height: 13px;
  display: inline-block;
  background: url(../images/m_bg.png) no-repeat -56px -6px;
  vertical-align: middle;
  margin-right: 5px;
}

/* Access Box (Modal Dialog) */
.access_box {
  width: 100%;
  height: 100%;
  position: fixed;
  left: 0;
  top: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
}
.ui-dialog-close {
  width: 30px;
  height: 30px;
  position: absolute;
  right: 10px;
  top: 10px;
  background: url(../images/svg/close.svg) no-repeat center;
  background-size: 20px;
  cursor: pointer;
  z-index: 10000;
}

/* Modal Content */
.a_box {
  width: 90%;
  max-width: 600px;
  background: #fff;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.a_box > h2 {
  font-size: 24px;
  color: #333;
  text-align: center;
  margin-bottom: 20px;
  border-bottom: 2px solid #22a3a7;
  padding-bottom: 10px;
}
.a_box > ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.a_box > ul > li {
  margin-bottom: 15px;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #f9f9f9;
}
.a_box > ul > li > h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
}
.a_box > ul > li > p {
  color: #666;
  margin-bottom: 10px;
  line-height: 1.5;
}
.a_box > ul > li > .price {
  font-size: 20px;
  color: #22a3a7;
  font-weight: bold;
  margin-bottom: 10px;
}

/* Responsive Design for Grid Layout */
@media (max-width: 1200px) {
  .accessories_list > ul {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .accessories_list > ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

}

@media (max-width: 480px) {
  .accessories_list > ul {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* 全页面遮罩层 */
body.overlay-active::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  pointer-events: none;
}

/* 高亮被点击的li元素，使其不被遮罩 */
.accessories_list > ul > li.highlighted {
  position: relative;
  z-index: 1000;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.accessories_list > ul > li.highlighted:hover{
  border: 1px solid #ededed !important;
}

/* 展开面板样式 - 基于 .accessories_list > ul 定位 */
.product-expand-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 15px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  z-index: 1001;
  margin-top: 10px;
  padding: 20px;
  display: none;
  min-height: 360px;
  overflow-y: auto;
}

.product-expand-panel.active {
  display: block;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-expand-panel h3 {
  font-size: 18px;
  color: #22a3a7;
  margin-bottom: 15px;
  text-align: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

/* 展开面板内的产品列表 */
.product-expand-panel .expand-products {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-expand-panel .expand-products li {
height:380px;
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  transition: all 0.3s ease;
}

.product-expand-panel .expand-products li:hover {
  border-color: #22a3a7;
  transform: translateY(-2px);
  box-shadow: 8px 4px 12px rgba(0, 0, 0, 0.1);
}

.product-expand-panel .expand-products li img {
height: 193px;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
}

.product-expand-panel .expand-products li h4 {
  font-size: 14px;
  font-weight:normal;
  color: #333;
  margin: 8px 0 5px;
  height: 66px;
  overflow: hidden;
  line-height: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-expand-panel .expand-products li .price {
  font-size: 22px;
  color: #22a3a7;
  font-weight: bold;
  margin-bottom: 8px;
}

/* 展开面板内的购买按钮样式 */
.product-expand-panel .expand-products li .buy {
  width: 100%;
  height: 32px;
  background: #22a3a7;
  color: #fff;
  border: none;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  line-height: 32px;
  text-decoration: none;
  display: block;
  margin: 8px 0 0 0;
  box-shadow: 0 2px 4px rgba(34, 163, 167, 0.2);
}
.product-expand-panel .expand-products li a.hover{ text-decoration:none;}
.product-expand-panel .expand-products li .buy:hover {
  background: #026675;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(34, 163, 167, 0.3);
}

.product-expand-panel .expand-products li .buy span {
  display: inline-block;
  width: 27px;
  height: 20px;
  background-size: 55px;
  margin: 3px 5px 5px 0;
   vertical-align: middle;
  background: url(../images/svg/cart1.svg?v=36) repeat-x left top;
  background-size: 55px;
  transition: all 0.3s ease;
}

.product-expand-panel .expand-products li .buy:hover span {
  background: url(../images/svg/cart1.svg?v=36) repeat scroll 27px top;
  background-size: 55px;
}

/* 展开面板内的库存提醒按钮样式 */
.product-expand-panel .expand-products li .stock_reminder {
  width: 100%;
  height: 32px;
  background: #cccccc;
  color: #fff;
  border: none;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  line-height: 32px;
  text-decoration: none;
  display: block;
  margin: 8px 0 0 0;
  box-shadow: 0 2px 4px rgba(204, 204, 204, 0.2);
}

.product-expand-panel .expand-products li .stock_reminder:hover {
  background: #999999;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(204, 204, 204, 0.3);
}

.product-expand-panel .expand-products li .stock_reminder span {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: url(../images/m_bg.png) no-repeat -56px -6px;
  vertical-align: middle;
  margin-right: 4px;
}

/* 展开面板内的缺货提示样式 */
.product-expand-panel .expand-products li .g_alert {
  width: 100%;
  height: 32px;
  background: #999;
  color: #fff;
  border: none;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  line-height: 32px;
  margin: 8px 0 0 0;
  box-shadow: 0 2px 4px rgba(255, 68, 68, 0.2);
  opacity: 0.9;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.product-expand-panel .expand-products li .g_alert::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* 保留原有的mini-buy样式以防向后兼容 */
.product-expand-panel .expand-products li .mini-buy {
  background: #22a3a7;
  color: #fff;
  border: none;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.product-expand-panel .expand-products li .mini-buy:hover {
  background: #026675;
}

.product-expand-panel .expand-products li .mini-buy.reminder {
  background: #cccccc;
}

.product-expand-panel .expand-products li .mini-buy.reminder:hover {
  background: #999999;
}

/* 关闭按钮 */
.product-expand-panel .close-panel {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.product-expand-panel .close-panel:hover {
  background: #f0f0f0;
  color: #333;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .product-expand-panel .expand-products {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .product-expand-panel .expand-products {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-expand-panel {
    padding: 15px;
	box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.2);
	width: 96%;
    margin: 0 auto;
  }

.product-expand-panel .expand-products li {height: 320px;}
  /* 移动端按钮样式调整 */
  .product-expand-panel .expand-products li .buy,
  .product-expand-panel .expand-products li .stock_reminder {
    height: 36px;
    line-height: 36px;
    font-size: 13px;
    margin: 10px 0 0 0;
  }

  /* 移动端缺货提示样式调整 */
  .product-expand-panel .expand-products li .g_alert {
    height: 36px;
    line-height: 36px;
    font-size: 13px;
    margin: 10px 0 0 0;
  }
  
  .overlay-mask {
  display: none; /* 默认隐藏 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 998; /* 层级明确可控 */
}

/* 激活时显示 */
body.overlay-active .overlay-mask {
  display: block;
}
body.overlay-active::before{display:none;}
}

@media (max-width: 640px) {
  .product-expand-panel .expand-products {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 小屏幕按钮样式进一步调整 */
  .product-expand-panel .expand-products li .buy,
  .product-expand-panel .expand-products li .stock_reminder {
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    border-radius: 20px;
  }

  /* 小屏幕缺货提示样式进一步调整 */
  .product-expand-panel .expand-products li .g_alert {
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    border-radius: 20px;
  }
  .accessories_list > ul > li.highlighted {
    width: 96%;
    margin: 0 auto;
  }
}

/* 空状态提示样式 */
.accessories_list > ul > li.no-products-message {
  grid-column: 1 / -1; /* 占据整行 */
  height: auto;
  min-height: 400px;
  border: 2px dashed #e0e0e0;
  border-radius: 20px;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  transition: all 0.3s ease;
}

.accessories_list > ul > li.no-products-message:hover {
  border-color: #22a3a7;
  background: #f8fdfd;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  max-width: 500px;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.6;
}

.empty-state h3 {
  font-size: 24px;
  color: #333;
  margin: 0 0 15px 0;
  font-weight: 600;
}

.empty-state > p {
  font-size: 16px;
  color: #666;
  margin: 0 0 25px 0;
  line-height: 1.5;
}

.suggestions {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e8e8e8;
  margin-top: 20px;
}

.suggestions > p {
  font-size: 14px;
  color: #555;
  margin: 0 0 12px 0;
  font-weight: 500;
}

.suggestions ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.suggestions ul li {
  font-size: 14px;
  color: #666;
  margin: 8px 0;
  padding-left: 0;
  line-height: 1.4;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .empty-state {
    padding: 30px 15px;
  }
  
  .empty-icon {
    font-size: 48px;
  }
  
  .empty-state h3 {
    font-size: 20px;
  }
  
  .empty-state > p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .accessories_list > ul > li.no-products-message {
    min-height: 300px;
    margin: 15px 0;
  }
  
  .empty-state {
    padding: 20px 10px;
  }
  
  .empty-icon {
    font-size: 40px;
    margin-bottom: 15px;
  }
  
  .empty-state h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  .suggestions {
    padding: 15px;
  }
}
