/* home.css - 首页专属模块（仅首页加载） */

/* ===== Banner Carousel ===== */
.banner { position: relative; overflow: hidden; height: 500px; }
.banner-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.banner-slide.active { opacity: 1; }
.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(15,30,46,0.3), rgba(15,30,46,0.6));
}
.banner-content {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--white);
  z-index: 2;
  width: 90%;
  max-width: 800px;
}
.banner-content h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.banner-content p {
  font-size: 16px;
  opacity: 0.9;
  line-height: 1.6;
}

/* Banner Arrows */
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.banner-arrow:hover { background: rgba(212,165,116,0.4); }
.banner-prev { left: 20px; }
.banner-next { right: 20px; }

/* Banner Indicators */
.banner-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
}
.banner-dot.active {
  background: var(--secondary);
  width: 28px;
  border-radius: 5px;
}

/* ===== Core Business Cards ===== */
.core-cards { background: var(--bg); }
.core-cards .grid-4 { gap: 24px; }
.core-card {
  background: var(--white);
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease-out;
}
.core-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.core-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary), #2a4a73);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 28px;
}
.core-card h3 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 12px;
}
.core-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* ===== Service Showcase ===== */
.service-showcase { background: var(--white); }
.service-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.service-item {
  display: flex;
  gap: 24px;
  padding: 28px;
  background: var(--bg);
  border-radius: 8px;
  border-left: 4px solid var(--secondary);
  transition: all 0.3s;
}
.service-item:hover {
  box-shadow: var(--shadow);
  transform: translateX(4px);
}
.service-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 24px;
}
.service-info h3 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 8px;
}
.service-info p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* ===== Data Counter Section ===== */
.data-section {
  background: linear-gradient(135deg, var(--dark), var(--primary));
  color: var(--white);
  padding: 80px 0;
}
.data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.data-item { text-align: center; }
.data-number {
  font-size: 42px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
  font-family: Arial, sans-serif;
}
.data-label {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}

/* ===== Wiki & News Preview ===== */
.preview-section { background: var(--bg); }
.preview-list { display: flex; flex-direction: column; gap: 16px; }
.preview-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}
.preview-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateX(4px);
}
.preview-item .date {
  flex-shrink: 0;
  width: 60px;
  text-align: center;
  padding: 8px;
  background: var(--primary);
  color: var(--white);
  border-radius: 6px;
}
.preview-item .date .day { font-size: 22px; font-weight: 700; display: block; }
.preview-item .date .month { font-size: 11px; opacity: 0.8; }
.preview-item h3 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 6px;
  line-height: 1.4;
}
.preview-item p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== Partners Section ===== */
.partners-section { background: var(--white); }
.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.partner-item {
  height: 80px;
  background: var(--bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
}
.partner-item:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow);
  color: var(--primary);
}

/* ===== Contact Quick Section ===== */
.contact-quick { background: var(--dark); color: var(--white); }
.contact-quick-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.contact-quick-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
}
.contact-quick-item .icon {
  width: 44px;
  height: 44px;
  background: rgba(212,165,116,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 18px;
  flex-shrink: 0;
}
.contact-quick-item h4 { font-size: 14px; margin-bottom: 4px; color: var(--secondary); }
.contact-quick-item p { font-size: 13px; color: rgba(255,255,255,0.8); }

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 50px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 30px;
}
.footer-col h4 {
  color: var(--secondary);
  font-size: 16px;
  margin-bottom: 16px;
}
.footer-col p,
.footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 2;
}
.footer-col a:hover { color: var(--secondary); }
.footer-links li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--secondary); }

/* ===== Section Title ===== */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 {
  font-size: 26px;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-title p {
  font-size: 14px;
  color: var(--muted);
}
.section-title.center-line {
  position: relative;
  padding-bottom: 16px;
}
.section-title.center-line::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
}

/* ===== Responsive ===== */
@media (min-width: 768px) {
  .banner { height: 550px; }
  .banner-content h2 { font-size: 38px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .contact-quick-grid { grid-template-columns: 1fr 1fr; }
  .partner-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .banner { height: 600px; }
  .banner-content h2 { font-size: 42px; }
  .data-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .contact-quick-grid { grid-template-columns: repeat(3, 1fr); }
  .partner-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 767px) {
  .banner { height: 350px; }
  .banner-content h2 { font-size: 22px; }
  .banner-content p { font-size: 13px; }
  .banner-arrow { display: none; }
  .data-number { font-size: 32px; }
  .core-card { padding: 24px 16px; }
  .service-item { flex-direction: column; gap: 16px; }
}
