/* 工具类样式 */
.sidebar-link {
  padding: 0.625rem 1.5rem;
  display: block;
  transition: all 0.3s ease;
  border-radius: 0.5rem;
}


.sidebar-link:hover {
  background-color: rgba(46, 125, 50, 0.1);
  color: #2E7D32;
}

.btn-primary {
  background-color: #2E7D32;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}

.fade-up {
  opacity: 0;
  transform: translateY(2.5rem);
  transition: all 0.7s ease;
}

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

/* 专门用于半透明标题区域的动画 */
.fade-left {
  opacity: 0;
  transform: translateX(-2.5rem);
  transition: all 0.7s ease;
}

.fade-left-active {
  opacity: 1;
  transform: translateX(0);
}

/* 背景图片相关样式已移至首页专用CSS文件 */

/* 半透明标题区域 */
.section-header {
  background: transparent;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  min-height: 60px; /* 最小高度，但不限制动画 */
  display: flex;
  align-items: center;
  overflow: hidden; /* 防止动画影响高度 */
}

.section-header h2 {
  color: white !important;
  text-align: left !important;
}

.section-header h2::after {
  background-color: white !important;
}

/* 理念标题区域蒙层 */
#about .section-header {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.25));
  backdrop-filter: blur(2px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 主视觉区域文字阴影 */
#top h1 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

#top p {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

#top .fa-map-marker,
#top .fa-phone {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Section Header 标题阴影 */
.section-header h2 {
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

/* Hero动画样式 */
.hero-image {
  animation: heroZoom 20s ease-in-out infinite alternate;
  transform-origin: center;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes heroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

.hero-title {
  animation: heroTitleFade 1s ease-out 0.3s forwards;
}

@keyframes heroTitleFade {
  to {
    transform: translateY(0);
  }
}

.hero-subtitle {
  animation: heroSubtitleFade 1s ease-out 0.6s forwards;
}

@keyframes heroSubtitleFade {
  to {
    transform: translateY(0);
  }
}

.hero-description {
  animation: heroDescriptionFade 1s ease-out 0.9s forwards;
}

@keyframes heroDescriptionFade {
  to {
    transform: translateY(0);
  }
}

.hero-button {
  animation: heroButtonFade 1s ease-out 1.2s forwards;
}

@keyframes heroButtonFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 视差滚动效果 */
.parallax-container {
  position: relative;
  overflow: hidden;
}

.parallax-container .hero-image {
  will-change: transform;
  transition: transform 0.5s ease-out;
}

/* 紧凑式导航栏样式 */
.compact-nav-link {
  color: #374151;
  text-decoration: none;
  padding: 0.25rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.compact-nav-link:hover {
  color: #2E7D32;
  border-bottom-color: #2E7D32;
}

.compact-dropdown-link {
  display: block;
  padding: 0.5rem 0.75rem;
  color: #374151;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.compact-dropdown-link:hover {
  background-color: rgba(46, 125, 50, 0.1);
  color: #2E7D32;
}

/* 紧凑式设计特点 */
header {
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.95);
}

/* 下拉菜单动画 */
.group:hover .group-hover\:opacity-100 {
  opacity: 1;
}

.group:hover .group-hover\:visible {
  visibility: visible;
}