/* 协议文档公共样式 - 移动端优化 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", 
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: #333333;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.agreement-container {
  max-width: 750px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

/* 标题样式 */
.page-title {
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.4;
}

.update-date {
  font-size: 13px;
  color: #999999;
  text-align: center;
  margin-bottom: 24px;
}

/* 章节标题 */
.section-title {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 24px 0 12px;
  padding-left: 0;
}

.section-title-level2 {
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  margin: 20px 0 10px;
}

/* 段落样式 */
p, .paragraph {
  font-size: 15px;
  color: #333333;
  line-height: 1.8;
  margin-bottom: 12px;
  text-align: justify;
}

.indent {
  text-indent: 2em;
}

/* 强调文本 */
.bold, strong {
  font-weight: 600;
  color: #1a1a1a;
}

/* 列表样式 */
.list-item {
  margin-bottom: 8px;
  padding-left: 1em;
  position: relative;
}

.list-item::before {
  content: "";
  position: absolute;
  left: 0;
}

/* 子条款样式 */
.sub-item {
  margin-left: 1em;
  margin-bottom: 8px;
}

/* 链接样式 */
a {
  color: #2196F3;
  text-decoration: none;
  word-break: break-all;
}

a:hover {
  text-decoration: underline;
}

/* 分隔线 */
.divider {
  height: 1px;
  background-color: #eeeeee;
  margin: 24px 0;
}

/* 目录样式 */
.toc {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.toc-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.toc-item {
  font-size: 14px;
  color: #666666;
  line-height: 2;
  cursor: pointer;
}

.toc-item:hover {
  color: #2196F3;
}

/* 灰色提示文本 */
.hint {
  font-size: 13px;
  color: #999999;
}

/* 表格样式 */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

th, td {
  border: 1px solid #e0e0e0;
  padding: 10px 12px;
  text-align: left;
}

th {
  background-color: #f5f5f5;
  font-weight: 600;
}

/* 响应式适配 */
@media screen and (max-width: 375px) {
  body {
    font-size: 14px;
  }
  
  .page-title {
    font-size: 20px;
  }
  
  .section-title {
    font-size: 16px;
  }
  
  .agreement-container {
    padding: 16px 12px 32px;
  }
}
