/* 商业中国网 · 手机端布局修复 2026-08-25 */

@media (max-width: 959px) {
  html,
  body {
    overflow-x: hidden !important;
    max-width: 100% !important;
  }

  .wrap {
    max-width: 100% !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
  }

  /* ----- 顶栏：压缩为单行门户式 ----- */
  .gov-topbar .wrap {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 12px !important;
    gap: 8px !important;
  }

  .gov-logo {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    gap: 8px !important;
    max-width: 42% !important;
  }

  .logo-icon {
    width: 36px !important;
    height: 36px !important;
    flex-shrink: 0 !important;
  }

  .logo-sitename-cn,
  .sitename-cn {
    font-size: 17px !important;
    letter-spacing: 2px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  .logo-sitename-en,
  .sitename-en {
    display: none !important;
  }

  .topbar-right {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    gap: 8px !important;
    justify-content: flex-end !important;
  }

  .topbar-date,
  .topbar-sep,
  .topbar-link {
    display: none !important;
  }

  .search-box {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    border-radius: 18px !important;
  }

  .search-box input {
    width: 100% !important;
    min-width: 0 !important;
    padding: 6px 12px !important;
    font-size: 14px !important;
  }

  .search-box button {
    padding: 6px 14px !important;
    font-size: 13px !important;
    flex-shrink: 0 !important;
  }

  /* ----- 导航：横向滑动 ----- */
  .gov-nav {
    position: sticky !important;
    top: 0 !important;
    z-index: 200 !important;
  }

  .gov-nav .wrap {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 0 4px !important;
  }

  .gov-nav .wrap::-webkit-scrollbar {
    display: none !important;
  }

  .gov-nav a {
    flex: 0 0 auto !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
  }

  .gov-nav a.active::after {
    left: 14px !important;
    right: 14px !important;
  }

  /* ----- 快讯条：简化 ----- */
  .gov-ticker .wrap {
    height: 32px !important;
    gap: 8px !important;
  }

  .gov-ticker .badge {
    font-size: 10px !important;
    padding: 2px 8px !important;
  }

  .gov-ticker marquee {
    font-size: 12px !important;
  }

  /* ----- 头条轮播 ----- */
  .gov-headline {
    padding: 12px 0 !important;
  }

  .headline-main {
    flex-direction: column !important;
    gap: 12px !important;
  }

  .headline-left {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  #gov-carousel {
    height: calc(100vw * 9 / 16) !important;
    min-height: 180px !important;
    max-height: 240px !important;
  }

  .headline-left .hl-img {
    height: 100% !important;
    min-height: 180px !important;
  }

  .headline-left .hl-img .caption h2 {
    font-size: 15px !important;
    line-height: 1.35 !important;
  }

  .headline-right .hl-title {
    font-size: 17px !important;
    margin-bottom: 10px !important;
    padding-left: 10px !important;
  }

  .headline-right .hl-list li {
    font-size: 14px !important;
    padding: 4px 0 !important;
  }

  .carousel-dots {
    bottom: 10px !important;
    right: 10px !important;
  }

  /* ----- 主内容区 ----- */
  .gov-main .wrap {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .col-main,
  .col-side {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .news-block {
    padding: 14px 12px !important;
    margin-bottom: 10px !important;
  }

  .block-hd h3 {
    font-size: 15px !important;
  }

  .card-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .card-item .card-img {
    height: 180px !important;
  }

  .news-row {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .news-row .news-pic {
    flex: none !important;
    width: 100% !important;
    height: 180px !important;
  }

  .news-row .news-info h4 {
    font-size: 15px !important;
  }

  .text-list li {
    font-size: 14px !important;
    gap: 6px !important;
  }

  /* ----- 文章页 ----- */
  .article-wrap {
    padding: 16px 12px !important;
    margin-bottom: 10px !important;
  }

  .article-wrap h1 {
    font-size: 20px !important;
    line-height: 1.45 !important;
  }

  .article-meta {
    font-size: 12px !important;
    line-height: 1.6 !important;
    word-break: break-all !important;
  }

  .article-body {
    font-size: 16px !important;
    line-height: 1.85 !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  .article-body img,
  .article-body figure,
  .article-body .article-figure {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 12px auto !important;
  }

  .article-body figure img {
    width: 100% !important;
  }

  /* ----- 页脚 ----- */
  .gov-footer {
    padding: 24px 12px 16px !important;
  }

  .footer-brand .fname {
    font-size: 18px !important;
    letter-spacing: 4px !important;
  }

  .footer-nav {
    gap: 4px 12px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 959px) {
  html {
    overflow-anchor: none;
  }
}
