/**
 * 首页专用样式
 */

/* 英雄轮播图样式 */
.hero-slider {
  position: relative;
  height: 80vh;
  min-height: 500px;
  overflow: hidden;
}

.hero-slider-container {
  position: relative;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-slide .container {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 3;
}

.hero-content {
  max-width: 800px;
  color: #fff;
  text-align: center;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.hero-slider-nav {
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.slider-prev,
.slider-next {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.slider-prev:hover,
.slider-next:hover {
  background: rgba(255, 255, 255, 0.4);
}

.slider-dots {
  display: flex;
  gap: 10px;
  margin: 0 20px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.slider-dot.active {
  background: var(--color-primary);
}

/* Japan Auction House Introduction */
.auction-intro {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.auction-intro-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.auction-intro-content {
  flex: 1;
  min-width: 300px;
}

.auction-intro-image {
  flex: 1;
  min-width: 300px;
  position: relative;
}

.auction-intro-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.intro-lead {
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 20px;
  font-weight: 500;
}

.intro-text {
  margin-bottom: 30px;
  color: #555;
  line-height: 1.7;
  font-size: 1.2rem;
}

.section-intro {
    font-size: 1.2rem;
}

.intro-features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.feature-item {
  flex: 1;
  min-width: 180px;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-item i {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 15px;
  display: block;
}

.feature-item h4 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.feature-item p {
  font-size: 0.9rem;
  color: #666;
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  right: 30px;
  background: var(--color-primary);
  color: white;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.experience-badge .years {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.experience-badge .text {
  font-size: 0.9rem;
}

/* Why Buy from Japan Auction Section */
.why-buy-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.why-buy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.why-buy-item {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-buy-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.why-buy-icon {
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin:0 auto 20px;
}

.why-buy-icon i {
  font-size: 30px;
  color: #fff;
}

.why-buy-item h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #333;
  font-weight: 600;
}

.why-buy-item p {
  color: #666;
  line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
  padding: 80px 0;
  background-color: #f9f9f9;
  position: relative;
}

.testimonials-section:before {
  content: '"';
  position: absolute;
  top: 50px;
  left: 50px;
  font-size: 200px;
  color: rgba(0, 0, 0, 0.05);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonials-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
}

.testimonial-item {
  flex: 1;
  min-width: 300px;
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.testimonial-item:hover {
  transform: translateY(-10px);
}

.testimonial-content {
  position: relative;
  padding: 25px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.testimonial-content:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 30px;
  width: 20px;
  height: 20px;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.02);
}

.testimonial-footer {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  border: 3px solid var(--color-primary);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-author-info h4 {
  margin: 0 0 5px;
  font-size: 1.1rem;
  color: #333;
}

.author-role {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-primary);
  font-style: italic;
}

.testimonial-content p {
  color: #555;
  line-height: 1.7;
  font-style: italic;
}

/* Latest Blog Section */
.latest-blog {
  padding: 80px 0;
  background-color: #fff;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.blog-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-excerpt {
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Contact Hero Section */
.contact-hero {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  margin-top: 60px;
}

.contact-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -2;
}

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

.contact-hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.contact-hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #fff;
  font-weight: 700;
}

.contact-hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.contact-hero-buttons {
  display: flex;
  justify-content: center;
}

.contact-hero-buttons .btn {
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  min-width: 200px;
}

/* 响应式样式 */
@media (max-width: 992px) {
  .testimonials-slider {
    flex-direction: column;
  }
  
  .testimonial-item {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.2rem;
  }
  
  .hero-slider {
    height: 70vh;
  }
  
  .auction-intro-wrapper {
    flex-direction: column;
  }
  
  .auction-intro-content,
  .auction-intro-image {
    width: 100%;
  }
  
  .intro-features {
    flex-direction: column;
  }
  
  .experience-badge {
    width: 80px;
    height: 80px;
    right: 20px;
    bottom: -15px;
  }
  
  .experience-badge .years {
    font-size: 1.5rem;
  }
  
  .why-buy-grid {
    grid-template-columns: 1fr;
  }
  
  .why-buy-item {
    padding: 25px;
  }
  
  .contact-hero {
    padding: 80px 0;
  }
  
  .contact-hero-content h2 {
    font-size: 2rem;
  }
  
  .contact-hero-content p {
    font-size: 1rem;
  }
}
/* Why Buy from Japan Auto Auction Section */
.why-buy-japan-section {
  /* 为Why Buy from Japan Auto Auction部分添加介绍文本样式 */
  .why-buy-japan-section .section-intro {
      text-align: center;
      max-width: 900px;
      margin: 0 auto 40px;
      font-size: 16px;
      line-height: 1.8;
      color: #555;
  }
  
  @media (max-width: 768px) {
      .why-buy-japan-section .section-intro {
          font-size: 15px;
          line-height: 1.6;
          margin-bottom: 30px;
      }
  }
  padding: 80px 0;
  background-color: #ffffff;
}

.why-buy-japan-section .section-title {
  margin-bottom: 40px;
}

.text-center {
  text-align: center;
}

/* 优化Why Buy from Japan Auto Auction部分的布局 */
.why-buy-japan-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
    margin-top: 40px;
}

.why-buy-japan-image {
    flex: 0 0 45%;
}

.why-buy-japan-content {
    flex: 0 0 55%;
    margin-top: -30px;
}

.why-buy-japan-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .why-buy-japan-wrapper {
        flex-direction: column;
    }
    
    .why-buy-japan-image,
    .why-buy-japan-content {
        flex: 0 0 100%;
        width: 100%;
    }
    
    .why-buy-japan-image {
        margin-bottom: 20px;
    }
}

.why-buy-japan-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .why-buy-japan-wrapper {
      flex-direction: column;
      gap: 30px;
  }
  
  .why-buy-japan-image,
  .why-buy-japan-content {
      width: 100%;
  }
  
  .why-buy-japan-section {
      padding: 50px 0;
  }
}
/* 为Why Buy from Japan Auto Auction部分添加Read More按钮样式 */
.read-more-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.read-more-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--color-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
    color:white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .read-more-container {
        justify-content: center;
    }
}
.feature-title {
  /* 为Why Buy from Japan Auto Auction部分的H3标题链接添加样式 */
  .feature-title a {
      color: inherit;
      text-decoration: none;
      transition: color 0.3s ease;
  }
  
  .feature-title a:hover {
      color: var(--color-primary);
      text-decoration: underline;
  }
  color: var(--color-primary);
}
