
<style>*,
*::before,
*::after{
    box-sizing:border-box;
}

html{
    width:100%;
    max-width:100%;
    overflow-x:hidden;
}

body{
    margin:0;
    width:100%;
    max-width:100%;
    background:#f5f5f5;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
    overflow-x:hidden;
}

/* 最外层 */
.wrapper{
    width:100%;
    max-width:100%;
    margin:0;
    padding:0;
    overflow:hidden;
}

/* 页面主体 */
.page-container{
    width:100%;
    max-width:1400px;
    margin:20px auto;
    padding:0 15px;
}

/* 菜单 */
.full-menu{
    width:100%;
    max-width:100%;
    margin-bottom:20px;
    overflow:hidden;
}

/* 主内容 + 侧边栏 */
.content-layout{
    width:100%;
    max-width:100%;
    display:flex;
    gap:25px;
    align-items:flex-start;
}

/* 文章主体 */
.main{
    flex:1 1 auto;
    min-width:0;
    max-width:100%;
    overflow:hidden;
}

/* 侧边栏 */
.sidebar{
    width:320px;
    max-width:320px;
    flex:0 0 320px;
    min-width:0;
}

/* 文章白色区域 */
.article-box{
    width:100%;
    max-width:100%;
    background:#fff;
    border-radius:10px;
    padding:30px;
    overflow:hidden;
}

/* 标题 */
h1{
    max-width:100%;
    font-size:32px;
    line-height:1.5;
    margin:0 0 20px;
    color:#222;
    overflow-wrap:anywhere;
    word-break:break-word;
}

/* 时间 */
.meta{
    max-width:100%;
    font-size:13px;
    color:#777;
    margin-bottom:25px;
    overflow-wrap:anywhere;
    word-break:break-word;
}

/* 正文 */
.content{
    width:100%;
    max-width:100%;
    min-width:0;
    font-size:20px;
    line-height:1.9;
    color:#222;
    overflow-wrap:anywhere;
    word-break:break-word;
}

/* 段落 */
.content p{
    max-width:100%;
    margin:1.2em 0;
    overflow-wrap:anywhere;
    word-break:break-word;
}

/* 图片 */
.content img{
    display:block;
    max-width:100% !important;
    width:auto;
    height:auto !important;
    margin:20px auto;
}

/* iframe */
.content iframe{
    display:block;
    max-width:100% !important;
    width:100%;
    height:auto;
    border:0;
}

/* 视频 */
.content video{
    display:block;
    max-width:100% !important;
    width:100%;
    height:auto;
}

/* 表格 */
.content table{
    display:block;
    max-width:100%;
    width:100%;
    overflow-x:auto;
    overflow-y:hidden;
}

/* pre代码 */
.content pre{
    max-width:100%;
    overflow-x:auto;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
    word-break:break-word;
}

/* code */
.content code{
    max-width:100%;
    overflow-wrap:anywhere;
    word-break:break-word;
}

/* blockquote */
.content blockquote{
    max-width:100%;
    margin:25px auto;
    overflow-wrap:anywhere;
    word-break:break-word;
}

/* 所有正文中的 div */
.content div{
    max-width:100%;
}

/* 所有链接 */
.content a{
    max-width:100%;
    overflow-wrap:anywhere;
    word-break:break-word;
}

/* 相关阅读 */
.related{
    max-width:100%;
    margin-top:50px;
    padding-top:20px;
    border-top:1px solid #e5e5e5;
}

.related h3{
    font-size:18px;
    margin-bottom:15px;
}

.related ul{
    margin:0;
    padding-left:20px;
}

.related li{
    margin-bottom:12px;
    line-height:1.6;
    overflow-wrap:anywhere;
    word-break:break-word;
}

.related a{
    text-decoration:none;
    color:#006666;
    overflow-wrap:anywhere;
    word-break:break-word;
}

.related a:hover{
    text-decoration:underline;
}


/* =========================================
   平板和手机
========================================= */

@media (max-width:900px){

    .page-container{
        width:100%;
        max-width:100%;
        padding-left:15px;
        padding-right:15px;
    }

    .content-layout{
        display:block;
        width:100%;
        max-width:100%;
    }

    .main{
        width:100%;
        max-width:100%;
    }

    .sidebar{
        width:100%;
        max-width:100%;
        margin-top:20px;
    }

}


/* =========================================
   手机
========================================= */

@media (max-width:600px){

    .page-container{
        margin:10px auto;
        padding-left:10px;
        padding-right:10px;
    }

    h1{
        font-size:26px;
        line-height:1.4;
    }

    .content{
        font-size:18px;
        line-height:1.8;
    }

    .article-box{
        padding:20px;
        border-radius:8px;
    }

}
</style>