/* ===== 网站地图（Site Map）页面自适应 ===== */

/* ---------- 1. 宽屏基础：最大宽度1200，居中 ---------- */
.w {
  width: 100% !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
  padding: 0 10px !important;
}

.Dg {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  line-height: 1.8 !important;
  padding: 8px 0 !important;
  font-size: 13px !important;
  box-sizing: border-box !important;
}
.Dg a {
  font-size: 13px !important;
  margin: 2px 4px !important;
}

/* ---------- 2. 小屏（≤768px）优化 ---------- */
@media screen and (max-width: 768px) {
  /* ---- 主容器 ---- */
  .w {
    padding: 0 8px !important;
  }

  /* ---- 面包屑 ---- */
  .Dg {
    font-size: 12px !important;
    padding: 6px 0 !important;
    height: auto !important;
    line-height: 1.6 !important;
    white-space: normal !important;
    word-break: break-word;
  }
  .Dg a {
    font-size: 12px !important;
    display: inline-block;
    margin: 2px 3px !important;
    white-space: normal !important;
    word-break: break-word;
  }

  /* ---- 每个区块 .maplist ---- */
  .maplist {
    width: 100% !important;
    max-width: 100%;
    margin-bottom: 10px !important;
    padding: 0 0 8px 0 !important;
    background: #fff;
    overflow: hidden;
    box-sizing: border-box;
    border-bottom: 1px solid #eee;
  }
  .maplist:last-child {
    border-bottom: none;
  }

  /* ---- 区块标题 .classname ---- */
  .maplist .classname {
    display: block;
    width: 100% !important;
    height: auto !important;
    min-height: 36px;
    line-height: 1.6 !important;
    padding: 8px 12px !important;
    font-size: 16px !important;
    font-weight: bold;
    background: #f5f7fa;
    border-radius: 4px;
    margin-bottom: 6px;
    box-sizing: border-box;
  }
  .maplist .classname a {
    font-size: 16px !important;
    display: inline-block;
    color: #333;
    word-break: break-word;
  }
  .maplist .classname a:hover {
    color: #cc0000;
  }

  /* ---- 子栏目链接 <span> ---- */
  .maplist span {
    float: none !important;
    display: inline-block !important;
    white-space: normal !important;
    height: auto !important;
    min-height: 30px;
    line-height: 1.6 !important;
    padding: 4px 10px !important;
    margin: 3px 4px !important;
    background: #f8fafc;
    border-radius: 4px;
    border: 1px solid #e8ecf0;
    box-sizing: border-box;
    vertical-align: middle;
    background-image: none !important;
    background: #f8fafc !important;
  }
  .maplist span a {
    font-size: 14px !important;
    color: #444;
    display: inline-block;
    word-break: break-word;
    white-space: normal !important;
  }
  .maplist span a:hover {
    color: #cc0000;
  }

  /* ---- 清浮动 ---- */
  .clear {
    clear: both;
    height: 0;
    overflow: hidden;
  }
}

/* ---------- 3. 极小屏（≤480px）进一步优化 ---------- */
@media screen and (max-width: 480px) {
  .w {
    padding: 0 5px !important;
  }

  .Dg {
    font-size: 11px !important;
    padding: 4px 0 !important;
  }
  .Dg a {
    font-size: 11px !important;
    margin: 1px 2px !important;
  }

  .maplist {
    margin-bottom: 6px !important;
    padding-bottom: 4px !important;
  }

  .maplist .classname {
    font-size: 15px !important;
    padding: 6px 10px !important;
    min-height: 32px;
  }
  .maplist .classname a {
    font-size: 15px !important;
  }

  .maplist span {
    padding: 3px 8px !important;
    margin: 2px 3px !important;
    min-height: 26px;
    font-size: 13px !important;
    border-radius: 3px;
  }
  .maplist span a {
    font-size: 13px !important;
  }
}
