/* ===== 手机端 ===== */
html.mobile { scrollbar-width: auto; }
html.mb-nav-open, html.mb-nav-open body { overflow: hidden; }
.mobile body { overflow-x: clip; }
.mobile .viewport { display: none; }

/* 顶部悬浮导航栏 + 内置紧凑多语言切换 + 独立悬浮菜单抽屉 */
.mb-backdrop {
  position: fixed;
  inset: 0;
  z-index: 19;
  background: rgba(24, 16, 12, 0.34);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease;
}
.mb-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mb-bar {
  position: fixed;
  z-index: 20;
  top: calc(var(--mb-admin-offset, 0px) + max(8px, env(safe-area-inset-top)));
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 7px 6px 14px;
  border-radius: 999px;
  background: rgba(252, 246, 236, 0.88);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(52, 34, 27, 0.13);
}
.mb-logo {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}
.mb-logo img {
  display: block;
  width: 88px;
  height: auto;
}
.mb-bar-right {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
}

/* 顶栏内置紧凑多语言切换胶囊 */
.mb-bar-lang,
.mb-foot-lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(115, 84, 64, 0.09);
  border: 1px solid rgba(115, 84, 64, 0.08);
}
.mb-bar-lang a,
.mb-foot-lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border-radius: 999px;
  color: #5b4d44;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}
.mb-bar-lang a.is-active,
.mb-foot-lang a.is-active {
  background: #961e20;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(150, 30, 32, 0.25);
}

.mb-toggle {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #961e20;
  display: grid;
  place-content: center;
  gap: 5px;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(150, 30, 32, 0.26);
  transition: transform .18s ease, background-color .18s ease;
}
.mb-toggle:active { transform: scale(.94); }
.mb-toggle i {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .26s ease;
}
.mb-open .mb-toggle i:first-child { transform: translateY(3.5px) rotate(45deg); }
.mb-open .mb-toggle i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* 独立悬浮菜单面板（不拉扯顶栏胶囊） */
.mb-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  padding: 10px 12px 14px;
  border-radius: 24px;
  background: rgba(252, 246, 236, 0.98);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 48px rgba(42, 24, 16, 0.2);
  max-height: calc(100dvh - 88px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.985);
  transform-origin: top center;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}
.mb-open .mb-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.mb-menu-links {
  display: grid;
  gap: 2px;
}
.mb-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  color: #1c1511;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: background-color .16s ease, color .16s ease;
}
.mb-menu-item:active {
  background: rgba(150, 30, 32, 0.08);
}
.mb-menu-item[aria-current] {
  background: rgba(150, 30, 32, 0.1);
  color: #961e20 !important;
  font-weight: 700;
}
.mb-menu-arrow {
  font-size: 20px;
  line-height: 1;
  color: #9e8c7f;
  font-weight: 400;
}
.mb-menu-item[aria-current] .mb-menu-arrow {
  color: #961e20;
}

/* 菜单内三等分分段式多语言切换器 */
.mb-menu-lang {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(115, 84, 64, 0.14);
}
.mb-lang {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(115, 84, 64, 0.08);
}
.mb-lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 8px;
  border-radius: 10px;
  color: #5b4d44;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease;
}
.mb-lang a.is-active {
  background: #961e20;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(150, 30, 32, 0.24);
}

.mb-menu a.mb-menu-cta {
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  box-shadow: 0 8px 20px rgba(150, 30, 32, 0.24);
}

/* 基础排版与按钮 */
.mb h1, .mb h2, .mb h3, .mb p { margin: 0; }
.mb-h1 { font-size: clamp(28px, 7.6vw, 38px); line-height: 1.16; font-weight: 700; letter-spacing: -.025em; }
.mb-h2 { font-size: 24px; line-height: 1.24; font-weight: 700; letter-spacing: -.018em; }
.mb-h3 { font-size: 18px; line-height: 1.36; font-weight: 700; }
.mb-p { font-size: 15px; line-height: 1.6; color: #4f443c; }
.mb-small { font-size: 13px; line-height: 1.5; color: #6a5a4e; }
.mb a { color: inherit; text-decoration: none; }

.mb-text-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  padding: 4px 0;
  color: #961e20 !important;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
}
.mb-text-link-arrow {
  font-size: 16px;
  line-height: 1;
  transition: transform .18s ease;
}
.mb-text-link:active .mb-text-link-arrow {
  transform: translateX(3px);
}

.mb-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: #7d181a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 4px 12px rgba(74, 38, 20, 0.08);
}

.mb a.mb-btn,
.mb-menu a.mb-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: #961e20;
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(150, 30, 32, 0.22);
  transition: transform .18s ease, background-color .18s ease;
}
.mb a.mb-btn.mb-btn--secondary {
  background: rgba(255, 250, 242, 0.86);
  color: #1c1511;
  border: 1px solid rgba(150, 30, 32, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 16px rgba(52, 34, 27, 0.08);
}
.mb a.mb-btn:active,
.mb-menu a.mb-btn:active { transform: scale(.96); }
.mb-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* 首屏 Hero：文字、副标题、按钮与统计卡片直接覆盖在首屏背景图上 */
.mb-visual {
  position: relative;
  height: 62svh;
  min-height: 380px;
  overflow: hidden;
  border-radius: 0 0 32px 32px;
}
.mb-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.mb-hero--overlay {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: max(540px, 76svh);
  overflow: hidden;
  border-radius: 0 0 32px 32px;
  background: #faf3e8;
}
.mb-hero--overlay .mb-visual {
  position: absolute;
  inset: 0;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  z-index: 0;
}
.mb-hero--overlay .mb-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(250, 243, 232, 0.10) 0%,
    rgba(250, 243, 232, 0.02) 26%,
    rgba(250, 243, 232, 0.50) 52%,
    rgba(250, 243, 232, 0.88) 76%,
    #faf3e8 100%
  );
}
.mb-hero--overlay .mb-hero-body {
  position: relative;
  z-index: 1;
  padding: 205px 18px 22px;
  gap: 12px;
}
.mb-hero--overlay .mb-h1 {
  color: #14100d;
  text-shadow: 0 1px 16px rgba(250, 243, 232, 0.72);
}
.mb-hero--overlay .mb-p {
  color: #2c231c;
  font-weight: 500;
}
.mb-hero--overlay .mb-actions {
  margin-top: 4px;
}
.mb-hero--overlay .mb-actions .mb-btn {
  flex: 1 1 auto;
  min-width: 140px;
}

/* 首页首屏底部的 3 列统计数据玻璃条 */
.mb-hero-stats {
  position: relative;
  z-index: 1;
  margin: 0 14px 16px;
  padding: 14px 6px;
  border-radius: 22px;
  background: rgba(255, 250, 242, 0.80);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(86, 47, 26, 0.10);
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 !important;
}
.mb-hero-stats > .mb-stack {
  padding: 2px 8px;
  gap: 3px;
  align-items: center;
  text-align: center;
}
.mb-hero-stats > .mb-stack + .mb-stack {
  border-left: 1px solid rgba(115, 84, 64, 0.14);
}
.mb-hero-stats .mb-h1,
.mb-hero-stats .mb-h2,
.mb-hero-stats .mb-h3 {
  font-size: clamp(19px, 5.4vw, 24px);
  line-height: 1.15;
  color: #961e20;
  font-weight: 800;
}
.mb-hero-stats .mb-p,
.mb-hero-stats .mb-small {
  font-size: 11.5px;
  line-height: 1.35;
  color: #54463d;
}

.mb-hero-plain { padding-top: 84px; }
.mb-hero-body, .mb-body { display: flex; flex-direction: column; gap: 14px; padding: 24px 16px 0; }
.mb-body { padding-top: 26px; gap: 14px; }
.mb-body > h2 { margin-top: 18px; }
.mb-body > .mb-badge { margin-top: 14px; }

/* 内容卡片 */
.mb-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 16px;
  border-radius: 22px;
  background: #fffaf2;
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 26px rgba(86, 47, 26, 0.08);
  min-width: 0;
}
.mb-card .mb-card { padding: 14px 14px; border-radius: 16px; background: #f6ede0; border-color: transparent; box-shadow: none; }
.mb-card.mb-dark { background: linear-gradient(130deg, #7d2526, #5f0f10); border-color: rgba(255,255,255,.16); color: #fff9ef; }
.mb-dark .mb-p, .mb-dark .mb-small { color: #f3ddd0; }
.mb-dark .mb-card:not(.mb-dark) { background: rgba(255, 255, 255, 0.1); }
.mb .mb-dark a.mb-btn { background: #fbf4e9; color: #111; box-shadow: 0 8px 18px rgba(24, 6, 5, 0.22); }

/* A1–A5 单行紧凑步骤条 */
.mb-card.mb-step-row {
  flex-direction: row !important;
  align-items: center;
  gap: 12px;
  padding: 11px 14px !important;
  border-radius: 15px !important;
  background: #f6ede0 !important;
  box-shadow: none;
}
.mb-step-code {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  padding: 0 8px;
  border-radius: 9px;
  background: rgba(150, 30, 32, 0.11);
  color: #961e20;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .02em;
}
.mb-step-title {
  flex: 1;
  min-width: 0;
  font-size: 15.5px;
  font-weight: 700;
  color: #191310;
  line-height: 1.3;
}
.mb-step-sub {
  flex: none;
  font-size: 12.5px;
  font-weight: 500;
  color: #7c6b5f;
}

/* 2 列紧凑卡片网格（案例数据深红卡、NEX Brain 2×2 功能卡） */
.mb-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.mb-grid-2 > .mb-card {
  padding: 16px 14px;
  border-radius: 20px;
  gap: 6px;
}
.mb-grid-2 .mb-h1 {
  font-size: clamp(28px, 8vw, 36px);
  line-height: 1.08;
}
.mb-grid-2 .mb-h3 {
  font-size: 16px;
  line-height: 1.3;
}
.mb-grid-2 .mb-p,
.mb-grid-2 .mb-small {
  font-size: 12.5px;
  line-height: 1.45;
}

/* 01–05 编号索引 2 列网格（奇数末项自动横跨整行） */
.mb-num-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.mb-num-card {
  padding: 14px !important;
  border-radius: 18px !important;
  gap: 8px !important;
}
.mb-num-grid > .mb-num-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 12px !important;
}
.mb-num-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-width: 30px;
  height: 24px;
  padding: 0 7px;
  border-radius: 8px;
  background: rgba(150, 30, 32, 0.09);
  color: #961e20;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}
.mb-num-grid > .mb-num-card:last-child:nth-child(odd) .mb-num-code {
  align-self: center;
}
.mb-num-label {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.32;
  color: #1b1511;
}

/* 横向滑动照片卡片优化 */
.mb-img { display: block; width: 100%; height: auto; border-radius: 16px; }
.mb-swipe { display: flex; gap: 12px; margin: 0 -16px; padding: 2px 16px 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
.mb-swipe > * { flex: 0 0 72%; scroll-snap-align: start; }
.mb-swipe > .mb-card { padding: 10px; border-radius: 22px; gap: 8px; }
.mb-swipe > .mb-img { height: 320px; object-fit: cover; }
.mb-photo-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 6px 2px;
}
.mb-photo-time {
  font-size: 14.5px;
  font-weight: 700;
  color: #961e20;
}
.mb-photo-scene {
  font-size: 13.5px;
  font-weight: 600;
  color: #3a2f28;
}
.mb-logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: center; }
.mb-logo-img { width: 100%; max-width: 100px; height: 54px; object-fit: contain; justify-self: center; }

/* 移动端专项页脚：暖色玻璃卡片 + Logo/多语言行 + 2 列导航网格 + 邮箱胶囊 + 版权行 */
.mb-foot {
  margin-top: 44px;
  padding: 0 14px max(28px, env(safe-area-inset-bottom));
}
.mb-foot-card {
  display: flex;
  flex-direction: column;
  padding: 20px 18px 16px;
  border-radius: 26px;
  background: rgba(255, 250, 242, 0.90);
  border: 1px solid rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(76, 42, 25, 0.08);
}
.mb-foot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(115, 84, 64, 0.12);
}
.mb-foot-logo {
  display: inline-flex;
  align-items: center;
}
.mb-foot-logo-img {
  display: block;
  width: 96px;
  height: auto;
}
.mb-foot-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 12px;
  padding: 14px 0 12px;
}
.mb-foot-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  font-size: 14.5px;
  font-weight: 500;
  color: #2f251e;
  border-radius: 10px;
  transition: color .16s ease;
}
.mb-foot-link:active {
  color: #961e20;
}
.mb-foot-email {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: 4px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(150, 30, 32, 0.07);
  color: #961e20 !important;
  font-size: 13.5px;
  font-weight: 600;
  word-break: break-all;
}
.mb-foot-bottom {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(115, 84, 64, 0.12);
}
.mb-foot-copy {
  font-size: 12px;
  line-height: 1.5;
  color: #7c6b5f;
}

.mb-brief { --sn-red: #961e20; margin-block-end: 16px; }
.mb-brief .brief-desk { position: sticky; top: 74px; z-index: 2; background: #faf3e8; padding-bottom: 10px; }
.mb-brief .brief-steps > li, .mb-brief .brief-steps > li:last-child { height: auto; min-height: 44svh; }
.mb-brief .brief-caption h3 { font-size: 28px; }
.mb-brief .brief-caption > p:last-child { font-size: 16px; }
.mb-brief .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

@media (max-width: 900px), (pointer: coarse) and (max-width: 1100px) { .viewport { visibility: hidden; } }
.mb-stack { display: flex; flex-direction: column; gap: 4px; }
.mb-swipe .mb-img { height: 340px; object-fit: cover; }

/* 平板和手机横屏：同一套单列版，内容限宽居中 */
@media (min-width: 600px) {
  .mb-bar { left: 50%; right: auto; width: min(640px, calc(100% - 32px)); transform: translateX(-50%); }
  .mb-hero--overlay { min-height: max(540px, 68svh); }
  .mb-hero--overlay .mb-hero-body,
  .mb-hero-stats,
  .mb-hero-body,
  .mb-body,
  .mb-foot { width: 100%; max-width: 640px; margin-inline: auto; }
  .mb-swipe > * { flex-basis: 44%; }
  .mb-brief .brief-desk { max-width: min(100%, 70svh); margin-inline: auto; }
}
@media (max-width: 350px) {
  .mb-logo img { width: 78px; }
  .mb-bar-lang a { min-width: 24px; padding: 0 5px; font-size: 10.5px; }
}
@media (max-height: 500px) {
  .mb-hero--overlay { min-height: 86svh; }
  .mb-hero--overlay .mb-hero-body { padding-top: 110px; }
  .mb-menu { max-height: calc(100svh - 76px); overflow-y: auto; }
}
