/* ============================================================
   blown-film-hub.css
   Page: /blown-film-machines/ (Hub Page)
   Depends on: global.css (variables, buttons, tables, why-card)
   Revised: 2026-07-21
   ============================================================ */

/* ── CONTAINER ── */
#blown-film-hub .container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

@media (max-width: 960px) {
  #blown-film-hub .container { padding: 0 var(--sp-3); }
}


/* ============================================================
   SHARED SECTION PATTERNS
   ============================================================ */

.section-light {
  background: var(--off-white);
  padding: var(--sp-7) 0;
}

.section-dark {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 15%, rgba(215,25,32,.24), transparent 32%),
    radial-gradient(circle at 85% 25%, rgba(255,255,255,.06), transparent 34%),
    linear-gradient(135deg, #0B0D10 0%, #171A1F 55%, #24272E 100%);
  padding: var(--sp-7) 0;
}

/* Tech grid overlay on all dark sections */
.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 59px,
      rgba(255,255,255,0.025) 59px, rgba(255,255,255,0.025) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px,
      rgba(255,255,255,0.025) 59px, rgba(255,255,255,0.025) 60px);
  pointer-events: none;
  z-index: 0;
}

/* Ensure content inside dark sections sits above grid overlay */
.section-dark > * {
  position: relative;
  z-index: 1;
}

/* Section header — light bg */
.section-header { margin-bottom: var(--sp-5); }

.section-header h2 {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  color: var(--gray-800);
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin-bottom: var(--sp-1);
  text-wrap: pretty;
}

.section-header .section-title {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--sp-1);
}

.section-header .section-sub {
  font-size: var(--text-base);
  color: var(--gray-600);
  max-width: 620px;
  line-height: 1.7;
  text-wrap: pretty;
}

/* Section header — dark bg override */
.section-header--light .section-title { color: var(--brand-mid); }
.section-header--light h2             { color: #fff; }
.section-header--light h2 em          { font-style: normal; color: rgba(255,255,255,0.35); }
.section-header--light .section-sub   { color: rgba(255,255,255,0.52); }

/* Shared table subtitle */
.table-subtitle {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--gray-800);
  margin: var(--sp-5) 0 var(--sp-2);
}
.table-subtitle-note {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--gray-600);
  margin-left: var(--sp-1);
}
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-3);
}

/* Link arrow */
.link-arrow {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease;
}
.link-arrow:hover { color: var(--brand-dark); }
.link-arrow:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* btn-outline */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--brand);
  color: var(--brand);
  font-size: var(--text-sm);
  font-weight: 700;
  font-family: 'DM Sans', system-ui, sans-serif;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn-outline:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-1px);
}
.btn-outline:active { transform: scale(0.98); }
.btn-outline:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* btn size modifiers */
.btn-sm { padding: 10px 20px; font-size: var(--text-sm); }
.btn-lg { padding: var(--sp-2) var(--sp-5); font-size: var(--text-md); }


/* ============================================================
   S1: HERO
   ============================================================ */

.bfm-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.bfm-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.bfm-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  animation: hero-breathe 8s ease-in-out infinite;
}
.bfm-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(215,25,32,.20), transparent 35%),
    linear-gradient(135deg,
      rgba(11,13,16,0.85) 0%,
      rgba(23,26,31,0.78) 55%,
      rgba(36,39,46,0.70) 100%);
}

/* Grid lines texture */
.bfm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    repeating-linear-gradient(0deg,  transparent, transparent 59px,
      rgba(255,255,255,0.025) 59px, rgba(255,255,255,0.025) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px,
      rgba(255,255,255,0.025) 59px, rgba(255,255,255,0.025) 60px);
  pointer-events: none;
}

.bfm-hero__content {
  position: relative;
  z-index: 2;
  padding: var(--sp-8) var(--sp-5) var(--sp-7);
  text-align: center;
  width: 100%;
}

.bfm-hero__badge {
  display: inline-block;
  border: 1px solid rgba(215,25,32,0.35);
  background: rgba(215,25,32,0.08);
  color: rgba(255,255,255,0.75);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px var(--sp-2);
  border-radius: 100px;
  margin-bottom: var(--sp-3);
}

.bfm-hero__h1 {
  font-size: clamp(28px, 4.2vw, 50px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.5px;
  max-width: 860px;
  margin: 0 auto var(--sp-3);
  text-wrap: pretty;
}

.bfm-hero__h1 em {
  font-style: normal;
  color: rgba(255,255,255,0.35);
}

.bfm-hero__lead {
  font-size: var(--text-md);
  color: rgba(255,255,255,0.55);
  max-width: 680px;
  margin: 0 auto var(--sp-5);
  line-height: 1.75;
  font-weight: 400;
  text-wrap: pretty;
}

/* Trust bar */
.bfm-hero__trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  max-width: 760px;
  margin: 0 auto var(--sp-5);
  overflow: hidden;
}
.bfm-hero__trust .trust-item {
  border-right: 1px solid rgba(255,255,255,0.08);
  padding: var(--sp-2) var(--sp-3);
  flex: 1;
  min-width: 120px;
}
.bfm-hero__trust .trust-item:last-child { border-right: none; }

.bfm-hero__ctas {
  display: flex;
  gap: var(--sp-2);
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .bfm-hero__content { padding: var(--sp-7) var(--sp-3) var(--sp-6); }
  .bfm-hero__trust .trust-item { padding: var(--sp-2) var(--sp-2); min-width: 90px; }
  .bfm-hero__ctas { flex-direction: column; align-items: center; }
}


/* ============================================================
   S2 — HOW IT WORKS  (blown-film-hub.css)
   ============================================================ */

/* ── 步骤列表容器 ── */
.bfm-process-steps {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

/* ── 单个步骤 ── */
.process-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.process-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

/* ── 图片在左（奇数步骤） ── */
.process-step--img-left .process-step__media { order: 1; }
.process-step--img-left .process-step__body  { order: 2; }

/* ── 图片在右（偶数步骤） ── */
.process-step--img-right .process-step__media { order: 2; }
.process-step--img-right .process-step__body  { order: 1; }

/* ── 图片区域 ── */
.process-step__media {
  position: relative;
  overflow: hidden;
  /* grid 子项撑满行高，图片自然填充 */
  min-height: 280px;
}

.process-step__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.process-step:hover .process-step__media img {
  transform: scale(1.04);
}

/* ── 文字区域 ── */
.process-step__body {
  padding: var(--sp-6) var(--sp-5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-2);
}

/* 步骤编号 */
.process-step__body .step-num {
  font-family: 'DM Mono', monospace;
  font-size: 48px;
  font-weight: 500;
  color: var(--brand);
  line-height: 1;
  letter-spacing: -1px;
  opacity: 0.9;
}

/* 步骤标题 */
.process-step__body h3 {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--gray-800);
  line-height: 1.2;
  margin: 0;
}

/* 步骤描述 */
.process-step__body p {
  font-size: var(--text-base);
  color: var(--gray-600);
  line-height: 1.75;
  margin: 0;
  max-width: 420px;
}

/* ── 响应式：960px 以下单列 ── */
@media (max-width: 960px) {
  .process-step {
    grid-template-columns: 1fr;
  }

  /* 移动端图片始终在上 */
  .process-step--img-left .process-step__media,
  .process-step--img-right .process-step__media {
    order: 1;
    min-height: unset;
    aspect-ratio: 16 / 9;
  }

  .process-step--img-left .process-step__body,
  .process-step--img-right .process-step__body {
    order: 2;
  }

  .process-step__body {
    padding: var(--sp-4) var(--sp-4);
  }

  .process-step__body .step-num {
    font-size: var(--text-2xl);
  }

  .process-step__body p {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .bfm-process-steps {
    gap: var(--sp-4);
  }

  .process-step__body {
    padding: var(--sp-3) var(--sp-3);
  }

  .process-step__body h3 {
    font-size: var(--text-md);
  }
}


/* ============================================================
   S3: MACHINE ANATOMY
   ============================================================ */

.bfm-anatomy__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}

.anatomy-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.anatomy-card:hover {
  border-color: rgba(215,25,32,0.40);
  transform: translateY(-2px);
}

.anatomy-card__img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}
.anatomy-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.anatomy-card:hover .anatomy-card__img img { transform: scale(1.04); }

.anatomy-card__body { padding: var(--sp-3); }

.anatomy-card__body h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
}

.anatomy-spec {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--brand-mid);
  letter-spacing: 0.5px;
  margin-bottom: var(--sp-1);
  font-family: 'DM Mono', monospace;
  display: block;
}

.anatomy-card__body p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  text-wrap: pretty;
}

@media (max-width: 1100px) {
  .bfm-anatomy__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .bfm-anatomy__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .bfm-anatomy__grid { grid-template-columns: 1fr; }
}


/* ============================================================
   S4: OPTIONAL UPGRADES
   ============================================================ */

.bfm-upgrades__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

.upgrade-card {
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.upgrade-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: var(--brand);
}

.upgrade-card__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gray-50);
}
.upgrade-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.upgrade-card:hover .upgrade-card__img img { transform: scale(1.04); }

.upgrade-card__body { padding: var(--sp-3); }

.upgrade-tag {
  display: inline-block;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px var(--sp-1);
  border-radius: var(--r-sm);
  margin-bottom: var(--sp-1);
}

.upgrade-card__body h3 {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: var(--sp-1);
  line-height: 1.3;
}
.upgrade-card__body p {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: var(--sp-1);
  text-wrap: pretty;
}

/* Ideal-for note — informational callout, not a card */
.upgrade-ideal {
  font-size: var(--text-sm);
  color: var(--gray-600);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--r-md);
  padding: var(--sp-1) var(--sp-2);
  line-height: 1.55;
  text-wrap: pretty;
}

@media (max-width: 960px) {
  .bfm-upgrades__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .bfm-upgrades__grid { grid-template-columns: 1fr; }
}


/* ============================================================
   S5: MATERIALS — 图片轮播带 + Solutions Links
   ============================================================ */

.bfm-materials__gallery-strip {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-bottom: var(--sp-5);
  border-radius: var(--r-lg);
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

.bfm-materials__gallery-track {
  display: flex;
  gap: 0;
  width: max-content;
  height: 100%;
  animation: bfm-gallery-scroll 40s linear infinite;
  will-change: transform;
}

.bfm-materials__gallery-strip:hover .bfm-materials__gallery-track {
  animation-play-state: paused;
}

.bfm-materials__gallery-item {
  flex-shrink: 0;
  width: 276px;        /* 260px 图 + 16px 右间距 */
  padding-right: 16px;
  height: 200px;
}

.bfm-materials__gallery-item-inner {
  position: relative;  /* ★ label 的定位锚点在这里 */
  width: 100%;
  height: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;    /* ★ 裁剪圆角 + label 不溢出 */
  border: 1px solid rgba(255,255,255,0.08);
}

.bfm-materials__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.bfm-materials__gallery-item:hover img {
  transform: scale(1.04);
}

.bfm-materials__gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-1) var(--sp-2);
  background: linear-gradient(to top, rgba(11,13,16,0.85) 0%, transparent 100%);
  color: rgba(255,255,255,0.90);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.3px;
  /* ★ 不需要 border-radius，inner 的 overflow:hidden 已处理 */
}

/*
  计算：每个 item = 276px，单组 8 张 = 276 × 8 = 2208px
  translateX(-2208px) → 第二组第一张接上第一组第一张，无缝循环
*/
@keyframes bfm-gallery-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-2208px); }
}

/* ============================================================
   S5: MATERIALS — Solutions Links
   ============================================================ */

.bfm-materials__solutions {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.solutions-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
}

.solutions-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  align-items: center;
}

/* ★ 父级选择器提升特异性，确保覆盖浏览器默认 <a> 颜色和下划线 */
.bfm-materials__solutions .solution-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px var(--sp-2);
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.70);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.bfm-materials__solutions .solution-chip:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.bfm-materials__solutions .solution-chip:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ============================================================
   S5: MATERIALS — prefers-reduced-motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .bfm-materials__gallery-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    height: auto;
    gap: var(--sp-2);
    padding: var(--sp-2);
  }
  .bfm-materials__gallery-strip {
    height: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .bfm-materials__gallery-item {
    width: 200px;
    height: 150px;
    padding-right: 0;
  }
}


/* ============================================================
   S6: LAYER NAVIGATOR
   ============================================================ */

.layer-nav__group {
  margin-bottom: var(--sp-7);
}

.layer-nav__group-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: var(--sp-1);
  padding-bottom: var(--sp-1);
  border-bottom: 1px solid var(--gray-100);
}

.layer-nav__group-sub {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: var(--sp-3);
  max-width: 640px;
  text-wrap: pretty;
}

/* Card grid — layer count */
.bfm-layer-nav__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

/* Card grid — material (single column) */
.bfm-layer-nav__grid--material {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

/* Base card — vertical */
.layer-nav-card {
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.layer-nav-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: var(--brand);
}
.layer-nav-card:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Image area — vertical default */
.layer-nav-card__img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--gray-50);
  flex-shrink: 0;
}
.layer-nav-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.layer-nav-card:hover .layer-nav-card__img img { transform: scale(1.04); }

/* Body */
.layer-nav-card__body {
  padding: var(--sp-3);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Badges */
.layer-badge {
  display: inline-block;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px var(--sp-1);
  border-radius: var(--r-sm);
  width: fit-content;
}
.layer-badge--barrier {
  background: rgba(215,25,32,0.12);
  color: var(--brand-dark);
  border: 1px solid rgba(215,25,32,0.20);
}
/* Bio badge — uses system green tokens */
.layer-badge--bio {
  background: var(--green-bg);
  color: var(--green-fg);
}

/* Card text */
.layer-nav-card__body h3 {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.3;
}
.layer-structure {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gray-400);
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.5px;
}
.layer-output {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--brand);
  font-family: 'DM Mono', monospace;
  line-height: 1;
}
.layer-apps {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.5;
  text-wrap: pretty;
}
.layer-note {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.65;
  flex: 1;
  text-wrap: pretty;
}
.layer-nav-card__body .btn-outline {
  margin-top: auto;
  align-self: flex-start;
}

/* Bio card — horizontal layout override */
.layer-nav-card--bio {
  display: grid;
  grid-template-columns: 320px 1fr;
  flex-direction: unset;
  background: var(--green-bg);
  border: 1px solid rgba(22,101,52,0.25);
}
.layer-nav-card--bio:hover {
  border-color: var(--green-fg);
}

.layer-nav-card--bio .layer-nav-card__img {
  aspect-ratio: unset;
  height: 100%;
  min-height: 260px;
}

.layer-nav-card--bio .layer-nav-card__body {
  padding: var(--sp-5) var(--sp-5);
  justify-content: center;
  gap: var(--sp-1);
}

/* Feature tags */
.layer-nav-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  margin: var(--sp-1) 0;
}
.bio-tag {
  display: inline-block;
  background: var(--green-bg);
  color: var(--green-fg);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 4px var(--sp-1);
  border-radius: var(--r-sm);
  border: 1px solid rgba(22,101,52,0.20);
}

/* Bio outline button — uses system green */
.btn-outline--bio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--green-fg);
  color: var(--green-fg);
  font-size: var(--text-sm);
  font-weight: 700;
  font-family: 'DM Sans', system-ui, sans-serif;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  margin-top: auto;
  align-self: flex-start;
  width: fit-content;
}
.btn-outline--bio:hover {
  background: var(--green-fg);
  color: #fff;
  transform: translateY(-1px);
}
.btn-outline--bio:active { transform: scale(0.98); }
.btn-outline--bio:focus-visible {
  outline: 2px solid var(--green-fg);
  outline-offset: 2px;
}

/* Selection helper CTA */
.layer-nav__helper {
  text-align: center;
  padding: var(--sp-4);
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-card);
}
.layer-nav__helper p {
  font-size: var(--text-base);
  color: var(--gray-600);
  margin-bottom: var(--sp-1);
  text-wrap: pretty;
}

@media (max-width: 960px) {
  .bfm-layer-nav__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .layer-nav-card--bio {
    grid-template-columns: 1fr;
  }
  .layer-nav-card--bio .layer-nav-card__img {
    min-height: 200px;
    height: 220px;
    aspect-ratio: unset;
  }
  .layer-nav-card--bio .layer-nav-card__body {
    padding: var(--sp-3);
  }
}
@media (max-width: 600px) {
  .bfm-layer-nav__grid { grid-template-columns: 1fr; }
}


/* ============================================================
   S7: BLOWN FILM VS CAST FILM
   ============================================================ */

.bfm-vs-cast .container {
  max-width: 1160px;
}

/* 对比图 — 两张图并排，居中显示 */
.bfm-vs-cast__img {
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--sp-5);
}

.bfm-vs-cast__img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* 引言段落 */
.bfm-vs-cast__intro {
  margin-bottom: var(--sp-5);
  max-width: 820px;
}

.bfm-vs-cast__intro p {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  text-wrap: pretty;
}

/* 对比表 — 复用 layer-table，加宽度保护 */
.bfm-vs-cast__table {
  min-width: 640px;
}

/* 结论行高亮 */
.bfm-vs-cast__table tr.vs-conclusion-row td {
  background: rgba(215,25,32,0.07);
  font-weight: 600;
  color: rgba(255,255,255,0.80);
  border-top: 1px solid rgba(215,25,32,0.20);
}

/* 结论文字块 */
.bfm-vs-cast__conclusion {
  margin-top: var(--sp-5);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  max-width: 820px;
}

.bfm-vs-cast__conclusion p {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  margin-bottom: var(--sp-3);
  text-wrap: pretty;
}

.bfm-vs-cast__conclusion p:last-of-type {
  margin-bottom: var(--sp-4);
}

@media (max-width: 960px) {
  .bfm-vs-cast__img {
    border-radius: var(--r-md);
  }

  .bfm-vs-cast__conclusion {
    padding: var(--sp-4);
  }
}


/* ============================================================
   S8: WHAT YOU NEED
   ============================================================ */

.bfm-requirements__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  align-items: start;
}

.bfm-requirements__img {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 80px;
}
.bfm-requirements__img img {
  width: 100%;
  display: block;
}

.bfm-requirements__checklist {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.req-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  background: #fff;
  border-radius: var(--r-lg);
  padding: var(--sp-3);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.req-item:hover {
  border-color: rgba(215,25,32,0.20);
  box-shadow: var(--shadow-lift);
}

/* Icon block — SVG icon replaces emoji */
.req-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-tint);
  border-radius: var(--r-md);
  flex-shrink: 0;
  color: var(--brand);
}
.req-icon svg {
  width: 22px;
  height: 22px;
}

.req-body h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 6px;
  line-height: 1.3;
}
.req-body p {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.65;
  text-wrap: pretty;
}

@media (max-width: 960px) {
  .bfm-requirements__layout { grid-template-columns: 1fr; }
  .bfm-requirements__img { position: static; }
}


/* ============================================================
   S9 — WHY LAYERQUESTAR (重写版)
   page-blown-film-hub.css 中的对应部分
   ============================================================ */

/* ---------- 对比表容器 ---------- */
.bfm-why__table-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  margin-bottom: var(--sp-7);
}

.bfm-why__table-label {
  padding: var(--sp-2) var(--sp-4);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--gray-400);
  font-family: 'DM Mono', monospace;
}

.table-wrapper {
  overflow-x: auto;
}

.bfm-why__table-note {
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--text-xs);
  color: var(--gray-400);
  border-top: 1px solid var(--gray-100);
  line-height: 1.6;
}

/* ---------- 买家证言 ---------- */
.bfm-why__testimonials {
  margin-bottom: var(--sp-7);
}

.bfm-why__testimonials-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.30);
  margin-bottom: var(--sp-3);
}

.bfm-why__testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

.bfm-why__testimonial {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.bfm-why__testimonial:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(215,25,32,0.30);
}

/* 左侧品牌红竖线 — 引号视觉替代 */
.bfm-why__testimonial-q {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  padding-left: var(--sp-3);
  border-left: 2px solid var(--brand);
  flex: 1;
}

.bfm-why__testimonial-source {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bfm-why__testimonial-who {
  font-size: var(--text-sm);
  font-weight: 700;
  color: rgba(255,255,255,0.85);
}

.bfm-why__testimonial-where {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.4px;
}

/* ---------- 信任数字条 — 固定列宽版 ---------- */
.bfm-why__credentials {
  display: grid;
  grid-template-columns: 140px 1px 140px 1px 180px 1px 200px 1px 200px;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5) var(--sp-4);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.bfm-why__cred-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 0 var(--sp-3);
}

.bfm-why__cred-num {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--white);
  font-family: 'DM Mono', monospace;
  line-height: 1;
  display: block;
}

.bfm-why__cred-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: rgba(255,255,255,0.40);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
}

.bfm-why__cred-label-only {
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  display: block;
  line-height: 1.4;
}

.bfm-why__cred-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.10);
  justify-self: center;
}

/* ---------- 响应式：960px 以下折成两列 ---------- */
@media (max-width: 960px) {
  .bfm-why__credentials {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4);
    justify-items: center;
  }

  .bfm-why__cred-divider {
    display: none;
  }

  .bfm-why__cred-item {
    padding: 0;
  }
}

/* ---------- 响应式：600px 以下单列 ---------- */
@media (max-width: 600px) {
  .bfm-why__credentials {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
  }
}


/* ============================================================
   S10: PROJECT TIMELINE
   ============================================================ */

.bfm-timeline__flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.bfm-timeline__flow::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom,
    var(--brand) 0%,
    rgba(215,25,32,0.12) 100%);
  z-index: 0;
}

.timeline-step {
  display: grid;
  grid-template-columns: 56px 1fr 1fr;
  gap: var(--sp-4);
  align-items: start;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--gray-100);
  position: relative;
  z-index: 1;
}
.timeline-step:last-child { border-bottom: none; }

.timeline-step__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: var(--text-md);
  font-weight: 800;
  font-family: 'DM Mono', monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--off-white), 0 0 0 6px rgba(215,25,32,0.20);
  position: relative;
  z-index: 2;
}

.timeline-step__img {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 9;
}
.timeline-step__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.timeline-step__body h3 {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 4px;
  line-height: 1.3;
}

.timeline-duration {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--brand);
  font-family: 'DM Mono', monospace;
  margin-bottom: var(--sp-2);
}

.timeline-step__body p {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: var(--sp-2);
  text-wrap: pretty;
}

.bfm-timeline__summary {
  margin-top: var(--sp-5);
  text-align: center;
}
.timeline-summary-box {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-6);
  box-shadow: var(--shadow-card);
}
.summary-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 6px;
}
.summary-value {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--brand);
  font-family: 'DM Mono', monospace;
  line-height: 1;
  margin-bottom: var(--sp-1);
}
.summary-note {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.6;
  max-width: 420px;
  text-wrap: pretty;
}

.bfm-timeline__note {
  margin-top: var(--sp-3);
  text-align: center;
}

@media (max-width: 960px) {
  .timeline-step {
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
  }
  .timeline-step__num  { grid-row: 1; grid-column: 1; }
  .timeline-step__body { grid-row: 1; grid-column: 2; }
  .timeline-step__img  {
    grid-row: 2;
    grid-column: 1 / -1;
    aspect-ratio: 16 / 7;
  }
}
@media (max-width: 600px) {
  .bfm-timeline__flow::before { left: 22px; }
  .timeline-step__num { width: 44px; height: 44px; font-size: var(--text-base); }
}


/* ============================================================
   S11: WHY LAYERQUESTAR
   ============================================================ */

.bfm-why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.bfm-why__grid .why-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.bfm-why__grid .why-card:hover {
  border-color: rgba(215,25,32,0.40);
  transform: translateY(-2px);
}

.why-card__img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}
.why-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.bfm-why__grid .why-card:hover .why-card__img img { transform: scale(1.04); }

.bfm-why__grid .why-card h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  padding: var(--sp-3) var(--sp-3) 0;
  line-height: 1.3;
}
.why-spec {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--brand-mid);
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.5px;
  padding: 0 var(--sp-3);
  margin-bottom: var(--sp-1);
  display: block;
}
.bfm-why__grid .why-card p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.50);
  line-height: 1.65;
  padding: 0 var(--sp-3) var(--sp-3);
  text-wrap: pretty;
}

/* Credentials bar */
.bfm-why__credentials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.credential-item {
  flex: 1;
  min-width: 160px;
  padding: var(--sp-3) var(--sp-3);
  border-right: 1px solid rgba(255,255,255,0.07);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.credential-item:last-child { border-right: none; }
.credential-num {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #fff;
  font-family: 'DM Mono', monospace;
  line-height: 1;
}
.credential-item .credential-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

@media (max-width: 960px) {
  .bfm-why__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .bfm-why__grid { grid-template-columns: 1fr; }
  .credential-item { min-width: 130px; padding: var(--sp-2); }
}


/* ============================================================
   S12: FAQ
   ============================================================ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease;
}
.faq-item:hover { border-color: rgba(215,25,32,0.20); }

.faq-q {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--gray-800);
  padding: var(--sp-3) var(--sp-4);
  cursor: pointer;
  line-height: 1.4;
  position: relative;
  list-style: none;
  transition: color 0.2s ease;
}
.faq-q:hover { color: var(--black); }
.faq-q:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}

/* Chevron indicator */
.faq-q::after {
  content: '';
  position: absolute;
  right: var(--sp-4);
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: var(--brand-tint);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23D71920'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

/* Rotate chevron when open — requires [open] on <details> */
details[open] > .faq-q::after {
  transform: translateY(-50%) rotate(180deg);
}

.faq-a {
  padding: 0 var(--sp-4) var(--sp-3);
  border-top: 1px solid var(--gray-50);
}
.faq-a p {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.75;
  padding-top: var(--sp-2);
  text-wrap: pretty;
}


/* ============================================================
   S13: CTA
   ============================================================ */

.section-cta {
  position: relative;
  overflow: hidden;
  padding: var(--sp-8) 0;
}

.bfm-cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.bfm-cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bfm-cta__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(215,25,32,.22), transparent 35%),
    linear-gradient(135deg,
      rgba(11,13,16,0.90) 0%,
      rgba(23,26,31,0.84) 60%,
      rgba(36,39,46,0.80) 100%);
}

/* Tech grid on CTA */
.section-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 59px,
      rgba(255,255,255,0.025) 59px, rgba(255,255,255,0.025) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px,
      rgba(255,255,255,0.025) 59px, rgba(255,255,255,0.025) 60px);
  pointer-events: none;
}

.bfm-cta__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--sp-5);
}

/* CTA eyebrow */
.bfm-cta__eyebrow {
  display: inline-block;
  border: 1px solid rgba(215,25,32,0.35);
  background: rgba(215,25,32,0.08);
  color: rgba(255,255,255,0.72);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px var(--sp-2);
  border-radius: 100px;
  margin-bottom: var(--sp-3);
}

.bfm-cta__content h2 {
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--sp-2);
  line-height: 1.2;
  letter-spacing: -0.3px;
  text-wrap: pretty;
}
.bfm-cta__content h2 em {
  font-style: normal;
  color: rgba(255,255,255,0.35);
}
.bfm-cta__content p {
  font-size: var(--text-md);
  color: rgba(255,255,255,0.52);
  max-width: 560px;
  margin: 0 auto var(--sp-5);
  line-height: 1.75;
  text-wrap: pretty;
}

.bfm-cta__buttons {
  display: flex;
  gap: var(--sp-2);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
}

.bfm-cta__trust {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
}
.bfm-cta__trust span {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.35);
  font-weight: 500;
}

@media (max-width: 600px) {
  .bfm-cta__buttons { flex-direction: column; align-items: center; }
  .bfm-cta__trust   { flex-direction: column; align-items: center; gap: var(--sp-1); }
}

@keyframes hero-breathe {
  0%   { transform: scale(1.00); }
  50%  { transform: scale(1.06); }
  100% { transform: scale(1.00); }
}

/* ============================================================
   REDUCED MOTION
   (如 global.css 已声明可删除此块)
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}