/* common.css - 所有页面共享的公共样式 */
* {
  box-sizing: border-box;
  font-size: 15px;
}
h1{
  font-size: 2em;
}
h2{
  font-size: 1.5em;
}
a {
  text-decoration: none;
}

.flex_sb {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top_nav {
  display: flex;
  list-style: none;
  margin: 0 0 0 10px;
  padding: 0;
  gap: 20px;
}

.top_nav_item {
  margin-right: 17px;
  text-decoration: none;
  color: #333;
}

.search_box {
  background: #ededed;
  border-radius: 10px;
  padding: 0px 12px;
  height: 30px;
}

.btn_ppt {
  background: #59b9ff;
  border-radius: 20px;
  padding: 0 15px;
  color: #fff;
  font-size: 13px;
  line-height: 30px;
  position: relative;
}

.btn_ppt .msg {
  position: absolute;
  top: -23px;
  left: -23px;
  height: 30px;
}

/* 二维码容器默认隐藏 */
.qr-code-box {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 666;
}

/* 鼠标悬停时显示 */
.qr-code-box:hover,
.phone-container:hover .qr-code-box {
  opacity: 1;
  visibility: visible;
}

.qr-code-box img {
  width: 120px;
  height: 120px;
  display: block;
}

.qr-code-text {
  font-size: 11.2px;
  color: #9e9e9e;
  text-align: center;
  line-height: 16.05px;
  margin-top: 5px;
  background-color: #f7f7f7;
  padding: 5px;
  border-radius: 8px;
}

.qr-code-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}
.qr-code-footer img {
  width: 16px;
  height: 16px;
}

/* 浮层容器 */
.scheme-popup {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 249px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.btn_ppt_container:hover .scheme-popup {
  opacity: 1;
  visibility: visible;
}

.btn-generate-ppt {
  transition: transform 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.btn_ppt_container:hover::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 20px;
}

/* 鼠标悬停显示浮层 */
.btn_ppt_container:hover .scheme-popup {
  display: block;
}

/* 方案列表 */
.scheme-list {
  max-height: 400px;
  overflow-y: auto;
}

/* 单个方案项 */
.scheme-item {
  display: flex;
  align-items: center;
  padding: 7.5px;
  background-color: #f7f7f7;
  border-radius: 6.72px;
  margin-bottom: 10px;
}

.scheme-item:hover {
  background: #f8f8f8;
}

/* 方案图片 */
.scheme-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 15px;
}

/* 方案信息 */
.scheme-info {
  flex: 1;
  min-width: 0;
}

.scheme-title {
  font-size: 11.2px;
  color: #000;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scheme-price {
  font-size: 15.68px;
  color: #000000;
  font-weight: bold;
  font-variation-settings: "opsz" auto;
}

/* 移除按钮 */
.btn-remove {
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  margin-left: 15px;
}

.btn-remove img {
  width: 100%;
  height: 100%;
  transition: opacity 0.3s;
}

.btn-remove:hover img {
  opacity: 0.8;
}

/* 生成PPT按钮样式 */
.btn-generate-ppt {
  background: #59b9ff;
  padding: 8px 20px;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  margin: 12px 36px;
  display: block;
  transition: all 0.3s;
  font-family: Source Han Sans;
  font-size: 13.44px;
  font-weight: bold;
  line-height: 16.05px;
  text-align: center;
  letter-spacing: normal;
  color: #ffffff;
}

.btn-generate-ppt:hover {
  background: #3fa5e5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(89, 185, 255, 0.3);
}

/* 容器定位 */
.promo-icon-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
  background: #59b9ff;
  border-radius: 50%;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 浮层样式 */
.promo-popup {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% + 15px);
  width: 320px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

/* 悬浮显示效果 */
.promo-icon-container:hover .promo-popup {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(5px);
}

/* 标题样式 */
.promo-title {
  color: #1890ff;
  font-size: 14px;
  margin-top: 8px;
  padding-top: 5px;
  font-weight: 600;
}

/* 内容样式 */
.promo-content {
  color: #6c6c6c;
  font-size: 11.2px;
  line-height: 16.05px;
  padding-left: 8px;
  padding: 0 8px 8px 8px;
}

/* 悬浮层箭头 */
.promo-popup::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: #f8f9fa;
  filter: drop-shadow(0 -2px 1px rgba(0, 0, 0, 0.05));
}

/* 最后一个区块取消底部间距 */
.promo-section:last-child {
  margin-bottom: 0;
}

.promo-section {
  border-radius: 6.72px;
  background-color: #f7f7f7;
  margin: 6px 0;
  text-align: center;
}

.promo-icon {
  width: 19.71px;
  height: 19.53px;
  display: inline-block;
  vertical-align: middle;
}

/* 确保滚动条容器有明确的尺寸和滚动属性 */
.scheme-list,
.promo-popup {
  overflow-y: auto;
  max-height: 200px;
  scrollbar-width: thin; /* 标准属性 */
  scrollbar-color: #59b9ff rgba(89, 185, 255, 0.2); /* 标准属性 */
}

/* 增强Webkit滚动条选择器优先级 */
.scheme-list::-webkit-scrollbar,
.promo-popup::-webkit-scrollbar {
  width: 6px !important;
}

.scheme-list::-webkit-scrollbar-track,
.promo-popup::-webkit-scrollbar-track {
  background: rgba(89, 185, 255, 0.2) !important;
  border-radius: 3px !important;
}

.scheme-list::-webkit-scrollbar-thumb,
.promo-popup::-webkit-scrollbar-thumb {
  background: #59b9ff !important;
  border-radius: 3px !important;
}

.avatar-popup {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 12px 20px;
  display: none;
  min-width: 120px;
  z-index: 1000;
}

.avatar-popup::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent #fff transparent;
}

.popup-item {
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  padding: 8px 0;
  white-space: nowrap;
  text-align: center;
  transition: all 0.2s;
  border-bottom: 1px solid #f0f0f0;
}

.popup-item:hover {
  color: #59b9ff;
}

/* 鼠标悬停显示浮层 */
.avatar-container:hover .avatar-popup {
  display: block;
}

/* 分类页面的css */
.filter-container {
  max-width: 1200px;
  margin: 0px auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  display: flex;
}

.nav-header {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.back-btn {
  background: #59b9ff;
  color: white;
  border-radius: 20px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 30px;
  text-align: center;
  transition: all 0.3s;
  border: none;
  display: inline-block;
  box-shadow: 0 4px 6px rgba(89, 185, 255, 0.2);
}

.back-btn:hover {
  background: #3aa8ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(89, 185, 255, 0.3);
}

.filter-group {
  margin: 20px 0;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  display: flex;
}
.filter-group-1 {
  margin: 20px 0 0 0;
  padding: 15px 0 0 0;
  display: flex;
}

.filter-title {
  color: #666;
  margin-right: 66px;
  min-width: 60px;
}
.filter-title-1 {
  color: #666;
  margin-right: 37px;
  min-width: 60px;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-item {
  padding: 0 15px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-item:hover {
  border-color: #59b9ff;
  color: #59b9ff;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .back-btn {
    margin-bottom: 15px;
  }
}

/* 排序组特殊样式 */
/*.filter-group-1 .filter-title-1 {*/
/*  color: #59b9ff; !* 文字颜色 *!*/
/*  position: relative; !* 为伪元素定位准备 *!*/
/*  padding-left: 16px; !* 给三角形留出空间 *!*/
/*}*/

/* 添加小三角图标 */
/*.filter-group-1 .filter-title-1::before {*/
/*  content: "";*/
/*  position: absolute;*/
/*  left: 0;*/
/*  top: 50%;*/
/*  transform: translateY(-50%);*/
/*  width: 0;*/
/*  height: 0;*/
/*  border-left: 4px solid transparent;*/
/*  border-right: 4px solid transparent;*/
/*  border-top: 5px solid #59b9ff; !* 三角形颜色 *!*/
/*}*/

.nav-left {
  display: flex;
  flex-direction: column;
  margin-top: 35px;
}

.classify_box {
  margin-top: 38px;
}
.classify_box h1 {
  font-size: 32px;
  font-weight: bold;
  margin: 0;
  color: #000000;
}
.classify_box p {
  margin: 10px 0 0 0;
  font-size: 18px;
  color: #9e9e9e;
}
.classify_box img {
  width: 32px;
  height: auto;
}

.ppt-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.right {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.opt-btn-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  display: flex;
  gap: 4px;
}

/* 商品卡片样式 */
.goods_item {
  background: #ffffff;
  border-radius: 10px;
}
.goods_name {
  font-size: 16px;
  margin-bottom: 6px;
}
.goods_price {
  color: #000;
  font-size: 24px;
}
.goods_price .goods_price_sub {
  color: #000;
  font-size: 12px;
  margin-left: 5px;
}
.btn_add_ppt {
  background-color: #59b9ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.btn_add_ppt_text {
  font-size: 18px;
  color: #666;
}
.icon_focus {
  width: 30px;
  height: 30px;
}
