/* 网站通用设计升级 */
:root {
  --primary-color: #991b1b;
  --primary-hover: #b91c1c;
  --secondary-color: #ef4444;
  --text-dark: #1f2937;
  --text-light: #4b5563;
  --bg-light: #f9fafb;
  --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --card-border-radius: 1rem;
  --button-border-radius: 9999px;
  --transition-slow: all 0.3s ease;
  --transition-fast: all 0.2s ease;
}

/* 精美卡片样式 */
.elegant-card {
  border-radius: var(--card-border-radius);
  background: white;
  box-shadow: var(--card-shadow);
  transition: var(--transition-slow);
  overflow: hidden;
  border-bottom: 4px solid var(--primary-color);
}

.elegant-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

/* 精致按钮样式 */
.btn-elegant {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--primary-color);
  color: white;
  font-weight: 600;
  border-radius: var(--button-border-radius);
  transition: var(--transition-fast);
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-elegant:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-elegant::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: scale(0) translate(-50%, -50%);
  transform-origin: left top;
  z-index: -1;
  transition: transform 0.5s ease;
}

.btn-elegant:active::after {
  transform: scale(20) translate(-50%, -50%);
}

/* 渐变文本 */
.gradient-text {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* 半透明背景带模糊效果 */
.glass-bg {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* 高级分隔线 */
.fancy-divider {
  height: 4px;
  width: 60px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  margin: 1.5rem auto;
  border-radius: 2px;
}

/* 图片悬停效果 */
.img-hover-zoom {
  overflow: hidden;
  border-radius: var(--card-border-radius);
}

.img-hover-zoom img {
  transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
  transform: scale(1.1);
}

/* 精美图标样式 */
.icon-box {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
  box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

/* 导航栏升级 */
.nav-elegant {
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  background-color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

/* 页脚优化 */
.footer-link {
  position: relative;
  display: inline-block;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.3s ease;
}

.footer-link:hover::after {
  width: 100%;
}

/* 表单美化 */
.elegant-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  outline: none !important;
  background-color: #f9fafb;
}

.elegant-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
  background-color: white;
}

.elegant-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  outline: none !important;
  min-height: 120px;
  background-color: #f9fafb;
}

.elegant-textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
  background-color: white;
}

/* 统计数字动画 */
.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: baseline;
}

/* 鼠标悬停上升效果 */
.hover-lift {
  transition: transform 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
}

/* 标题强调 */
.title-emphasis {
  position: relative;
  display: inline-block;
}

.title-emphasis::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

/* 骨架屏动画 */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

/* 更多现代化元素可以根据需要添加 */

/* 全局样式 */
body {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: #333;
}

/* 导航栏样式 */
.nav-elegant {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* 强调标题样式 */
.title-emphasis {
  position: relative;
  display: inline-block;
}

/* 修复标题下方的装饰线样式 */
.fancy-divider {
  height: 3px;
  width: 80px;
  margin: 0.5rem auto 2rem;
  background: linear-gradient(90deg, #991b1b, #ef4444);
  border-radius: 3px;
}

/* 卡片样式 */
.elegant-card {
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* 图标盒子样式 */
.icon-box {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #991b1b 0%, #ef4444 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

/* 图片悬停缩放效果 */
.img-hover-zoom {
  overflow: hidden;
}

/* 渐变文本效果 */
.gradient-text {
  background: linear-gradient(90deg, #991b1b, #ef4444);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 玻璃态背景 */
.glass-bg {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* 添加Safari兼容前缀 */
  border: 1px solid rgba(255, 255, 255, 0.1);
} 