/* ==========================================================================
   Wash 模板 — 响应式增强
   断点：mobile(<768px) / tablet(768-1024px) / desktop(>1024px)
   ========================================================================== */

/* --- 移除旧的硬性最小宽度限制 --- */
body {
  min-width: 0 !important;
}

/* ==========================================================================
   平板 (768px - 1024px)
   ========================================================================== */
@media screen and (max-width: 1024px) {
  .container {
    padding: 0 var(--space-2);
  }

  /* 两列网格 */
  .index-news .left,
  .index-news .right,
  .scoend .left,
  .scoend .right {
    width: 49% !important;
  }
}

/* ==========================================================================
   移动端 (<768px)
   ========================================================================== */
@media screen and (max-width: 768px) {
  /* 三段式垂直堆叠 */
  .index-news .left,
  .index-news .right,
  .scoend .left,
  .scoend .right,
  .article_content .left,
  .article_content .right,
  .list-container {
    width: 100% !important;
    float: none !important;
    margin: 0 0 var(--space-2) 0 !important;
  }

  /* 容器全宽 */
  .container {
    padding: 0 var(--space-2);
  }

  /* 头部简化 */
  .header-center {
    flex-direction: column;
    gap: var(--space-1);
  }
  .header-center-banner {
    display: none;
  }
  .header-center-search {
    width: 100%;
  }
  .header-center-search form {
    width: 100%;
  }
  .header-center-search input {
    width: 100%;
    box-sizing: border-box;
  }

  /* 顶部栏简化 */
  .header-top .tj,
  .header-top .tg {
    width: 100% !important;
    text-align: center;
  }
  .header-top .tg {
    display: none;
  }

  /* 汉堡菜单 */
  .header-nav .menu {
    display: block;
    padding: 12px var(--space-2);
    cursor: pointer;
    font-size: .9375rem;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
  }
  .header-nav-main .layui-nav {
    display: none;
  }
  .header-nav-main .layui-nav .layui-nav-item {
    display: block;
    width: 100%;
  }

  /* 卡片单列 */
  .indexnewss-ad li {
    width: 100% !important;
    margin-bottom: var(--space-2);
  }

  /* 按钮最小触控区域 44x44px */
  .list-btn a,
  .go,
  .down span a,
  .article-down a {
    min-height: 44px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  /* 热榜选项卡横向滚动 */
  .types,
  .type {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  /* 图片预留比例防 CLS */
  .info-img img,
  .list-img img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    width: 100%;
  }

  /* 隐藏右侧栏（文章页） */
  .article_content .right {
    display: none !important;
  }

  /* 评论区输入框全宽 */
  #qqhao {
    width: 100% !important;
    margin-right: 0 !important;
  }

  /* 悬浮广告缩小 */
  .xfgg {
    width: 160px !important;
  }
  .tpclj img {
    height: 120px !important;
  }
}

/* ==========================================================================
   超小屏幕 (<480px)
   ========================================================================== */
@media screen and (max-width: 480px) {
  .article-title {
    font-size: 1.25rem !important;
    line-height: 1.5 !important;
  }

  .article-content {
    font-size: .9375rem;
  }

  /* 下载按钮纵向排列 */
  .article-down a {
    display: block !important;
    width: 100%;
    margin: 0 0 var(--space-1) 0 !important;
    text-align: center;
  }
}
