/**
 * 焕新AI - 公共样式文件
 * benewai.com
 *
 * 主色：#FF69B4 (粉红)
 * 辅色：#8A2BE2 (紫罗兰)
 * 背景色：#F8F9FF
 */

/* ==================== 基础样式重置 ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #F8F9FF;
}

/* ==================== 渐变效果 ==================== */
.gradient-bg {
  background: linear-gradient(135deg, #FF69B4 0%, #8A2BE2 100%);
}

.gradient-text {
  background: linear-gradient(135deg, #FF69B4 0%, #8A2BE2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-border {
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #FF69B4, #8A2BE2) border-box;
}

/* ==================== 导航栏样式 ==================== */
.nav-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* ==================== 按钮样式 ==================== */
.btn-primary {
  background: linear-gradient(135deg, #FF69B4 0%, #8A2BE2 100%);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 105, 180, 0.4);
}

.btn-secondary {
  background: white;
  color: #8A2BE2;
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #FF69B4, #8A2BE2) border-box;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  box-shadow: 0 10px 30px rgba(138, 43, 226, 0.2);
}

/* ==================== 卡片样式 ==================== */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ==================== 动画效果 ==================== */

/* 淡入上升动画 */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 手机浮动动画 */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.phone-float {
  animation: float 3s ease-in-out infinite;
}

/* 信任徽章滚动动画 */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.scroll-animation {
  animation: scroll 20s linear infinite;
}

/* 脉冲动画 */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ==================== 滑块样式 ==================== */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 12px;
  background: linear-gradient(90deg, #FF69B4 0%, #8A2BE2 100%);
  border-radius: 6px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  background: white;
  border: 4px solid #8A2BE2;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(138, 43, 226, 0.3);
  transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(138, 43, 226, 0.4);
}

input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  background: white;
  border: 4px solid #8A2BE2;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(138, 43, 226, 0.3);
}

/* ==================== 表单样式 ==================== */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus {
  outline: none;
  border-color: #FF69B4;
  box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.1);
}

/* ==================== 手风琴样式（FAQ） ==================== */
details {
  transition: all 0.3s ease;
}

details[open] {
  background: white;
}

details summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::marker {
  display: none;
}

/* ==================== 响应式工具类 ==================== */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .hide-desktop {
    display: none !important;
  }
}

/* ==================== 滚动条美化 ==================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #FF69B4, #8A2BE2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #8A2BE2;
}

/* ==================== 选中文字样式 ==================== */
::selection {
  background: rgba(255, 105, 180, 0.3);
  color: #8A2BE2;
}

::-moz-selection {
  background: rgba(255, 105, 180, 0.3);
  color: #8A2BE2;
}

/* ==================== 链接样式 ==================== */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: #FF69B4;
}

/* ==================== 图片样式 ==================== */
img {
  max-width: 100%;
  height: auto;
}

/* ==================== 加载动画 ==================== */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #FF69B4;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ==================== 工具类 ==================== */
.text-gradient {
  background: linear-gradient(135deg, #FF69B4 0%, #8A2BE2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-blur {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.shadow-brand {
  box-shadow: 0 10px 40px rgba(255, 105, 180, 0.3);
}

/* ==================== 打印样式 ==================== */
@media print {
  .no-print {
    display: none !important;
  }

  body {
    background: white;
  }

  .gradient-bg {
    background: #8A2BE2 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
