/* ============================================
   移动端响应式适配层（≤768px 生效）
   只新增覆盖规则，不修改任何 PC 端样式
   ============================================ */
@media (max-width: 768px) {
  /* ---------- 全局 ---------- */
  body {
    min-width: 0 !important;
    /* 为底部 Tab 栏预留空间（同 kuaiTong h5.scss） */
    padding-bottom: calc(58px + env(safe-area-inset-bottom));
  }

  .container {
    width: 100%;
    padding-top: 50px;
    overflow-x: hidden;
  }

  img {
    max-width: 100%;
    box-sizing: border-box;
  }

  input,
  select,
  textarea {
    font-size: 16px; /* 防止 iOS 聚焦时自动放大页面 */
  }

  /* ---------- 顶部导航（与 kuaiTong H5 顶栏样式统一） ---------- */
  body .pk-header {
    height: 50px !important;
    min-width: 0 !important;
    padding: 0 14px !important;
    padding-top: env(safe-area-inset-top);
    align-items: center;
    gap: 10px;
    background: rgba(5, 10, 24, 0.92) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  body .pk-logo {
    flex: 1;
    width: auto;
    height: 50px;
  }

  body .pk-logo img {
    height: 22px;
  }

  /* 顺序与 kuaiTong 一致：logo → 注册 → 汉堡（汉堡在最右） */
  body .pk-menu-btn {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    margin-left: 0;
    order: 2;
    box-sizing: border-box;
  }

  body .pk-menu-btn i {
    width: 20px;
    border-radius: 2px;
  }

  body .pk-menu-btn i:nth-child(2) {
    width: 14px;
  }

  body .pk-header-right {
    order: 1;
  }

  /* 移动端抽屉遮罩（兄弟节点位于 header 之后） */
  body .pk-mask {
    position: fixed;
    inset: 0;
    background: rgba(6, 10, 24, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 99;
  }

  body .pk-header.menu-open ~ .pk-mask {
    opacity: 1;
    pointer-events: auto;
  }

  /* 抽屉：右侧滑出面板，不占满整屏（对齐 kuaiTong H5Header） */
  body .pk-nav {
    display: flex;
    position: fixed;
    top: 50px;
    left: auto;
    right: 0;
    /* 父级 .pk-header 有 backdrop-filter，会成为 fixed 后代的包含块，
       但 header 满宽贴顶，right/top 语义与视口一致；
       高度用视口单位显式指定，避免相对 50px 高的 header 塌陷 */
    width: min(78vw, 320px);
    height: calc(100vh - 50px);
    height: calc(100dvh - 50px);
    margin: 0;
    padding: 6px 0 30px;
    background: #0b1224;
    color: #e8ecf5;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    transform: translateX(105%);
    transition: transform 0.3s cubic-bezier(0.22, 0.7, 0.3, 1);
    z-index: 99;
  }

  body .pk-header.menu-open .pk-nav {
    transform: translateX(0);
  }

  body .pk-nav-bar {
    height: auto;
    line-height: 1.5;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  body .pk-nav-bar > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 600;
    color: #e8ecf5;
  }

  /* 末尾箭头：普通项灰色 › */
  body .pk-nav-bar > a::after {
    content: '›';
    font-size: 12px;
    color: #57658a;
    transition: transform 0.25s;
  }

  /* 可展开项（javascript:void(0)）箭头提亮，展开时旋转朝下 */
  body .pk-nav-bar > a[href='javascript:void(0)']::after {
    color: #7d8aa5;
  }

  body .pk-nav-bar.open > a::after {
    transform: rotate(90deg);
  }

  /* 触屏无悬停：避免点击后标签粘住红色 hover 态 */
  body .pk-nav-bar:hover > a {
    color: #e8ecf5;
  }

  /* 下拉菜单改为手风琴 */
  body .pk-dropdown {
    display: none !important;
    position: static;
    background: transparent;
    padding: 0 0 10px;
  }

  body .pk-nav-bar.open .pk-dropdown {
    display: block !important;
  }

  body .pk-dropdown-inner {
    display: block;
    padding-left: 0 !important;
  }

  body .pk-menu-list {
    display: block;
    margin-right: 0;
  }

  body .pk-child-title {
    height: auto;
    line-height: 1.6;
    margin-bottom: 0;
    padding: 10px 18px 2px;
  }

  body .pk-child-title a {
    font-size: 13px;
    color: #7d8aa5;
    font-weight: 600;
  }

  /* 标题后的 “>” 图标移动端隐藏 */
  body .pk-child-title i {
    display: none;
  }

  body .pk-menu-item {
    height: auto;
    line-height: 1.5;
    padding: 0;
  }

  body .pk-menu-item a {
    position: relative;
    display: block;
    font-size: 13.5px;
    color: #aeb9cf;
    padding: 10px 18px 10px 28px;
  }

  /* 子项前的圆点（同 kuaiTong d-sub） */
  body .pk-menu-item a::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #3a4a6e;
    transform: translateY(-50%);
  }

  body .pk-header-right .pk-header-phone,
  body .pk-header-right .pk-header-phone-val {
    display: none;
  }

  body .pk-btn-plain,
  body .pk-btn-active {
    min-width: 0;
    font-size: 13px;
    padding: 4px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    line-height: 1.4;
  }

  /* 登录按钮：移动端不展示 */
  body .pk-header-right .pk-btn-active {
    display: none !important;
  }

  /* ---------- 右侧悬浮条：移动端隐藏 ---------- */
  .right-nav {
    display: none !important;
  }

  /* ---------- 首页横幅 ---------- */
  .pictures-show {
    height: 190px;
  }

  .banner-title {
    padding-left: 6% !important;
    padding-right: 6%;
    padding-top: 52px !important;
    font-size: 26px !important;
    line-height: 1.3 !important;
    margin-bottom: 12px !important;
  }

  .banner-desc {
    padding-left: 6% !important;
    padding-right: 6%;
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  /* ---------- 标签导航 ---------- */
  .main-content-nav-block {
    width: 100%;
  }

  .mainContentNac {
    width: 100%;
    height: auto;
    margin: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  .mainContentNac > li > a {
    margin: 0 14px;
    padding: 13px 0;
    font-size: 14px;
    white-space: nowrap;
  }

  .activess {
    font-size: 15px !important;
  }

  /* ---------- 新闻/案例列表 ---------- */
  .main-content-block {
    padding: 16px 0;
  }

  .tables {
    width: auto;
    margin: 0 12px;
    padding: 4px 14px;
    box-sizing: border-box;
  }

  .news-block {
    padding: 12px 0;
  }

  .news-text {
    padding: 0;
  }

  .news-title {
    font-size: 16px;
    line-height: 1.5;
  }

  .news-date {
    display: block;
    padding: 4px 0 8px;
    font-size: 12px;
  }

  .news-msg {
    width: auto;
    height: auto;
    font-size: 13px;
    line-height: 1.7;
    -webkit-line-clamp: 3;
  }

  /* ---------- 详情页（新闻 / 案例，含侧栏） ---------- */
  .main {
    width: 100% !important;
    display: block !important;
    box-sizing: border-box;
    padding: 0 14px;
  }

  .main-left {
    width: 100%;
  }

  .main-right {
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #eee;
  }

  /* 标题/时间多为内联样式，需要 !important 覆盖 */
  .title {
    font-size: 20px !important;
    line-height: 1.5 !important;
    margin-bottom: 8px !important;
    padding-top: 16px !important;
  }

  .time {
    font-size: 13px !important;
    margin: 6px 0 16px !important;
  }

  .main-right > p {
    font-size: 16px !important;
  }

  /* ---------- 富文本正文兜底 ---------- */
  .text {
    margin: 12px 0 28px;
  }

  .text p {
    font-size: 15px;
    line-height: 1.8;
  }

  .text img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block;
    margin: 10px auto;
  }

  .text table {
    display: block;
    width: auto !important;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
  }

  .text h1 {
    font-size: 19px !important;
    line-height: 1.5 !important;
  }

  .text h2 {
    font-size: 17px !important;
    line-height: 1.5 !important;
  }

  .text h3 {
    font-size: 16px !important;
  }

  .text h4 {
    font-size: 15px !important;
  }

  .text blockquote {
    margin: 12px 0;
    padding: 8px 12px;
  }

  /* 百科详情正文（detail.css） */
  .detail-text {
    font-size: 15px;
    line-height: 1.8;
  }

  .detail-text img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
  }

  .detail-text table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* ---------- 上一篇/下一篇 & 推荐阅读 ---------- */
  .article {
    font-size: 13px;
    line-height: 1.8;
    word-break: break-all;
  }

  .article a {
    font-size: 13px;
    word-break: break-all;
  }

  .read li {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.6;
  }

  .read li:before {
    left: -10px;
    top: 8px;
  }

  /* ---------- 百科列表（more） ---------- */
  .nav-tag {
    padding: 14px 0;
    line-height: 1.8;
    font-size: 12px;
  }

  .main-title {
    font-size: 18px !important;
    height: auto !important;
    line-height: 1.5 !important;
    padding: 10px 14px !important;
  }

  .main-ul {
    padding: 0 14px;
  }

  .main-li-title {
    font-size: 17px;
    line-height: 1.5;
    margin-top: 24px;
  }

  .main-li-footer {
    display: block;
    line-height: 1.8;
  }

  .main-li-footer-right {
    margin-top: 6px;
  }

  .li-text-tag {
    display: inline-block;
    margin-right: 12px;
    line-height: 1.8;
  }

  /* ---------- 百科首页（分类卡片 / 热门标签） ---------- */
  .content-box {
    width: 100%;
    box-sizing: border-box;
    padding: 0 12px;
  }

  .list-ul {
    display: block;
  }

  .list-li {
    display: block;
    width: auto;
    box-sizing: border-box;
    border-top: 12px solid #f6fafd;
    padding: 14px;
  }

  .list-li:first-child {
    border-top: none;
  }

  .li-title-text {
    font-size: 18px;
  }

  .line-text,
  .line-text a {
    font-size: 14px;
    line-height: 1.8;
  }

  .hot-block {
    width: auto;
    margin: 12px;
  }

  .hot-title-text,
  .hot-title {
    font-size: 18px;
  }

  .tag,
  .tag a {
    font-size: 14px;
    line-height: 2;
  }

  /* ---------- 百科详情侧栏/上一篇 ---------- */
  .detail-title {
    font-size: 20px;
    line-height: 1.5;
  }

  .detail-time {
    font-size: 13px;
    line-height: 1.5;
    margin: 10px 0 20px;
  }

  .main-list {
    padding: 20px 14px;
  }

  .main-list-right {
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #eee;
  }

  .prev-title,
  .next-title,
  .prev-text,
  .next-text {
    font-size: 13px !important;
    line-height: 1.7 !important;
    word-break: break-all;
  }

  /* ---------- 分页控件（css1） ---------- */
  .pageParent {
    padding: 24px 0 40px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .selPa {
    display: none;
  }

  .button {
    height: 28px;
    line-height: 28px;
    padding: 0 0.6rem;
    font-size: 12px;
  }

  .jumps {
    width: 20px;
    padding: 0.2rem 0.3rem;
    font-size: 12px;
  }

  /* ---------- 页脚（对齐 kuaiTong H5Footer 样式） ---------- */
  body .pk-footer {
    background: #0a1122;
    color: #98a3ba;
    display: block;
    min-width: 0 !important;
    padding: 26px 16px 20px;
  }

  body .pk-footer-container {
    display: block;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 0;
  }

  body .pk-footer-left {
    display: block;
  }

  body .pk-footer-left-menu {
    display: block;
    font-size: 12.5px;
  }

  body .pk-footer-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    margin-right: 0;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  body .pk-footer-menu-title {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #dfe6f2;
    font-weight: 600;
    margin-bottom: 4px;
    min-height: 0;
    line-height: 1.5;
  }

  body .pk-footer-menu-title::before {
    content: '';
    width: 3px;
    height: 11px;
    border-radius: 2px;
    background: #ff2840;
    flex: none;
  }

  body .pk-footer-menu-item {
    margin: 0;
    line-height: 1.8;
    font-size: 12.5px;
  }

  body .pk-footer-menu-item a {
    font-size: 12.5px;
    color: #98a3ba;
  }

  body .pk-footer-menu-item a:hover {
    color: #e1251b;
  }

  body .pk-footer-contact {
    width: 100%;
    margin-top: 0;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  body .pk-footer-contact .pk-footer-menu-title {
    margin-top: 16px;
    margin-bottom: 12px;
  }

  body .pk-footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    height: auto;
    padding: 0;
    margin-bottom: 9px;
    color: #98a3ba;
    font-size: 12.5px;
    line-height: 1.7;
  }

  body .pk-footer-contact-item:last-child {
    margin-bottom: 0;
  }

  body .pk-footer-contact-item img {
    width: 15px;
    height: auto;
    margin-top: 3px;
    opacity: 0.75;
    flex: none;
  }

  body .pk-footer-contact-item span {
    margin-left: 0;
    font-size: 12.5px;
    color: #c6d0e2;
    word-break: break-all;
  }

  body .pk-footer-contact-item.pk-phone span {
    font-size: 12.5px;
    color: #c6d0e2;
  }

  body .pk-footer-right {
    display: flex;
    gap: 22px;
    margin-top: 0;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    justify-content: flex-start;
  }

  body .pk-footer-wx {
    width: 88px;
    margin-right: 0;
    text-align: center;
  }

  body .pk-footer-wx img {
    width: 88px;
    height: 88px;
    border-radius: 8px;
    background: #fff;
    padding: 5px;
    box-sizing: border-box;
    margin: 0 auto;
    display: block;
  }

  body .pk-footer-wx-text {
    display: block;
    font-size: 11px;
    color: #98a3ba;
    margin-top: 7px;
  }

  body .pk-copyright {
    background: #0a1122;
    min-width: 0 !important;
    height: auto;
    display: block;
    padding: 15px 16px 20px;
    font-size: 10.5px;
    color: #67748f;
  }

  body .pk-copyright-content {
    display: block;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
  }

  body .pk-copyright-info {
    white-space: normal;
    font-size: 10.5px;
    line-height: 2;
    color: #67748f;
  }

  body .pk-copyright-links {
    margin: 10px 0 0;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 10.5px;
  }

  body .pk-copyright-separator {
    color: #3a4661;
  }

  body .pk-copyright-link {
    font-size: 10.5px;
    line-height: 1.6;
    color: #67748f;
  }

  body .pk-copyright-badge {
    width: 12px;
    height: 12px;
  }

  /* ---------- 底部 Tab 栏（对齐 kuaiTong H5Tabbar） ---------- */
  body .pk-tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid #eef0f4;
    padding-bottom: env(safe-area-inset-bottom);
    max-width: 640px;
    margin: 0 auto;
  }

  body .pk-tabbar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 0 7px;
    font-size: 10.5px;
    color: #606266;
    text-decoration: none;
  }

  body .pk-tabbar a svg {
    width: 21px;
    height: 21px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* 中间项：在线咨询红色加粗 */
  body .pk-tabbar a.pk-tabbar-main {
    color: #e1251b;
    font-weight: 700;
  }
}
