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

/* Banner Carousel */
.banner-carousel {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background: #0F2922;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.banner-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 800px;
  padding: 0 1rem;
}

.banner-content h2 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.banner-content p {
  font-size: 1.2rem;
  color: #D4A373;
  margin-bottom: 2rem;
}

.banner-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 3;
}

.banner-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s ease;
}

.banner-dot.active {
  background: #D4A373;
}

.banner-dot:hover {
  background: #fff;
}

/* Section Title */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2rem;
  color: #1B4332;
  margin-bottom: 0.75rem;
}

.section-title .subtitle {
  color: #666;
  font-size: 1rem;
}

.section-title .title-line {
  width: 60px;
  height: 3px;
  background: #D4A373;
  margin: 1rem auto;
}

/* About Preview Section */
.about-preview {
  background: #F5F0EB;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.about-card {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 3px solid #D4A373;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.about-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.about-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: #1B4332;
}

.about-card p {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.6;
}

/* Services Section */
.services-section {
  background: linear-gradient(135deg, #0F2922 0%, #1B4332 100%);
  color: #fff;
}

.services-section .section-title h2 {
  color: #fff;
}

.services-section .section-title .subtitle {
  color: #D4A373;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  padding: 2.5rem 1.5rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid rgba(212,163,115,0.3);
  transition: all 0.3s ease;
}

.service-card:hover {
  background: rgba(255,255,255,0.15);
  border-color: #D4A373;
  transform: translateY(-5px);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: #D4A373;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
}

.service-card h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  line-height: 1.6;
}

.service-card .service-link {
  display: inline-block;
  margin-top: 1rem;
  color: #D4A373;
  font-weight: 500;
}

.service-card .service-link:hover {
  color: #fff;
}

/* Stats Section */
.stats-section {
  background: #F5F0EB;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: #1B4332;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-number span {
  color: #D4A373;
}

.stat-label {
  font-size: 1rem;
  color: #666;
}

/* Wiki Preview Section */
.wiki-section {
  background: #fff;
}

.wiki-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.wiki-item {
  padding: 1.5rem;
  border: 1px solid #D0C8BC;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.wiki-item:hover {
  border-color: #D4A373;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.wiki-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: #1B4332;
}

.wiki-item h3 a {
  color: #1B4332;
}

.wiki-item h3 a:hover {
  color: #D4A373;
}

.wiki-item p {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 0;
}

.wiki-item .wiki-meta {
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.75rem;
}

/* News Section */
.news-section {
  background: #F5F0EB;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.news-item {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.news-item:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.news-date {
  font-size: 0.8rem;
  color: #D4A373;
  margin-bottom: 0.5rem;
}

.news-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.news-item h3 a {
  color: #1B4332;
}

.news-item h3 a:hover {
  color: #D4A373;
}

.news-item p {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0;
}

/* Partners Section */
.partners-section {
  background: #fff;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  background: #F5F0EB;
  border-radius: 8px;
  border: 1px solid #D0C8BC;
  font-size: 1.2rem;
  font-weight: 600;
  color: #1B4332;
  transition: all 0.3s ease;
}

.partner-item:hover {
  border-color: #D4A373;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* Contact Quick Section */
.contact-quick {
  background: linear-gradient(135deg, #1B4332 0%, #0F2922 100%);
  color: #fff;
}

.contact-quick .section-title h2 {
  color: #fff;
}

.contact-quick .section-title .subtitle {
  color: #D4A373;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.contact-info-item {
  text-align: center;
  padding: 1.5rem;
}

.contact-info-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-info-item h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.contact-info-item p {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.contact-cta {
  text-align: center;
  margin-top: 2rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.875rem 2.5rem;
  background: #D4A373;
  color: #fff;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary:hover {
  background: #c49365;
  color: #fff;
}

/* Footer */
.main-footer {
  background: #0F2922;
  color: #fff;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-about h3 {
  color: #D4A373;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.footer-about p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-links h4 {
  color: #D4A373;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #D4A373;
}

.footer-contact h4 {
  color: #D4A373;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-contact p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .about-cards,
  .services-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .banner-carousel {
    height: 350px;
  }
  
  .banner-content h2 {
    font-size: 1.5rem;
  }
  
  .banner-content p {
    font-size: 1rem;
  }
  
  .about-cards,
  .services-grid,
  .stats-grid,
  .partners-grid {
    grid-template-columns: 1fr;
  }
  
  .wiki-list,
  .news-list {
    grid-template-columns: 1fr;
  }
  
  .contact-info-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}
