/* ==========================================================================
   赢彩科技 · 手机版增量样式
   在 main.css / manual.css 之后加载，只做移动端增强，不改桌面端
   ========================================================================== */

:root {
  --m-bar-h: 62px;
}

html { -webkit-text-size-adjust: 100%; }
body {
  font-size: 16px;
  padding-bottom: calc(var(--m-bar-h) + env(safe-area-inset-bottom, 0px));
  -webkit-tap-highlight-color: transparent;
}

/* ---------- 防横向溢出 ---------- */
html, body { max-width: 100%; overflow-x: hidden; }
img, video, iframe, embed, object { max-width: 100%; height: auto; }
.hero-visual, .hero-visual > * { max-width: 100%; }
.table-wrap, pre, code { max-width: 100%; }

/* 主题色条不占额外高度 */
.topbar { display: none; }

/* ---------- 头部 ---------- */
.site-header .header-inner { min-height: 56px; }
.brand-mark { width: 34px; height: 34px; font-size: 1rem; }
.brand-name { font-size: 1.02rem; }
.nav-toggle { width: 42px; height: 42px; }
.nav a { padding: 15px 14px; font-size: 1.02rem; border-radius: 10px; }

/* ---------- 首屏 ---------- */
.hero { padding: 34px 0 40px; }
.hero h1, .hero-title { font-size: 1.9rem !important; line-height: 1.32; }
.hero p.lede, .hero .lede { font-size: 1rem; line-height: 1.75; }
.hero-stats { gap: 14px; }
.hero-visual { margin-top: 22px; }
.float-badge-1, .float-badge-2 { font-size: .78rem; }

/* ---------- 通用间距与按钮 ---------- */
.section { padding: 40px 0; }
.section-sm { padding: 32px 0; }
.wrap { padding-inline: 16px; }
h2, .section-title { font-size: 1.35rem !important; line-height: 1.4; }
h3 { font-size: 1.1rem; }
.eyebrow { font-size: .74rem; }

.btn {
  min-height: 46px; padding: 12px 20px;
  font-size: .98rem; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-sm { min-height: 40px; padding: 9px 15px; font-size: .9rem; }
.hero-actions, .cta-band-actions { gap: 10px; }
.hero-actions .btn { width: 100%; }

/* ---------- 卡片与列表 ---------- */
.card, .product-card, .faq-item, .article-card {
  border-radius: 14px;
}
.product-card .pc-body, .card-body { padding: 16px; }
.grid-2, .grid-3, .grid-4, .product-grid { grid-template-columns: 1fr !important; gap: 14px; }
.product-grid { gap: 16px; }

/* ---------- 表格：允许横向滑动，不撑破页面 ---------- */
.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-radius: 12px;
}
table.data { font-size: .84rem; }
table.data th, table.data td { padding: 10px 12px; }
.mn-table table.data { min-width: 460px; }

/* ---------- 内联多栏布局：窄屏强制单列 ---------- */
@media (max-width: 700px) {
  [style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; gap: 28px !important; }
  [style*="grid-template-columns"] > * { min-width: 0; }
}

/* ---------- 产品价格表：窄屏变卡片 ---------- */
.m-price-list { display: grid; gap: 12px; }
.m-price-card {
  background: #fff; border: 1px solid var(--ink-200);
  border-radius: 14px; padding: 14px 16px;
}
.m-price-card .r1 {
  display: flex; justify-content: space-between;
  align-items: baseline; gap: 14px;
}
.m-price-card .nm { font-weight: 700; font-size: .95rem; line-height: 1.55; }
.m-price-card .nm a { color: inherit; text-decoration: none; }
.m-price-card .pr {
  flex-shrink: 0; color: var(--gold-600, #b7791f);
  font-weight: 800; font-size: 1.3rem;
  font-variant-numeric: tabular-nums;
}
.m-price-card .pr small { font-size: .68rem; color: var(--ink-500, #6b7280); font-weight: 600; margin-left: 2px; }
.m-price-card .r2 {
  display: flex; gap: 8px; align-items: center;
  flex-wrap: wrap; margin-top: 9px;
}
.m-price-card .r2 .trial { font-size: .78rem; color: var(--ink-500, #6b7280); }
.m-price-card .scope {
  margin-top: 8px; padding-top: 8px;
  border-top: 1px dashed var(--ink-150, #e5e7eb);
  font-size: .82rem; color: var(--ink-500, #6b7280); line-height: 1.7;
}
@media (max-width: 700px) {
  .m-tbl-collapse { display: none; }
}
@media (min-width: 701px) {
  .m-price-list { display: none; }
}

/* ---------- 说明书页 ---------- */
.docs-menu-bar { padding: 10px 0; }
.docs-menu-bar .filter-bar {
  gap: 6px; padding: 6px;
  flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start !important;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.docs-menu-bar .filter-bar::-webkit-scrollbar { display: none; }
.docs-menu-bar .filter-chip { padding: 8px 13px; font-size: .84rem; }
.docs-shell { padding: 18px 0 0; }
.docs-side { border-radius: 12px; }
.docs-nav { gap: 4px; padding: 8px 12px 12px; }
.dn-leaf, .dn-group-head { min-height: 42px; }
.docs-body, .mn-chapter { font-size: 1rem; }
.mn-soft-shot img { border-radius: 10px; }
.mn-table table.data { min-width: 460px; }

/* 说明书胶囊菜单（中心页） */
.mc-menu { border-radius: 12px; }
.mc-menu .filter-chip { padding: 9px 14px; font-size: .88rem; }

/* ---------- 页脚 ---------- */
.site-footer { padding: 34px 0 calc(var(--m-bar-h) + 26px); }
.footer-top { gap: 24px; }
.footer-col h4 { font-size: .95rem; margin-bottom: 10px; }
.footer-col li { font-size: .88rem; line-height: 2; }
.footer-brand p { font-size: .86rem; line-height: 1.75; }
.footer-bottom { font-size: .74rem; line-height: 1.9; flex-direction: column; gap: 8px; }

/* ---------- 返回顶部浮钮：抬高到快捷栏上方，避免遮挡 ---------- */
.to-top, .mn-to-top {
  bottom: calc(var(--m-bar-h) + 16px + env(safe-area-inset-bottom, 0px)) !important;
  right: 14px !important;
}

/* ---------- 手机端下载提示条 ---------- */
.m-dl-note {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 0 0 22px; padding: 16px 16px 16px 14px;
  background: #fff8e6; border: 1px solid #f2d08a;
  border-radius: 14px;
}
.m-dl-note .ico {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
  background: #ffcf4d; color: #6b4b00;
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.m-dl-note > div > b:first-child { display: block; font-size: .98rem; color: #6b4b00; margin-bottom: 4px; }
.m-dl-note p { margin: 0; font-size: .88rem; line-height: 1.7; color: #7a5c12; }

/* ---------- 底部快捷栏 ---------- */
.m-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-top: 1px solid var(--ink-200, #e5e7eb);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -2px 12px rgba(10, 36, 80, .07);
}
.m-bar a, .m-bar button {
  appearance: none; border: 0; background: none; font: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; height: var(--m-bar-h); color: var(--ink-600, #4b5563);
  font-size: .7rem; text-decoration: none; cursor: pointer;
}
.m-bar svg { width: 21px; height: 21px; }
.m-bar .on { color: var(--brand-600, #1d4ed8); font-weight: 700; }

/* ---------- 下载提示弹窗 ---------- */
.m-modal[hidden] { display: none !important; }
.m-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 22px; background: rgba(6, 24, 58, .55);
  opacity: 0; transition: opacity .18s ease;
}
.m-modal.show { opacity: 1; }
.m-modal:not(.show) { pointer-events: none; }
.m-modal-card {
  width: 100%; max-width: 360px; background: #fff; border-radius: 18px;
  padding: 24px 20px 18px; text-align: center;
  box-shadow: 0 18px 48px rgba(6, 24, 58, .3);
  transform: translateY(10px); transition: transform .18s ease;
}
.m-modal.show .m-modal-card { transform: translateY(0); }
.m-modal-ico {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%;
  background: #fff4d6; color: #a06a00;
  display: flex; align-items: center; justify-content: center;
}
.m-modal-ico svg { width: 26px; height: 26px; }
.m-modal h3 { margin: 0 0 8px; font-size: 1.06rem; color: var(--ink-900, #111827); }
.m-modal p { margin: 0 0 18px; font-size: .9rem; line-height: 1.75; color: var(--ink-600, #4b5563); text-align: left; }
.m-modal p b { color: var(--brand-700, #1e40af); }
.m-modal-actions { display: grid; gap: 9px; }
.m-modal-actions .btn { width: 100%; }
.m-toast {
  position: fixed; left: 50%; bottom: calc(var(--m-bar-h) + 22px);
  transform: translate(-50%, 8px); z-index: 220;
  background: rgba(17, 24, 39, .92); color: #fff;
  padding: 10px 18px; border-radius: 999px; font-size: .84rem;
  opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease;
}
.m-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 加微信弹窗 ---------- */
.m-wx .m-modal-card { text-align: center; }
.m-wx-qr {
  display: block; width: 210px; height: 210px; margin: 14px auto 10px;
  padding: 8px; box-sizing: content-box; background: #fff;
  border: 1px solid var(--ink-200, #e5e7eb); border-radius: 14px;
}
.m-wx-tip { margin: 0 0 4px; font-size: .88rem; color: var(--ink-600, #6b7280); }

/* 手机版页脚：访问电脑版入口 */
.m-pc-entry { text-align: center; padding: 16px 0 6px; }
.m-pc-entry a { font-size: .84rem; color: #9aa3af; text-decoration: underline; }
