/* 自定义样式补充 */

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 自定义动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* 应用动画类 */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* 悬停效果增强 */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 渐变文字效果 */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 卡片悬停效果 */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* 按钮悬停效果 */
.btn-hover {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-hover:hover::before {
    left: 100%;
}

/* 响应式图片 */
.responsive-img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 加载动画 */
.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .mobile-hidden {
        display: none;
    }
    
    .mobile-text-center {
        text-align: center;
    }
    
    .mobile-padding {
        padding: 1rem;
    }
}
/* 打印样式 */
@media print {
    .no-print {
        display: none !important;
    }

    
    body {
        background: white !important;
        color: black !important;
    }
}

.price-highlight {
  font-weight: bold;
  color: #10b981;
}

/* 基础重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}

/* 导航栏基础样式 */
nav {
  top: 0;
  left: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 桌面版导航项样式 */
nav .hidden.md\:flex li {
  position: relative;
}
nav .hidden.md\:flex li a {
  font-weight: 600;
  color: #374151;
  padding: 0.5rem 0;
}
nav .hidden.md\:flex li a:hover {
  color: #2563eb;
}
nav .hidden.md\:flex li.text-blue-600 a {
  color: #2563eb;
}
/* 桌面版二级导航（下拉） */
nav .hidden.md\:flex li > div {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 120px;
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 0.375rem;
  padding: 0.5rem 0;
  display: none;
  z-index: 10;
}
nav .hidden.md\:flex li:hover > div {
  display: block;
}
nav .hidden.md\:flex li > div a {
  display: block;
  padding: 0.5rem 1rem;
  color: #374151;
}
nav .hidden.md\:flex li > div a:hover {
  background: #f3f4f6;
  color: #2563eb;
}

/* 手机版导航菜单样式 */
#mobile-menu {
  transition: all 0.3s ease;
}
#mobile-menu li {
  margin-bottom: 0.25rem;
}
#mobile-menu li a {
  display: block;
  padding: 0.75rem 1rem;
  color: #374151;
  font-weight: 500;
}
#mobile-menu li.text-blue-600 a {
  color: #2563eb;
  background: #f3f4f6;
}
#mobile-menu li > div {
  padding-left: 1.5rem;
  margin-top: 0.25rem;
}
#mobile-menu li > div a {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* 按钮通用样式 */
#auth-buttons a,
#mobile-auth-buttons a {
  font-weight: 600;
  transition: background-color 0.2s ease;
}
#auth-buttons a:first-child {
  background-color: #2563eb;
}
#auth-buttons a:first-child:hover {
  background-color: #1d4ed8;
}
#auth-buttons a:last-child {
  background-color: #10b981;
}
#auth-buttons a:last-child:hover {
  background-color: #059669;
}
#mobile-auth-buttons a:first-child {
  background-color: #2563eb;
}
#mobile-auth-buttons a:first-child:hover {
  background-color: #1d4ed8;
}
#mobile-auth-buttons a:last-child {
  background-color: #10b981;
}
#mobile-auth-buttons a:last-child:hover {
  background-color: #059669;
}




/* 悬浮客服容器：fixed定位，垂直居中 */
  .float-service {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
  }

  /* 单个客服项：relative定位（作为二维码的定位父级） */
  .service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60px;
    height: 60px;
    line-height: 1;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 10px;
    text-decoration: none;
    color: #fff; /* 文字默认白色 */
    transition: all 0.3s ease;
    position: relative; /* 关键：作为二维码的父级定位 */
  }

  /* 微信按钮：绿色背景（匹配示例） */
  .service-item.wechat {
    background: #07c160; /* 微信绿 */
  }
  /* QQ按钮：蓝色背景（匹配示例） */
  .service-item.qq {
    background: #12b7f5; /* QQ蓝 */
  }
  /* 在线客服：橙色背景（匹配示例） */
  .service-item.phone {
    background: #ff7d00; /* 橙红色 */
  }

  /* hover效果：背景色加深，提升交互 */
  .service-item.wechat:hover {
    background: #06b056;
  }
  .service-item.qq:hover {
    background: #0ba6e0;
  }
  .service-item.phone:hover {
    background: #e67000;
  }

  .icon-box {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
  }
  /* 图标强制白色 */
  .service-item .icon-box i {
    color: #fff !important;
  }

  .service-item span {
    font-size: 12px;
    padding-bottom: 5px;
  }

  /* 微信二维码：绝对定位（相对于.service-item） */
  .wechat-qrcode {
    position: absolute; /* 关键：改为absolute */
    right: 70px; /* 相对于按钮右侧偏移70px */
    top: 50%;
    transform: translateY(-50%); /* 垂直居中对齐按钮 */
    width: 160px;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: auto;
  }

  /* 二维码显示状态 */
  .wechat-qrcode.show {
    opacity: 1;
    visibility: visible;
  }

  .wechat-qrcode .qrcode-title {
    text-align: center;
    font-size: 14px;
    margin-bottom: 8px;
    color: #333;
  }

  .wechat-qrcode img {
    display: block;
    width: 140px;
    height: 140px;
    margin: 0 auto;
  }

  /* 图片加载失败占位 */
  .wechat-qrcode img::after {
    content: "二维码加载失败";
    display: block;
    text-align: center;
    line-height: 140px;
    color: #999;
  }

  /* 动画样式 */
  @keyframes fadeIn {
    from { opacity: 0; transform: translate(10px, -50%); }
    to { opacity: 1; transform: translate(0, -50%); }
  }
  @keyframes fadeOut {
    from { opacity: 1; transform: translate(0, -50%); }
    to { opacity: 0; transform: translate(10px, -50%); }
  }
/* 微信二维码样式优化 */
#wechat-qrcode {
    border: 1px solid #f0f0f0;
}
#wechat-qrcode .qrcode-title {
    text-align: center;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 500;
}