/* ==========================================================================
   JustLzy — 轻量 Typecho 主题主样式
   结构与模板类名一一对应，无第三方 CSS 依赖。
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
    --lzy-accent: #3b82f6;
    --lzy-accent-strong: #2563eb;
    --lzy-accent-soft: rgba(59, 130, 246, 0.12);
    --lzy-bg: #f5f7fa;
    --lzy-surface: #ffffff;
    --lzy-surface-2: #eef1f6;
    --lzy-text: #161a20;
    --lzy-text-soft: #4d5866;
    --lzy-muted: #8592a3;
    --lzy-border: #e4e8ee;
    --lzy-border-strong: #d3d9e2;
    --lzy-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
    --lzy-shadow-lg: 0 22px 60px rgba(16, 24, 40, 0.12);
    --lzy-radius: 14px;
    --lzy-radius-sm: 10px;
    --lzy-radius-lg: 22px;
    --lzy-header-h: 68px;
    --lzy-max: 1200px;
    --lzy-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --lzy-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    --lzy-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html[data-theme="dark"] {
    --lzy-accent-strong: #60a5fa;
    --lzy-accent-soft: rgba(96, 165, 250, 0.16);
    --lzy-bg: #0f1115;
    --lzy-surface: #171a20;
    --lzy-surface-2: #1e232b;
    --lzy-text: #e8eaee;
    --lzy-text-soft: #aab3bf;
    --lzy-muted: #7c8794;
    --lzy-border: #262c35;
    --lzy-border-strong: #333a45;
    --lzy-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.28);
    --lzy-shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
}

/* JS 关闭时按系统偏好回退 */
@media (prefers-color-scheme: dark) {
    html[data-theme="auto"] {
        --lzy-accent-strong: #60a5fa;
        --lzy-accent-soft: rgba(96, 165, 250, 0.16);
        --lzy-bg: #0f1115;
        --lzy-surface: #171a20;
        --lzy-surface-2: #1e232b;
        --lzy-text: #e8eaee;
        --lzy-text-soft: #aab3bf;
        --lzy-muted: #7c8794;
        --lzy-border: #262c35;
        --lzy-border-strong: #333a45;
        --lzy-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.28);
        --lzy-shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
    }
}

/* ---------- 2. 基础重置 ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--lzy-header-h) + 20px);
}

body {
    margin: 0;
    font-family: var(--lzy-font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--lzy-text);
    background: var(--lzy-bg);
    background-image: radial-gradient(1200px 500px at 85% -10%, var(--lzy-accent-soft), transparent 60%);
    background-repeat: no-repeat;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.nav-open {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--lzy-text);
}

p, ul, ol, figure, blockquote, pre, table {
    margin: 0;
}

ul, ol {
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s var(--lzy-ease);
}

a:hover {
    color: var(--lzy-accent-strong);
}

img {
    max-width: 100%;
    height: auto;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

input, textarea, select {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--lzy-accent);
    outline-offset: 3px;
}

::selection {
    background: var(--lzy-accent);
    color: #fff;
}

.lzy-icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.14em;
    flex: none;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: -60px;
    left: 16px;
    z-index: 999;
    padding: 10px 16px;
    border-radius: 0 0 10px 10px;
    background: var(--lzy-accent);
    color: #fff;
    transition: top 0.2s var(--lzy-ease);
}

.skip-link:focus {
    top: 0;
    color: #fff;
}

.container {
    width: 100%;
    max-width: var(--lzy-max);
    margin: 0 auto;
    padding: 0 22px;
}

.sep {
    margin: 0 6px;
    color: var(--lzy-muted);
}

/* ---------- 3. 头部导航 ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: color-mix(in srgb, var(--lzy-surface) 86%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--lzy-border);
}

@supports not (background: color-mix(in srgb, red 50%, blue)) {
    .site-header {
        background: var(--lzy-surface);
    }
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    height: var(--lzy-header-h);
}

.brand {
    flex: none;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--lzy-accent), var(--lzy-accent-strong));
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    box-shadow: 0 6px 16px var(--lzy-accent-soft);
}

.brand-text {
    font-size: 19px;
}

.brand-logo {
    max-height: 32px;
    width: auto;
}

.site-nav {
    flex: 1 1 auto;
    min-width: 0;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
}

.nav-item > a {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 9px;
    font-size: 14.5px;
    color: var(--lzy-text-soft);
    white-space: nowrap;
}

.nav-item > a:hover {
    color: var(--lzy-text);
    background: var(--lzy-surface-2);
}

.nav-item.is-current > a {
    color: var(--lzy-accent-strong);
    background: var(--lzy-accent-soft);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search input {
    width: 168px;
    height: 36px;
    padding: 0 36px 0 12px;
    border: 1px solid var(--lzy-border);
    border-radius: 10px;
    background: var(--lzy-surface-2);
    color: var(--lzy-text);
    font-size: 13.5px;
    transition: width 0.25s var(--lzy-ease), border-color 0.2s var(--lzy-ease), background 0.2s var(--lzy-ease);
}

.header-search input::placeholder {
    color: var(--lzy-muted);
}

.header-search input:focus {
    width: 220px;
    border-color: var(--lzy-accent);
    background: var(--lzy-surface);
    outline: none;
}

.header-search button {
    position: absolute;
    right: 4px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: var(--lzy-muted);
}

.header-search button:hover {
    color: var(--lzy-accent-strong);
    background: var(--lzy-accent-soft);
}

.icon-button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid transparent;
    color: var(--lzy-text-soft);
    font-size: 19px;
}

.icon-button:hover {
    color: var(--lzy-text);
    background: var(--lzy-surface-2);
    border-color: var(--lzy-border);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    display: none;
    line-height: 0;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

html[data-theme="light"] .theme-toggle .icon-moon {
    display: block;
}

html[data-theme="auto"] .theme-toggle .icon-moon {
    display: block;
}

@media (prefers-color-scheme: dark) {
    html[data-theme="auto"] .theme-toggle .icon-moon {
        display: none;
    }
    html[data-theme="auto"] .theme-toggle .icon-sun {
        display: block;
    }
}

.nav-toggle {
    display: none;
}

.nav-toggle .icon-close {
    display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
    display: block;
}

.nav-toggle[aria-expanded="true"] .icon-menu {
    display: none;
}

/* 阅读进度 */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 70;
    width: 100%;
    height: 3px;
    background: transparent;
    pointer-events: none;
}

.reading-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--lzy-accent), var(--lzy-accent-strong));
    transition: width 0.1s linear;
}

/* ---------- 4. 首页 Hero ---------- */
.site-main {
    min-height: 60vh;
    padding-bottom: 48px;
}

.home-hero {
    position: relative;
    margin: 28px 0 32px;
    padding: 46px 48px;
    border: 1px solid var(--lzy-border);
    border-radius: var(--lzy-radius-lg);
    background:
        radial-gradient(600px 220px at 88% 0%, var(--lzy-accent-soft), transparent 70%),
        var(--lzy-surface);
    overflow: hidden;
}

.home-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -120px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: var(--lzy-accent-soft);
    filter: blur(20px);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero-kicker {
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--lzy-accent-strong);
}

.hero-title {
    font-size: clamp(30px, 4.4vw, 46px);
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.hero-desc {
    margin-top: 14px;
    font-size: 16.5px;
    color: var(--lzy-text-soft);
    max-width: 620px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 26px;
    font-size: 13.5px;
    color: var(--lzy-muted);
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-meta .lzy-icon {
    color: var(--lzy-accent-strong);
}

/* ---------- 5. 布局 ---------- */
.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 318px;
    gap: 30px;
    align-items: start;
}

.layout-sidebar-left {
    grid-template-columns: 318px minmax(0, 1fr);
}

.layout-sidebar-left .site-sidebar {
    order: -1;
}

.layout-sidebar-none {
    grid-template-columns: minmax(0, 1fr);
    max-width: 900px;
    margin: 0 auto;
}

.content-area {
    min-width: 0;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.section-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 19px;
    letter-spacing: -0.01em;
}

.section-title em {
    font-style: normal;
    font-size: 13px;
    font-weight: 600;
    color: var(--lzy-accent-strong);
    background: var(--lzy-accent-soft);
    padding: 2px 8px;
    border-radius: 999px;
}

.layout-switch {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--lzy-border);
    border-radius: 10px;
    background: var(--lzy-surface);
}

.layout-btn {
    display: grid;
    place-items: center;
    width: 30px;
    height: 28px;
    border-radius: 7px;
    color: var(--lzy-muted);
    font-size: 15px;
}

.layout-btn:hover {
    color: var(--lzy-text);
}

.layout-btn.is-active {
    color: var(--lzy-accent-strong);
    background: var(--lzy-accent-soft);
}

/* ---------- 6. 文章卡片 ---------- */
.post-list {
    display: grid;
    gap: 22px;
}

.post-list-grid {
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}

.post-list-list {
    grid-template-columns: minmax(0, 1fr);
}

.post-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--lzy-surface);
    border: 1px solid var(--lzy-border);
    border-radius: var(--lzy-radius);
    overflow: hidden;
    transition: transform 0.22s var(--lzy-ease), box-shadow 0.22s var(--lzy-ease), border-color 0.22s var(--lzy-ease);
}

.post-card:hover {
    transform: translateY(-3px);
    border-color: var(--lzy-border-strong);
    box-shadow: var(--lzy-shadow-lg);
}

.card-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--lzy-surface-2);
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--lzy-ease);
}

.post-card:hover .card-thumb img {
    transform: scale(1.045);
}

.card-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(140px 90px at 20% 10%, rgba(255, 255, 255, 0.35), transparent),
        linear-gradient(135deg, var(--lzy-accent), var(--lzy-accent-strong));
    color: rgba(255, 255, 255, 0.92);
    font-size: 46px;
    font-weight: 800;
}

.card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 8px;
    padding: 18px 19px 16px;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12.5px;
    color: var(--lzy-muted);
}

.card-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 70%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--lzy-accent-strong);
    font-weight: 600;
}

.card-category a {
    color: inherit;
}

.card-date {
    flex: none;
    font-variant-numeric: tabular-nums;
}

.card-title {
    font-size: 18px;
    line-height: 1.45;
    letter-spacing: -0.01em;
}

.card-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-subtitle {
    font-size: 13.5px;
    color: var(--lzy-text-soft);
}

.card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.7;
    color: var(--lzy-text-soft);
}

.card-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed var(--lzy-border);
    font-size: 12.5px;
    color: var(--lzy-muted);
}

.card-footer span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.card-more {
    margin-left: auto;
    color: var(--lzy-accent-strong);
    font-weight: 600;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s var(--lzy-ease), transform 0.2s var(--lzy-ease);
}

.post-card:hover .card-more {
    opacity: 1;
    transform: translateX(0);
}

/* 列表模式：横向卡片 */
.post-list-list .post-card {
    flex-direction: row;
}

.post-list-list .card-thumb {
    flex: 0 0 264px;
    aspect-ratio: auto;
    min-height: 188px;
}

.post-list-list .card-body {
    padding: 20px 24px;
}

.post-list-list .card-title {
    font-size: 21px;
}

.post-list-list .card-excerpt {
    -webkit-line-clamp: 2;
}

/* 空状态 */
.empty-state {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 64px 24px;
    text-align: center;
    background: var(--lzy-surface);
    border: 1px dashed var(--lzy-border-strong);
    border-radius: var(--lzy-radius);
    color: var(--lzy-muted);
}

.empty-state .lzy-icon {
    font-size: 34px;
    color: var(--lzy-accent);
}

.empty-state h3 {
    font-size: 17px;
    color: var(--lzy-text);
}

.empty-state p {
    font-size: 13.5px;
}

/* ---------- 7. 分页 ---------- */
.page-navigator {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 34px 0 8px;
}

.page-navigator li {
    display: inline-flex;
}

.page-navigator a,
.page-navigator span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 38px;
    height: 38px;
    padding: 0 13px;
    border: 1px solid var(--lzy-border);
    border-radius: 10px;
    background: var(--lzy-surface);
    font-size: 13.5px;
    color: var(--lzy-text-soft);
    justify-content: center;
}

.page-navigator a:hover {
    border-color: var(--lzy-accent);
    color: var(--lzy-accent-strong);
}

.page-navigator .current {
    border-color: var(--lzy-accent);
    background: var(--lzy-accent);
    color: #fff;
}

.page-navigator .prev a,
.page-navigator .next a {
    color: var(--lzy-accent-strong);
}

/* ---------- 8. 侧边栏 ---------- */
.site-sidebar {
    min-width: 0;
}

.sidebar-inner.is-sticky {
    position: sticky;
    top: calc(var(--lzy-header-h) + 20px);
}

.widget {
    margin-bottom: 18px;
    padding: 20px;
    background: var(--lzy-surface);
    border: 1px solid var(--lzy-border);
    border-radius: var(--lzy-radius);
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--lzy-text-soft);
}

.widget-title .lzy-icon {
    color: var(--lzy-accent);
    font-size: 15px;
}

/* 作者卡 */
.profile-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-avatar {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--lzy-accent), var(--lzy-accent-strong));
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

.profile-name {
    font-size: 16px;
}

.profile-desc {
    margin-top: 2px;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--lzy-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--lzy-border);
    text-align: center;
}

.profile-stats em {
    display: block;
    font-style: normal;
    font-size: 17px;
    font-weight: 700;
    color: var(--lzy-text);
    font-variant-numeric: tabular-nums;
}

.profile-stats span {
    font-size: 12px;
    color: var(--lzy-muted);
}

/* 搜索 */
.sidebar-search {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--lzy-border);
    border-radius: 10px;
    background: var(--lzy-surface-2);
    font-size: 13.5px;
}

.sidebar-search input:focus {
    border-color: var(--lzy-accent);
    background: var(--lzy-surface);
    outline: none;
}

.sidebar-search button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 10px;
    background: var(--lzy-accent);
    color: #fff;
    font-size: 16px;
}

.sidebar-search button:hover {
    background: var(--lzy-accent-strong);
}

/* 分类 / 标签 / 最新 */
.category-list li + li {
    margin-top: 2px;
}

.category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 9px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--lzy-text-soft);
}

.category-list a:hover {
    background: var(--lzy-surface-2);
    color: var(--lzy-accent-strong);
}

.category-list em {
    font-style: normal;
    font-size: 11.5px;
    color: var(--lzy-muted);
    background: var(--lzy-surface-2);
    padding: 1px 7px;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--lzy-border);
    background: var(--lzy-surface-2);
    font-size: 12.5px;
    color: var(--lzy-text-soft);
}

.tag-link:hover {
    border-color: var(--lzy-accent);
    color: var(--lzy-accent-strong);
    background: var(--lzy-accent-soft);
}

.tag-link em {
    font-style: normal;
    font-size: 11px;
    color: var(--lzy-muted);
}

.recent-list li + li {
    border-top: 1px dashed var(--lzy-border);
}

.recent-list a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    font-size: 13.5px;
    color: var(--lzy-text-soft);
}

.recent-list a:hover {
    color: var(--lzy-accent-strong);
}

.recent-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-list time {
    flex: none;
    font-size: 11.5px;
    color: var(--lzy-muted);
    font-variant-numeric: tabular-nums;
}

/* 目录 */
.toc-list {
    counter-reset: toc;
    font-size: 13.5px;
}

.toc-list li {
    margin: 2px 0;
}

.toc-list a {
    display: block;
    padding: 5px 9px;
    border-left: 2px solid var(--lzy-border);
    color: var(--lzy-text-soft);
    line-height: 1.55;
}

.toc-list a:hover,
.toc-list a.is-active {
    border-left-color: var(--lzy-accent);
    background: var(--lzy-accent-soft);
    color: var(--lzy-accent-strong);
}

.toc-list .toc-level-3 a {
    padding-left: 22px;
    font-size: 12.5px;
}

.toc-empty {
    font-size: 12.5px;
    color: var(--lzy-muted);
}

.widget-html {
    font-size: 13.5px;
    color: var(--lzy-text-soft);
}

/* ---------- 9. 面包屑 ---------- */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 22px 0 16px;
    font-size: 12.5px;
    color: var(--lzy-muted);
}

.breadcrumb a,
.breadcrumb span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb a:hover {
    color: var(--lzy-accent-strong);
}

.breadcrumb .lzy-icon {
    font-size: 12px;
    color: var(--lzy-border-strong);
}

.breadcrumb a .lzy-icon {
    color: inherit;
}

/* ---------- 10. 文章详情 ---------- */
.post-single {
    padding: 38px 42px 34px;
    background: var(--lzy-surface);
    border: 1px solid var(--lzy-border);
    border-radius: var(--lzy-radius-lg);
}

.post-header {
    margin-bottom: 26px;
}

.post-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--lzy-accent-soft);
    color: var(--lzy-accent-strong);
    font-size: 12.5px;
    font-weight: 600;
}

.post-title {
    font-size: clamp(26px, 3.4vw, 36px);
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.post-subtitle {
    margin-top: 10px;
    font-size: 16px;
    color: var(--lzy-text-soft);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed var(--lzy-border);
    font-size: 13px;
    color: var(--lzy-muted);
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meta-item a {
    color: inherit;
}

.meta-item a:hover {
    color: var(--lzy-accent-strong);
}

.post-cover {
    margin: 0 0 28px;
    overflow: hidden;
    border-radius: 16px;
    background: var(--lzy-surface-2);
}

.post-cover img {
    display: block;
    width: 100%;
    max-height: 460px;
    object-fit: cover;
}

/* 正文排版 */
.post-content {
    font-size: 16.5px;
    line-height: 1.9;
    color: var(--lzy-text);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.post-content > *:first-child {
    margin-top: 0;
}

.post-content > *:last-child {
    margin-bottom: 0;
}

.post-content p {
    margin: 1.15em 0;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin: 1.9em 0 0.7em;
    scroll-margin-top: calc(var(--lzy-header-h) + 20px);
}

.post-content h2 {
    padding-left: 13px;
    border-left: 4px solid var(--lzy-accent);
    font-size: 24px;
}

.post-content h3 {
    font-size: 20px;
}

.post-content h4 {
    font-size: 17px;
}

.post-content a {
    color: var(--lzy-accent-strong);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.post-content a:hover {
    text-decoration-thickness: 2px;
}

.post-content ul,
.post-content ol {
    margin: 1.1em 0;
    padding-left: 1.5em;
    list-style: revert;
}

.post-content li {
    margin: 0.35em 0;
}

.post-content blockquote {
    margin: 1.4em 0;
    padding: 14px 20px;
    border-left: 4px solid var(--lzy-accent);
    border-radius: 0 12px 12px 0;
    background: var(--lzy-surface-2);
    color: var(--lzy-text-soft);
}

.post-content blockquote p {
    margin: 0.4em 0;
}

.post-content img {
    display: block;
    max-width: 100%;
    margin: 1.6em auto;
    border-radius: 12px;
}

.post-content figure {
    margin: 1.6em 0;
}

.post-content figcaption {
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--lzy-muted);
    text-align: center;
}

.post-content hr {
    height: 1px;
    margin: 2.2em 0;
    border: 0;
    background: var(--lzy-border);
}

.post-content code {
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--lzy-surface-2);
    color: var(--lzy-accent-strong);
    font-family: var(--lzy-mono);
    font-size: 0.88em;
}

.post-content pre {
    margin: 1.5em 0;
    padding: 18px 20px;
    border-radius: 14px;
    background: #0f172a;
    color: #e2e8f0;
    overflow-x: auto;
    font-size: 13.5px;
    line-height: 1.75;
    -webkit-overflow-scrolling: touch;
}

.post-content pre code {
    padding: 0;
    background: none;
    color: inherit;
    font-size: inherit;
}

.post-content table {
    width: 100%;
    margin: 1.5em 0;
    border-collapse: collapse;
    font-size: 14.5px;
}

.post-content th,
.post-content td {
    padding: 10px 12px;
    border: 1px solid var(--lzy-border);
    text-align: left;
}

.post-content th {
    background: var(--lzy-surface-2);
    font-weight: 600;
}

.post-content iframe {
    max-width: 100%;
    border-radius: 12px;
}

/* 正文内标题锚点（JS 注入） */
.heading-anchor {
    margin-left: 6px;
    opacity: 0;
    color: var(--lzy-muted) !important;
    text-decoration: none !important;
    font-size: 0.65em;
    transition: opacity 0.2s var(--lzy-ease);
}

.post-content h2:hover .heading-anchor,
.post-content h3:hover .heading-anchor {
    opacity: 1;
}

/* 文章页脚 */
.post-footer {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid var(--lzy-border);
}

.post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 13px;
    color: var(--lzy-muted);
}

.post-tags a {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--lzy-surface-2);
    color: var(--lzy-text-soft);
    font-size: 12.5px;
}

.post-tags a:hover {
    background: var(--lzy-accent-soft);
    color: var(--lzy-accent-strong);
}

.post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 15px;
    border: 1px solid var(--lzy-border);
    border-radius: 999px;
    background: var(--lzy-surface);
    color: var(--lzy-text-soft);
    font-size: 13.5px;
    cursor: pointer;
    transition: all 0.18s var(--lzy-ease);
}

.action-btn:hover {
    border-color: var(--lzy-accent);
    color: var(--lzy-accent-strong);
    background: var(--lzy-accent-soft);
}

.like-btn.is-liked {
    border-color: var(--lzy-accent);
    background: var(--lzy-accent);
    color: #fff;
}

.like-btn.is-liked .lzy-icon {
    fill: currentColor;
}

.like-count {
    font-style: normal;
    font-variant-numeric: tabular-nums;
}

.reward-panel {
    margin-bottom: 22px;
    padding: 20px;
    border: 1px dashed var(--lzy-border-strong);
    border-radius: 14px;
    text-align: center;
    background: var(--lzy-surface-2);
}

.reward-panel p {
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--lzy-text-soft);
}

.reward-panel img {
    width: 200px;
    max-width: 100%;
    border-radius: 10px;
    background: #fff;
}

.post-copyright {
    margin-bottom: 22px;
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--lzy-surface-2);
    font-size: 12.5px;
    line-height: 1.8;
    color: var(--lzy-text-soft);
    word-break: break-all;
}

.post-copyright strong {
    color: var(--lzy-text);
}

.post-copyright a {
    color: var(--lzy-accent-strong);
}

.post-pagination {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 26px;
}

.post-pagination > div {
    min-width: 0;
    padding: 13px 16px;
    border: 1px solid var(--lzy-border);
    border-radius: 12px;
    transition: border-color 0.18s var(--lzy-ease), background 0.18s var(--lzy-ease);
}

.post-pagination > div:hover {
    border-color: var(--lzy-accent);
    background: var(--lzy-accent-soft);
}

.pagination-label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
    font-size: 11.5px;
    letter-spacing: 0.05em;
    color: var(--lzy-muted);
}

.pagination-next .pagination-label {
    justify-content: flex-end;
}

.pagination-next {
    text-align: right;
}

.post-pagination a {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 600;
    color: var(--lzy-text);
}

.pagination-empty {
    font-size: 13px;
    color: var(--lzy-muted);
}

.related-posts {
    padding-top: 22px;
    border-top: 1px dashed var(--lzy-border);
}

.related-posts .section-title {
    margin-bottom: 12px;
    font-size: 16px;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 20px;
}

.related-list a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    font-size: 13.5px;
    color: var(--lzy-text-soft);
    border-bottom: 1px dashed var(--lzy-border);
}

.related-list a:hover {
    color: var(--lzy-accent-strong);
}

.related-title {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-list time {
    flex: none;
    font-size: 11.5px;
    color: var(--lzy-muted);
}

/* 独立页面 */
.page-single .post-content {
    margin-top: 8px;
}

.page-intro {
    margin-bottom: 26px;
    padding: 20px 24px;
    border: 1px solid var(--lzy-border);
    border-radius: var(--lzy-radius);
    background: var(--lzy-surface);
    font-size: 14.5px;
    color: var(--lzy-text-soft);
}

/* ---------- 11. 评论区 ---------- */
.comments {
    margin-top: 26px;
    padding: 30px 34px 34px;
    background: var(--lzy-surface);
    border: 1px solid var(--lzy-border);
    border-radius: var(--lzy-radius-lg);
}

.comments-head {
    margin-bottom: 8px;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-body {
    display: flex;
    gap: 12px;
    padding: 18px 0;
    border-bottom: 1px solid var(--lzy-border);
}

.comment-body:last-child {
    border-bottom: 0;
}

.comment-avatar {
    flex: none;
}

.comment-avatar img {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--lzy-surface-2);
}

.comment-main {
    flex: 1 1 auto;
    min-width: 0;
}

.comment-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 5px;
}

.comment-author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--lzy-text);
}

.comment-author a {
    color: inherit;
}

.comment-badge {
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--lzy-accent-soft);
    color: var(--lzy-accent-strong);
    font-size: 11px;
    font-weight: 600;
}

.comment-time {
    font-size: 11.5px;
    color: var(--lzy-muted);
    font-variant-numeric: tabular-nums;
}

.comment-content {
    font-size: 14.5px;
    line-height: 1.8;
    color: var(--lzy-text-soft);
    word-break: break-word;
}

.comment-content p {
    margin: 0.5em 0;
}

.comment-content p:first-child {
    margin-top: 0;
}

.comment-content a {
    color: var(--lzy-accent-strong);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.comment-actions {
    margin-top: 6px;
}

.comment-reply-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--lzy-muted);
}

.comment-reply-btn:hover {
    color: var(--lzy-accent-strong);
}

.comment-children {
    margin: 14px 0 0;
    padding: 0 0 0 16px;
    list-style: none;
    border-left: 2px solid var(--lzy-border);
}

.comment-children .comment-body {
    padding: 12px 0;
}

.comment-children .comment-avatar img {
    width: 36px;
    height: 36px;
}

.comment-pagination {
    margin: 20px 0 4px;
}

.comment-empty,
.comment-closed {
    padding: 16px 0 6px;
    font-size: 13.5px;
    color: var(--lzy-muted);
}

/* 评论表单 */
.comment-respond {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--lzy-border);
}

.respond-title {
    margin-bottom: 14px;
    font-size: 17px;
}

.reply-target {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--lzy-accent-soft);
    font-size: 13px;
    color: var(--lzy-text-soft);
}

.reply-target strong {
    color: var(--lzy-accent-strong);
}

.reply-cancel {
    margin-left: auto;
    font-size: 12.5px;
    color: var(--lzy-accent-strong);
    text-decoration: underline;
}

.comment-logged {
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--lzy-muted);
}

.comment-logged a {
    color: var(--lzy-accent-strong);
}

.comment-form {
    display: block;
}

.comment-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.comment-field {
    margin: 0;
}

.comment-field label {
    display: block;
    margin-bottom: 5px;
    font-size: 12.5px;
    color: var(--lzy-text-soft);
}

.comment-field label em {
    font-style: normal;
    color: #ef4444;
}

.comment-field input,
.comment-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--lzy-border);
    border-radius: 10px;
    background: var(--lzy-surface-2);
    color: var(--lzy-text);
    font-size: 14px;
    transition: border-color 0.18s var(--lzy-ease), background 0.18s var(--lzy-ease);
}

.comment-field input:focus,
.comment-field textarea:focus {
    border-color: var(--lzy-accent);
    background: var(--lzy-surface);
    outline: none;
}

.comment-field textarea {
    display: block;
    min-height: 132px;
    resize: vertical;
    line-height: 1.75;
}

.comment-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 12px;
}

.emoji-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.emoji-btn {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 17px;
    line-height: 1;
}

.emoji-btn:hover {
    background: var(--lzy-surface-2);
}

.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 40px;
    padding: 0 20px;
    border-radius: 10px;
    background: var(--lzy-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.18s var(--lzy-ease), transform 0.18s var(--lzy-ease);
}

.button-primary:hover {
    background: var(--lzy-accent-strong);
    color: #fff;
}

.button-primary:disabled {
    opacity: 0.6;
    cursor: wait;
}

.comment-submit {
    flex: none;
}

.comment-status {
    min-height: 20px;
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--lzy-muted);
}

.comment-status.is-error {
    color: #ef4444;
}

.comment-status.is-success {
    color: #10b981;
}

/* ---------- 12. 归档页 ---------- */
.archive-header {
    margin: 30px 0 26px;
}

.archive-kicker {
    margin-bottom: 8px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.24em;
    color: var(--lzy-accent-strong);
}

.archive-title {
    font-size: clamp(26px, 3.6vw, 34px);
    letter-spacing: -0.02em;
}

.archive-desc {
    margin-top: 8px;
    font-size: 14.5px;
    color: var(--lzy-text-soft);
}

.archive-count {
    margin-top: 8px;
    font-size: 13px;
    color: var(--lzy-muted);
}

.archive-timeline {
    display: grid;
    gap: 18px;
}

.timeline-year {
    padding: 22px 26px;
    background: var(--lzy-surface);
    border: 1px solid var(--lzy-border);
    border-radius: var(--lzy-radius);
}

.timeline-heading {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
}

.timeline-year-num {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--lzy-accent-strong);
    font-variant-numeric: tabular-nums;
}

.timeline-year-count {
    font-size: 12px;
    color: var(--lzy-muted);
}

.timeline-list li {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 7px 0;
    border-bottom: 1px dashed var(--lzy-border);
    font-size: 14px;
}

.timeline-list li:last-child {
    border-bottom: 0;
}

.timeline-list time {
    flex: none;
    width: 46px;
    font-size: 12px;
    color: var(--lzy-muted);
    font-variant-numeric: tabular-nums;
}

.timeline-list a {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--lzy-text-soft);
}

.timeline-list a:hover {
    color: var(--lzy-accent-strong);
}

.timeline-comments {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: none;
    font-size: 11.5px;
    color: var(--lzy-muted);
}

/* ---------- 13. 友链页 ---------- */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px 18px;
    background: var(--lzy-surface);
    border: 1px solid var(--lzy-border);
    border-radius: var(--lzy-radius);
    transition: transform 0.2s var(--lzy-ease), box-shadow 0.2s var(--lzy-ease), border-color 0.2s var(--lzy-ease);
}

.link-card:hover {
    transform: translateY(-2px);
    border-color: var(--lzy-accent);
    box-shadow: var(--lzy-shadow);
}

.link-avatar {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: 12px;
    background: var(--lzy-accent-soft);
    color: var(--lzy-accent-strong);
    font-size: 19px;
    font-weight: 700;
    overflow: hidden;
}

.link-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.link-main {
    min-width: 0;
    flex: 1 1 auto;
}

.link-name {
    display: block;
    font-size: 14.5px;
    color: var(--lzy-text);
}

.link-desc {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--lzy-muted);
}

.link-arrow {
    flex: none;
    color: var(--lzy-border-strong);
    font-size: 15px;
}

.link-card:hover .link-arrow {
    color: var(--lzy-accent);
}

/* ---------- 14. 专题页 ---------- */
.topic-list {
    display: grid;
    gap: 26px;
}

.topic-block {
    padding: 26px 28px;
    background: var(--lzy-surface);
    border: 1px solid var(--lzy-border);
    border-radius: var(--lzy-radius-lg);
}

.topic-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.topic-name {
    font-size: 21px;
}

.topic-desc {
    margin-top: 5px;
    font-size: 13.5px;
    color: var(--lzy-muted);
}

.topic-count {
    flex: none;
    padding: 3px 11px;
    border-radius: 999px;
    background: var(--lzy-accent-soft);
    color: var(--lzy-accent-strong);
    font-size: 12px;
    font-weight: 600;
}

.topic-posts {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.topic-posts .post-card {
    background: var(--lzy-surface-2);
    box-shadow: none;
}

.topic-posts .card-title {
    font-size: 16px;
}

.topic-empty {
    font-size: 13.5px;
    color: var(--lzy-muted);
}

/* ---------- 15. 404 ---------- */
.error-page {
    max-width: 720px;
    margin: 56px auto;
    padding: 48px 32px;
    text-align: center;
    background: var(--lzy-surface);
    border: 1px solid var(--lzy-border);
    border-radius: var(--lzy-radius-lg);
}

.error-code {
    font-size: clamp(80px, 16vw, 132px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.06em;
    background: linear-gradient(135deg, var(--lzy-accent), var(--lzy-accent-strong));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.error-title {
    margin-top: 8px;
    font-size: 24px;
}

.error-desc {
    margin-top: 10px;
    font-size: 14.5px;
    color: var(--lzy-text-soft);
}

.error-search {
    display: flex;
    gap: 8px;
    max-width: 430px;
    margin: 26px auto 0;
}

.error-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--lzy-border);
    border-radius: 10px;
    background: var(--lzy-surface-2);
    font-size: 14px;
}

.error-search input:focus {
    border-color: var(--lzy-accent);
    background: var(--lzy-surface);
    outline: none;
}

.error-search button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 18px;
    flex: none;
    border-radius: 10px;
    background: var(--lzy-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.error-search button:hover {
    background: var(--lzy-accent-strong);
}

.error-links {
    margin-top: 18px;
}

.error-recent {
    max-width: 460px;
    margin: 34px auto 0;
    padding-top: 22px;
    border-top: 1px dashed var(--lzy-border);
    text-align: left;
}

.error-recent .section-title {
    margin-bottom: 8px;
    font-size: 16px;
}

/* ---------- 16. 页脚 ---------- */
.site-footer {
    margin-top: 56px;
    padding: 44px 0 20px;
    background: var(--lzy-surface);
    border-top: 1px solid var(--lzy-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 32px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 17px;
    font-weight: 800;
}

.footer-brand .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 15px;
}

.footer-desc {
    margin-top: 10px;
    max-width: 340px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--lzy-muted);
}

.social-list {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.social-list a {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid var(--lzy-border);
    color: var(--lzy-text-soft);
    font-size: 16px;
}

.social-list a:hover {
    border-color: var(--lzy-accent);
    background: var(--lzy-accent-soft);
    color: var(--lzy-accent-strong);
}

.footer-title {
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--lzy-muted);
}

.footer-list li {
    margin: 7px 0;
    font-size: 13.5px;
}

.footer-list a {
    color: var(--lzy-text-soft);
}

.footer-list a:hover {
    color: var(--lzy-accent-strong);
}

.footer-stats li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 150px;
    color: var(--lzy-muted);
    font-size: 13px;
}

.footer-stats em {
    font-style: normal;
    font-weight: 700;
    color: var(--lzy-text);
    font-variant-numeric: tabular-nums;
}

.footer-stats a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--lzy-border);
    font-size: 12.5px;
    color: var(--lzy-muted);
}

.footer-bottom a {
    color: var(--lzy-text-soft);
}

.footer-bottom a:hover {
    color: var(--lzy-accent-strong);
}

.footer-sep {
    margin: 0 4px;
    color: var(--lzy-border-strong);
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 55;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--lzy-border);
    background: var(--lzy-surface);
    color: var(--lzy-text-soft);
    box-shadow: var(--lzy-shadow);
    font-size: 17px;
    transition: opacity 0.2s var(--lzy-ease), transform 0.2s var(--lzy-ease);
}

.back-to-top:hover {
    color: var(--lzy-accent-strong);
    border-color: var(--lzy-accent);
    transform: translateY(-2px);
}

.back-to-top[hidden] {
    display: none;
}

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1080px) {
    .layout,
    .layout-sidebar-left {
        grid-template-columns: minmax(0, 1fr) 290px;
        gap: 24px;
    }

    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }

    .footer-col.footer-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    :root {
        --lzy-header-h: 62px;
    }

    .header-inner {
        gap: 12px;
    }

    .site-nav {
        position: fixed;
        top: var(--lzy-header-h);
        left: 0;
        right: 0;
        z-index: 59;
        display: none;
        max-height: calc(100vh - var(--lzy-header-h));
        overflow-y: auto;
        padding: 12px 22px 20px;
        background: var(--lzy-surface);
        border-bottom: 1px solid var(--lzy-border);
        box-shadow: var(--lzy-shadow-lg);
    }

    .site-nav.is-open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }

    .nav-item > a {
        display: block;
        padding: 11px 12px;
        font-size: 15px;
    }

    .header-search {
        display: none;
    }

    .nav-toggle {
        display: grid;
    }

    .layout,
    .layout-sidebar-left,
    .layout-sidebar-right {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .layout-sidebar-left .site-sidebar {
        order: 0;
    }

    .sidebar-inner.is-sticky {
        position: static;
    }

    .site-sidebar {
        order: 2;
    }

    .post-list-list .post-card {
        flex-direction: column;
    }

    .post-list-list .card-thumb {
        flex: none;
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    .post-single {
        padding: 28px 26px;
    }

    .comments {
        padding: 24px 24px 28px;
    }

    .comment-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .home-hero {
        margin: 18px 0 24px;
        padding: 30px 22px;
        border-radius: 18px;
    }

    .hero-meta {
        gap: 8px 16px;
    }

    .post-list-grid,
    .topic-posts {
        grid-template-columns: minmax(0, 1fr);
    }

    .post-single {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .post-title {
        font-size: 25px;
    }

    .post-meta {
        gap: 6px 12px;
        font-size: 12px;
    }

    .post-pagination {
        grid-template-columns: minmax(0, 1fr);
    }

    .post-pagination .pagination-next {
        text-align: left;
    }

    .pagination-next .pagination-label {
        justify-content: flex-start;
    }

    .related-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .comments {
        padding: 20px 16px 24px;
        border-radius: 18px;
    }

    .comment-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .comment-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .comment-submit {
        width: 100%;
        justify-content: center;
    }

    .comment-body {
        gap: 10px;
    }

    .comment-avatar img {
        width: 36px;
        height: 36px;
    }

    .comment-children {
        padding-left: 10px;
    }

    .comment-children .comment-avatar img {
        width: 30px;
        height: 30px;
    }

    .timeline-year {
        padding: 18px 16px;
    }

    .timeline-list li {
        gap: 10px;
    }

    .topic-block {
        padding: 20px 16px;
    }

    .topic-head {
        flex-direction: column;
        gap: 8px;
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .error-page {
        margin: 24px auto;
        padding: 32px 18px;
    }
}

/* ---------- 18. 可访问性与打印 ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

@media print {
    .site-header,
    .site-sidebar,
    .site-footer,
    .post-actions,
    .comment-respond,
    .back-to-top,
    .reading-progress,
    .breadcrumb,
    .post-pagination,
    .related-posts {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .post-single,
    .comments {
        border: 0;
        padding: 0;
    }
}

/* ---------- 19. 交互补充 ---------- */
.lzy-toast {
    position: fixed;
    left: 50%;
    bottom: 34px;
    z-index: 200;
    max-width: calc(100vw - 40px);
    padding: 11px 18px;
    border-radius: 12px;
    background: rgba(22, 26, 32, 0.92);
    color: #fff;
    font-size: 13.5px;
    line-height: 1.5;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.28);
    opacity: 0;
    transform: translate(-50%, 10px);
    transition: opacity 0.24s var(--lzy-ease), transform 0.24s var(--lzy-ease);
    pointer-events: none;
}

.lzy-toast.is-show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.post-content pre {
    position: relative;
}

.code-copy {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 9px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 11.5px;
    line-height: 1.6;
    opacity: 0;
    transition: opacity 0.18s var(--lzy-ease), background 0.18s var(--lzy-ease);
}

.post-content pre:hover .code-copy,
.code-copy:focus-visible {
    opacity: 1;
}

.code-copy:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.comment-body.is-new {
    animation: lzy-comment-flash 2.4s var(--lzy-ease);
}

@keyframes lzy-comment-flash {
    0% {
        background: var(--lzy-accent-soft);
    }
    100% {
        background: transparent;
    }
}

/* 带 display 声明的容器需显式处理 hidden，避免被自身 display 覆盖 */
.reply-target[hidden],
.reward-panel[hidden],
.comment-empty[hidden] {
    display: none !important;
}