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

html {
  scroll-behavior: smooth;
}

body {
  font-family: PingFang SC, -apple-system, BlinkMacSystemFont, Helvetica Neue, Microsoft YaHei, Source Han Sans SC,
		Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tailwind 自定义颜色 */
.bg-primary {
  background-color: #c71432 !important;
}

.text-primary {
  color: #c71432 !important;
}

.border-primary {
  border-color: #c71432 !important;
}

.hover\:text-primary:hover {
  color: #c71432 !important;
}

.hover\:bg-primary:hover {
  background-color: #c71432 !important;
}

.bg-primary-dark {
  background-color: #a01028 !important;
}

.hover\:bg-primary-dark:hover {
  background-color: #a01028 !important;
}

/* 导航链接样式 */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
  color: #666666;
  text-align: center;
  line-height: 1.2;
  display: inline-block;
}

.nav-link span {
  display: block;
  font-size: 0.875rem;
  margin-top: 2px;
}

.nav-link:hover {
  color: #c71432;
}

.nav-link.active {
  color: #c71432;
  font-weight: 500;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: #c71432;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 46%;
}

/* 红色分隔线 */
.divider-red {
  width: 100%;
  height: 2px;
  background-color: #c71432;
  margin: 2rem auto;
}

/* 轮播图覆盖层 */
.hero-overlay {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
}

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

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

/* 图片遮罩 */
.image-overlay {
  position: relative;
  overflow: hidden;
}

.image-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  transition: background 0.3s ease;
}

.image-overlay:hover::after {
  background: rgba(0, 0, 0, 0.3);
}

/* 按钮样式 */
.btn-primary {
  background-color: #c71432;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  border: 2px solid #c71432;
}

.btn-primary:hover {
  background-color: #a01028;
  border-color: #a01028;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(199, 20, 50, 0.3);
}

/* 响应式字体 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

/* 移动端菜单动画 */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-menu.active {
  max-height: 500px;
}

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

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

::-webkit-scrollbar-thumb {
  background: #c71432;
  border-radius: 5px;
}

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