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

/* === Banner Slider === */
.banner { position: relative; height: 500px; overflow: hidden; background: var(--dark); }
.banner-slider { position: relative; height: 100%; }
.banner-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s 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 right, rgba(15,41,34,0.85) 0%, rgba(15,41,34,0.4) 60%, transparent 100%); }
.banner-content { position: absolute; top: 50%; left: 0; width: 100%; transform: translateY(-50%); z-index: 2; }
.banner-text { max-width: 600px; padding: 0 20px; }
.banner-text h2 { font-size: 36px; color: var(--white); margin-bottom: 15px; font-weight: 700; }
.banner-text p { font-size: 16px; color: rgba(255,255,255,0.8); line-height: 1.8; margin-bottom: 25px; }

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

/* === About Section === */
.about-section { background: var(--bg); }
.about-grid { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin: 0 -15px; }
.about-col { width: 25%; padding: 0 15px; margin-bottom: 30px; }
.about-card { background: var(--white); border-radius: 8px; padding: 35px 25px; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: all 0.3s ease; border-top: 3px solid transparent; }
.about-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,0.1); border-top-color: var(--secondary); }
.about-icon { width: 60px; height: 60px; margin: 0 auto 20px; background: rgba(27,67,50,0.08); border-radius: 50%; display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center; -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center; font-size: 24px; color: var(--primary); }
.about-card h3 { font-size: 17px; color: var(--primary); margin-bottom: 12px; }
.about-card p { font-size: 13px; color: var(--text-light); line-height: 1.7; }

/* === Services Section === */
.services-section { background: var(--white); }
.service-grid { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin: 0 -15px; }
.service-col { width: 25%; padding: 0 15px; margin-bottom: 30px; }
.service-card { display: block; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: all 0.3s ease; background: var(--white); border: 1px solid var(--border); }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,0.12); border-color: var(--secondary); }
.service-img { height: 160px; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover .service-img img { transform: scale(1.08); }
.service-body { padding: 25px; }
.service-body h3 { font-size: 17px; color: var(--primary); margin-bottom: 10px; }
.service-body p { font-size: 13px; color: var(--text-light); line-height: 1.7; }
.service-link { display: inline-block; margin-top: 12px; color: var(--secondary); font-size: 13px; font-weight: 600; }
.service-link:hover { color: var(--primary); }

/* === Stats Section === */
.stats-section { background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%); color: var(--white); padding: 70px 0; }
.stats-grid { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; }
.stats-item { width: 25%; text-align: center; padding: 0 15px; }
.stats-num { font-size: 42px; font-weight: 700; color: var(--secondary); margin-bottom: 8px; }
.stats-label { font-size: 14px; color: rgba(255,255,255,0.7); }
.stats-divider { width: 1px; height: 60px; background: rgba(255,255,255,0.15); }

/* === Wiki Section === */
.wiki-section { background: var(--bg); }
.wiki-list { background: var(--white); border-radius: 8px; padding: 30px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.wiki-item { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: start; -webkit-align-items: flex-start; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid #f0ebe5; transition: all 0.3s; }
.wiki-item:last-child { border-bottom: none; }
.wiki-item:hover { padding-left: 8px; }
.wiki-num { width: 36px; height: 36px; background: var(--primary); color: var(--white); border-radius: 6px; display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center; -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center; font-size: 14px; font-weight: 600; margin-right: 18px; -webkit-flex-shrink: 0; flex-shrink: 0; }
.wiki-info { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; }
.wiki-info h3 { font-size: 15px; color: var(--primary); margin-bottom: 6px; line-height: 1.4; }
.wiki-info h3:hover { color: var(--secondary); }
.wiki-info p { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* === News Section === */
.news-section { background: var(--white); }
.news-grid { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin: 0 -15px; }
.news-col { width: 25%; padding: 0 15px; margin-bottom: 20px; }
.news-card { display: block; padding: 20px; background: var(--bg); border-radius: 8px; border-left: 3px solid var(--secondary); transition: all 0.3s; }
.news-card:hover { background: var(--white); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.news-date { font-size: 12px; color: var(--secondary); margin-bottom: 8px; font-weight: 600; }
.news-card h3 { font-size: 15px; color: var(--primary); margin-bottom: 8px; line-height: 1.4; }
.news-card p { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* === Partners Section === */
.partner-section { background: var(--bg); }
.partner-grid { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center; margin: 0 -15px; }
.partner-item { width: 25%; padding: 15px; text-align: center; }
.partner-logo { background: var(--white); border-radius: 8px; padding: 25px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: all 0.3s; border: 1px solid var(--border); }
.partner-logo:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.1); border-color: var(--secondary); }
.partner-logo span { font-size: 16px; font-weight: 600; color: var(--primary); }
.partner-logo small { display: block; font-size: 12px; color: var(--text-light); margin-top: 5px; }

/* === Contact Quick Section === */
.contact-quick { background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%); color: var(--white); padding: 60px 0; }
.contact-quick-grid { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-box-align: center; -webkit-align-items: center; align-items: center; }
.contact-quick-info { width: 70%; }
.contact-quick-info h2 { font-size: 26px; margin-bottom: 15px; color: var(--secondary); }
.contact-quick-info p { color: rgba(255,255,255,0.8); margin-bottom: 8px; font-size: 15px; }
.contact-quick-btn { width: 30%; text-align: right; }
.contact-quick-btn .btn { padding: 14px 40px; font-size: 16px; }

/* === Responsive === */
@media screen and (max-width: 1024px) {
  .about-col, .service-col, .stats-item, .news-col, .partner-item { width: 50%; }
  .stats-divider { display: none; }
  .banner { height: 400px; }
  .banner-text h2 { font-size: 28px; }
}

@media screen and (max-width: 768px) {
  .about-col, .service-col, .stats-item, .news-col, .partner-item { width: 100%; }
  .contact-quick-info, .contact-quick-btn { width: 100%; text-align: center; }
  .contact-quick-btn { margin-top: 20px; }
  .banner { height: 350px; }
  .banner-text h2 { font-size: 22px; }
  .banner-text p { font-size: 14px; }
  .stats-num { font-size: 32px; }
  .wiki-item { -webkit-box-orient: vertical; -webkit-box-direction: normal; -webkit-flex-direction: column; flex-direction: column; }
  .wiki-num { margin-bottom: 10px; }
}
