/* 通用样式重置与基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

body {
    background-color: #f5f5f7;
    color: #1d1d1f;
    line-height: 1.6;
    padding: 16px;
    font-size: 16px;
}

/* 标题样式 */
h1 {
    font-size: 24px;
    font-weight: 700; /* 加粗优化 */
    margin: 24px 0 16px;
    color: #1d1d1f;
    text-align: center;
}

h2 {
    font-size: 20px;
    font-weight: 700; /* 加粗优化 */
    margin: 20px 0 12px;
    color: #1d1d1f;
    border-left: 4px solid #0071e3;
    padding-left: 8px;
}

h3 {
    font-size: 18px;
    font-weight: 700; /* 加粗优化 */
    margin: 18px 0 10px;
    color: #1d1d1f;
}

h4 {
    font-size: 17px;
    font-weight: 700; /* 加粗优化 */
    margin: 16px 0 8px;
    color: #1d1d1f;
}

/* 文本样式 */
p {
    margin: 8px 0;
    font-size: 16px;
    color: #424245;
}

/* 粗体样式强化 - 确保所有粗体标签生效 */
strong, b, .font-bold {
    font-weight: 700 !important; /* 强制加粗 */
    color: #1d1d1f !important;
}

em, i {
    color: #6e6e73;
}

/* 下划线样式强化 - 确保所有下划线标签生效 */
u, .font-underline {
    text-decoration: underline !important; /* 强制下划线 */
    text-underline-offset: 2px; /* 优化下划线位置 */
    text-decoration-thickness: 1px; /* 下划线粗细 */
}

/* 列表样式 */
ul, ol {
    margin: 8px 0 8px 24px;
}

li {
    margin: 4px 0;
    font-size: 16px;
    color: #424245;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e6e6e6;
    font-size: 15px;
}

th {
    background-color: #f8f8fa;
    font-weight: 700; /* 加粗优化 */
    color: #1d1d1f;
}

td {
    color: #424245;
}

/* 链接样式 */
a {
    color: #0071e3;
    text-decoration: none;
    word-break: break-all;
}

a:hover {
    text-decoration: underline;
}

/* 代码块样式 */
code {
    background-color: #f8f8fa;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    color: #d73a4a;
}

/* 容器样式 */
.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 24px;
}

/* 注意事项样式 */
.note {
    background-color: #fff8e1;
    border-left: 4px solid #ffb74d;
    padding: 12px;
    margin: 16px 0;
    border-radius: 4px;
}

.note p {
    color: #e65100;
    font-weight: 600;
}

/* 协议条款样式 */
.clause {
    margin: 12px 0;
}

.clause-title {
    font-weight: 700; /* 加粗优化 */
    margin-bottom: 4px;
    color: #1d1d1f;
}

/* 响应式调整 */
@media (max-width: 768px) {
    body {
        padding: 12px;
        font-size: 15px;
    }

    .container {
        padding: 16px;
        border-radius: 8px;
    }

    h1 {
        font-size: 22px;
        margin: 20px 0 14px;
        font-weight: 700;
    }

    h2 {
        font-size: 19px;
        margin: 18px 0 10px;
        font-weight: 700;
    }

    h3 {
        font-size: 17px;
        margin: 16px 0 8px;
        font-weight: 700;
    }

    h4 {
        font-size: 16px;
        margin: 14px 0 6px;
        font-weight: 700;
    }

    p, li {
        font-size: 15px;
    }

    th, td {
        padding: 10px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 8px;
        font-size: 14px;
    }

    .container {
        padding: 12px;
    }

    h1 {
        font-size: 20px;
        margin: 16px 0 12px;
        font-weight: 700;
    }

    h2 {
        font-size: 18px;
        margin: 16px 0 8px;
        font-weight: 700;
    }

    h3 {
        font-size: 16px;
        margin: 14px 0 6px;
        font-weight: 700;
    }

    h4 {
        font-size: 15px;
        margin: 12px 0 4px;
        font-weight: 700;
    }

    p, li {
        font-size: 14px;
    }

    th, td {
        padding: 8px;
        font-size: 13px;
    }

    ul, ol {
        margin-left: 20px;
    }
}