@charset "utf-8";

/* ====================================================
   PETO SPACE — 首页专用样式
   ==================================================== */

/* ── Hero（静态图） ── */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--secondary-dark);
}

.hero-static-bg {
  position: absolute; inset: 0;
  background: center / cover no-repeat;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute; bottom: 40px; right: 60px;
  z-index: 10; display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  color: rgba(255,255,255,.6); font-family: var(--font-secondary);
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-scroll-hint .scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.5));
  animation: scrollLineAni 1.5s ease-in-out infinite;
}
@keyframes scrollLineAni {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── 马赛克展示区 ── */
.showcase-section {
  padding: 0; background: #fff;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 620px;
}

.showcase-card {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
  cursor: pointer;
}
.sc-bg {
  position: absolute; inset: 0;
  background: center / cover no-repeat;
  transition: transform .6s var(--easing1);
}
.showcase-card:hover .sc-bg { transform: scale(1.05); }
.sc-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,20,85,.85) 0%, rgba(0,20,85,.1) 70%);
  transition: opacity .4s;
}
.showcase-card:hover .sc-overlay { opacity: 0.85; }

.sc-content {
  position: relative; z-index: 2;
  padding: 36px 40px; color: #fff;
  width: 100%;
}
.sc-label {
  font-family: var(--font-secondary); font-size: 11px;
  font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--primary-light); margin-bottom: 10px;
  display: block;
}
.sc-title {
  font-family: var(--font-secondary); font-size: 26px;
  font-weight: 600; line-height: 1.3;
  margin-bottom: 20px;
}
.sc-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-secondary); font-size: 13px;
  font-weight: 600; color: rgba(255,255,255,.8);
  border-bottom: 1px solid rgba(255,255,255,.4);
  padding-bottom: 4px; transition: color .3s, border-color .3s;
}
.sc-btn::after {
  content: ''; width: 6px; height: 6px;
  border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
  transform: rotate(45deg); flex-shrink: 0;
}
.showcase-card:hover .sc-btn { color: var(--primary-light); border-color: var(--primary-light); }

/* ── 技术亮点 Banner（首页中间，通栏样式贴近 sp-hero） ── */
.tech-banner {
  position: relative;
  min-height: 480px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  text-align: center;
}
.tech-banner-bg {
  position: absolute; inset: 0;
  background: center / cover no-repeat;
}
.tech-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,20,85,.82) 0%, rgba(0,20,85,.6) 100%);
}
.tech-banner-content {
  position: relative; z-index: 2;
  color: #fff; padding: 90px 24px;
  display: flex; flex-direction: column; align-items: center;
}
.tech-banner-content .section-label { justify-content: center; color: var(--primary-light); }
.tech-banner-title {
  font-family: var(--font-secondary); font-size: 40px; font-weight: 700;
  line-height: 1.3; margin: 18px 0 22px;
}
.tech-banner-desc {
  font-size: 16px; line-height: 1.85; color: rgba(255,255,255,.82);
  max-width: 620px; margin-bottom: 36px;
}

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media screen and (max-width: 1399px) {
  .showcase-grid { height: 480px; }
  .sc-title { font-size: 22px; }
  .sc-content { padding: 28px 30px; }

  .tech-banner-title { font-size: 32px; }
}

@media screen and (max-width: 767px) {
  .hero-scroll-hint { display: none; }

  .showcase-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  .sc-products, .sc-factory, .sc-about { height: 280px; }

  .tech-banner { min-height: 380px; }
  .tech-banner-content { padding: 60px 20px; }
  .tech-banner-title { font-size: 26px; }
  .tech-banner-desc { font-size: 14px; }
}
