/* ===================================
   首页专属样式
   =================================== */

/* 通用 Section */
.section {
  padding: var(--spacing-xxl) 0;
}

/* ===================================
   品牌 Swiper 轮播
   =================================== */
.brand-swiper {
  width: 100%;
  height: 100vh;
  margin-top: 0;
  position: relative;
}

.swiper-slide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Swiper 导航 */
.swiper-button-prev,
.swiper-button-next {
  color: #fff;
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 20px;
  font-weight: 700;
}

/* 分页器 - 长条状 */
.swiper-pagination {
  bottom: 50px;
}

.swiper-pagination-bullet {
  background: #fff;
  opacity: 0.5;
  width: 20px!important;
  height: 4px!important;
  border-radius: 2px!important;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background: #fff;
  width: 40px!important;
}

/* 服务区块 */
.services-section {
  background-color: var(--background-light);
}

/* 核心优势区块 - 全新两栏布局 */
.advantages-section {
  padding: 80px 0;
  background-color: #fff;
}

.advantages-container {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

/* 左侧内容 */
.advantages-left {
  flex: 0 0 50%;
  padding: 60px 40px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
}

/* ===================================
   入场动画
   =================================== */
.animate-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.animate-fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.animate-fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.animate-zoom-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.is-visible {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) !important;
}

/* 延迟类 */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }

.adv-header {
  margin-bottom: 30px;
}

.adv-title-en {
  font-size: 28px;
  color: #333;
  font-weight: 700;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.adv-title-zh {
  font-size: 24px;
  color: var(--primary-color);
  font-weight: 600;
}

.adv-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 30px;
}

.adv-image-wrapper {
  margin-bottom: 30px;
  border-radius: 4px;
  overflow: hidden;
}

.adv-warehouse-img {
  width: 100%;
  height: auto;
  display: block;
}

.adv-eight-title {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.adv-line {
  width: 4px;
  height: 20px;
  background-color: var(--primary-color);
  margin-right: 10px;
}

.adv-eight-title h3 {
  font-size: 20px;
  color: var(--primary-color);
  font-weight: 600;
  margin: 0;
}

.adv-icons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 10px;
}

.adv-icon-item {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #333;
}

.adv-icon-item i {
  font-size: 20px;
  color: var(--primary-color);
  margin-right: 8px;
  background: rgba(25, 118, 210, 0.1);
  padding: 8px;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 右侧内容 */
.advantages-right {
  flex: 0 0 50%;
  position: relative;
  background-image: url('../images/wmdys2.png');
  background-size: cover;
  background-position: center;
  padding: 60px 40px;
  display: flex;
  align-items: center;
}

.adv-right-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.adv-right-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.adv-right-title {
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.adv-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}


.adv-card {
  background: rgba(74, 144, 226, 0.75);
  border-radius: 16px;
  padding: 24px 14px;
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.adv-card:hover {
  transform: translateY(-5px);
  background: rgba(74, 144, 226, 0.9);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.adv-card h4 {
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 600;
  display: block;
  color: #fff;
}

.adv-card p {
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  opacity: 0.95;
  color: #eee;
}

/* 响应式调整 */
@media (max-width: 1200px) {
  .advantages-left {
    flex: 0 0 50%;
    padding: 60px 4%;
  }
  .advantages-right {
    flex: 0 0 50%;
    padding: 60px 4%;
  }
  .adv-icons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .adv-cards-grid {
    flex-wrap: wrap;
  }
  .adv-col {
    flex: 0 0 calc(50% - 10px);
  }
  .adv-col:nth-child(1), .adv-col:nth-child(2), .adv-col:nth-child(3) {
    margin-top: 0;
  }
}

@media (max-width: 992px) {
  .advantages-left, .advantages-right {
    flex: 0 0 100%;
  }
  .advantages-right {
    padding: 60px 5%;
  }
  .adv-col {
    flex: 0 0 calc(50% - 10px);
  }
}

@media (max-width: 768px) {
  .adv-cards-grid {
    flex-direction: column;
  }
  .adv-col {
    flex: 0 0 100%;
  }
}

/* 我们的服务区块 */
.services-section {
  background-color: #f8fafd;
  padding: 80px 0;
}

.services-header {
  margin-bottom: 50px;
}

.services-title-en {
  font-size: 28px;
  color: #333;
  font-weight: 700;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.services-title-zh {
  font-size: 24px;
  color: var(--primary-color);
  font-weight: 600;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 60px;
}

.service-item {
  display: flex;
  height: 100px;
  position: relative;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--primary-color);
  background-color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-item-left {
  width: 120px;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  line-height: 1.4;
  letter-spacing: 2px;
}

.service-item-right {
  flex: 1;
  background-color: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 30px 0 50px;
}

.service-item-right p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.service-icon {
  position: absolute;
  left: 120px;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background-color: var(--primary-color);
  border: 1px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  z-index: 2;
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .service-item {
    height: auto;
    min-height: 90px;
  }
  .service-item-right {
    padding: 15px 15px 15px 40px;
  }
  .service-item-left {
    width: 90px;
    font-size: 16px;
  }
  .service-icon {
    left: 90px;
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

/* 合作品牌区块 */
.partners-section {
  background-color: #fff;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--spacing-lg);
  align-items: center;
}

.partner-logo {
  background-color: #fff;
  padding: var(--spacing-md);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.partner-logo:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}

.partner-logo img {
  max-width: 100%;
  height: auto;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.partner-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* 新闻区块 */
.news-section {
  background-color: var(--background-light);
}

.news-grid {
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.news-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: block;
}

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

.news-card-cover {
  height: 200px;
  overflow: hidden;
  background-color: var(--secondary-color);
}

.news-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-card-cover img {
  transform: scale(1.1);
}

.news-card-content {
  padding: var(--spacing-md);
}

.news-card-category {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--primary-color);
  color: #fff;
  font-size: 0.75rem;
  border-radius: 4px;
  margin-bottom: var(--spacing-sm);
}

.news-card-title {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-summary {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: var(--spacing-md);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-light);
}

.news-card-date {
  color: var(--text-light);
}

.section-more {
  text-align: center;
  margin-top: var(--spacing-lg);
}

/* 底部咨询区块 */
.consult-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: #fff;
}

.consult-section .section-title h2 {
  color: #fff;
}

.consult-section .section-title p {
  color: rgba(255, 255, 255, 0.9);
}

.consult-cta {
  text-align: center;
  margin-top: var(--spacing-lg);
}

.consult-cta .btn {
  background-color: #fff;
  color: var(--primary-color);
}

.consult-cta .btn:hover {
  background-color: var(--background-light);
}

/* 动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式 */
@media (max-width: 1200px) {
  .partners-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .range-content {
    grid-template-columns: 1fr;
  }
  
  .range-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .slide-title {
    font-size: 2.5rem;
  }
  
  .slide-subtitle {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  .brand-swiper {
    height: 80vh;
  }
  
  .slide-title {
    font-size: 2rem;
  }
  
  .slide-subtitle {
    font-size: 1rem;
  }
  
  .slide-actions {
    flex-direction: column;
  }
  
  .range-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .range-stats {
    grid-template-columns: 1fr;
  }
  
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stat-card {
    padding: var(--spacing-md);
  }
  
  .stat-number {
    font-size: 1.75rem;
  }
}
