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

/* ===== Banner Carousel ===== */
.banner {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background-color: #1E2729;
}

.banner-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 1;
}

.banner-slide.active {
  opacity: 1;
  z-index: 2;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-content {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 3;
  width: 90%;
  max-width: 800px;
}

.banner-content h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  font-weight: 600;
}

.banner-content p {
  font-size: 1.125rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  line-height: 1.8;
}

/* Banner Indicators */
.banner-indicators {
  position: absolute;
  bottom: 25px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  z-index: 4;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.indicator.active {
  background-color: #E17055;
  border-color: #fff;
  -webkit-transform: scale(1.2);
  -ms-transform: scale(1.2);
  transform: scale(1.2);
}

.indicator:hover {
  background-color: #E17055;
}

/* Banner Arrows */
.banner-arrow {
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(45,52,54,0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 4;
  font-size: 1.25rem;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.banner-arrow:hover {
  background-color: #E17055;
}

.banner-arrow.prev { left: 20px; }
.banner-arrow.next { right: 20px; }

@media (max-width: 768px) {
  .banner {
    height: 350px;
  }
  .banner-content h2 {
    font-size: 1.75rem;
  }
  .banner-content p {
    font-size: 0.9375rem;
  }
  .banner-arrow {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .banner-arrow.prev { left: 10px; }
  .banner-arrow.next { right: 10px; }
}

@media (max-width: 480px) {
  .banner {
    height: 280px;
  }
  .banner-content h2 {
    font-size: 1.375rem;
  }
  .banner-content p {
    font-size: 0.875rem;
  }
}

/* ===== Core Business Intro ===== */
.core-business {
  background-color: #F5F6FA;
  padding: 60px 0;
}

.core-cards {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
}

.core-card {
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 calc(25% - 24px);
  -ms-flex: 1 1 calc(25% - 24px);
  flex: 1 1 calc(25% - 24px);
  min-width: 240px;
  background: #fff;
  padding: 35px 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  border-top: 3px solid transparent;
}

.core-card:hover {
  -webkit-transform: translateY(-6px);
  -ms-transform: translateY(-6px);
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border-top-color: #E17055;
}

.core-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background-color: rgba(225,112,85,0.1);
  border-radius: 50%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  color: #E17055;
  font-size: 1.75rem;
}

.core-card h3 {
  font-size: 1.125rem;
  color: #2D3436;
  margin-bottom: 12px;
}

.core-card p {
  font-size: 0.875rem;
  color: #666666;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .core-card {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 calc(50% - 24px);
    -ms-flex: 1 1 calc(50% - 24px);
    flex: 1 1 calc(50% - 24px);
    min-width: auto;
    padding: 25px 20px;
  }
}

@media (max-width: 480px) {
  .core-card {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 100%;
    -ms-flex: 1 1 100%;
    flex: 1 1 100%;
  }
}

/* ===== Services Section ===== */
.services-section {
  background-color: #fff;
  padding: 60px 0;
}

.services-grid {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
}

.service-item {
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 calc(25% - 24px);
  -ms-flex: 1 1 calc(25% - 24px);
  flex: 1 1 calc(25% - 24px);
  min-width: 240px;
  background: #F5F6FA;
  border-radius: 8px;
  padding: 35px 25px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #DCDDE1;
}

.service-item:hover {
  background: #fff;
  border-color: #E17055;
  box-shadow: 0 6px 24px rgba(225,112,85,0.15);
  -webkit-transform: translateY(-4px);
  -ms-transform: translateY(-4px);
  transform: translateY(-4px);
}

.service-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background-color: #E17055;
  border-radius: 50%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
}

.service-item h3 {
  font-size: 1.125rem;
  color: #2D3436;
  margin-bottom: 12px;
}

.service-item p {
  font-size: 0.875rem;
  color: #666666;
  line-height: 1.7;
}

.service-link {
  display: inline-block;
  margin-top: 15px;
  color: #E17055;
  font-size: 0.875rem;
  font-weight: 500;
}

.service-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .service-item {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 calc(50% - 24px);
    -ms-flex: 1 1 calc(50% - 24px);
    flex: 1 1 calc(50% - 24px);
    min-width: auto;
    padding: 25px 20px;
  }
}

@media (max-width: 480px) {
  .service-item {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 100%;
    -ms-flex: 1 1 100%;
    flex: 1 1 100%;
  }
}

/* ===== Stats Section ===== */
.stats-section {
  background-color: #1E2729;
  padding: 70px 0;
  color: #fff;
}

.stats-section .section-title {
  color: #fff;
}

.stats-grid {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
}

.stat-item {
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 calc(25% - 24px);
  -ms-flex: 1 1 calc(25% - 24px);
  flex: 1 1 calc(25% - 24px);
  min-width: 200px;
  text-align: center;
  padding: 30px 20px;
  border-radius: 8px;
  background-color: rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}

.stat-item:hover {
  background-color: rgba(225,112,85,0.15);
  -webkit-transform: translateY(-4px);
  -ms-transform: translateY(-4px);
  transform: translateY(-4px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #E17055;
  display: block;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.8);
}

@media (max-width: 768px) {
  .stat-item {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 calc(50% - 24px);
    -ms-flex: 1 1 calc(50% - 24px);
    flex: 1 1 calc(50% - 24px);
    min-width: auto;
  }
  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .stat-item {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 100%;
    -ms-flex: 1 1 100%;
    flex: 1 1 100%;
  }
}

/* ===== Wiki & News Section ===== */
.wiki-section,
.news-section {
  background-color: #F5F6FA;
  padding: 60px 0;
}

.wiki-section {
  background-color: #fff;
}

.wiki-list,
.news-list {
  margin-top: 40px;
}

.wiki-item,
.news-item {
  padding: 20px 0;
  border-bottom: 1px solid #DCDDE1;
  transition: all 0.3s ease;
}

.wiki-item:hover,
.news-item:hover {
  padding-left: 10px;
}

.wiki-item:last-child,
.news-item:last-child {
  border-bottom: none;
}

.wiki-item h3,
.news-item h3 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
  line-height: 1.5;
}

.wiki-item h3 a,
.news-item h3 a {
  color: #2D3436;
}

.wiki-item h3 a:hover,
.news-item h3 a:hover {
  color: #E17055;
}

.news-meta {
  font-size: 0.8125rem;
  color: #999;
  margin-bottom: 8px;
}

.wiki-item p,
.news-item p {
  font-size: 0.875rem;
  color: #666666;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Partners Section ===== */
.partners-section {
  background-color: #fff;
  padding: 60px 0;
}

.partners-grid {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
}

.partner-logo {
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 calc(25% - 30px);
  -ms-flex: 0 0 calc(25% - 30px);
  flex: 0 0 calc(25% - 30px);
  min-width: 180px;
  height: 80px;
  background: #F5F6FA;
  border: 1px solid #DCDDE1;
  border-radius: 6px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  color: #666;
  transition: all 0.3s ease;
}

.partner-logo:hover {
  border-color: #E17055;
  color: #E17055;
  box-shadow: 0 4px 12px rgba(225,112,85,0.15);
}

@media (max-width: 768px) {
  .partner-logo {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 calc(50% - 30px);
    -ms-flex: 0 0 calc(50% - 30px);
    flex: 0 0 calc(50% - 30px);
    min-width: auto;
    height: 70px;
  }
}

/* ===== Contact Quick Section ===== */
.contact-quick {
  background-color: #1E2729;
  padding: 60px 0;
  color: #fff;
}

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

.contact-quick-grid {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
}

.contact-quick-item {
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 calc(33.333% - 24px);
  -ms-flex: 1 1 calc(33.333% - 24px);
  flex: 1 1 calc(33.333% - 24px);
  min-width: 240px;
  text-align: center;
  padding: 30px 20px;
  background-color: rgba(255,255,255,0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.contact-quick-item:hover {
  background-color: rgba(225,112,85,0.15);
}

.contact-quick-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 15px;
  background-color: #E17055;
  border-radius: 50%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  color: #fff;
  font-size: 1.375rem;
}

.contact-quick-item h3 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
  color: #fff;
}

.contact-quick-item p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.8);
}

.contact-quick-item a {
  color: #E17055;
}

.contact-quick-item a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .contact-quick-item {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 100%;
    -ms-flex: 1 1 100%;
    flex: 1 1 100%;
    min-width: auto;
  }
}

/* ===== Footer ===== */
.footer {
  background-color: #2D3436;
  color: #fff;
  padding: 50px 0 0;
}

.footer-grid {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-col {
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 calc(33.333% - 30px);
  -ms-flex: 1 1 calc(33.333% - 30px);
  flex: 1 1 calc(33.333% - 30px);
  min-width: 240px;
}

.footer-col h3 {
  font-size: 1.125rem;
  margin-bottom: 20px;
  color: #E17055;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: #E17055;
}

.footer-col p,
.footer-col li {
  font-size: 0.875rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.75);
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(255,255,255,0.75);
}

.footer-col a:hover {
  color: #E17055;
}

.footer-links li {
  position: relative;
  padding-left: 15px;
}

.footer-links li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: #E17055;
  font-size: 0.75rem;
}

.footer-bottom {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid #3d4548;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom a {
  color: #E17055;
}

@media (max-width: 768px) {
  .footer-col {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 100%;
    -ms-flex: 1 1 100%;
    flex: 1 1 100%;
    min-width: auto;
  }
}
