/* ==========================================================================
   手机站专用样式（/m/）—— 不依赖媒体查询，任何宽度都按单列手机布局呈现
   加载顺序在 style.css 之后，用同等特异性的选择器覆盖
   ========================================================================== */

/* ---------- 基础 ---------- */
body.m-site {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  background: var(--white);
}
.m-site .container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}

/* 去掉重装饰，手机端省性能 */
.m-site .mesh,
.m-site .rings,
.m-site .hero-bg .glow { display: none !important; }

/* ---------- 手机页头 ---------- */
.m-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.m-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--green-900);
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.m-brand img { display: block; width: 30px; height: 26px; object-fit: contain; }

.m-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  margin-right: -8px;
  padding: 0 9px;
  border: 0;
  background: none;
  cursor: pointer;
}
.m-menu-btn span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--green-800);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.m-site.m-menu-open .m-menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.m-site.m-menu-open .m-menu-btn span:nth-child(2) { opacity: 0; }
.m-site.m-menu-open .m-menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.m-menu {
  position: fixed;
  top: 56px; left: 0; right: 0;
  z-index: 99;
  display: none;
  flex-direction: column;
  padding: 8px 0 14px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(14, 51, 47, 0.14);
}
.m-site.m-menu-open .m-menu { display: flex; }
.m-menu a {
  padding: 14px 22px;
  color: var(--green-900);
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft, rgba(14, 51, 47, 0.06));
}
.m-menu a:last-child { border-bottom: 0; }
.m-menu .m-pc-link { color: var(--green-600); font-size: 14px; }

/* ---------- 首屏 ---------- */
.m-site .hero {
  min-height: 0 !important;
  padding: 88px 0 46px !important;
}
.m-site .hero-scroll { display: none !important; }
.m-site .hero-inner { padding: 0 18px; }
.m-site .hero-grid { display: block !important; }
.m-site .hero h1 { font-size: 33px !important; line-height: 1.24 !important; }
.m-site .hero-lead { font-size: 15px !important; line-height: 1.85 !important; }
.m-site .hero-tag { font-size: 11.5px; padding: 8px 14px; }
.m-site .hero-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.m-site .hero-actions .btn { width: 100%; justify-content: center; }
.m-site .hero-card { margin-top: 30px; padding: 22px 18px; }
.m-site .hero-metrics {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px !important;
  margin-top: 34px !important;
}
.m-site .hero-metrics .metric strong,
.m-site .hero-metrics .metric .n { font-size: 26px; }

/* ---------- 区块节奏 ---------- */
.m-site .section { padding: 52px 0 !important; }
.m-site .section-tight { padding: 38px 0 !important; }
.m-site .section-title { font-size: 25px !important; line-height: 1.32 !important; }
.m-site .section-sub { font-size: 15px !important; line-height: 1.85 !important; }
.m-site .head-row { display: block !important; margin-bottom: 26px !important; }
.m-site .head-row > .btn { margin-top: 18px; }
.m-site .eyebrow { font-size: 11px; }

/* ---------- 网格一律单列 ---------- */
.m-site .grid,
.m-site .g-2,
.m-site .g-3,
.m-site .g-4,
.m-site .cols-3 { display: block !important; }
.m-site .grid > * + * { margin-top: 16px !important; }
.m-site .about-grid { display: block !important; }
.m-site .footer-grid { display: block !important; }
.m-site .footer-col { margin-top: 26px; }
.m-site .cta-inner { display: block !important; text-align: left; }
.m-site .cta-actions { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.m-site .cta-actions .btn { width: 100%; justify-content: center; }

/* ---------- 工艺区块：图在上、文字在下 ---------- */
.m-site .process-block {
  display: block !important;
  gap: 0 !important;
}
.m-site .process-visual { margin-bottom: 22px; }
.m-site .process-block.is-reverse .process-visual { order: 0; }
.m-site .process-index { font-size: 30px; }

/* ---------- 数据条 ---------- */
.m-site .stat-strip {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 14px !important;
}
.m-site .stat-strip > *:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ---------- 图片组：横向滑动（仅限纯图片组） ---------- */
.m-site .photo-grid {
  display: flex !important;
  gap: 12px !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  margin-right: -18px;
  padding-right: 18px;
}
.m-site .photo-grid > * {
  flex: 0 0 84% !important;
  scroll-snap-align: start;
}
/* 产品实拍是「图 + 文字」两栏，要上下堆叠，不能当图册滑 */
.m-site .showcase-grid { display: block !important; }
.m-site .showcase-grid > * + * { margin-top: 22px; }
.m-site .photo-grid::-webkit-scrollbar,
.m-site .showcase-grid::-webkit-scrollbar { display: none; }

/* 价值链 / 步骤：保持胶囊换行 */
.m-site .chain { display: block !important; }
.m-site .chain > * + * { margin-top: 14px; }

/* ---------- 页脚 ---------- */
.m-site .site-footer { padding-top: 46px; }
.m-site .footer-bottom { display: block !important; text-align: left; }
.m-site .footer-bottom > * { display: block; margin-top: 10px; }

/* ---------- 底部快捷栏 ---------- */
.m-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 98;
  display: flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 26px rgba(14, 51, 47, 0.09);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.m-bar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 9px 4px 8px;
  color: var(--green-800);
  font-size: 11.5px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.m-bar a svg { width: 21px; height: 21px; }
.m-bar a.is-main {
  background: var(--grad-brand);
  color: var(--on-brand);
  font-weight: 700;
}

/* ---------- 视频 ---------- */
.m-site .film-frame { border-radius: 16px; }
.m-site .film-play i { width: 60px; height: 60px; }
.m-site .film-play span { font-size: 12.5px; }
.m-site .film-meta { font-size: 12.5px; gap: 8px 16px; }

/* ---------- 产品详情 ---------- */
.m-site .pd-grid { display: block !important; }
.m-site .pd-media { margin-bottom: 26px; aspect-ratio: 3 / 2.6; }
.m-site .pd-specs { grid-template-columns: 1fr !important; gap: 22px !important; }

/* ---------- 回到顶部 ---------- */
.m-site .to-top { bottom: calc(74px + env(safe-area-inset-bottom, 0px)); right: 14px; }
