/* 协议页面 - 统一规范样式
   正式法律文件样式，简洁庄重，所有主题统一使用 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: #ffffff;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 20px 48px;
  background: #ffffff;
  color: #333333;
  font: 15px/1.8 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 标题样式 - 统一规范 */
h1 {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  color: #111111;
}

h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eeeeee;
  color: #111111;
}

h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 20px 0 8px;
  color: #222222;
}

p {
  margin: 12px 0;
  color: #333333;
}

/* 元信息 */
.policy-meta {
  text-align: center;
  color: #666666;
  font-size: 13px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eeeeee;
}

.policy-meta span {
  margin: 0 8px;
}

/* 目录 - 简洁边框 */
.policy-toc {
  background: #fafafa;
  border: 1px solid #eeeeee;
  border-radius: 4px;
  padding: 16px 20px;
  margin: 20px 0 32px;
  columns: 2;
  column-gap: 32px;
  font-size: 14px;
}

.policy-toc li {
  list-style: none;
  margin: 6px 0;
  break-inside: avoid;
}

.policy-toc a {
  color: #666666;
  text-decoration: none;
}

.policy-toc a:hover {
  color: #2563eb;
}

/* 列表 */
ol, ul {
  padding-left: 24px;
  margin: 12px 0;
}

li {
  margin: 8px 0;
}

/* 重点提示 - 简洁边框 */
p > strong:only-child {
  display: block;
  margin: 20px 0;
  padding: 12px 16px;
  background: #f8fafc;
  border-left: 3px solid #2563eb;
  font-weight: 500;
  font-size: 14px;
  color: #1e40af;
}

/* 表格样式 - 规范清晰 */
.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.7;
  background: #ffffff;
}

table th,
table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #eeeeee;
  vertical-align: top;
}

table th {
  background: #f9fafb;
  font-weight: 600;
  white-space: nowrap;
  color: #111111;
}

table tr:last-child td {
  border-bottom: none;
}

table tr:hover td {
  background: #f9fafb;
}

/* 链接样式 - 标准蓝色 */
a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* 返回按钮 - 简洁规范 */
.back-link {
  display: inline-block;
  margin-top: 48px;
  padding: 10px 24px;
  background: #f5f5f5;
  border-radius: 4px;
  color: #666666;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}

.back-link:hover {
  background: #2563eb;
  color: white;
  text-decoration: none;
}

/* 居中容器 */
.back-link-container {
  text-align: center;
}

/* 移动端适配 */
@media (max-width: 640px) {
  body {
    padding: 20px 16px 40px;
    font-size: 14px;
  }

  h1 {
    font-size: 20px;
  }

  h2 {
    font-size: 16px;
    margin-top: 24px;
  }

  .policy-toc {
    columns: 1;
    padding: 12px 16px;
  }

  table th,
  table td {
    padding: 10px 8px;
    font-size: 12px;
  }
}

/* 打印样式 */
@media print {
  html, body {
    background: white;
    color: black;
  }

  .back-link,
  .back-link-container {
    display: none;
  }
}
