/* =========================================
   Pages — Shared Page-Level Layout Patterns
   ========================================= */

/* Page Banner (shared across all sub-pages) */
.l-page-banner {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: linear-gradient(135deg, #0a1628 0%, #0f2542 100%);
  color: var(--color-white);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.l-page-banner__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.l-page-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
  pointer-events: none;
}

.l-page-banner__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(3rem + var(--nav-height)) var(--desktop-px) 5rem;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 3rem;
  min-height: 300px;
}

.l-page-banner__content {
  flex: 1;
}

.l-page-banner__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

.l-page-banner__desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  max-width: 1000px;
}

.l-page-banner__visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Two-column main layout (list pages) */
.l-main-layout {
  display: flex;
  gap: 2.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem var(--desktop-px);
}

.l-main-layout__sidebar {
  flex: 0 0 280px;
}

.l-main-layout__content {
  flex: 1;
  min-width: 0;
}

/* Two-column main layout (detail pages) */
.l-detail-layout {
  display: flex;
  gap: 2.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem var(--desktop-px);
}

.l-detail-layout__main {
  flex: 1;
  min-width: 0;
}

.l-detail-layout__sidebar {
  flex: 0 0 280px;
}

/* Section spacing */
.l-section {
  padding: 5rem var(--desktop-px);
}
.l-section--tight {
  padding: 3rem var(--desktop-px);
}
.l-sidebar-close {
  display: none;
}
  .l-sidebar-toggle {
    display : none;
  }
@media (max-width: 1024px) {
  .l-page-banner__inner {
    padding: 2.5rem var(--desktop-px);
    min-height: 240px;
  }
  .l-main-layout,
  .l-detail-layout {
    flex-direction: column;
  }

  /* Mobile off-canvas sidebar */
  .l-main-layout__sidebar,
  .l-detail-layout__sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 85vw;
    max-width: 320px;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    z-index: 1001;
    background: var(--color-white);
    padding: 1rem;
    transform: translateX(-100%);
    transition: transform 0.35s var(--ease-in-out);
  }

  .l-main-layout__sidebar .c-sidebar,
  .l-detail-layout__sidebar .c-sidebar {
    position: static;
  }

  .l-main-layout__sidebar.is-open,
  .l-detail-layout__sidebar.is-open {
    transform: translateX(0);
  }

  /* Close button in sidebar */
  .l-sidebar-close {
    position: sticky;
    top: 0;
    float: right;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--gray-mid);
    background: var(--color-white);
    color: var(--text-primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    margin-bottom: -36px;
    transition: background 0.2s;
  }

  .l-sidebar-close:hover {
    background: var(--gray-light);
  }

  /* Overlay */
  .l-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }

  .l-sidebar-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  /* Filter toggle button */
  .l-sidebar-toggle {
    display : flex;
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition:
      transform 0.25s ease,
      opacity 0.25s ease;
  }

  .l-sidebar-toggle.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
  }
}

@media (max-width: 768px) {
  .l-page-banner__inner {
    flex-direction: column;
    text-align: center;
    padding: calc(3rem + 80px) var(--mobile-px) 3rem;
    min-height: 200px;
  }
  .l-page-banner__desc {
    max-width: 100%;
  }
  .l-main-layout,
  .l-detail-layout {
    padding: 2rem var(--mobile-px);
  }
  .l-section {
    padding: 3rem var(--mobile-px);
  }
}
/* ==========================================================================
   CNC Industrial SEO Section Styles
   Target: section.seo-section
   Palette: Tech Blue (#1075bd) & Slate Grey System
   ========================================================================== */

/* --- 1. 全局容器与重置 --- */
section.seo-section {
  width: 100%;
  max-width: var(--max-w, 1600px);
  margin: 0 auto;
  padding: 3rem var(--desktop-px, 3vw) 5rem;
  /* background-color: var(--gray-light, #f5f7fa); */
  font-family: var(--font-body, "Open Sans", sans-serif);
  color: var(--text-primary, #111827);
  line-height: 1.7;
  box-sizing: border-box;
}

/* Angular 注入标签样式清洗 */
section.seo-section span.ng-star-inserted,
section.seo-section p.ng-star-inserted {
  display: inline;
  font-family: inherit;
  color: inherit;
}

/* --- 2. SEO 容器网格与卡片化 --- */
section.seo-section .seo-container {
  margin-bottom: 5rem;
  background-color: var(--color-white, #ffffff);
  border: 1px solid var(--gray-mid, #e2e6eb);
  border-radius: var(--radius-md, 12px);
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.06));
  transition: transform 0.3s var(--ease-out, cubic-bezier(0.25, 0.1, 0.25, 1)),
              box-shadow 0.3s var(--ease-out, cubic-bezier(0.25, 0.1, 0.25, 1)),
              border-color 0.3s var(--ease-out, cubic-bezier(0.25, 0.1, 0.25, 1));
  overflow: hidden;
}

section.seo-section .seo-container:last-child {
  margin-bottom: 0;
}

section.seo-section .seo-container:hover {
  border-color: var(--color-primary-light, #3b9ad4);
  box-shadow: var(--shadow-md, 0 8px 30px rgba(0, 0, 0, 0.08));
}

section.seo-section .seo-container .container {
  padding: 2.25rem 2.5rem;
}

/* --- 3. 标题系统 (H2) --- */
section.seo-section h2.ng-star-inserted,
section.seo-section h2 {
  font-family: var(--font-heading, "Montserrat", sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary, #111827);
  margin-top: 0;
  margin-bottom: 1.25rem;
  padding-left: 1rem;
  border-left: 4px solid var(--color-primary, #1075bd);
  letter-spacing: -0.01em;
  line-height: 1.35;
  display: flex;
  align-items: center;
}

/* --- 4. 正文段落 (Paragraphs) --- */
section.seo-section p.ng-star-inserted,
section.seo-section p {
  display: block;
  font-size: 0.975rem;
  color: var(--text-secondary, #374151);
  margin-top: 0;
  margin-bottom: 1.25rem;
}

section.seo-section .container > p:last-child {
  margin-bottom: 0;
}

/* --- 5. 产品配置列表卡片网格 (Versatile Configurations List) --- */
section.seo-section ul.ng-star-inserted,
section.seo-section ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

section.seo-section ul li {
  background-color: var(--gray-light, #f5f7fa);
  border: 1px solid var(--gray-mid, #e2e6eb);
  border-radius: var(--radius-sm, 8px);
  padding: 1.25rem 1.5rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

section.seo-section ul li:hover {
  background-color: #ffffff;
  border-color: var(--color-primary, #1075bd);
  box-shadow: 0 4px 12px rgba(16, 117, 189, 0.08);
}

section.seo-section ul li p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
}

/* 列表强调文本 / 系列名称加粗 */
section.seo-section ul li strong.ng-star-inserted,
section.seo-section ul li strong {
  display: block;
  font-family: var(--font-heading, "Montserrat", sans-serif);
  font-size: 1.05rem;
  color: var(--color-primary-dark, #0b5c96);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

/* --- 6. 工业规格高亮徽章微调 --- */
section.seo-section strong.ng-star-inserted:not(ul li strong),
section.seo-section strong:not(ul li strong) {
  color: var(--color-primary-dark, #0b5c96);
  font-weight: 600;
}

/* --- 7. 响应式适配 --- */
@media (max-width: 992px) {
  section.seo-section .seo-container .container {
    padding: 1.75rem 1.5rem;
  }

  section.seo-section h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  section.seo-section {
    padding: 2rem var(--mobile-px, 5vw);
  }

  section.seo-section ul.ng-star-inserted,
  section.seo-section ul {
    grid-template-columns: 1fr;
  }
}