/*
Theme Name: MBV Forge
Theme URI: https://mountbakervapor.com
Description: Mount Baker Vapor — Industrial Ridge Precision child theme for Blocksy. Night Shift default, Day Shift via html[data-theme=day].
Author: MBV Ops
Template: blocksy
Version: 0.2.0
Text Domain: mbv-forge
*/

/* ═══ 设计 token（DESIGN.md）═══ */
:root,
html[data-theme="night"] {
  --mbv-surface: #101418;
  --mbv-surface-container-lowest: #0a0f13;
  --mbv-surface-container-low: #181c21;
  --mbv-surface-container: #1c2025;
  --mbv-surface-container-high: #262a2f;
  --mbv-surface-container-highest: #31353a;
  --mbv-on-surface: #e0e2e9;
  --mbv-on-surface-variant: #e1c0b2;
  --mbv-recess: #14171a;
  --mbv-outline: #a88a7e;
  --mbv-hairline: rgba(138, 147, 158, 0.3);
  --mbv-hairline-strong: #8a939e;
  color-scheme: dark;
}
html[data-theme="day"] {
  --mbv-surface: #efeae0;
  --mbv-surface-container-lowest: #e5dfd2;
  --mbv-surface-container-low: #e9e3d7;
  --mbv-surface-container: #ece6da;
  --mbv-surface-container-high: #f3efe6;
  --mbv-surface-container-highest: #f7f4ec;
  --mbv-on-surface: #1b1f24;
  --mbv-on-surface-variant: #4a463f;
  --mbv-recess: #e2dccd;
  --mbv-outline: #8a7c6a;
  --mbv-hairline: rgba(27, 31, 36, 0.25);
  --mbv-hairline-strong: #6b6455;
  color-scheme: light;
}
:root {
  --mbv-primary: #f26a1b;
  --mbv-primary-deep: #d4550e;
  --mbv-on-primary: #2b1608;
  --mbv-secondary: #8fb8d6;
  --mbv-tertiary: #f5c518;
  --mbv-font-display: 'Space Grotesk', 'IBM Plex Sans', sans-serif;
  --mbv-font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --mbv-font-mono: 'Space Mono', 'IBM Plex Mono', monospace;
}

/* ═══ 字体（自托管，外域出口归零）═══ */
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('assets/fonts/SpaceGrotesk-Bold.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('assets/fonts/IBMPlexSans-Regular.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('assets/fonts/IBMPlexSans-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('assets/fonts/SpaceMono-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('assets/fonts/SpaceMono-Bold.woff2') format('woff2'); }

/* ═══ 基调 ═══ */
body.mbv-forge-active {
  background: var(--mbv-surface);
  color: var(--mbv-on-surface);
  font-family: var(--mbv-font-body);
}
.mbv-forge-active a { color: var(--mbv-secondary); }
.mbv-forge-active h1, .mbv-forge-active h2, .mbv-forge-active h3 {
  font-family: var(--mbv-font-display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.mbv-label {
  font-family: var(--mbv-font-mono); font-weight: 700; font-size: 11px;
  line-height: 1.5; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mbv-on-surface-variant);
}
.mbv-spec {
  font-family: var(--mbv-font-mono); font-weight: 700; font-size: 13px; letter-spacing: 0.06em;
  color: var(--mbv-on-surface);
}

/* ═══ 按钮 ═══ */
.mbv-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mbv-font-mono); font-weight: 700; font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.08em; text-decoration: none; cursor: pointer; border: 0;
  padding: 12px 22px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background 0.15s ease;
}
.mbv-btn--primary { background: var(--mbv-primary); color: var(--mbv-on-primary); }
.mbv-btn--primary:hover { background: var(--mbv-primary-deep); }
.mbv-btn--steel { background: var(--mbv-surface-container-high); color: var(--mbv-on-surface); border: 1px solid var(--mbv-hairline-strong); }
.mbv-btn[disabled] { opacity: 0.4; cursor: not-allowed; }

/* ═══ HERO ═══ */
/* v0.3.27 全屏沉浸：banner cover 铺满首屏（min-h 100vh-112px 头部），无蒙层 */
.mbv-hero {
  position: relative; overflow: hidden; padding: 0 !important;
  background: var(--mbv-surface-container-lowest);
  background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important;
}
.mbv-hero-copy { text-shadow: 0 2px 14px rgba(10, 15, 19, 0.5); }
/* v0.3.85 hero 主标题/正文纯白（day 亮海报下 on-surface 深字看不清；夜版原即浅字无视觉差） */
.mbv-hero-copy h1 { color: #ffffff !important; }
.mbv-hero-copy p.font-body-lg { color: #ffffff !important; }
/* v0.3.73 移动端 hero 换竖版山门海报（9:16 原生适配手机竖屏；!important 压过 inline 背景声明） */
@media (max-width: 760px) {
  .mbv-hero {
    background-image: url('/wp-content/themes/mbv-forge/assets/img/poster-mountain-916.jpg') !important;
  }
  /* v0.3.83 移动端文案重排：常显、置顶（海报天空/雪山区）、统一左对齐。
     v0.3.84：贴顶（仅留刘海安全距）+ 顶部轻黑渐变蒙层保文字可读（文案 z-10 在蒙层上） */
  .mbv-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 9, 12, 0.62) 0%, rgba(6, 9, 12, 0.32) 32%, rgba(6, 9, 12, 0) 58%);
    z-index: 1;
    pointer-events: none;
  }
  .mbv-hero .mbv-shell {
    justify-content: flex-start !important;
    align-items: flex-start !important;
    padding-top: calc(var(--mbv-mh, 118px) + env(safe-area-inset-top, 0px) + 14px) !important;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 18px) !important;
  }
  /* v0.3.87 CTA 沉底对齐下板块：copy 撑满 shell，按钮组 margin-top:auto 推到 hero 底 */
  .mbv-hero-copy {
    flex: 1;
    width: 100%;
    opacity: 1 !important;
    transform: none !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: none;
    padding: 0;
    background: none;
  }
  .mbv-hero-copy > .flex.gap-space-md { margin-top: auto; }
  .mbv-hero-copy > * { text-shadow: 0 2px 14px rgba(10, 15, 19, 0.5); }
  /* v0.3.86 竖屏 CTA 重排：横排逐词断行太丑——改纵向堆叠、全宽、文字居中 */
  .mbv-hero-copy > .flex.gap-space-md {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }
  .mbv-hero-copy > .flex.gap-space-md > a {
    width: 100%;
    justify-content: center;
    padding-left: 20px;
    padding-right: 20px;
    white-space: nowrap;
  }
}
/* v0.3.31 夜左日右：hero 文案组按主题定位（夜图留白在左 / 日图留白在右） */
.mbv-hero .mbv-shell { justify-content: flex-end; align-items: flex-start; padding-top: 0; }
.mbv-hero-copy { align-items: flex-start; text-align: left; max-width: 44rem; }
html[data-theme="day"] .mbv-hero .mbv-shell { align-items: flex-end; }
html[data-theme="day"] .mbv-hero-copy { align-items: flex-end; text-align: right; }
.mbv-hero__inner { position: relative; max-width: 640px; }
.mbv-stamp {
  display: inline-block; padding: 6px 12px; margin-bottom: 18px;
  border: 1px solid var(--mbv-hairline-strong); color: var(--mbv-primary);
  background: var(--mbv-surface-container);
}
.mbv-hero__title {
  font-size: clamp(44px, 7vw, 76px); line-height: 0.95; margin: 0 0 10px; color: var(--mbv-on-surface);
}
.mbv-hero__sub { font-family: var(--mbv-font-display); font-size: 19px; font-weight: 600; color: var(--mbv-secondary); margin: 0 0 14px; }
.mbv-hero__body { color: var(--mbv-on-surface-variant); line-height: 1.7; max-width: 540px; margin: 0 0 26px; }
.mbv-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.mbv-hero__specs {
  display: flex; gap: 0; max-width: 560px; border: 1px solid var(--mbv-hairline);
  background: var(--mbv-surface-container-low);
}
.mbv-hero__specs > div { flex: 1; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.mbv-hero__specs > div + div { border-left: 1px solid var(--mbv-hairline); }

/* ═══ 信任条 ═══ */
.mbv-truststrip {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 24px; border-top: 2px solid var(--mbv-primary); border-bottom: 1px solid var(--mbv-hairline);
  background: var(--mbv-surface-container-low); color: var(--mbv-secondary);
}

/* ═══ 阵容 ═══ */
.mbv-lineup { padding: 56px 24px 8px; max-width: 1280px; margin: 0 auto; }
.mbv-lineup__head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; border-bottom: 1px solid var(--mbv-hairline); padding-bottom: 12px; }
.mbv-lineup__title { font-size: 26px; margin: 0; }
.mbv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.mbv-card {
  position: relative; background: var(--mbv-surface-container); border: 1px solid var(--mbv-hairline);
  padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 10px;
}
.mbv-card::before { content: '+'; position: absolute; top: 6px; left: 8px; color: var(--mbv-secondary); font: 700 10px var(--mbv-font-mono); }
.mbv-card::after { content: '+'; position: absolute; bottom: 6px; right: 8px; color: var(--mbv-secondary); font: 700 10px var(--mbv-font-mono); }
.mbv-card__plate { color: var(--mbv-secondary); border-bottom: 1px dashed var(--mbv-hairline); padding-bottom: 8px; }
.mbv-card__title { font-size: 15px; line-height: 1.45; margin: 0; text-transform: none; font-family: var(--mbv-font-body); font-weight: 600; }
.mbv-card__title a { color: var(--mbv-on-surface); text-decoration: none; }
.mbv-card__title a:hover { color: var(--mbv-secondary); }
.mbv-card__price { font-size: 18px; color: var(--mbv-primary); }
.mbv-card.is-oos { opacity: 0.55; }
.mbv-card__oos { color: var(--mbv-tertiary); }
.mbv-card .mbv-btn { align-self: flex-start; padding: 10px 16px; font-size: 12px; }

/* ═══ 叙事/捕捉 ═══ */
.mbv-story { max-width: 860px; margin: 0 auto; padding: 64px 24px; text-align: center; }
.mbv-story__title { font-size: 30px; margin: 0 0 18px; }
.mbv-story p { color: var(--mbv-on-surface-variant); line-height: 1.8; }
.mbv-capture { padding: 40px 24px 72px; text-align: center; background: var(--mbv-surface-container-low); border-top: 1px solid var(--mbv-hairline); }
.mbv-capture__form { display: inline-flex; gap: 10px; align-items: center; margin: 18px 0 8px; flex-wrap: wrap; justify-content: center; }
.mbv-capture__form input {
  background: var(--mbv-recess); border: 1px solid var(--mbv-hairline-strong); color: var(--mbv-on-surface);
  font-family: var(--mbv-font-mono); font-size: 14px; padding: 11px 14px; width: 280px;
}
.mbv-capture__form input:focus { outline: 1px solid var(--mbv-primary); }

/* ═══ 年龄门 ═══ */
.mbv-agegate {
  position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center;
  background: var(--mbv-surface-container-lowest);
}
.mbv-agegate__panel {
  max-width: 460px; padding: 36px; text-align: center;
  background: var(--mbv-surface-container); border: 1px solid var(--mbv-hairline-strong);
}
.mbv-agegate__panel h2 { font-size: 24px; margin: 14px 0; }
.mbv-agegate__btns { display: flex; gap: 14px; justify-content: center; margin-top: 22px; }

/* ═══ 页头 HUD（固定条：CRATE + 主题拨杆）═══ */
.mbv-hud {
  position: fixed; top: 14px; right: 16px; z-index: 9000;
  display: flex; align-items: center; gap: 0;
}
.mbv-crate {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  border: 1px solid var(--mbv-hairline-strong); background: var(--mbv-surface-container-lowest);
  padding: 6px 12px; margin-left: 14px;
}
.mbv-crate .mbv-cart-count { color: var(--mbv-primary); font-size: 15px; }
.mbv-crate .mbv-label { color: var(--mbv-on-surface-variant); }
.mbv-shift-toggle {
  display: inline-flex; align-items: center; gap: 10px; margin-left: 10px;
  font-family: var(--mbv-font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mbv-on-surface-variant);
  background: var(--mbv-surface-container-low); border: 1px solid var(--mbv-hairline);
  padding: 6px 12px; cursor: pointer;
}
.mbv-shift-toggle__knob {
  width: 34px; height: 16px; background: var(--mbv-recess);
  border: 1px solid var(--mbv-hairline-strong); position: relative; display: inline-block;
}
.mbv-shift-toggle__knob::after {
  content: ''; position: absolute; top: 1px; left: 1px; width: 12px; height: 12px;
  background: var(--mbv-secondary); transition: left 0.18s ease, background 0.18s ease;
}
html[data-theme="day"] .mbv-shift-toggle__knob::after { left: 19px; background: var(--mbv-primary); }

/* ═══ Checkout / Contact ═══ */
.mbv-checkout, .mbv-contact { max-width: 1080px; margin: 0 auto; padding: 48px 24px 80px; }
.mbv-checkout__head h1, .mbv-contact__head h1 { font-size: 34px; margin: 0 0 6px; }
.mbv-checkout__head, .mbv-contact__head { margin-bottom: 28px; border-bottom: 1px solid var(--mbv-hairline); padding-bottom: 16px; }
.mbv-checkout__cols { display: grid; grid-template-columns: 1fr 300px; gap: 28px; }
@media (max-width: 860px) { .mbv-checkout__cols { grid-template-columns: 1fr; } }
.mbv-cart { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
.mbv-cart th, .mbv-cart td { padding: 10px 8px; border-bottom: 1px dashed var(--mbv-hairline); text-align: left; font-size: 14px; }
.mbv-cart th { font-family: var(--mbv-font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--mbv-on-surface-variant); }
.mbv-num { text-align: right; font-family: var(--mbv-font-mono); }
.mbv-total { color: var(--mbv-primary); font-size: 16px; }
.mbv-qty { width: 56px; background: var(--mbv-recess); border: 1px solid var(--mbv-hairline-strong); color: var(--mbv-on-surface); padding: 5px; text-align: right; }
.mbv-rm { background: none; border: 1px solid var(--mbv-hairline-strong); color: var(--mbv-on-surface-variant); cursor: pointer; padding: 4px 8px; }
.mbv-rm:hover { color: var(--mbv-tertiary); border-color: var(--mbv-tertiary); }
#mbv-order-form .mbv-frow { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
#mbv-order-form .mbv-frow2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { #mbv-order-form .mbv-frow2 { grid-template-columns: 1fr; } }
/* v0.3.77 邀请码输入行（INVITE CODE；APPLY 预校验 /api/partner/invite-check） */
.mbv-invite { display: flex; gap: 8px; }
.mbv-invite input { flex: 1; }
#mbv-invite-msg { margin: 6px 0 0; font-size: 11px; letter-spacing: 0.06em; }
#mbv-invite-apply { padding: 8px 14px; font-size: 12px; white-space: nowrap; }
#mbv-order-form label, .mbv-contact__form label { font-family: var(--mbv-font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mbv-on-surface-variant); }
#mbv-order-form input, .mbv-contact__form input, .mbv-contact__form textarea {
  background: var(--mbv-recess); border: 1px solid var(--mbv-hairline-strong); color: var(--mbv-on-surface);
  padding: 12px 14px; font-size: 16px; font-family: var(--mbv-font-body); width: 100%; box-sizing: border-box;
}
#mbv-order-form input:focus, .mbv-contact__form input:focus, .mbv-contact__form textarea:focus { outline: 1px solid var(--mbv-primary); }
.mbv-err { color: #ff8a80; font-family: var(--mbv-font-mono); font-size: 13px; min-height: 18px; margin: 8px 0; }
.mbv-panel { background: var(--mbv-surface-container); border: 1px solid var(--mbv-hairline); padding: 18px; margin-bottom: 16px; }
.mbv-panel p { color: var(--mbv-on-surface-variant); font-size: 13.5px; line-height: 1.7; margin: 8px 0 0; }
.mbv-contact__form { max-width: 560px; }

/* ═══ Toast / 合规行 ═══ */
.mbv-toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 99998;
  background: var(--mbv-primary); color: var(--mbv-on-primary);
  font-family: var(--mbv-font-mono); font-weight: 700; font-size: 13px; letter-spacing: 0.08em;
  padding: 12px 22px; transition: opacity 0.4s;
}
.mbv-toast.is-out { opacity: 0; }
.mbv-legal-line { text-align: center; padding: 18px 24px 26px; margin: 0; color: var(--mbv-outline); border-top: 1px solid var(--mbv-hairline); }

/* ═══ Woo 默认皮肤暗色适配（产品页/购物归档）═══ */
.mbv-forge-active .woocommerce-products-header__title, .mbv-forge-active .product_title { color: var(--mbv-on-surface); }
.mbv-forge-active .woocommerce ul.products li.product .price { color: var(--mbv-primary); font-family: var(--mbv-font-mono); }
.mbv-forge-active .woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--mbv-on-surface); }
.mbv-forge-active .entry-summary .price { color: var(--mbv-primary); font-family: var(--mbv-font-mono); font-size: 20px; }
.mbv-forge-active .wp-block-table td, .mbv-forge-active table.shop_table td { border-color: var(--mbv-hairline); }

/* ═══ v0.3.3 五张 banner 挂位（v0.3.27 蒙层已拆，day 图直铺） ═══ */
html[data-theme="day"] .mbv-hero {
  background-image: url('assets/img/hero-dayside-2.jpg') !important;
  background-position: center !important;
}
/* v0.3.76 移动端日版竖幅（夜版山门海报同机位亮调版，941x1672 真竖图；
   v0.3.74 首版误用 API 方图(1832x1832)已废弃）。
   必须排在上面的桌面日版规则之后——同特异性同 !important，后者胜出，
   否则移动端 day 仍吃桌面横图。 */
@media (max-width: 760px) {
  html[data-theme="day"] .mbv-hero {
    background-image: url('/wp-content/themes/mbv-forge/assets/img/poster-mountain-day2-916.jpg') !important;
  }
}
/* 分类台头横幅（archive 模板 inline 引图，这里管叠层与文字可读性）
   v0.3.26：banner 完整展示——容器高度跟图片原始比例（shop-wide 1916x821 / crate-banner 1672x941） */
.mbv-bench-header {
  background-size: cover; background-position: center right;
  aspect-ratio: 1916 / 821;
}
.mbv-bench-header--crate {
  aspect-ratio: 1672 / 941;
}
.mbv-bench-header .mbv-shell { height: 100%; justify-content: center; }
.mbv-bench-header::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(16,20,24,0.93) 0%, rgba(16,20,24,0.82) 45%, rgba(16,20,24,0.45) 100%);
}
html[data-theme="day"] .mbv-bench-header::before {
  background: linear-gradient(90deg, rgba(239,234,224,0.94) 0%, rgba(239,234,224,0.8) 45%, rgba(239,234,224,0.35) 100%);
}
.mbv-bench-header > * { position: relative; z-index: 1; }
.mbv-bench-header .max-w-7xl { position: relative; z-index: 1; }
/* 品牌故事页头图 */
.mbv-story-hero {
  position: relative; margin-top: 112px; padding: 72px clamp(1.25rem, 4.5vw, 6rem);
  background-size: cover; background-position: center;
}
.mbv-story-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(16,20,24,0.92) 0%, rgba(16,20,24,0.55) 55%, rgba(16,20,24,0.15) 100%);
}
html[data-theme="day"] .mbv-story-hero::before {
  background: linear-gradient(90deg, rgba(239,234,224,0.94) 0%, rgba(239,234,224,0.6) 55%, rgba(239,234,224,0.2) 100%);
}
.mbv-story-hero__inner { position: relative; z-index: 1; max-width: 1720px; margin: 0 auto; }
.mbv-story-hero h1 { font-family: var(--mbv-font-display); font-size: clamp(30px, 4.5vw, 52px); text-transform: uppercase; margin: 6px 0 10px; color: var(--mbv-on-surface); }
.mbv-story-hero p { max-width: 640px; color: var(--mbv-on-surface-variant); line-height: 1.7; }
@media (max-width: 760px) { .mbv-story-hero { margin-top: 0; } }

/* ═══ v0.3.4 排版打磨 ═══ */
/* hero：banner 上可读性与呼吸感 */
.mbv-hero .grid { position: relative; z-index: 2; }
/* 右侧设备渲染盒半透明面板化（叠在 banner 上不糊） */
/* 中屏以下隐藏设备渲染盒，文案全宽 */
@media (max-width: 1024px) {
}
/* PDP 舞台：竖版设备占位在窄容器里瘦身 */
@media (max-width: 760px) {
  .mbv-forge-active .w-40.h-72 { width: 120px; height: 216px; }
}
/* 分类滤控柜 <1100 折到顶 */
@media (max-width: 1100px) {
  .mbv-forge-active .col-span-12.lg\:col-span-3 { order: 2; }
  .mbv-forge-active .col-span-12.lg\:col-span-9 { order: 1; }
}

/* ═══ 移动端双头部 ═══ */
.mbv-mheader { display: none; }
.px-margin { padding-left: 1rem; padding-right: 1rem; }
@media (max-width: 760px) {
  .mbv-dheader { display: none !important; }
  /* v0.3.87 header 改 sticky 常显：根治 fixed 元素被浏览器地址栏收展盖住
     （Android 地址栏展开时 fixed top:0 钉 layout 顶被吃，回滚半天才浮出）；
     sticky 占文档流位 → main 让位 padding 归零，hero 负 margin 拉回沉浸 */
  .mbv-mheader { display: block; position: sticky !important; top: 0 !important; }
  body.mbv-forge-active main, body.mbv-forge-active .wp-site-blocks { padding-top: 0 !important; }
  body.mbv-forge-active main.pt-28 { padding-top: 0 !important; }
  /* 首页全屏 hero（v0.3.28）：sticky header 自占位，hero 上提一个 header 高盖其后（z50 header 在上）；
     --mbv-mh 由 JS 量实测 header 高度写入（字体/视口导致实高 107~118 浮动，硬编码会露缝） */
  body.mbv-forge-active.home main { padding-top: 0 !important; }
  body.mbv-forge-active.home .mbv-hero { margin-top: calc(-1 * var(--mbv-mh, 118px)); }
  .mbv-shift-toggle { padding: 4px 6px; font-size: 0; }
  .mbv-shift-toggle .mbv-shift-toggle__knob { width: 26px; }
  .hidden-mnav { display: none; }
}


/* ═══ v0.3.10 桌面卡间距放宽（VLM: 卡间拥挤） ═══ */
@media (min-width: 1024px) {
  .mbv-forge-active .mbv-grid-cards { gap: 2.75rem !important; }
  .mbv-forge-active .mbv-grid-cards > div { padding: 1.25rem !important; }
}

/* ═══ v0.3.8 卡片移动瘦身 ═══ */
@media (max-width: 760px) {
  .mbv-hide-m, .mbv-specrow { display: none !important; }
  /* 首页卡：三行规格表整体隐藏（密度主源） */
  .mbv-forge-active .mbv-grid-cards .bg-surface-container-low.p-space-xs { display: none !important; }
  .mbv-forge-active .mbv-grid-cards .h-44 { height: 9.5rem !important; }
}
@media (max-width: 760px) {
  .mbv-hide-m, .mbv-specrow { display: none !important; }
}
/* ═══ v0.3.7 移动密度二轮 ═══ */
@media (max-width: 760px) {
  /* footer：移动端只留链接列+底条，隐藏合规大块与 QC 徽章块（重复堆叠根治） */
  .mbv-forge-active footer .col-span-4,
  .mbv-forge-active footer .col-span-2 { display: none !important; }
  .mbv-forge-active footer .col-span-3 { grid-column: span 12 !important; }
  .mbv-forge-active footer .py-space-xl { padding-top: 1.6rem !important; padding-bottom: 1.2rem !important; }
  .mbv-forge-active footer .mb-space-xl { margin-bottom: 0.8rem !important; }
  /* 卡片网格间距收紧 */
  .mbv-forge-active .mbv-grid-cards { gap: 0.9rem !important; }
  .mbv-forge-active .grid.gap-gutter-desktop { gap: 0.9rem !important; }
  /* 阵容头与卡片纵向呼吸 */
  .mbv-forge-active section .border-b { padding-bottom: 0.5rem !important; }
  .mbv-forge-active section .mb-space-xl { margin-bottom: 1.1rem !important; }
  .mbv-forge-active .mbv-grid-cards > div { padding: 0.8rem !important; }
  /* 铭牌卡头行（SKU/RUN）字号再降 */
  .mbv-forge-active .mbv-grid-cards .font-label-caps { font-size: 8.5px !important; }
}

/* ═══ v0.3.1 安全边 + 密度 + 拨杆 ═══ */
/* 安全边：全站左右 clamp 边距（小屏 20px → 大屏 96px） */
body.mbv-forge-active .px-margin-desktop {
  padding-left: clamp(1.25rem, 4.5vw, 6rem) !important;
  padding-right: clamp(1.25rem, 4.5vw, 6rem) !important;
}
/* 主内容列最大宽（v0.3.24 统一 1500 容器：首页补安全边 / 分类页放宽卡变大） */
.mbv-shell { max-width: 1500px; margin-left: auto; margin-right: auto; }
.mbv-shell-wide { max-width: 1680px; margin-left: auto; margin-right: auto; }
body.mbv-forge-active .mbv-grid-cards { max-width: 1500px; margin-left: auto; margin-right: auto; }
body.mbv-forge-active main section.px-margin-desktop > *:not([class*="max-w"]):not([class*="absolute"]) {
  max-width: 1500px; margin-left: auto; margin-right: auto;
}
/* 卡片密度降档：1600 以下 3 列、1150 以下 2 列、760 以下 1 列 */
@media (max-width: 1600px) {
  .mbv-grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 1150px) {
  .mbv-grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 760px) {
  .mbv-grid-cards { grid-template-columns: 1fr !important; }
}
/* 头部拨杆：常显可点，夜/日双态明显 */
.mbv-hud-inline {
  background: var(--mbv-surface-container-lowest, #0a0f13); border: 1px solid #8a939e;
  color: #e0e2e9; padding: 5px 10px; margin-left: 12px; cursor: pointer;
  font-family: var(--mbv-font-mono, monospace); font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 7px;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}
.mbv-hud-inline:hover { border-color: #f26a1b; }
.mbv-hud-inline .mbv-shift-toggle__knob {
  width: 30px; height: 15px; background: #14171a; border: 1px solid #8a939e; position: relative; display: inline-block; flex: none;
}
.mbv-hud-inline .mbv-shift-toggle__knob::after {
  content: ''; position: absolute; top: 1px; left: 1px; width: 11px; height: 11px;
  background: #8fb8d6; transition: left 0.18s ease, background 0.18s ease;
}
html[data-theme="day"] .mbv-hud-inline { background: #ffffff; color: #1b1f24; }
html[data-theme="day"] .mbv-hud-inline .mbv-shift-toggle__knob { background: #e2dccd; }
html[data-theme="day"] .mbv-hud-inline .mbv-shift-toggle__knob::after { left: 17px; background: #f26a1b; }
/* 日间下把 Stitch 稿里的写死深色区块显式收敛（黑板/蓝图面板保持深色是设计意图，仅修全黑页面底） */
html[data-theme="day"] body.mbv-forge-active { background: #efeae0; }
html[data-theme="day"] .mbv-agegate { background: rgba(229, 223, 210, 0.97); }
html[data-theme="day"] .mbv-agegate__panel { background: #fffdf8; }
html[data-theme="day"] .mbv-agegate__panel h2 { color: #1b1f24; }

/* ═══ v0.3.0 Stitch 骨架适配层 ═══ */
/* Stitch header 高 112px（h-28）固定——非首页主体让位（首页 main 自带 pt-28） */
body.mbv-forge-active:not(.home) main,
body.mbv-forge-active:not(.home) .wp-site-blocks,
body.mbv-forge-active:not(.home) .ct-container-full { padding-top: 126px !important; }
/* 头部内嵌拨杆（Stiff header 深底紧凑版） */
.mbv-hud-inline {
  background: var(--mbv-surface-container-lowest); border: 1px solid var(--mbv-hairline-strong);
  color: var(--mbv-on-surface-variant); padding: 4px 8px; margin-left: 10px;
  font-size: 10px; gap: 6px;
}
.mbv-hud-inline .mbv-shift-toggle__knob { width: 26px; height: 13px; }
.mbv-hud-inline .mbv-shift-toggle__knob::after { width: 9px; height: 9px; }
html[data-theme="day"] body { background: var(--mbv-surface); }
/* 移动端降级（Stitch 桌面稿的 grid/margin 是桌面定制） */
@media (max-width: 1100px) {
  .mbv-grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 760px) {
  .grid.grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .grid.grid-cols-3 { grid-template-columns: 1fr !important; }
  .grid.grid-cols-12 { grid-template-columns: 1fr !important; }
  .grid.grid-cols-12 > [class*="col-span"] { grid-column: auto !important; min-width: 0; } /* min-width:0 — 1fr 轨道下限是 min-content，购买框内容会把轨道撑到 378 > 容器 350，连带 body 横向撑宽（fixed 元素出屏） */
  .px-margin-desktop { padding-left: 1rem !important; padding-right: 1rem !important; }
  body.mbv-forge-active:not(.home) main, body.mbv-forge-active:not(.home) .wp-site-blocks { padding-top: 1rem !important; }
  main.pt-28 { padding-top: 1rem !important; }
  header .font-display-lg { font-size: 26px !important; line-height: 30px !important; }
}

/* 2026-11-13 fix: 主 CTA 橙底文字昼夜统一白字（night 模式曾渲染淡蓝 rgb(143,184,214)） */
.bg-primary-container{color:#ffffff !important}

/* 2026-11-13 fix: mbv-hero 恢复纵向文档流（曾被上层 flex-row 布局把坐标条横置左侧、挤压 grid 右偏 526px） */
.mbv-hero{display:block !important}

/* 2026-11-14 v0.3.27: hero 全屏铺满（旧 auto 100% 直铺在宽屏两侧露底色，废弃） */

/* v0.3.36 品牌归档紧凑台头：无 banner 图，不占 aspect-ratio 大高度 */
.mbv-brand-header {
  background-image:
    linear-gradient(rgba(143,184,214,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143,184,214,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  border-bottom: 1px solid rgba(168,180,190,0.25);
}

/* ============================================================
   v0.3.39 品牌铭牌瓦片（首页 + /brands/ 共用一套）
   素材已归一化：logo 裁墨迹后放入 3:2 白底画布（方形按高 64%、
   横排字标按宽 88% 光学定格），台面同为 3:2 → 图片 100% 铺满、零死白
   ============================================================ */
.mbv-brandtile {
  display: flex; flex-direction: column;
  border: 1px solid #36393f; background: #181c21;
  overflow: hidden; position: relative;
  transition: border-color .2s ease;
}
.mbv-brandtile:hover { border-color: #f26a1b; }
.mbv-brandplate {
  position: relative; width: 100%; aspect-ratio: 2 / 1;
  background: #ffffff; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.mbv-brandplate img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  transition: transform .28s ease;
}
.mbv-brandtile:hover .mbv-brandplate img { transform: scale(1.045); }
.mbv-brandfallback {
  display: none; width: 100%; height: 100%;
  align-items: center; justify-content: center; text-align: center;
  padding: 0 11%;
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(22px, 3vw, 44px); line-height: 1; letter-spacing: -.03em;
  color: #1b1f24;
}
.mbv-brandplate.is-fallback .mbv-brandfallback { display: flex; }
.mbv-brandrow {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 12px; border-top: 1px solid #36393f; background: #181c21;
}
.mbv-brandname {
  font-family: "Space Mono", monospace; font-size: 10px; font-weight: 700;
  letter-spacing: .11em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: #e0e2e9;
}
.mbv-brandcount {
  font-family: "Space Mono", monospace; font-size: 10px; font-weight: 700;
  letter-spacing: .08em; color: #f26a1b; flex: 0 0 auto;
}
html[data-theme="day"] .mbv-brandtile { border-color: #cfc7b4; background: #e9e3d7; }
html[data-theme="day"] .mbv-brandtile:hover { border-color: #f26a1b; }
html[data-theme="day"] .mbv-brandrow { border-top-color: #cfc7b4; background: #e9e3d7; }
html[data-theme="day"] .mbv-brandname { color: #1b1f24; }
html[data-theme="day"] .mbv-brandcount { color: #c25414; }
@media (max-width: 760px) {
  .mbv-brandrow { padding: 7px 9px; gap: 6px; }
  .mbv-brandname, .mbv-brandcount { font-size: 9px; letter-spacing: .06em; }
}

/* ============================================================
   v0.3.44 导航激活态（header 内联 JS 给匹配 data-path 的链接挂 .mbv-nav-active）
   桌面：橙字 + 底部 2px 刻线；移动/页脚：橙字 + 左侧 3px 标尺
   ============================================================ */
.mbv-dheader nav a[data-path].mbv-nav-active {
  color: var(--mbv-primary) !important;
  box-shadow: inset 0 -2px 0 var(--mbv-primary);
}
.mbv-dheader .font-label-caps a[data-path].mbv-nav-active { box-shadow: none; }
#mbv-mnav a[data-path].mbv-nav-active,
footer a[data-path].mbv-nav-active {
  color: var(--mbv-primary) !important;
}
#mbv-mnav a[data-path].mbv-nav-active {
  box-shadow: inset 3px 0 0 var(--mbv-primary);
  background: var(--mbv-surface-container, #1c2025);
}

/* ============================================================
   v0.3.45 /brands/ 台头 banner + 品牌归档快速切换条
   ============================================================ */
.mbv-bench-header--brands { aspect-ratio: 1672 / 941; }

.mbv-brandstrip {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 2px 2px 6px; margin: 0 -2px;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.mbv-brandstrip__item {
  flex: 0 0 auto; display: flex; flex-direction: column; gap: 4px;
  width: 96px; text-decoration: none;
}
.mbv-brandstrip__plate {
  width: 100%; aspect-ratio: 2 / 1; background: #ffffff;
  border: 1px solid #36393f; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 5px;
  transition: border-color .18s ease;
}
.mbv-brandstrip__plate img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mbv-brandstrip__fb {
  display: none; width: 100%; height: 100%;
  align-items: center; justify-content: center; text-align: center;
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  font-weight: 800; font-size: 11px; line-height: 1.05;
  letter-spacing: -.01em; text-transform: uppercase; color: #1b1f24;
}
.mbv-brandstrip__name {
  font-family: "Space Mono", monospace; font-size: 8.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; text-align: center;
  color: #e0e2e9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mbv-brandstrip__item:hover .mbv-brandstrip__plate { border-color: #f26a1b; }
.mbv-brandstrip__item.is-current .mbv-brandstrip__plate {
  border-color: #f26a1b; box-shadow: inset 0 -2px 0 #f26a1b;
}
.mbv-brandstrip__item.is-current .mbv-brandstrip__name { color: #f26a1b; }
html[data-theme="day"] .mbv-brandstrip__plate { border-color: #cfc7b4; }
html[data-theme="day"] .mbv-brandstrip__item:hover .mbv-brandstrip__plate,
html[data-theme="day"] .mbv-brandstrip__item.is-current .mbv-brandstrip__plate { border-color: #f26a1b; }
html[data-theme="day"] .mbv-brandstrip__name { color: #1b1f24; }
html[data-theme="day"] .mbv-brandstrip__item.is-current .mbv-brandstrip__name { color: #c25414; }
@media (max-width: 760px) {
  .mbv-brandstrip__item { width: 84px; }
  .mbv-brandstrip { gap: 6px; }
}

/* ============================================================
   v0.3.52 WORKSHOP DOCTRINE 车间校准台（钉住式滚动叙事）
   桌面：260vh 外轨 + sticky 一屏舞台，滚动进度驱动阶段浮现/仪表弧/CAL 读数/数字滚入
   移动：<760px 取消钉住，IO 逐块浮现
   ============================================================ */
.mbv-calib__track { height: 300vh; }
/* v0.3.58：桌面 fixed 头（mbv-dheader h-28 = 112px）常驻，吸附舞台顶部让位，
   sticky 几何保持 top:0/100vh 与滚动进度 JS 完全同步，仅内容下移 */
.mbv-calib__stage {
  --mbv-hdr-h: 112px;
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(0.65rem, 1.7vh, 1.2rem);
  padding: calc(var(--mbv-hdr-h) + clamp(0.5rem, 1.6vh, 1.25rem)) 0 clamp(0.75rem, 2.2vh, 2rem);
  background-color: #101418;
  background-image:
    linear-gradient(rgba(143,184,214,0.085) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143,184,214,0.085) 1px, transparent 1px),
    linear-gradient(rgba(143,184,214,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143,184,214,0.045) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  border-top: 1px solid var(--mbv-hairline, #8a939e66);
  border-bottom: 1px solid var(--mbv-hairline, #8a939e66);
}
html[data-theme="day"] .mbv-calib__stage {
  background-color: #efeae0;
  background-image:
    linear-gradient(rgba(27,31,36,0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,31,36,0.09) 1px, transparent 1px),
    linear-gradient(rgba(27,31,36,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,31,36,0.05) 1px, transparent 1px);
}
.mbv-calib__content { flex: 1 1 auto; min-width: 0; padding: 0 clamp(1.25rem, 4vw, 5rem); }

/* ---- 自动化产线 v0.3.56：全出血俯瞰工厂（日夜双主题 + 工位微动画）---- */
.mbv-calib__line { width: 80%; margin: 0 auto; flex: 0 0 auto; }
.mbv-linesvg { display: block; width: 100%; height: auto; max-height: 58vh; }
/* 夜间线稿：v0.3.56 提亮（旧 #4a4f57 系在 #101418 底上对比不足） */
.mbv-linesvg .ln-frame  { fill: none; stroke: #99a2ad; }
.mbv-linesvg .ln-frame2 { fill: none; stroke: #78808b; }
.mbv-linesvg .ln-floor  { fill: none; stroke: #8a939e; }
.mbv-linesvg .ln-txt    { fill: #b8c0c9; stroke: none; }
.mbv-linesvg .ln-belt   { stroke: #f26a1b; transition: stroke-dashoffset .25s linear; }
.mbv-linesvg .ln-acc    { fill: none; stroke: #97a0ab; transition: stroke .3s ease, fill .3s ease; }
.mbv-linesvg .ln-acc polygon { fill: #97a0ab; fill-opacity: 0.16; }
.mbv-linesvg .ln-ok     { fill: #6d7580; stroke: none; transition: fill .3s ease; }
.mbv-linesvg .ln-scan   { stroke: #f26a1b; stroke-width: 2.5; opacity: 0; }
.mbv-linesvg .ln-door   { transform-origin: 1149px 228px; transform-box: view-box; transition: transform .6s cubic-bezier(.6,0,.2,1); }
.mbv-linesvg .ln-led    { animation: ln-blink 1.5s linear infinite; }
.mbv-linesvg .ln-device { transition: transform .25s linear; }
.ln-stn.is-on .ln-acc, .ln-dispatch.is-on .ln-acc { stroke: #f26a1b; }
.ln-stn.is-on .ln-txt { fill: #f26a1b; }
.ln-stn.is-on .ln-ok, .ln-dispatch.is-on .ln-ok { fill: #f5c518; animation: ln-okpulse 1.1s ease-in-out infinite alternate; }
.ln-stn.is-on .ln-acc polygon, .ln-dispatch.is-on .ln-acc polygon,
.ln-stn.is-on .ln-acc rect, .ln-dispatch.is-on .ln-acc rect { fill: #f26a1b; fill-opacity: 0.55; }
/* 工位激活微动画（v0.3.56 细化：铣削十字旋转/绕线盘转/灌装脉冲/QC 扫描/闸门开启） */
.ln-stn[data-stn="0"].is-on .ln-xh { animation: ln-rot 7s linear infinite; transform-origin: 260px 166px; transform-box: view-box; }
.ln-stn[data-stn="1"].is-on .ln-cw { animation: ln-rot 3.4s linear infinite; transform-origin: 520px 363px; transform-box: view-box; }
.ln-stn[data-stn="2"].is-on .ln-pulse { animation: ln-pulse 1.2s ease-in-out infinite alternate; transform-origin: 815px 182px; transform-box: view-box; }
.ln-stn[data-stn="3"].is-on .ln-scan { animation: ln-scan 1.8s ease-in-out infinite; }
.ln-dispatch.is-on .ln-door { transform: rotate(-68deg); }
.mbv-linesvg:has(.ln-dispatch.is-on) .ln-haz { animation: ln-blink 1s linear infinite; }
@keyframes ln-rot { to { transform: rotate(360deg); } }
@keyframes ln-blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0.2; } }
@keyframes ln-okpulse { from { opacity: 1; } to { opacity: 0.45; } }
@keyframes ln-pulse { from { transform: scale(1); opacity: 1; } to { transform: scale(2); opacity: 0.4; } }
@keyframes ln-scan { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: 1; } 82% { opacity: 1; } 100% { transform: translateY(56px); opacity: 0; } }
/* v0.3.59 细节加法：SFC 数据总线流光 / 光电眼 / 液位浮子 / NG 剔除 / 充电呼吸 */
.mbv-linesvg .ln-data { fill: none; stroke: #8fb8d6; stroke-dasharray: 5 4; animation: ln-flow 0.9s linear infinite; }
.mbv-linesvg .ln-sensorbeam { stroke: #f26a1b; stroke-dasharray: 2 3; animation: ln-sense 2.4s ease-in-out infinite; }
.mbv-linesvg .ln-float { animation: ln-floaty 2.8s ease-in-out infinite alternate; }
.mbv-linesvg .ln-ng { fill: #f26a1b; stroke: none; animation: ln-kick 3.6s ease-in infinite; }
.mbv-linesvg .ln-chg { animation: ln-okpulse 1.6s ease-in-out infinite alternate; }
/* v0.3.60 产品形态演进：毛坯褪场 / 各工位成型层弹入 / 注液 / 合格印 */
.mbv-linesvg .ln-blank { stroke: none; transition: opacity .45s ease; }
.mbv-linesvg .ln-juice { fill: rgba(242, 106, 27, 0.38); stroke: none; }
.mbv-linesvg .ln-pass  { stroke: #f5c518; fill: none; }
.mbv-linesvg .ln-dev-1, .mbv-linesvg .ln-dev-2, .mbv-linesvg .ln-dev-3, .mbv-linesvg .ln-dev-4 {
  opacity: 0; transform-box: fill-box; transform-origin: center; transition: opacity .3s ease;
}
.ln-device.is-s1 .ln-blank { opacity: 0; }
.ln-device.is-s1 .ln-dev-1 { opacity: 1; animation: ln-forge .55s ease-out both; }
.ln-device.is-s2 .ln-dev-2 { opacity: 1; animation: ln-forge .55s ease-out both; }
.ln-device.is-s3 .ln-dev-3 { opacity: 1; animation: ln-forge .55s ease-out both; }
.ln-device.is-s4 .ln-dev-4 { opacity: 1; animation: ln-forge .55s ease-out both; }
@keyframes ln-forge { from { opacity: 0; transform: scale(1.45); } 55% { opacity: 1; } to { opacity: 1; transform: scale(1); } }
/* v0.3.61 实体面填充：fill 走主题变量日夜自适应，解决线稿穿透（实体遮挡地面/带面细节） */
.mbv-linesvg .ln-band   { fill: var(--mbv-surface-container-low, #181c21); stroke: none; }        /* 传送带带体 */
.mbv-linesvg .ln-solid  { fill: var(--mbv-surface-container, #1c2025); stroke: #99a2ad; }          /* 工位机架/托盘实底 */
.mbv-linesvg .ln-block  { fill: var(--mbv-surface-container-high, #262a2f); stroke: #78808b; }     /* 小型实体块 */
.mbv-linesvg .ln-shell  { fill: var(--mbv-on-surface-variant, #e1c0b2); stroke: none; }            /* 产品壳体（暖瓷白） */
.mbv-linesvg .ln-screen { fill: var(--mbv-recess, #14171a); stroke: none; }                        /* 屏/窗深底 */
.mbv-linesvg .ln-onshell { fill: none; stroke: var(--mbv-recess, #14171a); }                       /* 壳上刻线 */
html[data-theme="day"] .mbv-linesvg .ln-solid { stroke: #6b6455; }
html[data-theme="day"] .mbv-linesvg .ln-block { stroke: #8a8272; }
.mbv-linesvg .ln-blank { fill: var(--mbv-surface-container-highest, #31353a); }
/* v0.3.62 商业质感层：接地投影 / 区域填充 / 三级线宽 / 尺寸标注 / 图签 / 螺栓 / 高光 / 标签层级 */
.mbv-linesvg .ln-solid, .mbv-linesvg .ln-block, .mbv-linesvg .ln-device {
  filter: drop-shadow(0 2.5px 5px rgba(0, 0, 0, 0.55)); stroke-width: 3;
}
html[data-theme="day"] .mbv-linesvg .ln-solid,
html[data-theme="day"] .mbv-linesvg .ln-block,
html[data-theme="day"] .mbv-linesvg .ln-device { filter: drop-shadow(0 2.5px 5px rgba(27, 31, 36, 0.35)); }
.mbv-linesvg .ln-heavy { stroke-width: 3; }
.mbv-linesvg .ln-zonea { fill: rgba(143, 184, 214, 0.05); }
.mbv-linesvg .ln-zoneb { fill: rgba(224, 226, 233, 0.022); }
.mbv-linesvg .ln-zonec { fill: rgba(242, 106, 27, 0.05); }
html[data-theme="day"] .mbv-linesvg .ln-zonea { fill: rgba(107, 133, 163, 0.10); }
html[data-theme="day"] .mbv-linesvg .ln-zoneb { fill: rgba(27, 31, 36, 0.022); }
html[data-theme="day"] .mbv-linesvg .ln-zonec { fill: rgba(194, 84, 20, 0.07); }
.mbv-linesvg .ln-dim { fill: none; stroke: #6d7580; stroke-width: 0.9; }
.mbv-linesvg .ln-dimt { fill: #8a939e; font-size: 7px; letter-spacing: 0.1em; }
html[data-theme="day"] .mbv-linesvg .ln-dim { stroke: #8a8272; }
html[data-theme="day"] .mbv-linesvg .ln-dimt { fill: #6b6455; }
.mbv-linesvg .ln-bolt { fill: #78808b; stroke: none; }
html[data-theme="day"] .mbv-linesvg .ln-bolt { fill: #8a8272; }
.mbv-linesvg .ln-hilite { fill: none; stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.2; }
html[data-theme="day"] .mbv-linesvg .ln-hilite { stroke: rgba(27, 31, 36, 0.22); }
.mbv-linesvg .ln-ttl { fill: #c6cdd5; font-weight: 700; letter-spacing: 0.12em; }
html[data-theme="day"] .mbv-linesvg .ln-ttl { fill: #3a352d; }
.ln-stn.is-on .ln-ttl { fill: #f26a1b; }
html[data-theme="day"] .ln-stn.is-on .ln-ttl { fill: #c25414; }
/* v0.3.63 加法：工艺参数微标注 / STN-01 压头下压 */
.mbv-linesvg .ln-spec { fill: #97a0ab; font-size: 6.5px; letter-spacing: 0.08em; }
html[data-theme="day"] .mbv-linesvg .ln-spec { fill: #6b6455; }
.ln-stn[data-stn="0"].is-on .ln-press { animation: ln-press .5s ease-in-out infinite alternate; }
@keyframes ln-press { from { transform: translateY(0); } to { transform: translateY(5px); } }
/* v0.3.63 密度配平：次要层降权（VLM 反馈 cluttered），保加法不删件 */
.mbv-linesvg .ln-spec { opacity: 0.82; }
.mbv-linesvg .ln-dimt { opacity: 0.82; }
.mbv-linesvg .ln-floor { opacity: 0.78; }
/* v0.3.66 动效深化：卷筒旋转 / 出货脉冲 / 尾流 / 盖章弹 / 导轨槽 / 急停 */
.mbv-linesvg .ln-roller-l { transform-origin: 73px 260px; transform-box: view-box; animation: ln-rot 2.4s linear infinite; }
.mbv-linesvg .ln-roller-r { transform-origin: 1134px 260px; transform-box: view-box; animation: ln-rot 2.4s linear infinite; }
.ln-dispatch.is-on .ln-ship { animation: ln-ship 1.2s ease-in-out infinite; }
@keyframes ln-ship { 0%, 100% { transform: translateX(0); opacity: 0.85; } 50% { transform: translateX(6px); opacity: 1; } }
.mbv-linesvg .ln-wake { stroke: rgba(151, 160, 171, 0.5); stroke-width: 1; stroke-dasharray: 6 5; fill: none; }
html[data-theme="day"] .mbv-linesvg .ln-wake { stroke: rgba(138, 130, 114, 0.5); }
.mbv-linesvg .ln-rail { stroke: rgba(153, 162, 173, 0.32); stroke-width: 1; fill: none; }
html[data-theme="day"] .mbv-linesvg .ln-rail { stroke: rgba(107, 100, 85, 0.35); }
.mbv-linesvg .ln-estop { fill: none; stroke: #c93842; stroke-width: 1.5; }
.mbv-linesvg .ln-estop-core { fill: #c93842; stroke: none; }
html[data-theme="day"] .mbv-linesvg .ln-estop { stroke: #a92f38; }
html[data-theme="day"] .mbv-linesvg .ln-estop-core { fill: #a92f38; }
.ln-device.is-s4 .ln-dev-4 { opacity: 1; animation: ln-stamp .45s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes ln-stamp { from { opacity: 0; transform: scale(1.9); } 70% { opacity: 1; } to { opacity: 1; transform: scale(1); } }
@keyframes ln-flow { to { stroke-dashoffset: -18; } }
@keyframes ln-sense { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes ln-floaty { to { transform: translateY(20px); } }
@keyframes ln-kick {
  0%, 8% { transform: translate(0, 0); opacity: 0; }
  14% { opacity: 1; }
  55% { transform: translate(0, 0); opacity: 1; }
  82% { transform: translate(-28px, 10px); opacity: 1; }
  88%, 100% { transform: translate(-28px, 10px); opacity: 0; }
}
/* 日主题产线（纸面车间） */
html[data-theme="day"] .mbv-linesvg .ln-frame  { stroke: #6b6455; }
html[data-theme="day"] .mbv-linesvg .ln-frame2 { stroke: #8a8272; }
html[data-theme="day"] .mbv-linesvg .ln-floor  { stroke: #a89e88; }
html[data-theme="day"] .mbv-linesvg .ln-txt    { fill: #4a463f; }
html[data-theme="day"] .mbv-linesvg .ln-belt   { stroke: #c25414; }
html[data-theme="day"] .mbv-linesvg .ln-acc    { stroke: #8a8272; }
html[data-theme="day"] .mbv-linesvg .ln-acc polygon { fill: #8a8272; fill-opacity: 0.14; }
html[data-theme="day"] .mbv-linesvg .ln-ok     { fill: #8a8272; }
html[data-theme="day"] .mbv-linesvg .ln-scan   { stroke: #c25414; }
html[data-theme="day"] .mbv-linesvg .ln-data   { stroke: #6f8ba3; }
html[data-theme="day"] .mbv-linesvg .ln-sensorbeam { stroke: #c25414; }
html[data-theme="day"] .mbv-linesvg .ln-ng     { fill: #c25414; }
html[data-theme="day"] .mbv-linesvg .ln-juice { fill: rgba(194, 84, 20, 0.34); }
html[data-theme="day"] .mbv-linesvg .ln-pass  { stroke: #9a7a0e; }
html[data-theme="day"] .ln-stn.is-on .ln-txt { fill: #c25414; }
html[data-theme="day"] .ln-stn.is-on .ln-ok, html[data-theme="day"] .ln-dispatch.is-on .ln-ok { fill: #9a7a0e; }
html[data-theme="day"] .ln-stn.is-on .ln-acc, html[data-theme="day"] .ln-dispatch.is-on .ln-acc { stroke: #c25414; }
html[data-theme="day"] .ln-stn.is-on .ln-acc polygon, html[data-theme="day"] .ln-dispatch.is-on .ln-acc polygon,
html[data-theme="day"] .ln-stn.is-on .ln-acc rect, html[data-theme="day"] .ln-dispatch.is-on .ln-acc rect { fill: #c25414; fill-opacity: 0.5; }
/* 矮屏适配：压缩文案保证一屏装下（v0.3.56 修复历史残块：原孤儿规则片段污染后续选择器，
   导致 .mbv-calib [data-step] 基础规则被整条丢弃——l1/l3 无滚动浮现的直接根因） */
/* v0.3.67 三明治布局（l1 / 产线 / l2+l3+数据）高度预算分档；v0.3.70 文字降级换动画空间 */
@media (max-height: 1020px) {
  .mbv-calib__stage { gap: 0.7rem; }
  .mbv-linesvg { max-height: 52vh; }
  .mbv-calib__tail .mbv-doctrine__lines { font-size: clamp(20px, 2.4vw, 34px); }
}
@media (max-height: 880px) {
  .mbv-doctrine__lines { font-size: clamp(26px, 3.2vw, 44px); }
  .mbv-calib__stage { gap: 0.45rem; }
  .mbv-linesvg { max-height: 46vh; }
  .mbv-calib__tail .mbv-doctrine__lines { font-size: clamp(18px, 2.2vw, 30px); }
}

/* v0.3.70 下块注脚化：l1 大宣言，l2/l3 缩一档给产线让高度 */
.mbv-calib__tail .mbv-doctrine__lines { font-size: clamp(22px, 2.7vw, 40px); }

/* 阶段浮现 */
.mbv-calib [data-step] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .55s ease, transform .55s ease;
}
.mbv-calib [data-step].is-on { opacity: 1; transform: none; }

/* 三行大字（沿用字体体系） */
.mbv-doctrine__lines {
  display: flex; flex-direction: column; gap: 2px;
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(30px, 3.8vw, 56px); line-height: 1.06; letter-spacing: -0.015em;
}
.mbv-doctrine__l1 { color: var(--mbv-on-surface, #e0e2e9); }
html[data-theme="day"] .mbv-doctrine__l1 { color: #1b1f24; }
/* 第二行：擦入（clip-path），不吃通用 translate */
.mbv-doctrine__l2[data-step] {
  opacity: 1 !important; transform: none !important;
  color: transparent; -webkit-text-stroke: 1.5px rgba(224,226,233,0.62);
  clip-path: inset(-10% 100% -10% 0);
  transition: clip-path .8s cubic-bezier(.6,0,.2,1);
}
.mbv-doctrine__l2[data-step].is-on { clip-path: inset(-10% 0 -10% 0); }
html[data-theme="day"] .mbv-doctrine__l2[data-step] { -webkit-text-stroke: 1.5px rgba(27,31,36,0.55); }
.mbv-doctrine__l3 { color: var(--mbv-primary, #f26a1b); }
html[data-theme="day"] .mbv-doctrine__l3 { color: #c25414; }

/* 移动端：取消钉住，自然流 + IO 浮现 */
@media (max-width: 760px) {
  .mbv-calib__track { height: auto; }
  .mbv-calib__stage {
    position: static; height: auto;
    flex-direction: column; align-items: stretch; gap: 2rem;
    padding: 2.5rem 1.25rem;
  }
  .mbv-calib__content { padding: 0; }
  .mbv-calib__line { width: 100%; }
  .mbv-linesvg { max-height: none; }
  .mbv-calib__dial { width: 130px; align-self: center; }
  .mbv-doctrine__lines { font-size: clamp(30px, 9vw, 44px); }
}

/* ═══ v0.3.71 NOMENCLATURE 地理命名带（LINEUP→DOCTRINE 换挡）═══ */
.mbv-trailrow {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 4px 12px; scrollbar-width: thin;
}
.mbv-trailrow::-webkit-scrollbar { height: 6px; }
.mbv-trailcard {
  flex: 0 0 212px; scroll-snap-align: start; position: relative;
  display: flex; flex-direction: column; gap: 7px;
  padding: 18px 16px 14px; text-decoration: none;
  border: 1px solid var(--mbv-hairline); background: var(--mbv-surface-container);
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.mbv-trailcard::after {
  content: '+'; position: absolute; top: 6px; right: 9px;
  color: var(--mbv-secondary); font: 700 10px var(--mbv-font-mono);
}
.mbv-trailcard:hover { border-color: var(--mbv-primary); transform: translateY(-3px); background: var(--mbv-surface-container-high); }
.mbv-trailcard__geo {
  font-family: var(--mbv-font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--mbv-secondary);
}
.mbv-trailcard__stat { font-family: var(--mbv-font-mono); font-size: 11px; color: var(--mbv-on-surface-variant); }
.mbv-trailcard__root {
  font-family: var(--mbv-font-display); font-weight: 800; text-transform: uppercase;
  font-size: 30px; line-height: 0.95; letter-spacing: -0.01em; color: var(--mbv-on-surface);
  margin-top: 2px; overflow-wrap: anywhere;
}
.mbv-trailcard__n {
  font-family: var(--mbv-font-mono); font-weight: 700; font-size: 12px;
  color: var(--mbv-primary); border-top: 1px dashed var(--mbv-hairline); padding-top: 7px; margin-top: auto;
}

/* v0.3.52 POSTER-02 迁入 About 故事页 */
.mbv-about-poster {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin: 0 auto 1.5rem; max-width: 640px;
}
.mbv-about-poster img {
  display: block; width: 100%;
  border: 1px solid var(--mbv-hairline-strong, #8a939e);
}
html[data-theme="day"] .mbv-about-poster img {
  box-shadow: 0 18px 44px rgba(27,31,36,0.28);
}


/* ═══ v0.3.90 PDP 移动端减法：≤760px 隐藏纯装饰层（铆钉/状态条/瞄准圈/浮动角标/QC条/MicroSpecs）═══ */
@media (max-width: 760px) {
  .mbv-m-hide { display: none !important; }
  /* 主图面板内边距与间距同步收紧 */
  .mbv-forge-active .single-product .relative.bg-surface-container-low.p-space-md { padding: 10px; }
}
