/*===========================
    文档页面样式
    Document Page Styles (隐私政策、用户协议等)
===========================*/

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.8;
  margin: 0;
  padding: 20px;
  color: #333;
  font-size: 15px;
  background: #f5f7fa;
  min-height: 100vh;
}

.box-body {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

h1 {
  color: #2fbbe8;
  text-align: center;
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: 600;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 15px;
}

h2 {
  color: #2fbbe8;
  text-align: center;
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: 600;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 15px;
}

h3 {
  color: #333;
  margin-top: 35px;
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: 600;
  border-left: 4px solid #2fbbe8;
  padding-left: 15px;
}

h4 {
  color: #555;
  margin-top: 25px;
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 600;
}

p {
  margin-bottom: 15px;
  line-height: 1.8;
  text-align: justify;
}

p[style*="text-indent: 2em"] {
  text-indent: 2em;
}

p[style*="text-align: right"] {
  text-align: right;
  color: #999;
  font-size: 13px;
  margin-bottom: 30px;
}

p[style*="text-align: center"] {
  text-align: center;
}

strong {
  color: #2fbbe8;
  font-weight: 600;
}

a {
  color: #2fbbe8;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1e90ff;
  text-decoration: underline;
}

ul, ol {
  margin: 15px 0;
  padding-left: 30px;
  line-height: 1.8;
}

li {
  margin-bottom: 8px;
}

/* 列表项内的段落 */
ul p, ol p {
  margin-bottom: 8px;
}

/* 移动端优化 */
@media (max-width: 768px) {
  body {
    padding: 10px;
    background: white;
    font-size: 14px;
  }

  .box-body {
    padding: 20px 15px;
    border-radius: 0;
    box-shadow: none;
  }

  h1, h2 {
    font-size: 22px;
    margin-bottom: 15px;
    padding-bottom: 10px;
  }

  h3 {
    font-size: 18px;
    margin-top: 25px;
    margin-bottom: 12px;
  }

  h4 {
    font-size: 16px;
    margin-top: 20px;
  }

  p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
  }

  p[style*="text-indent: 2em"] {
    text-indent: 0;
    padding-left: 0;
  }

  p[style*="text-align: right"] {
    text-align: center;
    font-size: 12px;
  }

  ul, ol {
    padding-left: 20px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 13px;
  }

  h1, h2 {
    font-size: 20px;
  }

  h3 {
    font-size: 17px;
  }

  .box-body {
    padding: 15px 12px;
  }
}

/* 打印样式 */
@media print {
  body {
    background: white;
    padding: 0;
  }

  .box-body {
    box-shadow: none;
    padding: 20px;
  }

  h1, h2 {
    page-break-after: avoid;
  }

  h3 {
    page-break-after: avoid;
  }
}

