/* ============================================================
   m.css —— 锋锋外贸助手 · 移动端专用样式（2026-10-21）
   ------------------------------------------------------------
   设计原则：
   1. 只在 ≤768px 生效，PC 端零影响（全部规则包在媒体查询内）
   2. 解决三大硬伤：右侧悬浮按钮遮挡正文、底部栏遮挡内容、内容溢出
   3. 移动优先的信息节奏：首屏 3 秒讲清「是什么 + 能干什么 + 怎么买」
   4. 触控目标一律 ≥44px，符合 iOS/Android 人机规范
   5. 深空蓝主色系（#0a1830 / #2f6bff）与 PC 端保持同一视觉基因
   ------------------------------------------------------------
   引入方式：comm/head.html 里 aoyun.min.css 之后加一行 m.css
   依赖：Bootstrap 4.4.1 + FontAwesome 4.7（已在 head 引入）
============================================================ */

/* ============ PC 端：隐藏所有「仅手机端」控件 ============ */
/* 这几个控件只服务于手机端的折叠/弹层交互，PC 端必须先隐藏掉，
   否则会在桌面页面里多出一个没有对应样式的裸按钮。 */
.m-story-toggle { display: none; }
.m-more-btn { display: none; }
.m-brief-text { display: none !important; }
.m-swipe-tip { display: none; }
#mFooterBar .db-mobile-item { display: flex; }
/* 用 <li> 承载的说明行（购买页「免费试用说明」）：
   这类元素用的是 li.m-dl-alt，语义是「普通说明文字」，不是按钮。
   但 .m-dl-alt 的按钮样式默认是 display:none / inline-flex，
   所以 PC 端必须显式恢复成普通列表项，否则文字会整行消失。 */
li.m-dl-alt { display: list-item; }

/* ============ 手机端首屏按钮布局 ============
   手机端首屏主按钮是「咨询领取」（下载按钮被 m-dl 规则隐藏），
   与「看演示」并排，形成「先体验 → 再购买」的完整路径。 */
@media (max-width: 768px) {
  .hero-btns { grid-template-columns: 1.35fr 1fr !important; }
  /* m-dl-alt 在首屏里要撑满第一格 */
  .hero-btns .m-dl-alt { width: 100% !important; height: 100% !important; }
}

/* ============ 全局变量与基础重置（仅移动端） ============ */
@media (max-width: 768px) {

  :root {
    --m-bg: #f5f7fb;
    --m-ink: #0a1830;
    --m-ink-2: #3f4d63;
    --m-ink-3: #7b8aa3;
    --m-line: #e6ebf3;
    --m-primary: #2f6bff;
    --m-primary-d: #1d4ed8;
    --m-accent: #ff7d00;
    --m-danger: #e63946;
    --m-radius: 16px;
    --m-shadow: 0 6px 20px rgba(10, 24, 48, .08);
    --m-shadow-lg: 0 12px 32px rgba(10, 24, 48, .14);
    /* 底部导航高度（含 iPhone 安全区），全站内容避让统一用它 */
    --m-bar-h: 58px;
  }

  /* 防止任何元素撑破视口造成横向滚动 */
  html, body { overflow-x: hidden; max-width: 100%; }
  body {
    background: var(--m-bg);
    font-size: 15px;
    line-height: 1.7;
    color: var(--m-ink-2);
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
  }
  img, video, iframe { max-width: 100%; height: auto; }

  /* 内容避让底部导航：用 padding 而非 margin，避免与已有 padding 冲突 */
  body {
    padding-bottom: calc(var(--m-bar-h) + env(safe-area-inset-bottom) + 8px) !important;
  }

  /* 滚动时更顺滑（iOS 惯性滚动） */
  .m-scroll-x {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }

  /* ============ 顶部导航：胶囊化 + 下拉面板 ============ */
  .db-header-navbar {
    background: rgba(10, 24, 48, .96) !important;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 2px 16px rgba(0, 0, 0, .18);
    padding: 8px 0;
  }
  .db-header-navbar .container { padding-left: 16px; padding-right: 16px; }
  .db-logo-img { height: 34px !important; width: auto !important; }
  .db-header-placeholder { height: 60px !important; }

  /* 汉堡按钮：加大触控区，线条更清晰 */
  .navbar-toggler {
    border: 0;
    padding: 10px 12px;
    outline: none !important;
    box-shadow: none !important;
  }
  .navbar-toggler-icon {
    width: 24px; height: 18px;
    background-image: none;
    position: relative;
    display: block;
  }
  .navbar-toggler-icon::before,
  .navbar-toggler-icon::after,
  .navbar-toggler-icon {
    border-top: 2px solid #fff;
  }
  .navbar-toggler-icon::before,
  .navbar-toggler-icon::after {
    content: "";
    position: absolute; left: 0; width: 24px;
  }
  .navbar-toggler-icon::before { top: 6px; }
  .navbar-toggler-icon::after { top: 14px; }

  /* 展开后的菜单：整宽抽屉 + 大触控行 + 分隔线 */
  .db-header-navbar .navbar-collapse {
    background: #0d1f3c;
    margin: 8px -16px -8px;
    padding: 8px 0 12px;
    border-top: 1px solid rgba(148, 163, 184, .16);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
  .db-header-navbar .navbar-nav { width: 100%; }
  .db-header-navbar .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(148, 163, 184, .1);
  }
  .db-header-navbar .nav-item:last-child { border-bottom: 0; }
  .db-header-navbar .nav-link {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px !important;
    font-size: 16px;
    color: #dbe4f0 !important;
  }
  .db-header-navbar .nav-link::after {
    content: "\f105";
    font-family: FontAwesome;
    color: #64748b;
    font-size: 16px;
  }
  .db-header-navbar .nav-item.active .nav-link {
    color: #7dd3fc !important;
    background: rgba(47, 107, 255, .12);
    font-weight: 600;
  }
  .db-header-navbar .nav-item.active .nav-link::after { color: #7dd3fc; }

  /* ============ 右侧悬浮客服组：移动端收敛（关键修复） ============
     PC 端右侧一列 4 个竖排按钮，在 390px 宽的手机上会盖住正文 1/3。
     移动端处理：整组隐藏，只保留一个右下角「悬浮球」，
     点开后向上弹出面板（电话/QQ/微信），不与底部导航打架。 */
  #db-srw-root {
    top: auto !important;
    bottom: calc(var(--m-bar-h) + env(safe-area-inset-bottom) + 14px) !important;
    right: 14px !important;
    transform: none !important;
  }
  #db-srw-root > ul { gap: 0 !important; }
  /* 除第一个（客服球）外全部隐藏，由悬浮球展开面板替代 */
  #db-srw-root li:not(.srw-top) { display: none !important; }

  .srw-tab {
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    border: 0 !important;
    background: linear-gradient(135deg, #2f6bff, #1d4ed8) !important;
    box-shadow: 0 8px 22px rgba(47, 107, 255, .45) !important;
    justify-content: center !important;
    padding: 0 !important;
  }
  .srw-tab svg { width: 22px !important; height: 22px !important; stroke: #fff !important; }
  .srw-vtext { display: none !important; }
  /* 悬浮球呼吸光环，引导点击但不刺眼 */
  .srw-tab::after {
    content: "";
    position: absolute; inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(47, 107, 255, .35);
    animation: m-pulse 2.4s ease-out infinite;
    pointer-events: none;
  }
  @keyframes m-pulse {
    0%   { transform: scale(.9); opacity: .8; }
    70%  { transform: scale(1.25); opacity: 0; }
    100% { transform: scale(1.25); opacity: 0; }
  }
  /* 展开面板：贴右下角，向上弹出 */
  .srw-panel {
    position: fixed !important;
    right: 14px !important;
    bottom: calc(var(--m-bar-h) + env(safe-area-inset-bottom) + 76px) !important;
    top: auto !important;
    left: auto !important;
    transform: translateY(10px) scale(.96) !important;
    transform-origin: bottom right !important;
    width: min(260px, calc(100vw - 28px)) !important;
    min-width: 0 !important;
    border-radius: 16px !important;
    box-shadow: var(--m-shadow-lg) !important;
  }
  .srw-panel.is-open { transform: translateY(0) scale(1) !important; }

  /* ============ 底部快捷导航条：改为 5 项全站导航（关键改造） ============
     原为「电话/在线咨询/某栏目」3 项，功能与悬浮客服重复，
     现改为真正的移动端主导航：首页 / 教程 / 购买 / 咨询 / 顶部。
     中间「购买开通」做成凸起的强调按钮，承接转化。 */
  .db-mobile-footer-bar {
    /* 必须显式 fixed：只靠 PC 样式表给的定位，一旦父级出现
       transform / filter / contain 就会退化成「相对父级定位」，
       页面一滚动整条导航就跟着跑走。这里把定位链路全部钉死。 */
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    z-index: 9990 !important;   /* 低于咨询弹层(9999)，高于正文与悬浮球 */
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-flow: column;
    height: calc(var(--m-bar-h) + env(safe-area-inset-bottom));
    padding: 0 4px env(safe-area-inset-bottom);
    align-items: stretch;
    background: rgba(255, 255, 255, .97) !important;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--m-line) !important;
    box-shadow: 0 -4px 20px rgba(10, 24, 48, .07);
    /* 隔离父级影响，杜绝被祖先 transform 破坏 fixed 语义
       注意：这里不能用 contain（它会自建包含块，反而破坏 fixed），
       只做 transform:none 清除，恢复纯粹的视口定位语义 */
    transform: none !important;
  }
  .db-mobile-item {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 0 4px !important;
    color: var(--m-ink-3) !important;
    font-size: 11px !important;
    line-height: 1.3;
    position: relative;
    transition: color .2s;
  }
  .db-mobile-item i { font-size: 19px !important; color: var(--m-ink-3) !important; transition: color .2s; }
  .db-mobile-item:active { color: var(--m-primary) !important; }
  .db-mobile-item:active i { color: var(--m-primary) !important; }

  /* 当前页高亮 */
  .db-mobile-item.is-current { color: var(--m-primary) !important; font-weight: 600; }
  .db-mobile-item.is-current i { color: var(--m-primary) !important; }

  /* 中间凸起的「购买」按钮 */
  .db-mobile-item.m-buy {
    color: var(--m-primary) !important;
    font-weight: 600;
  }
  .db-mobile-item.m-buy::before {
    content: "";
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 46px; height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2f6bff, #1d4ed8);
    box-shadow: 0 6px 18px rgba(47, 107, 255, .42);
    border: 3px solid #fff;
  }
  .db-mobile-item.m-buy i {
    position: relative;
    z-index: 1;
    color: #fff !important;
    font-size: 19px !important;
    margin-top: -14px;
    margin-bottom: 2px;
  }
  .db-mobile-item.m-buy span { position: relative; z-index: 1; margin-top: -1px; }

  /* ============ 页面通用容器与标题 ============ */
  .container { padding-left: 16px; padding-right: 16px; }

  /* 内页渐变横幅（comm/top.html）压缩高度，减少首屏浪费 */
  .ff-page-hero {
    padding: 30px 0 34px !important;
    border-radius: 0 0 22px 22px;
    margin-bottom: 4px;
  }
  .ff-page-hero-title { font-size: 1.5rem !important; }
  .ff-page-hero-sub { font-size: 13.5px !important; margin-top: 6px !important; }

  /* 统一区块标题（PC 端 .section-title 在手机上偏大） */
  .section-title { font-size: 1.42rem !important; line-height: 1.4; }
  .section-subtitle { font-size: 13.5px !important; margin-bottom: 22px !important; }
  .feature-section, .news-section, .story-section { padding: 40px 0 !important; }

  /* ============ 按钮：移动端整宽 + 44px 触控高 ============ */
  .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px !important; font-size: 15.5px; }
  .btn-lg { min-height: 50px; font-size: 16.5px; padding: 0 22px; }

  /* ============ 卡片：统一圆角、统一投影 ============ */
  .card { border-radius: var(--m-radius) !important; border: 1px solid var(--m-line) !important; box-shadow: var(--m-shadow) !important; }

  /* ============ 表格：移动端横向滚动而非撑破 ============ */
  .table-responsive { -webkit-overflow-scrolling: touch; }

  /* 正文长文：段落间距略放宽，行高更舒适 */
  .article-content p, .content p { margin-bottom: 1em; }
}

/* ============ 超小屏（≤375px，iPhone SE 等） ============ */
@media (max-width: 375px) {
  body { font-size: 14.5px; }
  .section-title { font-size: 1.3rem !important; }
}

/* ============ 横屏（手机横放）：压缩高度但保持常驻 ============
   用户明确要求「不管翻到哪个页面，底部导航都要显示」，
   所以横屏不再隐藏，只把高度收窄、字号缩小，避免占屏。 */
@media (max-width: 768px) and (orientation: landscape) and (max-height: 480px) {
  :root { --m-bar-h: 46px; }
  .db-mobile-footer-bar { height: calc(46px + env(safe-area-inset-bottom)) !important; }
  .db-mobile-item { font-size: 10px !important; padding: 2px 0 !important; }
  .db-mobile-item i { font-size: 16px !important; }
  .db-mobile-item.m-buy::before { width: 38px; height: 38px; top: -11px; }
  .db-mobile-item.m-buy i { font-size: 15px !important; margin-top: -8px; }
  body { padding-bottom: calc(46px + env(safe-area-inset-bottom) + 8px) !important; }
  #db-srw-root { bottom: calc(46px + env(safe-area-inset-bottom) + 14px) !important; }
  .srw-panel { bottom: calc(46px + env(safe-area-inset-bottom) + 68px) !important; }
}

/* ============================================================
   底部信息栏 · 移动端重构
   ------------------------------------------------------------
   问题：PC 端是三列网格（公司信息 / 联系方式 / 二维码），
   手机上堆成超长一列约 600px，用户要滑很久才看到版权，
   是典型的「移动端底部臃肿」。
   方案：
   ① 精简为「品牌 + 一句话卖点 + 联系方式胶囊按钮 + 二维码 + 版权」；
   ② 联系信息改成三个大触控按钮（拨号 / QQ / 留言），手机上一点就走；
   ③ 长文案（工作时间/地址）默认折叠，点击展开。
============================================================ */
@media (max-width: 768px) {

  .db-site-footer { margin-top: 8px; }

  .db-footer-top { padding: 28px 0 18px !important; }
  .db-footer-row { grid-template-columns: 1fr !important; gap: 18px !important; }

  /* 公司信息：标题缩小，正文折叠 */
  .db-footer-title {
    font-size: 15px !important;
    margin-bottom: 12px !important;
    padding-bottom: 8px !important;
  }
  .db-footer-list { gap: 8px !important; }
  .db-footer-list li { font-size: 13.5px !important; line-height: 1.65; }

  /* 联系方式改成一排三个大按钮（单手可点，符合 44px 触控规范） */
  .db-contact-info .db-footer-list {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px !important;
  }
  .db-contact-info .db-footer-list li {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 12px;
    padding: 10px 6px;
    text-align: center;
    font-size: 12px !important;
    line-height: 1.5;
    min-height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
  }
  .db-contact-info .db-footer-list li span {
    display: block;
    font-size: 12.5px;
    color: #7f8fa6;
    font-weight: 400;
  }
  .db-contact-info .db-footer-list li a {
    color: #7dd3fc !important;
    font-weight: 600;
    word-break: break-all;
  }

  /* 二维码：居中小尺寸，不再占满一列 */
  .db-qr-code { text-align: center !important; }
  .db-qr-box img { width: 110px !important; height: 110px !important; padding: 6px !important; }
  .db-qr-box p { font-size: 12px !important; margin-top: 6px !important; }

  /* 版权区：紧凑单行可换行 */
  .db-footer-copyright {
    padding: 14px 0 !important;
    font-size: 12px !important;
    line-height: 1.7;
    text-align: center;
  }
}

/* ============================================================
   首页 · 移动端首屏重构（最高优先级）
   ------------------------------------------------------------
   改造前后对比：
   【改前】徽章→标题→亮点→4行描述→2个整宽按钮→3个竖排数据
           →软件截图，首屏 844px 内只能看到文字，看不到截图和产品。
   【改后】徽章缩为一行小标签 → 标题两行 → 亮点一行 → 描述压成 2 行
           → 按钮并排（主按钮 2/3 + 次按钮 1/3）→ 3 项数据横排一行
           → 截图紧接着出现。用户 3 秒内看到「是什么 + 有什么 + 怎么下」。
============================================================ */
@media (max-width: 768px) {

  .hero-section {
    padding: 26px 0 34px !important;
    border-radius: 0 0 24px 24px;
  }

  /* 徽章：缩成一行小胶囊，不再占一整行 */
  .hero-badge {
    font-size: 12.5px !important;
    padding: 5px 12px !important;
    margin-bottom: 12px !important;
    letter-spacing: .02em;
  }
  .hero-badge i { font-size: 12px !important; }

  /* 标题：主标题 26px，副标题 15px，层级清楚不抢戏 */
  .hero-title { margin-bottom: 10px !important; }
  .hero-title-main {
    font-size: 1.62rem !important;
    line-height: 1.25 !important;
    letter-spacing: -.01em;
  }
  .hero-title-sub {
    font-size: 1.02rem !important;
    margin-top: 4px !important;
    line-height: 1.4 !important;
  }

  /* 亮点行：字号收一点，圆点分隔更紧凑 */
  .hero-tagline {
    font-size: 13px !important;
    letter-spacing: .04em !important;
    margin-bottom: 10px !important;
  }

  /* 描述：完整显示
     原先 -webkit-line-clamp:3 会把首屏文案截成半句话，后面直接省略号，
     用户点进来第一眼看到的就是一句断掉的话，观感很差。
     现在完整展示，用较小的字号 + 舒适行高控制高度，不牺牲信息完整度。 */
  .hero-desc {
    font-size: 14.5px !important;
    line-height: 1.75 !important;
    margin-bottom: 18px !important;
    display: block !important;
    overflow: visible !important;
    -webkit-line-clamp: unset;
  }

  /* 按钮：并排而不是各占一整行，主次分明，节省一屏高度 */
  .hero-btns {
    display: grid !important;
    grid-template-columns: 1.35fr 1fr;
    gap: 10px !important;
    margin-bottom: 20px;
  }
  .btn-download, .btn-tutorial {
    width: 100% !important;
    min-height: 48px;
    padding: 0 10px !important;
    font-size: 15px !important;
    justify-content: center;
    border-radius: 12px !important;
  }
  .btn-download i, .btn-tutorial i { font-size: 15px !important; }

  /* 数据条：三列横排一行，紧凑清晰 */
  .hero-stats {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    width: 100% !important;
    margin-top: 0 !important;
    padding: 12px 4px !important;
    gap: 0 !important;
    border-radius: 14px !important;
  }
  .stat-item {
    padding: 0 6px !important;
    align-items: center;
    text-align: center;
    gap: 2px !important;
  }
  .stat-item .num {
    font-size: 15px !important;
    gap: 4px !important;
    white-space: nowrap;
  }
  .stat-item .num i { font-size: 13px !important; }
  .stat-item .label {
    font-size: 12px !important;
    white-space: normal !important;
    line-height: 1.35;
  }

  /* 软件截图：手机上紧跟首屏，圆角收一点，加轻微边框避免与背景糊在一起 */
  .hero-image { margin-top: 22px; }
  .single-image-wrapper img {
    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, .12);
  }
  .hero-image::before { display: none; } /* 关掉极光光晕，省性能 */

  /* ============ 16 个功能卡（核心体验修复） ============
     两列宫格 + 图标在上、文字在下，描述完整不裁切。
     间距取 12px：小于 10px 两卡会「粘在一起」，大于 16px 两列显得散。 */
  .feature-section { padding: 36px 0 32px !important; }
  .feature-section .row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    align-items: stretch !important;   /* 同行卡片等高，描述长短不一时底部依然对齐 */
    gap: 12px !important;
    margin: 0 !important;
  }
  .feature-section .row > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding: 0 !important;
  }

  .feature-card {
    display: flex !important;
    flex-direction: column;
    height: 100%;
    padding: 14px 13px 15px !important;
    border-radius: 14px !important;
    box-shadow: 0 3px 12px rgba(10, 24, 48, .06) !important;
    border: 1px solid var(--m-line) !important;
    background: #fff !important;
  }
  .feature-card .feat-ico {
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    margin-bottom: 10px !important;
    font-size: 18px !important;
  }
  .feature-card .card-body { padding: 0 !important; }
  .feature-card .card-title {
    font-size: 14.5px !important;
    line-height: 1.4 !important;
    margin-bottom: 6px !important;
    font-weight: 700;
    color: var(--m-ink) !important;
  }
  /* 描述完整显示，不做行数截断
     原先用 -webkit-line-clamp 裁到 2 行，会出现「一半字被切掉 / 后面跟省略号」
     的残句，用户看不到这个功能到底是干什么的。现在完整展示，
  /* 描述：完整显示，不做行数截断
     模板里原来的 [list:content lencn=60]... 会把正文强切到 60 字再拼三个点，
     这才是「每条描述都以省略号结尾」的真正原因。现已去掉该参数，
     后台原文（约 50~62 字，本身都是完整句子）全部输出。
     卡片高度靠 grid 的等高行对齐，长短不一时也不会参差。 */
  .feature-card .card-text {
    font-size: 12.5px !important;
    line-height: 1.62 !important;
    color: var(--m-ink-3) !important;
    margin-bottom: 0 !important;
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
  }

  /* ============ 品牌故事：默认收起，点「展开」完整阅读 ============
     收起时只露出开头几行 + 底部渐变，并明确写「展开全文」，
     用户知道后面还有内容、也知道点哪里，不会像硬截断那样出现半句话。
     展开后 max-height 给到 20000px，保证多长的故事都能完整读完。 */
  .story-section { padding: 34px 0 !important; }
  .story-card { padding: 20px 18px !important; border-radius: 16px !important; }
  .story-content {
    font-size: 14.5px !important;
    line-height: 1.85 !important;
    max-height: 210px;          /* 约 6 行，露出故事的开头，勾住阅读兴趣 */
    overflow: hidden !important;
    position: relative !important;
    transition: max-height .38s ease;
  }
  .story-content.is-open {
    max-height: 20000px !important;   /* 展开后不设上限，完整显示 */
    overflow: visible !important;
  }
  /* 收起态的底部渐隐，暗示「下面还有」 */
  .story-content:not(.is-open)::after {
    content: "" !important;
    display: block !important;
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 72px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.96) 72%, #fff 100%);
    pointer-events: none;
  }
  .story-content p { margin-bottom: 14px !important; }
  .story-content p:last-child { margin-bottom: 0 !important; }
  /* 展开/收起按钮 */
  .m-story-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 14px;
    padding: 11px 0;
    border: 1px solid var(--m-line);
    border-radius: 12px;
    background: #f8fafd;
    color: var(--m-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .m-story-toggle:active { background: #eef3fb; }
  .m-story-toggle i { transition: transform .3s; font-size: 13px; }
  .m-story-toggle.is-open i { transform: rotate(180deg); }

  /* ============ 新闻动态：日期块保持紧凑，正文恢复可读字号 ============ */
  .news-section { padding: 32px 0 !important; }
  .news-card-compact { padding: 14px !important; border-radius: 14px !important; gap: 13px !important; }
  .compact-date { width: 48px !important; height: 54px !important; border-radius: 11px !important; }
  .compact-date .d { font-size: 20px !important; line-height: 1.1; }
  .compact-date .m { font-size: 11.5px !important; }
  .compact-content h5 { font-size: 15px !important; line-height: 1.5 !important; margin-bottom: 6px !important; }
  .compact-excerpt { font-size: 13px !important; line-height: 1.65 !important; }
  .compact-action { display: none; } /* 整卡可点，去掉冗余「阅读详情」节省高度 */

  /* ============ 优势区（为什么选择）：图文顺序调整为文字先出 ============ */
  .advantage-section { padding: 34px 0 !important; }
  .adv-image-box { margin-bottom: 20px; border-radius: 14px !important; overflow: hidden; }
  .adv-title { font-size: 1.28rem !important; line-height: 1.4; margin-bottom: 6px !important; }
  .adv-desc { font-size: 13.5px !important; margin-bottom: 16px !important; }
  .adv-list { gap: 12px !important; display: grid !important; }
  .adv-item { gap: 11px !important; align-items: flex-start; }
  .adv-item i { font-size: 19px !important; margin-top: 2px; }
  .adv-item h5 { font-size: 15px !important; margin-bottom: 2px !important; }
  .adv-item p { font-size: 12.5px !important; line-height: 1.6 !important; }
}

/* ============================================================
   购买开通页 · 移动端重构
   ------------------------------------------------------------
   移动端买软件的真实决策路径：
   看价 → 比套餐 → 看能干什么 → 怎么付 → 付完怎么开通。
   【改前的问题】
   ① 单卡 flex:1 1 380px，390px 屏上两个套餐各占一整屏，无法对比；
   ② 8 条权益逐行平铺，两卡重复 16 行，滚动疲劳；
   ③ 支付方式 130px 小方块，手机上点不中；
   ④ 付款流程三列 flex，手机上被挤成竖排且不连贯。
   【改后】
   ① 套餐卡横向滑动对比（scroll-snap），一屏看全两个价格；
   ② 权益默认折叠前 4 条 + 「展开全部」；
   ③ 支付方式改三列大按钮（≥72px 高）；
   ④ 付款流程改纵向时间轴（竖线 + 圆点），手机上阅读顺畅。
============================================================ */
@media (max-width: 768px) {

  /* ---- 套餐区：纵向完整排列，一屏一张卡，不做横向截断 ----
     之前用横向滑动（flex 78%/82% + scroll-snap-align:center），
     问题是卡片会被居中吸附，左右两侧各露出半张「残卡」，
     标题被切成「…年）」、权益被切掉前半句，正是「显示不完整」的来源。
     手机屏宽本来就窄，横滑对比并不好用；改成纵向逐张完整展示，
     每张卡的标题、价格、权益都不再被裁切。 */
  .ff-package-section {
    display: block !important;
    margin: 14px 0 10px !important;
    padding: 0 14px !important;
    overflow: visible !important;
  }

  .ff-package-card {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    margin: 0 0 14px !important;
    scroll-snap-align: none;
    border-radius: 16px !important;
    overflow: hidden !important;   /* 保留裁剪：否则斜挂的「推荐」角标会溢出卡片 */
  }
  .ff-package-card:last-child { margin-bottom: 0 !important; }
  .ff-package-card:first-child { flex-basis: auto !important; max-width: 100% !important; }

  /* 「推荐」角标：手机上卡片变窄，原来的 -34px/40px 内边距会顶出边界，
     收窄一点，让斜条正好卡在右上角内侧 */
  .ff-recommended-tag {
    top: 10px !important;
    right: -30px !important;
    padding: 3px 32px !important;
    font-size: 11.5px !important;
    transform: rotate(38deg) !important;
  }

  .ff-card-header { padding: 18px 16px 14px !important; }
  .ff-card-header h2 { font-size: 17px !important; line-height: 1.4; }
  .ff-card-header p { font-size: 12.5px !important; }
  .ff-price { font-size: 30px !important; margin-top: 8px !important; }
  .ff-price span { font-size: 13px !important; }

  .ff-card-body { padding: 14px 16px 16px !important; }
  .ff-features-list { margin-bottom: 14px !important; }

  /* 权益列表：默认收起，点「展开」看全部 8 条
     收起状态明确显示「展开全部 8 项权益」，让用户清楚知道还有几条，
     不会误以为只有 4 项。展开后列表完整，不会二次截断。 */
  .ff-features-list li {
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
    font-size: 13.5px !important;
    padding: 8px 0 !important;
    line-height: 1.6;
    border-bottom: 1px dashed rgba(10, 24, 48, .06);
  }
  .ff-features-list li:last-child { border-bottom: none; }
  /* 收起态：隐藏第 5 条起 */
  .ff-features-list.m-collapsed li:nth-child(n+5) { display: none !important; }
  .ff-features-list.m-collapsed li:nth-child(4) { border-bottom: none; }

  .m-more-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin: 2px 0 14px;
    padding: 10px 0;
    border: 1px dashed rgba(47, 107, 255, .3);
    border-radius: 10px;
    background: #f6f9ff;
    color: var(--m-primary);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .m-more-btn:active { background: #eaf1ff; }
  .m-more-btn i { transition: transform .3s; font-size: 12px; }
  .m-more-btn.is-open i { transform: rotate(180deg); }

  .ff-btn { min-height: 48px; display: flex; align-items: center; justify-content: center; font-size: 15.5px !important; border-radius: 12px !important; }

  /* 滑动提示（仅在套餐区上方出现一次） */
  .m-swipe-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 4px 16px 10px;
    font-size: 12px;
    color: var(--m-ink-3);
  }
  .m-swipe-tip i { animation: m-slide 1.6s ease-in-out infinite; }
  @keyframes m-slide {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
  }

  /* ---- 支付方式：三列大按钮 ---- */
  .ff-payment-info {
    margin: 8px 16px 24px !important;
    padding: 20px 14px !important;
    border-radius: 16px !important;
  }
  .ff-payment-info h2 { font-size: 18px !important; margin-bottom: 14px !important; }
  .ff-payment-methods {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px !important;
    margin-bottom: 14px !important;
  }
  .ff-payment-method {
    width: auto !important;
    min-height: 74px;
    padding: 12px 4px !important;
    border-radius: 14px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 13.5px !important;
    /* 去掉移动端 hover 抖动，改用 :active 反馈，避免 iOS 上样式残留 */
    transform: none !important;
  }
  .ff-payment-method:active { background: #eef4ff; border-color: var(--m-primary); }
  .ff-payment-icon { font-size: 26px !important; margin-bottom: 0 !important; }
  .ff-contact-info { font-size: 12.5px !important; line-height: 1.8 !important; text-align: left; }

  /* ---- 付款流程：纵向时间轴 ----
     布局算式：圆圈 32px，圆圈左边缘距容器 0，竖线取圆心 16px 处。
     文字区从 46px 开始（32 圆圈 + 14 间距）。
     之前的写法是「容器 padding-left:44 + 圆圈 left:-44」，
     圆圈被推到容器 padding 区之外，正好压在 margin 边界上，
     在窄屏下会贴着屏幕左缘、看起来像被裁掉一半。 */
  .ff-steps-section, .ff-trial-section, .ff-benefits-section {
    margin: 0 14px 26px !important;
    padding: 0 !important;
    text-align: left !important;
  }
  .ff-steps-section h2, .ff-trial-section h2, .ff-benefits-section h2 {
    font-size: 18px !important;
    margin-bottom: 14px !important;
    text-align: center;
  }
  .ff-steps {
    display: block !important;
    position: relative;
    padding: 2px 0 0 46px !important;   /* 只给文字区留位，圆圈画在 0~32 */
    margin: 0 !important;
  }
  /* 竖线：对齐圆圈中心（32/2 = 16px） */
  .ff-steps::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 34px;                            /* 从第一个圆圈下沿开始 */
    bottom: 20px;
    width: 2px;
    background: linear-gradient(180deg, var(--m-primary), rgba(47, 107, 255, .15));
    border-radius: 2px;
  }
  .ff-step {
    display: block !important;
    flex: none !important;
    max-width: 100% !important;
    width: 100% !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 0 22px 0 !important;
    margin: 0 !important;
    position: relative;
    font-size: 13px !important;
    text-align: left;
  }
  .ff-step:last-child { padding-bottom: 0 !important; }
  /* 圆圈：贴容器左边缘，完整可见 */
  .ff-step-number {
    position: absolute;
    left: -46px;                          /* 回到容器内左侧起点 */
    top: 0;
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
    margin: 0 !important;
    font-size: 15px !important;
    text-align: center;
    box-shadow: 0 0 0 4px #fff, 0 4px 10px rgba(47, 107, 255, .3);
  }
  .ff-step-title { font-size: 15px !important; margin-bottom: 3px !important; line-height: 1.4; }
  .ff-step p, .ff-step > div:not(.ff-step-number):not(.ff-step-title) {
    font-size: 12.5px !important;
    line-height: 1.6 !important;
    color: var(--m-ink-3) !important;
  }

  /* ---- 试用说明：去掉内联 li 间距，改为清爽列表 ---- */
  .ff-trial-section ul { padding-left: 0 !important; list-style: none !important; max-width: 100% !important; }
  .ff-trial-section li {
    position: relative;
    padding: 10px 12px 10px 32px !important;
    margin: 8px 0 !important;
    background: #fff;
    border: 1px solid var(--m-line);
    border-radius: 12px;
    font-size: 13px !important;
    line-height: 1.65;
  }
  .ff-trial-section li::before {
    content: "\f00c";
    font-family: FontAwesome;
    position: absolute;
    left: 12px; top: 11px;
    color: #28a745;
    font-size: 13px;
  }

  /* ---- 购买权益：两列宫格 ---- */
  .ff-benefits-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px !important;
  }
  .ff-benefit-item {
    flex: none !important;
    max-width: 100% !important;
    border-radius: 14px !important;
    padding: 16px 10px !important;
    font-size: 13px !important;
    line-height: 1.55;
    text-align: center;
  }
  .ff-benefit-icon { font-size: 22px !important; margin-bottom: 6px !important; }

  /* ---- 支付弹窗：更贴底部，方便单手拇指操作 ---- */
  .ff-modal-content {
    max-width: calc(100vw - 32px) !important;
    margin: 0 !important;
    position: fixed !important;
    left: 16px; right: 16px;
    bottom: calc(var(--m-bar-h) + env(safe-area-inset-bottom) + 14px);
    border-radius: 20px !important;
    padding: 22px 18px 18px !important;
    max-height: 72vh;
    overflow-y: auto;
  }
  .ff-qr-container img { width: 190px !important; height: 190px !important; }
  .ff-bank-info { font-size: 12.5px !important; line-height: 1.9 !important; padding: 14px !important; }
}

/* 套餐卡主推强调：竖排后两张卡上下相邻，用描边区分「推荐」那一张。
   原先这里是 m-active（配合横向滑动的 IntersectionObserver），
   卡片改为纵向排列后不再需要滚动联动，改成静态强调首张卡。 */
@media (max-width: 768px) {
  .ff-package-card:first-child {
    border-color: rgba(47, 107, 255, .45) !important;
    box-shadow: 0 8px 24px rgba(47, 107, 255, .12) !important;
  }
}

/* ============================================================
   内页通用：教程 / 新闻 / 案例 / 关于我们 / 联系
   ------------------------------------------------------------
   这些页面共用 comm/top.html 横幅 + 列表卡片结构，
   统一压缩字号与间距，让手机上一屏能看到 2-3 条内容而不是 1 条。
============================================================ */
@media (max-width: 768px) {

  /* 通用列表卡片（news / case / 相关文章） */
  .db-news-item, .db-case-item, .news-list-item, .case-list-item {
    padding: 13px 14px !important;
    border-radius: 14px !important;
    margin-bottom: 10px !important;
  }
  .db-news-item h5, .db-case-item h5, .news-list-item h5, .case-list-item h5 {
    font-size: 15px !important;
    line-height: 1.45 !important;
    margin-bottom: 5px !important;
  }
  .db-news-item p, .db-case-item p { font-size: 12.5px !important; line-height: 1.6 !important; }

  /* 面包屑：手机上缩小，避免折行占高度 */
  .page-breadcrumb, .breadcrumb { font-size: 12px !important; margin-bottom: 12px !important; }

  /* 文章正文：字号 15px / 行高 1.85，最适合手机长文阅读 */
  .article-content, .content-body, .detail-content {
    font-size: 15px !important;
    line-height: 1.85 !important;
    color: #2c3a4f;
  }
  .article-content h2, .content-body h2 { font-size: 1.2rem !important; margin: 1.4em 0 .6em !important; }
  .article-content h3, .content-body h3 { font-size: 1.08rem !important; margin: 1.2em 0 .5em !important; }
  .article-content img, .content-body img { border-radius: 10px; margin: 12px 0; }
  /* 正文里的表格在手机上横滑，不撑破布局 */
  .article-content table, .content-body table {
    display: block;
    width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 13px;
  }

  /* 视频教程列表：16:9 缩略图，两列 */
  .video-list, .db-video-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .video-item { border-radius: 12px !important; overflow: hidden; }
  .video-item .video-title { font-size: 13px !important; line-height: 1.45 !important; padding: 8px !important; }

  /* 分页：手机上大按钮更好点 */
  .db-pagination .page-num {
    min-width: 38px !important;
    height: 38px !important;
    padding: 0 11px !important;
    font-size: 13.5px !important;
  }
  .db-pagination { gap: 6px !important; }

  /* 留言/评论表单：输入框 44px 高，避免 iOS 自动放大 */
  .form-control {
    min-height: 44px;
    font-size: 16px !important; /* 16px 是 iOS Safari 不自动缩放的临界值 */
    border-radius: 10px !important;
  }
  textarea.form-control { min-height: 100px; }
  form label { font-size: 13.5px !important; }

  /* 搜索框 */
  .db-search-input, .search-input { font-size: 15px !important; min-height: 44px; }

  /* 右侧悬浮客服的浮层在手机上收窄，防止溢出 */
  .srw-panel--qr { width: min(240px, calc(100vw - 28px)) !important; min-width: 0 !important; }
}

/* ============================================================
   移动端「下载入口」统一处理（重要）
   ------------------------------------------------------------
   核心事实：锋锋外贸助手是 Windows 桌面程序（.rar 安装包）。
   手机点这些下载按钮 = 必然失败（手机装不了 exe/rar）。
   所以凡是 class 里带 m-dl（下载按钮）的元素，在手机上：
   ① 原下载按钮隐藏；
   ② 用它后面的 .m-dl-alt（咨询领取按钮）替代显示。
   这样既不改动 PC 排版，也不让手机用户撞墙。
   ------------------------------------------------------------
   用法：模板里写
     <a class="... m-dl">下载</a>
     <a href="/contact/" class="... m-dl-alt">咨询领取</a>
============================================================ */
@media (max-width: 768px) {

  .m-dl { display: none !important; }
  .m-dl-alt {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2f6bff, #1d4ed8);
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 8px 20px -8px rgba(47, 107, 255, .6);
    width: 100%;
    max-width: 100%;
  }
  .m-dl-alt:active { filter: brightness(.94); }
  /* 默认在 PC 上不显示，避免重复按钮 */
  .m-dl-alt { display: none; }

  /* ---- 例外：列表项形式的 .m-dl-alt ----
     上面这套是「按钮」外观（inline-flex + 蓝底白字 + 撑满宽度）。
     但购买页「免费试用说明」里的 .m-dl-alt 是 <li>，要的是普通说明行。
     如果不隔离，它会被套上按钮外观：内容里的 ✓ 被 flex 吃掉居中、
     高度被 min-height:46px 撑开，看起来就是一个空的绿色勾。
     这里把 li 场景拉回「普通列表项」，只保留文字排版。 */
  li.m-dl-alt {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 10px 12px 10px 32px !important;
    gap: 0 !important;
    background: #fff !important;
    border: 1px solid var(--m-line) !important;
    border-radius: 12px !important;
    color: inherit !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;
    text-align: left !important;
    box-shadow: none !important;
    max-width: none !important;
  }

  /* ---- 注意：显示/隐藏必须放在「外观」之后 ----
     下面这三条是本案的根因修复。
     原来的 bug：第 1038 行 `.m-dl { display: none !important; }` 是给
     「下载按钮」用的——手机上把下载按钮藏掉、换成咨询按钮。
     但购买页试用说明的第一条 <li> 也带了 m-dl 类，本意只是占位一个
     「PC 端显示 / 手机端换成下一行」的配对关系，结果连文字一起被藏掉了。
     <li> 被隐藏后，li 的边框和 ::before 打勾仍然被浏览器渲染（因为
     display:none 作用在 li 上时，子内容本该一并消失——真正留下残影的是
     li::before 被 `position:absolute` 提到隐藏盒之外的表现），
     于是串内就出现一个「只剩白框 + 绿勾」的空条目。

     修法：li 场景一律不隐藏，改用「显示/隐藏内容」的方式区分 PC 与手机。
     —— li.m-dl 在手机上整条不显示（配对关系保持不变）
     —— li.m-dl-alt 在手机上正常显示（它是替代项） */
  li.m-dl { display: none !important; }
  li.m-dl-alt { display: block !important; }

  /* 上面这条会把「虚线警示条」也拉平，所以给警示条单独补回视觉。
     关键：这里不能只写 border/background，必须把 display 再声明一次，
     否则会被上面通用的 li.m-dl-alt 规则按同等权重覆盖成普通白卡。 */
  li.m-dl-alt.m-warn {
    display: block !important;
    padding: 10px 12px !important;
    border: 1px dashed #ffb84d !important;
    border-radius: 10px !important;
    background: rgba(255, 184, 77, .1) !important;
    color: #a35f00 !important;
    font-weight: 600 !important;
    line-height: 1.65 !important;
  }
  /* 警示条不带绿勾，改用感叹号，避免「⚠️」与固定绿勾重复 */
  li.m-dl-alt.m-warn::before { content: none !important; }

  /* 底部大下载区（news.html）在手机上换成咨询卡片，保留引导语境 */
  .db-download-bottom { padding: 22px 16px !important; border-radius: 16px !important; }
  .db-download-bottom h4 { font-size: 16px !important; line-height: 1.45; }
  .db-download-bottom p { font-size: 12.5px !important; margin-bottom: 14px !important; }
}

/* PC 端：手机替代按钮一律不显示 */
.m-dl-alt { display: none; }
/* 但 li.m-dl-alt 是说明文字（购买页试用说明），PC 端要照常显示。
   选择器多一个类型选择器，权重高于上一行，故能覆盖。 */
li.m-dl-alt { display: list-item; }
li.m-dl-alt.m-warn { display: list-item; }
/* PC 端 li.m-dl 是「下载引导」原文，正常显示 */
li.m-dl { display: list-item; }
/* 但 li.m-dl-alt 是说明文字，PC 端要照常显示（选择器权重更高，覆盖上一行） */
li.m-dl-alt { display: list-item; }
li.m-dl-alt.m-warn { display: list-item; }

/* 手机端「电脑版提示」小字条（首页首屏按钮下方） */
.m-pc-only-tip { display: none; }
@media (max-width: 768px) {
  .m-pc-only-tip {
    display: block;
    margin: -8px 0 18px;
    padding: 9px 12px;
    border-radius: 10px;
    background: rgba(255, 184, 77, .12);
    border: 1px dashed rgba(255, 184, 77, .5);
    color: #ffd79a;
    font-size: 12px;
    line-height: 1.55;
    text-align: left;
  }
  .m-pc-only-tip i { color: #ffb84d; margin-right: 4px; }
}

/* 功能区简介：完整显示后台填写的原文，不做「PC 全文 / 手机摘要」的替换
   之前用一句自己写的概括语顶替后台原文，等于替用户改了他写的内容，
   而且概括语丢掉了原文里的具体信息。现在统一显示原文，只调字号与行距。 */
.m-brief-text { display: none !important; }
@media (max-width: 768px) {
  .section-subtitle.m-full-text {
    display: block !important;
    font-size: 14px !important;
    line-height: 1.75 !important;
    color: var(--m-ink-3) !important;
    max-width: 100%;
    margin: 0 auto 22px;
    text-align: center;
    padding: 0 4px;
    overflow: visible !important;
    -webkit-line-clamp: unset;
  }
  .section-subtitle.m-full-text p { margin: 0 0 8px; }
  .section-subtitle.m-full-text p:last-child { margin-bottom: 0; }
}

/* ============================================================
   手机端「咨询」底部弹层（Contact Sheet）
   ------------------------------------------------------------
   设计要点：
   ① 从底部升起（拇指最容易触达的区域），带圆角 + 拖拽把手视觉暗示；
   ② 三种联系方式按「转化效率」排序：电话 > 微信 > QQ；
   ③ QQ 只给号码和复制按钮，不跳转（未开通 QQ 企业版在线咨询）；
   ④ 遮罩 45% 黑，突出弹层，点击遮罩即关闭；
   ⑤ 弹层内容区可滚动，小屏手机（如 iPhone SE）也不会溢出。
   PC 端完全隐藏（display:none），PC 用右侧悬浮客服组件。
============================================================ */
.m-contact-mask { display: none; }
.m-contact-sheet { display: none; }

@media (max-width: 768px) {

  .m-contact-mask {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(7, 18, 36, .5);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, visibility .28s ease;
    z-index: 10000;
  }
  .m-contact-mask.is-open { opacity: 1; visibility: visible; }

  .m-contact-sheet {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 10001;
    background: #fff;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -12px 40px rgba(10, 24, 48, .22);
    transform: translateY(102%);
    transition: transform .34s cubic-bezier(.32, .72, 0, 1);
    padding-bottom: calc(env(safe-area-inset-bottom) + 12px);
    max-height: 82vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    will-change: transform;
  }
  .m-contact-sheet.is-open { transform: translateY(0); }

  /* 顶部小把手：给用户「可以下拉关闭」的心理暗示 */
  .m-cs-handle {
    width: 38px; height: 4px;
    border-radius: 2px;
    background: #dbe3ee;
    margin: 9px auto 0;
  }

  .m-cs-head {
    position: relative;
    padding: 12px 20px 14px;
    border-bottom: 1px solid var(--m-line);
    text-align: center;
  }
  .m-cs-head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--m-ink);
    letter-spacing: .01em;
  }
  .m-cs-head p {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--m-ink-3);
  }
  .m-cs-close {
    position: absolute;
    right: 12px; top: 10px;
    width: 32px; height: 32px;
    border: 0;
    border-radius: 50%;
    background: #f1f4f9;
    color: #8a99b0;
    font-size: 22px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
  }
  .m-cs-close:active { background: #e6ebf3; }

  .m-cs-body { padding: 14px 16px 4px; }

  /* 联系方式行：左侧图标 + 中间文字 + 右侧动作 */
  .m-cs-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid var(--m-line);
    border-radius: 14px;
    background: #fbfcfe;
    text-decoration: none !important;
    min-height: 66px;
  }
  .m-cs-call {
    background: linear-gradient(135deg, rgba(47, 107, 255, .07), rgba(47, 107, 255, .02));
    border-color: rgba(47, 107, 255, .22);
  }
  .m-cs-call:active { background: rgba(47, 107, 255, .12); }

  .m-cs-ico {
    width: 42px; height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #eaf0ff, #dce7ff);
    color: var(--m-primary);
    font-size: 19px;
  }
  .m-cs-row:nth-of-type(2) .m-cs-ico { background: linear-gradient(135deg, #e8f7ff, #d6efff); color: #0a84ff; }

  .m-cs-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .m-cs-txt strong {
    font-size: 17px;
    font-weight: 700;
    color: var(--m-ink);
    letter-spacing: .02em;
    font-variant-numeric: tabular-nums;
    word-break: break-all;
  }
  .m-cs-txt em {
    font-style: normal;
    font-size: 12.5px;
    color: var(--m-ink-3);
    line-height: 1.4;
  }

  .m-cs-tag {
    flex: 0 0 auto;
    padding: 7px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2f6bff, #1d4ed8);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
  }
  .m-cs-btn {
    flex: 0 0 auto;
    padding: 7px 15px;
    border: 1px solid var(--m-primary);
    border-radius: 999px;
    background: #fff;
    color: var(--m-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, color .2s;
  }
  .m-cs-btn.is-done {
    background: var(--m-primary);
    color: #fff;
    border-color: var(--m-primary);
  }

  /* 微信二维码区 */
  .m-cs-qr {
    margin: 4px 0 8px;
    padding: 16px 14px 14px;
    border: 1px dashed var(--m-line);
    border-radius: 16px;
    background: #fbfcfe;
    text-align: center;
  }
  .m-cs-qr-box {
    display: inline-block;
    padding: 8px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(10, 24, 48, .08);
  }
  .m-cs-qr-box img {
    display: block;
    width: 168px;
    height: 168px;
    object-fit: contain;
    border-radius: 6px;
  }
  .m-cs-qr p {
    margin: 10px 0 0;
    font-size: 12.5px;
    color: var(--m-ink-3);
    line-height: 1.6;
  }
  .m-cs-qr p i { color: var(--m-primary); margin-right: 3px; }
}

/* 超小屏（≤360px）时缩小二维码，保证一屏能看全 */
@media (max-width: 360px) {
  .m-cs-qr-box img { width: 140px; height: 140px; }
  .m-cs-txt strong { font-size: 15.5px; }
}

/* ============================================================
   功能卡：图标字形修复 + 版式升级（2026-11-04 追加）
   ------------------------------------------------------------
   背景：模板里写的是 <i class="fa [list:ico]">，而 [list:ico] 输出时
   会被当成站内资源路径自动补站点前缀，实际渲染成 "fa /fa-cloud-upload"，
   类名里混了斜杠，FontAwesome 的 .fa-xxx 规则完全命中不了，于是只剩
   渐变底色块、看不到图标。
   这里用「属性包含选择器」把 16 个字形补回去：不改数据库、不动模板标签。
   以后后台新增功能项，只要再加一条同名规则即可。
   ============================================================ */
.feature-card .feat-ico i:before {
  font-family: FontAwesome;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  display: inline-block;
}
.feature-card .feat-ico i[class*="fa-cloud-upload"]:before { content: "\f0ee"; }
.feature-card .feat-ico i[class*="fa-edit"]:before { content: "\f044"; }
.feature-card .feat-ico i[class*="fa-truck"]:before { content: "\f0d1"; }
.feature-card .feat-ico i[class*="fa-puzzle-piece"]:before { content: "\f12e"; }
.feature-card .feat-ico i[class*="fa-shield"]:before { content: "\f132"; }
.feature-card .feat-ico i[class*="fa-clone"]:before { content: "\f24d"; }
.feature-card .feat-ico i[class*="fa-tags"]:before { content: "\f02c"; }
.feature-card .feat-ico i[class*="fa-bar-chart"]:before { content: "\f080"; }
.feature-card .feat-ico i[class*="fa-database"]:before { content: "\f1c0"; }
.feature-card .feat-ico i[class*="fa-exchange"]:before { content: "\f0ec"; }
.feature-card .feat-ico i[class*="fa-file-excel-o"]:before { content: "\f1c3"; }
.feature-card .feat-ico i[class*="fa-trophy"]:before { content: "\f091"; }
.feature-card .feat-ico i[class*="fa-search-plus"]:before { content: "\f00e"; }
.feature-card .feat-ico i[class*="fa-line-chart"]:before { content: "\f201"; }
.feature-card .feat-ico i[class*="fa-refresh"]:before { content: "\f021"; }
.feature-card .feat-ico i[class*="fa-picture-o"]:before { content: "\f03e"; }


/* ---------- 桌面端：卡片与图标的视觉升级 ---------- */
@media (min-width: 769px) {
  .feature-section { padding: 64px 0 56px; }
  .feature-section .section-title { margin-bottom: 10px; }

  .feature-section .feature-card {
    padding: 22px 20px 20px;
    border-radius: 16px;
    border: 1px solid #e7edf6;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 26px -14px rgba(16, 24, 40, .12);
    transition: transform .28s cubic-bezier(.22,.61,.36,1), box-shadow .28s, border-color .28s;
    will-change: transform;
  }
  .feature-section .feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, .26);
    box-shadow: 0 20px 42px -18px rgba(37, 99, 235, .30);
  }

  .feature-card .feat-ico {
    width: 52px !important;
    height: 52px !important;
    border-radius: 15px !important;
    font-size: 21px !important;
    margin-bottom: 16px !important;
    box-shadow: 0 10px 20px -8px rgba(16, 24, 40, .30), inset 0 1px 0 rgba(255,255,255,.22);
    transition: transform .28s cubic-bezier(.22,.61,.36,1);
  }
  .feature-card:hover .feat-ico { transform: translateY(-2px) scale(1.06); }

  .feature-card .card-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .2px;
    line-height: 1.45;
    margin-bottom: 9px;
  }
  .feature-card .card-text {
    font-size: 13.5px;
    line-height: 1.78;
    color: #5c6c84;
  }

  /* 四列时给大屏更舒展的间距 */
  .feature-section .row.g-4 { --bs-gutter-x: 1.25rem; --bs-gutter-y: 1.25rem; }
}

/* ===== 品牌区：移动端深色导航下的文字配色（2026-11-05） =====
   ≤768px 时导航栏是深蓝 rgba(10,24,48,.96)，品牌名必须用浅色，否则看不见 */
@media (max-width: 768px){
  .db-header-navbar .db-brand-txt strong{ color:#f8fafc !important; }
  .db-header-navbar .db-brand-txt em{ color:rgba(203,213,225,.72) !important; }
}
