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

/* Banner轮播区 */
.banner {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.banner-slider {
  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;
}

.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, 30, 46, 0.8) 0%, rgba(15, 30, 46, 0.4) 50%, rgba(15, 30, 46, 0.2) 100%);
}

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

.banner-content h2 {
  font-size: 42px;
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.banner-content p {
  font-size: 18px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 30px;
  line-height: 1.8;
}

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

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

.banner-dot.active {
  background-color: var(--secondary);
  width: 30px;
  border-radius: 6px;
}

.banner-dot:hover {
  background-color: rgba(255,255,255,0.8);
}

@media (max-width: 768px) {
  .banner {
    height: 400px;
  }
  
  .banner-content h2 {
    font-size: 26px;
  }
  
  .banner-content p {
    font-size: 15px;
  }
}

/* 核心业务简介区 */
.core-intro {
  background-color: var(--light-bg);
  padding: 80px 0;
}

.core-intro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.core-intro-card {
  background: var(--white);
  border-radius: 8px;
  padding: 35px 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  border-top: 3px solid var(--secondary);
}

.core-intro-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.core-intro-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background-color: rgba(212, 165, 116, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--secondary);
}

.core-intro-card h3 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: 600;
}

.core-intro-card p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
}

@media (max-width: 992px) {
  .core-intro-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .core-intro {
    padding: 50px 0;
  }
  
  .core-intro-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .core-intro-card {
    padding: 25px 20px;
  }
}

/* 服务体系展示区 */
.service-showcase {
  background-color: var(--white);
  padding: 80px 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.service-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.service-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.service-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-item-content {
  padding: 25px;
  background: var(--white);
}

.service-item-content h3 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 600;
}

.service-item-content h3 span {
  color: var(--secondary);
  margin-right: 8px;
}

.service-item-content p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
}

.service-link {
  display: inline-block;
  margin-top: 15px;
  color: var(--secondary);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.service-link:hover {
  color: var(--primary);
}

@media (max-width: 992px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .service-showcase {
    padding: 50px 0;
  }
  
  .service-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* 数据展示区 */
.data-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  padding: 80px 0;
  color: var(--white);
}

.data-section .section-title h2 {
  color: var(--white);
}

.data-section .section-title p {
  color: rgba(255,255,255,0.8);
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.data-item .number {
  font-size: 48px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 10px;
  line-height: 1.2;
}

.data-item .label {
  font-size: 16px;
  color: rgba(255,255,255,0.9);
}

@media (max-width: 768px) {
  .data-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .data-item .number {
    font-size: 36px;
  }
  
  .data-section {
    padding: 50px 0;
  }
}

/* 技术百科精选区 */
.wiki-section {
  background-color: var(--light-bg);
  padding: 80px 0;
}

.wiki-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.wiki-card {
  background: var(--white);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.wiki-card:hover {
  border-left-color: var(--secondary);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transform: translateX(5px);
}

.wiki-card h3 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.wiki-card h3 a {
  color: inherit;
  transition: color 0.3s ease;
}

.wiki-card h3 a:hover {
  color: var(--secondary);
}

.wiki-card p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 15px;
}

.wiki-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 13px;
  color: var(--text-light);
}

.wiki-tag {
  display: inline-block;
  padding: 4px 12px;
  background-color: rgba(212, 165, 116, 0.1);
  color: var(--secondary);
  border-radius: 20px;
  font-size: 12px;
}

@media (max-width: 992px) {
  .wiki-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .wiki-section {
    padding: 50px 0;
  }
  
  .wiki-grid {
    grid-template-columns: 1fr;
  }
}

/* 新闻动态区 */
.news-section {
  background-color: var(--white);
  padding: 80px 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.news-card {
  display: flex;
  gap: 20px;
  padding: 25px;
  background: var(--light-bg);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.news-card:hover {
  background: var(--white);
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.news-date {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background-color: var(--primary);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.news-date .day {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.news-date .month {
  font-size: 12px;
  margin-top: 2px;
}

.news-content {
  flex: 1;
  min-width: 0;
}

.news-content h3 {
  font-size: 17px;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-content h3 a {
  color: inherit;
  transition: color 0.3s ease;
}

.news-content h3 a:hover {
  color: var(--secondary);
}

.news-content p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .news-section {
    padding: 50px 0;
  }
}

/* 合作伙伴区 */
.partner-section {
  background-color: var(--light-bg);
  padding: 80px 0;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.partner-item {
  background: var(--white);
  border-radius: 8px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.partner-item:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.partner-item span {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
}

@media (max-width: 768px) {
  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .partner-section {
    padding: 50px 0;
  }
}

/* 联系我们快捷区 */
.contact-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  padding: 80px 0;
  color: var(--white);
}

.contact-section .section-title h2 {
  color: var(--white);
}

.contact-section .section-title p {
  color: rgba(255,255,255,0.8);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.contact-item {
  padding: 30px;
}

.contact-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background-color: rgba(212, 165, 116, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--secondary);
}

.contact-item h3 {
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 600;
}

.contact-item p {
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
}

.contact-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 32px;
  background-color: var(--secondary);
  color: var(--white);
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background-color: #c9965e;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .contact-section {
    padding: 50px 0;
  }
}

/* Footer区 */
.footer {
  background-color: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-about h3 {
  font-size: 22px;
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-about p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 18px;
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  transition: all 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-contact p {
  font-size: 15px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.footer-contact p span {
  color: var(--secondary);
  margin-right: 8px;
}

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

.footer-bottom p {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--secondary);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer {
    padding: 40px 0 20px;
  }
}
