/* 添加留言表单样式 */
.message-form *{
  box-sizing: border-box;
}
.message-form {
  padding: 30px;
  background: #ffffff;
  border-radius: 16px;
}

.message-form h4 {
  font-size: 18px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 24px;
}

.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 select,
.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 input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* 添加必填星号样式 */
.form-group .required {
  color: #ff3b30;
  /* 使用苹果风格的红色 */
  margin-left: 4px;
}

.submit-btn {
  background: #0066cc;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 10px;
}

.submit-btn:hover {
  background: #0055b3;
}

/* 添加导游名称高亮样式 */
.guide-name-highlight {
  color: #ff3b30;
  /* 苹果风格的红色 */
  font-weight: 600;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .message-form {
    padding: 20px;
    margin-top: 30px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px 14px;
  }

  .submit-btn {
    padding: 12px 24px;
  }
}

/* 添加单选按钮样式 */
.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;
  position: relative;
  background-color: #fff;
}

.radio-group::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  cursor: pointer;
}

.radio-group:hover {
  background: #f5f5f7;
}

.radio-group input[type="radio"] {
  appearance: none;
  -webkit-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: #0066cc;
  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: #0066cc;
  border-radius: 50%;
}

.radio-group label {
  font-size: 15px;
  color: #1d1d1f;
  cursor: pointer;
  user-select: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .radio-group {
    padding: 8px;
  }
}

/* 添加弹窗相关样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1001;
  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;
}

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

.modal-header h4 {
  font-size: 20px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.close-btn:hover {
  color: #333;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .modal {
    width: 90%;
  }

  .modal-content {
    padding: 20px;
  }
}

/* 添加快速留言按钮区域样式 */
.quick-contact {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
  text-align: center;
}

.quick-contact p {
  margin-bottom: 16px;
  color: #666;
  font-size: 15px;
}

.quick-contact .message-btn {
  margin: 0 auto;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .quick-contact {
    margin-top: 24px;
    padding-top: 16px;
  }

  .quick-contact p {
    font-size: 14px;
    margin-bottom: 12px;
  }
}

/* 添加微信号样式 */
.wechat-id {
  color: #007aff;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.wechat-id:hover {
  background-color: #f0f7ff;
}

/* 复制成功弹窗样式 */
.copy-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);
}

.copy-content {
  background: white;
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #007aff;
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.copy-content p {
  margin: 8px 0;
  color: #333;
}

.copy-content p:last-child {
  color: #666;
  font-size: 14px;
}

/* 添加微信号组样式 */
.wechat-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* 调整微信号样式 */
.wechat-id {
  display: inline-flex;
  align-items: center;
}

/* 调整查看二维码按钮样式 */
.view-qr-btn {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: #f0f7ff;
  color: #007aff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.view-qr-btn:hover {
  background: #e0f0ff;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .wechat-group {
    gap: 6px;
  }

  .view-qr-btn {
    padding: 3px 10px;
    font-size: 13px;
  }
}

/* 二维码弹窗样式 */
.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);
  animation: modalOverlayFadeIn 0.3s ease-out;
}

.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;
}

.qr-modal-body {
  padding: 24px;
  /* 减小内边距，让二维码看起来更紧凑 */
  text-align: center;
}

.modal-qr-code {
  width: 260px;
  /* 从 200px 改为 260px */
  height: 260px;
  border-radius: 12px;
}

.qr-tip {
  color: #666;
  font-size: 14px;
}

.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: #007aff;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.primary-btn:hover {
  background: #0066dd;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .qr-modal-content {
    width: 95%;
  }

  .modal-qr-code {
    width: 240px;
    /* 从 180px 改为 240px */
    height: 240px;
  }

  .qr-modal-header {
    padding: 16px;
  }

  .qr-modal-body {
    padding: 20px;
  }

  .qr-modal-footer {
    padding: 16px;
  }
}

/* 悬浮按钮样式 */
.floating-buttons {
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 999;
  flex-direction: column;
  gap: 12px;
  display: none;
  /* 默认隐藏所有按钮 */
}

/* 微信和留言按钮只在移动端显示 */
@media (max-width: 768px) {
  .floating-buttons {
    display: flex;
    /* 移动端显示按钮组 */
  }
}

/* 回到顶部按钮的基础样式 */
.float-btn[v-show="showBackToTop"] {
  display: flex !important;
  /* 强制显示回到顶部按钮 */
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 999;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
}

/* 回到顶部按钮隐藏时的样式 */
.float-btn[v-show="false"] {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

/* 按钮基础样式 */
.float-btn {
  width: 45px;
  height: 45px;
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.float-btn svg {
  width: 22px;
  height: 22px;
  fill: #007aff;
}

.float-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* 添加成功提示弹窗样式 */
.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);
  animation: fadeIn 0.3s ease;
}

.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;
  animation: slideUp 0.3s ease;
}

.success-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: #34c759;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn 0.3s ease;
}

.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: #007aff;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.success-btn:hover {
  background: #0066dd;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.5);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* 移动端适配 */
@media (max-width: 768px) {
  .success-content {
    width: 85%;
    padding: 24px;
  }

  .success-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 16px;
  }

  .success-icon svg {
    width: 30px;
    height: 30px;
  }

  .success-content h3 {
    font-size: 18px;
  }

  .success-content p {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .success-btn {
    padding: 10px 28px;
    font-size: 15px;
  }
}

/* 通用提示弹窗样式 */
.alert-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(10px);
  animation: fadeIn 0.2s ease;
}

.alert-content {
  background: rgba(255, 255, 255, 0.95);
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  max-width: 320px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  animation: slideUp 0.3s ease;
}

.alert-content p {
  margin-bottom: 20px;
  font-size: 15px;
  color: #1d1d1f;
  line-height: 1.4;
}

.alert-content button {
  background: #0066cc;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.alert-content button:hover {
  background: #0055b3;
}

/* 评论注册弹窗样式 */
.comment-register-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(10px);
  animation: fadeIn 0.2s ease;
}

.comment-register-modal .modal-content {
  background: rgba(255, 255, 255, 0.95);
  padding: 24px;
  border-radius: 20px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  animation: slideUp 0.3s ease;
}

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

.comment-register-modal .modal-header h4 {
  font-size: 20px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0;
}

.comment-register-modal .close-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: #86868b;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: all 0.2s ease;
}

.comment-register-modal .close-btn:hover {
  color: #1d1d1f;
}

.comment-register-modal .submit-btn {
  width: 100%;
  /* 按钮宽度100% */
  background: #0066cc;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
  /* 与上方表单的间距 */
}

.comment-register-modal .submit-btn:hover {
  background: #0055b3;
}

.comment-register-modal .form-group {
  margin-bottom: 16px;
}

/* 添加动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 移动端适配 */
@media (max-width: 768px) {
  .comment-input {
    padding: 12px;
    gap: 12px;
  }

  .comment-input input {
    padding: 10px 14px;
    font-size: 14px;
  }

  .comment-input button {
    padding: 10px 20px;
    font-size: 14px;
  }

  .alert-content,
  .comment-register-modal .modal-content {
    width: 85%;
    padding: 20px;
  }

  .comment-register-modal .modal-header h4 {
    font-size: 18px;
  }
}

#contact-number,
#contact-number2,
#comment-contact-number {
  width: 100%;
}

.iti__selected-flag {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

/* 彈窗動畫相關樣式 */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalOverlayFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* 為彈窗添加動畫 */
.modal-overlay {
  animation: modalOverlayFadeIn 0.3s ease-out;
}

.modal .modal-content,
.comment-register-modal .modal-content,
.qr-modal .qr-modal-content {
  animation: modalFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 添加错误消息样式 */
.error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

/* 调整电话输入框样式 */
.iti {
  width: 100%;
}

/* 艾特颜色 */
.at-color {
  color: #f39c12;
}

/* 主题颜色 */
.theme-color {
  color: #27ae60;
}

/* 红色 */
.red-color {
  color: #ff0000;
}

/* 内容二维码 */
.ewm img {
  max-width: 40%;
}

@media (max-width: 768px) {
  .ewm img {
    max-width: 60%;
  }
}
