/* ==========================================================================
   Shandong Gaoqiang New Material Technology Co., Ltd. - Index CSS
   Exact Match to User Reference Screenshots & Optimized Component Styling
   ========================================================================== */

/* --------------------------------------------------
   1. Banner Section (Hero Swiper Slider)
   -------------------------------------------------- */
.hero-section {
  position: relative;
  background-color: var(--secondary);
  overflow: hidden;
}

.hero-swiper {
  width: 100%;
  height: calc(100vh - 126px);
  min-height: 560px;
}

.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.hero-section .swiper-pagination {
  bottom: 28px !important;
  z-index: 5;
}

.hero-section .swiper-pagination-bullet {
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.62);
  opacity: 1;
  transition: var(--transition);
}

.hero-section .swiper-pagination-bullet-active {
  background: var(--accent);
  width: 55px;
}

.hero-section .swiper-button-next,
.hero-section .swiper-button-prev {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(8, 29, 60, 0.55);
  backdrop-filter: blur(8px);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.hero-section .swiper-button-prev {
  left: 30px;
}

.hero-section .swiper-button-next {
  right: 30px;
}

.hero-section .swiper-button-next:after,
.hero-section .swiper-button-prev:after {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.hero-section .swiper-button-next:hover,
.hero-section .swiper-button-prev:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(255, 85, 0, 0.4);
}

/* --------------------------------------------------
   2. About Us Module
   -------------------------------------------------- */
.about-section {
  padding: 96px 0 86px;
  background-color: #ffffff;
}

.about-section {
  padding: 85px 0 90px;
  background-color: #ffffff;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
}

.about-text-content {
  padding-left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.about-subtitle {
  position: relative;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  display: inline-block;
}

.about-subtitle::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 36px;
  height: 3.5px;
  background: var(--accent);
  border-radius: 2px;
}

.about-title {
  font-size: clamp(2.2rem, 3.2vw, 2.9rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
  letter-spacing: -0.3px;
  margin-bottom: 24px;
}

.about-title span {
  color: var(--accent);
}

.about-text-p {
  max-width: 580px;
  font-size: 0.98rem;
  color: #4e5d78;
  line-height: 1.75;
  margin-bottom: 18px;
}

.btn-about-learn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #081d3c;
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 13px 30px;
  border-radius: 50px;
  margin-top: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(8, 29, 60, 0.18);
  border: 1px solid transparent;
}

.btn-about-learn i {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.btn-about-learn:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 85, 0, 0.28);
}

.btn-about-learn:hover i {
  transform: translateX(4px);
}

.about-image-card {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(10, 28, 54, 0.06);
  border: 1px solid #f0f4f9;
  height: 480px;
  display: flex;
}

.about-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.about-image-card:hover img {
  transform: scale(1.03);
}

.about-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 20px;
  margin: 56px 0 0;
  padding: 32px 40px;
  background: #ffffff;
  border: 1px solid #f0f4f9;
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(10, 28, 54, 0.07);
}

.about-stat-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 0;
  padding: 0 10px;
  border-left: 0;
}

.about-stat-icon {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #edf2f8;
  font-size: 1.85rem;
  color: var(--primary);
  line-height: 1;
}

.about-stat-info {
  display: flex;
  flex-direction: column;
}

.about-stat-value {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 4px;
  white-space: nowrap;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.about-stat-unit {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
}

.about-stat-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.3;
  white-space: nowrap;
}

/* --------------------------------------------------
   3. Products Module (4 Cards Per Row Grid)
   -------------------------------------------------- */
.products-section {
  padding: 100px 0;
  background-color: var(--bg-light);
}

.title-decor-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 20px auto 0;
}

.navy-line {
  width: 32px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.orange-dot {
  width: 8px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.products-section {
  padding: 85px 0 90px;
  background-color: #f7faff;
  background-image: radial-gradient(#dce7f5 1px, transparent 1px);
  background-size: 24px 24px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 48px 0 45px;
  align-items: stretch;
}

.product-card-box {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #f0f4f9;
  box-shadow: 0 10px 30px rgba(10, 28, 54, 0.05);
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  height: 100%;
}

.product-card-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(10, 28, 54, 0.12), 0 0 20px rgba(255, 85, 0, 0.1);
  border-color: rgba(255, 85, 0, 0.35);
}

.product-card-top {
  width: 100%;
  aspect-ratio: 1 / 1; /* 1:1 正方形比例 */
  background: linear-gradient(145deg, #f8fafc 0%, #edf2f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-card-top img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 正方形图片平铺且不变形 */
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-card-box:hover .product-card-top img {
  transform: scale(1.08);
}

.product-card-bottom {
  background: #ffffff;
  padding: 22px 24px 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 0 0 142px;
  min-height: 142px;
}

.product-card-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.35;
  text-align: left;
  transition: color 0.3s ease;
  min-height: 2.7em;
  max-height: 2.7em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow-wrap: anywhere;
}

.product-card-box:hover .product-card-name {
  color: var(--accent);
}

.product-card-line {
  width: 24px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 14px;
  margin-top: 0;
  margin-left: 0;
  display: block;
  transition: width 0.35s ease;
}

.product-card-box:hover .product-card-line {
  width: 44px;
}

.product-card-view-more {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: color 0.3s ease;
}

.product-card-view-more i {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.product-card-box:hover .product-card-view-more {
  color: var(--accent);
}

.product-card-box:hover .product-card-view-more i {
  transform: translateX(4px);
}

.products-action-center {
  text-align: center;
  margin-top: 20px;
}

.btn-product-view-all {
  min-height: 46px;
  padding: 12px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
}


/* --------------------------------------------------
   4. Why Choose Us Module (Exact Match to Reference Image)
   -------------------------------------------------- */
.why-section {
  padding: 85px 0 95px;
  background-color: #fbfcff;
  background-image: url('../images/index-why.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.why-card {
  background: #ffffff;
  border: 1px solid #f0f4f9;
  border-radius: 18px;
  padding: 38px 24px 34px;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 30px rgba(10, 28, 54, 0.05);
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(10, 28, 54, 0.12), 0 0 20px rgba(255, 85, 0, 0.1);
  border-color: rgba(255, 85, 0, 0.35);
}

.why-icon {
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  border-radius: 50%;
  background: #edf4fb;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  position: relative;
  transition: all 0.35s ease;
}

.why-icon-main {
  font-size: 2.6rem;
  color: var(--primary);
  line-height: 1;
}

.why-icon-badge-dot {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 3px;
}

.why-icon-badge-drop {
  position: absolute;
  right: 25px;
  bottom: 24px;
  font-size: 1.15rem;
  color: var(--accent);
}

.why-icon-badge-check {
  position: absolute;
  font-size: 1.3rem;
  color: var(--accent);
}

.why-icon-badge-pin {
  position: absolute;
  right: 20px;
  bottom: 20px;
  font-size: 1.25rem;
  color: var(--accent);
}

.why-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.35;
}

.why-card-line {
  width: 24px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0 auto 16px;
  transition: width 0.35s ease;
}

.why-card:hover .why-card-line {
  width: 46px;
}

.why-desc {
  font-size: 0.9rem;
  color: #556377;
  line-height: 1.65;
  margin: 0;
}

.why-stats-floating {
  margin-top: 50px;
}
  top: 29px;
  font-size: 1.05rem;
}
.why-stat-icon-output .why-stat-detail {
  right: -2px;
  top: -4px;
  font-size: 1.35rem;
}
.why-stat div { display: flex; flex-direction: column; }
.why-stat strong { color: var(--primary); font-size: 2.15rem; line-height: 1.05; white-space: nowrap; }
.why-stat small { font-size: 0.72rem; }
.why-stat div > span { color: #1e365c; font-size: 0.86rem; margin-top: 7px; white-space: nowrap; }

/* --------------------------------------------------
   5. Company & Factory Gallery Module (Optimized Image Heights & Text Sizes)
   -------------------------------------------------- */
.company-section {
  padding: 100px 0;
  background-color: var(--secondary);
  color: #ffffff;
}

.company-section .section-title {
  color: #ffffff;
}

.company-section .section-desc {
  color: #cbd5e1;
}

.factory-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 45px;
}

.factory-item {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 320px; /* Increased Image Height */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.factory-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.factory-item:hover img {
  transform: scale(1.08);
}

.factory-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 26px 24px;
  background: linear-gradient(0deg, rgba(10, 25, 47, 0.96) 0%, rgba(10, 25, 47, 0.5) 70%, rgba(10, 25, 47, 0) 100%);
  color: #ffffff;
}

.factory-tag {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 6px;
}

.factory-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.35;
}

/* --------------------------------------------------
   6. News Module (Optimized Image Heights, Card Heights & Text Sizes)
   -------------------------------------------------- */
/* --------------------------------------------------
   6. News Module (Exact Match to Reference Image)
   -------------------------------------------------- */
.news-section {
  padding: 85px 0 95px;
  background-color: #f7faff;
  background-image: url('../images/index-new.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.news-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #f0f4f9;
  box-shadow: 0 10px 30px rgba(10, 28, 54, 0.05);
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(10, 28, 54, 0.12), 0 0 20px rgba(255, 85, 0, 0.1);
  border-color: rgba(255, 85, 0, 0.35);
}

.news-thumb {
  height: 240px;
  overflow: hidden;
  position: relative;
  background: #edf2f7;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.news-card:hover .news-thumb img {
  transform: scale(1.08);
}

.news-body {
  padding: 26px 26px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: left;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 12px;
}

.news-meta i {
  color: #94a3b8;
  font-size: 0.85rem;
}

.news-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.38;
  text-align: left;
}

.news-excerpt {
  font-size: 0.9rem;
  color: #556377;
  line-height: 1.65;
  margin-bottom: 10px;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: color 0.3s ease;
}

.news-link i {
  font-size: 0.8rem;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.news-card:hover .news-link {
  color: var(--accent);
}

.news-card:hover .news-link i {
  transform: translateX(4px);
}

.news-action-center {
  text-align: center;
  margin-top: 36px;
}

.btn-news-view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(10, 28, 54, 0.06);
}

.btn-news-view-all i {
  color: var(--accent);
  transition: transform 0.3s ease;
}

.btn-news-view-all:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(10, 28, 54, 0.2);
}

.btn-news-view-all:hover i {
  transform: translateX(4px);
  color: #ffffff;
}

/* Scroll Reveal Motion */
body {
  overflow-x: hidden;
}

.reveal {
  opacity: 0;
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-up { transform: translateY(34px); }
.reveal-left { transform: translateX(-54px); }
.reveal-right { transform: translateX(54px); }
.reveal-pop { transform: translateY(28px) scale(0.94); }

.reveal.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .factory-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .hero-swiper {
    height: calc(100vh - 126px);
    min-height: 500px;
  }
  .hero-section .swiper-pagination { bottom: 26px !important; }
  .about-grid { grid-template-columns: 1fr; align-items: flex-start; gap: 38px; }
  .about-image-card { width: 100%; height: 400px; }
  .about-stats-row { grid-template-columns: repeat(2, 1fr); padding: 28px; gap: 20px; }
  .about-stat-item { justify-content: flex-start; padding: 10px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-stats-strip { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .why-stat:nth-child(3) { border-left: 0; }
  .factory-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-swiper {
    height: calc(100vh - 126px);
    min-height: 360px;
  }
  .hero-section .swiper-pagination { bottom: 22px !important; }
  .about-section { padding: 60px 0; }
  .about-grid { gap: 28px; }
  .about-image-card { height: 280px; border-radius: 16px; }
  .about-subtitle { margin-bottom: 20px; font-size: 0.95rem; }
  .about-title { font-size: 2rem; margin-bottom: 18px; }
  .about-text-p { font-size: 0.92rem; line-height: 1.65; margin-bottom: 14px; }
  .btn-about-learn { padding: 12px 26px; font-size: 0.92rem; }
  .about-stats-row { grid-template-columns: repeat(2, 1fr); margin-top: 36px; padding: 20px 16px; gap: 16px 10px; border-radius: 16px; }
  .about-stat-item { padding: 8px 4px; gap: 12px; }
  .about-stat-icon { width: 48px; height: 48px; flex-basis: 48px; font-size: 1.4rem; }
  .about-stat-value { font-size: 1.65rem; }
  .about-stat-label { white-space: normal; font-size: 0.82rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 30px 0 30px; }
  .product-card-bottom { flex-basis: 124px; min-height: 124px; padding: 16px 12px 14px; }
  .product-card-name { font-size: 0.95rem; margin-bottom: 10px; min-height: 2.7em; max-height: 2.7em; }
  .why-grid { grid-template-columns: 1fr; }
  .why-section { padding: 56px 0 42px; }
  .section-title { font-size: 2rem; }
  .why-section .section-desc br { display: none; }
  .why-card { min-height: 0; }
  .why-stats-strip { grid-template-columns: 1fr; padding: 22px; }
  .why-stat { justify-content: flex-start; padding: 14px 0; border-left: 0; border-top: 1px solid #cbd9ed; }
  .why-stat:first-child { border-top: 0; }
  .factory-gallery-grid { grid-template-columns: 1fr; }
  .factory-item { height: 250px; }
  .news-thumb { height: 200px; }
}

@media (max-width: 480px) {
  .about-stats-row { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .about-stat-item { border-top: 1px solid #f0f4f9; padding-top: 12px; }
  .about-stat-item:first-child { border-top: 0; padding-top: 0; }
  .products-grid { gap: 12px; }
  .product-card-bottom { flex-basis: 118px; min-height: 118px; padding: 14px 10px 12px; }
  .product-card-name { font-size: 0.9rem; }
}
