#control-div {
    margin-bottom: 20px;
}
.button-container {
    display: flex;
    justify-content: center;
    gap: 10px; /* 按钮之间的间距 */
}

.plan-button {
    padding: 10px 20px;
    border: none;
    border-radius: 25px; /* 圆角 */
    background: #732681 !important; /* 按钮背景色 */
    color: #f3f3f3 !important; /* 按钮文字颜色 */
    cursor: pointer;
    transition: background-color 0.3s; /* 背景色过渡效果 */
    outline: none; /* 取消默认的边框样式 */
}

.plan-button:focus {
    outline: none; /* 取消按钮获得焦点时的边框 */
}

.plan-button:hover {
    background-color: #3c0346 !important; /* 悬停时的背景色 */
}

.plan-button.active {
    background-color: #3c0346 !important;
}

/* 弹窗样式 */
.contact-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-box {
  background: white;
  border-radius: 12px;
  width: 95%;
  max-width: 400px;
  padding: 20px;
  animation: modalFade 0.3s ease;
  position: relative; /* 确保层级正确 */
  z-index: 1001;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h3 {
  color: #333;         /* 改为深灰色 */
  font-size: 16px;
  margin: 0;
  padding-right: 40px; /* 给关闭按钮留空间 */
}

.modal-close {
  font-size: 18px;     /* 缩小6px */
  width: 30px;         /* 固定尺寸 */
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;  /* 精确定位 */
  top: 15px;
  right: 15px;
}

.modal-close:hover {
  transform: scale(1.2);
}

.modal-options {
  display: flex;
  gap: 10px;
  padding: 15px;
  justify-content: space-between;
}

.modal-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 15px;
  border-radius: 8px;
  text-decoration: none;
  color: white !important;
  font-size: 14px; 
  min-width: 100px;
  transition: transform 0.2s, opacity 0.2s;
}

.modal-btn i {
  font-size: 22px;
  margin-bottom: 5px;
  color: white !important;
}

.modal-notice {
  padding: 15px 20px;
  border-top: 1px solid #eee;
  margin-top: 10px;
}

.modal-notice p {
  color: #666;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  margin: 0;
}

/* 各平台样式 */
.modal-box .whatsapp-link { background: #25D366; }
.modal-box .telegram-link { background: #0088CC; }
.modal-box .email-link { background: #EA4335; }

.modal-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* 响应式调整 */
@media (max-width: 480px) {
  .modal-btn {
    padding: 10px;
    font-size: 13px;
  }
  
  .modal-btn i {
    font-size: 20px;
    margin-bottom: 3px;
  }
  
  .modal-close {
    top: 10px;
    right: 10px;
  }
  .modal-notice {
    padding: 10px 15px;
  }
  
  .modal-notice p {
    font-size: 11px;
  }
}

@keyframes modalFade {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
