@media (max-width: 767.98px) {
  html {
    font-size: calc(100vw / 18);
  }
}
@media (min-width: 768px) and (max-width: 1921.99px) {
  html {
    font-size: calc(100vw / 19.2);
  }
}
@media (min-width: 1922px) and (max-width: 4000px) {
  html {
    font-size: calc(100vw / 22.4);
  }
}
/* 手机 */
@media (max-width: 767.98px) {
  body {
    background: linear-gradient(116deg, #ffffff 0%, #e3f0fa 100%);
    width: 100%;
    height: 100%;
  }
  /* 协议条款 */
  .newscontent {
    width: 100%;
    height: 100%;
    padding: 4.66666667rem 0 2.4rem;
    box-sizing: border-box;
  }
  .newscontent .w-1500 {
    width: 90%;
    margin: 0 auto;
  }
  .newscontent .w-1500 .newsnav {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0 0.93333333rem;
    margin-bottom: 1.6rem;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .newscontent .w-1500 .newsnav::-webkit-scrollbar {
    display: none;
  }
  .newscontent .w-1500 .newsnav > i {
    display: block;
    width: 0.66666667rem;
    height: 0.66666667rem;
    flex: 0 0 auto;
  }
  .newscontent .w-1500 .newsnav > i .icon {
    display: block;
    width: 100%;
    height: 100%;
    fill: #1768d9;
  }
  .newscontent .w-1500 .newsnav .erjinav {
    min-width: max-content;
    display: flex;
    align-items: center;
    color: #333;
    white-space: nowrap;
  }
  .newscontent .w-1500 .newsnav .erjinav a,
  .newscontent .w-1500 .newsnav .erjinav span {
    font-size: 0.53333333rem;
    line-height: 1.4;
    color: #333;
    white-space: nowrap;
  }
  .newscontent .w-1500 .newsnav .erjinav i {
    display: block;
    width: 1.06666667rem;
    height: 1.06666667rem;
    flex: 0 0 auto;
  }
  .newscontent .w-1500 .newsnav .erjinav i .icon {
    display: block;
    width: 100%;
    height: 100%;
    fill: #333;
  }
  .newscontent .w-1500 .newsnav .erjinav span.active {
    color: #004d8d;
  }
  .newscontent .w-1500 .contentnt {
    width: 100%;
  }
  .newscontent .w-1500 .contentnt h3 {
    margin: 0 0 1.6rem;
    font-size: 1.06666667rem;
    line-height: 1.45;
    color: #333;
    font-weight: normal;
    text-align: center;
  }
  .newscontent .w-1500 .contentnt .contdvndu {
    font-size: 0.53333333rem !important;
    color: #333 !important;
    line-height: 1.9 !important;
    font-family: "微软雅黑" !important;
    display: grid;
    gap: 1.06666667rem;
  }
  .newscontent .w-1500 .contentnt .contdvndu * {
    font-size: 0.53333333rem !important;
    line-height: 1.9 !important;
    font-family: "微软雅黑" !important;
  }
  .newscontent .w-1500 .contentnt .contdvndu p {
    overflow-wrap: anywhere;
  }
  .newscontent .w-1500 .contentnt .contdvndu strong {
    font-weight: 700;
  }
  .newscontent .w-1500 .contentnt .contdvndu table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    color: inherit;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .newscontent .w-1500 .contentnt .contdvndu th,
  .newscontent .w-1500 .contentnt .contdvndu td {
    min-width: 5.33333333rem;
    padding: 0.53333333rem 0.66666667rem;
    border: 0.06666667rem solid rgba(51, 51, 51, 0.2);
    vertical-align: top;
    word-break: break-word;
  }
  .newscontent .w-1500 .contentnt .contdvndu img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0.8rem auto;
    border-radius: 0.66666667rem;
    display: block;
  }
}
/* pc */
@media (min-width: 768px) {
  body {
    background: linear-gradient(116deg, #ffffff 0%, #e3f0fa 100%);
    width: 100%;
    height: 100%;
  }
  /* 协议条款 */
  .newscontent {
    width: 100%;
    height: 100%;
    padding: 1.5rem 0 1.1rem;
  }
  .newscontent .w-1500 {
    width: 15rem;
    margin: 0 auto;
  }
  .newscontent .w-1500 .newsnav {
    display: flex;
    align-items: center;
    padding: 0.35rem 0;
    margin-bottom: 0.8rem;
    gap: 0.1rem;
  }
  .newscontent .w-1500 .newsnav i {
    display: block;
    width: 0.2rem;
    height: 0.2rem;
  }
  .newscontent .w-1500 .newsnav i .icon {
    display: block;
    width: 0.2rem;
    height: 0.2rem;
    fill: #1768d9;
  }
  .newscontent .w-1500 .newsnav .erjinav {
    display: flex;
    align-items: center;
    color: #333;
  }
  .newscontent .w-1500 .newsnav .erjinav a,
  .newscontent .w-1500 .newsnav .erjinav span {
    font-size: 0.16rem;
    color: #333;
    transition: all 0.5s;
  }
  .newscontent .w-1500 .newsnav .erjinav i {
    display: block;
    width: 0.28rem;
    height: 0.22rem;
  }
  .newscontent .w-1500 .newsnav .erjinav i .icon {
    display: block;
    width: 0.28rem;
    height: 0.25rem;
    fill: #333;
  }
  .newscontent .w-1500 .newsnav .erjinav span.active {
    color: #004d8d;
  }
  .newscontent .w-1500 .newsnav .erjinav a:hover,
  .newscontent .w-1500 .newsnav .erjinav span:hover {
    border-radius: 1rem;
    color: #004d8d;
    transition: all 0.5s;
  }
  .newscontent .w-1500 .contentnt {
    width: 100%;
  }
  .newscontent .w-1500 .contentnt h3 {
    font-size: 0.36rem;
    color: #333;
    font-weight: normal;
    text-align: center;
    margin-bottom: 0.8rem;
  }
  .newscontent .w-1500 .contentnt .contdvndu {
    font-size: 0.2rem !important;
    color: #333 !important;
    line-height: 1.6 !important;
    font-family: "微软雅黑" !important;
    display: grid;
    gap: 0.4rem;
  }
  .newscontent .w-1500 .contentnt .contdvndu * {
    font-size: 0.2rem !important;
    line-height: 1.6 !important;
    font-family: "微软雅黑" !important;
  }
  .newscontent .w-1500 .contentnt .contdvndu strong {
    font-weight: 700;
  }
  .newscontent .w-1500 .contentnt .contdvndu table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    color: inherit;
  }
  .newscontent .w-1500 .contentnt .contdvndu th,
  .newscontent .w-1500 .contentnt .contdvndu td {
    padding: 0.15rem 0.2rem;
    border: 0.01rem solid rgba(51, 51, 51, 0.2);
    vertical-align: top;
    word-break: break-word;
  }
  .newscontent .w-1500 .contentnt .contdvndu img {
    text-align: center;
    width: 8rem;
    max-width: 100%;
    height: auto;
    margin: 1rem auto;
    border-radius: 0.16rem;
  }
}

/* ---- CMS 补充（静态页没有） ---- */
/* 页面标题用 h1（页面主标题），样式照静态页的 .contentnt h3 */
@media (max-width: 767.98px) {
  .newscontent .w-1500 .contentnt h1 {
    margin: 0 0 1.6rem;
    font-size: 1.06666667rem;
    line-height: 1.45;
    color: #333;
    font-weight: normal;
    text-align: center;
  }
}
@media (min-width: 768px) {
  .newscontent .w-1500 .contentnt h1 {
    font-size: 0.36rem;
    color: #333;
    font-weight: normal;
    text-align: center;
    margin-bottom: 0.8rem;
  }
}

/* 正文里后台编辑器写出的格式（同企业资讯详情页 newscontent.css 的 CMS 段）。字号、行距、字体仍照静态页统一（上面 .contdvndu * 那条） */
/* 小标题：加粗、靠左；静态页给页面标题写的 .contentnt h3（居中、下边距）也会落到正文里的 h3 上，这里改回 */
.newscontent .w-1500 .contentnt .contdvndu h2,
.newscontent .w-1500 .contentnt .contdvndu h3,
.newscontent .w-1500 .contentnt .contdvndu h4 {
  margin: 0;
  color: #333;
  font-weight: 700;
  text-align: left;
}
/* 链接：公共样式把 a 设成块级，正文里会把一句话断开；改回行内，蓝字带下划线 */
.newscontent .w-1500 .contentnt .contdvndu a {
  display: inline;
  color: #1768d9;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
/* 斜体：公共样式把 em、i 设成了正体 */
.newscontent .w-1500 .contentnt .contdvndu em,
.newscontent .w-1500 .contentnt .contdvndu i {
  font-style: italic;
}
/* 列表：公共样式去掉了圆点和编号 */
.newscontent .w-1500 .contentnt .contdvndu ul,
.newscontent .w-1500 .contentnt .contdvndu ol {
  padding-left: 1.5em;
}
.newscontent .w-1500 .contentnt .contdvndu ul > li {
  list-style: disc;
}
.newscontent .w-1500 .contentnt .contdvndu ol > li {
  list-style: decimal;
}
/* 引用：左边一道蓝线，字色稍浅 */
.newscontent .w-1500 .contentnt .contdvndu blockquote {
  padding-left: 1em;
  border-left: 3px solid #68afea;
  color: #587b96;
}
/* 分隔线 */
.newscontent .w-1500 .contentnt .contdvndu hr {
  width: 100%;
  height: 0;
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(51, 51, 51, 0.2);
}
/* 代码：等宽字体、浅底，过长时横向滚动 */
.newscontent .w-1500 .contentnt .contdvndu pre {
  padding: 0.8em 1em;
  overflow-x: auto;
  white-space: pre-wrap;
  background-color: rgba(23, 104, 217, 0.05);
  border-radius: 6px;
}
.newscontent .w-1500 .contentnt .contdvndu pre,
.newscontent .w-1500 .contentnt .contdvndu code {
  font-family: Consolas, Menlo, monospace !important;
}
/* 正文还空着时，可视化编辑里提示到哪里填（views/pages/page--legal.blade.php）；正式站与浏览预览不显示 */
.newscontent .w-1500 .contentnt .hy-legal-empty {
  margin: 0;
  padding: 16px;
  border: 1px dashed #9bb7cf;
  border-radius: 8px;
  color: #587b96;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}
.newscontent .w-1500 .contentnt .hy-legal-empty::before {
  content: '正文在后台「栏目管理 → 栏目树」该页那一行的「编辑正文」里填写';
}
:root:not(.lexi-editable) .newscontent .w-1500 .contentnt .hy-legal-empty {
  display: none;
}
