/* 移动端协议文档样式 - H5自适应 */

/* 重置默认样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* 使用rem单位实现移动端自适应 */
html { /* 基准字体大小，配合JS动态设置或使用CSS媒体查询 */
 font-size: 16px; }

/* 响应式字体大小 - 根据屏幕宽度自动调整 */
@media screen and (max-width: 320px) { html { font-size: 14px; }
 }

@media screen and (min-width: 321px) and (max-width: 375px) { html { font-size: 16px; }
 }

@media screen and (min-width: 376px) and (max-width: 414px) { html { font-size: 16px; }
 }

@media screen and (min-width: 415px) and (max-width: 768px) { html { font-size: 16px; }
 }

@media screen and (min-width: 769px) { html { font-size: 18px; }
 }

/* 文档容器 */
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif; line-height: 1.6; color: #333; background-color: #fff; padding: 0; margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* 主容器 */
.container { max-width: 100%; padding: 1rem 1.25rem; margin: 0 auto; }

/* 标题样式 */
h1 { font-size: 1.5rem; font-weight: 700; line-height: 1.3; margin-bottom: 1.5rem; color: #1a1a1a; text-align: center; }

h2 { font-size: 1.375rem; font-weight: 600; line-height: 1.4; margin-top: 2rem; margin-bottom: 1rem; color: #2c2c2c; border-left: 4px solid #007aff; padding-left: 0.75rem; }

h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.4; margin-top: 1.5rem; margin-bottom: 0.75rem; color: #333; }

h4 { font-size: 1rem; font-weight: 600; line-height: 1.4; margin-top: 1rem; margin-bottom: 0.5rem; color: #444; }

/* 段落样式 */
p { font-size: 1rem; line-height: 1.8; margin-bottom: 0.8rem; color: #555; text-align: left; word-break: break-word; }

/* 列表样式 */
ul, ol { font-size: 1rem; line-height: 1.8; margin-bottom: 1rem; padding-left: 1.5rem; color: #555; }

li { margin-bottom: 0.5rem; }

/* 无点列表样式 */
.list-unstyled { list-style: none; padding-left: 0; }

.list-unstyled li { margin-bottom: 0.5rem; }

/* 无点有序列表样式 */
.list-unstyled ol,
.list-unstyled ul { list-style: none; padding-left: 0; }

/* 强调文本 */
strong, b { font-weight: 600; color: #333; }

em, i { font-style: italic; }

/* 链接样式 */
a { color: #007aff; text-decoration: none; word-break: break-all; }

a:active { opacity: 0.7; }

/* 分割线 */
hr { border: none; border-top: 1px solid #e5e5e5; margin: 2rem 0; }

/* 引用块 */
blockquote { font-size: 0.8125rem; line-height: 1.6; margin: 1rem 0; padding: 0.75rem 1rem; background-color: #f8f8f8; border-left: 4px solid #ddd; color: #666; }

/* 代码样式 */
code { font-family: "Courier New", Courier, monospace; font-size: 0.8125rem; background-color: #f5f5f5; padding: 0.125rem 0.375rem; border-radius: 3px; color: #e83e8c; }

/* 表格样式 */
table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.875rem; overflow-x: auto; display: block; table-layout: auto; }

thead { background-color: #f8f8f8; }

th, td { padding: 0.75rem; text-align: left; border: 1px solid #e5e5e5; min-width: 5rem; word-wrap: break-word; word-break: break-word; }

th { font-weight: 600; color: #333; }

td { color: #555; }

/* 协议特定样式 */
.protocol-header { text-align: center; padding: 1.5rem 0; border-bottom: 2px solid #e5e5e5; margin-bottom: 2rem; }

.protocol-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; color: #1a1a1a; }

.protocol-date { font-size: 0.8125rem; color: #999; }

.protocol-section { margin-bottom: 2rem; }

.protocol-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #e5e5e5; text-align: center; font-size: 0.8125rem; color: #999; }

/* 按钮样式（如果需要） */
.btn { display: inline-block; padding: 0.75rem 1.5rem; font-size: 0.875rem; text-align: center; border-radius: 4px; background-color: #007aff; color: #fff; border: none; cursor: pointer; transition: opacity 0.3s; }

.btn:active { opacity: 0.8; }

/* 辅助类 */
.text-center { text-align: center; }

.text-right { text-align: right; }

.text-muted { color: #999; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* 移动端优化 */
@media screen and (max-width: 768px){
 .container { padding: 0.75rem 1rem; }

 table { font-size: 0.875rem; }

 th, td { padding: 0.5rem; }
 }

/* 防止文本选中（可选） */
.no-select { -webkit-user-select: none; user-select: none; }

/* 滚动优化 */
html { -webkit-overflow-scrolling: touch; }
