/* 万站汇 SEO 综合查询页 移动端适配（<=768px） */
@media (max-width: 768px) {
  html, body { width: 100% !important; min-width: 0 !important; overflow-x: hidden; }
  img, iframe { max-width: 100% !important; height: auto !important; }
  input, textarea, select { max-width: 100%; box-sizing: border-box; }

  /* 外层表格改为块级，避免 tbody/td 被内容撑到 1000px */
  .index_adbox { width: auto !important; height: auto !important; padding: 0 !important; box-sizing: border-box; }
  .index_adbox table, .index_adbox tbody, .index_adbox tr, .index_adbox td {
    display: block !important; width: 100% !important; max-width: 100% !important; box-sizing: border-box;
  }
  .index_adbox img { width: auto !important; max-width: 100% !important; height: auto !important; }

  .main, .sobox, .cz, .cz_content, .tdk, .tdkbox, .icpbox, .icpbox_content,
  .lszlbox, .lszlbox_content, .lszlbox_left, .cz_left, .tdk_left, .icp_title {
    width: auto !important; max-width: 100% !important; height: auto !important; float: none !important; box-sizing: border-box;
  }

  /* SEO 综合查询框 */
  .main { padding: 0 10px; }
  .sobox {
    height: auto !important; margin: 10px auto 0 !important; padding: 10px;
    background: #fff; border: 1px solid #e8e8e8; display: flex; flex-direction: column;
  }
  .so_left {
    width: auto !important; height: auto !important; float: none !important; margin: 0 auto !important;
    border: 0; text-align: center; font-size: 14px; line-height: 24px;
  }
  .so_left img {
    width: 42px !important; height: 40px !important; max-width: 42px !important; max-height: 40px !important;
    vertical-align: middle; margin-right: 6px;
  }
  .so_right { width: auto !important; height: auto !important; float: none !important; border: 0; margin-top: 8px; }
  .so_right form { display: flex; width: 100%; box-sizing: border-box; }
  .main .sobox .soso {
    flex: 1 1 auto; min-width: 0; float: none; width: auto !important; height: 36px !important;
    padding: 0 8px !important; box-sizing: border-box; border: 1px solid #ccc;
  }
  .main .sobox .btn { flex: 0 0 70px; width: 70px !important; height: 38px !important; padding: 0; float: none; }

  /* 权重信息 */
  .cz { background: #fff; }
  .cz_left { margin: 0 !important; padding: 8px 12px; }
  .cz_content { padding: 0 8px 8px; background: #fff; }
  .cz_content ul { display: flex; flex-wrap: wrap; width: auto !important; margin: 0 !important; padding: 0; }
  .cz_content ul li {
    width: 50% !important; height: auto !important; float: none !important; margin: 0 !important;
    line-height: 26px; font-size: 12px; box-sizing: border-box; padding-left: 4px;
  }
  .cz_content ul img, .cz_content ul li img {
    width: 55px !important; height: 22px !important; max-width: none !important; max-height: 22px !important;
    vertical-align: middle; margin-right: 1px;
  }

  /* 页面 TDK 信息 */
  .tdk { background: #fff; }
  .tdk_left { margin: 0 !important; padding: 8px 12px; }
  .tdkbox { padding: 8px 10px; background: #fff; display: flex; flex-wrap: wrap; }
  .tdkbox_left { width: 100% !important; height: auto !important; float: none !important; border: 0; text-align: center; margin-bottom: 8px; overflow: visible; }
  .tdkbox_left img {
    display: block; width: 180px !important; max-width: 180px !important; height: auto !important;
    max-height: 180px !important; margin: 0 auto;
  }
  .tdkbox_zj {
    width: 38% !important; height: auto !important; float: none !important; border: 0;
    border-right: 1px solid #e8e8e8; box-sizing: border-box;
  }
  .tdkbox_right {
    width: 62% !important; height: auto !important; float: none !important; border: 0;
    box-sizing: border-box; word-break: break-all; overflow: visible;
  }
  .tdkbox_zj ul, .tdkbox_right ul { margin: 0; padding: 0; }
  .tdkbox_zj ul { padding-right: 6px; }
  .tdkbox_right ul { padding-left: 8px; }
  .tdkbox_zj ul li, .tdkbox_right ul li {
    height: auto !important; min-height: 30px; line-height: 20px; padding: 5px 0;
    border-bottom: 1px solid #eee; font-size: 12px; overflow: visible;
  }
  .tdkbox_zj ul li { font-weight: bold; }
  .tdkbox_right ul li { font-weight: normal; }

  /* 备案 / IP 信息 */
  .icpbox { background: #fff; }
  .icp_title { padding: 8px 12px; }
  .icpbox_content { padding: 8px 10px; background: #fff; overflow: hidden; }
  .icpbox_left, .ipbox_left {
    width: 42% !important; height: auto !important; float: left !important;
    border: 0; border-right: 1px solid #eee; box-sizing: border-box;
  }
  .icpbox_right, .ipbox_right {
    width: 58% !important; height: auto !important; float: left !important;
    border: 0; box-sizing: border-box; word-break: break-all;
  }
  .ipbox_left { clear: left; }
  .icpbox_left ul, .icpbox_right ul, .ipbox_left ul, .ipbox_right ul { margin: 0; padding: 0; }
  .icpbox_left ul li, .icpbox_right ul li, .ipbox_left ul li, .ipbox_right ul li {
    height: auto !important; min-height: 26px; line-height: 18px; padding: 4px;
    font-size: 12px; border-bottom: 1px solid #eee;
  }
  .icpbox_right ul li, .ipbox_right ul li { font-weight: normal; }

  /* 历史记录 */
  .lszlbox { margin-bottom: 20px !important; background: #fff; padding-bottom: 8px; }
  .lszlbox_left { margin: 0 !important; padding: 8px 12px; }
  .lszlbox_content { padding: 0 10px; }
  .lszlbox_content ul { display: flex; flex-wrap: wrap; margin: 0; padding: 0; }
  .lszlbox_content ul li {
    width: 50% !important; height: auto !important; float: none !important; margin: 0 !important;
    line-height: 28px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    list-style: none; box-sizing: border-box;
  }

  /* 去掉备案/IP 末尾空行 */
  .icpbox_left ul li:empty, .icpbox_right ul li:empty,
  .ipbox_left ul li:empty, .ipbox_right ul li:empty { display: none; }
}
