/**
 * 公共样式
 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  color: #e2e8f0;
  background-color: #F7F9FA;
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* 浅青色动效曲线渐变背景 - 背景圆形1 */
body::before {
  content: '';
  position: fixed;
  background: linear-gradient(180deg, #ffffff 0%, #e8fafa 50%, #f0fefd 100%);
  width: 2000px;
  height: 1000px;
  border-radius: 50%;
  bottom: -600px;
  left: -600px;
  opacity: 0.7;
  z-index: -10;
  pointer-events: none;
}

/* 浅青色动效曲线渐变背景 - 背景圆形2 */
body::after {
  content: '';
  position: fixed;
  background: linear-gradient(180deg, #ddf5ff 0%, #c6ecfa 50%, #e6faff 100%);
  width: 1200px;
  height: 1200px;
  border-radius: 50%;
  top: -600px;
  right: -600px;
  opacity: 0.6;
  z-index: -10;
  pointer-events: none;
}

/* 浅青色动效曲线渐变背景 - 背景圆形3 */
html::before {
  content: '';
  position: fixed;
  background: linear-gradient(180deg, #eaf9ff 0%, #d4f0f7 50%, #f8fdfc 100%);
  width: 2600px;
  height: 1300px;
  border-radius: 50%;
  bottom: -800px;
  left: -1000px;
  opacity: 0.5;
  z-index: -10;
  pointer-events: none;
}

/* 浅青色动效曲线渐变背景 - 背景圆形4 */
html::after {
  content: '';
  position: fixed;
  background: linear-gradient(180deg, #f0fefe 0%, #e0fbff 50%, #ffffff 100%);
  width: 1600px;
  height: 1600px;
  border-radius: 50%;
  top: -800px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.4;
  z-index: -10;
  pointer-events: none;
}

/* 浅青色动效曲线渐变背景 - 背景圆形5 */
html {
  background-image: radial-gradient(circle at -300px 20%, rgba(224, 255, 255, 0.3) 0%, transparent 50%);
  background-attachment: fixed;
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-size: 18px;
  color: #94a3b8;
}

.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .page-container {
    padding: 10px;
  }
}

/* a:hover, a:visited, a:link, a:active {
  color: #333;
} */

/* 悬浮联系按钮组 - 全局样式 */
.floating-consult {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-consult-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--brand-primary, #3BA6B3);
  border: 2px solid var(--brand-primary, #3BA6B3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  position: relative;
}

.floating-consult-btn:hover {
  background: var(--brand-primary, #3BA6B3);
  color: #FFFFFF;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(59, 166, 179, 0.4);
}

.floating-consult-btn::before {
  content: attr(data-tip);
  position: absolute;
  right: calc(100% + 12px);
  background: rgba(0, 0, 0, 0.8);
  color: #FFFFFF;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.floating-consult-btn:hover::before {
  opacity: 1;
}

/* 悬浮按钮tooltip */
.floating-tooltip {
  position: absolute;
  right: calc(100% + 16px);
  background: #FFFFFF;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateX(10px);
  white-space: nowrap;
  z-index: 10;
}

.floating-consult-btn:hover .floating-tooltip {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* 二维码tooltip */
.floating-qr-tooltip {
  min-width: 160px;
  text-align: center;
}

.floating-qr-tooltip img {
  width: 140px;
  height: 140px;
  display: block;
  margin: 0 auto 8px;
  border-radius: 8px;
}

.floating-qr-tooltip p {
  margin: 0;
  font-size: 13px;
  color: #666;
}

/* 电话tooltip */
.floating-phone-tooltip {
  min-width: 180px;
  text-align: center;
}

.floating-phone-tooltip .phone-number {
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-primary, #3BA6B3);
  margin: 0 0 4px 0;
}

.floating-phone-tooltip .phone-tip {
  font-size: 12px;
  color: #999;
  margin: 0;
}

/* 移动端调整 */
@media (max-width: 768px) {
  .floating-consult {
    right: 16px;
    gap: 10px;
  }
  
  .floating-consult-btn {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .floating-consult-btn::before {
    display: none;
  }
  
  .floating-tooltip {
    display: none;
  }
}

/* 联系弹窗样式 - 全局 */
.contact-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.contact-modal.show {
  display: flex;
}

.contact-modal-content {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

.contact-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 18px;
  color: #666;
}

.contact-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
}

.contact-modal-title {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: var(--text-primary, #1e293b);
  text-align: center;
}

.contact-modal-subtitle {
  font-size: 14px;
  color: var(--text-secondary, #64748b);
  margin: 0 0 32px 0;
  text-align: center;
}

.contact-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-option-btn {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #FFFFFF;
  border: 2px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  width: 100%;
}

.contact-option-btn:hover {
  border-color: var(--brand-primary, #3BA6B3);
  background: rgba(59, 166, 179, 0.05);
  transform: translateX(8px);
}

.contact-option-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-primary, #3BA6B3), var(--brand-primary-hover, #2d8a94));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-option-icon i {
  font-size: 28px;
  color: #FFFFFF;
}

.contact-option-text h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: var(--text-primary, #1e293b);
}

.contact-option-text p {
  font-size: 14px;
  color: var(--text-secondary, #64748b);
  margin: 0;
}

/* 二维码弹窗 */
.qrcode-modal-content {
  max-width: 400px;
  text-align: center;
}

.qrcode-container {
  margin: 24px 0;
  padding: 20px;
  background: #F8FAFC;
  border-radius: 16px;
  display: inline-block;
}

.qrcode-image {
  width: 240px;
  height: 240px;
  border-radius: 8px;
  background: #FFFFFF;
  padding: 12px;
}

.qrcode-tip {
  font-size: 14px;
  color: var(--text-secondary, #64748b);
  margin: 0;
}

/* 电话弹窗 */
.phone-modal-content {
  max-width: 420px;
  text-align: center;
}

.phone-number-container {
  margin: 32px 0;
  padding: 32px 24px;
  background: linear-gradient(135deg, rgba(59, 166, 179, 0.05), rgba(59, 166, 179, 0.1));
  border-radius: 16px;
  border: 2px solid rgba(59, 166, 179, 0.2);
}

.phone-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--brand-primary, #3BA6B3), var(--brand-primary-hover, #2d8a94));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(59, 166, 179, 0.3);
}

.phone-icon i {
  font-size: 32px;
  color: #FFFFFF;
}

.phone-number-display {
  font-size: 32px;
  font-weight: 700;
  color: var(--brand-primary, #3BA6B3);
  margin: 0 0 12px 0;
  letter-spacing: 2px;
}

.phone-modal-tip {
  font-size: 14px;
  color: var(--text-secondary, #64748b);
  margin: 0;
}

.phone-modal-actions {
  margin-top: 24px;
}

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 166, 179, 0.4);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 移动端弹窗调整 */
@media (max-width: 768px) {
  .contact-modal-content {
    padding: 30px 20px;
    max-width: 95%;
  }

  .contact-modal-title {
    font-size: 24px;
  }

  .contact-option-btn {
    padding: 16px;
    gap: 16px;
  }

  .contact-option-icon {
    width: 48px;
    height: 48px;
  }

  .contact-option-icon i {
    font-size: 24px;
  }

  .contact-option-text h3 {
    font-size: 16px;
  }

  .qrcode-image {
    width: 200px;
    height: 200px;
  }
  
  .phone-number-display {
    font-size: 24px;
  }
  
  .phone-icon {
    width: 60px;
    height: 60px;
  }
  
  .phone-icon i {
    font-size: 28px;
  }
}