@charset "UTF-8";

.comment-container textarea {
outline: none;
    resize: none;
}

.article-content ul {
list-style: disc;
    padding-left: 2em;
}

.article-content li {
list-style: disc;
}

.main {
width: 100%;
        margin: 0 auto 15px auto;
        /* overflow: hidden removed for sticky TOC */
        padding-top: 60px;
}

.left-box {
width: 96%;
        margin: 0 2%;
        float: left;
}

.right-box {
width: 96%;
        margin: 0 2%;
        float: left;
}

#toc-a-on {
color: var(--text-link);
}

.toc {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 250px;
    font-size: 13px;
    background: var(--bg-card);
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: var(--shadow-card);
    z-index: 40;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    height: auto;
    overflow: hidden;
    margin: 20px auto;
    padding: 20px;
    background-color: var(--bg-primary);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
    -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    overflow: hidden;
    transition: all 0.3s;
}

.toc:hover {
box-shadow: 0 0 10px var(--text-muted);
    -moz-box-shadow: 0 0 10px var(--text-muted);
}

.toc ul {
list-style-type: none;
    max-width: 100%;
    display: block;
    overflow: hidden;
}

.toc li {
list-style-type: none;
    line-height: 25px;
    width: 100%;
    display: block;
    overflow: hidden;
}

.toc li ul {
padding-left: 10px;
    max-width: 100%;
}

.toc a {
color: var(--text-primary);
    /*单行文本溢出显示省略号*/
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    float: left;
    transition: ease-in-out 0.6s;
}

.toc li a:hover {
color: var(--text-link);
    text-decoration: underline;
}

/*左容器*/
.article-container {
max-width: 830px;
    width: 100%;
    margin: 20px auto;
    padding: 20px;
    background-color: var(--bg-primary);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
    -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    overflow: hidden;
    transition: all 0.3s;
}

.article-container:hover {
box-shadow: 0 0 10px var(--text-muted);
    -moz-box-shadow: 0 0 10px var(--text-muted);
}

.sort-box {
height: 40px;
    width: 100%;
    border-bottom: #eaeaea solid 1px;
    line-height: 40px;
}

.at-sort-s {
height: 40px;
    width: 60%;
    font-size: 18px;
    /*border-bottom: #eaeaea solid 1px;*/
}

.at-sort-a {
height: 40px;
    padding: 0 2px;
    display: inline-block;
    text-align: left;
    /*border-bottom: var(--text-link-hover) solid 2px;*/
    font-weight: bold;
}

.at-sort-comment-a {
height: 40px;
    padding: 0 2px;
    display: inline-block;
    text-align: left;
    border-bottom: var(--text-link) solid 2px;
    font-weight: bold;
}

.location {
line-height: 40px;
    width: 100%;
    /*border-bottom: #eaeaea solid 1px;*/
}

.at-sort-detail {
line-height: 40px;
    padding: 0 2px;
    display: inline-block;
    text-align: center;
    float: left;
    font-size: 16px;
}

.at-sort-detail a {
color: #2f332a;
    transition: all 0.3s ease-in-out;
    font-size: 16px;
}

.at-sort-detail a:hover {
color: var(--text-link-hover);
}

.article-content {
margin-top: 15px;
    width: 100%;
    font-size: 15px;
    line-height: 32px;
    border-bottom: #eaeaea solid 1px;
}

.article-content .infomation-list {
width: auto;
    height: auto;
    border-radius: 10px;
    background-color: rgb(255, 252, 235);
    color: var(--text-primary);
    padding: 2px 2px 2px 2px;
}

/*.article-content img {
display: block;
    max-width: 680px;
    max-height: 380px;
    margin: 10px auto;
}

*/

/*.article-content > p {
width: 100%;
    text-indent: 2em;
}

*/

/*.article-content p {
font-size: 15px;
    width: 100%;
    !*text-indent: 2em;*!
}

*/

/*右容器*/
.column-holder {
width: 300px;
    margin: 15px 10px 10px 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
    -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
    transition: ease-in-out background-color 0.3s;
}

.column-holder:hover {
box-shadow: 0 0 10px #7e8795;
    -moz-box-shadow: 0 0 10px #7e8795;
}

.column-holder ul,
li {
margin: 0;
    padding: 0;
    list-style: none;
    box-sizing: content-box;
}

.column_box {
width: 100%;
    background-color: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
}

.column_box .column-title {
width: 91%;
    height: 60px;
    padding-left: 9%;
    line-height: 60px;
    font-size: 16px;
    font-weight: 600;
    background-color: var(--border-light);
}

.column_box .column-category {
height: 50px;
    line-height: 50px;
    /*单行文本溢出显示省略号*/
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.column_box .column-category a {
width: 82%;
    margin: 0 9%;
    color: var(--text-muted);
    -webkit-transition: -webkit-transform 1s linear;
    -moz-transition: -moz-transform 1s linear;
    -o-transition: -o-transform 1s linear;
    -ms-transition: -ms-transform 1s linear;
}

.column_box .column-category a:hover {
color: var(--text-link);
}

.writer-info {
width: 100%;
    font-size: 16px;
    text-align: left;
    /*color: #98A6AD;*/
    /*margin: 0;*/
    color: #a6a6a6;
    /*border-bottom: #eaeaea solid 1px;*/
}

.writer-info #writer {
margin-left: 2px;
}

.writer-info>span {
height: 30px;
        margin: 5px 2px;
        display: inline-block;
        line-height: 30px;
}

.prev-next {
width: 100%;
    height: auto;
    margin-top: 10px;
}

.prev-next a {
max-width: 70%;
        float: left;
}

.prev-next div {
width: 100%;
    height: 50px;
    float: left;
}

.p-div {
text-align: left;
}

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

.prev-next span {
float: left;
}

.prev-next a:hover {
color: var(--text-link);
    text-decoration: underline var(--text-link);
}

.prev-next #prev-a {
/*float: left;*/
}

.prev-next #next-a {
/*float: right;*/
}

.comment-container {
width: 100%;
        margin: 0;
        padding: 5px;
}

.comment-container:hover {
box-shadow: 0 0 10px var(--text-muted);
    -moz-box-shadow: 0 0 10px var(--text-muted);
}

.text-area-holder {
width: 100%;
    /*height: 130px;*/
    margin-top: 20px;
}

#text-area {
width: 96%;
        margin: 0 2%;
        padding: 0;
}

.button-line {
width: 100%;
    height: 60px;
}

.button-line #error-info {
height: 40px;
    line-height: 40px;
    margin: 5px;
    float: left;
    color: red;
    font-weight: bold;
    font-size: 16px;
}

.button-line #publish-btn {
float: right;
    width: 100px;
    height: 40px;
    margin-top: 10px;
    background-color: var(--text-link);
    color: var(--bg-primary);
    border-radius: 10px;
    cursor: pointer;
}

.total-count {
width: 100%;
}

#comment-count {
color: var(--text-link);
}

.comment-item {
width: 100%;
    /*min-height: 100px;*/
    margin-top: 15px;
    /*padding-bottom: 20px;*/
    border-bottom: #eaeaea 1px solid;
    overflow: hidden;
}

.comment-item .user-img-box {
width: 15%;
        /*弹性布局*/
        display: flex;
        /*水平居中*/
        justify-content: center;
        /*垂直居中*/
        /*align-items: center;*/
}

.comment-item .user-img-box #user-img {
width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin: 5px auto;
}

.comment-item .comment-box {
width: 85%;
        float: right;
}

.comment-box .user-info {
width: 100%;
}

.comment-box p {
padding: 0;
}

.comment-box img {
max-width: 35%;
    vertical-align: middle;
    border: 0;
    height: auto;
    -ms-interpolation-mode: bicubic;
    overflow: hidden;
    font-size: 12px;
    padding-bottom: 5px;
}

.user-info span {
height: 25px;
    float: left;
}

.user-info .user-name {
font-weight: bold;
    margin-left: 10px;
}

.user-info .reply-user-name {
font-weight: bold;
    margin-left: 10px;
    color: #777777;
}

.user-info .publish-time {
margin-left: 5px;
    color: #a6a6a6;
}

.comment-box .comment-content {
padding: 0 10px;
        margin-bottom: 0;
        width: 100%;
}

.comment-content p {
padding-right: 10px;
}

.comment-box .icon-line {
height: 30px;
    width: 100%;
    text-align: right;
}

.comment-box .r-icon-line {
height: 10px;
    width: 100%;
    background-color: var(--bg-primary);
}

.icon-line a {
height: 16px;
    width: 16px;
    margin-top: 7px;
    display: inline-block;
    float: right;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.icon-line .liked-icon {
margin-right: 10px;
}

.icon-line .comment-icon {
margin-right: 10px;
}

.icon-line .delete-icon {
margin-right: 10px;
}

.icon-line span {
height: 16px;
    line-height: 16px;
    float: right;
    margin: 7px 2px;
    font-weight: lighter;
}

.comment-box .reply-holder {
width: 100%;
    height: 80px;
}

.comment-box .reply-text-area {
width: 100%;
    height: 100px;
    /*padding: 10px;*/
    line-height: 20px;
    font-size: 15px;
    /*background-color: #f1f2f5;*/
}

.reply-btn {
margin: 10px 2px;
    float: right;
    width: 80px;
    height: 30px;
    background-color: var(--text-link-hover);
    color: var(--bg-primary);
    border-radius: 5px;
}

.reply-box {
background-color: #f1f2f5;
    width: 100%;
    padding: 10px 0;
    overflow: auto;
}

.article-content .article-cate {
width: 100%;
    height: 25px;
    line-height: 15px;
    margin: 2px 0 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    float: left;
}

.article-content .article-cate a {
font-size: 13px;
    color: #444555;
    padding: 5px 10px;
    height: 15px;
    background-color: #f0f0f0;
    border-radius: 10px;
    /*font-weight: 900;*/
    display: inline-block;
    transition: all 0.3s ease-in-out;
    box-sizing: content-box;
}

.article-content .article-cate a:hover {
background-color: #e2e3e3;
    text-decoration: none;
}

.headpage {
width:calc(100vw);
    height:calc(60vh);
    background-size: calc(100vw);
    background-image: url('https://img.soyorin.work/article-img/lib.jpg');
}

.headpage-cover {
visibility: hidden;
        height:0px;
}

@media(max-width:1200px) {
.headpage{
        visibility: hidden;
        height:0px;
}

}

/*响应式尺寸*/
@media (max-width: 1200px) {
.toc {
        display: none;
}

/*.location {
*/
    /*    width: 100%;*/
    /*
}

*/
    .article-container {
width: 100%;
        margin: 0;
        padding: 5px;
        /*        background-color: var(--bg-primary);
                box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
                -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
                box-sizing: border-box;
                overflow: hidden;
                transition: all 0.3s;*/
}

#publish-btn {
margin-right: 2%;
}

.column-holder {
width: 100%;
        margin: 10px 0;
}

.prev-next .p-div {
text-align: left;
        width: 100%;
        height: 100%;
}

.prev-next .n-div {
text-align: right;
        width: 100%;
        height: 100%;
}

}

@media (max-width: 768px) {
.comment-item .user-img-box #user-img {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        overflow: hidden;
        margin: 5px auto;
}

}

@media (max-width: 576px) {
.comment-item .user-img-box #user-img {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        overflow: hidden;
        margin: 5px auto;
}

/* Dark Mode Overrides */
[data-theme="dark"] .article-content ul {
list-style: disc;
    padding-left: 2em;
    color: var(--text-primary);
}

[data-theme="dark"] .article-content li {
list-style: disc;
    color: var(--text-primary);
}

/* === Global Table Styling (Light + Dark) === */
.article-content table {
    margin: 1em auto;
    border-collapse: collapse;
    border: 1px solid var(--border-light);
    font-size: 13px;
    display: table;
}
.article-content th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    padding: 8px 12px;
    text-align: center;
    font-weight: 600;
}
.article-content td {
    border: 1px solid var(--border-light);
    padding: 6px 10px;
    color: var(--text-primary);
    background: var(--bg-card);
}
.article-content tr:nth-child(even) td {
    background: var(--bg-secondary);
}
.article-content caption {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

[data-theme="dark"] .article-content table {
    border-color: var(--border-color);
}
[data-theme="dark"] .article-content th {
    background: var(--bg-body);
    color: var(--text-primary);
    border-color: var(--border-color);
}
[data-theme="dark"] .article-content td {
    border-color: var(--border-color);
    color: var(--text-primary);
    background: var(--bg-card);
}
[data-theme="dark"] .article-content tr:nth-child(even) td {
    background: var(--bg-body);
}

[data-theme="dark"] .toc {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 250px;
    font-size: 13px;
    background: var(--bg-card);
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: var(--shadow-card);
    z-index: 40;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    height: auto;
    overflow: hidden;
    margin: 20px auto;
    padding: 20px;
    background-color: var(--bg-body);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
    -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    overflow: hidden;
    transition: all 0.3s;
}

[data-theme="dark"] .toc a {
color: var(--text-primary);
    /*单行文本溢出显示省略号*/
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    float: left;
    transition: ease-in-out 0.6s;
}

[data-theme="dark"] /*左容器*/
.article-container {
max-width: 830px;
    width: 100%;
    margin: 20px auto;
    padding: 20px;
    background-color: var(--bg-body);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
    -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    overflow: hidden;
    transition: all 0.3s;
    color: var(--text-primary);
}

[data-theme="dark"] .article-content {
margin-top: 15px;
    width: 100%;
    font-size: 15px;
    line-height: 32px;
    border-bottom: var(--bg-body) solid 1px;
    color: var(--text-primary);
}

[data-theme="dark"] .article-content .infomation-list {
width: auto;
    height: auto;
    border-radius: 10px;
    background-color: rgba(44, 37, 60, 0.526);
    color: var(--bg-primary);
    padding: 2px 2px 2px 2px;
}

[data-theme="dark"] .button-line #publish-btn {
float: right;
    width: 100px;
    height: 40px;
    margin-top: 10px;
    background-color: var(--text-link);
    color: var(--bg-card);
    border-radius: 10px;
    cursor: pointer;
}

[data-theme="dark"] .article-content .article-cate {
width: 100%;
    height: 25px;
    line-height: 15px;
    margin: 2px 0 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    float: left;
    color: var(--text-primary);
}

[data-theme="dark"] .article-content .article-cate a {
font-size: 13px;
    color: #444555;
    padding: 5px 10px;
    height: 15px;
    background-color: #f0f0f0;
    border-radius: 10px;
    /*font-weight: 900;*/
    display: inline-block;
    transition: all 0.3s ease-in-out;
    box-sizing: content-box;
    color: var(--text-primary);
}

[data-theme="dark"] .article-content .article-cate a:hover {
background-color: #e2e3e3;
    text-decoration: none;
    color: var(--text-primary);
}

@media (max-width: 1200px) {
[data-theme="dark"]
    .article-container {
width: 100%;
        margin: 0;
        padding: 5px;
        background-color: var(--bg-card);
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
        -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
        box-sizing: border-box;
        overflow: hidden;
        transition: all 0.3s;
        color: var(--text-primary);
}
}

