/* ============================================================
   卡易信官网 · 移动端适配（前台）
   断点：<=900px（手机/小平板竖屏）
   仅包含覆盖规则，PC 端样式不受影响
   ============================================================ */

/* PC 端默认隐藏移动端控件 */
.mnav-btn, .mnav-mask { display: none; }

/* ---------- 基础 ---------- */
@media (max-width: 900px) {
  html, body { overflow-x: hidden; }
  body { font-size: 14px; }
  img { max-width: 100%; height: auto; }

  /* 固定 1200 宽的容器全部改成自适应 */
  .box {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 16px !important;
    padding: 0 !important;
  }

  /* ---------- 顶部导航 ---------- */
  .header { padding: 10px 0; position: relative; z-index: 100; }
  .header .box { display: flex; align-items: center; flex-wrap: nowrap; }
  .header .logo { padding-right: 10px; margin-right: 10px; }
  .header .logo img { height: 32px; }
  .header .logo-txt { display: none; }
  .header .right-act { margin-left: auto; }
  .header .right-act .tel { display: none; }
  .header .right-act .user-login { margin-left: 0; }
  .header .right-act .user-login a { padding: 0 10px; line-height: 28px; font-size: 12px; border-radius: 4px; }

  /* 汉堡按钮 */
  .mnav-btn {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
    width: 38px; height: 38px; margin-left: 10px; padding: 0 9px;
    background: #f7f8fa; border: 1px solid #eceef2; border-radius: 8px;
    cursor: pointer; flex: 0 0 auto;
  }
  .mnav-btn span { display: block; height: 2px; background: #333; border-radius: 2px; transition: all .25s; }
  .mnav-btn.on span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .mnav-btn.on span:nth-child(2) { opacity: 0; }
  .mnav-btn.on span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* 导航抽屉 */
  .header .nav {
    display: block; position: fixed; top: 0; right: -300px; width: 268px; height: 100vh;
    background: #fff; box-shadow: -8px 0 30px rgba(0,0,0,.12);
    z-index: 110; transition: right .26s ease; padding: 64px 0 24px; overflow-y: auto;
  }
  .header .nav.open { right: 0; }
  .header .nav ul { display: block; white-space: normal; }
  .header .nav li { border-bottom: 1px solid #f4f5f8; }
  .header .nav li a {
    display: block; padding: 14px 22px; border-radius: 0;
    font-size: 15px; line-height: 22px;
  }
  .header .nav li.active a, .header .nav li:hover a {
    background: #fff5f4; color: #ff5a4c;
  }
  .mnav-mask {
    display: none; position: fixed; inset: 0; background: rgba(15,23,42,.42);
    z-index: 105;
  }
  .mnav-mask.on { display: block; }

  /* ---------- 首页 banner ---------- */
  .banner { padding-bottom: 26px; }
  .banner .box, .bn-content { margin: 0 16px !important; }
  .bn-content { display: block; padding: 22px 0 0; }
  .bn-content .bn-txt { width: 100%; }
  .bn-content .bn-txt .t1 { font-size: 26px; line-height: 1.25; }
  .bn-content .bn-txt .t1 img { height: 26px; width: auto; }
  .bn-content .bn-txt .desc { margin-top: 14px; font-size: 14px; line-height: 22px; }
  .bn-content .more-act { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
  .more-act .go-downld { display: inline-block; }
  .go-downld .downld-btn { width: auto; min-width: 132px; height: 40px; line-height: 40px; font-size: 14px; }
  .more-act .contact-btn { margin-left: 0; width: auto; min-width: 120px; height: 40px; line-height: 40px; font-size: 14px; }
  .downld-list { width: 240px; }
  .bn-content .bn-pic { display: none !important; }
  .down-link { margin-top: 12px; font-size: 12px; }
  .down-link a { margin-right: 14px; }
  .down-link a:after { display: none; }

  /* ---------- 皮肤展示（swiper） ---------- */
  .skin-show { width: auto !important; margin: 0 16px !important; }
  .skin-show .swiper-slide { width: 78vw !important; height: auto !important; }
  .skin-show .swiper-slide img { width: 100%; height: auto; display: block; }
  .skin .swiper-button-next, .skin .swiper-button-prev { display: none; }
  .sec-tit { font-size: 22px; }
  .sec-subtit { font-size: 13px; }

  /* ---------- 官网介绍 ---------- */
  .web-intro { display: block; margin: 0 16px; }
  .web-intro .wb-pic { margin: 0 auto 24px; }
  .web-intro .wb-pic img { width: 100% !important; max-width: 100% !important; }
  .web-intro .wb-list { display: block; height: auto !important; margin-top: 20px; padding-top: 0; }
  .web-intro .wb-list li { width: 100% !important; margin-bottom: 18px; align-items: flex-start; }
  .web-intro .wb-list li:before { width: 52px !important; height: 52px !important; background-size: 52px !important; margin-right: 10px !important; }
  .web-intro .wb-list .tit { font-size: 15px; }
  .web-intro .wb-list .desc { font-size: 13px; line-height: 20px; }

  /* ---------- 平台卡（PC/手机/公众号） ---------- */
  .platform .card-list { display: block; margin: 26px 16px 0; }
  .card-list .card-item { width: auto !important; margin: 0 0 14px !important; }
  .card-list .card-item .cd-body { padding: 22px 0; }

  /* ---------- 品牌购买 ---------- */
  .brand-buy .box { display: block; padding: 0 !important; text-align: center; }
  .brand-buy .brd-txt { padding: 0; }
  .brand-buy .brd-buy { margin-top: 16px; }

  /* ---------- 套餐 ---------- */
  .pkg-banner { padding: 28px 16px; }
  .pkg-banner h2 { font-size: 24px; }
  .pkg-banner p { font-size: 13px; }
  .pkg-grid { display: block; margin: 24px 16px 0; }
  .pkg-card { margin-bottom: 16px !important; }
  .pkg-note { font-size: 12px; padding: 0 16px; }

  /* ---------- 内页 ---------- */
  .page-banner { padding: 24px 16px; }
  .page-banner h2 { font-size: 22px; }
  .page-banner .crumb { font-size: 12px; }
  .page-body { padding: 0 16px 24px; }
  .article { max-width: 100%; margin: 0; padding: 20px 16px; border-radius: 12px; }
  .article h1 { font-size: 20px; }
  .article h2 { font-size: 17px; }
  .article h3 { font-size: 15px; }
  .article p, .article ul li { font-size: 14px; line-height: 24px; }
  .article table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .article table td, .article table th { white-space: nowrap; font-size: 13px; padding: 8px 10px; }

  /* ---------- 授权查询 ---------- */
  .cert-box { max-width: 100%; padding: 22px 16px; border-radius: 12px; }
  .cert-box h2 { font-size: 20px; }
  .cert-search { max-width: 100%; }
  .cert-search input { height: 44px; font-size: 14px; }
  .cert-search button { width: 88px; height: 44px; font-size: 14px; }
  .cert-feats { grid-template-columns: 1fr; }
  .cert-result table { display: block; overflow-x: auto; }

  /* ---------- 公告 ---------- */
  .ann-panel { max-width: 100%; padding: 0 16px; }
  .ann-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .ann-tabs a { white-space: nowrap; font-size: 13px; }
  .ann-list li { display: block; height: auto; padding: 10px 0; }
  .ann-list .a-t { display: block; font-size: 14px; line-height: 21px; }
  .ann-list .a-d { display: block; margin-top: 4px; font-size: 12px; }

  /* ---------- 页脚 ---------- */
  .ft-nav { display: block; padding: 26px 0 10px; }
  .ft-nav-list { min-width: 0; margin-bottom: 18px; }
  .ft-nav-list .tit { font-size: 14px; margin-bottom: 8px; }
  .ft-nav-list .ft-nav-item span, .ft-nav-list .ft-nav-item a { font-size: 12px; line-height: 22px; }
  .ft-ctc-code { text-align: center; margin: 6px 0 16px; }
  .ft-ctc-code img { width: 96px; }
  .ft-copyright { font-size: 11px; line-height: 20px; padding: 12px 0; word-break: break-all; }

  /* ---------- 分页 ---------- */
  .pager { gap: 6px; font-size: 13px; }
  .pager .p-num, .pager .p-next { min-width: 32px; height: 32px; line-height: 30px; font-size: 13px; padding: 0 8px; }

  /* ---------- 安装页 ---------- */
  .install-wrap { padding: 20px 12px; }
  .install-card { width: auto; max-width: 100%; padding: 24px 18px; border-radius: 14px; }
  .inst-step { gap: 16px; }
}

/* 超窄屏（<=380px）微调 */
@media (max-width: 380px) {
  .bn-content .bn-txt .t1 { font-size: 22px; }
  .bn-content .bn-txt .t1 img { height: 22px; }
  .header .logo img { height: 28px; }
  .header .right-act .user-login a { font-size: 11px; padding: 0 8px; }
}
