/* =========================================================
   本站整合特性样式
   基础样式来自 v19，这里只放之后增加的功能
   ========================================================= */

/* =========================================================
   v23 · 细节润色
   不动结构，只处理字体、层次、留白、卡片和玻璃质感
   ========================================================= */

::selection {
    background: var(--theme-color);
    color: #0b1b3a;
}

:focus-visible {
    outline: 2px solid var(--theme-color);
    outline-offset: 3px;
}

#about,
#work,
#journey {
    scroll-margin-top: 70px;
}

/* 章节标题：加一个很轻的英文眉题，正文仍是原来的居中结构 */
#about h3,
#work h3,
#journey h3 {
    margin-bottom: 16px;
    font-family: "思源宋体 SemiBold", "Songti SC", "STSong", "SimSun", serif;
    font-weight: 600;
    letter-spacing: .02em;
}

.heading-underline,
.heading-underline-1 {
    background: linear-gradient(90deg, var(--theme-color), rgba(132, 199, 254, 0));
}

.heading-underline {
    height: 2px;
    width: 64px;
}

.heading-underline-1 {
    height: 2px;
    width: 44px;
}

/* 首屏：把文字从背景里“托”起来 */
#welcome h1 {
    text-shadow: 0 8px 34px rgba(0, 0, 0, .28);
}

#welcome h2 {
    text-shadow: 0 4px 18px rgba(0, 0, 0, .25);
}

.welcome-now {
    border-color: rgba(255, 255, 255, .16);
    background: rgba(8, 12, 20, .26);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
}

/* 导航：纸面/玻璃之间更干净的分界 */
#nav-bar .nav-link {
    font-size: 14px;
    letter-spacing: .02em;
}

#nav-bar .nav-link:before {
    bottom: 6px;
    height: 2px;
    background: linear-gradient(90deg, var(--theme-color), rgba(132, 199, 254, .15));
}

.nav-bar-blur {
    border-bottom: 1px solid var(--black-a-5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .045);
}

.nav-link-logo,
.nav-link-logo-blur {
    font-family: "思源宋体 SemiBold", "Songti SC", "STSong", "SimSun", serif;
    letter-spacing: .02em;
}

/* 关于我：控制正文行长，标签更轻 */
.about-content {
    max-width: 720px;
    margin-right: auto;
    margin-left: auto;
}

.about-content p {
    line-height: 2.05;
}

.tags-container span {
    padding: 7px 14px;
    border: 1px solid var(--black-a-10);
    border-radius: 999px;
    background: var(--black-a-5);
    font-size: 12px;
}

.tags-container span:hover {
    border-color: var(--theme-color);
}

/* 博客模块：更像一组可以翻的文章，而不是普通卡片 */
.blog-toolbar {
    margin-top: 30px;
}

.blog-filter {
    padding: 6px 14px;
    border-color: var(--black-a-10);
    font-size: 11px;
    letter-spacing: .02em;
}

.blog-filter.is-active {
    box-shadow: 0 5px 16px rgba(132, 199, 254, .28);
}

.blog-count {
    color: var(--black-a-50);
    letter-spacing: .08em;
}

.post-card {
    border-color: var(--black-a-5);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .035);
}

.post-card:hover {
    border-color: var(--black-a-15);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .13);
    transform: translateY(-5px);
}

.post-card .card-image {
    transition: transform .65s cubic-bezier(.2, .7, .2, 1);
}

.post-card:hover .card-image {
    transform: scale(1.035);
}

.post-card .card-context {
    padding: 16px 20px 18px;
}

.post-kicker {
    margin-bottom: 6px;
    color: var(--theme-color);
    font-size: 9px;
    letter-spacing: .14em;
}

.post-card .card-title {
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 1.55;
    letter-spacing: -.01em;
}

.post-card .card-description {
    color: var(--black-a-60);
    line-height: 1.8;
}

.post-card .card-addendum {
    color: var(--black-a-50);
    letter-spacing: .02em;
}

.post-date {
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .36);
}

.post-pin {
    padding: 3px 9px;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(132, 199, 254, .24);
}

.post-card-featured .card-title {
    font-size: 25px;
    letter-spacing: -.02em;
}

.post-empty {
    border-color: var(--black-a-15);
    background: var(--black-a-5);
}

/* 日记：卡片轻一点，日期用主题色 */
#journey-container div {
    border: 1px solid var(--black-a-5);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .025);
    transition: transform .3s ease, box-shadow .3s ease, background-color .25s;
}

#journey-container div:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
    transform: translateY(-3px);
}

.journey-item-date {
    color: var(--theme-color);
    font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    letter-spacing: .02em;
}

.journey-item-content {
    color: var(--black-a-70);
    line-height: 1.8;
}

#journey .tip {
    color: var(--black-a-50);
    font-size: 12px;
    letter-spacing: .02em;
}

#journey-container::-webkit-scrollbar {
    height: 6px;
}

#journey-container::-webkit-scrollbar-track {
    background: var(--black-a-5);
}

#journey-container::-webkit-scrollbar-thumb {
    border: 1px solid transparent;
    background-clip: padding-box;
}

/* 页脚：给白字加一点落地的暗部，不改变排版 */
footer {
    border-top: 1px solid rgba(255, 255, 255, .1);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .2) 100%);
}

footer a {
    border-bottom: 1px solid transparent;
}

footer a:hover {
    border-bottom-color: rgba(255, 255, 255, .55);
}

.contact-link {
    padding: 2px 0;
}

.contact-link:hover {
    color: var(--theme-color);
}

.footer-notice {
    font-size: 11px;
    line-height: 1.8;
}

/* 卡片弹窗：和博客卡片保持同一套圆角与玻璃 */
.card-popup-content {
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 18px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .3);
    backdrop-filter: blur(24px);
}

.card-popup-close {
    border-radius: 50%;
    transition: background-color .25s, color .25s;
}

.card-popup-close:hover {
    background: var(--black-a-10);
    color: var(--theme-color);
}

@media screen and (max-width: 640px) {
    #about h3,
    #work h3,
    #journey h3 {
        font-size: 27px;
    }

    .about-content {
        padding: 0 18px;
    }

    .post-card .card-title {
        font-size: 17px;
    }

    .post-card-featured .card-title {
        font-size: 21px;
    }

    .journey-item-date {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}


/* =========================================================
   博客文章：每页 5 篇，第一张推荐大卡 + 4 张常规卡
   ========================================================= */
.work-subtitle {
    max-width: 560px;
    margin: 18px auto 0;
    color: var(--black-a-60);
    font-size: 13px;
    line-height: 1.9;
    text-align: center;
}

.blog-toolbar,
.multicard {
    box-sizing: border-box;
}

.blog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: min(1100px, 100%);
    margin: 28px auto 0;
    padding: 0 24px;
    text-align: left;
}

.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.blog-filter {
    padding: 6px 14px;
    border: 1px solid var(--black-a-10);
    border-radius: 999px;
    background: transparent;
    color: var(--black-a-60);
    font-family: inherit;
    font-size: 11px;
    letter-spacing: .02em;
    cursor: pointer;
    transition: background-color .25s, border-color .25s, color .25s;
}

.blog-filter:hover {
    border-color: var(--theme-color-active);
    color: var(--txt-b-pure);
}

.blog-filter.is-active {
    border-color: var(--theme-color);
    background: var(--theme-color);
    color: #0b1b3a;
    box-shadow: 0 5px 16px rgba(132, 199, 254, .28);
}

.blog-count {
    flex: 0 0 auto;
    color: var(--black-a-50);
    font-family: var(--mono, monospace);
    font-size: 9px;
    letter-spacing: .08em;
}

.multicard {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 34px 24px 20px;
    align-items: stretch;
}

.post-card {
    display: flex;
    flex-direction: column;
    width: auto;
    max-width: none;
    height: auto;
    min-height: 320px;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--black-a-5);
    border-radius: 14px;
    background: var(--white-a-30);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .035);
    text-align: left;
    cursor: pointer;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}

.post-card:hover {
    border-color: var(--black-a-15);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .13);
    transform: translateY(-5px);
}

.post-card .card-image-div {
    position: relative;
    height: 190px;
    flex: 0 0 190px;
}

.post-card .card-image {
    height: 100%;
    width: 100%;
    background-color: var(--black-a-10);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: transform .65s cubic-bezier(.2, .7, .2, 1);
}

.post-card:hover .card-image {
    transform: scale(1.035);
}

.post-card .card-context {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px 18px 16px;
}

.post-kicker {
    margin: 0 0 6px;
    color: var(--theme-color);
    font-family: var(--mono, monospace);
    font-size: 9px;
    letter-spacing: .12em;
}

.post-card .card-title {
    display: block;
    overflow: hidden;
    margin: 0 0 7px;
    color: var(--txt-b-pure);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -.01em;
    word-break: break-word;
}

.post-card .card-description {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--black-a-60);
    font-size: 12px;
    line-height: 1.75;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.post-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.post-card-tags span {
    padding: 2px 7px;
    border: 1px solid var(--black-a-5);
    border-radius: 999px;
    color: var(--black-a-40);
    font-size: 9px;
    line-height: 1.5;
}

.post-card .card-addendum {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--black-a-5);
    color: var(--black-a-50);
    font-size: 11px;
}

.post-card .card-addendum span {
    float: none;
}

.post-date {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 997;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .36);
    color: rgba(255, 255, 255, .9);
    font-family: var(--mono, monospace);
    font-size: 9px;
    letter-spacing: .04em;
    backdrop-filter: blur(4px);
}

.post-card:not(.post-card-featured) .card-title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.post-card-featured {
    grid-column: span 2;
    min-height: 360px;
}

.post-card-featured .card-image-div {
    height: 230px;
    flex-basis: 230px;
}

.post-card-featured .card-title {
    font-size: 24px;
    line-height: 1.45;
    letter-spacing: -.02em;
}

.post-card-featured .card-description {
    font-size: 13px;
    -webkit-line-clamp: 3;
}

.post-card[hidden] {
    display: none !important;
}

/* 翻页 */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    width: min(1100px, 100%);
    margin: 22px auto 0;
    padding: 0 24px;
    box-sizing: border-box;
}

.page-btn {
    padding: 8px 14px;
    border: 1px solid var(--black-a-10);
    border-radius: 999px;
    background: var(--white-a-30);
    color: var(--black-a-60);
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
    transition: border-color .25s, color .25s, background-color .25s;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--theme-color);
    color: var(--txt-b-pure);
}

.page-btn:disabled {
    opacity: .32;
    cursor: default;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-number {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--black-a-10);
    border-radius: 50%;
    background: transparent;
    color: var(--black-a-60);
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
    transition: border-color .25s, color .25s, background-color .25s;
}

.page-number:hover {
    border-color: var(--theme-color);
    color: var(--txt-b-pure);
}

.page-number.is-active {
    border-color: var(--theme-color);
    background: var(--theme-color);
    color: #0b1b3a;
    font-weight: 600;
}

@media screen and (max-width: 900px) {
    .multicard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
        padding: 30px 20px 16px;
    }

    .post-card-featured {
        grid-column: span 2;
        min-height: 380px;
    }

    .post-card-featured .card-image-div {
        height: 230px;
        flex-basis: 230px;
    }
}

@media screen and (max-width: 640px) {
    .blog-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 0 16px;
    }

    .multicard {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px 16px 16px;
    }

    .post-card,
    .post-card-featured {
        grid-column: auto;
        min-height: 0;
    }

    .post-card .card-image-div,
    .post-card-featured .card-image-div {
        height: 200px;
        flex-basis: 200px;
    }

    .post-card-featured .card-title {
        font-size: 21px;
    }

    .blog-pagination {
        gap: 8px;
        padding: 0 16px;
    }

    .page-btn {
        padding: 7px 11px;
        font-size: 10px;
    }

    .page-number {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }

    .work-subtitle {
        padding: 0 18px;
        font-size: 12px;
    }
}

/* 设计规范收敛：文字下限、细分隔、等宽数字、0.5px 边框 */
.welcome-now-dot {
    display: inline-block;
    width: 1px;
    height: 12px;
    margin: 0 4px;
    overflow: hidden;
    background: rgba(255, 255, 255, .28);
    color: transparent;
    font-size: 0;
    vertical-align: -1px;
}

.blog-count {
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.blog-filter {
    min-height: 36px;
    font-size: 12px;
}

.post-card {
    border-width: .5px;
    text-wrap: balance;
}

.post-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.post-kicker span + span {
    padding-left: 8px;
    border-left: 1px solid var(--black-a-15);
}

.post-date {
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.post-card-tags span {
    padding: 3px 8px;
    border-width: .5px;
    font-size: 12px;
}

.post-card .card-addendum {
    font-size: 12px;
}

.post-card .card-title {
    text-wrap: balance;
}

.page-btn,
.page-number {
    min-height: 36px;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.page-number {
    width: 34px;
    height: 34px;
}

@media screen and (max-width: 640px) {
    .blog-filter {
        min-height: 44px;
    }

    .page-btn {
        min-height: 44px;
    }

    .page-number {
        width: 40px;
        height: 40px;
    }
}

/* 卡片图片接缝与日间模式 */
.post-card {
    border: 0;
    background: var(--white-a-30);
    box-shadow:
        inset 0 0 0 .5px var(--black-a-10),
        0 8px 24px rgba(0, 0, 0, .035);
}

.post-card:hover {
    box-shadow:
        inset 0 0 0 .5px var(--black-a-15),
        0 18px 42px rgba(0, 0, 0, .13);
}

.post-card .card-image-div {
    display: block;
    overflow: hidden;
    background: var(--black-a-10);
    line-height: 0;
}

.post-card .card-image {
    display: block;
    height: 100%;
    background-position: center;
    background-size: cover;
    transform: translateZ(0);
}

.post-card .card-image-overlay {
    display: none;
}

.post-card .card-context {
    background: var(--white-a-30);
}

.article-like:focus-visible,
.post-card:focus-visible {
    outline: 2px solid var(--theme-color);
    outline-offset: 2px;
}

/* 卡片底部：日期与喜欢数 */
.post-card .card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: .5px solid var(--black-a-5);
}

.post-card .post-date {
    position: static;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    color: var(--black-a-50);
    font-family: var(--mono, monospace);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    letter-spacing: .015em;
    line-height: 1.4;
}

.post-card .post-likes {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--black-a-40);
    font-family: var(--mono, monospace);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    line-height: 1.4;
}

.post-card .post-likes-heart {
    color: var(--black-a-20);
    font-size: 12px;
    line-height: 1;
}

.post-card .post-likes.has-likes {
    color: #b55260;
}

.post-card .post-likes.has-likes .post-likes-heart {
    color: #c45e6b;
}

.post-card-featured .card-meta {
    padding-top: 14px;
}

.post-card-featured .post-date {
    font-size: 15px;
}

.post-card-featured .post-likes {
    font-size: 14px;
}

.post-card-featured .card-context {
    padding-bottom: 18px;
}

@media screen and (max-width: 640px) {
    .post-card .post-date,
    .post-card .post-likes {
        font-size: 14px;
    }
}

.post-card .card-category {
    margin: 0 0 5px;
    color: var(--theme-color);
    font-family: var(--mono, monospace);
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: .06em;
}

.post-card-featured .card-category {
    margin-bottom: 7px;
    font-size: 13px;
}

/* 站主资料 */
.about-owner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 22px auto 16px;
    text-align: left;
}

.about-owner-avatar {
    display: block;
    width: 88px;
    height: 88px;
    object-fit: cover;
    border: .5px solid var(--black-a-10);
    border-radius: 50%;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
}

.about-owner-copy {
    min-width: 0;
}

.about-owner-name {
    margin: 0;
    color: var(--txt-b-pure);
    font-family: "思源宋体 SemiBold", "Songti SC", "STSong", "SimSun", serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.about-owner-line {
    margin: 5px 0 0;
    color: var(--black-a-50);
    font-size: 12px;
    line-height: 1.5;
}

.blog-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.blog-archive-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    color: var(--black-a-50);
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
}

.blog-archive-link:hover {
    color: var(--theme-color);
}

@media screen and (max-width: 640px) {
    .blog-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .blog-toolbar-actions {
        width: 100%;
        justify-content: space-between;
    }

    .about-owner {
        gap: 12px;
    }

    .about-owner-avatar {
        width: 72px;
        height: 72px;
    }

    .about-owner-name {
        font-size: 18px;
    }
}

/* =========================================================
   Firefly 式首页工作台：资料 / 文章 / 站点信息
   ========================================================= */
.home-dashboard {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 270px;
    gap: 18px;
    align-items: start;
    width: min(1400px, calc(100% - 40px));
    margin: 0 auto;
    padding: 74px 0 46px;
    box-sizing: border-box;
}

.home-dashboard #about,
.home-dashboard #work {
    position: relative;
    top: auto;
    width: auto;
    padding: 20px;
    border: .5px solid var(--black-a-10);
    border-radius: 16px;
    background: var(--container-1);
    backdrop-filter: blur(24px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .06);
    text-align: left;
}

.home-dashboard #about {
    position: sticky;
    top: 88px;
    padding: 24px 18px 20px;
    text-align: center;
}

.home-dashboard #work {
    padding: 18px 16px 16px;
    min-width: 0;
}

.home-dashboard #about h3,
.home-dashboard #work h3 {
    font-size: 22px;
    text-align: left;
}

.home-dashboard #about h3 {
    text-align: center;
}

.home-dashboard .heading-underline-1 {
    margin-left: 0;
}

.home-dashboard #about .heading-underline-1 {
    margin-right: auto;
    margin-left: auto;
}

.home-dashboard .about-owner {
    flex-direction: column;
    gap: 10px;
    margin: 18px auto 12px;
    text-align: center;
}

.home-dashboard .about-owner-avatar {
    width: 92px;
    height: 92px;
}

.home-dashboard .about-owner-name {
    font-size: 19px;
}

.home-dashboard .tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin-top: 14px;
}

.home-dashboard .tags-container span {
    margin: 0;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
}

.home-dashboard .about-content {
    margin-top: 18px;
    color: var(--black-a-60);
    font-size: 13px;
    line-height: 1.85;
    text-align: left;
}

.home-dashboard .about-content p {
    margin: 0 0 10px;
}

.home-dashboard .about-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: .5px solid var(--black-a-5);
}

.home-dashboard .about-links a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 10px;
    border: .5px solid var(--black-a-10);
    border-radius: 999px;
    color: var(--black-a-50);
    font-size: 12px;
    text-decoration: none;
}

.home-dashboard .about-links a:hover {
    border-color: var(--theme-color);
    color: var(--theme-color);
}

.home-dashboard .work-subtitle {
    max-width: none;
    margin: 10px 0 0;
    color: var(--black-a-50);
    font-size: 12px;
    line-height: 1.7;
    text-align: left;
}

.home-dashboard .blog-toolbar {
    width: 100%;
    margin: 16px 0 0;
    padding: 12px 0;
    border-top: .5px solid var(--black-a-5);
    border-bottom: .5px solid var(--black-a-5);
}

.home-dashboard .blog-filter {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
}

.home-dashboard .blog-toolbar-actions {
    gap: 10px;
}

.home-dashboard .blog-archive-link {
    min-height: 32px;
    font-size: 12px;
}

.home-dashboard .blog-count {
    font-size: 12px;
}

.home-dashboard .multicard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    padding: 14px 0 10px;
}

.home-dashboard .post-card {
    min-height: 300px;
}

.home-dashboard .post-card .card-image-div {
    height: 168px;
    flex-basis: 168px;
}

.home-dashboard .post-card .card-context {
    padding: 12px 14px 13px;
}

.home-dashboard .post-card .card-title {
    font-size: 16px;
}

.home-dashboard .post-card .card-description {
    font-size: 12px;
}

.home-dashboard .post-card-featured {
    min-height: 340px;
}

.home-dashboard .post-card-featured .card-image-div {
    height: 208px;
    flex-basis: 208px;
}

.home-dashboard .post-card-featured .card-title {
    font-size: 21px;
}

.home-dashboard .post-card-featured .card-description {
    font-size: 12px;
}

.home-dashboard .blog-pagination {
    width: 100%;
    margin: 10px 0 0;
    padding: 8px 0 0;
}

.home-dashboard .page-btn {
    padding: 6px 10px;
    font-size: 11px;
}

.home-dashboard .page-number {
    width: 30px;
    height: 30px;
    font-size: 11px;
}

.home-side {
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.home-side-card {
    padding: 17px 16px;
    border: .5px solid var(--black-a-10);
    border-radius: 14px;
    background: var(--container-1);
    backdrop-filter: blur(24px);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .05);
}

.home-side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.home-side-head h3 {
    margin: 0;
    color: var(--txt-b-pure);
    font-family: "思源宋体 SemiBold", "Songti SC", "STSong", "SimSun", serif;
    font-size: 16px;
    font-weight: 600;
}

.home-side-head a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    color: var(--black-a-40);
    font-size: 11px;
    text-decoration: none;
}

.home-side-head a:hover {
    color: var(--theme-color);
}

.home-latest {
    display: flex;
    flex-direction: column;
}

.home-latest a {
    display: block;
    padding: 9px 0;
    border-top: .5px solid var(--black-a-5);
    color: var(--black-a-60);
    text-decoration: none;
}

.home-latest a:first-child {
    border-top: 0;
}

.home-latest a:hover {
    color: var(--theme-color);
}

.home-latest time {
    display: block;
    margin-bottom: 3px;
    color: var(--black-a-30);
    font-family: var(--mono, monospace);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

.home-latest strong {
    display: block;
    overflow: hidden;
    color: var(--txt-b-pure);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0;
}

.home-stats div {
    padding: 9px 10px;
    border-radius: 8px;
    background: var(--black-a-5);
}

.home-stats dt {
    color: var(--black-a-40);
    font-size: 11px;
}

.home-stats dd {
    margin: 3px 0 0;
    color: var(--txt-b-pure);
    font-family: var(--mono, monospace);
    font-size: 19px;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.home-search-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 16px;
    border: .5px solid var(--black-a-10);
    border-radius: 14px;
    background: var(--theme-color);
    color: #07111f;
    font-size: 12px;
    text-decoration: none;
}

.home-search-card:hover {
    filter: brightness(1.05);
}

@media screen and (max-width: 1180px) {
    .home-dashboard {
        grid-template-columns: 210px minmax(0, 1fr);
        width: min(1040px, calc(100% - 36px));
    }

    .home-side {
        position: static;
        grid-column: 2;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .home-side .home-search-card {
        grid-column: 1 / -1;
    }
}

@media screen and (max-width: 900px) {
    .home-dashboard {
        grid-template-columns: 1fr;
        width: calc(100% - 28px);
        padding-top: 46px;
    }

    .home-dashboard #about {
        position: static;
    }

    .home-side {
        grid-column: auto;
        grid-template-columns: 1fr 1fr;
    }

    .home-dashboard .multicard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 620px) {
    .home-dashboard {
        width: calc(100% - 20px);
        gap: 12px;
        padding-top: 30px;
    }

    .home-dashboard #about,
    .home-dashboard #work {
        padding: 16px 14px;
    }

    .home-dashboard .multicard {
        grid-template-columns: 1fr;
    }

    .home-dashboard .post-card-featured {
        grid-column: auto;
        min-height: 340px;
    }

    .home-dashboard .post-card-featured .card-image-div {
        height: 208px;
        flex-basis: 208px;
    }

    .home-side {
        grid-template-columns: 1fr;
    }

    .home-side .home-search-card {
        grid-column: auto;
    }
}

/* 关于区：站主头像放在左半边，其余恢复原来的单列内容 */
.about-columns {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 38px;
    align-items: start;
    width: min(880px, calc(100% - 40px));
    margin: 24px auto 0;
    padding-top: 22px;
    border-top: .5px solid var(--black-a-10);
    text-align: left;
    box-sizing: border-box;
}

.about-left {
    text-align: center;
}

.about-columns .about-owner {
    flex-direction: column;
    gap: 10px;
    margin: 0;
    text-align: center;
}

.about-columns .about-owner-avatar {
    width: 104px;
    height: 104px;
    border: 2px solid var(--white-a-50);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
}

.about-columns .about-owner-name {
    font-size: 20px;
}

.about-columns .about-owner-line {
    font-size: 12px;
}

.about-columns .tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin-top: 14px;
}

.about-columns .tags-container span {
    margin: 0;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
}

.about-right {
    min-width: 0;
}

.about-right .about-content {
    margin-top: 0;
    color: var(--black-a-60);
    font-size: 14px;
    line-height: 1.95;
    text-align: left;
}

.about-right .about-content p {
    margin: 0 0 10px;
}

.about-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.about-links a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border: .5px solid var(--black-a-10);
    border-radius: 999px;
    color: var(--black-a-50);
    font-size: 12px;
    text-decoration: none;
}

.about-links a:hover {
    border-color: var(--theme-color);
    color: var(--theme-color);
}

@media screen and (max-width: 700px) {
    .about-columns {
        grid-template-columns: 1fr;
        gap: 20px;
        width: calc(100% - 28px);
        padding-top: 18px;
        text-align: center;
    }

    .about-right .about-content {
        text-align: left;
    }

    .about-links {
        justify-content: center;
    }

    .about-columns .about-owner-avatar {
        width: 88px;
        height: 88px;
    }
}


/* =========================================================
   唱片播放器：右上角、可拖动、边缘预览与收起
   ========================================================= */
.record-player {
    position: fixed;
    top: 110px;
    right: 24px;
    bottom: auto;
    left: auto;
    z-index: 996;
    width: 136px;
    height: 136px;
    --edge-scale: .47;
    touch-action: none;
    transition: opacity .25s ease, visibility 0s, transform .25s ease;
}

.record-spacer {
    height: 0;
}

.record-hit {
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.record-disc {
    width: 136px;
    height: 136px;
}

.record-cover {
    width: 62px;
    height: 62px;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

.record-hit,
.record-disc {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

.record-player.is-dragging {
    z-index: 1001;
}

.record-player.is-dragging .record-hit {
    cursor: grabbing;
}

.record-player.is-dragging .record-ui {
    opacity: 0;
    visibility: hidden;
}

/* 播放时边缘波形 */
.record-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: 220px;
    height: 220px;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity .25s ease;
}

.record-player.is-playing .record-wave {
    opacity: 1;
}

.record-disc::before {
    content: "";
    position: absolute;
    inset: -5px;
    border: 1px solid rgba(132, 199, 254, .38);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.record-player.is-playing .record-disc::before {
    animation: recordRipple 1.8s ease-out infinite;
}

@keyframes recordRipple {
    0% { opacity: .5; transform: scale(.98); }
    100% { opacity: 0; transform: scale(1.16); }
}


/* 收起状态 */
.record-player.is-docked {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(.12);
}

.record-player.is-docked.is-peeking {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: none;
    transition: none;
}

.record-player.is-edge-preview {
    opacity: 1;
    transition: opacity .2s ease, transform .28s cubic-bezier(.2, .8, .2, 1);
}

.record-player.is-edge-preview.is-preview-left {
    transform: translateX(calc(-50% - 8px)) scale(var(--edge-scale));
}

.record-player.is-edge-preview.is-preview-right {
    transform: translateX(calc(50% + 8px)) scale(var(--edge-scale));
}

.record-player.is-edge-preview.is-preview-top {
    transform: translateY(calc(-50% - 8px)) scale(var(--edge-scale));
}

.record-player.is-edge-preview.is-preview-bottom {
    transform: translateY(calc(50% + 8px)) scale(var(--edge-scale));
}

.record-player.is-edge-preview .record-disc {
    animation: none;
    box-shadow:
        0 0 28px rgba(132, 199, 254, .32),
        0 0 60px rgba(132, 199, 254, .12);
}

.record-player.is-edge-preview .record-wave,
.record-player.is-edge-preview .record-ui {
    opacity: 0;
}

/* 从半张黑胶长回完整唱片 */
@keyframes restoreLeft {
    from { transform: translateX(calc(-50% - 8px)) scale(var(--edge-scale)); }
    to { transform: none; }
}
@keyframes restoreRight {
    from { transform: translateX(calc(50% + 8px)) scale(var(--edge-scale)); }
    to { transform: none; }
}
@keyframes restoreTop {
    from { transform: translateY(calc(-50% - 8px)) scale(var(--edge-scale)); }
    to { transform: none; }
}
@keyframes restoreBottom {
    from { transform: translateY(calc(50% + 8px)) scale(var(--edge-scale)); }
    to { transform: none; }
}

.record-player.is-restoring-left {
    animation: restoreLeft .34s cubic-bezier(.2, .8, .2, 1);
}
.record-player.is-restoring-right {
    animation: restoreRight .34s cubic-bezier(.2, .8, .2, 1);
}
.record-player.is-restoring-top {
    animation: restoreTop .34s cubic-bezier(.2, .8, .2, 1);
}
.record-player.is-restoring-bottom {
    animation: restoreBottom .34s cubic-bezier(.2, .8, .2, 1);
}

@media screen and (max-width: 600px) {
    .record-player {
        top: 96px;
        right: 12px;
        bottom: auto;
        left: auto;
        width: 108px;
        height: 108px;
        --edge-scale: .59;
    }

    .record-disc {
        width: 108px;
        height: 108px;
    }

    .record-cover {
        width: 50px;
        height: 50px;
    }

    .record-wave {
        width: 180px;
        height: 180px;
    }

}

/* 收起后：半张黑胶卡在屏幕边缘 */
.record-handle {
    position: fixed;
    top: 50%;
    left: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    cursor: grab;
    touch-action: none;
    transition: opacity .12s ease;
}

.record-handle.is-visible {
    display: flex;
    animation: handleFade .18s ease;
}

@keyframes handleFade {
    from { opacity: .85; }
    to { opacity: 1; }
}

/* 露在外面的半张黑胶 */
.record-handle-disc {
    position: relative;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border: 1px solid rgba(160, 220, 255, .24);
    border-radius: 50%;
    background:
        repeating-radial-gradient(
            circle at 50% 50%,
            rgba(255, 255, 255, .055) 0 1px,
            transparent 1px 4px
        ),
        radial-gradient(circle at 50% 50%, #182233 0 26%, #0a0f18 27% 68%, #131c29 69%);
    box-shadow:
        0 0 0 4px rgba(12, 20, 32, .35),
        0 8px 28px rgba(60, 160, 255, .24);
}

.record-handle.is-playing .record-handle-disc {
    animation: vinylGlow 2.6s ease-in-out infinite;
}

@keyframes vinylGlow {
    0%, 100% {
        box-shadow:
            0 0 0 4px rgba(12, 20, 32, .35),
            0 8px 28px rgba(60, 160, 255, .22);
    }
    50% {
        box-shadow:
            0 0 0 5px rgba(70, 175, 255, .18),
            0 8px 32px rgba(80, 190, 255, .34);
    }
}

.record-handle-cover {
    width: 29px;
    height: 29px;
    border: 2px solid rgba(0, 0, 0, .55);
    border-radius: 50%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
}

.record-handle-shine {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .3), transparent 38%);
    mix-blend-mode: screen;
    pointer-events: none;
}

.record-handle-disc::after {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    pointer-events: none;
}

.record-handle:hover {
    filter: brightness(1.2);
}

.record-handle.is-morphing {
    animation: none;
    opacity: 0;
    transition: opacity .12s ease;
}

.record-handle.is-dragging {
    z-index: 1003;
    cursor: grabbing;
}

body.menu-open .record-handle {
    display: none !important;
}

body.record-dragging,
body.record-dragging * {
    user-select: none !important;
    -webkit-user-select: none !important;
}



/* =========================================================
   昼 / 夜切换按钮宿主
   组件：Xiumuzaidiao / Day-night-toggle-button，ISC
   ========================================================= */
.dn-toggle {
    display: inline-block;
    width: 82px;
    height: 33px;
    overflow: hidden;
    border-radius: 999px;
    vertical-align: middle;
    line-height: 0;
    cursor: pointer;
    box-shadow: 0 3px 11px rgba(0, 0, 0, .13);
    --dn-scale: .0911;
}

.dn-toggle-nav {
    position: absolute;
    top: 28px;
    right: 12px;
    margin: 0;
    transition: top .25s;
}

.nav-bar-blur .dn-toggle-nav {
    top: 9px;
}

.dn-toggle-menu {
    display: none;
    width: 96px;
    height: 38px;
    margin: 10px auto 0;
    --dn-scale: .1067;
}

.dn-toggle:focus-visible {
    outline: 2px solid var(--theme-color);
    outline-offset: 2px;
}

/* 旧入口保留给 darklight.js 监听，但不再显示 */
#nav-li-current-theme,
#toggle-theme {
    display: none !important;
}

@media screen and (max-width: 760px) {
    .dn-toggle-nav {
        display: none;
    }

    .dn-toggle-menu {
        display: block;
    }
}

/* 组件署名 */
.footer-credit {
    margin: 8px auto 0;
    color: rgba(255, 255, 255, .4);
    font-size: 10px;
    letter-spacing: .03em;
}

.footer-credit a {
    color: rgba(255, 255, 255, .62);
    border-bottom: 1px solid rgba(255, 255, 255, .22);
}

.footer-credit a:hover {
    color: var(--theme-color);
    border-color: var(--theme-color);
}

.footer-account {
    margin: 10px auto 0;
    font-size: 10px;
    letter-spacing: .03em;
}

.footer-account a {
    color: rgba(255, 255, 255, .52);
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    text-decoration: none;
}

.footer-account a:hover {
    color: var(--theme-color);
    border-color: var(--theme-color);
}

.footer-credit,
.footer-account {
    font-size: 12px;
}

/* 只按这次要求调整：关于我去线、居中；归档入口收小；导航登录 */
#about .heading-underline-1 {
    display: none;
}

.about-columns {
    border-top: 0;
    padding-top: 0;
    text-align: center;
}

.about-right .about-content,
.about-right .about-content p {
    text-align: center;
}

.blog-archive-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: .5px solid var(--theme-color);
    border-radius: 999px;
    color: var(--theme-color);
    font-size: 12px;
    text-decoration: none;
}

.blog-archive-link:hover {
    background: var(--theme-color);
    color: #07111f;
}

.nav-auth-link {
    color: var(--theme-color) !important;
}

@media screen and (max-width: 700px) {
    .about-right .about-content,
    .about-right .about-content p {
        text-align: center;
    }
}

/* 首屏保留欢迎页，再接关于我 */
.home-page #about {
    top: auto;
    margin-top: 100vh;
}

.home-page #work,
.home-page #journey,
.home-page footer {
    top: auto;
}

/* 首页背景直接铺在 body 上，避免 #page-bg 层级问题 */
body.home-page {
    background-color: #07111f;
    background-image:
        linear-gradient(180deg, rgba(8, 20, 36, .18), rgba(8, 20, 36, .26)),
        url("../image/bg-1920.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

body.home-page #page-bg,
body.home-page #bg-dark-overlay {
    display: none;
}

/* 关于我标题下恢复和其他栏目一致的短细线 */
#about .heading-underline-1 {
    display: inline-block;
}

/* 字级恢复到更饱满的一版 */
body { font-size: 16px; }
#nav-bar .nav-link, .site-nav-links a, .login-links a, .article-back, .article-user a { font-size: 14px; font-weight: 500; }
.site-nav-brand, #nav-link-logo-id, .login-brand, .archive-brand { font-size: 17px; }
#about h3, #work h3, #journey h3 { font-size: 30px; font-weight: 600; }
.about-owner-name { font-size: 21px; }
.about-owner-line, .about-content, .about-right .about-content { font-size: 15px; }
.tags-container span { font-size: 13px; }
.blog-filter { font-size: 14px; font-weight: 500; }
.blog-count { font-size: 13px; }
.post-card .card-category { font-size: 13px; }
.post-card .card-title { font-size: 21px; font-weight: 600; }
.post-card .card-description { font-size: 14px; }
.post-card .post-date, .post-card .post-likes { font-size: 13px; }
.post-card-featured .card-title { font-size: 25px; }
.blog-archive-link { font-size: 13px; font-weight: 500; }
.page-btn, .page-number { font-size: 13px; }
.journey-item-date { font-size: 13px; }
.journey-item-content { font-size: 14px; }
footer, .site-footer { font-size: 14px; }
.article-head h1 { font-size: clamp(34px, 4.4vw, 50px); font-weight: 600; }
.article-topline .article-category, .article-topline > span:not(.article-category) { font-size: 13px; }
.article-byline { font-size: 13px; }
.article-content { font-size: 17px; line-height: 2.12; }
.article-content > p:first-child { font-size: 17px; }
.article-lead { font-size: 16px; }
.article-pager-title { font-size: 16px; }
.article-pager-label { font-size: 12px; }
.article-like, .article-like-count-wrap { font-size: 13px; }
.comment-text { font-size: 15px; }
.archive-header h1 { font-size: clamp(40px, 5vw, 58px); }
.archive-item-title { font-size: 20px; font-weight: 600; }
.archive-item-excerpt { font-size: 14px; }
.archive-item time, .archive-item-meta { font-size: 13px; }
.archive-filter { font-size: 14px; }
.archive-search input { font-size: 15px; }
.auth-tab { font-size: 15px; }
.auth-field > span:first-child, .auth-note, .auth-alt, .auth-back { font-size: 13px; }
.auth-field input { font-size: 15px; }
.auth-submit { font-size: 14px; }
.auth-subtitle { font-size: 14px; }
.avatar-frame-option, .avatar-pick, .avatar-mobile-link, .avatar-crop-cancel, .avatar-crop-confirm { font-size: 13px; }
@media screen and (max-width: 640px) {
    #about h3, #work h3, #journey h3 { font-size: 28px; }
    .post-card .card-title { font-size: 20px; }
    .post-card-featured .card-title { font-size: 22px; }
    .article-content { font-size: 16px; }
    .article-lead { font-size: 15px; }
}

html.dark body.home-page {
    background-image:
        linear-gradient(180deg, rgba(2, 7, 14, .52), rgba(2, 7, 14, .62)),
        url("../image/bg-1920.webp");
}

/* 再往上调一档，接近最初阅读时的字号 */
body { font-size: 17px; }
#nav-bar .nav-link, .site-nav-links a { font-size: 15px; font-weight: 500; }
#about h3, #work h3, #journey h3 { font-size: 32px; }
.about-owner-name { font-size: 23px; }
.about-owner-line, .about-content, .about-right .about-content { font-size: 16px; }
.tags-container span { font-size: 14px; }
.blog-filter { font-size: 14px; }
.post-card .card-title { font-size: 23px; }
.post-card .card-description { font-size: 15px; }
.post-card .card-category, .post-card .post-date, .post-card .post-likes { font-size: 14px; }
.journey-item-content { font-size: 15px; }
.journey-item-date { font-size: 14px; }
.article-content { font-size: 18px; line-height: 2.1; }
.article-lead { font-size: 17px; }
.archive-item-title { font-size: 22px; }
.archive-item-excerpt { font-size: 15px; }
.archive-item time, .archive-item-meta { font-size: 14px; }
.auth-field input { font-size: 16px; }
.auth-field > span:first-child, .auth-note, .auth-alt, .auth-back { font-size: 14px; }

#about .heading-underline-1 {
    display: inline-block;
    width: 58px;
    height: 3px;
    margin-top: 10px;
    background: var(--theme-color);
}

/* 栏目标题：可点击，桌面悬停出现细线，手机常显 */
.section-title a {
    display: inline-block;
    color: inherit;
    text-decoration: none;
}

.section-title .heading-underline-1 {
    display: block;
    width: 58px;
    height: 3px;
    margin: 9px auto 0;
    border-radius: 2px;
    background: var(--theme-color);
    opacity: 0;
    transform: scaleX(.45);
    transform-origin: center;
    transition: opacity .2s ease, transform .2s ease;
}

.section-title:hover .heading-underline-1,
.section-title a:focus-visible + .heading-underline-1 {
    opacity: 1;
    transform: scaleX(1);
}

@media screen and (max-width: 760px) {
    .section-title .heading-underline-1 {
        opacity: 1;
        transform: scaleX(1);
    }
}

#nav-link-container {
    display: flex;
    align-items: center;
}

#nav-bar .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    line-height: 1;
    box-sizing: border-box;
    vertical-align: middle;
}

/* 按最初源文件恢复字号和字重 */
body { font-size: 16px; }
#nav-bar .nav-link, .site-nav-links a { font-size: 15px; font-weight: 400; }
#nav-link-logo-id { font-size: 20px !important; font-weight: 700; }
#about h3, #work h3, #journey h3 { font-size: 30px; font-weight: 700; }
.about-owner-name { font-size: 18px; font-weight: 600; }
.about-owner-line { font-size: 12px; }
.about-content, .about-right .about-content { font-size: 14px; }
.tags-container { font-size: small; }
.tags-container span { font-size: 13px; }
.blog-filter { font-size: 13px; font-weight: 500; }
.blog-count, .post-card .card-category, .post-card .post-date, .post-card .post-likes { font-size: 12px; }
.post-card .card-title { font-size: 16px; font-weight: 700; }
.post-card .card-description { font-size: 13px; }
.post-card-featured .card-title { font-size: 16px; }
.blog-archive-link { font-size: 12px; }
.page-btn, .page-number { font-size: 12px; }
.journey-item-date { font-size: 13px; }
.journey-item-content { font-size: 14px; }
footer, .site-footer { font-size: 14px; }
.article-content { font-size: 16px; line-height: 1.9; }
.article-lead { font-size: 15px; }
.article-head h1 { font-size: clamp(30px, 3.7vw, 42px); font-weight: 600; }
.article-byline, .article-topline .article-category, .article-topline > span:not(.article-category) { font-size: 12px; }
.archive-item-title { font-size: 18px; }
.archive-item-excerpt { font-size: 13px; }
.archive-item time, .archive-item-meta { font-size: 12px; }
.auth-field input { font-size: 15px; }
.auth-tab { font-size: 15px; }
.auth-field > span:first-child, .auth-note, .auth-alt, .auth-back, .auth-subtitle { font-size: 13px; }

/* 手机端恢复最初导航位置：品牌左、菜单右，主题和头像放菜单里 */
@media screen and (max-width: 760px) {
    #nav-bar {
        height: 90px;
    }

    #nav-logo-container {
        left: 25px;
    }

    #nav-link-container {
        display: none;
    }

    .btn-menu {
        top: 31.5px;
        right: 25px;
    }

    .btn-menu-blur {
        top: 16.5px !important;
    }

    #dnToggleNav,
    .nav-mobile-user {
        display: none !important;
    }

    .site-nav-user-slot {
        display: none !important;
    }

    .section-title .heading-underline-1 {
        width: 50px;
        height: 2px;
    }
}

/* 关于我：桌面也使用手机端的上下结构 */
.about-columns {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
}

.about-left {
    text-align: center;
}

.about-owner {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 18px auto 12px;
}

.about-owner-copy {
    text-align: center;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

/* 关于我标题细线：桌面悬停，手机常显，严格居中 */
#about .section-title .heading-underline-1,
#work .section-title .heading-underline-1,
#journey .section-title .heading-underline-1 {
    display: block;
    width: 50px;
    height: 2px;
    margin: 9px auto 0;
    background: var(--theme-color);
}

@media screen and (max-width: 760px) {
    #about .section-title .heading-underline-1,
    #work .section-title .heading-underline-1,
    #journey .section-title .heading-underline-1 {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* 手机菜单关闭按钮改成 X，避免看起来像第二个三条杠 */
#navbox .box-close-btn {
    position: relative;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    box-sizing: border-box;
}

#navbox .box-close-btn::before,
#navbox .box-close-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--black-a-60);
    transform: rotate(45deg);
}

#navbox .box-close-btn::after {
    transform: rotate(-45deg);
}

#navbox .box-close-btn:hover::before,
#navbox .box-close-btn:hover::after {
    background: var(--theme-color);
}

/* 隐藏状态的遮罩不能拦截导航点击 */
.box-overlay-hide {
    display: none !important;
    pointer-events: none !important;
}

/* 导航栏文字和头像严格垂直居中 */
#nav-logo-container,
#nav-link-container {
    top: 0;
    height: 90px;
    display: flex;
    align-items: center;
}

#nav-logo-container {
    justify-content: center;
}

#nav-link-container.nav-link-all-blur {
    top: 0 !important;
    height: 50px;
}

#nav-logo-container.nav-link-logo-blur {
    top: 0 !important;
    height: 50px !important;
}

#nav-bar .nav-link {
    height: 38px;
    line-height: 38px;
}

@media screen and (max-width: 760px) {
    #nav-link-container {
        display: none !important;
    }

    #nav-logo-container {
        top: 30px;
        left: 25px;
        height: 26px;
    }

    .btn-menu {
        top: 31.5px;
        right: 25px;
    }

    .boxclose {
        display: none !important;
    }

    body.menu-open .btn-menu {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
}

#nav-link-logo-id::before {
    left: 50%;
    width: 64px;
    transform: translateX(-50%) scale(0);
}

#nav-link-logo-id:hover::before {
    transform: translateX(-50%) scale(1);
}

/* 按最初源文件恢复导航栏几何，头像作为额外入口 */
#nav-logo-container {
    top: 30px;
    left: 200px;
    height: 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#nav-link-container {
    top: 30px;
    right: 170px;
    display: block;
    height: auto;
    white-space: nowrap;
}

#nav-bar .nav-link {
    display: inline-block;
    height: auto;
    margin: 0 5px;
    padding: 10px 18px;
    font-size: 15px;
    line-height: normal;
    vertical-align: middle;
}

#nav-link-logo-id {
    font-size: 20px !important;
    font-weight: 700;
}

.nav-auth-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px !important;
    height: 36px !important;
    margin-left: 8px !important;
    padding: 0 !important;
    vertical-align: middle;
}

.nav-guest-avatar svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media screen and (max-width: 760px) {
    #nav-logo-container {
        top: 30px;
        left: 25px;
        height: 26px;
    }

    #nav-link-container {
        display: none !important;
    }

    .btn-menu {
        top: 31.5px;
        right: 25px;
    }
}

/* 滚动后的导航栏：logo、链接和头像必须都在 50px 栏内 */
#nav-logo-container.nav-link-logo-blur {
    top: 1.1px !important;
    height: 26px !important;
    margin-left: -10px;
}

#nav-link-container.nav-link-all-blur {
    top: 14px !important;
}

#nav-bar .nav-link.nav-link-blur {
    color: var(--txt-b-pure) !important;
}

/* 滚动状态：导航所有元素放进同一条 50px 横线并居中 */
#nav-logo-container.nav-link-logo-blur {
    top: 0 !important;
    height: 50px !important;
    margin: 0 !important;
    display: flex;
    flex-direction: row;
    align-items: center;
}

#nav-logo-container.nav-link-logo-blur #nav-link-logo-id {
    left: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1;
}

#nav-link-container.nav-link-all-blur {
    top: 0 !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
}

#nav-link-container.nav-link-all-blur .nav-link {
    height: 36px !important;
    padding: 0 18px !important;
    line-height: 36px !important;
    margin: 0 5px !important;
}

#nav-link-container.nav-link-all-blur .nav-auth-link {
    width: 36px !important;
    padding: 0 !important;
    margin: 0 8px 0 5px !important;
}

#nav-logo-container.nav-link-logo-blur {
    height: 50px !important;
    max-height: 50px !important;
    padding: 0 !important;
    overflow: hidden;
}

#nav-logo-container.nav-link-logo-blur #nav-link-logo-id {
    display: block !important;
    height: 26px !important;
    padding: 0 !important;
    line-height: 26px !important;
}

/* 手机端无论滚动状态如何，顶部都只保留品牌和三条杠 */
@media screen and (max-width: 760px) {
    #nav-link-container,
    #nav-link-container.nav-link-all-blur {
        display: none !important;
    }
}

#nav-link-logo-id::before {
    bottom: -5px;
    height: 2px;
}

#nav-logo-container.nav-link-logo-blur #nav-link-logo-id::before {
    bottom: -4px;
}

@media screen and (max-width: 760px) {
    #nav-logo-container {
        max-width: calc(100% - 90px);
        overflow: hidden;
    }

    #nav-logo-container #nav-link-logo-id {
        font-size: 16px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media screen and (max-width: 760px) {
    #welcome h1 {
        max-width: 100%;
        padding: 0 18px;
        font-size: clamp(32px, 9vw, 52px);
        line-height: 1.24;
        white-space: normal;
        overflow-wrap: anywhere;
        box-sizing: border-box;
    }
}

@media screen and (max-width: 760px) {
    #welcome {
        width: 100%;
        max-width: 100%;
        padding: 0 14px;
        box-sizing: border-box;
    }

    #welcome h1 {
        width: 100%;
        max-width: 100%;
        padding: 0;
        font-size: clamp(28px, 8vw, 36px) !important;
        line-height: 1.3;
        white-space: normal;
        overflow-wrap: break-word;
        box-sizing: border-box;
    }
}

@media screen and (max-width: 760px) {
    #nav-logo-container {
        overflow: visible;
    }

    #nav-logo-container #nav-link-logo-id {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* 平板窄桌面宽度：提前收进汉堡菜单，避免导航文字重叠 */
@media screen and (min-width: 761px) and (max-width: 1100px) {
    #nav-link-container,
    #nav-link-container.nav-link-all-blur {
        display: none !important;
    }

    #dnToggleNav,
    .nav-mobile-user {
        display: none !important;
    }

    .btn-menu {
        display: block !important;
        top: 31.5px !important;
        right: 25px !important;
    }

    .boxclose {
        display: none !important;
    }
}

/* 隐藏入口的时间谜题 */
.secret-overlay {
    position: fixed;
    inset: 0;
    z-index: 6000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(4, 12, 21, .5);
    backdrop-filter: blur(10px);
}

.secret-overlay[hidden] {
    display: none !important;
}

.secret-card {
    width: min(430px, 100%);
    padding: 30px 28px 24px;
    border: 1px solid rgba(165, 215, 245, .38);
    border-radius: 20px;
    background: rgba(250, 253, 255, .98);
    color: #17384d;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .35);
    text-align: center;
    animation: secretIn .26s cubic-bezier(.2, .8, .3, 1);
}

html.dark .secret-card {
    border-color: rgba(132, 199, 254, .28);
    background: rgba(8, 20, 34, .98);
    color: #eaf7ff;
}

.secret-eyebrow {
    margin: 0 0 10px;
    color: #2d85b2;
    font-size: 10px;
    letter-spacing: .3em;
}

.secret-card h2 {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
}

.secret-card input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(55, 105, 135, .25);
    border-radius: 10px;
    outline: none;
    background: rgba(255, 255, 255, .7);
    color: #17384d;
    font-family: inherit;
    font-size: 16px;
    text-align: center;
    letter-spacing: .16em;
}

html.dark .secret-card input {
    border-color: rgba(165, 215, 245, .22);
    background: rgba(255, 255, 255, .06);
    color: #eaf7ff;
}

.secret-card input:focus {
    border-color: #5aa9d4;
    box-shadow: 0 0 0 3px rgba(90, 169, 212, .15);
}

.secret-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 14px;
}

.secret-actions button {
    min-width: 120px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(55, 105, 135, .24);
    border-radius: 999px;
    background: rgba(255, 255, 255, .5);
    color: inherit;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}

html.dark .secret-actions button {
    border-color: rgba(165, 215, 245, .2);
    background: rgba(255, 255, 255, .05);
}

.secret-actions .secret-yes {
    border-color: #3f91bd;
    background: #84c7fe;
    color: #07111f;
}

.secret-status {
    min-height: 19px;
    margin: 13px 0 0;
    color: rgba(42, 70, 90, .58);
    font-size: 12px;
    line-height: 1.5;
}

.secret-status.is-error {
    color: #b54c5e;
}

html.dark .secret-status {
    color: rgba(234, 247, 255, .58);
}

html.dark .secret-status.is-error {
    color: #ff8d9d;
}

.secret-card.is-shaking {
    animation: secretShake .34s ease;
}

@keyframes secretIn {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes secretShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-7px); }
    50% { transform: translateX(6px); }
    75% { transform: translateX(-3px); }
}

@media screen and (max-width: 520px) {
    .secret-card { padding: 24px 18px 20px; }
    .secret-actions { flex-direction: column; }
    .secret-actions button { width: 100%; }
}

/* 时间谜题：输入框居中、右上关闭、雾气凝结和错误独立态 */
.secret-card {
    position: relative;
    box-sizing: border-box;
    min-height: 246px;
    animation: secretMist 1.05s cubic-bezier(.2, .8, .3, 1) both;
}

.secret-overlay {
    animation: secretVeil .85s ease both;
}

.secret-close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(42, 70, 90, .55);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

html.dark .secret-close { color: rgba(234, 247, 255, .58); }
.secret-close:hover { background: rgba(55, 105, 135, .1); }

.secret-card .secret-question[hidden],
.secret-card .secret-error-panel[hidden] {
    display: none !important;
}

.secret-card input {
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
    text-align: center;
    text-align-last: center;
}

.secret-error-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 190px;
    margin: 0;
    padding: 18px;
    color: #b54c5e;
    font-size: 17px;
    line-height: 1.6;
    text-align: center;
}

html.dark .secret-error-panel { color: #ff8d9d; }

.secret-card.is-error-only {
    animation: none;
}

.secret-card.is-dismissing {
    animation: none !important;
    opacity: 0;
    filter: blur(9px);
    transform: scale(.98);
    transition: opacity .68s ease, filter .68s ease, transform .68s ease;
}

@keyframes secretVeil {
    from { background: rgba(4, 12, 21, 0); backdrop-filter: blur(0); }
    to { background: rgba(4, 12, 21, .5); backdrop-filter: blur(10px); }
}

@keyframes secretMist {
    0% {
        opacity: 0;
        filter: blur(16px);
        transform: translateY(16px) scale(1.035);
    }
    45% {
        opacity: .55;
        filter: blur(7px);
    }
    75% {
        opacity: .88;
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0) scale(1);
    }
}

/* 问题出现 3 秒后才允许点叉或点空白关闭 */
.secret-close {
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.secret-card.is-ready .secret-close {
    opacity: 1;
    pointer-events: auto;
}

.secret-question {
    transition: opacity .48s ease, filter .48s ease, transform .48s ease;
}

.secret-card.is-question-leaving .secret-question {
    opacity: 0;
    filter: blur(8px);
    transform: scale(.985);
    pointer-events: none;
}

.secret-error-panel {
    opacity: 0;
    transition: opacity .58s ease;
}

.secret-card.is-error-visible .secret-error-panel {
    opacity: 1;
}

.secret-overlay.is-dismissing {
    animation: none !important;
    opacity: 0;
    transition: opacity .68s ease;
}

.secret-card.is-dismissing {
    opacity: 0;
    filter: blur(9px);
    transform: scale(.98);
    transition: opacity .68s ease, filter .68s ease, transform .68s ease;
}

/* 手机端品牌名完整显示 */
@media screen and (max-width: 760px) {
    #nav-link-logo-id {
        display: inline-flex;
        align-items: center;
        max-width: calc(100vw - 104px);
        overflow: hidden;
        white-space: nowrap;
        text-overflow: clip;
        font-size: 17px !important;
    }

    #nav-link-logo-id .nav-brand-welcome { display: none; }
}

/* 谜题弹窗按钮统一白色字 */
.secret-actions .secret-yes {
    color: #ffffff;
}

html.dark .secret-actions .secret-yes {
    color: #ffffff;
}

/* 手机端完整显示欢迎语 */
@media screen and (max-width: 760px) {
    #nav-link-logo-id {
        display: inline-flex !important;
        align-items: center;
        max-width: calc(100vw - 92px);
        overflow: hidden;
        white-space: nowrap;
        font-size: 13px !important;
        letter-spacing: 0;
    }

    #nav-link-logo-id .nav-brand-welcome {
        display: inline;
    }
}

/* 手机端品牌字号与下划线对齐 */
@media screen and (max-width: 760px) {
    #nav-link-logo-id {
        font-size: 17px !important;
        max-width: calc(100vw - 78px);
        line-height: 1.2;
    }

    #nav-link-logo-id::before {
        left: 0;
        width: 100%;
        transform: scaleX(0);
        transform-origin: left center;
    }

    #nav-link-logo-id:hover::before,
    #nav-link-logo-id:focus-visible::before {
        transform: scaleX(1);
    }
}

/* 与我联系标题下的短线 */
.footer-contact-heading {
    display: inline-block;
    position: relative;
    margin: 0 auto 18px;
    padding-bottom: 7px;
    border: 0 !important;
    line-height: 1.2;
}

.footer-contact-heading::before,
.footer-contact-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 54px;
    height: 1px;
    border: 0;
    background: rgba(255, 255, 255, .42);
    transform: translateX(-50%);
}

.footer-contact-heading::before {
    width: 100%;
    background: transparent;
}

/* 联系链接不要整行下划线，只保留标题下的短横线 */
.contact-link,
.contact-link:hover,
.contact-link:focus-visible {
    border-bottom: 0 !important;
}

.contact-link span {
    border-bottom: 0 !important;
}

/* 联系链接只给文字本身加短线，不要整行 */
.contact-link,
.contact-link:hover,
.contact-link:focus-visible {
    border-bottom: 0 !important;
}

.contact-link span {
    display: inline-block;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
}

.contact-link:hover span,
.contact-link:focus-visible span {
    border-bottom-color: rgba(255, 255, 255, .55);
}

/* 标题下的短线保留并稍微明显一点 */
.footer-contact-heading::after {
    width: 54px !important;
    height: 1px !important;
    background: rgba(255, 255, 255, .58) !important;
}

/* 基础可访问性与移动端体验 */
html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 90px;
}

img {
    max-width: 100%;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

:where(a, button, input, select, textarea):focus-visible {
    outline: 2px solid rgba(132, 199, 254, .9);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
