/* 页面样式 */

/* 文章页面样式 */
.post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.post {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.post-card {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    margin-top: 3rem;
    width: 80%;
    max-width: 800px;
}

.post-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.post-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.4;
    text-align: left;
}

.post-meta {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem 0.55rem;
    max-width: 100%;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-ecolor);
}

.post-meta .meta-item {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.3rem;
    min-width: 0;
    white-space: nowrap;
}

.post-meta .meta-item + .meta-item::before {
    content: '|';
    margin-right: -0.1rem;
    opacity: 0.45;
    font-weight: 400;
}

.post-meta .meta-item.category {
    font-size: inherit;
    font-weight: inherit;
    text-transform: none;
    color: inherit;
}

.post-meta .meta-item svg {
    flex: 0 0 auto;
    width: 0.95rem;
    height: 0.95rem;
    opacity: 0.85;
}

.post-meta .meta-item a {
    color: inherit;
    text-decoration: none;
}

.post-meta .meta-item a:hover {
    color: hsl(var(--thyuu--main-color));
}

.category-tags {
    color: var(--text-ecolor);
    font-size: 0.9rem;
}

.category-tags a {
    color: var(--text-ecolor);
    text-decoration: none;
}

.post-content {
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: var(--text-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content p {
    margin-bottom: 1rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.post-content code {
    background: var(--border-color);
    padding: 0.2rem 0.4rem;
    border-radius: 0.3rem;
    font-family: 'Monaco', 'Consolas', monospace;
}

.post-content pre {
    background: var(--border-color);
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1rem 0;
    color: var(--text-ecolor);
    font-style: italic;
}

.post-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.post-tags {
    margin-bottom: 1rem;
    color: hsl(var(--thyuu--main-color));
}

.post-tags a {
    display: inline-block;
    background: hsl(var(--thyuu--main-color));
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-tags a:hover {
    background: hsl(var(--thyuu--main-color) / 0.82);
    transform: translateY(-2px);
}

.post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.heading.tag-empty {
    color: hsl(var(--thyuu--main-color));
}

.post-nav-prev,
.post-nav-next {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
    padding: 0.9rem 1.1rem 1rem;
    background: var(--card-bg);
    border: 1px solid hsl(var(--thyuu--main-color) / 0.08);
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.post-nav-next {
    align-items: flex-end;
    text-align: right;
}

.post-nav-label {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    color: var(--text-ecolor);
    font-size: 0.75rem;
    line-height: 1;
    pointer-events: none;
}

.post-nav-icon {
    flex: 0 0 auto;
    width: 0.8rem;
    height: 0.8rem;
}

.post-nav a,
.post-nav-empty {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
    text-decoration: none;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.post-nav a::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.post-nav-empty {
    color: var(--text-ecolor);
    font-weight: 400;
}

.post-nav-prev:hover,
.post-nav-next:hover {
    border-color: hsl(var(--thyuu--main-color) / 0.18);
    box-shadow: 0 10px 24px hsl(var(--thyuu--main-color) / 0.12);
    transform: translateY(-2px);
}

.post-nav a:hover {
    color: hsl(var(--thyuu--main-color));
}

/* 页面样式 */
.page-container {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--fasgt-content-frame);
    margin: 0 auto;
    padding: 2rem var(--fasgt-content-gutter);
}

.page {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.page-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.page-meta {
    font-size: 0.9rem;
    color: var(--text-ecolor);
}

.page-content {
    line-height: 1.8;
    color: var(--text-color);
}

/* 归档页面样式 */
.archive-container,
.search-container,
.tags-container,
.archives-container {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--fasgt-content-frame);
    margin: 0 auto;
    padding: 2rem var(--fasgt-content-gutter);
}

.archive-header,
.search-header,
.tags-header,
.archives-header {
    margin-bottom: 2rem;
    text-align: center;
}

.archive-title,
.search-title,
.tags-title,
.archives-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.search-info,
.archive-info {
    color: var(--text-ecolor);
    font-size: 1rem;
}

/* 搜索页表单 */
.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 30rem;
    margin: 1.25rem auto 0;
}

.search-form input {
    flex: 1;
    min-width: 0;
    height: 2.6rem;
    padding: 0 1rem;
    border-radius: 0.7rem;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.search-form input:focus {
    border-color: hsl(var(--thyuu--main-color) / 0.8);
}

.search-form button {
    height: 2.6rem;
    padding: 0 1.25rem;
    border: none;
    border-radius: 0.7rem;
    background: hsl(var(--thyuu--main-color) / 0.55);
    color: var(--text-color);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, background 0.3s ease;
}

.search-form button:hover {
    transform: translateY(-2px);
    background: hsl(var(--thyuu--main-color) / 0.85);
}

/* 标签云样式 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 1rem 0 0;
}

.tag-item {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.tag-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* 归档样式 */
.archive-item {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.archive-month {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.archive-month a {
    color: var(--text-color);
    text-decoration: none;
}

.archive-month a:hover {
    color: var(--primary-color);
}

.archive-count {
    float: right;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-ecolor);
}

.archive-posts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.archive-post {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

.post-date {
    color: var(--text-ecolor);
    font-size: 0.9rem;
    min-width: 3rem;
}

.post-title {
    color: var(--text-color);
    text-decoration: none;
    flex: 1;
}

.post-title:hover {
    color: var(--primary-color);
}

/* 评论样式 */
.comments-container {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
}

.comments-list {
    margin-bottom: 2rem;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-body {
    position: relative;
    padding: 1.1rem 1.2rem;
    background: var(--card-bg);
    border-radius: 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.comment-author {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.6rem;
    width: auto;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.comment-author > [itemprop="image"] {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}

.comment-author img {
    display: block;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    margin: 0;
    border-radius: 50%;
    object-fit: cover;
    background: var(--border-color);
}

.comment-author .fn {
    flex: 1 1 auto;
    min-width: 0;
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.35;
    text-align: left;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.comment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
    font-size: 0.8rem;
    color: var(--text-ecolor);
}

.comment-meta a {
    color: inherit;
    text-decoration: none;
}

.comment-content {
    color: var(--text-color);
    line-height: 1.65;
    margin-bottom: 0.5rem;
    overflow-wrap: anywhere;
}

.comment-content p {
    margin: 0 0 0.5rem;
}

.comment-awaiting-moderation {
    display: inline-block;
    margin-top: 0.35rem;
    color: #e6a23c;
    font-size: 0.8rem;
    font-style: normal;
}

.comment-reply a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.comment-reply a:hover {
    text-decoration: underline;
}

.comment-children {
    margin-top: 0.75rem;
}

.comment-children > .comment-list {
    margin-left: 0.5rem;
    padding-left: 1rem;
    border-left: 2px solid hsl(var(--thyuu--main-color) / 0.25);
}

.comment-by-author > .comment-author .fn::after {
    content: '博主';
    display: inline-block;
    margin-left: 0.15rem;
    padding: 0 0.3rem;
    border-radius: 0.3rem;
    background: hsl(var(--thyuu--main-color) / 0.35);
    color: var(--text-color);
    font-size: 0.6rem;
    font-weight: 400;
}

/* 评论表单样式 */
.respond {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

/* 表单在评论列表上方时与下方标题/列表留出间距；回复时表单会被移入楼层，不再是直接子元素 */
.comments-container > .respond {
    margin-bottom: 2rem;
}

.respond-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.comment-form-group {
    margin-bottom: 1rem;
}

.comment-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.comment-form-group label.required::after {
    content: ' *';
    color: red;
}

.comment-form-group input,
.comment-form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.comment-form-group input:focus,
.comment-form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 108, 247, 0.2);
}

.comment-form-submit {
    text-align: center;
    margin-top: 1.5rem;
}

.comment-form-submit button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form-submit button:hover {
    background: var(--text-color);
    transform: translateY(-2px);
}

/* 404页面样式 */
.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem;
}

.error-content {
    text-align: center;
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.error-icon h1 {
    font-size: 6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.error-message h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.error-message p {
    color: var(--text-ecolor);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--text-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
    transform: translateY(-2px);
}

/* 分页（玻璃拟态） */
.page-navigator {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.page-navigator li {
    list-style: none;
}

.page-navigator li a,
.page-navigator li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    padding: 0.45rem 0.8rem;
    border-radius: 0.65rem;
    border: 1px solid transparent;
    background: var(--card-bg);
    color: var(--text-ecolor);
    font-size: 0.85rem;
    text-decoration: none;
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.page-navigator li a:hover {
    color: var(--text-color);
    transform: translateY(-2px);
    background: hsl(var(--thyuu--main-color) / 0.25);
}

.page-navigator li.current {
    background: linear-gradient(135deg, hsl(var(--thyuu--main-color) / 0.1), hsl(var(--thyuu--main-color) / 0.7));
    border-radius: 0.65rem;
}

.page-navigator li.current > a {
    background: transparent;
    box-shadow: none;
    color: var(--text-color);
}

.page-navigator .prev,
.page-navigator .next {
    font-weight: 600;
}

/* 文章分页：胶囊容器 + 圆形页码 + 前后圆形翻页按钮 */
.page-navigator.article-pagination {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    width: fit-content;
    max-width: 100%;
    margin: 1.75rem auto;
    padding: 0.4rem 0.55rem;
    list-style: none;
    border: 1px solid hsl(var(--thyuu--main-color) / 0.14);
    border-radius: 999px;
    background: var(--card-bg);
    box-shadow: 0 8px 26px hsl(var(--thyuu--main-color) / 0.12);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    overflow-x: auto;
    scrollbar-width: none;
}

.page-navigator.article-pagination::-webkit-scrollbar {
    display: none;
}

.page-navigator.article-pagination li {
    display: flex;
    flex: 0 0 auto;
    list-style: none;
}

.page-navigator.article-pagination li a,
.page-navigator.article-pagination li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    height: 2.1rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text-ecolor);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.page-navigator.article-pagination li a:hover {
    color: hsl(var(--thyuu--main-color));
    background: hsl(var(--thyuu--main-color) / 0.12);
    transform: none;
}

.page-navigator.article-pagination li.current {
    background: transparent;
    border-radius: 0;
}

.page-navigator.article-pagination li.current > a,
.page-navigator.article-pagination li.current > span {
    background: hsl(var(--thyuu--main-color) / 0.5);
    color: #fff;
    box-shadow: 0 4px 14px hsl(var(--thyuu--main-color) / 0.38);
}

/* 前后翻页：圆形、仅图标 */
.page-navigator.article-pagination .page-arrow a,
.page-navigator.article-pagination .page-arrow > span {
    width: 2.1rem;
    height: 2.1rem;
    min-width: 2.1rem;
    border: 1px solid hsl(var(--thyuu--main-color) / 0.22);
    background: hsl(var(--thyuu--main-color) / 0.1);
    color: hsl(var(--thyuu--main-color));
}

.page-navigator.article-pagination .page-arrow a:hover {
    border-color: transparent;
    background: hsl(var(--thyuu--main-color));
    color: #fff;
}

.page-navigator.article-pagination .page-arrow > span.is-disabled {
    border-color: hsl(var(--thyuu--main-color) / 0.12);
    background: transparent;
    color: var(--text-ecolor);
    opacity: 0.4;
    cursor: default;
}

.page-navigator.article-pagination .page-arrow--prev {
    margin-right: 0.2rem;
}

.page-navigator.article-pagination .page-arrow--next {
    margin-left: 0.2rem;
}

@media (max-width: 640px) {
    .page-navigator.article-pagination {
        gap: 0.08rem;
        padding: 0.3rem 0.4rem;
        margin: 1.4rem auto;
    }

    .page-navigator.article-pagination li a,
    .page-navigator.article-pagination li > span {
        min-width: 1.85rem;
        height: 1.85rem;
        font-size: 0.76rem;
    }

    .page-navigator.article-pagination .page-arrow a,
    .page-navigator.article-pagination .page-arrow > span {
        width: 1.85rem;
        height: 1.85rem;
        min-width: 1.85rem;
    }

    .page-navigator.article-pagination .page-arrow svg {
        width: 14px;
        height: 14px;
    }

    .page-navigator.article-pagination .page-arrow--prev {
        margin-right: 0.12rem;
    }

    .page-navigator.article-pagination .page-arrow--next {
        margin-left: 0.12rem;
    }
}

@media (max-width: 400px) {
    .page-navigator.article-pagination {
        gap: 0;
        padding: 0.25rem 0.3rem;
    }

    .page-navigator.article-pagination li a,
    .page-navigator.article-pagination li > span,
    .page-navigator.article-pagination .page-arrow a,
    .page-navigator.article-pagination .page-arrow > span {
        min-width: 1.6rem;
        width: 1.6rem;
        height: 1.6rem;
        font-size: 0.7rem;
    }

    .page-navigator.article-pagination .page-arrow svg {
        width: 12px;
        height: 12px;
    }
}

/* 页脚：简约星空 */
.site-footer {
    position: relative;
    isolation: isolate;
    margin-top: 2rem;
    overflow: hidden;
    border-top: 1px solid hsl(var(--thyuu--main-color) / 0.16);
    background:
        radial-gradient(120% 100% at 50% 130%, hsl(var(--thyuu--main-color) / 0.1), transparent 68%),
        linear-gradient(180deg, hsl(var(--thyuu--main-color) / 0), hsl(var(--thyuu--main-color) / 0.04));
}

/* 星点与星轨视觉层：画在玻璃卡背景之上、文字之下，避免被 backdrop-filter 糊掉 */
.site-footer-sky {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* 星轨：一条低对比度的椭圆弧 */
.site-footer-orbit {
    position: absolute;
    left: 50%;
    top: 1.4rem;
    width: 132%;
    height: 240%;
    border-radius: 50%;
    border-top: 1px solid hsl(var(--thyuu--main-color) / 0.22);
    transform: translateX(-50%);
}

/* 少量手绘星点，只做透明度与缩放的呼吸，走合成层 */
.site-footer-star {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: hsl(var(--thyuu--main-color) / 0.95);
    box-shadow: 0 0 8px 2px hsl(var(--thyuu--main-color) / 0.6);
    animation: footerTwinkle 6s ease-in-out infinite;
}

.site-footer-star:nth-child(1) {
    left: 7%;
    top: 30%;
    animation-delay: -1.2s;
}

.site-footer-star:nth-child(2) {
    left: 21%;
    top: 64%;
    width: 3px;
    height: 3px;
    animation-delay: -3.4s;
}

.site-footer-star:nth-child(3) {
    left: 38%;
    top: 21%;
    animation-delay: -4.6s;
}

.site-footer-star:nth-child(4) {
    left: 57%;
    top: 58%;
    width: 3px;
    height: 3px;
    animation-delay: -2.1s;
}

.site-footer-star:nth-child(5) {
    left: 74%;
    top: 27%;
    animation-delay: -5.5s;
}

.site-footer-star:nth-child(6) {
    left: 91%;
    top: 66%;
    width: 3px;
    height: 3px;
    animation-delay: -0.8s;
}

@keyframes footerTwinkle {
    0%,
    100% {
        opacity: 0.35;
        transform: scale(0.85);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.footer-content {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 2.1rem 1.5rem 1.9rem;
    color: var(--text-ecolor);
    background: var(--card-bg);
    -webkit-backdrop-filter: blur(10px) saturate(1.2);
    backdrop-filter: blur(10px) saturate(1.2);
    border-radius: 1rem 1rem 0 0;
    box-shadow: 0 -0.5rem 1.5rem hsl(var(--thyuu--main-color) / 0.06);
}

.footer-content a {
    color: hsl(var(--thyuu--main-color));
    text-decoration: none;
}

.footer-meta a {
    color: hsl(var(--thyuu--main-color));
    text-decoration: none;
}

.footer-meta a:hover {
    text-decoration: underline;
}

.footer-content a:hover {
    text-decoration: underline;
}

.footer-signature {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
}

.footer-signature a {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid hsl(var(--thyuu--main-color) / 0.35);
}

.footer-meta {
    position: relative;
    z-index: 1;
    margin: 0.85rem 0 0;
    font-size: 0.78rem;
    color: var(--text-ecolor);
    opacity: 0.85;
}

/* 两行文字之间的一颗小星 */
.footer-meta::before {
    content: "";
    display: block;
    width: 5px;
    height: 5px;
    margin: 0 auto 0.7rem;
    background: hsl(var(--thyuu--main-color) / 0.7);
    box-shadow: 0 0 8px hsl(var(--thyuu--main-color) / 0.45);
    transform: rotate(45deg);
}

/* 自定义页脚内容 */
.footer-custom {
    position: relative;
    z-index: 1;
    margin: 0.4rem 0 0;
    font-size: 0.78rem;
    line-height: 1.7;
    color: var(--text-ecolor);
    opacity: 0.85;
    overflow-wrap: anywhere;
}

.footer-custom img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.footer-custom code {
    padding: 0.1em 0.35em;
    border-radius: 0.3rem;
    background: hsl(var(--thyuu--main-color) / 0.1);
    font-family: var(--thyuu--font-family-coder);
    font-size: 0.95em;
}

/* 深色模式保持原有强度，避免发光过曝 */
[theme="dark"] .site-footer-orbit {
    border-top-color: hsl(var(--thyuu--main-color) / 0.14);
}

[theme="dark"] .site-footer-star {
    background: hsl(var(--thyuu--main-color) / 0.75);
    box-shadow: 0 0 7px 1px hsl(var(--thyuu--main-color) / 0.4);
}

[theme="dark"] .footer-meta::before {
    background: hsl(var(--thyuu--main-color) / 0.55);
    box-shadow: 0 0 8px hsl(var(--thyuu--main-color) / 0.3);
}

@media (max-width: 768px) {
    .site-footer {
        margin-top: 1.6rem;
    }

    .footer-content {
        padding: 1.8rem 1.25rem 1.7rem;
    }

    .site-footer-star:nth-child(n + 5) {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer-star {
        animation: none;
        opacity: 0.65;
        transform: none;
    }
}

/* 相册页 */
.album-container {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--fasgt-content-frame);
    margin: 0 auto;
    padding: 2rem var(--fasgt-content-gutter);
}

.album-header,
.dynamic-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.album-title,
.dynamic-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.6rem;
}

.album-info,
.dynamic-info {
    color: var(--text-ecolor);
    font-size: 0.95rem;
}

.album-intro {
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    color: var(--text-color);
    line-height: 1.8;
    background: var(--card-bg);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.album-intro p:last-child {
    margin-bottom: 0;
}

/* 瀑布流：多列按原始比例排布，纯 CSS columns */
.album-grid {
    column-count: 3;
    column-gap: 1rem;
}

.album-item {
    display: block;
    width: 100%;
    margin: 0 0 1rem;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
}

.album-item {
    box-sizing: border-box;
    overflow: hidden;
    background: var(--card-bg);
    border: 0;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    animation: fasgtFadeUp 0.55s var(--animation-in) backwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.album-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px hsl(var(--thyuu--main-color) / 0.28);
}

.album-link {
    position: relative;
    display: block;
    overflow: hidden;
    background-color: hsl(var(--thyuu--main-color) / 0.06);
}

/* 占位微光 */
.album-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(100deg,
            transparent 20%,
            hsl(var(--thyuu--main-color) / 0.16) 45%,
            transparent 70%);
    background-size: 200% 100%;
    animation: albumShimmer 1.8s linear infinite;
    opacity: 1;
    transition: opacity 0.45s var(--animation-in);
    pointer-events: none;
}

@keyframes albumShimmer {
    from {
        background-position: 150% 0;
    }

    to {
        background-position: -50% 0;
    }
}

/* 占位文字：仅在有脚本时出现 */
.album-loading {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--text-ecolor);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    pointer-events: none;
    animation: albumLoadingBreath 1.8s ease-in-out infinite;
    transition: opacity 0.45s var(--animation-in);
}

.album-js .album-loading {
    display: flex;
}

@keyframes albumLoadingBreath {

    0%,
    100% {
        opacity: 0.45;
    }

    50% {
        opacity: 1;
    }
}

.album-link img {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.55s var(--animation-in), transform 0.5s var(--animation-in);
}

/* 有脚本时先隐藏，加载完成后淡入；无脚本时直接显示 */
.album-js .album-link img {
    opacity: 0;
}

.album-js .album-link.is-loaded img {
    opacity: 1;
}

/* 加载完成后占位与文字一起淡出 */
.album-js .album-link.is-loaded::before,
.album-js .album-link.is-loaded .album-loading {
    opacity: 0;
}

.album-js .album-link.is-loaded .album-loading {
    animation: none;
}

.album-item:hover .album-link img {
    transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
    .album-link::before,
    .album-loading {
        animation: none;
    }

    .album-link::before,
    .album-loading,
    .album-link img {
        transition: none;
    }

    .album-js .album-link img {
        opacity: 1;
    }

    .album-js .album-link::before,
    .album-js .album-loading {
        display: none;
    }
}

.album-empty,
.dynamic-empty,
.links-empty {
    max-width: 640px;
    margin: 1rem auto;
    padding: 2.5rem 1.5rem;
    color: var(--text-ecolor);
    text-align: center;
    background: var(--card-bg);
    border: 1px solid hsl(var(--thyuu--main-color) / 0.12);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    animation: fasgtFadeUp 0.55s var(--animation-in) backwards;
}

.album-empty svg,
.dynamic-empty svg,
.links-empty svg {
    margin-bottom: 0.75rem;
    color: hsl(var(--thyuu--main-color) / 0.75);
}

.album-empty h2,
.dynamic-empty h2,
.links-empty h2 {
    margin: 0 0 0.5rem;
    color: var(--text-color);
    font-size: 1.15rem;
    font-weight: 600;
}

.album-empty p,
.dynamic-empty p,
.links-empty p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* 动态列表：朋友圈式 */
.dynamic-container {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--fasgt-content-frame);
    margin: 0 auto;
    padding: 2rem var(--fasgt-content-gutter);
}

.post-list {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 18px;
    margin: 0;
    padding: 0;
}

.post-list .post-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 16px 18px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    /* 建立层叠上下文，让昵称装饰条落在卡片背景之上、文字之下 */
    isolation: isolate;
}

.post-list .post-item-left {
    width: 58px;
    flex: 0 0 58px;
}

.post-list .post-item-left img {
    display: block;
    width: 42px;
    height: 42px;
    padding: 2px;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    background: var(--card-bg);
    object-fit: cover;
}

.post-list .post-item-right {
    width: calc(100% - 58px);
    min-width: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.post-list .post-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 9px;
    font-size: 15px;
    line-height: 1.4;
}

.post-list .post-title a {
    position: relative;
    display: inline-block;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: color 0.25s ease;
}

/* 昵称底部的主题色装饰条：50% 透明度，贴合文字底部 */
.post-list .post-title a::after {
    content: '';
    position: absolute;
    right: -0.12em;
    bottom: 0.04em;
    left: -0.12em;
    height: 0.42em;
    border-radius: 0.2em;
    background: hsl(var(--thyuu--main-color) / 0.5);
    z-index: -1;
    transition: background 0.25s ease, opacity 0.25s ease;
}

.post-list .post-title a:hover {
    color: hsl(var(--thyuu--main-color));
}

.post-list .post-content {
    margin-bottom: 12px;
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.85;
    overflow-wrap: break-word;
    word-break: break-all;
}

.post-list .post-content p {
    margin-bottom: 0.65em;
}

.post-list .post-content p:last-child {
    margin-bottom: 0;
}

.post-list .post-images {
    width: 100%;
    margin-bottom: 10px;
}

.post-list .post-images .grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
}

.post-list .post-images .grid.has-2-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-list .post-image {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 9px;
    background: var(--bg-color);
}

.post-list .post-image img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.post-list .post-image-one .grid {
    display: block;
}

.post-list .post-image-one .post-image {
    width: min(100%, 340px);
}

.post-list .post-image-one img {
    max-width: 100%;
    max-height: 340px;
}

.post-list .post-position {
    margin: 8px 0;
}

.post-list .post-position > a,
.post-list .post-position > span {
    color: var(--text-ecolor);
    font-size: 12px;
}

.post-list .post-time {
    position: relative;
    top: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 14px;
}

.post-list .post-time time {
    color: var(--text-ecolor);
    font-size: 11px;
    letter-spacing: 0.03em;
    text-decoration: none;
}

/* 点赞 / 评论操作区结构（暂无数据时不在模板中输出） */
.post-list .post-time-comment {
    position: relative;
    background-color: hsl(var(--thyuu--main-color) / 0.08);
    border-radius: 6px;
    cursor: pointer;
}

.post-list .post-time-comment:hover {
    background-color: hsl(var(--thyuu--main-color) / 0.14);
}

.post-list .ptc-more {
    box-sizing: border-box;
    width: 30px;
    height: 22px;
    padding: 3px 7px;
}

.post-list .ptc-more svg {
    width: 16px;
    height: 16px;
}

.post-list .ptc-more path {
    fill: hsl(var(--thyuu--main-color));
}

.post-list .post-time-comment-modal {
    position: absolute;
    left: -154px;
    top: -5px;
    z-index: 5;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    width: 144px;
    height: 32px;
    padding: 4px 0;
    border-radius: 7px;
    background: var(--card-bg);
    color: var(--text-color);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.14);
}

.post-list .post-time-comment-modal::after {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 50%;
    width: 1px;
    background-color: var(--border-color);
    transform: translateX(-50%);
    pointer-events: none;
}

.post-list .ptcm-good,
.post-list .ptcm-comment {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 100%;
    min-width: 0;
    height: auto;
    padding: 0;
    cursor: pointer;
}

.post-list .post-comment-container {
    margin-top: 10px;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: hsl(var(--thyuu--main-color) / 0.08);
}

.post-list .post-comment-container:not(:has(.pcc-comment-item)):not(:has(.like-users-text:not(:empty))) {
    display: none;
}

.post-list .pcc-like-list {
    display: flex;
    align-items: center;
    gap: 5px;
    color: hsl(var(--thyuu--main-color));
    font-size: 13px;
}

.post-list .pcc-like-summary {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-list .pcc-comment-item {
    font-size: 13px;
    line-height: 1.6;
}

.post-list .pcc-comment-item + .pcc-comment-item {
    margin-top: 6px;
}

.post-list .pcc-comment-list > .pcc-comment-item a {
    color: hsl(var(--thyuu--main-color));
}

.post-list .pcc-comment-list > .pcc-comment-item span {
    color: var(--text-color);
}

/* 动态点赞 / 卡片内评论 */
.post-list .post-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-list .post-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    color: var(--text-ecolor);
    font-size: 11px;
    line-height: 1.4;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.post-list .post-action:hover {
    color: hsl(var(--thyuu--main-color));
    background-color: hsl(var(--thyuu--main-color) / 0.1);
}

.post-list .post-action.is-liked {
    color: hsl(var(--thyuu--main-color));
}

.post-list .post-action.is-disabled {
    opacity: 0.55;
    cursor: default;
}

.post-list .post-action.is-disabled:hover {
    color: var(--text-ecolor);
    background-color: transparent;
}

.post-list .dyn-comment-panel {
    margin-top: 10px;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: hsl(var(--thyuu--main-color) / 0.06);
}

.post-list .dyn-comment-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.post-list .dyn-comment {
    display: flex;
    gap: 8px;
}

.post-list .dyn-comment + .dyn-comment {
    margin-top: 10px;
}

.post-list .dyn-comment-avatar {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.post-list .dyn-comment-main {
    flex: 1 1 auto;
    min-width: 0;
}

.post-list .dyn-comment-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.post-list .dyn-comment-author {
    color: var(--text-color);
    font-weight: 600;
}

.post-list .dyn-comment-meta time {
    color: var(--text-ecolor);
    font-size: 11px;
}

.post-list .dyn-comment-reply {
    padding: 0;
    color: hsl(var(--thyuu--main-color));
    font-size: 11px;
    background: none;
    border: none;
    cursor: pointer;
}

.post-list .dyn-comment-text {
    margin-top: 4px;
    color: var(--text-color);
    font-size: 13px;
    line-height: 1.65;
    word-break: break-word;
}

.post-list .dyn-comment-text p {
    margin: 0 0 0.4em;
}

.post-list .dyn-comment-text p:last-child {
    margin-bottom: 0;
}

.post-list .dyn-comment-children {
    margin: 8px 0 0;
    padding-left: 12px;
    list-style: none;
    border-left: 1px solid var(--border-color);
}

.post-list .dyn-comment-empty {
    margin: 0 0 8px;
    color: var(--text-ecolor);
    font-size: 12px;
}

.post-list .dyn-comment-form {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
}

.post-list .dyn-comment-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 6px;
}

.post-list .dyn-comment-form input[type="text"],
.post-list .dyn-comment-form input[type="email"],
.post-list .dyn-comment-form input[type="url"],
.post-list .dyn-comment-form textarea {
    box-sizing: border-box;
    width: 100%;
    color: var(--text-color);
    font-size: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 7px;
    outline: none;
}

.post-list .dyn-comment-form input[type="text"],
.post-list .dyn-comment-form input[type="email"],
.post-list .dyn-comment-form input[type="url"] {
    padding: 6px 9px;
}

.post-list .dyn-comment-form textarea {
    min-height: 60px;
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1.6;
    resize: vertical;
}

.post-list .dyn-comment-form input:focus,
.post-list .dyn-comment-form textarea:focus {
    border-color: hsl(var(--thyuu--main-color));
}

.post-list .dyn-comment-form-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
}

.post-list .dyn-comment-reply-hint {
    color: hsl(var(--thyuu--main-color));
    font-size: 11px;
    cursor: pointer;
}

.post-list .dyn-comment-submit {
    padding: 5px 14px;
    color: #fff;
    font-size: 12px;
    background: hsl(var(--thyuu--main-color));
    border: none;
    border-radius: 7px;
    cursor: pointer;
}

.post-list .dyn-comment-submit:disabled {
    opacity: 0.6;
    cursor: default;
}

.post-list .dyn-comment-message {
    margin: 6px 0 0;
    color: var(--text-ecolor);
    font-size: 12px;
}

.post-list .dyn-comment-closed {
    margin: 0;
    color: var(--text-ecolor);
    font-size: 12px;
}

@media (max-width: 640px) {
    .post-list .post-item {
        padding: 13px 14px;
    }

    .post-list .dyn-comment-fields {
        grid-template-columns: 1fr;
    }

    .post-list .dyn-comment-panel {
        padding: 10px 11px;
    }
}

/* 图片灯箱 */
.fasgt-lightbox {
    --lb-surface: rgba(255, 255, 255, 0.82);
    --lb-surface-strong: rgba(255, 255, 255, 0.94);
    --lb-ink: #4a4d55;
    --lb-muted: rgba(45, 48, 56, 0.55);
    --lb-border: rgba(255, 255, 255, 0.62);
    --lb-shadow: 0 8px 30px rgba(30, 36, 52, 0.16);
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    overflow: hidden;
    background: #16161a;
}

[theme="dark"] .fasgt-lightbox {
    --lb-surface: rgba(36, 37, 43, 0.78);
    --lb-surface-strong: rgba(44, 45, 52, 0.92);
    --lb-ink: #ececf0;
    --lb-muted: rgba(235, 236, 242, 0.55);
    --lb-border: rgba(255, 255, 255, 0.12);
    --lb-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.fasgt-lightbox::before {
    content: '';
    position: absolute;
    inset: -8%;
    background-image: var(--lb-bg, none);
    background-position: center;
    background-size: cover;
    filter: blur(36px) saturate(1.12);
    opacity: 0.9;
    transform: scale(1.06);
}

.fasgt-lightbox::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(248, 248, 250, 0.6);
}

[theme="dark"] .fasgt-lightbox::after {
    background: rgba(10, 10, 14, 0.72);
}

.fasgt-lightbox.open {
    display: block;
    animation: fasgtLbFadeIn 0.22s ease both;
}

.fasgt-lightbox.open .fasgt-lightbox-stage {
    animation: fasgtLbStageIn 0.3s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

@keyframes fasgtLbFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fasgtLbStageIn {
    from {
        opacity: 0;
        transform: scale(0.94);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fasgt-lightbox-toolbar {
    position: absolute;
    top: max(1rem, env(safe-area-inset-top));
    left: 50%;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 5px 8px;
    color: var(--lb-ink);
    background: var(--lb-surface);
    border: 1px solid var(--lb-border);
    border-radius: 999px;
    box-shadow: var(--lb-shadow);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    transform: translateX(-50%);
}

.fasgt-lb-tool,
.fasgt-lb-percent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 2rem;
    min-width: 2rem;
    padding: 0 0.35rem;
    color: inherit;
    font-family: inherit;
    font-size: 0.72rem;
    line-height: 1;
    text-decoration: none;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.18s ease, opacity 0.18s ease;
}

.fasgt-lb-percent {
    min-width: 3.3rem;
    border-radius: 999px;
    color: var(--lb-muted);
    font-variant-numeric: tabular-nums;
}

.fasgt-lb-tool svg {
    display: block;
    width: 1.05rem;
    height: 1.05rem;
}

.fasgt-lb-tool:hover,
.fasgt-lb-percent:hover {
    background: rgba(120, 124, 138, 0.14);
}

.fasgt-lb-tool:focus-visible,
.fasgt-lb-percent:focus-visible,
.fasgt-lightbox-nav:focus-visible,
.fasgt-lightbox-thumb:focus-visible {
    outline: 2px solid hsl(var(--thyuu--main-color));
    outline-offset: 2px;
}

.fasgt-lb-tool:disabled {
    opacity: 0.32;
    background: transparent;
    cursor: default;
}

.fasgt-lb-close {
    margin-left: 2px;
}

.fasgt-lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    padding: 0;
    color: var(--lb-ink);
    background: var(--lb-surface-strong);
    border: 1px solid var(--lb-border);
    border-radius: 50%;
    box-shadow: var(--lb-shadow);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.18s ease, transform 0.18s ease;
}

.fasgt-lightbox-nav svg {
    display: block;
    width: 1.15rem;
    height: 1.15rem;
}

.fasgt-lightbox.has-multi .fasgt-lightbox-nav {
    display: flex;
}

.fasgt-lightbox-prev {
    left: clamp(0.7rem, 2vw, 1.8rem);
}

.fasgt-lightbox-next {
    right: clamp(0.7rem, 2vw, 1.8rem);
}

.fasgt-lightbox-nav:hover {
    background: var(--lb-surface);
    transform: translateY(-50%) scale(1.04);
}

.fasgt-lightbox-nav:active {
    transform: translateY(-50%) scale(0.96);
}

.fasgt-lightbox-stage {
    position: absolute;
    top: clamp(4.3rem, 8.5vh, 5.6rem);
    right: clamp(3.2rem, 8vw, 7rem);
    bottom: clamp(8.6rem, 19vh, 11rem);
    left: clamp(3.2rem, 8vw, 7rem);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: clamp(0.2rem, 1vh, 0.7rem);
    overflow: hidden;
    touch-action: none;
    cursor: grab;
}

.fasgt-lightbox-stage.is-dragging {
    cursor: grabbing;
}

.fasgt-lightbox-stage img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.9rem;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
    cursor: grab;
    transform-origin: center center;
    transition: transform 0.3s cubic-bezier(0.22, 0.7, 0.3, 1);
    user-select: none;
    -webkit-user-drag: none;
}

.fasgt-lightbox-stage img.lb-switch-in {
    animation: fasgtLbSwitchIn 0.26s ease both;
}

@keyframes fasgtLbSwitchIn {
    from {
        opacity: 0;
        filter: blur(5px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fasgt-lightbox.open,
    .fasgt-lightbox.open .fasgt-lightbox-stage,
    .fasgt-lightbox-stage img.lb-switch-in {
        animation: none;
    }

    .fasgt-lightbox-stage img {
        transition: none;
    }
}

.fasgt-lightbox-stage img.is-dragging {
    cursor: grabbing;
    transition: none;
}

.fasgt-lightbox-stage img.no-transition {
    transition: none;
}

.fasgt-lightbox-bottom {
    position: absolute;
    right: 0;
    bottom: max(0.8rem, env(safe-area-inset-bottom));
    left: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    padding: 0 1rem;
    pointer-events: none;
}

.fasgt-lightbox-counter,
.fasgt-lightbox-thumbs,
.fasgt-lightbox-hint {
    pointer-events: auto;
}

.fasgt-lightbox-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    padding: 0.2rem 0.7rem;
    color: var(--lb-muted);
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    background: var(--lb-surface-strong);
    border: 1px solid var(--lb-border);
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(30, 36, 52, 0.12);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.fasgt-lightbox-thumbs {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
    max-width: min(92vw, 44rem);
    padding: 0.2rem 0.1rem 0.15rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.fasgt-lightbox-thumbs::-webkit-scrollbar {
    display: none;
}

.fasgt-lightbox:not(.has-multi) .fasgt-lightbox-thumbs {
    display: none;
}

.fasgt-lightbox-thumb {
    flex: 0 0 auto;
    width: 2.9rem;
    height: 2.9rem;
    padding: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 0.55rem;
    box-shadow: 0 3px 10px rgba(30, 36, 52, 0.12);
    cursor: pointer;
    opacity: 0.72;
    transition: opacity 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.fasgt-lightbox-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fasgt-lightbox-thumb:hover {
    opacity: 1;
}

.fasgt-lightbox-thumb.active {
    opacity: 1;
    border-color: hsl(var(--thyuu--main-color));
    box-shadow: 0 0 0 2px hsl(var(--thyuu--main-color) / 0.18), 0 4px 12px rgba(30, 36, 52, 0.16);
    transform: translateY(-1px);
}

[theme="dark"] .fasgt-lightbox-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
}

[theme="dark"] .fasgt-lightbox-thumb.active {
    border-color: hsl(var(--thyuu--main-color));
    box-shadow: 0 0 0 2px hsl(var(--thyuu--main-color) / 0.22), 0 4px 12px rgba(0, 0, 0, 0.35);
}

.fasgt-lightbox-hint {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    max-width: 92vw;
    margin: 0;
    color: var(--lb-muted);
    font-size: 0.68rem;
    line-height: 1.5;
    text-align: center;
}

.fasgt-lightbox-hint svg {
    flex: 0 0 auto;
    width: 0.85rem;
    height: 0.85rem;
    opacity: 0.7;
}

@media (max-width: 640px) {
    .fasgt-lightbox-toolbar {
        top: max(0.6rem, env(safe-area-inset-top));
        gap: 0;
        padding: 4px 6px;
    }

    .fasgt-lb-tool {
        height: 1.9rem;
        min-width: 1.9rem;
    }

    .fasgt-lb-percent {
        min-width: 2.9rem;
        font-size: 0.68rem;
    }

    .fasgt-lb-tool svg {
        width: 0.95rem;
        height: 0.95rem;
    }

    .fasgt-lightbox-nav {
        width: 2.1rem;
        height: 2.1rem;
    }

    .fasgt-lightbox-nav svg {
        width: 1rem;
        height: 1rem;
    }

    .fasgt-lightbox-prev {
        left: 0.25rem;
    }

    .fasgt-lightbox-next {
        right: 0.25rem;
    }

    .fasgt-lightbox-stage {
        top: 3.8rem;
        right: 0.65rem;
        bottom: 8.6rem;
        left: 0.65rem;
        padding: 0;
    }

    .fasgt-lightbox-stage img {
        border-radius: 0.65rem;
        box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
    }

    .fasgt-lightbox-bottom {
        bottom: max(0.5rem, env(safe-area-inset-bottom));
        gap: 0.4rem;
    }

    .fasgt-lightbox-thumb {
        width: 2.4rem;
        height: 2.4rem;
    }

    .fasgt-lightbox-hint {
        font-size: 0.62rem;
    }
}

@keyframes fasgtFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .post-card {
        width: 95%;
        padding: 1.5rem;
    }
    
    .post-container,
    .page-container,
    .archive-container,
    .search-container,
    .tags-container,
    .archives-container {
        padding-block: 1rem;
    }
    
    .post,
    .page,
    .archive-item,
    .respond {
        padding: 1.5rem;
    }
    
    .post-title,
    .page-title,
    .archive-title,
    .search-title,
    .tags-title,
    .archives-title {
        font-size: 1.5rem;
    }
    
    .post-meta {
        flex-wrap: nowrap;
        gap: 0.3rem 0.45rem;
        font-size: 0.78rem;
    }

    .post-meta .meta-item svg {
        width: 0.88rem;
        height: 0.88rem;
    }
    
    .post-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .post-nav-prev,
    .post-nav-next {
        padding: 0.75rem 0.8rem 0.8rem;
    }
    
    .tag-cloud {
        padding: 1rem 0 0;
    }
    
    .error-actions {
        flex-direction: column;
    }
    
    .comment-body {
        padding: 1rem;
    }

    .comment-author {
        position: static;
        width: auto;
        flex-direction: row;
        justify-content: flex-start;
        margin-bottom: 0.6rem;
    }

    .comment-author .fn {
        text-align: left;
    }

    .comment-children > .comment-list {
        margin-left: 0;
        padding-left: 0.75rem;
    }

    .comment-meta {
        justify-content: flex-start;
    }

    .album-container {
        /* 横向沿用全站内容栏 gutter，保证与评论卡片左右边缘对齐 */
        padding: 1rem var(--fasgt-content-gutter);
    }

    .dynamic-container {
        padding: 1rem;
    }

    .album-title,
    .dynamic-title {
        font-size: 1.5rem;
    }

    .album-grid {
        column-count: 2;
        column-gap: 0.7rem;
    }

    .album-item {
        margin-bottom: 0.7rem;
    }
}

/* ========== 非首页星球过渡动画 ========== */
/* 带 hero 的独立页去掉 main 的 3rem 顶部留白 */
.site-main:has(.page-hero) {
    margin-top: 0;
}

/* hero 紧贴固定顶栏下沿开始，高度用脚本实测的顶栏高度兜底 */
.site-main:has(.page-hero) .page-hero {
    margin-top: var(--fasgt-header-h, var(--thyuu--height-head));
}

.page-hero {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    max-width: none;
    height: clamp(300px, 44vh, 480px);
    margin: 0 auto;
    overflow: hidden;
    --sun-size: clamp(16rem, 42vmin, 26rem);
    --flow-color: hsl(var(--thyuu--main-color) / 0.4);
}

/* 页面自定义星球颜色，未设置时回落到主题默认 */
.page-hero .box-content sun {
    background: var(--page-sun-color, var(--thyuu--color-back-have));
}

.page-hero .box {
    position: absolute;
    inset: 0;
    height: 100%;
    /* 视觉层横向铺满视口宽度并在两端柔和淡出，避免星球光晕/轨道被内容宽度切出直边 */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}

.page-hero .box-content {
    transform: translateY(-50%) scale(1.5);
    animation: pageHeroPlanet 1.1s var(--animation-in) both;
}

.page-hero .for-come {
    position: absolute;
    left: 0;
    right: 0;
    bottom: clamp(0.5rem, 3vh, 2rem);
    z-index: 2;
    width: 100%;
    height: auto;
    margin: 0;
    pointer-events: none;
}

.page-hero .for-come .greets {
    animation: pageHeroTitle 0.9s var(--animation-in) 0.25s both;
}

.page-hero .for-come h2 {
    height: auto;
    margin: 0;
    font-size: clamp(1.5rem, 3.6vw, 2.4rem);
    letter-spacing: 0.06em;
    text-shadow: 0 0.08em 0.35em hsl(var(--thyuu--main-color) / 0.35);
    -webkit-mask: none;
    mask: none;
}

.page-hero-subtitle {
    margin: 0.35rem 0 0;
    color: var(--text-ecolor);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    text-shadow: none;
}

@keyframes pageHeroPlanet {
    0% {
        opacity: 0;
        transform: translateY(-120%) scale(1.2);
    }

    100% {
        opacity: 1;
        transform: translateY(-50%) scale(1.5);
    }
}

@keyframes pageHeroTitle {
    0% {
        opacity: 0;
        transform: translateY(14px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== 文章详情页排版增强 ========== */
.content-container {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--fasgt-content-frame);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--fasgt-content-gutter);
    padding-right: var(--fasgt-content-gutter);
}

.post-page .post-card {
    --post-card-pad: clamp(1.25rem, 3vw, 2.5rem);
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 1rem auto 0;
    padding: var(--post-card-pad);
    border: 1px solid hsl(var(--thyuu--main-color) / 0.12);
    overflow: hidden;
}

@media (max-width: 520px) {
    .post-meta {
        gap: 0.25rem 0.35rem;
        font-size: 0.74rem;
    }

    .post-meta .meta-item {
        gap: 0.22rem;
    }

    .post-meta .meta-item svg {
        width: 0.8rem;
        height: 0.8rem;
    }
}

@media (max-width: 420px) {
    .post-meta .words {
        display: none;
    }
}

/* 文章顶部封面：铺满标题区，标题与元信息压在图上 */
.post-cover {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-sizing: border-box;
    margin: calc(var(--post-card-pad, 2rem) * -1) calc(var(--post-card-pad, 2rem) * -1) 1.75rem;
    min-height: clamp(15rem, 38vw, 22rem);
    padding: clamp(2.5rem, 7vw, 4.5rem) var(--post-card-pad, 2rem) var(--post-card-pad, 2rem);
    border-radius: 1rem 1rem 0 0;
    background-color: hsl(var(--thyuu--main-color) / 0.35);
    background-image: var(--post-cover, none),
        linear-gradient(135deg, hsl(var(--thyuu--main-color) / 0.85), hsl(var(--thyuu--main-color) / 0.45));
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover, cover;
    overflow: hidden;
}

/* 自下而上的深色遮罩，保证浅色照片上的白字可读 */
.post-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.45) 45%,
        rgba(0, 0, 0, 0.12) 78%,
        rgba(0, 0, 0, 0.2) 100%
    );
    pointer-events: none;
}

.post-cover .post-header {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 0;
    border-bottom: 0;
}

.post-cover .post-title {
    margin: 0 0 0.85rem;
    color: #fff;
    font-size: clamp(1.5rem, 3.4vw, 2.35rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 6px 22px rgba(0, 0, 0, 0.45);
}

.post-cover .post-meta {
    color: rgba(255, 255, 255, 0.92);
}

.post-cover .post-meta .meta-item,
.post-cover .post-meta .meta-item a {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

@media (max-width: 768px) {
    .post-cover {
        min-height: 14rem;
        padding-top: 3rem;
        border-radius: 0.85rem 0.85rem 0 0;
    }

    .post-cover .post-title {
        font-size: clamp(1.35rem, 6vw, 1.7rem);
    }
}

.post-page .post-header {
    border-bottom-color: hsl(var(--thyuu--main-color) / 0.18);
}

.post-page .post-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

/* 评论区域与正文卡片同宽对齐 */
.post-page > .comments-container {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 2rem auto 0;
    padding: 0;
}

@media (max-width: 768px) {
    .post-page > .comments-container {
        width: 100%;
        max-width: 100%;
        margin-top: 1.5rem;
    }
}

.post-content {
    font-size: 1rem;
    line-height: 1.9;
    overflow-wrap: break-word;
}

.post-content > :first-child {
    margin-top: 0;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    position: relative;
    padding-left: 0.8rem;
    line-height: 1.45;
}

.post-content h2::before,
.post-content h3::before,
.post-content h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.2em;
    bottom: 0.2em;
    width: 0.22rem;
    border-radius: 999px;
    background: linear-gradient(180deg, hsl(var(--thyuu--main-color)), hsl(var(--thyuu--main-color) / 0.25));
}

.post-content h2 {
    font-size: 1.5rem;
}

.post-content h3 {
    font-size: 1.22rem;
}

.post-content h4 {
    font-size: 1.08rem;
}

.post-content p {
    margin: 0 0 1.1rem;
}

.post-content a {
    color: hsl(var(--custom-main-hue, 0deg) var(--custom-main-sat, 70%) 42%);
    text-decoration: none;
    border-bottom: 1px solid hsl(var(--thyuu--main-color) / 0.35);
    transition: border-color 0.25s ease;
}

/* 深色下正文主题色文字提高明度（42% × 1.5 = 63%），色相不变 */
[theme="dark"] .post-content a {
    color: hsl(var(--custom-main-hue, 0deg) var(--custom-main-sat, 70%) 63%);
}

.post-content a:hover {
    border-bottom-color: currentColor;
}

.post-content ul,
.post-content ol {
    margin: 0 0 1.1rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.4rem;
}

.post-content li::marker {
    color: hsl(var(--thyuu--main-color));
}

.post-content blockquote {
    margin: 1.25rem 0;
    padding: 0.9rem 1.1rem;
    color: var(--text-ecolor);
    font-style: normal;
    background: hsl(var(--thyuu--main-color) / 0.08);
    border-left: 3px solid hsl(var(--thyuu--main-color) / 0.65);
    border-radius: 0 0.8rem 0.8rem 0;
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

.post-content hr {
    height: 1px;
    margin: 2rem 0;
    border: none;
    background: linear-gradient(90deg, transparent, hsl(var(--thyuu--main-color) / 0.35), transparent);
}

.post-content table {
    display: block;
    width: 100%;
    margin: 1.25rem 0;
    font-size: 0.9rem;
    border-collapse: collapse;
    overflow-x: auto;
}

.post-content th,
.post-content td {
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border-color);
}

.post-content th {
    background: hsl(var(--thyuu--main-color) / 0.12);
}

.post-content tr:nth-child(even) td {
    background: hsl(var(--thyuu--main-color) / 0.04);
}

/* 图片与图注 */
.post-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.4rem auto;
    border-radius: 0.8rem;
    box-shadow: var(--shadow);
    cursor: zoom-in;
}

.post-content figure {
    margin: 1.4rem 0;
    text-align: center;
}

.post-content figure img {
    margin: 0 auto;
}

.post-content figcaption {
    margin-top: 0.55rem;
    color: var(--text-ecolor);
    font-size: 0.82rem;
}

.post-content a img {
    transition: transform 0.4s var(--animation-in), box-shadow 0.4s ease;
}

.post-content a:hover img {
    transform: scale(1.01);
    box-shadow: 0 10px 28px hsl(var(--thyuu--main-color) / 0.22);
}

/* 行内代码与代码块 */
.post-content code {
    padding: 0.15rem 0.4rem;
    color: var(--text-color);
    font-family: 'Monaco', 'Consolas', 'Liberation Mono', monospace;
    font-size: 0.88em;
    background: hsl(var(--thyuu--main-color) / 0.12);
    border-radius: 0.35rem;
}

.post-content pre {
    margin: 1.4rem 0;
    padding: 1.1rem 1.2rem;
    color: #e6e8f0;
    line-height: 1.6;
    background: #1f2230;
    border: 1px solid rgb(255 255 255 / 0.08);
    border-radius: 0.9rem;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06), var(--shadow);
    overflow-x: auto;
}

.post-content pre code {
    display: block;
    padding: 0;
    color: inherit;
    font-size: 0.86rem;
    white-space: pre;
    background: transparent;
    border-radius: 0;
}

.post-content pre::-webkit-scrollbar {
    height: 8px;
}

.post-content pre::-webkit-scrollbar-thumb {
    background: rgb(255 255 255 / 0.25);
    border-radius: 999px;
}

/* ---------- 正文组件：文件下载 / 提示块 / 代码块窗口 ---------- */
.post-download {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin: 1.4rem 0;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.9rem;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    transition: background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

/* 与评论卡 / 首页卡片一致：提亮 + 主题色描边 + 轻微投影，支持键盘聚焦 */
.post-download:hover,
.post-download:focus-within {
    background-color: color-mix(in srgb, var(--card-bg) 55%, #fff);
    border-color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 30%, var(--border-color));
    box-shadow: 0 6px 18px color-mix(in srgb, hsl(var(--thyuu--main-color)) 10%, transparent);
}

[theme="dark"] .post-download:hover,
[theme="dark"] .post-download:focus-within {
    background-color: color-mix(in srgb, var(--card-bg) 70%, #3f3f3f);
    border-color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 35%, var(--border-color));
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.post-download-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.7rem;
    background: hsl(var(--thyuu--main-color) / 0.12);
    color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 55%, #5a6f9e);
}

.post-download-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.post-download-main {
    flex: 1 1 auto;
    min-width: 0;
}

.post-download-name {
    display: block;
    overflow: hidden;
    color: var(--text-color);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-download-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.35rem;
}

.post-download-meta span {
    padding: 0.08rem 0.45rem;
    border-radius: 0.35rem;
    background: hsl(var(--thyuu--main-color) / 0.1);
    color: var(--text-ecolor);
    font-size: 0.7rem;
    line-height: 1.5;
}

.post-content .post-download-btn {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.95rem;
    border: 0;
    border-bottom: 0;
    border-radius: 999px;
    background: hsl(var(--thyuu--main-color) / 0.7);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.post-content .post-download-btn:hover {
    border-bottom: 0;
    color: #fff;
    box-shadow: 0 4px 12px hsl(var(--thyuu--main-color) / 0.28);
    transform: translateY(-1px);
}

.post-download-btn svg {
    width: 1rem;
    height: 1rem;
}

.post-content .post-download-btn:focus-visible {
    color: #fff;
    outline: 2px solid color-mix(in srgb, hsl(var(--thyuu--main-color)) 55%, #1f1f1f);
    outline-offset: 2px;
    box-shadow: 0 4px 12px hsl(var(--thyuu--main-color) / 0.28);
}

[theme="dark"] .post-content .post-download-btn:focus-visible {
    outline-color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 45%, #fff);
}

[theme="dark"] .post-download-icon {
    color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 55%, #9fb4ea);
}

[theme="dark"] .post-content .post-download-btn {
    border-bottom: 0;
    background-color: hsl(var(--thyuu--main-color) / 0.7);
    background-image: linear-gradient(rgb(0 0 0 / 0.2), rgb(0 0 0 / 0.2));
    color: #fff;
}

[theme="dark"] .post-content .post-download-btn:hover,
[theme="dark"] .post-content .post-download-btn:focus-visible {
    color: #fff;
}

/* 文章引用卡片 */
.post-content .post-article-ref {
    margin: 1.4rem 0;
    text-align: left;
}

.post-article-ref .post-article-ref-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 0.85rem;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    color: inherit;
    text-decoration: none;
    transition: background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.post-article-ref .post-article-ref-card:hover,
.post-article-ref .post-article-ref-card:focus-visible {
    background-color: color-mix(in srgb, var(--card-bg) 55%, #fff);
    border-color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 30%, var(--border-color));
    box-shadow: 0 6px 18px color-mix(in srgb, hsl(var(--thyuu--main-color)) 10%, transparent);
    text-decoration: none;
}

.post-article-ref .post-article-ref-card:focus-visible {
    outline: 2px solid color-mix(in srgb, hsl(var(--thyuu--main-color)) 55%, #1f1f1f);
    outline-offset: 2px;
}

.post-article-ref-thumb {
    display: block;
    flex: 0 0 8.4rem;
    width: 8.4rem;
    aspect-ratio: 6 / 5;
    overflow: hidden;
    border-radius: 0.6rem;
    background: color-mix(in srgb, var(--bg-color) 55%, #d7d7d7);
}

.post-article-ref-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-article-ref-body {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    gap: 0.28rem;
}

.post-article-ref-title {
    display: block;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.post-article-ref-desc {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text-ecolor);
    font-size: 0.8rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.post-article-ref-source {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.05rem;
    color: var(--text-ecolor);
    font-size: 0.72rem;
    line-height: 1.4;
    opacity: 0.88;
}

.post-article-ref-source svg {
    width: 0.8rem;
    height: 0.8rem;
}

[theme="dark"] .post-article-ref-thumb {
    background: color-mix(in srgb, var(--bg-color) 70%, #4a4a4a);
}

[theme="dark"] .post-article-ref .post-article-ref-card:hover,
[theme="dark"] .post-article-ref .post-article-ref-card:focus-visible {
    background-color: color-mix(in srgb, var(--card-bg) 70%, #3f3f3f);
    border-color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 35%, var(--border-color));
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

[theme="dark"] .post-article-ref .post-article-ref-card:focus-visible {
    outline-color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 45%, #fff);
}

@media (max-width: 560px) {
    .post-article-ref .post-article-ref-card {
        gap: 0.7rem;
        padding: 0.7rem;
    }

    .post-article-ref-thumb {
        flex-basis: 6.2rem;
        width: 6.2rem;
    }

    .post-article-ref-title {
        font-size: 0.94rem;
    }

    .post-article-ref-desc {
        font-size: 0.76rem;
    }
}

/* 提示块：统一主题色 50% 底 + 左侧主题色条 + 圆角图标底 */
.post-callout {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin: 1.4rem 0;
    padding: 0.85rem 1.05rem 0.85rem 0.9rem;
    border-left: 3px solid hsl(var(--thyuu--main-color));
    border-radius: 0.9rem;
    background: hsl(var(--thyuu--main-color) / 0.1);
}

.post-callout-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.7rem;
    background: color-mix(in srgb, var(--bg-color) 45%, #fff);
    box-shadow: inset 0 0 0 1px hsl(var(--thyuu--main-color) / 0.2);
    color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 55%, #1f1f1f);
}

.post-callout-icon svg {
    width: 1.15rem;
    height: 1.15rem;
}

.post-callout-body {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: calc((2.1rem - 1.7em) / 2);
    color: #38383896;
    font-size: 0.92rem;
    line-height: 1.7;
}

.post-callout-body > :first-child {
    margin-top: 0;
}

.post-callout-body > :last-child {
    margin-bottom: 0;
}

[theme="dark"] .post-callout-icon {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 45%, #fff);
}

[theme="dark"] .post-callout-body {
    color: #f0f0f0d9;
}

/* 代码块：窗口标题栏 + 语言标签 + 复制按钮 */
.post-content .post-code {
    margin: 1.4rem 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 0.9rem;
    background: hsl(var(--thyuu--main-color) / 0.1);
    box-shadow: var(--shadow);
    text-align: left;
}

.post-code-bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.28rem 0.55rem;
    border-bottom: 1px solid var(--border-color);
    background: hsl(var(--thyuu--main-color) / 0.2);
}

.post-code-dots {
    display: inline-flex;
    gap: 0.28rem;
}

.post-code-dots i {
    display: block;
    width: 0.44rem;
    height: 0.44rem;
    border-radius: 50%;
}

.post-code-dots i:nth-child(1) {
    background: #ff5f57;
}

.post-code-dots i:nth-child(2) {
    background: #febc2e;
}

.post-code-dots i:nth-child(3) {
    background: #28c840;
}

.post-code-lang {
    position: absolute;
    left: 50%;
    color: var(--text-ecolor);
    font-family: var(--thyuu--font-family-coder);
    font-size: 0.68rem;
    line-height: 1;
    letter-spacing: 0.03em;
    transform: translateX(-50%);
}

.post-code-lang:empty {
    display: none;
}

.post-code-copy {
    display: inline-grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: 0.4rem;
    background: transparent;
    color: var(--text-ecolor);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.post-code-copy:hover,
.post-code-copy:focus-visible {
    background: hsl(var(--thyuu--main-color) / 0.14);
    color: var(--text-color);
    outline: none;
}

.post-code-copy svg {
    width: 0.9rem;
    height: 0.9rem;
}

.post-code-copy .icon-check {
    display: none;
}

.post-code-copy.is-copied {
    color: var(--messagegreen);
}

.post-code-copy.is-copied .icon-copy {
    display: none;
}

.post-code-copy.is-copied .icon-check {
    display: block;
}

.post-content .post-code pre {
    margin: 0;
    padding: 1.05rem 1.15rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--text-color);
    font-size: 0.86rem;
    line-height: 1.7;
    overflow-x: auto;
}

.post-content .post-code pre code {
    padding: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    border-radius: 0;
    white-space: pre;
}

/* 语法高亮：主题色系，浅色 */
.post-content .post-code .hljs-comment,
.post-content .post-code .hljs-quote {
    color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 22%, #6e7480);
    font-style: italic;
}

.post-content .post-code .hljs-keyword,
.post-content .post-code .hljs-selector-tag,
.post-content .post-code .hljs-doctag,
.post-content .post-code .hljs-formula {
    color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 65%, #9e2f2f);
    font-weight: 600;
}

.post-content .post-code .hljs-string,
.post-content .post-code .hljs-regexp,
.post-content .post-code .hljs-addition,
.post-content .post-code .hljs-attribute {
    color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 30%, #2f7a5a);
}

.post-content .post-code .hljs-number,
.post-content .post-code .hljs-literal,
.post-content .post-code .hljs-symbol,
.post-content .post-code .hljs-bullet {
    color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 28%, #a35b00);
}

.post-content .post-code .hljs-title,
.post-content .post-code .hljs-section,
.post-content .post-code .hljs-name {
    color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 40%, #2f5fa8);
}

.post-content .post-code .hljs-variable,
.post-content .post-code .hljs-template-variable,
.post-content .post-code .hljs-params,
.post-content .post-code .hljs-subst {
    color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 28%, #7a4bb0);
}

.post-content .post-code .hljs-attr,
.post-content .post-code .hljs-property,
.post-content .post-code .hljs-selector-attr,
.post-content .post-code .hljs-selector-class,
.post-content .post-code .hljs-selector-id {
    color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 30%, #2f7a8a);
}

.post-content .post-code .hljs-type,
.post-content .post-code .hljs-built_in,
.post-content .post-code .hljs-title.class_ {
    color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 35%, #8a5a2f);
}

.post-content .post-code .hljs-meta {
    color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 22%, #6e7480);
}

.post-content .post-code .hljs-tag {
    color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 22%, #6e7480);
}

.post-content .post-code .hljs-tag .hljs-name {
    color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 50%, #9e2f2f);
}

.post-content .post-code .hljs-tag .hljs-attr {
    color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 30%, #2f7a8a);
}

.post-content .post-code .hljs-deletion {
    color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 55%, #b23a3a);
}

.post-content .post-code .hljs-emphasis {
    font-style: italic;
}

.post-content .post-code .hljs-strong {
    font-weight: 700;
}

/* 语法高亮：深色单独取值 */
[theme="dark"] .post-content .post-code .hljs-comment,
[theme="dark"] .post-content .post-code .hljs-quote {
    color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 18%, #a9b0bd);
}

[theme="dark"] .post-content .post-code .hljs-keyword,
[theme="dark"] .post-content .post-code .hljs-selector-tag,
[theme="dark"] .post-content .post-code .hljs-doctag,
[theme="dark"] .post-content .post-code .hljs-formula {
    color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 40%, #ffb1b8);
}

[theme="dark"] .post-content .post-code .hljs-string,
[theme="dark"] .post-content .post-code .hljs-regexp,
[theme="dark"] .post-content .post-code .hljs-addition,
[theme="dark"] .post-content .post-code .hljs-attribute {
    color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 22%, #9fe3bb);
}

[theme="dark"] .post-content .post-code .hljs-number,
[theme="dark"] .post-content .post-code .hljs-literal,
[theme="dark"] .post-content .post-code .hljs-symbol,
[theme="dark"] .post-content .post-code .hljs-bullet {
    color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 22%, #ffd08a);
}

[theme="dark"] .post-content .post-code .hljs-title,
[theme="dark"] .post-content .post-code .hljs-section,
[theme="dark"] .post-content .post-code .hljs-name {
    color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 30%, #9dc4ff);
}

[theme="dark"] .post-content .post-code .hljs-variable,
[theme="dark"] .post-content .post-code .hljs-template-variable,
[theme="dark"] .post-content .post-code .hljs-params,
[theme="dark"] .post-content .post-code .hljs-subst {
    color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 26%, #d7b3ff);
}

[theme="dark"] .post-content .post-code .hljs-attr,
[theme="dark"] .post-content .post-code .hljs-property,
[theme="dark"] .post-content .post-code .hljs-selector-attr,
[theme="dark"] .post-content .post-code .hljs-selector-class,
[theme="dark"] .post-content .post-code .hljs-selector-id {
    color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 26%, #8fe0d8);
}

[theme="dark"] .post-content .post-code .hljs-type,
[theme="dark"] .post-content .post-code .hljs-built_in,
[theme="dark"] .post-content .post-code .hljs-title.class_ {
    color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 30%, #ffc693);
}

[theme="dark"] .post-content .post-code .hljs-meta,
[theme="dark"] .post-content .post-code .hljs-tag {
    color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 18%, #a9b0bd);
}

[theme="dark"] .post-content .post-code .hljs-tag .hljs-name {
    color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 36%, #ffb1b8);
}

[theme="dark"] .post-content .post-code .hljs-tag .hljs-attr {
    color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 26%, #8fe0d8);
}

[theme="dark"] .post-content .post-code .hljs-deletion {
    color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 35%, #ff9c9c);
}

.post-content .post-code pre::-webkit-scrollbar {
    height: 8px;
}

.post-content .post-code pre::-webkit-scrollbar-thumb {
    background: hsl(var(--thyuu--main-color) / 0.3);
    border-radius: 999px;
}


@media (max-width: 768px) {
    .post-download {
        gap: 0.75rem;
        padding: 0.8rem 0.85rem;
    }

    .post-download-icon {
        width: 2.6rem;
        height: 2.6rem;
    }

    .post-download-btn {
        padding: 0.45rem 0.8rem;
        font-size: 0.78rem;
    }

    .post-content .post-code pre {
        padding: 0.9rem;
        font-size: 0.8rem;
    }
}

/* 音乐、视频与嵌入内容 */
.post-content iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 1.25rem 0;
    background: #000;
    border: none;
    border-radius: 0.8rem;
    box-shadow: var(--shadow);
}

.post-content audio {
    display: block;
    width: 100%;
    margin: 1.25rem 0;
}

.post-content video {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 1.25rem 0;
    background: #000;
    border-radius: 0.8rem;
    box-shadow: var(--shadow);
}

.post-content .music-player,
.post-content .video-wrapper,
.post-content .embed-wrapper {
    margin: 1.25rem 0;
    padding: 0.5rem;
    background: var(--card-bg);
    border: 1px solid hsl(var(--thyuu--main-color) / 0.14);
    border-radius: 0.9rem;
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.post-content .music-player iframe,
.post-content .video-wrapper iframe,
.post-content .embed-wrapper iframe {
    margin: 0;
    box-shadow: none;
}

/* ========== 评论列表与回复样式增强 ========== */
.comment-body {
    border: 1px solid hsl(var(--thyuu--main-color) / 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comment-body:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px hsl(var(--thyuu--main-color) / 0.18);
}

.comment-author img {
    box-shadow: 0 0 0 2px hsl(var(--thyuu--main-color) / 0.18);
}

.comment-reply {
    text-align: right;
}

.comment-reply a {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.7rem;
    color: var(--text-color);
    font-size: 0.8rem;
    text-decoration: none;
    background: hsl(var(--thyuu--main-color) / 0.14);
    border-radius: 999px;
    transition: background 0.25s ease, color 0.25s ease;
}

.comment-reply a:hover {
    color: #3a1f26;
    text-decoration: none;
    background: hsl(var(--thyuu--main-color) / 0.55);
}

.comment-children {
    margin-top: 0.9rem;
    padding-left: 0.9rem;
    border-left: 2px solid hsl(var(--thyuu--main-color) / 0.22);
}

.comment-children > .comment-list {
    margin-left: 0;
    padding-left: 0.75rem;
    border-left: none;
}

.comment-children .comment-body {
    background: hsl(var(--thyuu--main-color) / 0.05);
    box-shadow: none;
}

.comment-children .comment-body:hover {
    box-shadow: 0 6px 18px hsl(var(--thyuu--main-color) / 0.12);
}

/* 评论表单 */
.respond {
    border: 1px solid hsl(var(--thyuu--main-color) / 0.12);
}

.respond-title {
    font-size: 1.2rem;
    text-align: left;
}

.comment-form-group label {
    color: var(--text-ecolor);
    font-size: 0.82rem;
    font-weight: 500;
}

.comment-form-group label.required::after {
    color: hsl(var(--thyuu--main-color));
}

.comment-form-group input,
.comment-form-group textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 0.7rem 0.85rem;
    background: hsl(var(--thyuu--main-color) / 0.05);
    border: 1px solid hsl(var(--thyuu--main-color) / 0.18);
    border-radius: 0.7rem;
    font-family: inherit;
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.comment-form-group textarea {
    min-height: 9rem;
    resize: vertical;
}

.comment-form-group input:focus,
.comment-form-group textarea:focus {
    background: var(--card-bg);
    border-color: hsl(var(--thyuu--main-color) / 0.65);
    box-shadow: 0 0 0 3px hsl(var(--thyuu--main-color) / 0.15);
}

.comment-form-submit {
    text-align: right;
}

.comment-form-submit button {
    padding: 0.65rem 1.6rem;
    color: #3a1f26;
    font-size: 0.95rem;
    font-weight: 600;
    background: linear-gradient(135deg, hsl(var(--thyuu--main-color)), hsl(var(--thyuu--main-color) / 0.68));
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 6px 16px hsl(var(--thyuu--main-color) / 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.comment-form-submit button:hover {
    color: #3a1f26;
    background: linear-gradient(135deg, hsl(var(--thyuu--main-color)), hsl(var(--thyuu--main-color) / 0.68));
    transform: translateY(-2px);
    box-shadow: 0 10px 22px hsl(var(--thyuu--main-color) / 0.35);
}

/* ========== 列表页底部最新评论 ========== */
.recent-comments {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--fasgt-content-frame);
    margin: 1.5rem auto 0;
    padding: 0 var(--fasgt-content-gutter) 2rem;
}

.recent-comments-title {
    margin: 0 0 1rem;
    color: var(--text-color);
    font-size: 1.15rem;
    font-weight: 600;
    text-align: left;
}

.recent-comment-list {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.recent-comment-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: var(--card-bg);
    border: 1px solid hsl(var(--thyuu--main-color) / 0.1);
    border-radius: 0.9rem;
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.recent-comment-link {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.recent-comment-author {
    color: hsl(var(--custom-main-hue, 0deg) var(--custom-main-sat, 70%) 42%);
    font-size: 0.8rem;
    font-weight: 600;
}

.recent-comment-text {
    overflow: hidden;
    color: var(--text-color);
    font-size: 0.9rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.recent-comment-date {
    flex: none;
    color: var(--text-ecolor);
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .page-hero {
        height: clamp(260px, 40vh, 380px);
        --sun-size: clamp(13rem, 46vmin, 19rem);
    }

    .post-page .post-card {
        width: 100%;
        padding: 1.25rem;
        border-radius: 1rem;
    }

    .post-content {
        font-size: 0.96rem;
    }

    .post-content pre {
        padding: 0.9rem 1rem;
        border-radius: 0.8rem;
    }

    .comment-children {
        padding-left: 0.5rem;
    }

    .comment-children > .comment-list {
        padding-left: 0.5rem;
    }

    .recent-comment-item {
        flex-direction: column;
        gap: 0.4rem;
    }

    .recent-comment-text {
        white-space: normal;
    }
}

.search-form-wrap {
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    padding: 0 0 1.5rem;
}

.page-comments {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--fasgt-content-frame);
    margin: 0 auto;
    padding: 0 var(--fasgt-content-gutter) 2rem;
}

.page-comments .comments-container {
    margin-top: 1rem;
}

.page-container .page-header {
    margin-bottom: 1.25rem;
}

.page-container .page-meta {
    justify-content: center;
}

/* ========== 归档时间轴 ========== */
.archives-content {
    position: relative;
    padding-left: 2.2rem;
}

.archives-content::before {
    content: '';
    position: absolute;
    left: 0.62rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, hsl(var(--thyuu--main-color) / 0.55), hsl(var(--thyuu--main-color) / 0.12));
}

.archive-item {
    position: relative;
    padding: 0;
    margin-bottom: 2rem;
    background: none;
    border-radius: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.archive-item:last-child {
    margin-bottom: 0;
}

.archive-item::before {
    content: '';
    position: absolute;
    left: -1.92rem;
    top: 0.55rem;
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: hsl(var(--thyuu--main-color));
    box-shadow: 0 0 0 4px hsl(var(--thyuu--main-color) / 0.18);
}

.archive-month {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 0 0.9rem;
    padding: 0 0 0.55rem;
    font-size: 1.35rem;
    line-height: 1.3;
    border-bottom: 1px dashed hsl(var(--thyuu--main-color) / 0.28);
}

.archive-month a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.archive-month a:hover {
    color: hsl(var(--thyuu--main-color));
}

.archive-count {
    float: none;
    flex: none;
    padding: 0.12rem 0.6rem;
    border-radius: 999px;
    background: hsl(var(--thyuu--main-color) / 0.12);
    color: hsl(var(--thyuu--main-color) / 0.9);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.6;
}

.archive-posts {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-left: 1.5rem;
}

.archive-posts::before {
    content: '';
    position: absolute;
    left: 0.34rem;
    top: 0.45rem;
    bottom: 0.45rem;
    width: 1px;
    background: hsl(var(--thyuu--main-color) / 0.22);
}

.archive-post {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 0.9rem;
    padding: 0.45rem 0.7rem;
    border-radius: 0.6rem;
    transition: background 0.3s ease;
}

.archive-post::before {
    content: '';
    position: absolute;
    left: -1.36rem;
    top: 50%;
    width: 0.4rem;
    height: 0.4rem;
    margin-top: -0.2rem;
    border-radius: 50%;
    background: hsl(var(--thyuu--main-color) / 0.45);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.archive-post:hover {
    background: hsl(var(--thyuu--main-color) / 0.08);
}

.archive-post:hover::before {
    background: hsl(var(--thyuu--main-color));
    box-shadow: 0 0 0 3px hsl(var(--thyuu--main-color) / 0.16);
}

.archive-post .post-date {
    flex: none;
    min-width: 2.8rem;
    color: hsl(var(--thyuu--main-color) / 0.85);
    font-size: 0.82rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.archive-post .post-title {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.archive-post:hover .post-title {
    color: hsl(var(--thyuu--main-color));
}

@media (max-width: 768px) {
    .archives-content {
        padding-left: 1.7rem;
    }

    .archives-content::before {
        left: 0.42rem;
    }

    .archive-item {
        padding: 0;
        margin-bottom: 1.6rem;
    }

    .archive-item::before {
        left: -1.57rem;
        top: 0.5rem;
        width: 0.7rem;
        height: 0.7rem;
    }

    .archive-month {
        margin-bottom: 0.7rem;
        font-size: 1.15rem;
    }

    .archive-posts {
        padding-left: 1.1rem;
    }

    .archive-posts::before {
        left: 0.2rem;
    }

    .archive-post {
        gap: 0.7rem;
        padding: 0.4rem 0.5rem;
    }

    .archive-post::before {
        left: -1.07rem;
        width: 0.34rem;
        height: 0.34rem;
        margin-top: -0.17rem;
    }
}

/* 首页星球滚动视差层：独立于入场动画，只承载滚动相关的 transform / opacity */
.container > .box .hero-parallax {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    inset: 0;
    pointer-events: none;
    will-change: transform, opacity;
}

/* 首页星球入场：从上方落入并放大到原尺寸（时长与流星启动延迟共用 app.css 中的变量） */
.container > .box .box-content {
    animation: fasgtPlanetIn var(--fasgt-hero-enter-duration, 1.1s) var(--animation-in) backwards;
}

/* 首页标题：与独立页 hero 标题一致 */
.container > .for-come .greets {
    animation: pageHeroTitle 0.9s var(--animation-in) 0.25s both;
}

@keyframes fasgtPlanetIn {
    from {
        opacity: 0;
        filter: blur(10px);
        transform: translateY(-70%) scale(0.8);
    }

    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0) scale(1);
    }
}

/* 首页模糊开屏 */
.fasgt-opening {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 245, 245, 0.55);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    cursor: pointer;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

[theme="dark"] .fasgt-opening {
    background: rgba(26, 26, 26, 0.6);
}

.fasgt-opening-inner {
    text-align: center;
    padding: 0 1.5rem;
}

.fasgt-opening-text {
    display: block;
    font-size: clamp(1rem, 2.4vw, 1.25rem);
    letter-spacing: 0.18em;
    color: var(--text-color);
    animation: fasgtOpeningPulse 1.5s ease-in-out infinite;
}

.fasgt-opening-hint {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--text-ecolor);
}

.fasgt-opening.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes fasgtOpeningPulse {
    0%,
    100% {
        opacity: 0.55;
        filter: blur(0);
    }

    50% {
        opacity: 1;
        filter: blur(3px);
    }
}

/* ========== 留言板：内容不足一屏时页脚贴底 ========== */
body:has(.guestbook-container) {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body:has(.guestbook-container) > .site-main {
    flex: 1 0 auto;
}

body:has(.guestbook-container) > .site-footer {
    flex-shrink: 0;
}

/* 首页：内容不足一屏时页脚贴视口底部（文章/分类/动态三个标签共用） */
body:has(.content-container.home-tabs) {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body:has(.content-container.home-tabs) > .site-main {
    flex: 1 0 auto;
}

body:has(.content-container.home-tabs) > .site-footer {
    flex-shrink: 0;
}

/* 友链页：内容不足一屏时页脚贴底 */
body:has(.links-page) {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body:has(.links-page) > .site-main {
    flex: 1 0 auto;
}

body:has(.links-page) > .site-footer {
    flex-shrink: 0;
}

/* ========== 留言板：星球上方弹幕 ========== */
.gb-barrage {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 62%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    --gb-row-gap: 2.5rem;
    --gb-top: 40px;
    --gb-row-air: 6px;
    animation: gbBarrageIn 0.8s ease 0.7s both;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

@keyframes gbBarrageIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.gb-danmaku {
    position: absolute;
    top: calc(var(--gb-top, 40px) + var(--gb-row, 0) * var(--gb-row-gap, 2.5rem));
    left: 100%;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 78vw;
    padding: 0.2rem 0.7rem;
    border: 1px solid hsl(var(--thyuu--main-color) / 0.22);
    border-color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 78%, hsl(0deg 0% 15%));
    border-radius: 999px;
    background: hsl(var(--thyuu--main-color) / 0.24);
    color: hsl(0deg 0% 30%);
    font-size: 0.82rem;
    line-height: 1.5;
    white-space: nowrap;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    will-change: transform;
    animation: none;
}

.gb-danmaku-name {
    flex: 0 0 auto;
    color: hsl(0deg 0% 12%);
    font-weight: 600;
}

.gb-danmaku-name::after {
    content: "：";
}

.gb-danmaku-text {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 深色模式下弹幕仍用浅色文字，并恢复浅色底与强调色昵称 */
[theme="dark"] .gb-danmaku {
    color: hsl(0deg 0% 96%);
    background: hsl(var(--thyuu--main-color) / 0.16);
}

[theme="dark"] .gb-danmaku-name {
    color: hsl(var(--thyuu--main-color));
}

/* 自己发的留言：主题色描边 + 主题色浅底，昵称与文字提亮；字号、内边距、行距保持不变 */
.gb-danmaku.is-own {
    border-color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 42%, hsl(0deg 0% 8%));
    background: hsl(var(--thyuu--main-color) / 0.6);
    color: hsl(0deg 0% 0%);
    box-shadow: 0 0 0 1px hsl(var(--thyuu--main-color) / 0.45), 0 2px 10px hsl(var(--thyuu--main-color) / 0.3);
}

.gb-danmaku.is-own .gb-danmaku-name {
    color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 40%, hsl(0deg 0% 5%));
    font-weight: 700;
}

[theme="dark"] .gb-danmaku.is-own {
    border-color: hsl(var(--thyuu--main-color) / 0.95);
    background: hsl(var(--thyuu--main-color) / 0.45);
    color: hsl(0deg 0% 100%);
    box-shadow: 0 0 0 1px hsl(var(--thyuu--main-color) / 0.4), 0 2px 10px hsl(var(--thyuu--main-color) / 0.3);
}

[theme="dark"] .gb-danmaku.is-own .gb-danmaku-name {
    color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 50%, #fff);
}

/* 留言页：星球略降不透明度，提高弹幕文字对比度 */
body:has(.guestbook-container) .page-hero .box-content sun {
    opacity: 0.88;
}

/* 减弱动态效果时改为静态留言列表 */
.guestbook-messages {
    display: none;
    list-style: none;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 0.75rem;
    margin: 0 0 1.5rem;
    padding: 0;
}

.guestbook-message {
    padding: 0.75rem 0.9rem;
    border: 1px solid hsl(var(--thyuu--main-color) / 0.15);
    border-radius: 0.8rem;
    background: var(--card-bg);
    box-shadow: var(--shadow);
}

/* 减少动效时的静态列表里，自己的留言同样高亮 */
.guestbook-message.is-own {
    border-color: hsl(var(--thyuu--main-color) / 0.55);
    background: hsl(var(--thyuu--main-color) / 0.1);
}

[theme="dark"] .guestbook-message.is-own {
    background: hsl(var(--thyuu--main-color) / 0.18);
}

.guestbook-message.is-own .guestbook-message-name {
    color: hsl(var(--thyuu--main-color));
}

.guestbook-message-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.3rem;
}

.guestbook-message-name {
    color: hsl(var(--thyuu--main-color));
    font-size: 0.85rem;
    font-weight: 600;
}

.guestbook-message-head time {
    flex: 0 0 auto;
    color: var(--text-ecolor);
    font-size: 0.72rem;
}

.guestbook-message-text {
    margin: 0;
    color: var(--text-color);
    font-size: 0.86rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
    .gb-barrage {
        display: none;
    }

    .gb-danmaku {
        animation: none;
    }

    .guestbook-messages {
        display: grid;
    }
}

/* 留言板内容区 */
.guestbook-intro {
    margin-bottom: 1.5rem;
}

.guestbook-empty {
    margin: 0 0 1.5rem;
    padding: 1rem 1.2rem;
    border: 1px dashed hsl(var(--thyuu--main-color) / 0.3);
    border-radius: 0.8rem;
    color: var(--text-ecolor);
    font-size: 0.9rem;
    text-align: center;
}

.guestbook-respond {
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .gb-barrage {
        height: 56%;
        --gb-top: 32px;
        --gb-row-air: 6px;
    }

    .gb-danmaku {
        max-width: 88vw;
        padding: 0.16rem 0.55rem;
        font-size: 0.74rem;
    }
}

/* ========== 评论区（复刻 Robes 的发布表单与评论列表） ========== */
.cmt-section {
    margin-top: 24px;
}

.cmt-section-head {
    margin-bottom: 16px;
}

.cmt-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-color);
}

.cmt-title-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    color: hsl(var(--thyuu--main-color));
}

/* 发布表单 */
.cmt-form-area {
    position: relative;
    margin-bottom: 20px;
}

.cmt-form {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.cmt-form form {
    margin: 0;
}

.cmt-fields {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-color);
}

.cmt-fields input {
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
    height: 45px;
    padding: 12px 16px;
    border: 0;
    border-right: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-color);
    font-size: 13px;
    font-family: inherit;
    outline: none;
}

.cmt-fields input:last-child {
    border-right: 0;
}

.cmt-fields input::placeholder {
    color: var(--text-ecolor);
}

.cmt-textarea-wrap textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 88px;
    padding: 12px 16px;
    border: 0;
    background: transparent;
    color: var(--text-color);
    font-size: 13px;
    font-family: inherit;
    line-height: 1.7;
    outline: none;
    resize: vertical;
}

.cmt-textarea-wrap textarea::placeholder {
    color: var(--text-ecolor);
}

.cmt-form-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    border-top: 1px solid var(--border-color);
}

.cmt-form-left {
    display: flex;
    align-items: center;
    gap: 2px;
}

.cmt-hint {
    font-size: 10px;
    color: var(--text-ecolor);
    opacity: 0.75;
}

.cmt-char-count {
    margin-left: 8px;
    color: var(--text-ecolor);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    opacity: 0.85;
}

.cmt-char-count.is-over {
    color: var(--messagered);
    opacity: 1;
}

.cmt-submit {
    padding: 6px 18px;
    border: 0;
    border-radius: 999px;
    background: hsl(var(--thyuu--main-color));
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cmt-submit:hover {
    background: color-mix(in srgb, hsl(var(--thyuu--main-color)) 85%, #000);
}

.cmt-submit:active {
    transform: scale(0.97);
}

/* 提交按钮加载态：文字隐藏，居中显示主题色按钮内的旋转指示器 */
.friend-apply-submit.is-loading,
.cmt-submit.is-loading,
.dyn-comment-submit.is-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.friend-apply-submit.is-loading::after,
.cmt-submit.is-loading::after,
.dyn-comment-submit.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border: 2px solid rgb(255 255 255 / 45%);
    border-top-color: #fff;
    border-radius: 50%;
    animation: fasgtBtnSpin 0.7s linear infinite;
}

@keyframes fasgtBtnSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .friend-apply-submit.is-loading::after,
    .cmt-submit.is-loading::after,
    .dyn-comment-submit.is-loading::after {
        animation-duration: 1.6s;
    }
}

.cmt-logged {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-ecolor);
    font-size: 12px;
}

.cmt-logged strong {
    color: var(--text-color);
}

.cmt-logged a {
    margin-left: 6px;
    color: hsl(var(--thyuu--main-color));
    font-size: 11px;
    text-decoration: none;
}

.cmt-logged a:hover {
    text-decoration: underline;
}

.cancel-comment-reply {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 6px;
}

.cancel-comment-reply a,
#cancel-comment-reply-link {
    color: hsl(var(--thyuu--main-color));
    font-size: 12px;
    text-decoration: none;
}

.cancel-comment-reply a:hover,
#cancel-comment-reply-link:hover {
    text-decoration: underline;
}

/* 评论列表 */
.cmt-list-wrap {
    margin-bottom: 8px;
}

.cmt-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cmt-item {
    list-style: none;
}

.cmt-card {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 8px;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--card-bg);
    transition: background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

/* 悬停 / 键盘聚焦：卡片提亮 + 主题色描边 + 轻微投影 */
.cmt-card:hover,
.cmt-card:focus-within {
    background-color: color-mix(in srgb, var(--card-bg) 55%, #fff);
    border-color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 30%, var(--border-color));
    box-shadow: 0 6px 18px color-mix(in srgb, hsl(var(--thyuu--main-color)) 10%, transparent);
}

[theme="dark"] .cmt-card:hover,
[theme="dark"] .cmt-card:focus-within {
    background-color: color-mix(in srgb, var(--card-bg) 70%, #3f3f3f);
    border-color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 35%, var(--border-color));
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.cmt-list > .cmt-item:last-child > .cmt-card {
    margin-bottom: 0;
}

.cmt-is-child > .cmt-card {
    gap: 8px;
    margin-bottom: 4px;
    padding: 8px 12px;
    border: 0;
    background-color: transparent;
}

.cmt-is-child > .cmt-card:hover,
.cmt-is-child > .cmt-card:focus-within {
    background-color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 8%, transparent);
    box-shadow: none;
}

.cmt-avatar-col {
    flex: 0 0 auto;
}

/* 覆盖旧评论头像样式 */
.cmt-avatar-col.comment-author {
    display: block;
    width: auto;
    margin: 0;
    font-weight: inherit;
    color: inherit;
}

.cmt-avatar-col img,
.cmt-avatar {
    display: block;
    width: 32px;
    height: 32px;
    margin: 0;
    border-radius: 50%;
    object-fit: cover;
    background: var(--border-color);
    box-shadow: none;
}

.cmt-is-child .cmt-avatar-col img {
    width: 22px;
    height: 22px;
}

.cmt-body {
    flex: 1;
    min-width: 0;
}

.cmt-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 2px;
}

.cmt-user {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cmt-name {
    color: var(--text-color);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.cmt-is-child .cmt-name {
    font-size: 12px;
}

.cmt-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.cmt-name a:hover {
    color: hsl(var(--thyuu--main-color));
}

.cmt-tag {
    display: inline-block;
    padding: 0 5px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.6;
}

.cmt-tag-admin {
    background: color-mix(in srgb, hsl(var(--thyuu--main-color)) 14%, transparent);
    color: hsl(var(--thyuu--main-color));
}

.cmt-time {
    flex: 0 0 auto;
    margin-left: auto;
    color: var(--text-ecolor);
    font-size: 11px;
}

.cmt-is-child .cmt-time {
    margin-left: 0;
    font-size: 10px;
}

.cmt-text {
    margin-bottom: 4px;
    color: var(--text-color);
    font-size: 13px;
    line-height: 1.7;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.cmt-is-child .cmt-text {
    color: var(--text-ecolor);
}

.cmt-text p {
    margin: 0 0 6px;
}

.cmt-text p:last-child {
    margin-bottom: 0;
}

.cmt-text a {
    color: hsl(var(--thyuu--main-color));
    text-decoration: none;
    overflow-wrap: anywhere;
}

.cmt-text a:hover {
    text-decoration: underline;
}

.cmt-text img {
    max-width: 100%;
    height: auto;
    margin: 4px 0;
    border-radius: 8px;
}

.cmt-text code {
    padding: 1px 5px;
    border-radius: 3px;
    background: color-mix(in srgb, hsl(var(--thyuu--main-color)) 8%, transparent);
    font-size: 12px;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
}

.cmt-text pre {
    margin: 6px 0;
    padding: 10px 12px;
    overflow-x: auto;
    border-radius: 8px;
    background: color-mix(in srgb, hsl(var(--thyuu--main-color)) 6%, transparent);
    font-size: 12px;
    line-height: 1.6;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
}

.cmt-text pre code {
    padding: 0;
    background: none;
}

.cmt-text blockquote {
    margin: 6px 0;
    padding: 6px 12px;
    border-left: 2px solid hsl(var(--thyuu--main-color));
    border-radius: 0 8px 8px 0;
    background: color-mix(in srgb, hsl(var(--thyuu--main-color)) 7%, transparent);
    color: var(--text-ecolor);
    font-size: 12px;
}

.cmt-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed color-mix(in srgb, var(--text-color) 12%, transparent);
}

.cmt-actions a,
.cmt-actions .cmt-reply-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 24px;
    margin: 0;
    padding: 0 9px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-ecolor);
    font-size: 11px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease;
}

.cmt-actions a::before {
    content: '';
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 14 4 9l5-5M4 9h9a7 7 0 0 1 7 7v3' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 14 4 9l5-5M4 9h9a7 7 0 0 1 7 7v3' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    opacity: 0.85;
}

.cmt-actions a:hover {
    color: hsl(var(--thyuu--main-color));
    background: color-mix(in srgb, hsl(var(--thyuu--main-color)) 10%, transparent);
    text-decoration: none;
}

.cmt-actions a:active {
    transform: scale(0.96);
}

.cmt-children {
    margin: 4px 0 0;
    padding: 0 0 0 28px;
    list-style: none;
}

.cmt-children .cmt-children {
    padding-left: 0;
}

/* 回复时 Typecho 会把表单节点移进楼层 */
.cmt-item .cmt-form-area {
    margin: 10px 0 12px;
}

.cmt-item .cmt-form-area .cmt-form {
    background: var(--card-bg);
}

.cmt-empty {
    padding: 32px 20px;
    color: var(--text-ecolor);
    text-align: center;
}

.cmt-empty p {
    margin: 0;
    font-size: 13px;
}

.cmt-closed {
    padding: 24px;
    color: var(--text-ecolor);
    font-size: 14px;
    text-align: center;
}

[theme="dark"] .cmt-actions {
    border-top-color: color-mix(in srgb, #fff 10%, transparent);
}

@media (max-width: 640px) {
    /* 窄屏仍保持三列一行：压缩内边距与字号，允许等比收缩 */
    .cmt-fields input {
        height: 42px;
        padding: 0 9px;
        font-size: 12px;
    }

    .cmt-fields input::placeholder {
        font-size: 11px;
    }

    .cmt-textarea-wrap textarea {
        font-size: 16px;
    }

    .cmt-children {
        padding-left: 16px;
    }
}









/* 评论区增强：徽章、设备、点赞、管理员操作、折叠、表情、验证码、提示 */
.cmt-lv {
    background: color-mix(in srgb, var(--text-color) 9%, transparent);
    color: var(--text-ecolor);
    font-weight: 700;
    letter-spacing: 0.2px;
}

.cmt-lv-2 {
    background: color-mix(in srgb, #3b82f6 14%, transparent);
    color: #3b82f6;
}

.cmt-lv-3 {
    background: color-mix(in srgb, #10b981 14%, transparent);
    color: #10b981;
}

.cmt-lv-4 {
    background: color-mix(in srgb, #f59e0b 16%, transparent);
    color: #d97706;
}

.cmt-lv-5 {
    background: color-mix(in srgb, hsl(var(--thyuu--main-color)) 16%, transparent);
    color: hsl(var(--thyuu--main-color));
}

[theme="dark"] .cmt-lv-4 {
    color: #fbbf24;
}

.cmt-tag-pin {
    background: color-mix(in srgb, hsl(var(--thyuu--main-color)) 14%, transparent);
    color: hsl(var(--thyuu--main-color));
}

.cmt-device {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    color: var(--text-ecolor);
    opacity: 0.8;
}

.cmt-device svg {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
}

.cmt-device-name {
    font-size: 10px;
    white-space: nowrap;
}

.cmt-device + .cmt-time {
    margin-left: 8px;
}

.cmt-is-child .cmt-device-name {
    display: none;
}

.cmt-actions .cmt-like,
.cmt-actions .cmt-admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 24px;
    padding: 0 9px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-ecolor);
    font-family: inherit;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.cmt-actions .cmt-like svg {
    width: 13px;
    height: 13px;
}

.cmt-actions .cmt-like:hover {
    color: hsl(var(--thyuu--main-color));
    background: color-mix(in srgb, hsl(var(--thyuu--main-color)) 10%, transparent);
}

.cmt-actions .cmt-like.is-liked {
    color: hsl(var(--thyuu--main-color));
}

.cmt-actions .cmt-like.is-liked svg path {
    fill: currentColor;
}

.cmt-actions .cmt-like:active {
    transform: scale(0.94);
}

.cmt-actions .cmt-like.cmt-pop {
    animation: cmtPop 0.32s ease;
}

@keyframes cmtPop {
    0% { transform: scale(1); }
    40% { transform: scale(1.18); }
    100% { transform: scale(1); }
}

.cmt-actions .cmt-admin-btn {
    border: 1px solid color-mix(in srgb, var(--text-color) 12%, transparent);
}

.cmt-actions .cmt-admin-btn:hover {
    color: hsl(var(--thyuu--main-color));
    border-color: color-mix(in srgb, hsl(var(--thyuu--main-color)) 40%, transparent);
}

.cmt-actions .cmt-del-btn:hover {
    color: #e5484d;
    border-color: color-mix(in srgb, #e5484d 40%, transparent);
    background: color-mix(in srgb, #e5484d 8%, transparent);
}

/* 折叠 */
.cmt-foldable.is-collapsed .cmt-fold-inner {
    position: relative;
    max-height: 7.4em;
    overflow: hidden;
}

.cmt-foldable.is-collapsed .cmt-fold-inner::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2.4em;
    background: linear-gradient(to bottom, transparent, var(--card-bg));
}

.cmt-is-child .cmt-foldable.is-collapsed .cmt-fold-inner::after {
    background: linear-gradient(to bottom, transparent, var(--bg-color));
}

.cmt-fold-btn {
    margin: 2px 0 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: hsl(var(--thyuu--main-color));
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
}

.cmt-fold-btn:hover {
    text-decoration: underline;
}

/* 表情 */
.cmt-form-left {
    position: relative;
}

.cmt-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text-ecolor);
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease;
}

.cmt-tool svg {
    width: 16px;
    height: 16px;
}

.cmt-tool:hover,
.cmt-tool[aria-expanded="true"] {
    color: hsl(var(--thyuu--main-color));
    background: color-mix(in srgb, hsl(var(--thyuu--main-color)) 10%, transparent);
}

.cmt-emoji-panel {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 2px;
    width: 248px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.cmt-emoji-panel[hidden] {
    display: none;
}

.cmt-emoji-item {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.cmt-emoji-item:hover {
    background: color-mix(in srgb, hsl(var(--thyuu--main-color)) 12%, transparent);
    transform: scale(1.12);
}

/* 验证码与操作区 */
.cmt-form-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cmt-captcha {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-ecolor);
    font-size: 11px;
}

.cmt-captcha-q {
    font-variant-numeric: tabular-nums;
    color: var(--text-color);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.cmt-captcha-input {
    width: 54px;
    height: 24px;
    padding: 0 6px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: transparent;
    color: var(--text-color);
    font-family: inherit;
    font-size: 12px;
    text-align: center;
    outline: none;
}

.cmt-captcha-input:focus {
    border-color: hsl(var(--thyuu--main-color));
}

.cmt-captcha-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text-ecolor);
    cursor: pointer;
}

.cmt-captcha-refresh svg {
    width: 14px;
    height: 14px;
}

.cmt-captcha-refresh:hover {
    color: hsl(var(--thyuu--main-color));
    background: color-mix(in srgb, hsl(var(--thyuu--main-color)) 10%, transparent);
}

@media (max-width: 640px) {
    .cmt-form-bar {
        flex-wrap: wrap;
        gap: 6px;
    }

    .cmt-form-right {
        width: 100%;
        justify-content: space-between;
    }

    .cmt-device-name {
        display: none;
    }

    .cmt-emoji-panel {
        width: 224px;
    }
}

/* 交互细节：@ 标签、评论框移动过渡、新评论插入动画 */
.cmt-at {
    display: inline;
    padding: 0 4px;
    border-radius: 4px;
    background: hsl(var(--thyuu--main-color) / 0.1);
    color: hsl(var(--thyuu--main-color) / 0.5);
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

@keyframes cmtRespondMove {
    from {
        opacity: 0.2;
        transform: translate3d(var(--cmt-move-x, 0px), var(--cmt-move-y, 0px), 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.cmt-form-area.is-moving {
    animation: cmtRespondMove 0.42s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform, opacity;
}

@keyframes cmtItemEnter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cmt-item.cmt-enter {
    animation: cmtItemEnter 0.42s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
    .cmt-form-area.is-moving,
    .cmt-item.cmt-enter {
        animation: none;
    }
}

/* 评论进入视口依次淡入（核心复刻参考主题 .cmt-item.card-visible + cardFadeIn） */
#comments.cmt-reveal .cmt-item:not(.card-visible) {
    opacity: 0;
    transform: translateY(16px);
}

#comments.cmt-reveal .cmt-item.cmt-reveal-in {
    animation: cmtRevealIn 0.8s ease both;
}

@keyframes cmtRevealIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    #comments.cmt-reveal .cmt-item:not(.card-visible) {
        opacity: 1;
        transform: none;
    }

    #comments.cmt-reveal .cmt-item.cmt-reveal-in {
        animation: none;
    }
}

/* ========== 关于页：统计卡片 ========== */
.about-container {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    width: 100%;
    max-width: var(--fasgt-content-frame);
    margin: 0 auto;
    padding: 1.5rem var(--fasgt-content-gutter) 3rem;
}

.about-card {
    box-sizing: border-box;
    padding: clamp(1.2rem, 2.6vw, 2rem);
    border: 1px solid hsl(var(--thyuu--main-color) / 0.1);
    border-radius: 1.25rem;
    background: var(--card-bg);
    box-shadow: 0 10px 30px hsl(var(--thyuu--main-color) / 0.06), var(--shadow);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.about-stat-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(1rem, 3vw, 3rem);
}

.about-kicker {
    margin: 0 0 0.55rem;
    color: hsl(var(--thyuu--main-color));
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.about-days {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    margin: 0;
    color: var(--text-color);
}

.about-days strong {
    font-size: clamp(2.6rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.about-days span {
    color: var(--text-ecolor);
    font-size: 0.95rem;
}

.about-since {
    margin: 0.7rem 0 0;
    color: var(--text-ecolor);
    font-size: 0.85rem;
}

.about-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-left: 1px solid hsl(var(--thyuu--main-color) / 0.14);
}

.about-stat {
    padding: 0.85rem 1.2rem;
}

.about-stat:nth-child(even) {
    border-left: 1px solid hsl(var(--thyuu--main-color) / 0.14);
}

.about-stat:nth-child(-n + 2) {
    border-bottom: 1px solid hsl(var(--thyuu--main-color) / 0.14);
}

.about-stat-label {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--text-ecolor);
    font-size: 0.8rem;
}

.about-stat strong {
    display: block;
    color: var(--text-color);
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.about-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 1.1rem;
}

.about-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.about-card-head h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.about-card-head p {
    margin: 0.3rem 0 0;
    color: var(--text-ecolor);
    font-size: 0.78rem;
}

.about-head-total {
    flex: 0 0 auto;
    padding-top: 0.1rem;
    color: var(--text-ecolor);
    font-size: 0.9rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.about-chart {
    width: 100%;
}

.about-trend-chart {
    height: 270px;
}

.about-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.about-overview-item {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid hsl(var(--thyuu--main-color) / 0.06);
    border-radius: 0.8rem;
    background: hsl(var(--thyuu--main-color) / 0.055);
}

.about-overview-item strong {
    color: var(--text-color);
    font-size: 1.05rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.about-overview-item span {
    color: var(--text-ecolor);
    font-size: 0.78rem;
}

.about-ten-percent {
    color: var(--text-ecolor);
    font-size: 1.1rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.about-ten-track {
    height: 10px;
    margin: 1.1rem 0 0.8rem;
    overflow: hidden;
    border-radius: 999px;
    background: hsl(var(--thyuu--main-color) / 0.12);
}

.about-ten-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, hsl(var(--thyuu--main-color) / 0.65), hsl(var(--thyuu--main-color)));
    box-shadow: 0 2px 8px hsl(var(--thyuu--main-color) / 0.3);
}

.about-ten-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text-ecolor);
    font-size: 0.78rem;
}

.about-ten-meta span:last-child {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.about-ten-remain {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.85rem 0 0;
    color: var(--text-ecolor);
    font-size: 0.8rem;
}

.about-ten-remain i {
    flex: 0 0 auto;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: hsl(var(--thyuu--main-color));
    box-shadow: 0 0 0 3px hsl(var(--thyuu--main-color) / 0.15);
}

.about-map-wrap {
    position: relative;
    overflow: hidden;
    border: 1px solid hsl(var(--thyuu--main-color) / 0.07);
    border-radius: 1rem;
    background: hsl(var(--thyuu--main-color) / 0.025);
}

.about-map-chart {
    width: 100%;
    height: 420px;
}

.about-map-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-ecolor);
    font-size: 0.85rem;
    pointer-events: none;
    background: hsl(var(--thyuu--main-color) / 0.02);
}

.about-map-chart[data-ready="1"] + .about-map-loading {
    display: none;
}

.about-map-empty {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0;
    color: var(--text-ecolor);
    font-size: 0.85rem;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.about-map-hot {
    position: absolute;
    bottom: 14px;
    left: 14px;
    min-width: 150px;
    padding: 0.65rem 0.8rem;
    border: 1px solid hsl(var(--thyuu--main-color) / 0.1);
    border-radius: 0.8rem;
    background: var(--card-bg);
    background: color-mix(in srgb, var(--card-bg) 88%, transparent);
    box-shadow: 0 6px 18px rgb(0 0 0 / 8%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.about-map-hot h4 {
    margin: 0 0 0.4rem;
    color: var(--text-color);
    font-size: 0.75rem;
    font-weight: 600;
}

.about-map-hot ol {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-map-hot li {
    display: grid;
    grid-template-columns: 1rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-ecolor);
    font-size: 0.75rem;
}

.about-city-rank {
    color: var(--text-ecolor);
    opacity: 0.7;
    font-variant-numeric: tabular-nums;
}

.about-city-name {
    overflow: hidden;
    color: var(--text-color);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.about-city-count {
    font-variant-numeric: tabular-nums;
}

.about-map-hot-empty {
    margin: 0.2rem 0 0;
    color: var(--text-ecolor);
    font-size: 0.75rem;
}

.about-map-note {
    margin: 0.65rem 0 0;
    color: var(--text-ecolor);
    font-size: 0.72rem;
    text-align: right;
}

.about-page-content > :first-child {
    margin-top: 0;
}

.about-page-content > :last-child {
    margin-bottom: 0;
}

@media (max-width: 860px) {
    .about-stat-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .about-stat-grid {
        border-top: 1px solid hsl(var(--thyuu--main-color) / 0.14);
        border-left: none;
    }

    .about-stat {
        padding: 0.8rem 0.6rem;
    }

    .about-two-col {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .about-container {
        gap: 0.8rem;
        padding: 1rem var(--fasgt-content-gutter) 2.5rem;
    }

    .about-card {
        padding: 1rem;
        border-radius: 1rem;
    }

    .about-days strong {
        font-size: 2.6rem;
    }

    .about-trend-chart {
        height: 240px;
    }

    .about-map-chart {
        height: 300px;
    }

    .about-map-hot {
        position: static;
        min-width: 0;
        margin: 0.6rem;
    }

    .about-map-note {
        text-align: left;
    }

    .about-ten-meta {
        flex-direction: column;
        gap: 0.25rem;
    }

    .about-ten-meta span:last-child {
        text-align: left;
    }
}
