@charset "utf-8";
/**
 * index.css - 首页简约风格
 * 设计理念: 极简留白 + 大字体 + 克制微交互
 */

/* ========== 1. Hero Banner - 轮播图 ========== */
.hero-banner {
  position: relative;
}
.hero-banner .carousel-item {
  height: 680px;
}
.hero-banner .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-banner .carousel-indicators {
  bottom: 40px;
}
.hero-banner .carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  margin: 0 6px;
  transition: all 0.3s ease;
}
.hero-banner .carousel-indicators button:hover {
  background: var(--color-primary, #EF3B1B);
}
.hero-banner .carousel-indicators button.active {
  background: var(--color-primary, #EF3B1B);
  transform: scale(1.2);
}
.hero-banner .carousel-control-prev,
.hero-banner .carousel-control-next {
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.3s ease;
}
.hero-banner .carousel-control-prev {
  left: 20px;
}
.hero-banner .carousel-control-next {
  right: 20px;
}
.hero-banner:hover .carousel-control-prev,
.hero-banner:hover .carousel-control-next {
  opacity: 0.8;
}
.hero-banner .carousel-control-prev:hover,
.hero-banner .carousel-control-next:hover {
  opacity: 1;
  background: var(--color-primary, #EF3B1B);
}

/* ========== 2. Section Common - 大字体标题 ========== */
.section-header {
  margin-bottom: 50px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 300;
  color: #1a1a1a;
  letter-spacing: 0.05em;
  margin: 0 0 12px;
}
.section-subtitle {
  font-size: 14px;
  color: #888;
  letter-spacing: 0.02em;
  margin: 0;
}

/* ========== 3. Products Section - 简洁卡片 ========== */
.section-products {
  background: #fff;
  padding: 80px 0;
}
.product-card {
  background: #fff;
  transition: box-shadow 0.4s ease;
}
.product-card:hover {
  box-shadow: 0 25px 60px rgba(0,0,0,0.08);
}
.product-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.product-image {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #f8f9fa;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: transform 0.5s ease;
}
.product-card:hover .product-image img {
  transform: scale(1.03);
}
.product-info {
  padding: 20px 10px;
  text-align: center;
}
.product-title {
  font-size: 15px;
  font-weight: 400;
  color: #333;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.product-card:hover .product-title {
  color: var(--color-primary, #EF3B1B);
}

/* ========== 4. About Section - 白底简约 ========== */
.section-about {
  background: #fff;
  padding: 80px 0;
}
.about-image {
  overflow: hidden;
  border-radius: 4px;
}
.about-image img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.about-image:hover img {
  transform: scale(1.02);
}
.about-content {
  padding: 30px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-company {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 300;
  color: #1a1a1a;
  letter-spacing: 0.03em;
  margin: 0 0 20px;
}
.about-divider {
  width: 40px;
  height: 2px;
  background: var(--color-primary, #EF3B1B);
  margin-bottom: 25px;
}
.about-desc {
  font-size: 15px;
  line-height: 2;
  color: #555;
  margin: 0 0 30px;
}
.btn-about-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 30px;
  border: 1px solid #1a1a1a;
  color: #1a1a1a;
  font-size: 14px;
  text-decoration: none;
  width: fit-content;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}
.btn-about-more:hover {
  background: var(--color-primary, #EF3B1B);
  border-color: var(--color-primary, #EF3B1B);
  color: #fff;
}
/* ========== 4.5 Stats Row - 品红色数字动画 ========== */
.stats-row {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}
.stat-item {
  text-align: center;
  padding: 15px;
}
.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--color-primary, #EF3B1B);
  line-height: 1;
  display: inline-block;
}
.stat-unit {
  font-size: 14px;
  color: var(--color-primary, #EF3B1B);
  font-weight: 500;
}
.stat-label {
  font-size: 13px;
  color: #888;
  letter-spacing: 0.05em;
  margin-top: 8px;
}

/* ========== 5. Cases Section - 浅灰背景 ========== */
.section-cases {
  background: #f8f9fa;
  padding: 80px 0;
}
.case-card {
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.4s ease;
}
.case-card:hover {
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}
.case-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}
.case-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.case-card:hover .case-image img {
  transform: scale(1.03);
}
.case-content {
  padding: 20px;
}
.case-title {
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.case-card:hover .case-title {
  color: var(--color-primary, #EF3B1B);
}

/* ========== 6. News Section - 简洁列表 ========== */
.section-news {
  background: #fff;
  padding: 80px 0;
}
.news-list {
  border-top: 1px solid #eee;
}
.news-item {
  display: flex;
  align-items: center;
  padding: 25px 0;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}
.news-item:hover {
  padding-left: 15px;
  background: #fafafa;
}
.news-date {
  font-size: 13px;
  color: #999;
  width: 100px;
  flex-shrink: 0;
}
.news-title {
  font-size: 16px;
  font-weight: 400;
  color: #333;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.news-item:hover .news-title {
  color: var(--color-primary, #EF3B1B);
}
.news-arrow {
  color: #ccc;
  transition: all 0.3s ease;
}
.news-item:hover .news-arrow {
  color: var(--color-primary, #EF3B1B);
  transform: translateX(5px);
}

/* ========== 7. Button Minimal ========== */
.btn-minimal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 35px;
  border: 1px solid #1a1a1a;
  background: transparent;
  color: #1a1a1a;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-minimal:hover {
  background: var(--color-primary, #EF3B1B);
  border-color: var(--color-primary, #EF3B1B);
  color: #fff;
}
.btn-minimal svg {
  transition: transform 0.3s ease;
}
.btn-minimal:hover svg {
  transform: translateX(3px);
}

/* ========== 8. Responsive ========== */
@media (max-width: 1199.98px) {
  .hero-banner .carousel-item {
    height: 560px;
  }
  .section-products, .section-about, .section-cases, .section-news {
    padding: 70px 0;
  }
}

/* 3列时(992-1199px)隐藏第7、8个产品，保持2行×3列整齐 */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .section-products .row > [class*="col-"]:nth-child(n+7) {
    display: none;
  }
}

@media (max-width: 1024px) {
  .hero-banner .carousel-item {
    height: 480px;
  }
  .hero-banner .carousel-control-prev,
  .hero-banner .carousel-control-next {
    display: none;
  }
  .about-content {
    padding: 25px 20px;
  }
  .section-products, .section-about, .section-cases, .section-news {
    padding: 60px 0;
  }
}

@media (max-width: 767.98px) {
  .hero-banner .carousel-item {
    height: 380px;
  }
  .hero-banner .carousel-indicators {
    bottom: 25px;
  }
  .hero-banner .carousel-indicators button {
    width: 8px;
    height: 8px;
  }
  .section-header {
    margin-bottom: 35px;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .about-content {
    padding: 20px 15px;
  }
  .about-image img {
    min-height: 260px;
  }
  .stats-row {
    margin-top: 30px;
    padding-top: 25px;
  }
  .stat-item {
    padding: 12px 8px;
  }
  .stat-number {
    font-size: 2rem;
  }
  .section-products, .section-about, .section-cases, .section-news {
    padding: 50px 0;
  }
  .news-item {
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 0;
  }
  .news-date {
    width: auto;
    order: 2;
  }
  .news-title {
    width: 100%;
    order: 1;
    white-space: normal;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
  }
  .news-arrow {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .hero-banner .carousel-item {
    height: 280px;
  }
  .about-company {
    font-size: 1.3rem;
  }
  .about-desc {
    font-size: 14px;
    line-height: 1.8;
  }
  .btn-about-more, .btn-minimal {
    padding: 10px 22px;
    font-size: 13px;
  }
  .stat-item {
    padding: 12px 8px;
  }
  .section-products, .section-about, .section-cases, .section-news {
    padding: 40px 0;
  }
}
