/* ==========================================================================
   Langsen Theme - Factory & Company Gallery Styles
   Aligned with Design Reference (media_1790668461880.jpg)
   Keep titles, modernize layout & card styling
   ========================================================================== */

.langsen-factory-page-main {
  color: #132d54;
  background-color: #ffffff;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

/* Container width is unified by common.css .container */

/* --------------------------------------------------------------------------
   1. Hero Banner
   -------------------------------------------------------------------------- */
.ls-fc-hero {
  position: relative;
  width: 100%;
  background-position: center 36%;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.ls-fc-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 26, 61, 0.85) 0%, rgba(6, 26, 61, 0.55) 45%, rgba(6, 26, 61, 0.15) 100%);
  pointer-events: none;
}

.ls-fc-hero__inner {
  position: relative;
  z-index: 2;
  padding: 50px 0;
}

.ls-fc-hero__title {
  color: #ffffff;
  font-family: Outfit, 'Plus Jakarta Sans', sans-serif;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0;
  text-transform: uppercase;
}

.ls-fc-hero__bar {
  width: 36px;
  height: 3px;
  background-color: #ee141d;
  margin: 14px 0 12px;
  border-radius: 1px;
}

.ls-fc-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 600;
}

.ls-fc-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ls-fc-hero__breadcrumb a:hover {
  color: #ffffff;
}

.ls-bc-sep {
  opacity: 0.6;
  font-size: 11px;
}

/* --------------------------------------------------------------------------
   2. Main Content Heading
   -------------------------------------------------------------------------- */
.ls-fc-content {
  padding: 54px 0 68px;
}

.ls-fc-heading {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 40px;
}

.ls-fc-heading-bar {
  display: block;
  width: 32px;
  height: 3px;
  background-color: #ee141d;
  margin: 0 auto 12px;
  border-radius: 1px;
}

.ls-fc-heading-title {
  color: #062a63;
  font-family: Outfit, 'Plus Jakarta Sans', sans-serif;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.ls-fc-heading-title em {
  color: #ee141d;
  font-style: normal;
}

.ls-fc-heading-desc {
  color: #64748b;
  font-size: 15.5px;
  line-height: 1.7;
  margin: 0;
}

/* --------------------------------------------------------------------------
   3. 4-Column Card Grid
   -------------------------------------------------------------------------- */
.ls-fc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.ls-fc-card {
  margin: 0;
}

.ls-fc-card__btn {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  background-color: #ffffff;
  color: inherit;
  text-align: center;
  cursor: zoom-in;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(6, 42, 99, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ls-fc-card__btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(6, 42, 99, 0.12);
  border-color: #dbe4f0;
}

.ls-fc-card__btn:focus-visible {
  outline: 3px solid #ee141d;
  outline-offset: 2px;
}

.ls-fc-card__img-box {
  width: 100%;
  aspect-ratio: 1.25 / 1;
  overflow: hidden;
  background-color: #f1f4f8;
}

.ls-fc-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ls-fc-card__btn:hover .ls-fc-card__img {
  transform: scale(1.05);
}

.ls-fc-card__info {
  padding: 18px 16px;
  background-color: #ffffff;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ls-fc-card__title {
  color: #062a63;
  font-family: Outfit, 'Plus Jakarta Sans', sans-serif;
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
  transition: color 0.2s ease;
}

.ls-fc-card__btn:hover .ls-fc-card__title {
  color: #ee141d;
}

.ls-fc-empty {
  grid-column: 1 / -1;
  padding: 48px 0;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   4. Pagination (深蓝激活方块，还原设计图)
   -------------------------------------------------------------------------- */
.ls-fc-pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.ls-pagination-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ls-page-btn,
.ls-page-num {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  background-color: #ffffff;
  color: #0b2e5b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #dfe4eb;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ls-page-num:hover,
.ls-page-btn:not(.disabled):hover {
  background-color: #edf2f9;
  color: #062a63;
  border-color: #062a63;
}

.ls-page-num.active {
  background-color: #062a63;
  color: #ffffff;
  border-color: #062a63;
  box-shadow: 0 3px 10px rgba(6, 42, 99, 0.25);
}

.ls-page-btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Laravel Default Pagination adapter */
.ls-laravel-pagination nav {
  display: inline-flex;
  gap: 8px;
}

.ls-laravel-pagination .page-item.active .page-link {
  background-color: #062a63;
  border-color: #062a63;
  color: #ffffff;
}

.ls-laravel-pagination .page-link {
  color: #0b2e5b;
  border-radius: 4px;
  border-color: #dfe4eb;
  padding: 6px 12px;
}

/* --------------------------------------------------------------------------
   5. Call To Action (Bottom Banner - 居中结构)
   -------------------------------------------------------------------------- */
.ls-fc-cta {
  position: relative;
  background-position: center 48%;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 50px 0;
  color: #ffffff;
  text-align: center;
}

.ls-fc-cta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 26, 61, 0.82) 0%, rgba(6, 26, 61, 0.65) 100%);
  pointer-events: none;
}

.ls-fc-cta__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ls-fc-cta__title {
  color: #ffffff;
  font-family: Outfit, 'Plus Jakarta Sans', sans-serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 8px;
}

.ls-fc-cta__desc {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13.5px;
  margin: 0 0 20px;
}

.ls-fc-btn-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #ee141d;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(238, 20, 29, 0.35);
  transition: all 0.25s ease;
}

.ls-fc-btn-red:hover {
  background-color: #d60f17;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(238, 20, 29, 0.45);
  transform: translateY(-2px);
}

.ls-fc-btn-red svg {
  transition: transform 0.25s ease;
}

.ls-fc-btn-red:hover svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   6. Modern Fullscreen Lightbox Modal & Zoom Effect
   -------------------------------------------------------------------------- */
.ls-fc-card__img-box {
  position: relative;
}

.ls-fc-card__zoom-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background-color: rgba(6, 42, 99, 0.35);
  color: #062a63;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.ls-fc-card__zoom-badge svg {
  width: 46px;
  height: 46px;
  padding: 11px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transform: scale(0.65);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ls-fc-card__btn:hover .ls-fc-card__zoom-badge {
  opacity: 1;
  visibility: visible;
}

.ls-fc-card__btn:hover .ls-fc-card__zoom-badge svg {
  transform: scale(1);
}

.ls-factory-lightbox {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background-color: transparent;
  color: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.ls-factory-lightbox:not([open]) {
  display: none;
}

.ls-factory-lightbox::backdrop {
  background-color: rgba(3, 12, 28, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: lsLbFadeIn 0.25s ease-out;
}

.ls-factory-lightbox-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: min(1200px, calc(100vw - 120px));
  max-height: calc(100vh - 80px);
  padding: 0;
  box-sizing: border-box;
}

.ls-factory-lightbox-figure {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  max-width: 100%;
  max-height: 100%;
}

.ls-factory-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
}

.ls-factory-lightbox-img.is-loaded {
  transform: scale(1);
  opacity: 1;
}

.ls-factory-lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
  padding: 8px 22px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  max-width: 90vw;
}

.ls-factory-lightbox-caption {
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ls-factory-lightbox-counter {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 600;
  font-family: monospace;
}

.ls-factory-lightbox-close {
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.25s ease;
}

.ls-factory-lightbox-close:hover {
  background-color: #ee141d;
  border-color: #ee141d;
  transform: rotate(90deg) scale(1.08);
  box-shadow: 0 4px 16px rgba(238, 20, 29, 0.4);
}

.ls-factory-lightbox-prev,
.ls-factory-lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ls-factory-lightbox-prev {
  left: 28px;
}

.ls-factory-lightbox-next {
  right: 28px;
}

.ls-factory-lightbox-prev:hover {
  background-color: #ee141d;
  border-color: #ee141d;
  transform: translateY(-50%) translateX(-3px) scale(1.06);
  box-shadow: 0 6px 20px rgba(238, 20, 29, 0.35);
}

.ls-factory-lightbox-next:hover {
  background-color: #ee141d;
  border-color: #ee141d;
  transform: translateY(-50%) translateX(3px) scale(1.06);
  box-shadow: 0 6px 20px rgba(238, 20, 29, 0.35);
}

.ls-factory-lightbox [hidden] {
  display: none !important;
}

body.ls-lightbox-active,
body.ls-factory-lightbox-open {
  overflow: hidden;
}

@keyframes lsLbFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --------------------------------------------------------------------------
   7. Responsive Design
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .ls-fc-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .ls-fc-hero__title {
    font-size: 32px;
  }

  .ls-fc-heading-title {
    font-size: 26px;
  }

  .ls-fc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .ls-fc-card__info {
    padding: 12px 10px;
  }

  .ls-fc-card__title {
    font-size: 13.5px;
  }

  .ls-factory-lightbox-prev {
    left: 12px;
    width: 42px;
    height: 42px;
  }

  .ls-factory-lightbox-next {
    right: 12px;
    width: 42px;
    height: 42px;
  }

  .ls-factory-lightbox-close {
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
  }

  .ls-factory-lightbox-wrap {
    max-width: calc(100vw - 28px);
  }
}

@media (max-width: 480px) {
  .ls-fc-hero__title {
    font-size: 28px;
  }

  .ls-fc-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ls-fc-cta__title {
    font-size: 22px;
  }
}
