.top-bar {
  display: block;
  width: 100%;
  background-color: #1a1a1a;
  color: #fff;
  z-index: 1000;
  padding: 8px 0;
  font-size: 14px;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-info .name {
  font-weight: 600;
  color: #ffd700;
}

.contact-info a {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #ffd700;
}

.action-buttons {
  display: flex;
  gap: 12px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wechat-btn {
  background-color: #07c160;
  color: white;
}

.wechat-btn:hover {
  background-color: #06ae56;
}

.message-btn {
  background-color: #0066dd;
  color: white;
}

.message-btn:hover {
  background-color: #0055bb;
}

/* 为了避免导航栏被top-bar遮挡 */
#navbar_wrapper {
  margin-top: 40px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .top-bar {
    padding: 6px 0;
  }

  .contact-info {
    gap: 12px;
  }

  .contact-info a:not(:first-child) {
    display: none;
  }

  .action-btn {
    padding: 4px 12px;
    font-size: 13px;
  }
}

@media (max-width: 576px) {
  .contact-info .name {
    font-size: 13px;
  }

  .action-buttons {
    gap: 8px;
  }
}

/* 修改弹窗相关样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1998;
  backdrop-filter: blur(5px);
}

.modal-window {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1999;
  width: 90%;
  max-width: 500px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.modal-content {
  padding: 24px;
  position: relative;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

/* 确保其他弹窗的 z-index 合理排序 */
.copy-modal {
  z-index: 2000;
}

.qr-modal {
  z-index: 2001;
}

.success-modal {
  z-index: 2002;
}

/* 表单样式 */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1f;
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  font-size: 14px;
  color: #1d1d1f;
  background: #fff;
  transition: all 0.3s ease;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group .required {
  color: #ff3b30;
  margin-left: 4px;
}

#contact-number {
  width: 100%;
}

/* 单选按钮样式 */
.contact-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 4px;
}

.radio-group {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #fff;
}

.radio-group:hover {
  background: #f5f5f7;
}

.radio-group input[type="radio"] {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #d2d2d7;
  border-radius: 50%;
  margin: 0;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 0;
}

.radio-group input[type="radio"]:checked {
  border-color: #0066dd;
  background: #fff;
}

.radio-group input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: #0066dd;
  border-radius: 50%;
}

/* 提交按钮样式 */
.submit-btn {
  background: #0066dd;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: #0055bb;
  box-shadow: 0 4px 12px rgba(0, 102, 221, 0.2);
}

/* 关闭按钮样式 */
.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.close-btn:hover {
  color: #333;
}

/* 二维码弹窗样式 */
.qr-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(5px);
}

.qr-modal-content {
  background: white;
  width: 90%;
  max-width: 350px;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.qr-modal-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
}

.guide-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-guide-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.modal-guide-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.guide-name-highlight {
  color: #ff3b30;
}

.guide-tag {
  font-size: 12px;
  background: #fff4e5;
  color: #ff9500;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.qr-modal-body {
  padding: 24px;
  text-align: center;
}

.modal-qr-code {
  width: 260px;
  height: 260px;
  border-radius: 12px;
}

.qr-modal-footer {
  padding: 20px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  border-top: 1px solid #f0f0f0;
}

/* 按钮样式 */
.secondary-btn {
  padding: 8px 20px;
  background: #f5f5f7;
  color: #666;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.secondary-btn:hover {
  background: #eee;
}

.primary-btn {
  padding: 8px 20px;
  background: #0066dd;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.primary-btn:hover {
  background: #0055bb;
  box-shadow: 0 4px 12px rgba(0, 102, 221, 0.2);
}

/* 复制成功弹窗样式 */
.copy-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.copy-content {
  position: relative;
  background: white;
  padding: 30px 30px;
  border-radius: 16px;
  width: 90%;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.copy-content .close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.copy-content .close-btn:hover {
  background: #f5f5f5;
  color: #666;
  transform: rotate(90deg);
}

.copy-header svg {
  color: #07c160;
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 2px 4px rgba(7, 193, 96, 0.2));
}

.copy-header h3 {
  margin: 0;
  color: #333;
  font-size: 20px;
  font-weight: 600;
}

.copy-content p {
  color: #666;
  font-size: 16px;
  word-break: break-all;
  margin: 0;
}

.copy-footer {
  display: flex;
  gap: 20px;
  padding: 0 12px;
  margin-top: 20px;
}

.copy-footer .secondary-btn,
.copy-footer .primary-btn {
  flex: 1;
  padding: 12px 0;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-footer .secondary-btn {
  background: #f5f5f5;
  color: #333;
}

.copy-footer .primary-btn {
  background: #07c160;
  color: white;
  box-shadow: 0 2px 6px rgba(7, 193, 96, 0.2);
}

.copy-footer .secondary-btn:hover {
  background: #ebebeb;
}

.copy-footer .primary-btn:hover {
  background: #06b054;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(7, 193, 96, 0.25);
}

.copy-footer .secondary-btn:active,
.copy-footer .primary-btn:active {
  transform: translateY(1px);
}

/* 成功提示弹窗样式 */
.success-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(5px);
}

.success-content {
  background: white;
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 320px;
}

.success-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: #34c759;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon svg {
  width: 36px;
  height: 36px;
  fill: white;
}

.success-content h3 {
  font-size: 20px;
  color: #1d1d1f;
  margin-bottom: 8px;
}

.success-content p {
  font-size: 15px;
  color: #666;
  margin-bottom: 24px;
}

.success-btn {
  background: #0066dd;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.success-btn:hover {
  background: #0055bb;
  box-shadow: 0 4px 12px rgba(0, 102, 221, 0.2);
}

/* 错误消息样式 */
.error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* 电话输入框样式 */
.iti {
  width: 100%;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .modal-content {
    padding: 20px;
  }

  .modal-qr-code {
    width: 240px;
    height: 240px;
  }

  .success-content {
    padding: 24px;
  }

  .copy-content {
    padding: 24px;
  }
}

.wechat-id {
  color: #ffd700;
  cursor: pointer;
  transition: color 0.3s ease;
}

.wechat-id:hover {
  color: #fff;
}

.view-qr-btn {
  background: none;
  border: none;
  padding: 0;
  margin-left: 8px;
  cursor: pointer;
  vertical-align: middle;
}

.qr-icon {
  width: 100px;
  vertical-align: middle;
}

/* 移动端悬浮按钮样式 */
.float-buttons {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: none;
  /* 默认隐藏 */
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.float-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.float-btn.wechat {
  background-color: #07c160;
}

.float-btn.wechat:hover {
  background-color: #06ae56;
}

.float-btn.message {
  background-color: #0066dd;
}

.float-btn.message:hover {
  background-color: #0055bb;
}

/* 修改响应式设计 */
@media (max-width: 768px) {
  .top-bar {
    display: none;
    /* 移动端隐藏顶部栏 */
  }

  .float-buttons {
    display: flex;
    /* 移动端显示悬浮按钮 */
  }

  #navbar_wrapper {
    margin-top: 0;
    /* 移除顶部间距 */
  }
}
