/* 协议页面 - 应用内 WebView 阅读优化（表格保持表格布局） */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  overflow-x: clip;
  max-width: 100vw;
}

div.Section0 {
  padding: 20px 18px 48px !important;
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 auto;
  overflow-x: clip;
}

/* 覆盖 Word 导出的固定 pt 字号，正文加大、行距放宽 */
.Section0 p,
.Section0 li,
.Section0 span,
.Section0 font,
.Section0 b,
.Section0 i {
  font-size: 17px !important;
  line-height: 2 !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  color: #333 !important;
}

.Section0 a {
  font-size: 17px !important;
  line-height: 2 !important;
  word-break: break-all !important;
  overflow-wrap: break-word !important;
  color: #1677ff !important;
}

.Section0 h1,
.Section0 h1 span,
.Section0 h1 font,
.Section0 h1 b {
  font-size: 24px !important;
  line-height: 1.5 !important;
  font-weight: 600 !important;
  margin: 12px 0 20px !important;
  color: #222 !important;
  text-align: center !important;
}

.Section0 h2,
.Section0 h2 span,
.Section0 h2 font,
.Section0 h2 b {
  font-size: 20px !important;
  line-height: 1.55 !important;
  font-weight: 600 !important;
  margin: 24px 0 12px !important;
  color: #222 !important;
}

.Section0 h3,
.Section0 h3 span,
.Section0 h3 font,
.Section0 h3 b {
  font-size: 18px !important;
  line-height: 1.55 !important;
  font-weight: 600 !important;
  margin: 20px 0 10px !important;
}

.Section0 p {
  margin: 0 0 16px !important;
  text-align: left !important;
}

.Section0 p[style*="text-indent"],
.Section0 p[style*="text-indent"] span {
  text-indent: 2em !important;
}

.Section0 p.agreement-signature,
.Section0 p[align="right"] {
  text-align: right !important;
  text-indent: 0 !important;
  margin-top: 28px !important;
}

/* 表格：保持 table 布局，列宽自适应屏幕、文字换行 */
.Section0 table,
.Section0 table[style] {
  display: table !important;
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  margin: 16px 0 20px !important;
}

.Section0 table tbody {
  display: table-row-group !important;
}

.Section0 table thead {
  display: table-header-group !important;
}

.Section0 table tr {
  display: table-row !important;
}

.Section0 col,
.Section0 colgroup {
  width: auto !important;
}

.Section0 table td,
.Section0 table th,
.Section0 table td[style],
.Section0 table th[style] {
  display: table-cell !important;
  font-size: 14px !important;
  line-height: 1.85 !important;
  padding: 8px 6px !important;
  border: 1px solid #ddd !important;
  vertical-align: top !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: auto !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

.Section0 table td p,
.Section0 table th p,
.Section0 table td span,
.Section0 table td font,
.Section0 table th span,
.Section0 table th font {
  font-size: inherit !important;
  line-height: inherit !important;
  margin: 0 !important;
}

.Section0 table td a {
  font-size: inherit !important;
  word-break: break-all !important;
}

/* 表头加粗 */
.Section0 table tr:first-child td,
.Section0 table tr:first-child th {
  font-weight: 600 !important;
  background: #f5f5f5 !important;
}

@media screen and (min-width: 768px) {
  div.Section0 {
    padding: 24px 32px 48px !important;
    max-width: 860px !important;
  }

  .Section0 table td,
  .Section0 table th {
    font-size: 15px !important;
    padding: 10px 8px !important;
    line-height: 1.9 !important;
  }
}

@media screen and (min-width: 1024px) {
  div.Section0 {
    padding: 28px 40px 56px !important;
  }

  .Section0 p,
  .Section0 li,
  .Section0 span,
  .Section0 font,
  .Section0 b,
  .Section0 i {
    font-size: 18px !important;
  }

  .Section0 a {
    font-size: 18px !important;
  }

  .Section0 h1,
  .Section0 h1 span,
  .Section0 h1 font,
  .Section0 h1 b {
    font-size: 26px !important;
  }

  .Section0 h2,
  .Section0 h2 span,
  .Section0 h2 font,
  .Section0 h2 b {
    font-size: 22px !important;
  }

  .Section0 table td,
  .Section0 table th {
    font-size: 16px !important;
    padding: 12px 10px !important;
  }
}
