/* 自定义样式 */

/* 颜色变量 */
:root {
  --primary-color: #007bff;
  --primary-dark: #0056b3;
  --secondary-color: #6c757d;
  --light-gray: #f8f9fa;
  --dark-gray: #343a40;
  --text-color: #212529;
  --text-light: #6c757d;
}

/* 全局样式 */
body {
  font-family: 'Microsoft YaHei', Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

/* 过渡效果 */
.transition-colors {
  transition: color 0.3s ease;
}

/* 轮播图 */
.carousel-caption {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 2rem;
  border-radius: 0.5rem;
}

/* 卡片样式 */
.product-card, .case-card, .news-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-image, .news-image {
  height: 200px;
  overflow: hidden;
}

.product-info, .news-info {
  padding: 1.5rem;
}

.product-title, .news-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.product-description, .news-excerpt {
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* 按钮样式 */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* 返回顶部按钮 */
#backToTop {
  z-index: 999;
}

/* 懒加载图片 */
.lazy-img {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.lazy-img.loaded {
  opacity: 1;
}

/* 职位卡片 */
.job-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.job-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.job-info {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.job-description, .job-requirements {
  margin-bottom: 1.5rem;
}

/* 新闻分类 */
.news-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: rgba(0, 123, 255, 0.1);
  color: var(--primary-color);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

/* 案例元信息 */
.case-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-light);
  font-size: 0.875rem;
  margin-top: 1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .carousel-caption {
    padding: 1rem;
  }
  
  .carousel-caption h2 {
    font-size: 1.75rem;
  }
  
  .carousel-caption p {
    font-size: 1rem;
  }
  
  .product-image, .news-image {
    height: 150px;
  }
}

@media (max-width: 576px) {
  .carousel-caption h2 {
    font-size: 1.5rem;
  }
  
  .carousel-caption p {
    font-size: 0.875rem;
  }
  
  .product-image, .news-image {
    height: 120px;
  }
}

/* 加载动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* 手风琴样式 */
.accordion-button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  color: var(--text-color);
  background-color: var(--light-gray);
  border: 0;
  border-radius: 0;
  overflow-anchor: none;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, border-radius 0.15s ease;
}

.accordion-button:hover {
  color: var(--primary-color);
  background-color: #e9ecef;
}

.accordion-button:not(.collapsed) {
  color: var(--primary-color);
  background-color: #e9ecef;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}

.accordion-button:not(.collapsed)::after {
  transform: rotate(-180deg);
}

.accordion-button::after {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: auto;
  content: "";
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: 1.25rem;
  transition: transform 0.2s ease-in-out;
}

.accordion-collapse {
  border-top: 1px solid rgba(0, 0, 0, 0.125);
}

.accordion-body {
  padding: 1rem 1.25rem;
}