/* ===== home.css - 首页专属模块 ===== */

/* Banner Carousel */
.banner-carousel {
  position: relative; width: 100%; height: 500px;
  overflow: hidden; margin-top: 70px;
}
.banner-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.7s ease;
}
.banner-slide.active { opacity: 1; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-overlay {
  position: absolute; inset: 0;
  background: rgba(15, 30, 46, 0.5);
  display: flex; align-items: center; justify-content: center;
}
.banner-text { text-align: center; padding: 0 16px; }
.banner-text h2 {
  color: var(--white); font-size: 48px; font-weight: bold;
  margin-bottom: 16px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.banner-text p {
  color: var(--white); font-size: 20px; max-width: 700px; margin: 0 auto;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.banner-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(30, 58, 95, 0.7); color: var(--secondary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 24px; border: none; z-index: 10;
  transition: all 0.3s ease;
}
.banner-arrow:hover { transform: translateY(-50%) scale(1.1); }
.banner-arrow.prev { left: 16px; }
.banner-arrow.next { right: 16px; }
.banner-dots {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.banner-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,0.5); border: none; cursor: pointer;
  transition: all 0.3s ease;
}
.banner-dot.active { background: var(--secondary); width: 32px; border-radius: 6px; }

@media (max-width: 768px) {
  .banner-carousel { height: 350px; }
  .banner-text h2 { font-size: 28px; }
  .banner-text p { font-size: 16px; }
}

/* Core Service Cards */
.core-services { background: var(--page-bg); }
.core-card { text-align: center; padding: 32px 24px; }
.core-card .icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--primary); color: var(--secondary);
  font-size: 28px;
}
.core-card h3 { font-size: 18px; color: var(--text-dark); margin-bottom: 8px; }
.core-card p { font-size: 14px; color: var(--text-gray); line-height: 1.6; }

/* Service Showcase */
.service-item {
  display: block; padding: 32px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--page-bg); transition: all 0.3s ease;
}
.service-item:hover {
  transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  text-decoration: none;
}
.service-item .icon {
  width: 56px; height: 56px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: var(--primary); color: var(--secondary);
  font-size: 24px;
}
.service-item h3 { font-size: 20px; color: var(--primary); margin-bottom: 8px; }
.service-item p { font-size: 14px; color: var(--text-gray); margin-bottom: 16px; line-height: 1.6; }
.service-item .link { font-size: 14px; color: var(--secondary); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }

/* Stats Section */
.stats-section { background: var(--page-bg); }
.stat-item { text-align: center; padding: 24px; }
.stat-item .icon {
  width: 48px; height: 48px; margin: 0 auto 12px;
  color: var(--secondary); font-size: 40px;
}
.stat-item .number { font-size: 48px; font-weight: bold; color: var(--primary); }
.stat-item .number span { color: var(--secondary); }
.stat-item .label { font-size: 14px; color: var(--text-gray); margin-top: 4px; }

/* Wiki & News Cards */
.info-card {
  display: block; padding: 20px; border: 1px solid var(--border);
  border-radius: 8px; transition: all 0.3s ease;
}
.info-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); text-decoration: none; }
.info-card h3 { font-size: 15px; color: var(--primary); margin-bottom: 6px; font-weight: 600; }
.info-card h3:hover { text-decoration: underline; }
.info-card p { font-size: 13px; color: var(--text-gray); line-height: 1.6; }
.info-card .date { font-size: 12px; color: var(--secondary); margin-bottom: 6px; display: block; }

/* Partner Section */
.partner-item {
  display: flex; align-items: center; justify-content: center;
  height: 80px; padding: 16px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--page-bg); font-size: 18px;
  font-weight: bold; color: var(--primary); transition: all 0.3s ease;
}
.partner-item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

/* Contact Quick Section */
.contact-quick { background: var(--primary); }
.contact-quick .section-title { color: var(--white); }
.contact-item { text-align: center; padding: 16px; }
.contact-item .icon { font-size: 32px; color: var(--secondary); margin-bottom: 12px; }
.contact-item h3 { color: var(--white); font-size: 18px; margin-bottom: 4px; }
.contact-item p { color: var(--border); font-size: 14px; }
