/**
 * TPK Professional Lighting — New Products Template Stylesheet
 * File: assets/css/pages/page-new-products.css
 * Template: 新产品模板 (New Products Template)
 * Version: 20261019_v01
 * Scope: Strictly scoped to .tpk-new-products-page container
 */

/* ==========================================================================
   PAGE MASTER WRAPPER & CONTAINER
   ========================================================================== */
.tpk-new-products-page {
  width: 100%;
  background-color: #F9FAFB;
  color: #111111;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  padding-top: 16px;
  padding-bottom: 64px;
  overflow-x: hidden;
}

.tpk-new-products-page *,
.tpk-new-products-page *::before,
.tpk-new-products-page *::after {
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .tpk-new-products-page {
    padding-top: 28px;
    padding-bottom: 80px;
  }
}

/* Ensure breadcrumb does not render or occupy space on New Products template */
.tpk-main--new-products .tpk-crumbs,
.tpk-new-products-page .tpk-crumbs {
  display: none !important;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATION (About-Page Style Progressive Fade-In)
   Uses native IntersectionObserver for 0ms CPU penalty and GPU compositing
   ========================================================================== */
.tpk-new-products-page [data-tpk-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.tpk-new-products-page [data-tpk-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .tpk-new-products-page [data-tpk-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Standard Grid Container - Strict Edge Alignment Across Header, Stats & Cards */
.tpk-new-products-page .tpk-container {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 768px) {
  .tpk-new-products-page .tpk-container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (min-width: 1024px) {
  .tpk-new-products-page .tpk-container {
    padding-left: 48px;
    padding-right: 48px;
  }
}

/* ==========================================================================
   SEO ONLY: VISUALLY HIDDEN (Google Safe & WCAG 2.1 Compliant - Rule 16)
   ========================================================================== */
.tpk-new-products-page .tpk-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tpk-new-products-page .tpk-hero-header {
  margin: 0;
  padding: 0;
  height: 0;
}

/* ==========================================================================
   PRODUCT SHOWCASE & STATS STACK CONTAINER
   ========================================================================== */
.tpk-new-products-page .tpk-sections-stack {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

@media (min-width: 1024px) {
  .tpk-new-products-page .tpk-sections-stack {
    gap: 80px;
  }
}

/* ==========================================================================
   STATS BAR: DIRECTLY ON BACKGROUND & CENTERED (No Card, Equal Margins)
   ========================================================================== */
.tpk-new-products-page .tpk-stats-strip {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (min-width: 768px) {
  .tpk-new-products-page .tpk-stats-strip {
    grid-template-columns: repeat(4, 1fr);
    padding: 24px 0;
    gap: 48px;
  }
}

.tpk-new-products-page .tpk-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.tpk-new-products-page .tpk-stat-num {
  font-size: clamp(34px, 3.4vw, 50px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  color: #111111;
}

.tpk-new-products-page .tpk-stat-label {
  font-size: 13px;
  font-weight: 500;
  color: #71717A;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   LAYOUT 1: CINEMATIC FULL-WIDTH STAGE (Street Lights & Wall Lights)
   ========================================================================== */
.tpk-new-products-page .tpk-card-cinematic {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background-color: #0F0F0F;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
}

@media (min-width: 1024px) {
  .tpk-new-products-page .tpk-card-cinematic {
    aspect-ratio: 16 / 9;
    min-height: 620px;
    max-height: 820px;
  }
}

/* Centered variation (Horizontally & Vertically for Card 1) */
.tpk-new-products-page .tpk-card-cinematic.is-centered {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.tpk-new-products-page .tpk-card-cinematic:not(.is-centered) {
  justify-content: flex-end;
}

.tpk-new-products-page .tpk-cinematic-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.tpk-new-products-page .tpk-cinematic-bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

.tpk-new-products-page .tpk-cinematic-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tpk-new-products-page .tpk-card-cinematic:hover .tpk-cinematic-bg img {
  transform: scale(1.035);
}

/* Centered balanced scrim */
.tpk-new-products-page .tpk-cinematic-scrim-centered {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(0, 0, 0, 0.52) 0%,
    rgba(0, 0, 0, 0.72) 100%
  );
  pointer-events: none;
}

/* Bottom-gradient scrim */
.tpk-new-products-page .tpk-cinematic-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.35) 45%,
    rgba(0, 0, 0, 0.82) 100%
  );
  pointer-events: none;
}

.tpk-new-products-page .tpk-cinematic-content {
  position: relative;
  z-index: 2;
  padding: 36px 28px;
  color: #FFFFFF;
  max-width: 860px;
}

@media (min-width: 768px) {
  .tpk-new-products-page .tpk-cinematic-content {
    padding: 56px 48px;
  }
}

@media (min-width: 1280px) {
  .tpk-new-products-page .tpk-cinematic-content {
    padding: 68px 60px;
  }
}

.tpk-new-products-page .tpk-card-cinematic.is-centered .tpk-cinematic-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 auto;
}

.tpk-new-products-page .tpk-cinematic-title {
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 18px;
  color: #FFFFFF;
}

.tpk-new-products-page .tpk-cinematic-lead {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
  color: #E4E4E7;
  max-width: 720px;
  margin-bottom: 32px;
}

/* ==========================================================================
   LAYOUT 2: ASYMMETRIC SPLIT EDITORIAL GRID (Garden, Lawn, Pillar)
   ========================================================================== */
.tpk-new-products-page .tpk-card-editorial {
  position: relative;
  width: 100%;
  background-color: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   MOBILE VIEW (max-width: 1023px): BIG-TECH FLAGSHIP CARD STANDARD (Apple / DJI)
   1. Unified Frame: 16px radius, subtle border & shadow, zero detached elements.
   2. Visual-First: Hero image on TOP (order: 1) filling top half edge-to-edge.
   3. Content Stack: Specs, Badges & full-width CTA button BELOW (order: 2).
   ========================================================================== */
@media (max-width: 1023px) {
  .tpk-new-products-page .tpk-card-editorial .tpk-editorial-media,
  .tpk-new-products-page .tpk-card-editorial.reverse .tpk-editorial-media {
    order: 1 !important;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: unset;
    max-height: 280px;
    background-color: #F4F4F5;
  }

  .tpk-new-products-page .tpk-card-editorial .tpk-editorial-info,
  .tpk-new-products-page .tpk-card-editorial.reverse .tpk-editorial-info {
    order: 2 !important;
    padding: 24px 20px 24px;
    background-color: #FFFFFF;
  }

  .tpk-new-products-page .tpk-editorial-info .edge-reveal-button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* Desktop Split Layout (min-width: 1024px) */
@media (min-width: 1024px) {
  .tpk-new-products-page .tpk-card-editorial {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    min-height: 520px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  }

  .tpk-new-products-page .tpk-card-editorial .tpk-editorial-info {
    order: 1;
    padding: 48px 36px;
  }

  .tpk-new-products-page .tpk-card-editorial .tpk-editorial-media {
    order: 2;
    min-height: 100%;
    max-height: unset;
    aspect-ratio: unset;
  }

  .tpk-new-products-page .tpk-card-editorial.reverse {
    grid-template-columns: 1.1fr 1fr;
  }

  .tpk-new-products-page .tpk-card-editorial.reverse .tpk-editorial-info {
    order: 2;
  }

  .tpk-new-products-page .tpk-card-editorial.reverse .tpk-editorial-media {
    order: 1;
  }
}

@media (min-width: 1280px) {
  .tpk-new-products-page .tpk-card-editorial {
    min-height: 560px;
  }

  .tpk-new-products-page .tpk-card-editorial .tpk-editorial-info {
    padding: 64px 56px;
  }
}

.tpk-new-products-page .tpk-editorial-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #FFFFFF;
}

.tpk-new-products-page .tpk-editorial-title {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #111111;
  margin-bottom: 20px;
}

.tpk-new-products-page .tpk-editorial-desc {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.65;
  color: #52525B;
  margin-bottom: 28px;
}

/* ==========================================================================
   FEATURE LIST: BLACK ROUND DOTS (Theme Bullet Standard)
   ========================================================================== */
.tpk-new-products-page .tpk-feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0 0 32px 0;
  padding: 0;
}

@media (min-width: 640px) {
  .tpk-new-products-page .tpk-feature-list {
    grid-template-columns: 1fr 1fr;
  }
}

.tpk-new-products-page .tpk-feature-item {
  position: relative;
  padding-left: 14px;
  display: flex;
  align-items: baseline;
  font-size: 13px;
  color: #3F3F46;
  line-height: 1.5;
}

.tpk-new-products-page .tpk-feature-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #111111;
}

/* ==========================================================================
   STATIC CAPSULE TAGS: #F2F3F5 BACKGROUND, NO BORDER, FONT-WEIGHT 400
   ========================================================================== */
.tpk-new-products-page .tpk-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.tpk-new-products-page .tpk-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 9999px;
  background: #F2F3F5;
  color: #111111;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
}

/* Media block */
.tpk-new-products-page .tpk-editorial-media {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background-color: #F4F4F5;
}

@media (min-width: 1024px) {
  .tpk-new-products-page .tpk-editorial-media {
    min-height: 100%;
  }
}

/* Ensure picture elements take full container width and height */
.tpk-new-products-page .tpk-editorial-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.tpk-new-products-page .tpk-editorial-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Solar Garden Lights: Focus on the left illuminated garden luminaire head (avoids cut-off right pole) */
.tpk-new-products-page #cat-sgl .tpk-editorial-media img,
.tpk-new-products-page .tpk-editorial-media img.tpk-focus-garden,
.tpk-new-products-page .tpk-editorial-media img.tpk-focus-top {
  object-position: 28% 15% !important;
}

/* Solar Pillar Lights: Focus on the left architectural pier fixture & column balustrade */
.tpk-new-products-page #cat-spl .tpk-editorial-media img,
.tpk-new-products-page .tpk-editorial-media img.tpk-focus-pillar {
  object-position: 18% 35% !important;
}

/* Solar Lawn Lights: Balanced landscape pathway framing */
.tpk-new-products-page #cat-sll .tpk-editorial-media img,
.tpk-new-products-page .tpk-editorial-media img.tpk-focus-lawn {
  object-position: center center !important;
}

.tpk-new-products-page .tpk-card-editorial:hover .tpk-editorial-media img {
  transform: scale(1.035);
}

.tpk-new-products-page .tpk-media-caption {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 4px;
  pointer-events: none;
}

/* ==========================================================================
   HOMEPAGE STANDARD BUTTON: FIXED EDGE ARROW REVEAL
   - Dark Variant (for light backgrounds: Garden, Lawn, Pillar)
   - Light Variant (White Capsule, Black Text for dark images: Street, Wall)
   ========================================================================== */
.tpk-new-products-page .tpk-btn-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.tpk-new-products-page .tpk-card-cinematic.is-centered .tpk-btn-group {
  justify-content: center;
}

.tpk-new-products-page .edge-reveal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  cursor: pointer;
  text-decoration: none;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.012em;
  white-space: nowrap;

  /* Default Dark Variant */
  color: #FFFFFF;
  background: linear-gradient(
    108deg,
    #020202 0%,
    #020202 55%,
    #111111 77%,
    #252525 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 12px 26px rgba(0, 0, 0, 0.18);

  transition:
    padding 0.78s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.78s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.15s ease;

  will-change: padding, box-shadow;
}

.tpk-new-products-page .edge-reveal-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 57%,
    rgba(255, 255, 255, 0.018) 76%,
    rgba(255, 255, 255, 0.052) 100%
  );
}

/* WHITE CAPSULE, BLACK TEXT VARIANT (For Dark Background Images) */
.tpk-new-products-page .edge-reveal-button.is-light {
  color: #111111;
  background: linear-gradient(
    108deg,
    #FFFFFF 0%,
    #FFFFFF 60%,
    #F4F4F6 80%,
    #EBECEF 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 28px rgba(0, 0, 0, 0.28);
}

.tpk-new-products-page .edge-reveal-button.is-light::after {
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 57%,
    rgba(0, 0, 0, 0.015) 76%,
    rgba(0, 0, 0, 0.04) 100%
  );
}

.tpk-new-products-page .edge-reveal-button:hover {
  padding-right: 18px;
  padding-left: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 31px rgba(0, 0, 0, 0.21);
}

.tpk-new-products-page .edge-reveal-button.is-light:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 18px 36px rgba(0, 0, 0, 0.38);
}

.tpk-new-products-page .edge-reveal-button:active {
  transform: scale(0.985);
}

.tpk-new-products-page .edge-reveal-button:focus-visible {
  outline: 3px solid rgba(0, 0, 0, 0.14);
  outline-offset: 5px;
}

.tpk-new-products-page .button-label {
  position: relative;
  z-index: 2;
  line-height: 1;
  display: inline-block;
}

.tpk-new-products-page .button-arrow-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0;
  max-width: 0;
  opacity: 0;
  margin-left: 0;
  overflow: visible;
  transition:
    width 0.78s cubic-bezier(0.16, 1, 0.3, 1),
    max-width 0.78s cubic-bezier(0.16, 1, 0.3, 1),
    margin-left 0.78s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.78s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: width, max-width, margin-left;
}

.tpk-new-products-page .edge-reveal-button:hover .button-arrow-container {
  width: 20px;
  max-width: 20px;
  opacity: 1;
  margin-left: 10px;
}

.tpk-new-products-page .button-arrow {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.78s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: clip-path;
}

.tpk-new-products-page .edge-reveal-button:hover .button-arrow {
  clip-path: inset(0 0 0 0);
}

/* ==========================================================================
   OPTIONAL COMPONENT: SPLIT EDITORIAL HERO (Scheme 2: Left Image, Right Text)
   Left: 1:1 Rounded Image Card | Right: Architectural Lighting Typography
   ========================================================================== */
.tpk-new-products-page .tpk-hero-split {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

@media (min-width: 1024px) {
  .tpk-new-products-page .tpk-hero-split {
    grid-template-columns: 1fr 1.08fr;
    gap: 60px;
    min-height: 560px;
  }
}

@media (min-width: 1280px) {
  .tpk-new-products-page .tpk-hero-split {
    grid-template-columns: 1fr 1.15fr;
    gap: 72px;
  }
}

.tpk-new-products-page .tpk-hero-split-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background-color: #0F0F0F;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.07);
}

@media (min-width: 1024px) {
  .tpk-new-products-page .tpk-hero-split-media {
    border-radius: 20px;
    max-height: 620px;
  }
}

.tpk-new-products-page .tpk-hero-split-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.tpk-new-products-page .tpk-hero-split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tpk-new-products-page .tpk-hero-split:hover .tpk-hero-split-media img {
  transform: scale(1.035);
}

.tpk-new-products-page .tpk-hero-split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 0;
}

@media (min-width: 1024px) {
  .tpk-new-products-page .tpk-hero-split-content {
    padding: 20px 0 20px 16px;
  }
}

.tpk-new-products-page .tpk-hero-split-title {
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #111111;
  margin-bottom: 24px;
}

.tpk-new-products-page .tpk-hero-split-lead {
  font-size: clamp(15.5px, 1.15vw, 17px);
  line-height: 1.68;
  color: #27272A;
  margin-bottom: 18px;
}

.tpk-new-products-page .tpk-hero-split-lead strong {
  color: #111111;
  font-weight: 600;
}

.tpk-new-products-page .tpk-hero-split-desc {
  font-size: clamp(14.5px, 1.05vw, 16px);
  line-height: 1.7;
  color: #52525B;
  margin-bottom: 18px;
}

.tpk-new-products-page .tpk-hero-split-desc em {
  font-style: italic;
  color: #18181B;
  font-weight: 500;
}
