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

/* ===== Banner轮播 ===== */
.banner-section {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: var(--dark);
}
.banner-slides { position: relative; height: 100%; }
.banner-slide {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  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.5;
}
.banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 0 20px;
}
.banner-content h2 {
  color: var(--white);
  font-size: 2.2em;
  margin-bottom: 15px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.banner-content p {
  font-size: 1.1em;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* Banner指示器 */
.banner-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.banner-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
}
.banner-dots span.active {
  background: var(--secondary);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .banner-section { height: 350px; }
  .banner-content h2 { font-size: 1.5em; }
  .banner-content p { font-size: 0.95em; }
}

/* ===== 核心业务简介区 ===== */
.core-biz-section { background: var(--light); }
.core-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.core-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 35px 25px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.core-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(46,26,71,0.15);
}
.core-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--white);
  font-size: 1.6em;
}
.core-card h3 {
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 1.15em;
}
.core-card p {
  color: var(--text-muted);
  font-size: 0.9em;
  line-height: 1.7;
}

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

/* ===== 服务体系展示区 ===== */
.service-section { background: var(--white); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-item {
  text-align: center;
  padding: 40px 25px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.service-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: transform 0.3s;
}
.service-item:hover::before { transform: scaleX(1); }
.service-item:hover {
  border-color: var(--secondary);
  box-shadow: 0 8px 24px rgba(46,26,71,0.1);
}
.service-icon {
  width: 72px;
  height: 72px;
  background: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--secondary);
  font-size: 2em;
  transition: all 0.3s;
}
.service-item:hover .service-icon {
  background: var(--secondary);
  color: var(--white);
}
.service-item h3 {
  color: var(--primary);
  margin-bottom: 12px;
}
.service-item p {
  color: var(--text-muted);
  font-size: 0.9em;
}

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

/* ===== 数据展示区 ===== */
.data-section {
  background: linear-gradient(135deg, var(--primary), var(--dark));
  color: var(--white);
  padding: 60px 0;
}
.data-section .section-title h2,
.data-section .section-title p { color: var(--white); }
.data-section .section-title h2::after { background: var(--secondary); }
.data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.data-item .data-number {
  font-size: 3em;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 10px;
}
.data-item .data-label {
  font-size: 1em;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .data-grid { grid-template-columns: repeat(2, 1fr); }
  .data-item .data-number { font-size: 2.2em; }
}

/* ===== 百科/新闻列表区 ===== */
.list-section { background: var(--light); }
.article-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.article-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 25px;
  border: 1px solid var(--border);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.article-item:hover {
  border-color: var(--secondary);
  box-shadow: 0 4px 16px rgba(46,26,71,0.08);
}
.article-item h3 {
  font-size: 1.1em;
  margin-bottom: 8px;
  color: var(--primary);
}
.article-item h3 a { color: var(--primary); }
.article-item h3 a:hover { color: var(--secondary); }
.article-meta {
  font-size: 0.85em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.article-summary {
  font-size: 0.95em;
  color: var(--text);
  line-height: 1.7;
}

/* ===== 合作伙伴区 ===== */
.partner-section { background: var(--white); }

/* ===== 联系快捷区 ===== */
.contact-section { background: var(--light); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}
.contact-item {
  padding: 30px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.contact-item:hover {
  border-color: var(--secondary);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.contact-icon {
  width: 56px;
  height: 56px;
  background: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  color: var(--secondary);
  font-size: 1.4em;
}
.contact-item h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.1em;
}
.contact-item p {
  color: var(--text-muted);
  font-size: 0.95em;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}
