* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    color: #333;
    background-color: #fafafa;
}

h1 {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 30px;
    padding-bottom: 15px;
    text-align: center;
}

h2 {
    font-size: 22px;
    color: #2c2c2c;
    margin-top: 35px;
    margin-bottom: 15px;
}

h3 {
    font-size: 18px;
    color: #444;
    margin-top: 25px;
    margin-bottom: 10px;
}

p {
    margin: 12px 0;
    text-align: justify;
}

a {
    color: #0066cc;
    text-decoration: none;
    /* 1. 允许文本自动换行（默认值，可显式声明） */
    white-space: normal;
    /* 2. 处理长单词/连续数字/无空格文本的换行（防止撑爆容器） */
    word-wrap: break-word; /* 允许在单词内部断行 */
    word-break: break-all; /* 强制所有字符换行，更彻底 */
}

a:hover {
    text-decoration: underline;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

th,
td {
    border: 1px solid #333;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #ddd;
    font-weight: 600;
}

ul,
ol {
    padding-left: 25px;
    margin: 15px 0;
}

li {
    margin: 8px 0;
}

@media (max-width: 600px) {
    body {
        padding: 20px 15px;
    }

    h1 {
        font-size: 22px;
    }

    h2 {
        font-size: 18px;
    }

    table {
        font-size: 14px;
    }

    th,
    td {
        padding: 8px;
    }
}
