/* ==================== 协议页（服务协议 / 用户协议 / 隐私政策） ==================== */
* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial,
               "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f2f3f5;
  color: #333;
  font-size: 14px;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}
.proto-main {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
}
.proto-header {
  padding: 26px 20px 22px;
  text-align: center;
  color: #fff;
  background: linear-gradient(150deg, #2f7dff 0%, #1257e0 55%, #0a3cb0 100%);
}
.proto-header h1 {
  margin: 0 0 7px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}
.proto-header p {
  margin: 0;
  font-size: 12.5px;
  opacity: 0.88;
}
.proto-body {
  flex: 1;
  padding: 18px 20px 26px;
}
.proto-body p {
  margin: 0 0 13px;
  font-size: 14px;
  line-height: 1.85;
  color: #444;
  text-align: justify;
  word-break: break-word;
}
/* 章节小标题：用横向细线分层，不用左侧竖条 */
.proto-body p.proto-h {
  margin: 24px 0 12px;
  padding-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: #1a1a1a;
  border-bottom: 1px solid #eef1f6;
  letter-spacing: 0.3px;
}
.proto-body p.proto-h:first-child {
  margin-top: 4px;
}
.proto-body b {
  font-weight: 700;
  color: #1a1a1a;
}
.proto-foot {
  padding: 18px 20px 26px;
  text-align: center;
  font-size: 12px;
  line-height: 1.9;
  color: #9E9E9E;
  border-top: 1px solid #f2f2f2;
}
.proto-foot p {
  margin: 0;
}

/* ==================== 底部「关闭页面」按钮（固定悬浮，永远可见） ==================== */
.proto-close-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  /* 宽度与页面容器 .proto-main 一致（600px 居中），不铺满整个视口 */
  max-width: 600px;
  margin: 0 auto;
  z-index: 60;
  padding: 10px 20px calc(10px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid #eef0f2;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
}
/* 给固定条留出空间，避免滚到底时遮住页脚（固定条约 70px 高，这里留 96px） */
.proto-foot {
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}
.proto-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 440px;
  height: 50px;
  padding: 0 24px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #fff;
  /* 与页头同色系，整页统一 */
  background: linear-gradient(150deg, #2f7dff 0%, #1257e0 55%, #0a3cb0 100%);
  border: none;
  border-radius: 25px;
  box-shadow: 0 6px 16px rgba(18, 87, 224, 0.26);
  cursor: pointer;
  font-family: inherit;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s, box-shadow 0.15s;
}
.proto-close-btn:active {
  transform: scale(0.97);
  box-shadow: 0 4px 12px rgba(6, 173, 86, 0.26);
}
.proto-close-x {
  display: inline-block;
  width: 23px;
  height: 23px;
  line-height: 21px;
  margin-right: 9px;
  font-size: 19px;
  font-style: normal;
  font-weight: 400;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
}

/* ==================== PC 端 ==================== */
@media (min-width: 601px) {
  body {
    font-size: 15px;
  }
  .proto-header {
    padding: 34px 26px 28px;
  }
  .proto-header h1 {
    font-size: 22px;
  }
  .proto-header p {
    font-size: 13px;
  }
  .proto-body {
    padding: 24px 26px 32px;
  }
  .proto-body p {
    font-size: 15px;
    line-height: 1.9;
  }
  .proto-body p.proto-h {
    font-size: 16px;
  }
}

/* ==================== 超小屏 ==================== */
@media (max-width: 360px) {
  .proto-header {
    padding: 22px 16px 18px;
  }
  .proto-header h1 {
    font-size: 18px;
  }
  .proto-body {
    padding: 14px 14px 22px;
  }
  .proto-body p {
    font-size: 13.5px;
  }
}
