#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); }
}

/* 弹框遮罩样式 */
.uk-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.uk-modal-overlay.uk-active {
  opacity: 1;
  visibility: visible;
}

/* 弹框主体样式 */
.uk-modal-box {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.uk-modal-overlay.uk-active .uk-modal-box {
  transform: translateY(0);
}

.uk-modal-overlay.uk-redirecting .uk-modal-box {
  transform: scale(0.9);
  opacity: 0;
}

/* 弹框头部样式 */
.uk-modal-header {
  background: #b21f1f;
  padding: 20px;
  text-align: center;
}

.uk-modal-header h2 {
  color: #fff;
  font-size: 1.5rem;
  margin: 0;
}

/* 弹框内容样式 */
.uk-modal-body {
  padding: 30px 25px;
  color: #333;
  text-align: center;
}

.uk-modal-body p {
  font-size: 1rem;
  margin-bottom: 25px;
  color: #555;
  line-height: 1.6;
}

/* IP信息样式 */
.uk-ip-info {
  background: #f5f5f5;
  border-radius: 6px;
  padding: 15px;
  margin: 20px 0;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  overflow-wrap: break-word;
  text-align: center;
}

/* 按钮组样式 */
.uk-btn-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.uk-btn {
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
}

.uk-btn-primary {
  background: #b21f1f;
  color: white;
  box-shadow: 0 4px 10px rgba(178, 31, 31, 0.3);
}

.uk-btn-primary:hover {
  background: #9e1b1b;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(178, 31, 31, 0.4);
}

.uk-btn-secondary {
  background: transparent;
  color: #777;
  border: 1px solid #ddd;
}

.uk-btn-secondary:hover {
  background: #f9f9f9;
  transform: translateY(-2px);
}

/* 地图图标样式 */
.uk-map-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  animation: uk-pulse 1.5s infinite;
}

@keyframes uk-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* 小提示信息样式 */
.uk-info-text {
  font-size: 0.85rem;
  color: #999;
  margin-top: 15px;
}

/* 关闭按钮样式 */
.uk-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  cursor: pointer;
  background: rgba(0,0,0,0.1);
  border-radius: 50%;
  transition: all 0.3s;
}

.uk-modal-close:hover {
  background: rgba(0,0,0,0.2);
  transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 600px) {
  .uk-modal-header h2 {
      font-size: 1.3rem;
  }
  
  .uk-modal-body {
      padding: 20px 15px;
  }
  
  .uk-modal-body p {
      font-size: 0.95rem;
      margin-bottom: 20px;
  }
  
  .uk-ip-info {
      font-size: 0.85rem;
  }
  
  .uk-btn {
      padding: 12px;
      font-size: 0.95rem;
  }
}