/* =====================================================
   index.css — 首页样式
   星时寻迹 | 深圳市玉山源科技有限公司
===================================================== */

/* =====================================================
   HERO SECTION
===================================================== */
.hero-section {
  padding: 150px 0 100px;
  background-color: #f2f5fc;
  position: relative;
  overflow: hidden;
}

/* 装饰圆圈（纯色边框，非渐变） */
.hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  border: 64px solid #dde8f7;
  opacity: 0.55;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -140px;
  left: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 44px solid #dde8f7;
  opacity: 0.35;
  pointer-events: none;
}

/* 居中单列内容区 */
.hero-center {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #0066cc;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 14px;
  border: 1.5px solid #0066cc;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 5rem;
  font-weight: 700;
  color: #18192a;
  line-height: 1.05;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 500;
  color: #3c3c4a;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 0.96rem;
  color: #6e6e73;
  line-height: 1.8;
  max-width: 580px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* =====================================================
   PRODUCTS SECTION
===================================================== */
.products-section {
  background-color: #ffffff;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.product-card {
  border-radius: 10px;
  border: 1.5px solid #e8ecf5;
  overflow: hidden;
  background-color: #ffffff;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
  box-shadow: 0 14px 44px rgba(0, 60, 120, 0.1);
  transform: translateY(-6px);
  border-color: #b8cfe8;
}

.product-card-link {
  display: block;
  color: inherit;
}

.product-img-wrap {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background-color: #f8f9fc;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.product-card:hover .product-img {
  transform: scale(1.07);
}

.product-info {
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f0f3f8;
}

.product-name {
  font-size: 1rem;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: 0.01em;
}

.product-arrow {
  font-size: 0.8rem;
  color: #0066cc;
  font-weight: 500;
  display: inline-block;
  transition: transform 0.2s ease;
}

.product-card:hover .product-arrow {
  transform: translateX(5px);
}

/* =====================================================
   FEATURES SECTION
===================================================== */
.features-section {
  background-color: #f5f6fa;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.feature-item {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 32px 26px;
  border: 1px solid #e8ecf5;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.feature-item:hover {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.feature-icon-wrap {
  width: 54px;
  height: 54px;
  background-color: #eef4ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.02rem;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.84rem;
  color: #6e6e73;
  line-height: 1.75;
}

/* =====================================================
   ABOUT PREVIEW SECTION
===================================================== */
.about-section {
  background-color: #ffffff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.about-content .section-tag {
  margin-bottom: 20px;
}

.about-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #18192a;
  line-height: 1.25;
  letter-spacing: 0.03em;
  margin-bottom: 24px;
}

.about-text {
  font-size: 0.94rem;
  color: #5e6373;
  line-height: 1.85;
  margin-bottom: 36px;
}

/* 右侧图片拼格 */
.about-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 160px 160px;
  gap: 12px;
  border-radius: 12px;
  overflow: hidden;
}

.about-mosaic-item {
  overflow: hidden;
  border-radius: 8px;
  background-color: #f0f4f9;
}

.about-mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.about-mosaic-item:hover img {
  transform: scale(1.06);
}

/* 最后一格放 logo */
.about-mosaic-logo {
  background-color: #eef4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-radius: 8px;
}

.about-mosaic-logo img {
  width: 100%;
  height: auto;
  max-width: 120px;
  object-fit: contain;
}

/* =====================================================
   CTA SECTION
===================================================== */
.cta-section {
  background-color: #eef3fb;
  border-top: 1px solid #d8e5f5;
  border-bottom: 1px solid #d8e5f5;
}

.cta-inner {
  text-align: center;
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  color: #18192a;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.cta-desc {
  font-size: 0.98rem;
  color: #6e6e73;
  margin-bottom: 36px;
}

.cta-actions {
  margin-bottom: 28px;
}

.cta-contacts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}

.cta-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #3a3a4a;
  font-weight: 500;
  transition: color 0.2s ease;
}

.cta-contact-item:hover {
  color: #0066cc;
}

.cta-contact-item svg {
  flex-shrink: 0;
  color: #0066cc;
}

/* =====================================================
   RESPONSIVE — 首页
===================================================== */
@media (max-width: 1100px) {
  .hero-title {
    font-size: 4rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .about-visual {
    order: -1;
  }

  .about-mosaic {
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 112px 0 72px;
  }

  .hero-title {
    font-size: 3.2rem;
  }

  .hero-section::before,
  .hero-section::after {
    display: none;
  }

  .about-title {
    font-size: 1.85rem;
  }

  .cta-title {
    font-size: 1.65rem;
  }

  .cta-contacts {
    gap: 20px;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2.6rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .about-mosaic {
    grid-template-rows: 130px 130px;
  }
}
