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

/* Page Header */
.page-header {
  padding: 150px 0 var(--space-xl);
  background: linear-gradient(
    to bottom,
    rgba(47, 69, 56, 0.1) 0%,
    var(--bg-primary) 100%
  );
  text-align: center;
}

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

.page-subtitle {
  font-size: 0.875rem;
  color: var(--gray);
  letter-spacing: 0.2em;
}

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

.story-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.story-text h2 {
  font-size: 1.75rem;
  margin-bottom: var(--space-md);
}

.story-text p {
  font-size: 1rem;
  line-height: 2;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.story-stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--gray-light);
}

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

.stat-number {
  font-family: var(--font-en);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: var(--space-xs);
}

.story-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.story-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Timeline Section */
.timeline {
  padding: var(--space-xxl) 0;
  background: var(--gray-light);
}

.timeline-list {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-list::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 50%;
  position: relative;
  margin-bottom: var(--space-xl);
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 50%;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateX(-50%);
  border: 3px solid var(--bg-primary);
}

.timeline-content {
  max-width: 350px;
  padding: var(--space-md);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 10px var(--shadow);
}

.timeline-year {
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.timeline-title {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.timeline-desc {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.6;
}

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

.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-lg);
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);  /* 改为5列 */
    gap: var(--space-lg);
}

/* 平板端：3列 */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 小平板：2列 */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 手机端：1列 */
@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}
.team-card {
  text-align: center;
}

.team-avatar {
  width: 180px;
  height: 180px;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gray-light);
}

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

.team-name {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

.team-role {
  font-size: 0.875rem;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.team-bio {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.8;
}

/* Certificates Section */
.certificates {
  padding: var(--space-xxl) 0;
  background: var(--gray-light);
}

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

.cert-item {
  background: var(--white);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  text-align: center;
  transition: transform var(--transition-normal);
}

.cert-item:hover {
  transform: translateY(-4px);
}

.cert-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.cert-name {
  font-size: 0.875rem;
  font-weight: 500;
}

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

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

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
}

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

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(47, 69, 56, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-title {
  color: var(--white);
  font-size: 0.875rem;
  text-align: center;
  padding: var(--space-sm);
}

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

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

.friend-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 10px var(--shadow);
}

.friend-image {
  height: 200px;
  overflow: hidden;
}

.friend-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.friend-content {
  padding: var(--space-md);
}

.friend-name {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.friend-desc {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
  .story-content {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .friends-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 1.75rem;
  }
  
  .timeline-list::before {
    left: 20px;
  }
  
  .timeline-item,
  .timeline-item:nth-child(even) {
    padding-left: 50px;
    padding-right: 0;
    justify-content: flex-start;
  }
  
  .timeline-dot {
    left: 20px;
  }
  
  .story-stats {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .friends-grid {
    grid-template-columns: 1fr;
  }
}
/* ========================================
   卡片式悬浮时间线 - 现代极简风
   ======================================== */

.timeline-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* 卡片等高 */
    position: relative;
    padding: 60px 40px;
    margin-top: 20px;
    gap: 25px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* 背景细线（弱化存在感） */
.timeline-horizontal::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(to right, 
        transparent 0%, 
        rgba(139, 90, 43, 0.2) 20%, 
        rgba(139, 90, 43, 0.2) 80%, 
        transparent 100%
    );
    transform: translateY(-50%);
    z-index: 1;
}

/* 时间节点卡片 */
.timeline-h-item {
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 20px;
    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;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    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);
    border-color: rgba(139, 90, 43, 0.1);
}

/* 圆点标记（悬浮在卡片上方） */
.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);
    transition: all 0.3s ease;
    z-index: 3;
}

.timeline-h-item:hover::before {
    transform: translateX(-50%) scale(1.2);
    background: #A67C52;
    box-shadow: 
        0 0 0 4px #fff,
        0 0 0 8px rgba(139, 90, 43, 0.2);
}

/* 年份 - 大字号，深色，醒目 */
.timeline-h-year {
    font-size: 2.4rem;
    font-weight: 700;
    color: #2c3e2c;
    line-height: 1;
    margin-bottom: 8px;
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: -1px;
}

/* 阶段标题 - 小字，大写，灰色，精致 */
.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;
}

/* 描述文字 - 正常阅读大小，柔和灰色 */
.timeline-h-item p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
}

/* 奇偶项微调（创造节奏感） */
.timeline-h-item:nth-child(odd) {
    margin-top: -20px;
}

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

/* 连接线圆点（可选装饰） */
.timeline-h-item::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(139, 90, 43, 0.2);
    border-radius: 50%;
    bottom: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-h-item:hover::after {
    opacity: 1;
}

/* 响应式：平板 */
@media (max-width: 1024px) {
    .timeline-horizontal {
        padding: 40px 20px;
        gap: 15px;
    }
    
    .timeline-h-item {
        min-width: 150px;
        padding: 25px 15px;
    }
    
    .timeline-h-year {
        font-size: 2rem;
    }
}

/* 响应式：手机 - 改为竖版卡片堆叠 */
@media (max-width: 768px) {
    .timeline-horizontal {
        flex-direction: column;
        align-items: center;
        padding: 30px 20px;
        gap: 30px;
    }
    
    .timeline-horizontal::before {
        display: none; /* 手机隐藏连接线 */
    }
    
    .timeline-h-item {
        width: 100%;
        max-width: 400px;
        min-width: auto;
        margin-top: 0 !important;
        padding: 30px 25px;
        flex-direction: row; /* 手机横排 */
        text-align: left;
        align-items: flex-start;
        gap: 20px;
    }
    
    .timeline-h-item::before {
        position: static;
        transform: none;
        margin-bottom: 0;
        flex-shrink: 0;
        align-self: center;
    }
    
    .timeline-h-item:hover::before {
        transform: scale(1.2);
    }
    
    .timeline-h-content {
        flex: 1;
    }
    
    .timeline-h-year {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }
    
    .timeline-h-title {
        display: inline-block;
        margin-bottom: 8px;
    }
    
    .timeline-h-item p {
        font-size: 0.9rem;
    }
    
    .timeline-h-item::after {
        display: none;
    }
}
