/**
 * 移动端样式，仅当 mobile-detect.js 在 <html> 上加了 is-mobile 类时生效。
 * PC 端不受影响：本文件所有规则都限定在 html.is-mobile 下。
 *
 * 目录：
 *   1. 公共（基础 / 顶部导航 / 页脚）
 *   2. index.html 首页
 *   3. video.html 视频庭审
 *   4. guide.html 立案指引
 */

/* ==================== 1. 公共 ==================== */

html.is-mobile,
html.is-mobile body {
  min-width: 0;
  -webkit-text-size-adjust: 100%;
}

html.is-mobile .container {
  overflow-x: hidden;
}

/* .header 只负责占位：导航栏已脱离文档流固定在顶部（见下），
   这里用 padding-top 把 NAV_HEIGHT 的空间留出来，内容不会钻到导航栏底下。 */
html.is-mobile .header {
  height: auto;
  padding: 64px 0 0;
}

/* 顶部导航固定悬浮在顶部。
   固定定位是为了让它脱离 .header 的高度限制——用 sticky 的话，
   生效范围只到父元素 .header 的底部（首页 524px、内页仅 92px），
   滚过去就跟着消失了。
   高度写死 64px（配 padding-top: 64px）是为了让占位高度确定，
   否则导航栏换行与否会改变高度，导致内容错位或跳动。
   内部用 flex-wrap + align-content: center：宽屏一行、窄屏两行，
   两种情况都在 64px 内垂直居中，不会溢出。 */
html.is-mobile .header-nav {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;

  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  justify-content: space-between;

  box-sizing: border-box;
  width: auto;
  height: 64px;
  margin: 0;
  padding: 0 12px;

  gap: 4px 12px;

  background-color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}

html.is-mobile .header-title-img {
  display: block;
  height: 28px;
}

html.is-mobile .header-to-guide {
  float: none;
  font-size: 13px;
  line-height: 28px;
  white-space: nowrap;
}

html.is-mobile .header-to-guide + .header-to-guide {
  margin-right: 0;
}

html.is-mobile .footer-inner {
  width: auto;
  padding: 0 16px;
}

html.is-mobile .footer-power {
  line-height: 24px;
}

/* 信用认证标识单独占一行居中 */
html.is-mobile .other-power {
  display: block;
  width: 103px;
  margin: 6px auto 0;
}

/* ==================== 2. index.html 首页 ==================== */

html.is-mobile .header {
  height: auto;
  padding-bottom: 24px;
  background: url(./imgs/banner.jpg) center top / cover no-repeat;
}

html.is-mobile .header::before {
  display: none;
}

/* 入口卡片 */
html.is-mobile .enter-block {
  width: auto;
  height: auto;
  margin: 24px 16px 0;
  padding-bottom: 24px;
}

html.is-mobile .enter-bg {
  display: none;
}

html.is-mobile .enter-title {
  font-size: 40px;
  line-height: 56px;
  padding-top: 24px;
}

html.is-mobile .enter-btns-line {
  margin-top: 8px;
}

html.is-mobile .enter-btns {
  display: block;
}

html.is-mobile .enter-btn {
  display: block;
  width: auto;
  margin: 12px 20px;
}

/* 文书查询码 */
html.is-mobile .doc-search-block {
  padding: 20px 16px 0;
}

html.is-mobile .doc-search {
  display: flex;
  align-items: center;
  width: auto;
  margin: 0;
  padding-left: 12px;
}

html.is-mobile .doc-search::before {
  display: none;
}

html.is-mobile .doc-search-label {
  margin-right: 6px;
  padding-left: 0;
  font-size: 14px;
  white-space: nowrap;
}

html.is-mobile .doc-search-input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  font-size: 14px;
}

html.is-mobile .doc-search-btn {
  float: none;
  padding: 0 12px;
  font-size: 14px;
}

/* 通用区块 */
html.is-mobile .block-title {
  padding-top: 40px;
  font-size: 22px;
}

html.is-mobile .block-icon-box {
  height: 70px;
}

html.is-mobile .block-text {
  margin-top: 20px;
  padding: 0 16px;
  line-height: 26px;
}

/* 正文里的硬换行是按 1280px 宽度排的，窄屏改为自然折行 */
html.is-mobile .block-text br {
  display: none;
}

html.is-mobile .block-one {
  height: auto;
  padding-bottom: 40px;
}

/* 五大亮点 */
html.is-mobile .block-two {
  height: auto;
  padding-bottom: 40px;
}

html.is-mobile .blcok-two-title {
  padding-top: 40px;
  font-size: 22px;
}

html.is-mobile .block-two-cards {
  width: auto;
  margin: 20px 16px 0;
}

html.is-mobile .block-two-card {
  float: none;
  width: auto;
  height: auto;
  margin: 0 0 16px;
  /* 顶部留白：20px padding + 标题圆的 30px margin-top */
  padding: 20px 0 108px;
}

html.is-mobile .block-two-card-title {
  margin: 30px auto 10px;
}

html.is-mobile .block-two-card-sub {
  padding: 0 20px;
}

html.is-mobile .block-two-card-bg,
html.is-mobile .block-two-card-bg-t {
  left: 0;
  width: 100%;
}

/* 第 3 张卡片（机构）原本用的是 t-line.png，移动端统一成和其它卡片一致的 line.png */
html.is-mobile .block-two-card-bg-t {
  background: url(./imgs/line.png) no-repeat center bottom;
  background-size: 100% auto;
}

/* 移动仲裁 / 三端展示：改为图文上下堆叠 */
html.is-mobile .block-three-list {
  width: auto;
  margin: 30px 16px 60px;
}

html.is-mobile .block-three-li {
  float: none;
  width: auto;
  height: auto;
  margin: 0 0 16px;
  padding: 20px 16px;
}

html.is-mobile .block-three-li-title {
  position: static;
  margin-bottom: 12px;
  font-size: 22px;
}

html.is-mobile .block-three-pic1,
html.is-mobile .block-three-pic3 {
  position: static;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
}

html.is-mobile .block-three-pic2 {
  position: static;
  display: block;
  width: 160px;
  height: auto;
  margin: 0 auto;
}

/* ==================== 3. video.html 视频庭审 ==================== */

html.is-mobile .header {
  height: auto;
}

/* 主视觉：内容改为文档流，背景图压一层深色渐变保证白字可读 */
html.is-mobile .banner {
  position: relative;
  height: auto;
  padding: 32px 0 40px;
  background: url(./imgs/video-banner.jpg) center / cover no-repeat;
}

html.is-mobile .banner::before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  content: '';

  background-image: linear-gradient(160deg, rgba(6, 26, 64, .9) 0%, rgba(6, 26, 64, .68) 100%);
}

html.is-mobile .banner-inner {
  position: relative;
  z-index: 1;

  width: auto;
  height: auto;
  margin: 0;
  padding: 0 16px;
}

html.is-mobile .banner-title {
  position: static;

  display: block;

  font-size: 32px;
  line-height: 48px;
  letter-spacing: 2px;
}

html.is-mobile .banner-content {
  position: static;

  display: block;

  width: auto;
  margin-top: 12px;

  font-size: 15px;
  line-height: 26px;
  letter-spacing: 0;
}

html.is-mobile .banner-content-sub {
  font-size: 14px;
}

html.is-mobile .download-btn {
  position: static;

  display: block;

  width: auto;
  max-width: 320px;
  margin-top: 16px;

  font-size: 14px;
}

html.is-mobile .download-btn + .download-btn {
  top: auto;
  margin-top: 10px;
}

html.is-mobile .banner-ew-container {
  position: static;

  display: flex;
  justify-content: flex-start;

  width: auto;
  margin-top: 20px;

  gap: 20px;
}

html.is-mobile .banner-ew {
  width: 110px;
  height: auto;
}

/* 指引下载条 */
html.is-mobile .book-line {
  width: auto;
  height: auto;
  margin: 20px 16px 0;
  padding: 12px 16px;

  line-height: 24px;
}

html.is-mobile .book-cell {
  display: block;

  margin-right: 0;

  font-size: 14px;
}

html.is-mobile .book-cell + .book-cell {
  margin-top: 10px;
}

/* 功能特点 */
html.is-mobile .info-block {
  width: auto;
  height: auto;
  margin: 0;
  padding: 32px 16px 40px;
}

html.is-mobile .info-img {
  position: static;

  display: block;

  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto;
}

html.is-mobile .info-text-block {
  position: static;

  width: auto;
  margin-top: 24px;

  font-size: 15px;
  line-height: 26px;
}

html.is-mobile .info-text-value {
  margin-bottom: 20px;
}

/* ==================== 4. guide.html 立案指引 ==================== */

html.is-mobile .header {
  height: auto;
}

html.is-mobile .article {
  width: auto;
  min-height: 0;
  margin: 12px;
  padding: 20px 16px;
}

html.is-mobile .article-inner {
  width: auto;
}

html.is-mobile .article-title {
  font-size: 24px;
  line-height: 34px;
}

html.is-mobile .step-title {
  font-size: 20px;
}

html.is-mobile p {
  font-size: 15px;
  line-height: 26px;
}

html.is-mobile .pic {
  width: auto;
}
