.discount-button {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(45deg, #d29c9c, #000dff);
  color: white;
  padding: 15px;
  border-radius: 10px 0 0 10px;
  cursor: pointer;
  box-shadow: -2px 2px 10px rgba(0,0,0,0.2);
  z-index: 88;
  transition: all 0.3s ease;
  font-size: 16px;
}

.discount-button:hover {
  padding-right: 25px;
}
/* 添加移动端样式 */
@media screen and (max-width: 768px) {
  .discount-button {
    top: 85%;
  }
}

/* 添加价格表的提示文字样式 */
.discount-hint {
  position: fixed;
  right: 100px;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 88;
  font-size: 14px;
  color: #333;
  white-space: nowrap;
}
/* 添加移动端样式 */
@media screen and (max-width: 768px) {
  .discount-hint {
    top: 85%;
  }
}

.discount-hint:before {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 10px solid white;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.discount-hint.show {
  opacity: 1;
  visibility: visible;
  animation: bounce 0.5s ease;
}
/* 添加价格表的提示文字样式 */

@keyframes bounce {
  0%, 100% {
    transform: translateY(-50%);
  }
  50% {
    transform: translateY(-60%);
  }
}

.price-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1001;
  padding: 20px;
}

.price-content {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 95%;
  max-width: 1600px;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.table-container {
  flex: 1;
  overflow-x: auto;
  overflow-y: visible;
  padding: 0;
  margin-bottom: 0;
  position: relative;
}

.price-table {
  width: 100%;
  min-width: 1400px;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 20px;
  margin-bottom: 0;
  font-size: 14px;
  background: white;
}

.price-table th,
.price-table td {
  padding: 15px 12px;
  text-align: center;
  border: 1px solid #eee;
  white-space: nowrap;
  background-color: inherit;
}

.price-table th {
  background: #f8f9fa;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1;
}

.price-tabs {
  position: sticky;
  top: 0;
  background: white;
  padding: 15px 0;
  z-index: 11;
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.price-tabs .tab {
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  background: #f5f5f5;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  font-weight: 500;
}

.price-tabs .tab.active {
  background: #05f;
  color: white;
}

.price-modal .close {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 40px;
  height: 40px;
  background: #f5f5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 12;
  font-size: 0;
}

.price-modal .close::before,
.price-modal .close::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: #666;
  transition: all 0.3s ease;
}

.price-modal .close::before {
  transform: rotate(45deg);
}

.price-modal .close::after {
  transform: rotate(-45deg);
}

.price-modal .close:hover {
  background: #ff4757;
}

.price-modal .close:hover::before,
.price-modal .close:hover::after {
  background-color: white;
}

.original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 0.9em;
  margin-right: 5px;
}

.discounted-price {
  color: #ff4757;
  font-weight: bold;
}

/* 优惠提示样式 */
.discount-notice {
  color: #666;
  text-align: center;
  font-size: 14px;
  margin: -10px 0 10px;
  font-weight: 500;
}

/* 添加论坛链接样式 */
.discount-notice .forum-link {
  color: #05f;
  text-decoration: none;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  background: rgba(0, 85, 255, 0.1);
  margin-left: 4px;
}

.discount-notice .forum-link:hover {
  background: rgba(0, 85, 255, 0.2);
  text-decoration: underline;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .discount-button {
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 8px 0 0 8px;
  }

  .discount-hint {
    right: 80px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .price-content {
    top: 60%;
    padding: 15px 10px;
    width: 98%;
    max-height: 80vh;
  }

  .price-modal .close {
    right: 10px;
    top: 15px;
    width: 30px;
    height: 30px;
  }

  .price-tabs {
    padding: 35px 0 15px;
    gap: 10px;
  }

  .price-tabs .tab {
    padding: 8px 12px;
    font-size: 12px;
  }

  .table-container {
    padding: 0 5px;
  }

  .price-table {
    font-size: 12px;
  }

  .price-table th,
  .price-table td {
    padding: 8px 6px;
    min-width: 80px;
  }

  .original-price,
  .discounted-price {
    display: block;
    text-align: center;
  }

  .discount-notice {
    font-size: 12px;
    margin: -5px 0 10px;
  }
}

/* 优化滚动条 */
.price-content::-webkit-scrollbar,
.table-container::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.price-content::-webkit-scrollbar-track,
.table-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.price-content::-webkit-scrollbar-thumb,
.table-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.price-content::-webkit-scrollbar-thumb:hover,
.table-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* 修改ID列的样式 */
.price-table td:first-child,
.price-table th:first-child {
  width: 60px;
  text-align: center;
  font-weight: bold;
  color: #666;
  background-color: #f8f9fa;
}

/* 表头样式保持普通的样式即可 */
.price-table thead th:first-child {
  background: #f8f9fa;
}

/* 鼠标悬停效果 */
.price-table tbody tr:hover td {
  background-color: #f1f3f5;
}