/* 公告弹窗样式 */
#popup {
  z-index: 9999 !important;
}

.popup-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  z-index: 9999 !important;
  position: relative;
  animation: popupSlideIn 0.3s ease-out;
}

.popup-content {
  background: white;
  border-radius: 8px;
  padding: 24px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 9999 !important;
  overflow: visible;
  border: none;
  background-color: #ffffff;
  opacity: 1;
  position: relative;
  transition: all 0.3s ease;
}

.popup-header {
  text-align: center;
  padding-bottom: 0;
  border-bottom: none;
  margin-bottom: 20px;
}

.popup-note {
  background: none;
  color: #ff4757;
  padding: 0;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  display: block;
  margin-bottom: 16px;
  text-align: center;
  box-shadow: none;
}

.popup-header h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #333;
  background: none;
  -webkit-background-clip: none;
  -webkit-text-fill-color: #333;
  background-clip: none;
  text-align: center;
}

.popup-desc {
  color: #666;
  line-height: 1.5;
  margin-bottom: 24px;
  font-size: 14px;
  text-align: center;
  padding: 0;
}

.buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.popup-btn {
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
}

.popup-btn.qq-group {
  background: #3498db;
  color: white;
  box-shadow: none;
}

.popup-btn.qq-group:hover {
  background: #2980b9;
  transform: none;
  box-shadow: none;
}

.popup-btn.contact-us {
  background: #ff6b81;
  color: white;
  border: none;
  box-shadow: none;
}

.popup-btn.contact-us:hover {
  background: #ff4757;
  transform: none;
  box-shadow: none;
}

/* 联系客服按钮容器 */
.contact-btn-container {
  position: relative;
  display: inline-block;
}

/* 下拉菜单样式 */
.contact-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-top: 8px;
  min-width: 100px;
  display: none;
  z-index: 10000;
  white-space: nowrap;
  animation: dropdownSlideIn 0.2s ease-out;
}

/* 显示下拉菜单的类 */
.contact-dropdown.show {
  display: block;
}

.contact-option {
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
}

.contact-option:hover {
  background: #f5f5f5;
  transform: none;
}

.contact-option:first-child {
  border-radius: 4px 4px 0 0;
}

.contact-option:last-child {
  border-radius: 0 0 4px 4px;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .popup-content {
    padding: 20px;
    margin: 0 16px;
    border-radius: 8px;
  }
  
  .popup-header h2 {
    font-size: 20px;
  }
  
  .popup-desc {
    font-size: 13px;
  }
  
  .buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .popup-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 12px 20px;
  }
  
  .contact-dropdown {
    right: auto;
    left: 0;
    width: 100%;
  }
}