/* 通用 */
body { margin:0; font-family: 'Segoe UI', sans-serif; background: #10151d; color: white; }
a { text-decoration:none; color: inherit; }


/* Hero 区 */
#hero-canvas {
    position: absolute;
    top:0; left:0;
    width:100%;
    height:100%;
    z-index:0;
  }
  
  .about-hero {
    position: relative;
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow: 0 0 20px rgba(0,0,0,0.6);
    overflow: hidden;
  }
  
  #hero-text {
    font-size: 2.2rem;
    z-index:1;
  }
  
.hero-content { position:relative; text-align:center; z-index:1; }
.hero-content h1 { font-size:5rem; margin-bottom:20px; }
.hero-content p { font-size:1.5rem; }

@media (max-width: 768px) {
    .about-hero {
      min-height: 60vh;
    }
    .hero-content h1 {
      font-size: 3rem;
    }
    .hero-content p {
      font-size: 1rem;
    }
  }
  

/* Vision */
.vision-section { padding:80px 10%; text-align:center; }
.vision-grid { display:flex; justify-content:space-around; flex-wrap:wrap; gap:30px; margin-top:20px; margin-bottom:0px;}
.vision-card { width:300px; padding:30px; border-radius:20px; background: rgba(255,255,255,0.05); backdrop-filter: blur(10px); transition:0.3s; }
.vision-card:hover { transform: translateY(-10px); }
.vision-card i { font-size:40px; color:#00d4ff; transition:0.5s; }
.vision-card:hover i { transform: rotate(15deg) scale(1.2); }


.dmcc-modern {
    background: linear-gradient(135deg, #0f1b2b, #09121a);
    padding: 50px 8%;
    text-align:center;
    border-radius: 30px;
    margin: 50px 0;
    color: #fff;
  }
  
  .dmcc-title {
    text-align: center;
  }
  
  .dmcc-title h2 {
    font-size: 2.4em;
    font-weight: 700;
    margin-bottom: 8px;
  }
  
  .dmcc-title p {
    font-size: 1.15em;
    color: #e6e4e4;
    opacity: 0.9;
    padding-bottom: 20px;
  }
  

  .dmcc-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.05);
    padding: 50px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  }
  
  .dmcc-image img {
    width: 100%;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0, 255, 255, 0.25);
  }
  
  .dmcc-content h2 {
    font-size: 1.9em;
    margin-bottom: 20px;
    line-height: 1.3;
  }
  
  .dmcc-content p {
    font-size: 1.1em;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 30px;
  }
  
  .dmcc-btn {
    padding: 14px 32px;
    background: #00eaff;
    color: #000;
    font-weight: 700;
    border-radius: 30px;
    transition: 0.35s;
    display: inline-block;
    text-decoration: none;
    font-size: 1.05em;
  }
  
  .dmcc-btn:hover {
    background: white;
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 234, 255, 0.3);
  }
  
  /* ✅ 响应式 */
  @media (max-width: 900px) {
    .dmcc-container {
      grid-template-columns: 1fr;
      text-align: center;
      padding: 40px 30px;
    }
    .dmcc-image img {
      margin-bottom: 30px;
    }
  }
  


/* Timeline Canvas */
#timeline-bg {
    position: absolute;
    top:0; left:0;
    width:100%;
    height:100%;
    z-index:0;
  }
  
  /* Timeline Container */
  .timeline-container {
    position: relative;
    z-index:1;
  }
  
  /* Timeline */
  .timeline {
    padding: 100px 10%;
    position: relative;
    min-height: 600px; /* 确保 canvas 有高度 */
  }
  

  
  /* Timeline Items */
.timeline-item {
    width: 45%;
    padding: 10px;
    position: relative;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(50px);
    transition: 0.6s;
    display: flex;
    align-items: center; /* 让图片和文字垂直居中对齐 */
    gap: 20px; /* 图片和文字间距 */
}

.timeline-item.left {
    left: 0;
    text-align: right;
    flex-direction: row-reverse; /* 图片在左，文字在右 */
}

.timeline-item.right {
    left: 55%;
    text-align: left;
    flex-direction: row; /* 图片在右，文字在左 */
}

  .timeline-item.active { opacity: 1; transform: translateY(0); }
  
  /* Timeline Circles */
  .timeline-item::before {
    content: '';
    position: absolute;
    top: 5px;
    width: 15px;
    height: 15px;
    background: #00d4ff;
    border-radius: 50%;
    z-index: 2;
  }
  .timeline-item.left::before { right: -8px; }
  .timeline-item.right::before { left: -8px; }
  
  /* Timeline Content */
  .timeline-item .content {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 10px;
    flex: 1; /* 内容占剩余空间 */
}

  
  /* Timeline Images */
  .timeline-item .timeline-img {
    width: 120px; /* 图片宽度，可自行调整 */
    height: 120px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0; /* 防止图片被压缩 */
}



/* Timeline circle for future milestone */
.timeline-item.future::before {
    content: "\f0ac"; /* Font Awesome globe icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 20px;
    right: -8px; /* right side for left-item */
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffcc00; /* gold color for future goal */
    color: #fff;
    border-radius: 50%;
    font-size: 16px;
    z-index: 2;
  }
  
  /* Icon inside content */
  .timeline-item.future .content h3 i {
    margin-left: 10px;
    color: #ffcc00; /* match the circle */
  }
  

/* Team */
.team { padding:60px 10%; text-align:center;background-color: #0f1b2b; }
.team-grid { display:flex; justify-content:center; gap:150px; flex-wrap:wrap; }
.member { position:relative; overflow:hidden; border-radius:20px; width:230px; height:390px;padding-bottom:80px;}


  

.team h2 {
    font-size: 2.5em;
    color: #e6e4e4;
    opacity: 0.9;
    padding-bottom: 30px;
  }
  

  .member img { 
    width:80%; 
    height:90%; /* 固定图片高度 */
    object-fit:cover; /* 自动裁切，保持比例 */
    border-radius:20px; 
    transition:0.4s; 
  }
  
.member:hover img { transform:scale(1.1); opacity:0.7; }
.overlay { position:absolute; bottom:0; padding:20px; color:white; background: rgba(0,0,0,0.6); opacity:0; transition:0.4s; }
.member:hover .overlay { opacity:1; }
.social { margin-top:10px; display:flex; gap:30px; justify-content:center; }
.social i { color:#00d4ff; transition:0.3s; }
.social i:hover { transform:scale(1.2); }


/* Gallery */
/* Gallery Section */
.gallery {
    padding: 80px 10%;
    text-align: center;
  }
  
  .gallery h2 {
    font-size: 2em;
    margin-bottom: 40px;
  }
  
  /* Gallery Grid */
  .gallery-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 20px;
    padding-bottom: 10px;
  }
  
  /* Card Container */
  .gallery-card {
    flex: 0 0 20%;
    height: 200px;
    perspective: 1000px; /* 3D 效果关键 */
  }
  
  /* Card Inner */
  .gallery-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
  }
  
  /* 翻转效果 */
  .gallery-card:hover .gallery-card-inner {
    transform: rotateY(180deg);
  }
  
  /* Card Faces */
  .gallery-card-front,
  .gallery-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    backface-visibility: hidden;
  }
  
  /* 前面 */
  .gallery-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  }
  
  /* 背面 */
  .gallery-card-back {
    background: #00eaff;
    color: #000;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-weight: 600;
    text-align: center;
    font-size: 1em;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  }
  
  /* 小堆叠错落效果 */
  .gallery-card:nth-child(odd) { transform: translateY(10px); }
  .gallery-card:nth-child(even) { transform: translateY(-10px); }
  
  /* 响应式 */
  @media (max-width: 900px) {
    .gallery-card {
      width: 90%;
      height: 180px;
    }
  }
  

/* CTA */
.cta { text-align:center; padding:80px 10%; }
.btn { background: linear-gradient(90deg,#00d4ff,#007cf0); padding:12px 30px; border-radius:25px; color:white; transition:0.3s; display:inline-block; }
.btn:hover { animation:pulse 1s infinite; }
@keyframes pulse { 0%{transform:scale(1);}50%{transform:scale(1.05);}100%{transform:scale(1);} }


/* Responsive */
@media(max-width:768px){
  .timeline-item { width:90% !important; left:5% !important; text-align:left !important; }
  .vision-grid { flex-direction:column; align-items:center; }
  .team-grid { flex-direction:column; align-items:center; }
}
