@charset "utf-8";

:root
{
    --font-color-0: #04077e;
    --font-color-1: #000;
    --font-color-2: #666;
    --font-color-3: #aaa;
    --bg-color-1: #eee;
    --line-1: #ccc;
    --line-2: #ddd;
}
p
{
    word-wrap: break-word;
    white-space: pre-wrap;
}

body
{
    font-family: "LXGW WenKai", "Times New Roman", Helvetica, Tahoma, Arial, "notoserifsc-medium", "Microsoft YaHei", "Hiragino Sans GB", "WenQuanYi Micro Hei", sans-serif;
    font-size: 16.8px;
    line-height: 1.7;
    /* letter-spacing: 0.6px; */
    color: var(--font-color-1);
    background: #e4e4e4;
    height: 100%;
}



a
{
    text-decoration: none;
    color: #4f7dde;
}

.paper
{
    padding: 4vw;
    background: #e4e4e4;
    min-height: 100vh;
}
.paper-main
{
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    padding: 36px 4vw 0px; /*上 宽 第*/
    background: #fff;
    /*border-radius: 24px;*/
    border-radius: 0px;
    background: #ffffff;
    box-shadow:  0px 5px 13px #616161, -5px -5px 13px #ffffff;
}
.index-main
{
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    padding: 36px 4.5vw 0px;
    border-radius: 0px;
    background: #ffffff;
    /* box-shadow:  0px 5px 13px #616161, -5px -5px 13px #ffffff; */
}

.index-header-line
{
    margin-top: -28px;
    /* margin-bottom: 18px; */
    /* border-bottom: 1px solid var(--line-1); */
    font-size: 0.6rem;
    color: var(--font-color-3);
    text-align: center;
    font-style: italic;
}

.header
{
    /*padding-bottom: 48px;
    margin-bottom: 48px;*/
    border-bottom: 1px solid var(--line-1);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: center;
}
.index-header
{
    /*padding-bottom: 48px;
    margin-bottom: 48px;*/
    /* border-bottom: 1px solid var(--line-1); */
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: center; 
}


.logo
{
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    flex: 0 0 100%;
}

.index-logo
{
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 0px;
    flex: 0 0 100%;
}

.nav
{
    margin: 4px -1px -3px;
    flex: 0 0 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: center;
}
.nav li
{
    padding: 2px 0;
    margin-right: 24px;
}
.nav li:last-of-type
{
    margin-right: 0;
}
.nav li a
{
    color: var(--font-color-1);
    /* opacity: .6; */
    /* transition: opacity ease-in-out .5s; */
}
.nav li a:hover
{
    opacity: 1;
    /* transition: opacity ease-in-out .5s; */
}

.post-header
{
    margin-bottom: 48px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: center;
}
.post-header .logo
{
    font-size: 1rem;
}
.post-header .go-home
{
    display: block;
    padding: 10px 20px 8px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #eee;
    margin: 8px 0;
    /* transition: background ease-in-out .5s; */
}
.post-header .go-home:hover
{
    background: var(--bg-color-1);
    /* transition: background ease-in-out .5s; */
}
.post-header .go-home svg
{
    transform: translateX(0);
    /* transition: transform ease-in-out .5s; */
}
.post-header .go-home:hover svg
{
    transform: translateX(-4px);
    /* transition: transform ease-in-out .5s; */
}

.post-list
{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
}

/* 首页文章列表样式（原作者风格） */
.post-item {
    width: 100%;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.post-item-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    line-height: 1.7;
}

/* 日期前置 */
.post-item-date {
    font-size: 0.875rem;
    color: var(--font-color-3);
    min-width: 45px;
    text-align: left;
}

/* 分类标签 */
.post-item-category {
    color: var(--font-color-0);
    font-size: 0.875rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.post-item-category:hover {
    opacity: 0.7;
}

/* 分隔符 */
.post-item-separator {
    color: var(--font-color-3);
    font-size: 0.875rem;
}

/* 文章标题 */
.post-item-title {
    color: var(--font-color-1);
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
    flex: 1;
}

.post-item-title:hover {
    color: var(--font-color-0);
}

/* 文章摘要 */
.post-item-excerpt {
    margin-top: 8px;
    margin-left: 53px;
    font-size: 0.875rem;
    color: var(--font-color-2);
    line-height: 1.6;
}

/* 文章标签 */
.post-item-tags {
    margin-top: 6px;
    margin-left: 53px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-item-tag {
    font-size: 0.8rem;
}

.post-item-tag a {
    color: var(--font-color-3);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-item-tag a:hover {
    color: var(--font-color-0);
}
.post
{
    width: 100%;
    padding-bottom: 48px;
    margin-bottom: 48px;
    border-bottom: 1px dashed var(--line-2);
}
.post-title
{
    display: inline-block;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 12px;
    color: var(--font-color-1);
    /*transition: color ease-in-out .5s;*/
}
.post-title:hover
{
    color: var(--font-color-0);
    /* transition: color ease-in-out .5s; */
}
.post-except
{
    word-break: break-all;
    margin-bottom: 12px;
}
.read-more
{
    padding: 0 4px;
    color: var(--font-color-0);   
}
.read-more:before,
.read-more:after
{
    display: inline-block;
    /* transition: transform ease-in-out .5s; */
}
.read-more:before
{
    content: "{ ";
}
.read-more:after
{
    content: " }";
}
.read-more:hover:before
{
    transform: translateX(-4px);
    /* transition: transform ease-in-out .25s; */
}
.read-more:hover:after
{
    transform: translateX(4px);
    /* transition: transform ease-in-out .25s; */
}
.post-date
{
    font-size: 0.875rem;
    color: var(--font-color-3);
}

.paginator
{
    font-size: 0.875rem;
    width: 100%;
    margin: -18px auto 24px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    /*justify-content: space-evenly;*/
    align-items: center;
}
.paginator *
{
    display: block;
    padding: 8px 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #eee;
}
.paginator .space
{
    display: block;
    padding: 8px 16px;
    border-radius: 18px;
    background: #fff;
    border: none;
}
.paginator a
{
    margin: 4px;
    color: var(--font-color-2);
    /* transition: color ease-in-out .5s; */
}
.paginator a:hover
{
    color: var(--font-color-0);
    /* transition: color ease-in-out .5s; */
}
.paginator .current
{
    color: var(--font-color-0);
    border: 1px solid var(--font-color-0);
}

.footer
{
    padding: 4px 0;
    font-size: 0.875rem;
    color: var(--font-color-3);
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-content: center;
}
.footer-last-without-line
{
    /* padding-bottom: 24px; */
    /* padding-top: 6px; */
    font-size: 10px;
    color: var(--font-color-3);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    margin-bottom: -1px;
    /* border-top: 1px solid var(--line-1); */
}
.footer-last
{
    padding-bottom: 24px;
    /* padding-top: 6px; */
    font-size: 10px;
    color: var(--font-color-3);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    border-top: 1px solid var(--line-1);
}
.post-footer-pre-next
{
    padding-top: 10px;
    /* padding-top: 6px; */
    color: black;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    width: -webkit-fill-available;
}

.footer span
{
    text-align: left;
    margin-bottom: -7px;
}
.footer-last-span-right
{
    flex: 1;
    text-align: right;
    font-size: 10px; 
}

.post-footer-pre-next-last-span-right
{
    flex: 1;
    text-align: right;
}

@media only screen and (max-width: 600px) {
    .footer-last-without-line {
        flex-direction: column;
    }
    .footer-last {
        padding-top: 5px;
        flex-direction: column;
    }

    .footer-last i{
        font-style: normal;
    }

    .footer-last-span-right {
        float: left; 
        font-size: 10px; 
    }
    .post-footer-pre-next{
        flex-direction: column;
        align-items: normal;
    }
    .post-footer-pre-next-last-span-right{
        text-align: left;
    }
  }

.index-footer-last-span
{
    font-size: 10px; 
}
.footer a
{
    color: var(--font-color-3);
    /* transition: color ease-in-out .5s; */
}
.footer a:hover
{
    color: var(--font-color-0);
    /* transition: color ease-in-out .5s; */
}

.post-main
{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 24px;
}
.post-main-title
{
    flex: 0 0 100%;
    /*margin-bottom: 12px;*/
    margin-top: 0;
    padding-top: 16px;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--font-color-1);
}
.post-head-meta-center
{
    font-size: 0.875rem;
    color: var(--font-color-3);
    flex: 0 0 100%;
    margin-top: 10px;
    text-align: center;
}
.post-head-meta-left
{
    font-size: 0.875rem;
    color: var(--font-color-3);
    flex: 0 0 100%;
    margin-top: 10px;
    text-align: left;
}

.post-meta
{
    font-size: 0.875rem;
    color: var(--font-color-3);
    flex: 0 0 100%;
    margin-bottom: 10px;
    margin-top: 10px;
}


.archive
{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: normal;
}
.archive li
{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-content: center;
    padding: 12px 0;
}
.archive li:nth-child(odd)
{
    background: #fafafa;
}
.archive li:nth-child(even)
{
    background: #fff;
}
.archive li span
{
    width: 108px;
    color: var(--font-color-2);
}
.archive-main
{
    flex: 0 1 calc( 100% - 108px );
}


.archive-title
{
    color: #6fa3ef;
    text-decoration: none;
    transition: all 0.3s ease;
}
.archive-title:hover
{
    color: var(--font-color-0);
    text-decoration: underline;
}

/* add by myself */
.circle-green {
    padding: 40px 25px 50px;
    border: solid 1px green;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-content: center;
}
.circle-red {
    padding: 40px 25px 50px;
    border: solid 1px rgb(156, 0, 0);
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-content: center;
}
.circle-orange {
    padding: 40px 25px 50px;
    border: solid 1px rgb(244, 135, 26);
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-content: center;
}
.circle-blue {
    padding: 40px 25px 50px;
    border: solid 1px rgb(81, 114, 221);
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-content: center;
}
.circle-black {
    padding: 40px 25px 50px;
    border: solid 1px rgb(0, 0, 0);
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-content: center;
}

.poem-header{
    font-size: larger;
}
.poem span {
    color: #000
}

/* comment*/
.paper-comment {
    padding: 4vw;
}

.paper-comment-main {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    padding: 72px 8vw 24px;
    background: #fff;
    border-radius: 24px;
    background: #fff;
}


.comments-container {
    display: inline-block;
    margin-top: 10px;
    width: 100%
}
  

.comment-area-title {
    width: 100%;
    margin: 10px 0;
    font-size: 1.38rem;
    color: var(--default-text-color);
}

/* list页面 标签访问过后的颜色 */
.archive-main a:link { 
    color:#4f7dde; 
    text-decoration:none; 
} 

.archive-main a:visited { 
    color:#9c9caf; 
    text-decoration: underline; 
} 
.archive-main a:hover {
    color:#000000;
    text-decoration: underline; 
}

.index-header a:link { 
    color:#000000; 
    text-decoration:none; 
} 

.index-header a:visited { 
    color:#9c9caf; 
    text-decoration: underline; 
} 

.index-header a:hover {
    color:rgb(0, 0, 0);
    text-decoration: underline; 
}

.header a:link {
    color:rgb(0, 0, 0);
    text-decoration: none; 
}

.header a:hover {
    color:rgb(0, 0, 0);
    text-decoration: underline; 
}




/* header相关 */
.description {
    font-size: smaller;
    color: #9c9caf;
    margin-top: -24px;
}

.header-container {
    display: flex;
    align-items: center;
  }
.header-content {
display: flex;
flex-direction: column;
margin-left: 10px; /* 调整a标签和span之间的距离 */
}

/*img adj*/
.about-achievement-container{
    max-width: 100%;
    display: flex;
}

.about-achievement-container img{
    background-color: rgba(255, 255, 255, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: inline-block;
    margin: 0 auto;
    vertical-align: middle;
}

.about-achievement-container img:hover{
    opacity: 1;
    cursor: pointer;
    transform: scale(1.5);
}
.about-achievement-container img:active::before{
    opacity: 1;
    cursor: pointer;
    transform: scale(1.5);
}

@media only screen and (max-width: 600px) {
    .about-achievement-container {
        max-width: 100%;
        display: flex;
        flex-direction: column;
    }

    .about-achievement-container img{
        max-width: 50%;
        margin-left: 0px;
        display: inline-block;
        margin: 0 auto;
        vertical-align: middle;
    }
  }
  
.inline-ul {
    list-style: none;
    padding: 0;
} 
.inline-li {
    display: inline-block;
    margin-right: 10px; /* 可以根据需要调整元素之间的间距 */
}

.year-font-color {
    color: black !important;
}

/* 标签云样式（原作者风格） */
.tags-icon {
    font-size: 1.2rem;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    line-height: 1.7;
}

.tag-cloud-item {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.tag-cloud-item:hover {
    opacity: 0.7;
}

.tag-name {
    color: #6fa3ef;
    font-size: 1rem;
}

.tag-count {
    color: var(--font-color-0);
    font-size: 1rem;
}

/* 分类云样式（和标签云一样） */
.categories-icon {
    font-size: 1.2rem;
}

.categories-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    line-height: 1.7;
}

.category-cloud-item {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.category-cloud-item:hover {
    opacity: 0.7;
}

.category-name {
    color: var(--font-color-0);
    font-size: 1rem;
}

.category-count {
    color: var(--font-color-3);
    font-size: 0.875rem;
}

/* 分类列表样式（原作者风格：竖排列表） */
.categories-list-simple {
    margin-top: 8px;
    line-height: 1.8;
}

.category-list-item {
    display: block;
    margin-bottom: 8px;
}

.category-list-name {
    color: #6fa3ef;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-list-name:visited {
    color: #6fa3ef;
}

.category-list-name:hover {
    color: #6fa3ef;
    text-decoration: none;
}

.category-list-count {
    color: var(--font-color-0);
    font-size: 1rem;
    margin-left: 8px;
}

/* 分类简洁列表样式（日期 + 标题） */
.category-simple-list {
    margin-top: 8px;
    line-height: 1.8;
}

.category-simple-item {
    display: block;
    margin-bottom: 8px;
}

.category-simple-date {
    color: var(--font-color-3);
    font-size: 0.875rem;
    margin-right: 12px;
}

.category-simple-title {
    color: #6fa3ef;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-simple-title:visited {
    color: #9c9caf;
}

.category-simple-title:hover {
    color: var(--font-color-0);
    text-decoration: underline;
}

@media print {

    /* All your print styles go here */
    .paper {
        margin: 0;
        padding: 0;
    }

    .paper-main {
        margin: 0 !important;
        max-width: 100%;
    }
}

/* .darkmode-layer, .darkmode-toggle {
    z-index: 500;
} */

.darkmode-background {
    background: transparent !important;
}
/* 覆盖原始darkmode样式 */
.darkmode-ignore{
    isolation:isolate;
    display: initial;
}

/* ========================================
   响应式设计 - 全端自适应
   ======================================== */

/* 平板端 (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .paper {
        padding: 3vw;
    }
    
    .paper-main {
        max-width: 90%;
        padding: 28px 3.5vw 0px;
    }
    
    .index-main {
        max-width: 85%;
        padding: 28px 4vw 0px;
    }
}

/* 手机端 (< 768px) */
@media screen and (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    .paper {
        padding: 2vw;
    }
    
    .paper-main {
        max-width: 100%;
        padding: 20px 5vw 0px;
        box-shadow: 0px 3px 8px #616161, -3px -3px 8px #ffffff;
    }
    
    .index-main {
        max-width: 100%;
        padding: 20px 5.5vw 0px;
    }
    
    /* 头部样式 */
    .logo {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .index-logo {
        font-size: 2.2rem;
        margin-bottom: 0px;
    }
    
    .description {
        font-size: 0.9rem;
    }
    
    /* 导航菜单 */
    .nav {
        margin: 2px -1px -2px;
    }
    
    .nav li {
        margin-right: 16px;
        font-size: 0.95rem;
    }
    
    /* 文章列表 */
    .post {
        padding-bottom: 32px;
        margin-bottom: 32px;
    }
    
    .post-title {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }
    
    .post-meta,
    .post-info {
        font-size: 0.85rem;
    }
    
    /* 首页文章列表响应式 */
    .post-item-header {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }
    
    .post-item-date {
        font-size: 0.8rem;
        min-width: auto;
    }
    
    .post-item-category {
        font-size: 0.8rem;
    }
    
    .post-item-title {
        font-size: 0.95rem;
    }
    
    .post-item-excerpt {
        margin-left: 0;
        font-size: 0.85rem;
    }
    
    .post-item-tags {
        margin-left: 0;
    }
    
    /* 文章内容 */
    .post-content h1 {
        font-size: 1.8rem;
    }
    
    .post-content h2 {
        font-size: 1.5rem;
    }
    
    .post-content h3 {
        font-size: 1.3rem;
    }
    
    .post-content h4 {
        font-size: 1.1rem;
    }
    
    /* 图片 */
    .post-content img {
        max-width: 100%;
        height: auto;
    }
    
    /* 代码块 */
    .post-content pre {
        overflow-x: auto;
        font-size: 0.85rem;
    }
    
    /* 表格 */
    .post-content table {
        display: block;
        overflow-x: auto;
        font-size: 0.9rem;
    }
    
    /* 页脚 */
    .footer {
        font-size: 0.85rem;
        padding: 16px 0;
    }
    
    /* 归档页面 */
    .archive-date {
        font-size: 0.85rem;
    }
    
    .archive-title {
        font-size: 0.95rem;
    }
    
    /* 标签云响应式 */
    .tags-icon {
        font-size: 1rem;
    }
    
    .tags-cloud {
        gap: 10px;
        margin-top: 16px;
    }
    
    .tag-name {
        font-size: 0.95rem;
    }
    
    .tag-count {
        font-size: 0.8rem;
    }
    
    /* 分类云响应式 */
    .categories-icon {
        font-size: 1rem;
    }
    
    .categories-cloud {
        gap: 10px;
        margin-top: 16px;
    }
    
    .category-name {
        font-size: 0.95rem;
    }
    
    .category-count {
        font-size: 0.8rem;
    }
}

/* 小屏手机 (< 480px) */
@media screen and (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .paper {
        padding: 1vw;
    }
    
    .paper-main {
        padding: 16px 6vw 0px;
        border-radius: 0;
    }
    
    .index-main {
        padding: 16px 6.5vw 0px;
        border-radius: 0;
    }
    
    .logo {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .index-logo {
        font-size: 1.8rem;
    }
    
    .description {
        font-size: 0.85rem;
    }
    
    .nav li {
        margin-right: 12px;
        font-size: 0.9rem;
    }
    
    .post {
        padding-bottom: 24px;
        margin-bottom: 24px;
    }
    
    .post-title {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }
    
    .post-meta,
    .post-info {
        font-size: 0.8rem;
    }
    
    .post-content h1 {
        font-size: 1.5rem;
    }
    
    .post-content h2 {
        font-size: 1.3rem;
    }
    
    .post-content h3 {
        font-size: 1.15rem;
    }
    
    .post-content h4 {
        font-size: 1rem;
    }
    
    .post-content pre {
        font-size: 0.8rem;
        padding: 8px;
    }
    
    .post-content table {
        font-size: 0.85rem;
    }
    
    .footer {
        font-size: 0.8rem;
        padding: 12px 0;
    }
    
    /* 隐藏不必要的元素 */
    .header-img {
        max-width: 60px;
        max-height: 60px;
    }
}

/* 横屏适配 */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .paper-main,
    .index-main {
        max-width: 95%;
    }
    
    .index-logo {
        font-size: 2rem;
    }
}
