/* ============================================================
   首页专用样式
   ============================================================ */

/* ===== 轮播图 ===== */
.home-carousel {
  position: relative; width: 100%; height: 480px;
  background: #000; overflow: hidden;
}
.home-carousel-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1s;
}
.home-carousel-slide.active { opacity: 1; }
.home-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.home-carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,0,0,0.4); color: #fff; border: none;
  font-size: 18px; cursor: pointer; z-index: 10;
}
.home-carousel-btn:hover { background: rgba(0,0,0,0.7); }
.home-carousel-btn.prev { left: 20px; }
.home-carousel-btn.next { right: 20px; }
.home-carousel-dots {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.home-carousel-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.5); cursor: pointer;
}
.home-carousel-dots span.active { background: #fff; }

/* ===== 数据栏 ===== */
.simple-stats {
  display: flex; justify-content: space-around;
  flex-wrap: wrap; gap: 30px; padding: 40px 0;
}
.simple-stat { text-align: center; }
.simple-stat-num { font-size: 36px; font-weight: 700; color: var(--brand-6); }
.simple-stat-label { font-size: 14px; color: var(--text-soft); margin-top: 4px; }

/* ===== 通用 section ===== */
.simple-section { padding: 60px 0; }
.simple-section.gray { background: #f8f8f8; }
.simple-section-title {
  font-size: 28px; font-weight: 700; color: var(--text);
  text-align: center; margin-bottom: 8px;
}
.simple-section-sub {
  font-size: 14px; color: var(--text-soft);
  text-align: center; margin-bottom: 40px;
}

/* ===== 产品中心（5 列网格） ===== */
.product-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.product-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  cursor: pointer; transition: all .25s;
  display: block; text-decoration: none; color: inherit;
}
.product-card:hover {
  box-shadow: var(--shadow); transform: translateY(-2px);
  border-color: var(--brand-5);
}
.product-card-img {
  width: 100%; aspect-ratio: 1/1;
  background: var(--bg-section);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { padding: 12px 14px; }
.product-card-title {
  font-size: 14px; font-weight: 500; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.product-card-cat {
  display: inline-block; font-size: 11px;
  color: var(--text-mute); margin-bottom: 4px;
}

/* ===== 大图模块 ===== */
.big-image-section { width: 100%; overflow: hidden; }
.big-image-section img { width: 100%; display: block; }

/* ===== 为什么选择我们 ===== */
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px 60px;
}
.why-item { display: flex; flex-direction: column; }
.why-item.reverse { flex-direction: column-reverse; }
.why-item .img-box {
  background: linear-gradient(135deg, #f0f7ff, #e6f0ff);
  border-radius: var(--radius);
  overflow: hidden; margin-bottom: 16px;
  aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
}
.why-item.reverse .img-box { margin-top: 16px; margin-bottom: 0; }
.why-item .img-box img { width: 100%; height: 100%; object-fit: cover; }
.why-item .num {
  font-size: 36px; font-weight: 800;
  color: var(--brand-6); font-style: italic;
  margin-bottom: 8px;
}
.why-item h3 {
  font-size: 20px; font-weight: 700;
  color: var(--brand-8); margin-bottom: 8px;
}
.why-item p {
  color: var(--text-soft); line-height: 1.8; font-size: 14px;
}
@media (max-width: 768px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ===== 服务类型 4 列卡片 ===== */
.service-types {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.service-type {
  background: #fff; border-radius: var(--radius);
  padding: 30px 24px; text-align: center;
  border: 1px solid var(--border);
}
.service-type .num {
  font-size: 40px; font-weight: 800;
  color: var(--brand-6); font-style: italic;
  margin-bottom: 8px;
}
.service-type h3 {
  font-size: 22px; font-weight: 700;
  color: var(--brand-8); margin-bottom: 8px;
}
.service-type .desc {
  color: var(--text-soft); font-size: 13px;
  margin-bottom: 16px;
}
.service-type ul {
  list-style: none; padding: 0; text-align: left;
}
.service-type li {
  padding: 4px 0; color: var(--text-soft); font-size: 14px;
}
@media (max-width: 768px) {
  .service-types { grid-template-columns: 1fr 1fr; }
}

/* ===== 关于我们 ===== */
.about-grid-simple {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 50px; align-items: stretch;
}
.about-grid-simple .img-box {
  background: var(--bg-section);
  border-radius: var(--radius);
  overflow: hidden;
}
.about-grid-simple .img-box img {
  width: 100%; height: 100%; object-fit: cover;
}
.about-grid-simple .text-box {
  background: #fff; padding: 40px;
  border-radius: var(--radius);
  display: flex; flex-direction: column; justify-content: center;
}
.about-grid-simple h2 {
  font-size: 24px; color: var(--text);
  margin-bottom: 16px; font-weight: 700;
}
.about-grid-simple p {
  color: var(--text-soft); line-height: 1.9;
  margin-bottom: 12px; font-size: 14px;
}
@media (max-width: 768px) {
  .about-grid-simple { grid-template-columns: 1fr; }
}

/* ===== 案例展示列表 ===== */
.case-list { max-width: 1100px; margin: 0 auto; }
.case-item {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 30px; padding: 30px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.case-item-img {
  aspect-ratio: 4/3; background: var(--bg-section);
  border-radius: var(--radius); overflow: hidden;
}
.case-item-img img { width: 100%; height: 100%; object-fit: cover; }
.case-item-title {
  font-size: 20px; font-weight: 700;
  color: var(--brand-8); margin-bottom: 8px;
}
.case-item-date {
  color: var(--text-mute); font-size: 13px; margin-bottom: 12px;
}
.case-item-desc {
  color: var(--text-soft); line-height: 1.8; font-size: 14px;
}
@media (max-width: 768px) {
  .case-item { grid-template-columns: 1fr; }
}

/* ===== FAQ ===== */
.simple-faq { max-width: 800px; margin: 0 auto; }
.simple-faq-item {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 10px;
  overflow: hidden;
}
.simple-faq-q {
  padding: 16px 20px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 15px; color: var(--text);
}
.simple-faq-q:hover { background: var(--bg-soft); }
.simple-faq-q .arrow { color: var(--brand-6); transition: transform .2s; }
.simple-faq-item.open .arrow { transform: rotate(180deg); }
.simple-faq-a {
  padding: 0 20px; max-height: 0; overflow: hidden;
  transition: all .3s; color: var(--text-soft);
  line-height: 1.8; font-size: 14px;
}
.simple-faq-item.open .simple-faq-a {
  padding: 0 20px 16px; max-height: 300px;
}

/* ===== 联系方式卡片 ===== */
.contact-info-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.contact-info-item {
  background: #fff; padding: 24px;
  border: 1px solid var(--border); border-radius: var(--radius);
  text-align: center;
}
.contact-info-item .label {
  color: var(--text-mute); font-size: 13px; margin-bottom: 8px;
}
.contact-info-item .value {
  color: var(--text); font-size: 18px; font-weight: 600;
}
@media (max-width: 768px) {
  .contact-info-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .home-carousel { height: 260px; }
  .product-grid { grid-template-columns: 1fr 1fr; }
}
