/**
 * 移动端协议页统一样式（隐私 / 用户协议 / 付费协议等）
 * 与 wwwfile 下各 HTML 配套，可单独复制到其他项目。
 */

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.agreement-doc {
    margin: 0;
    padding: 12px 14px 32px;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 0.9375rem; /* 15px */
    line-height: 1.65;
    color: #222;
    background: #fff;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.agreement-doc p {
    margin: 0 0 0.75rem;
    padding: 0;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #222;
}

/* 主标题（文档名） */
.agreement-doc .doc-hero {
    margin: 0 0 0.35rem;
    padding: 18px 4px 6px;
    font-size: 1.125rem; /* 18px */
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    color: #111;
}

/* 更新日期 / 生效时间 */
.agreement-doc .doc-meta {
    margin: 0 0 1rem;
    padding: 0 4px 12px;
    font-size: 0.8125rem; /* 13px */
    line-height: 1.5;
    text-align: center;
    color: #666;
}

/* 章节小标题（左对齐） */
.agreement-doc .ltitle {
    margin: 1.15rem 0 0.45rem;
    padding: 0;
    font-size: 1rem; /* 16px */
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
    color: #111;
}

/* 居中副标题（如「系统权限清单」） */
.agreement-doc .ltitle-center {
    text-align: center;
    margin-top: 1.35rem;
}

.agreement-doc p.title {
    margin: 0;
    padding: 12px 0;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 700;
}

.agreement-doc strong,
.agreement-doc b {
    font-weight: 600;
}

.agreement-doc a {
    color: #1a5fb4;
    word-break: break-all;
}

/* 首行缩进段落 */
.agreement-doc p.indent {
    text-indent: 2em;
}

.agreement-doc p.no-indent {
    text-indent: 0;
}

/* 表格横向滚动（宽表） */
.agreement-doc .table-scroll {
    width: 100%;
    margin: 0 0 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.agreement-doc .table-scroll table {
    margin-bottom: 0;
}

.agreement-doc table {
    width: 100%;
    border: 1px solid #ccc;
    border-collapse: collapse;
    margin: 0 0 1rem;
    font-size: 0.8125rem; /* 13px */
    line-height: 1.45;
    table-layout: auto;
}

.agreement-doc th,
.agreement-doc td {
    border: 1px solid #ccc;
    padding: 8px 6px;
    word-break: break-word;
    vertical-align: top;
}

.agreement-doc th {
    background: #f5f5f5;
    font-weight: 600;
}

/* 兼容旧类名 */
.agreement-doc p.agree_son {
    margin: 0 0 1rem;
    padding: 0 4px 12px;
    font-size: 0.8125rem;
    line-height: 1.5;
    text-align: center;
    color: #666;
}
