/* ========================================
   VANFUA梵花美学 - 首页样式
   ======================================== */

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

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

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(47, 69, 56, 0.3) 0%,
    rgba(47, 69, 56, 0.5) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--white);
  padding: var(--space-md);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  margin-bottom: var(--space-sm);
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1rem;
  letter-spacing: 0.3em;
  opacity: 0.9;
  margin-bottom: var(--space-xl);
}

.hero-brand {
  font-family: var(--font-en);
  font-size: 1.25rem;
  font-style: italic;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.hero-dots {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-sm);
  z-index: 10;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hero-dot.active {
  background: var(--white);
  transform: scale(1.2);
}

/* Brand Entry Section */
.brand-entry {
  padding: var(--space-xxl) 0;
}

.brand-entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-lg);
}

.brand-card {
  position: relative;
  height: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.brand-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.brand-card:hover img {
  transform: scale(1.05);
}

.brand-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(47, 69, 56, 0.8) 0%,
    rgba(47, 69, 56, 0.2) 50%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-xl);
  color: var(--white);
}

.brand-card-title {
    font-size: 2rem;
    margin-bottom: var(--space-xs);
    color: #fff !important;  /* 把 var(--white) 改成 #fff */
}

.brand-card-subtitle {
  font-size: 0.875rem;
  opacity: 0.8;
  letter-spacing: 0.1em;
    color: #fff !important;  
}

.brand-card-desc {
  font-size: 0.875rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  margin-top: var(--space-sm);
    color: #fff !important; 
}

.brand-card:hover .brand-card-desc {
  opacity: 1;
  transform: translateY(0);
}

/* Philosophy Section */
.philosophy {
  padding: var(--space-xxl) 0;
  background: linear-gradient(
    to bottom,
    var(--bg-primary) 0%,
    var(--gray-light) 50%,
    var(--bg-primary) 100%
  );
}

.philosophy-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.philosophy-title {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.philosophy-quote {
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: var(--accent);
  font-style: italic;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.philosophy-item {
  text-align: center;
  padding: var(--space-lg);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform var(--transition-normal);
}

.philosophy-item:hover {
  transform: translateY(-8px);
}

.philosophy-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  background: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent);
}

.philosophy-item h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.philosophy-item p {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.8;
}

.philosophy-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.5rem;
}

/* Features Section */
.features {
  padding: var(--space-xxl) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  padding: var(--space-lg);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px var(--shadow);
}

.feature-number {
  font-family: var(--font-en);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.8;
}

/* CTA Section */
.cta {
  padding: var(--space-xxl) 0;
  background: var(--text-primary);
  color: var(--white);
  text-align: center;
}

.cta-title {
  font-size: 2rem;
  margin-bottom: var(--space-md);
  color: var(--white);
}

.cta-text {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: var(--space-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

.cta-btn {
  padding: 1rem 2rem;
  border: 1px solid var(--white);
  color: var(--white);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  transition: all var(--transition-fast);
}

.cta-btn:hover {
  background: var(--white);
  color: var(--text-primary);
}

.cta-btn-primary {
  background: var(--accent);
  border-color: var(--accent);
}

.cta-btn-primary:hover {
  background: var(--coffee-accent);
  border-color: var(--coffee-accent);
  color: var(--white);
}

/* Responsive */
@media (max-width: 1024px) {
  .philosophy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 0.875rem;
  }
  
  .brand-entry-grid {
    grid-template-columns: 1fr;
  }
  
  .brand-card {
    height: 350px;
  }
  
  .philosophy-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-btn {
    width: 100%;
    max-width: 280px;
  }
}
/* 首页时间线样式 */
.timeline-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    position: relative;
    padding: 100px 50px;
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

.timeline-horizontal::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 2px;
    background: linear-gradient(to right, 
        transparent 0%, 
        rgba(139, 90, 43, 0.3) 20%, 
        rgba(139, 90, 43, 0.3) 80%, 
        transparent 100%
    );
    transform: translateY(-50%);
    z-index: 1;
}

.timeline-h-item {
    flex: 1;
    min-width: 160px;
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 15px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.06),
        0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 2;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.timeline-h-item:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.08);
}

.timeline-h-item::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: #8B5A2B;
    border-radius: 50%;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 
        0 0 0 4px #fff,
        0 0 0 6px rgba(139, 90, 43, 0.15);
    z-index: 3;
}

.timeline-h-year {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e2c;
    margin-bottom: 8px;
    font-family: 'Georgia', serif;
}

.timeline-h-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #8B5A2B;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    padding: 4px 12px;
    background: rgba(139, 90, 43, 0.08);
    border-radius: 20px;
    display: inline-block;
}

.timeline-h-item p {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* 波浪偏移 */
.timeline-h-item:nth-child(odd) {
    margin-top: -30px;
}

.timeline-h-item:nth-child(even) {
    margin-top: 30px;
}

/* 响应式 */
@media (max-width: 968px) {
    .timeline-horizontal {
        flex-direction: column;
        padding: 40px 20px;
    }
    
    .timeline-horizontal::before {
        display: none;
    }
    
    .timeline-h-item {
        width: 100%;
        max-width: 400px;
        margin: 0 auto 20px;
    }
    
    .timeline-h-item:nth-child(odd),
    .timeline-h-item:nth-child(even) {
        margin-top: 0;
    }
}
/* 强制减小发展历程和品牌特色的间距 */
.timeline {
    padding: 40px 0 20px 0 !important;  /* 上下减小 */
}

.features {
    padding: 20px 0 40px 0 !important;  /* 顶部紧贴，底部正常 */
}

/* 减小标题下方的间距 */
.timeline .section-title,
.features .section-title {
    margin-bottom: 20px !important;
}

/* 时间线卡片区域的 padding 也减小 */
.timeline-horizontal {
    padding: 60px 40px !important;  /* 原来是 100px，减到60px */
}
/* 首页 Hero 区域文字改为白色并添加阴影 */
.hero-title {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-brand {
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}