/* 移动端样式 —— 配色完全对齐 PC 端 template/default/css/global.css + layout.css
   主蓝 #0096ff（PC 导航底色）｜强调 #2e82ea（PC 链接/标题）｜浅蓝 #57a2ff
   文字 #000/#333/#666/#999｜边框 #e7e8e9/#d3d9de｜背景 #fff/#f8fdff */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
       background: #f8fdff; color: #333; font-size: 14px; line-height: 1.6; }
a { color: #333; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, li { list-style: none; }

/* 顶部栏 —— 对齐 PC .header-bottom：白底 + 纯 logo + 底部细线 */
.m-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between;
         background: #fff; padding: 8px 12px; border-bottom: 1px solid #e7e8e9;
         box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.m-logo { display: flex; align-items: center; min-width: 0; }
.m-logo img { height: 34px; width: auto; max-width: 62vw; }
.m-menu-btn { display: flex; align-items: center; gap: 5px; flex: none; background: #0096ff; color: #fff;
              border: 0; border-radius: 16px; padding: 7px 14px; font-size: 13px; cursor: pointer;
              box-shadow: 0 2px 6px rgba(0,150,255,.28); }
.m-menu-btn:active { background: #2e82ea; }
.m-menu-btn svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }

/* 导航抽屉 */
.m-mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.45); z-index: 40; display: none; }
.m-mask.on { display: block; }
.m-menu { position: fixed; top: 0; right: 0; bottom: 0; width: 80%; max-width: 320px; background: #fff; z-index: 41;
          transform: translateX(100%); transition: transform .28s ease; overflow-y: auto; box-shadow: -2px 0 12px rgba(0,0,0,.12); }
.m-menu.on { transform: translateX(0); }
.m-menu-head { background: #0096ff; color: #fff; padding: 14px 16px; display: flex; align-items: center;
               justify-content: space-between; font-size: 15px; font-weight: 600; }
.m-menu-close { background: none; border: 0; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; padding: 0 4px; }
.m-menu-item { border-bottom: 1px solid #f0f0f0; }
.m-menu-row { display: flex; align-items: center; }
.m-menu-row .m-menu-link { flex: 1; color: #333; padding: 13px 16px; font-size: 15px; }
.m-menu-row .m-menu-link:active { color: #0096ff; }
.m-menu-toggle { display: flex; padding: 0 16px; color: #999; cursor: pointer; }
.m-menu-toggle svg { width: 17px; height: 17px; fill: none; stroke: #999; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.m-menu-item.open .m-menu-toggle svg { transform: rotate(180deg); }
.m-sub { display: none; background: #f8fdff; }
.m-menu-item.open .m-sub { display: block; }
.m-sub a { display: block; padding: 11px 16px 11px 32px; font-size: 13px; color: #666; border-bottom: 1px solid #eef4f8; }
.m-sub a:active { color: #0096ff; }

/* 容器 */
.m-wrap { max-width: 720px; margin: 0 auto; padding: 10px; }

/* 轮播 —— 对齐 PC .banner（owl-carousel） */
.m-slide { position: relative; margin-bottom: 10px; border-radius: 8px; overflow: hidden; background: #fff; }
.m-slide-track { display: flex; transition: transform .4s ease; }
.m-slide-item { flex: 0 0 100%; }
.m-slide-item img { width: 100%; height: 180px; object-fit: cover; }
.m-slide-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.m-slide-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.7); transition: all .3s; }
.m-slide-dots span.on { width: 16px; border-radius: 4px; background: #0096ff; }

/* 首页区块 —— 对齐 PC .aboutwrap / .trial / .linkwrap */
.m-sec { background: #fff; border-radius: 8px; padding: 14px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.m-sec-hd { margin-bottom: 12px; }
.m-sec-hd h3 { font-size: 18px; font-weight: 600; color: #000; line-height: 1.3; }
.m-sec-hd h4 { font-size: 12px; color: #666; font-weight: normal; padding-top: 3px; }
.m-sec-hd a { float: right; font-size: 12px; color: #2e82ea; margin-top: 6px; }

/* 关于我们 —— 对齐 PC .about .con */
.m-about { font-size: 14px; line-height: 1.9; color: #666; word-break: break-all; }
.m-about br { line-height: 1.9; }

/* 校园媒体资源介绍 —— 对齐 PC .ziyuan（图标 + 标题链接 + 描述） */
.m-res li a { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px dashed #e7e8e9; }
.m-res li:last-child a { border-bottom: none; }
.m-res img { width: 46px; height: 46px; object-fit: contain; flex: none; }
.m-res h3 { font-size: 15px; color: #2e82ea; font-weight: 600; }
.m-res p { font-size: 12px; color: #999; margin-top: 3px; line-height: 1.5; }

/* 我们的优势 —— 对齐 PC .trial-ul（a1~a6 图标卡片） */
.m-adv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-adv li { background: #fff; border: 1px solid #e7e8e9; border-radius: 6px; padding: 14px 10px; text-align: center; }
.m-adv img { width: 56px; height: 52px; object-fit: contain; margin: 0 auto 8px; }
.m-adv h3 { font-size: 15px; color: #333; font-weight: 600; margin-bottom: 4px; }
.m-adv p { font-size: 12px; color: #999; line-height: 1.6; }

/* ===================== 触摸 / 悬停反馈（对齐 PC 端 hover 效果） =====================
   PC 原规则：
   .trial-ul ul li .aN:hover { background:url(../images/aN0.png) #57a2ff center 50px no-repeat;
                              margin-top:10px; color:#FFF; padding:10px }
   移动端用「:active + .is-touch（JS 在 touchstart/end 打标）」模拟同一个 hover；
   图标转白改用 CSS filter（PC 缺 a06.png，移动端 6 张卡片都能正确变白）。 */

/* 我们的优势卡片 —— 对齐 PC .aN:hover */
.m-adv li { transition: background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.m-adv img { transition: filter .2s ease; }
.m-adv li:active, .m-adv li.is-touch {
    background-color: #57a2ff; border-color: #57a2ff; transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(87,162,255,.35);
}
.m-adv li:active h3, .m-adv li.is-touch h3 { color: #fff; }
.m-adv li:active p, .m-adv li.is-touch p { color: rgba(255,255,255,.92); }
.m-adv li:active img, .m-adv li.is-touch img { filter: brightness(0) invert(1); }

/* 校园媒体资源介绍 —— PC .about dl dd h3:hover a → #2e82ea */
.m-res li a { transition: background-color .2s ease; }
.m-res li a:active, .m-res li a.is-touch { background: #f0f7ff; }
.m-res li a:active h3, .m-res li a.is-touch h3 { color: #2e82ea; }

/* 合作流程 —— PC 无 hover，移动端给浅蓝底反馈 */
.m-coop a { transition: background-color .2s ease, border-color .2s ease; }
.m-coop a:active, .m-coop a.is-touch { background: #eaf5ff; border-color: #57a2ff; }

/* 列表卡片 —— PC .gsxw_xw a:hover h3 → #0b5bbd */
.m-list-card { transition: box-shadow .2s ease, transform .2s ease; }
.m-list-card:active, .m-list-card.is-touch { box-shadow: 0 2px 10px rgba(0,150,255,.2); transform: translateY(-2px); }
.m-list-card a:active h3, .m-list-card a.is-touch h3,
.m-list-card:active h3, .m-list-card.is-touch h3 { color: #0b5bbd; }

/* 单页正文内链 —— PC .right-top span a:hover → #2e82ea */
.m-cate-content a:active, .m-cate-content a.is-touch { color: #2e82ea; }

/* 底部导航 —— PC .footer-bottom dd p a:hover → #fff */
.m-foot-nav a:active, .m-foot-nav a.is-touch { color: #e5bf93; }

/* 菜单项 / 子栏目 */
.m-menu-row .m-menu-link:active, .m-menu-row .m-menu-link.is-touch { color: #0096ff; }
.m-sub a:active, .m-sub a.is-touch { color: #0096ff; background: #eef7ff; }
.m-subnav a:active, .m-subnav a.is-touch { background: #eaf5ff; border-color: #57a2ff; color: #0096ff; }

/* 桌面浏览器（真实 hover 设备）额外启用 hover 效果；触屏不启用，避免「粘滞 hover」 */
@media (hover: hover) {
  .m-adv li:hover { background-color: #57a2ff; border-color: #57a2ff; transform: translateY(-4px);
                    box-shadow: 0 8px 16px rgba(87,162,255,.35); }
  .m-adv li:hover h3 { color: #fff; }
  .m-adv li:hover p { color: rgba(255,255,255,.92); }
  .m-adv li:hover img { filter: brightness(0) invert(1); }
  .m-res li a:hover { background: #f0f7ff; }
  .m-res li a:hover h3 { color: #2e82ea; }
  .m-coop a:hover { background: #eaf5ff; border-color: #57a2ff; }
  .m-list-card:hover { box-shadow: 0 2px 10px rgba(0,150,255,.2); transform: translateY(-2px); }
  .m-list-card:hover h3 { color: #0b5bbd; }  .m-cate-content a:hover { color: #2e82ea; }
  .m-foot-nav a:hover { color: #e5bf93; }
  .m-menu-row .m-menu-link:hover { color: #0096ff; }
  .m-sub a:hover { color: #0096ff; background: #eef7ff; }
  .m-subnav a:hover { background: #eaf5ff; border-color: #57a2ff; color: #0096ff; }
}

/* 我们的资源 —— 对齐 PC .zy */
.m-res-text p { font-size: 14px; line-height: 1.8; color: #666; margin-bottom: 10px; word-break: break-all; }
.m-res-text b { color: #333; }

/* 合作流程 —— 对齐 PC .link */
.m-coop { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-coop a { display: flex; align-items: center; gap: 8px; background: #f8fdff; border: 1px solid #e7e8e9; border-radius: 6px; padding: 10px; }
.m-coop img { width: 34px; height: 34px; object-fit: contain; flex: none; }
.m-coop span { font-size: 13px; color: #333; }

/* 栏目页 */
.m-banner { margin-bottom: 8px; border-radius: 8px; overflow: hidden; background: #fff; }
.m-banner img { width: 100%; height: 140px; object-fit: cover; }
.m-cate-title { font-size: 18px; color: #000; margin: 6px 0 10px; }
.m-cate-title small { font-size: 12px; color: #999; font-weight: normal; margin-left: 6px; }
.m-subnav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.m-subnav a { background: #fff; border: 1px solid #e7e8e9; color: #666; border-radius: 14px; padding: 5px 12px; font-size: 13px; }
.m-subnav a.on { background: #0096ff; border-color: #0096ff; color: #fff; }
.m-crumb { color: #999; font-size: 12px; margin-bottom: 6px; }
.m-crumb a { color: #2e82ea; }
.m-crumb span { margin: 0 2px; }
.m-empty { text-align: center; color: #999; font-size: 13px; padding: 26px 0; background: #fff; border-radius: 8px; }

/* 单页内容（富文本，对齐 PC about/contact/partner） */
.m-cate-content { font-size: 15px; line-height: 1.8; color: #333; word-break: break-all; background: #fff;
                  border-radius: 8px; padding: 14px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.m-cate-content img { max-width: 100% !important; height: auto !important; margin: 8px 0; border-radius: 4px; }
.m-cate-content p { margin: 8px 0; }

/* 图文列表（对齐 PC campus 列表） */
.m-list { margin-bottom: 6px; }
.m-list-card { background: #fff; border-radius: 8px; padding: 10px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.m-list-card a { display: flex; gap: 10px; }
.m-list-thumb { width: 104px; height: 74px; object-fit: cover; border-radius: 6px; flex: none; background: #eef4f8; }
.m-list-bd { flex: 1; min-width: 0; }
.m-list-bd h3 { font-size: 15px; font-weight: 600; color: #000; line-height: 1.4; }
.m-list-meta { color: #999; font-size: 12px; margin: 4px 0; }
.m-list-desc { color: #666; font-size: 13px; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* 文章详情 —— 对齐 PC view.html */
.m-art-title { font-size: 19px; line-height: 1.4; color: #000; margin-bottom: 8px; }
.m-art-meta { color: #999; font-size: 12px; margin-bottom: 10px; }
.m-art-img { margin-bottom: 10px; }
.m-art-img img { width: 100%; border-radius: 6px; }
.m-art-content { font-size: 15px; line-height: 1.85; color: #333; word-break: break-all; background: #fff;
                 border-radius: 8px; padding: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.m-art-content img { max-width: 100% !important; height: auto !important; margin: 8px 0; border-radius: 4px; }
.m-art-content p { margin: 8px 0; }
.m-rel { margin-top: 10px; background: #fff; border-radius: 8px; padding: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.m-rel h3 { font-size: 15px; color: #000; margin-bottom: 6px; }
.m-prevnext { margin-top: 10px; font-size: 13px; color: #666; line-height: 2; background: #fff; border-radius: 8px; padding: 12px; }
.m-prevnext a { color: #2e82ea; }

/* 分页 */
.m-page { text-align: center; margin-top: 12px; }
.m-page a, .m-page span { display: inline-block; padding: 5px 11px; margin: 0 2px; background: #fff;
                          border: 1px solid #e7e8e9; border-radius: 4px; color: #666; font-size: 13px; }
.m-page .current { background: #0096ff; border-color: #0096ff; color: #fff; }

/* 底部 —— 对齐 PC .footer：footbg.jpg 蓝色人像底图（1920x608，主色 #1678f3），白字，浅金小标题 #e5bf93 */
.m-foot { background-color: #1678f3;
          background-image: url(/template/default/images/footbg.jpg);
          background-repeat: repeat-x;
          background-position: center top;
          color: #fff; font-size: 12px; text-align: center;
          padding: 18px 12px 20px; line-height: 1.8; margin-top: 10px; }
.m-foot-brand { margin-bottom: 14px; }
.m-foot-brand img { height: 34px; margin: 0 auto; }
.m-foot-info { display: flex; flex-direction: column; gap: 10px; text-align: left; margin-bottom: 14px; }
.m-foot-info h4 { font-size: 13px; color: #e5bf93; letter-spacing: 1px; margin-bottom: 3px; font-weight: 600; }
.m-foot-info p { font-size: 12px; color: #fff; line-height: 1.7; }
.m-foot-qr { display: flex; justify-content: center; gap: 22px; margin-bottom: 14px; }
.m-foot-qr img { width: 86px; height: 86px; background: #fff; border-radius: 6px; padding: 4px; }
.m-foot-qr p { font-size: 11px; margin-top: 4px; color: #fff; }
.m-foot-nav { margin-bottom: 8px; border-top: 1px solid rgba(255,255,255,.35); padding-top: 10px; }
.m-foot-nav a { display: inline-block; padding: 2px 5px; color: #fff; }
.m-foot-copy { font-size: 11px; color: rgba(255,255,255,.85); }
