/* =========================================================================
   Sleek · 说说 — QQ空间说说风格的单列主题
   暖米色纸张、暖金强调色、只保留正文与评论
   ========================================================================= */

/* ---------------------------------------------------------------- tokens */
:root {
    --accent: #c58b2f;
    --accent-strong: #a66f1b;
    --accent-soft: #f3e6cc;

    --bg: #f4eee2;
    --card: #fffdf8;
    --card-2: #f8f1e4;
    --text: #3b352b;
    --text-2: #62594b;
    --muted: #9c9281;
    --line: #e7ddcb;
    --line-strong: #d9c9ad;
    --header-bg: rgba(251, 247, 238, 0.97);

    --radius: 4px;
    --radius-sm: 3px;
    --shadow-sm: none;
    --shadow: none;
    --shadow-lg: 0 12px 30px -22px rgba(80, 60, 30, 0.22);

    --header-h: 58px;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html.dark {
    --bg: #1b1711;
    --card: #241f18;
    --card-2: #2c261d;
    --text: #efe7d8;
    --text-2: #c8bda9;
    --muted: #8f8371;
    --line: #3a3226;
    --line-strong: #4b4030;
    --header-bg: rgba(27, 23, 17, 0.97);

    --shadow-sm: none;
    --shadow: none;
    --shadow-lg: 0 12px 30px -22px rgba(0, 0, 0, 0.55);
}

/* ---------------------------------------------------------------- base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 78px;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC",
        "OPPO Sans", "HarmonyOS Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 14.5px;
    line-height: 1.75;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.nav-open {
    overflow: hidden;
}

::selection {
    background: var(--accent);
    color: #fff;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

img {
    height: auto;
}

[hidden] {
    display: none !important;
}

button {
    font: inherit;
    color: inherit;
}

button,
[role="button"] {
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 6px;
}

.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 1em;
    height: 1em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dot {
    margin: 0 0.35em;
    opacity: 0.5;
}

/* ---------------------------------------------------------------- background */
.bg-decor {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    display: block;
    filter: blur(90px);
    opacity: 0.42;
    background: radial-gradient(circle at 32% 30%, var(--accent), #a78bfa 72%);
    border-radius: 44% 56% 62% 38% / 48% 42% 58% 52%;
    animation: blobMorph 26s ease-in-out infinite;
    will-change: border-radius, transform;
}

.blob-a {
    width: min(480px, 52vw);
    height: min(480px, 52vw);
    left: -170px;
    top: -160px;
}

.blob-b {
    width: min(400px, 42vw);
    height: min(400px, 42vw);
    right: -160px;
    top: 32%;
    opacity: 0.3;
    animation-delay: -9s;
}

html.dark .blob {
    opacity: 0.16;
}

html.dark .blob-b {
    opacity: 0.12;
}

@keyframes blobMorph {
    0%,
    100% {
        border-radius: 44% 56% 62% 38% / 48% 42% 58% 52%;
        transform: translate3d(0, 0, 0) rotate(0.01deg);
    }
    33% {
        border-radius: 66% 34% 44% 56% / 36% 62% 38% 64%;
        transform: translate3d(0, 14px, 0) rotate(0.01deg);
    }
    66% {
        border-radius: 38% 62% 58% 42% / 62% 44% 56% 38%;
        transform: translate3d(0, -10px, 0) rotate(0.01deg);
    }
}

/* ---------------------------------------------------------------- layout */
.page-shell {
    position: relative;
    z-index: 1;
    width: min(100% - 36px, 880px);
    margin: 0 auto;
    padding: 26px 0 34px;
    transition: transform 0.32s var(--ease);
}

.site-main {
    padding-top: 18px;
    min-height: 40vh;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ---------------------------------------------------------------- header */
.header-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px 14px 18px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: none;
}

.brand-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--card-2);
    box-shadow: 0 0 0 3px var(--card), 0 0 0 4px var(--accent-soft);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}

.brand-name {
    font-size: 16.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 190px;
}

.brand-sub {
    margin-top: 2px;
    font-size: 11.5px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-2);
    white-space: nowrap;
}

.nav-link .icon {
    width: 15px;
    height: 15px;
    opacity: 0.72;
}

.nav-link:hover {
    background: var(--card-2);
    color: var(--accent-strong);
}

.nav-link:hover .icon {
    opacity: 1;
}

.nav-link.current {
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-weight: 600;
}

.nav-link.current .icon {
    opacity: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-left: 10px;
    flex: none;
}

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card);
    color: var(--text-2);
    transition: all 0.2s var(--ease);
}

.icon-btn .icon {
    width: 16px;
    height: 16px;
}

.icon-btn:hover {
    color: var(--accent-strong);
    border-color: var(--accent);
    background: var(--accent-soft);
}

.theme-toggle .icon-sun {
    display: none;
}

html.dark .theme-toggle .icon-sun {
    display: block;
}

html.dark .theme-toggle .icon-moon {
    display: none;
}

.login-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 13px;
    border-radius: 10px;
    background: var(--card-2);
    border: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--text-2);
    max-width: 130px;
}

.login-link .icon {
    width: 15px;
    height: 15px;
}

.login-link span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.login-link:hover {
    color: var(--accent-strong);
    border-color: var(--accent);
}

.menu-toggle {
    display: none;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card);
    color: var(--text-2);
}

.menu-toggle .icon {
    width: 18px;
    height: 18px;
}

/* ---------------------------------------------------------------- drawer */
.nav-drawer,
.drawer-mask {
    display: none;
}

/* ---------------------------------------------------------------- category bar */
.cat-bar {
    display: flex;
    gap: 8px;
    padding: 16px 4px 2px;
    overflow-x: auto;
    scrollbar-width: none;
}

.cat-bar::-webkit-scrollbar {
    display: none;
}

.chip {
    flex: none;
    padding: 7px 15px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--text-2);
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.2s var(--ease);
}

.chip:hover {
    color: var(--accent-strong);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.chip.current {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 6px 16px -8px var(--accent-strong);
}

/* ---------------------------------------------------------------- feed */
.feed {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
}

.feed-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
    padding: 20px 22px 15px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
    animation: rise 0.5s var(--ease) both;
}

.feed-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--line-strong);
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feed-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: 14px;
    border-right: 1px solid var(--line);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.feed-date .d {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.feed-date .m {
    margin-top: 7px;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.06em;
}

.feed-main {
    min-width: 0;
}

.feed-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 7px;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px 9px;
    border-radius: 7px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.tag-chip .hash {
    opacity: 0.65;
}

.tag-chip:hover {
    background: var(--accent);
    color: #fff;
}

.feed-title {
    margin: 0 0 5px;
    font-size: 17.5px;
    font-weight: 650;
    line-height: 1.5;
    letter-spacing: 0.01em;
}

.feed-title a {
    color: var(--text);
    background-image: linear-gradient(var(--accent), var(--accent));
    background-size: 0 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.3s var(--ease), color 0.2s var(--ease);
}

.feed-title a:hover {
    color: var(--accent-strong);
    background-size: 100% 2px;
}

.feed-text {
    margin: 0;
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

/* gallery */
.gallery {
    display: grid;
    gap: 6px;
    margin-top: 12px;
}

.gallery.n1 {
    grid-template-columns: 1fr;
}

.gallery.n2 {
    grid-template-columns: repeat(2, 1fr);
}

.gallery.n3,
.gallery.n4 {
    grid-template-columns: repeat(3, 1fr);
}

.gallery-item {
    position: relative;
    display: block;
    padding: 0;
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    background: var(--card-2);
    aspect-ratio: 1 / 1;
}

.gallery.n2 .gallery-item {
    aspect-ratio: 4 / 3;
}

.gallery.n1 .gallery-item {
    aspect-ratio: 16 / 8.6;
    max-height: 340px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.gallery-item:hover img {
    transform: scale(1.045);
}

.gallery-more {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(10, 16, 28, 0.5);
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.04em;
    backdrop-filter: blur(1px);
}

.feed-foot {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 13px;
    padding-top: 11px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
    flex-wrap: wrap;
}

.foot-time {
    font-variant-numeric: tabular-nums;
    color: var(--text-2);
    font-weight: 500;
}

.foot-cat {
    color: var(--text-2);
    padding: 1px 8px;
    border-radius: 6px;
    background: var(--card-2);
}

.foot-cat:hover {
    color: var(--accent-strong);
}

.foot-ago {
    color: var(--muted);
}

.stats {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-variant-numeric: tabular-nums;
}

.stat .icon {
    width: 14px;
    height: 14px;
    opacity: 0.66;
}

.more-link {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--card-2);
    color: var(--text-2);
    transition: all 0.2s var(--ease);
}

.more-link .icon {
    width: 15px;
    height: 15px;
}

.more-link:hover {
    background: var(--accent-strong);
    color: #fff;
    transform: translateX(2px);
}

/* home comment toggle */
.stat-comments {
    padding: 1px 5px;
    margin: -1px -5px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.stat-comments:hover,
.stat-comments[aria-expanded="true"] {
    color: var(--accent-strong);
    background: var(--accent-soft);
}

.stat-comments .stat-count {
    font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- pager */
.pager-wrap {
    padding: 24px 0 0;
    text-align: center;
}

.page-navigator {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
}

.page-navigator li {
    display: inline-flex;
}

.page-navigator a,
.page-navigator span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 11px;
    border-radius: 10px;
    background: var(--card);
    border: 1px solid var(--line);
    color: var(--text-2);
    font-size: 13px;
    box-shadow: var(--shadow-sm);
}

.page-navigator a:hover {
    color: var(--accent-strong);
    border-color: var(--accent);
}

.page-navigator .current a,
.page-navigator .current span {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    color: #fff;
}

.comments-pager {
    padding: 14px 0 4px;
}

.load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--text-2);
    font-size: 13.5px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s var(--ease);
}

.load-more:hover {
    color: var(--accent-strong);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.load-more[disabled] {
    cursor: default;
    opacity: 0.65;
}

.load-more .spinner {
    width: 14px;
    height: 14px;
    border: 2px solid var(--accent-soft);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.feed-end {
    margin: 4px 0 0;
    font-size: 12.5px;
    color: var(--muted);
    letter-spacing: 0.08em;
}

/* ---------------------------------------------------------------- page head */
.page-head {
    position: relative;
    padding: 26px 28px;
    overflow: hidden;
    margin-top: 0;
}

.page-head::after {
    content: "";
    position: absolute;
    right: -70px;
    top: -90px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-soft), transparent 68%);
    pointer-events: none;
}

.page-head-inner {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-strong);
    opacity: 0.9;
}

.page-title {
    margin: 6px 0 4px;
    font-size: 28px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.page-desc {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

/* ---------------------------------------------------------------- post */
.post-card,
.page-card {
    padding: 30px 32px 28px;
}

.post-head {
    padding-bottom: 6px;
}

.post-tags-top {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.post-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 16px;
    margin-top: 12px;
    font-size: 12.5px;
    color: var(--muted);
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.meta-item .icon {
    width: 14px;
    height: 14px;
    opacity: 0.75;
}

.meta-item a:hover {
    color: var(--accent-strong);
}

.post-locked {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 16px 0 0;
    padding: 8px 12px;
    border-radius: 9px;
    background: var(--card-2);
    color: var(--text-2);
    font-size: 12.5px;
}

/* article typography */
.article {
    margin-top: 22px;
    color: var(--text-2);
    font-size: 15.5px;
    line-height: 1.92;
    word-break: break-word;
    overflow-wrap: break-word;
}

.article > :first-child {
    margin-top: 0;
}

.article > :last-child {
    margin-bottom: 0;
}

.article p {
    margin: 15px 0;
}

.article h1,
.article h2,
.article h3,
.article h4,
.article h5,
.article h6 {
    color: var(--text);
    line-height: 1.45;
    margin: 34px 0 12px;
    font-weight: 650;
    scroll-margin-top: 24px;
}

.article h1 {
    font-size: 25px;
}

.article h2 {
    position: relative;
    font-size: 21px;
    padding-left: 13px;
}

.article h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.24em;
    bottom: 0.24em;
    width: 3.5px;
    border-radius: 3px;
    background: var(--accent);
}

.article h3 {
    font-size: 18px;
}

.article h4 {
    font-size: 16.5px;
}

.article a {
    color: var(--accent-strong);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--accent-soft);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s var(--ease), color 0.2s var(--ease);
}

.article a:hover {
    text-decoration-color: var(--accent);
}

.article strong {
    color: var(--text);
    font-weight: 650;
}

.article ul,
.article ol {
    margin: 14px 0;
    padding-left: 1.4em;
}

.article li {
    margin: 7px 0;
}

.article li::marker {
    color: var(--accent);
}

.article blockquote {
    margin: 20px 0;
    padding: 12px 18px;
    border-left: 3px solid var(--accent);
    border-radius: 0 12px 12px 0;
    background: var(--card-2);
    color: var(--text-2);
}

.article blockquote p {
    margin: 6px 0;
}

.article hr {
    margin: 30px 0;
    border: 0;
    border-top: 1px dashed var(--line-strong);
}

.article img {
    display: block;
    margin: 20px auto;
    border-radius: 12px;
    cursor: zoom-in;
    box-shadow: var(--shadow-sm);
}

.article figure {
    margin: 20px 0;
}

.article figure img {
    margin: 0 auto;
}

.article figcaption {
    margin-top: 8px;
    text-align: center;
    font-size: 12.5px;
    color: var(--muted);
}

.article .gallery,
.article .img_gallery {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(3, 1fr);
    margin: 18px 0;
}

.article code {
    padding: 2px 6px;
    border-radius: 5px;
    border: 1px solid var(--line);
    background: var(--card-2);
    color: var(--accent-strong);
    font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.88em;
    word-break: break-word;
}

.article pre {
    position: relative;
    margin: 20px 0;
    padding: 16px 18px;
    border-radius: 12px;
    background: #0d1526;
    color: #d7e3f4;
    font-size: 13px;
    line-height: 1.75;
    overflow: auto;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.article pre code {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    white-space: pre;
}

.code-copy {
    position: absolute;
    top: 9px;
    right: 9px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.07);
    color: #b9c8dd;
    font-size: 11px;
    opacity: 0;
    transition: opacity 0.2s var(--ease), background 0.2s var(--ease);
}

.article pre:hover .code-copy,
.code-copy:focus {
    opacity: 1;
}

.code-copy:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.code-copy.is-done {
    color: #86efac;
    border-color: rgba(134, 239, 172, 0.4);
}

.article table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    font-size: 14px;
    display: block;
    overflow-x: auto;
}

.article th,
.article td {
    padding: 9px 13px;
    border: 1px solid var(--line);
    text-align: left;
}

.article th {
    background: var(--card-2);
    color: var(--text);
    font-weight: 600;
}

.article tr:nth-child(even) td {
    background: color-mix(in srgb, var(--card-2) 55%, transparent);
}

.article iframe,
.article video {
    max-width: 100%;
    border-radius: 12px;
    border: 0;
}

.article details {
    margin: 16px 0;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card-2);
}

.article summary {
    cursor: pointer;
    color: var(--text);
    font-weight: 600;
}

.article .protected {
    padding: 18px;
    border-radius: 12px;
    background: var(--card-2);
}

.article .protected .word {
    margin: 0 0 10px;
    font-weight: 600;
    color: var(--text);
}

.article .protected input[type="password"] {
    width: 100%;
    max-width: 260px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--card);
    color: var(--text);
}

.article .protected input[type="submit"] {
    margin-top: 8px;
    padding: 9px 18px;
    border: 0;
    border-radius: 9px;
    background: var(--accent-strong);
    color: #fff;
    cursor: pointer;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px dashed var(--line-strong);
}

/* prev / next */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
    padding: 8px;
}

.pn-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 16px;
    border-radius: 12px;
    min-width: 0;
    transition: background 0.2s var(--ease);
}

.pn-item:hover {
    background: var(--card-2);
}

.pn-item:last-child {
    text-align: right;
}

.pn-label {
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--muted);
    text-transform: uppercase;
}

.pn-title {
    font-size: 13.5px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s var(--ease);
}

.pn-title a {
    color: inherit;
}

.pn-item:hover .pn-title a {
    color: var(--accent-strong);
}

.pn-empty {
    font-size: 13.5px;
    color: var(--muted);
}

/* ---------------------------------------------------------------- comments */
.comments-card {
    margin-top: 14px;
    padding: 24px 28px 26px;
}

.comments-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 6px;
}

.comments-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

.comments-sub {
    font-size: 11.5px;
    color: var(--muted);
    letter-spacing: 0.04em;
}

.comment-list,
.comment-children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-body {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

.comment-list > .comment-body:first-child {
    border-top: 0;
}

.comment-avatar img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--card-2);
    display: block;
}

.comment-main {
    min-width: 0;
}

.comment-head {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    font-size: 13px;
}

.comment-name {
    font-weight: 650;
    color: var(--text);
}

.comment-time {
    font-size: 11.5px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.badge-owner,
.badge-pending {
    padding: 1px 7px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.badge-owner {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.badge-pending {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
}

.comment-text {
    margin-top: 5px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-2);
    word-break: break-word;
}

.comment-text p {
    margin: 6px 0;
}

.comment-text a {
    color: var(--accent-strong);
}

.comment-text img {
    border-radius: 8px;
}

.comment-actions {
    margin-top: 4px;
    font-size: 12px;
}

.comment-actions a {
    color: var(--muted);
}

.comment-actions a:hover {
    color: var(--accent-strong);
}

.comment-children {
    margin-top: 8px;
    padding-left: 14px;
    border-left: 2px solid var(--line);
}

.comment-children .comment-body {
    padding: 14px 0;
    border-top: 0;
}

.comment-children .comment-body:first-child {
    padding-top: 0;
}

.comment-children .comment-body:last-child {
    padding-bottom: 0;
}

.comment-children .comment-avatar img {
    width: 32px;
    height: 32px;
}

.comment-children .comment-body {
    grid-template-columns: 34px minmax(0, 1fr);
}

.comments-empty {
    margin: 10px 0 4px;
    padding: 18px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    border-radius: 12px;
    background: var(--card-2);
}

.comments-closed {
    padding: 14px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    border-radius: 12px;
    background: var(--card-2);
}

/* form */
.respond {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px dashed var(--line-strong);
}

.respond-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.respond-head h3 {
    margin: 0;
    font-size: 15.5px;
    font-weight: 650;
}

.cancel-reply a {
    font-size: 12px;
    color: var(--muted);
}

.cancel-reply a:hover {
    color: var(--accent-strong);
}

.logged-in {
    margin: 0 0 12px;
    font-size: 12.5px;
    color: var(--muted);
}

.logged-in a {
    color: var(--accent-strong);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.field-label {
    font-size: 11.5px;
    color: var(--muted);
    letter-spacing: 0.03em;
}

.field-label em {
    color: #ef4444;
    font-style: normal;
}

.field input {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card-2);
    color: var(--text);
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.field input:focus {
    border-color: var(--accent);
    background: var(--card);
}

.form-editor {
    position: relative;
    margin-top: 10px;
}

.form-editor textarea {
    display: block;
    width: 100%;
    min-height: 118px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card-2);
    color: var(--text);
    font-size: 14px;
    line-height: 1.75;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.form-editor textarea:focus {
    border-color: var(--accent);
    background: var(--card);
}

.form-editor textarea::placeholder,
.field input::placeholder {
    color: var(--muted);
}

.editor-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 9px;
}

.tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--card);
    color: var(--text-2);
    font-size: 12px;
}

.tool-btn .icon {
    width: 15px;
    height: 15px;
}

.tool-btn:hover {
    color: var(--accent-strong);
    border-color: var(--accent);
}

.tool-tip {
    font-size: 11.5px;
    color: var(--muted);
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 8px 20px;
    border: 0;
    border-radius: 10px;
    background: var(--accent-strong);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 8px 20px -10px var(--accent-strong);
    transition: transform 0.2s var(--ease), filter 0.2s var(--ease);
}

.submit-btn .icon {
    width: 15px;
    height: 15px;
}

.submit-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.emoji-panel {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 2px;
    margin-top: 9px;
    padding: 8px;
    max-height: 168px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card-2);
}

.emoji-item {
    padding: 3px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    font-size: 18px;
    line-height: 1.4;
    transition: background 0.15s var(--ease), transform 0.15s var(--ease);
}

.emoji-item:hover {
    background: var(--card);
    transform: scale(1.12);
}

/* messages page */
.messages-page .comment-list > .comment-body {
    grid-template-columns: 38px minmax(0, 1fr);
    border-top: 0;
    padding: 12px 0;
}

.messages-page .comment-text {
    display: inline-block;
    margin-top: 6px;
    padding: 8px 14px;
    border-radius: 4px 14px 14px 14px;
    background: var(--card-2);
    max-width: 96%;
}

.messages-page .comment-body.by-author .comment-text {
    background: var(--accent-soft);
}

/* ---------------------------------------------------------------- home comments */
.feed-reply {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 11px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card-2);
    color: var(--text-2);
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.feed-reply:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.feed-reply:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.feed-reply[hidden] {
    display: none;
}

.feed-reply-avatar {
    flex: none;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--card);
    object-fit: cover;
}

.feed-reply-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.feed-reply-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.45;
}

.feed-reply-label {
    color: var(--accent-strong);
    font-weight: 600;
}

.feed-reply-meta strong {
    color: var(--text);
    font-weight: 600;
}

.feed-reply-to b {
    color: var(--text-2);
    font-weight: 500;
}

.feed-reply-meta time {
    margin-left: auto;
    font-size: 10.5px;
    white-space: nowrap;
}

.feed-reply-text {
    display: -webkit-box;
    overflow: hidden;
    max-height: 3.3em;
    color: var(--text-2);
    font-size: 12.5px;
    line-height: 1.65;
    word-break: break-word;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.feed-reply-more {
    flex: none;
    align-self: center;
    color: var(--muted);
}

.feed-reply-more .icon {
    width: 14px;
    height: 14px;
}

.feed-reply:hover .feed-reply-more {
    color: var(--accent-strong);
}

.feed-reply .badge-owner {
    padding: 0 5px;
    font-size: 9px;
}

.home-comments {
    margin-top: 12px;
    padding: 14px 16px 16px;
    background: var(--card-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    animation: rise 0.35s var(--ease) both;
}

.home-comments-inner {
    min-width: 0;
}

.home-comments-head {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
}

.home-comments-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--muted);
    text-transform: uppercase;
}

.home-comments-count {
    display: inline-grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--card);
    color: var(--text-2);
    font-size: 10.5px;
    font-variant-numeric: tabular-nums;
}

.home-comments-all {
    margin-left: auto;
    font-size: 11.5px;
    color: var(--accent-strong);
}

.home-comments-all:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.home-comments-list .comment-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-comments .comment-body {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 0;
    border-top: 1px dashed var(--line);
}

.home-comments .comment-list > .comment-body:first-child {
    border-top: 0;
    padding-top: 0;
}

.home-comments .comment-avatar img {
    width: 32px;
    height: 32px;
}

.home-comments .comment-head {
    gap: 6px;
    font-size: 12px;
}

.home-comments .comment-time {
    font-size: 10.5px;
}

.home-comments .comment-text {
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.75;
}

.home-comments .comment-text p {
    margin: 4px 0;
}

.home-comments .comment-actions {
    margin-top: 2px;
    font-size: 11px;
}

.home-comments .comment-children {
    margin-top: 4px;
    padding-left: 10px;
}

.home-comments .comment-children .comment-body {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    padding: 8px 0;
}

.home-comments .comment-children .comment-avatar img {
    width: 26px;
    height: 26px;
}

.home-comments .badge-owner,
.home-comments .badge-pending {
    padding: 0 6px;
    font-size: 9.5px;
}

.home-comments-empty,
.home-comments-closed,
.home-comments-error {
    margin: 0;
    padding: 10px 12px;
    border-radius: 9px;
    background: var(--card);
    color: var(--muted);
    font-size: 12.5px;
    text-align: center;
}

.home-comments-error a {
    color: var(--accent-strong);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.home-comments-loading {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 2px 0;
}

.home-comments-loading span {
    display: block;
    height: 9px;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--line) 25%, var(--card) 50%, var(--line) 75%);
    background-size: 200% 100%;
    animation: homeSkeleton 1.4s ease infinite;
}

.home-comments-loading span:nth-child(2) {
    width: 82%;
}

.home-comments-loading span:nth-child(3) {
    width: 58%;
}

@keyframes homeSkeleton {
    0% {
        background-position: 100% 50%;
    }
    100% {
        background-position: -100% 50%;
    }
}

.home-comment-form {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--line-strong);
}

.home-comment-form .form-grid {
    gap: 8px;
}

.home-comment-form .field input {
    height: 34px;
    background: var(--card);
    font-size: 12.5px;
}

.home-comment-form .form-editor {
    margin-top: 8px;
}

.home-comment-form textarea {
    min-height: 84px;
    background: var(--card);
    font-size: 13px;
    line-height: 1.7;
}

.home-comment-form .editor-tools {
    margin-top: 7px;
}

.home-comment-form .tool-tip {
    font-size: 11px;
}

.home-comment-form .submit-btn {
    padding: 7px 16px;
    font-size: 12.5px;
}

.home-comment-form .submit-btn[disabled] {
    opacity: 0.65;
    cursor: default;
    transform: none;
}

.comment-notice {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.6;
}

.comment-notice.is-success {
    color: #10b981;
}

.comment-notice.is-error {
    color: #ef4444;
}

.reply-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 11.5px;
}

.reply-hint-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reply-cancel {
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-2);
    font-size: 11px;
    cursor: pointer;
}

.reply-cancel:hover {
    color: var(--accent-strong);
}

.sleek-hidden-frame {
    position: fixed;
    left: -9999px;
    top: 0;
    width: 1px;
    height: 1px;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

/* ---------------------------------------------------------------- links */
.links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px 16px 16px 17px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.link-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.link-avatar {
    position: relative;
    display: grid;
    place-items: center;
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(140deg, hsl(var(--hue, 210) 72% 68%), hsl(var(--hue, 210) 68% 48%));
    color: #fff;
}

.link-initial {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.link-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.link-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.link-name {
    font-size: 14.5px;
    font-weight: 650;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-desc {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-go {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: auto;
    flex: none;
    font-size: 11.5px;
    color: var(--accent-strong);
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    opacity: 0.85;
    transform: translateX(0);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.link-go .icon {
    width: 12px;
    height: 12px;
}

.link-card:hover .link-go {
    opacity: 1;
    transform: translateX(2px);
}

@media (hover: none) {
    .link-go {
        opacity: 1;
        transform: none;
    }
}

/* ---------------------------------------------------------------- photos */
.photo-grid {
    columns: 3;
    column-gap: 10px;
    margin-top: 16px;
}

.photo-item {
    display: block;
    width: 100%;
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--card-2);
    break-inside: avoid;
    box-shadow: var(--shadow-sm);
}

.photo-item img {
    width: 100%;
    display: block;
    transition: transform 0.45s var(--ease), filter 0.45s var(--ease);
}

.photo-item:hover img {
    transform: scale(1.03);
    filter: brightness(1.03);
}

/* ---------------------------------------------------------------- archive */
.archive-intro {
    margin-top: 14px;
    padding: 20px 26px;
}

.page-intro {
    margin-top: 14px;
    padding: 20px 26px;
}

.page-intro.article {
    margin-top: 14px;
}

.archive-card {
    margin-top: 14px;
    padding: 12px 26px 20px;
}

.archive-year {
    padding: 14px 0 4px;
}

.archive-year + .archive-year {
    border-top: 1px dashed var(--line-strong);
}

.year-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 4px;
    font-weight: 700;
}

.year-num {
    font-size: 22px;
    letter-spacing: 0.02em;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.year-count {
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 400;
    letter-spacing: 0.05em;
}

.archive-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.archive-item a {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    margin: 0 -10px;
    border-radius: 10px;
    transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.archive-item a:hover {
    background: var(--card-2);
    transform: translateX(2px);
}

.archive-item time {
    font-size: 12.5px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.archive-title {
    font-size: 14px;
    color: var(--text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.archive-item a:hover .archive-title {
    color: var(--accent-strong);
}

.archive-arrow {
    color: var(--muted);
    opacity: 0;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.archive-arrow .icon {
    width: 14px;
    height: 14px;
}

.archive-item a:hover .archive-arrow {
    opacity: 1;
    transform: translateX(2px);
}

.archive-empty {
    padding: 30px 0;
    text-align: center;
    color: var(--muted);
}

/* ---------------------------------------------------------------- empty / error */
.empty-state {
    margin-top: 18px;
    padding: 54px 26px;
    text-align: center;
}

.empty-icon {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.empty-icon .icon {
    width: 24px;
    height: 24px;
}

.empty-state h2 {
    margin: 0 0 5px;
    font-size: 17px;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.empty-state .btn {
    margin-top: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card);
    color: var(--text-2);
    font-size: 13px;
}

.btn .icon {
    width: 15px;
    height: 15px;
}

.btn:hover {
    border-color: var(--accent);
    color: var(--accent-strong);
}

.btn-primary {
    border-color: var(--accent-strong);
    background: var(--accent-strong);
    color: #fff;
}

.btn-primary:hover {
    color: #fff;
    filter: brightness(1.06);
}

.error-page {
    margin-top: 6px;
    padding: 64px 30px 60px;
    text-align: center;
}

.error-code {
    margin: 0;
    font-size: 78px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--accent), #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.error-title {
    margin: 12px 0 6px;
    font-size: 23px;
    font-weight: 700;
}

.error-desc {
    margin: 0 auto;
    max-width: 420px;
    color: var(--muted);
    font-size: 13.5px;
}

.error-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* ---------------------------------------------------------------- footer */
.site-footer {
    margin-top: 30px;
}

.footer-card {
    text-align: center;
    padding: 8px 0;
    color: var(--muted);
    font-size: 12px;
}

.footer-copy {
    margin: 0;
    font-size: 13px;
    color: var(--text-2);
}

.footer-copy a {
    font-weight: 650;
    color: var(--text);
}

.footer-copy a:hover {
    color: var(--accent-strong);
}

.footer-extra {
    margin: 6px 0 0;
    font-size: 11.5px;
}

.footer-extra a {
    color: var(--muted);
}

.footer-extra a:hover {
    color: var(--accent-strong);
}

.footer-meta {
    margin: 5px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 11.5px;
    color: var(--muted);
}

.footer-meta a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--muted);
}

.footer-meta a:hover {
    color: var(--accent-strong);
}

.footer-meta .icon {
    width: 12px;
    height: 12px;
}

.footer-meta .theme-name {
    color: var(--text-2);
    font-weight: 600;
}

/* ---------------------------------------------------------------- to top */
.to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 60;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--card);
    color: var(--text-2);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}

.to-top .icon {
    width: 17px;
    height: 17px;
}

.to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.to-top:hover {
    color: var(--accent-strong);
    border-color: var(--accent);
}

/* ---------------------------------------------------------------- search overlay */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 15vh 16px 16px;
    background: rgba(12, 18, 30, 0.44);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s var(--ease), visibility 0.22s;
}

.overlay.open {
    opacity: 1;
    visibility: visible;
}

.search-panel {
    width: min(620px, 100%);
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--card);
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px) scale(0.99);
    transition: transform 0.24s var(--ease);
}

.overlay.open .search-panel {
    transform: none;
}

.search-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 6px 4px 12px;
}

.search-icon {
    width: 19px;
    height: 19px;
    color: var(--muted);
}

.search-row input {
    flex: 1;
    min-width: 0;
    height: 46px;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 16px;
}

.search-row input::placeholder {
    color: var(--muted);
}

.search-submit {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: var(--accent-strong);
    color: #fff;
}

.search-submit .icon {
    width: 17px;
    height: 17px;
}

.search-hint {
    margin: 0;
    padding: 6px 12px 4px;
    border-top: 1px solid var(--line);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.search-hint kbd {
    display: inline-block;
    min-width: 18px;
    padding: 1px 5px;
    margin: 0 2px;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    background: var(--card-2);
    font-family: inherit;
    font-size: 10.5px;
    text-align: center;
}

/* ---------------------------------------------------------------- lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5vh 4vw;
    background: rgba(6, 10, 18, 0.92);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), visibility 0.25s;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lb-figure {
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    text-align: center;
}

.lb-figure img {
    max-width: 88vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    transform: scale(0.97);
    transition: transform 0.25s var(--ease);
}

.lightbox.open .lb-figure img {
    transform: scale(1);
}

.lb-figure figcaption {
    margin-top: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.62);
}

.lb-btn {
    position: absolute;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    backdrop-filter: blur(4px);
    transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.lb-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.lb-btn .icon {
    width: 20px;
    height: 20px;
}

.lb-close {
    top: 20px;
    right: 20px;
}

.lb-prev {
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
}

.lb-next {
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
}

.lb-prev:hover,
.lb-next:hover {
    transform: translateY(-50%) scale(1.05);
}

.lb-btn[hidden] {
    display: none;
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1040px) {
    .brand-sub {
        display: none;
    }

    .nav-link span {
        display: none;
    }

    .nav-link {
        padding: 8px;
    }

    .nav-link .icon {
        width: 17px;
        height: 17px;
    }
}

@media (max-width: 900px) {
    .header-nav {
        display: none;
    }

    .menu-toggle {
        display: grid;
    }

    .site-header {
        position: relative;
        z-index: 70;
    }

    .nav-drawer {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 120;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 78px;
        padding: 18px 0 16px;
        gap: 4px;
        background: var(--card);
        border-right: 1px solid var(--line);
        box-shadow: 12px 0 40px -24px rgba(0, 0, 0, 0.35);
        transform: translateX(-100%);
        transition: transform 0.32s var(--ease);
        overflow-y: auto;
        scrollbar-width: none;
    }

    .nav-drawer::-webkit-scrollbar {
        display: none;
    }

    .nav-open .nav-drawer {
        transform: translateX(0);
    }

    .drawer-mask {
        position: fixed;
        inset: 0;
        z-index: 110;
        display: block;
        padding: 0;
        border: 0;
        background: rgba(10, 16, 28, 0.38);
        backdrop-filter: blur(2px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s var(--ease), visibility 0.25s;
    }

    .nav-open .drawer-mask {
        opacity: 1;
        visibility: visible;
    }

    .nav-open .page-shell {
        transform: translateX(78px);
    }

    .drawer-brand img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
        margin-bottom: 8px;
    }

    .drawer-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        width: 100%;
    }

    .drawer-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        width: 62px;
        padding: 8px 2px;
        border-radius: 10px;
        color: var(--muted);
        font-size: 10px;
        letter-spacing: 0.02em;
        line-height: 1.2;
    }

    .drawer-link .icon {
        width: 19px;
        height: 19px;
    }

    .drawer-link:hover,
    .drawer-link.current {
        background: var(--accent-soft);
        color: var(--accent-strong);
    }

    .drawer-foot {
        margin-top: auto;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .drawer-btn {
        display: grid;
        place-items: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: var(--card);
        color: var(--text-2);
    }

    .drawer-btn .icon {
        width: 17px;
        height: 17px;
    }

    .drawer-btn .icon-sun {
        display: none;
    }

    html.dark .drawer-btn .icon-sun {
        display: block;
    }

    html.dark .drawer-btn .icon-moon {
        display: none;
    }
}

@media (max-width: 700px) {
    .page-shell {
        width: calc(100% - 24px);
        padding-top: 16px;
    }

    .header-card {
        padding: 12px 12px 12px 14px;
        gap: 10px;
    }

    .brand-avatar {
        width: 40px;
        height: 40px;
    }

    .brand-name {
        font-size: 15px;
        max-width: 130px;
    }

    .header-actions {
        margin-left: auto;
        gap: 6px;
    }

    .login-link {
        padding: 0 10px;
    }

    .login-link span {
        display: none;
    }

    .post-card,
    .page-card {
        padding: 22px 18px 20px;
    }

    .post-title {
        font-size: 23px;
    }

    .page-title {
        font-size: 23px;
    }

    .page-head {
        padding: 20px 18px;
    }

    .article {
        font-size: 15px;
        line-height: 1.9;
    }

    .article h2 {
        font-size: 19px;
    }

    .post-nav {
        grid-template-columns: 1fr;
    }

    .post-nav > *:last-child {
        text-align: left;
    }

    .post-nav > * + * {
        border-top: 1px dashed var(--line);
    }

    .comments-card {
        padding: 20px 18px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

    .photo-grid {
        columns: 2;
    }

    .feed-item {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding: 16px 16px 13px;
    }

    .feed-date {
        flex-direction: row;
        align-items: baseline;
        justify-content: flex-start;
        gap: 6px;
        padding: 0;
        border-right: 0;
    }

    .feed-date .d {
        font-size: 19px;
    }

    .feed-date .m {
        margin: 0;
        font-size: 11px;
    }

    .feed-title {
        font-size: 16.5px;
    }

    .feed-text {
        font-size: 13.5px;
        -webkit-line-clamp: 4;
    }

    .gallery.n3 .gallery-item,
    .gallery.n4 .gallery-item {
        aspect-ratio: 1;
    }

    .feed-foot {
        gap: 8px;
    }

    .foot-ago {
        display: none;
    }

    .archive-card {
        padding: 10px 16px 16px;
    }

    .archive-item a {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 8px;
    }

    .archive-arrow {
        display: none;
    }

    .lb-prev,
    .lb-next {
        top: auto;
        bottom: 20px;
        transform: none;
    }

    .lb-prev:hover,
    .lb-next:hover {
        transform: none;
    }

    .to-top {
        right: 14px;
        bottom: 14px;
    }

    .emoji-panel {
        grid-template-columns: repeat(8, 1fr);
    }

    .comment-body {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 10px;
    }

    .comment-avatar img {
        width: 34px;
        height: 34px;
    }

    .comment-children {
        margin-left: 0;
        padding-left: 10px;
    }
}

@media (max-width: 420px) {
    .brand-name {
        max-width: 92px;
    }

    .header-actions .icon-btn {
        width: 32px;
        height: 32px;
    }

    .login-link {
        display: none;
    }

    .gallery {
        gap: 4px;
    }
}

@media (max-width: 360px) {
    .brand-name {
        max-width: 68px;
        font-size: 14px;
    }

    .header-actions .theme-toggle {
        display: none;
    }

    .page-shell {
        width: calc(100% - 16px);
    }
}

/* =========================================================================
   Floating capsule header — inspired by ficor.net
   ========================================================================= */
.site-header {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 60;
    width: min(100% - 48px, 960px);
    transform: translateX(-50%);
    transition: top 0.3s var(--ease), width 0.4s var(--ease);
}

.header-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 62px;
    padding: 0 12px;
    background: var(--card);
    background: color-mix(in srgb, var(--card) 80%, transparent);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 12px 34px -26px rgba(16, 24, 40, 0.45);
    -webkit-backdrop-filter: saturate(165%) blur(18px);
    backdrop-filter: saturate(165%) blur(18px);
    transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

html.dark .header-card {
    background: color-mix(in srgb, var(--card) 80%, transparent);
}

.site-header[data-scrolled="1"] .header-card {
    background: color-mix(in srgb, var(--card) 94%, transparent);
    border-color: var(--line-strong);
    box-shadow: 0 20px 46px -28px rgba(16, 24, 40, 0.45);
}

html.dark .site-header[data-scrolled="1"] .header-card {
    background: color-mix(in srgb, var(--card) 94%, transparent);
}

.header-nav {
    position: relative;
    justify-self: start;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    min-width: 0;
    max-width: 100%;
    padding: 4px;
    margin-left: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    white-space: nowrap;
}

.header-nav::-webkit-scrollbar {
    display: none;
}

.nav-glider {
    position: absolute;
    top: 4px;
    left: 0;
    z-index: 0;
    width: 0;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--card-2);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.38s var(--ease), width 0.38s var(--ease), opacity 0.22s linear,
        background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav-glider.is-visible {
    opacity: 1;
}

.nav-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 400;
    letter-spacing: 0.005em;
    white-space: nowrap;
}

.nav-link span {
    display: inline;
}

.nav-link .icon {
    display: none;
}

.nav-link:hover,
.nav-link.current {
    color: var(--text);
}

.nav-link:hover {
    background: transparent;
}

.nav-link.current {
    font-weight: 600;
}

.brand {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--text);
    flex: none;
}

.brand:hover {
    background: var(--card-2);
}

.brand-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--card-2);
    box-shadow: none;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.16;
    min-width: 0;
}

.brand-name {
    max-width: 220px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.005em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-sub {
    display: none;
}

.header-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 0;
    flex: none;
}

.header-actions .icon-btn,
.icon-btn {
    width: 36px;
    height: 36px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
}

.header-actions .icon-btn:hover,
.icon-btn:hover {
    background: var(--card-2);
    border-color: transparent;
    color: var(--text);
    transform: none;
}

.header-actions .icon-btn:active {
    transform: scale(0.94);
}

.login-btn {
    display: inline-grid;
}

.menu-toggle {
    display: none;
    width: 36px;
    height: 36px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
}

.menu-toggle:hover {
    background: var(--card-2);
    color: var(--text);
}

.menu-toggle .icon {
    width: 18px;
    height: 18px;
}

.page-shell {
    padding: 100px 0 34px;
}

/* infinite scroll status */
.load-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 0 4px;
    color: var(--muted);
    font-size: 12.5px;
}

.load-status .spinner {
    width: 15px;
    height: 15px;
    border: 2px solid var(--accent-soft);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.load-retry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 14px auto 0;
    padding: 8px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    color: var(--text-2);
    font-size: 12.5px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.load-retry:hover {
    border-color: var(--accent);
    color: var(--accent-strong);
}

.feed-sentinel {
    height: 1px;
}

.feed-end {
    margin-top: 16px;
}

@media (max-width: 1040px) {
    .site-header {
        width: min(100% - 32px, 960px);
    }

    .header-card {
        gap: 6px;
    }

    .nav-link {
        padding: 0 8px;
        font-size: 13px;
    }

    .brand-name {
        max-width: 170px;
    }

    .rss-btn {
        display: none;
    }
}

@media (max-width: 900px) {
    .site-header {
        top: 12px;
        z-index: 70;
        width: calc(100% - 24px);
    }

    .header-card {
        grid-template-columns: minmax(0, 1fr) auto;
        height: 56px;
        padding: 0 6px 0 8px;
        gap: 6px;
    }

    .header-nav {
        display: none;
    }

    .brand {
        justify-self: start;
        gap: 8px;
        padding: 2px 4px;
    }

    .brand-avatar {
        width: 30px;
        height: 30px;
    }

    .brand-name {
        max-width: 150px;
        font-size: 15px;
    }

    .header-actions {
        justify-self: end;
        gap: 0;
    }

    .header-actions .icon-btn {
        width: 36px;
        height: 36px;
    }

    .rss-btn,
    .login-btn {
        display: none;
    }

    .menu-toggle {
        display: grid;
        width: 36px;
        height: 36px;
    }

    .page-shell {
        padding-top: 88px;
    }

    .feed-reply {
        gap: 8px;
        padding: 8px 9px;
    }

    .feed-reply-meta {
        font-size: 11px;
    }

    .feed-reply-text {
        font-size: 12px;
    }

    html {
        scroll-padding-top: 88px;
    }
}

@media (max-width: 420px) {
    .brand-name {
        max-width: 118px;
    }

    .header-actions .icon-btn {
        width: 34px;
        height: 34px;
    }

    .menu-toggle {
        width: 34px;
        height: 34px;
    }
}

/* =========================================================================
   QQ空间说说 rebuild — 暖米色纸张 / 单列 / 只保留正文与评论
   ========================================================================= */
.bg-decor {
    display: none;
}

.cat-bar {
    display: none;
}

/* ---------------------------------------------------------------- top bar */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 60;
    width: 100%;
    transform: none;
    background: var(--header-bg);
    border-bottom: 1px solid var(--line);
    transition: box-shadow 0.2s var(--ease);
}

.site-header[data-scrolled="1"] {
    box-shadow: 0 2px 10px rgba(80, 60, 30, 0.06);
}

.header-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    width: min(100% - 32px, 1040px);
    height: 58px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.brand {
    justify-self: start;
    gap: 8px;
    min-width: 0;
    padding: 0;
}

.brand:hover {
    background: transparent;
}

.brand-avatar {
    width: 28px;
    height: 28px;
    border: 1px solid var(--line);
    border-radius: 50%;
    box-shadow: none;
}

.brand-name {
    max-width: 180px;
    font-size: 15px;
    font-weight: 600;
}

.header-nav {
    justify-self: start;
    gap: 2px;
    margin-left: 16px;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    scrollbar-width: none;
}

.header-nav::-webkit-scrollbar {
    display: none;
}

.nav-glider {
    display: none;
}

.nav-link {
    height: 58px;
    padding: 0 11px;
    border-radius: 0;
    background: transparent;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 400;
}

.nav-link:hover {
    background: transparent;
    color: var(--accent-strong);
}

.nav-link.current {
    background: transparent;
    color: var(--accent-strong);
    font-weight: 600;
    box-shadow: inset 0 -2px 0 var(--accent);
}

.header-actions {
    justify-self: end;
    gap: 2px;
}

.header-actions .icon-btn,
.icon-btn {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
}

.header-actions .icon-btn:hover,
.icon-btn:hover {
    background: var(--card-2);
    border: 0;
    color: var(--accent-strong);
}

.menu-toggle {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text-2);
}

.menu-toggle:hover {
    background: var(--card-2);
    color: var(--accent-strong);
}

/* ---------------------------------------------------------------- paper sheet */
.page-shell {
    width: min(100% - 32px, 1040px);
    padding: 84px 0 44px;
}

.space-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.space-layout.is-single {
    display: block;
    max-width: 720px;
    margin: 0 auto;
}

.space-sidebar {
    position: sticky;
    top: 78px;
    padding: 22px 18px 18px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 3px;
    text-align: center;
}

.space-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.space-avatar-link {
    display: block;
}

.space-avatar {
    display: block;
    width: 82px;
    height: 82px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--card-2);
    object-fit: cover;
}

.space-name {
    margin: 12px 0 0;
    color: var(--text);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.4;
}

.space-name a {
    color: var(--text);
}

.space-name a:hover {
    color: var(--accent-strong);
}

.space-desc {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.space-count {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12.5px;
}

.space-count strong {
    margin-right: 2px;
    color: var(--accent);
    font-size: 20px;
    font-weight: 600;
}

.space-nav {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    text-align: left;
}

.space-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 2px;
    color: var(--text-2);
    font-size: 13px;
}

.space-nav-link .icon {
    width: 15px;
    height: 15px;
    color: var(--muted);
}

.space-nav-link:hover {
    background: var(--card-2);
    color: var(--accent-strong);
}

.space-nav-link.current {
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-weight: 600;
}

.space-nav-link.current .icon {
    color: var(--accent-strong);
}

.site-main {
    padding: 0 24px 10px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 3px;
    box-shadow: none;
}

/* ---------------------------------------------------------------- shuoshuo feed */
.feed {
    display: block;
    margin: 0;
    padding: 0;
}

.feed-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    margin: 0;
    padding: 20px 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    animation: none;
    transform: none;
}

.feed-item:hover {
    transform: none;
    border-color: var(--line);
    box-shadow: none;
}

.feed-item:last-child {
    border-bottom: 0;
}

.shuo-avatar {
    display: block;
    width: 44px;
    height: 44px;
    flex: none;
}

.shuo-avatar img {
    display: block;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--card-2);
    object-fit: cover;
}

.shuo-main {
    min-width: 0;
}

.shuo-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}

.shuo-author {
    min-width: 0;
    overflow: hidden;
    color: var(--accent-strong);
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shuo-author:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.shuo-time {
    margin-left: auto;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.shuo-time:hover {
    color: var(--accent-strong);
}

.shuo-text {
    margin-top: 7px;
    color: var(--text);
    font-size: 14.5px;
    line-height: 1.85;
    word-break: break-word;
}

.shuo-bar {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 12.5px;
}

.shuo-act {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 12.5px;
    cursor: pointer;
}

.shuo-act .icon {
    width: 15px;
    height: 15px;
}

.shuo-act:hover,
.shuo-act[aria-expanded="true"] {
    background: none;
    color: var(--accent-strong);
}

.shuo-act .stat-count {
    font-variant-numeric: tabular-nums;
}

.shuo-full {
    margin-left: auto;
    color: var(--accent-strong);
    font-size: 12.5px;
}

.shuo-full:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------------------------------------------------------------- latest reply */
.feed-reply {
    margin-top: 12px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: var(--card-2);
}

.feed-reply:hover {
    border-color: var(--line-strong);
    background: var(--card-2);
}

.feed-reply-avatar {
    width: 22px;
    height: 22px;
}

.feed-reply-meta {
    color: var(--muted);
    font-size: 11.5px;
}

.feed-reply-label {
    color: var(--accent-strong);
}

.feed-reply-meta strong {
    color: var(--text-2);
}

.feed-reply-to b {
    color: var(--text-2);
}

.feed-reply-text {
    max-height: 3.4em;
    color: var(--text-2);
    font-size: 12.5px;
    line-height: 1.7;
}

.feed-reply-more .icon {
    width: 13px;
    height: 13px;
}

/* ---------------------------------------------------------------- inline comments */
.home-comments {
    margin-top: 12px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    animation: none;
}

.home-comments-inner {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: var(--card-2);
    box-shadow: none;
}

.home-comments-head {
    margin-bottom: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

.home-comments-title {
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.home-comments-count {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.home-comments-all {
    color: var(--accent-strong);
    font-size: 11.5px;
}

.home-comments-list {
    padding-top: 2px;
}

.home-comments .comment-body {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 9px;
    padding: 9px 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
}

.home-comments .comment-list > .comment-body:first-child {
    border-top: 0;
    padding-top: 0;
}

.home-comments .comment-avatar img {
    width: 28px;
    height: 28px;
    border: 1px solid var(--line);
}

.home-comments .comment-head {
    gap: 6px;
    font-size: 12px;
}

.home-comments .comment-name {
    color: var(--accent-strong);
    font-weight: 600;
}

.home-comments .comment-time {
    color: var(--muted);
    font-size: 10.5px;
}

.home-comments .comment-text {
    margin-top: 3px;
    color: var(--text-2);
    font-size: 13px;
    line-height: 1.75;
}

.home-comments .comment-text p {
    margin: 3px 0;
}

.home-comments .comment-actions {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.home-comments .comment-actions a {
    color: var(--muted);
}

.home-comments .comment-actions a:hover {
    color: var(--accent-strong);
}

.home-comments .comment-children {
    margin-top: 5px;
    padding-left: 9px;
    border-left: 2px solid var(--line);
}

.home-comments .comment-children .comment-body {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 7px;
    padding: 7px 0;
}

.home-comments .comment-children .comment-avatar img {
    width: 24px;
    height: 24px;
}

.home-comments .badge-owner,
.home-comments .badge-pending {
    padding: 0 5px;
    font-size: 9px;
}

.home-comments-empty,
.home-comments-closed,
.home-comments-error {
    border-radius: 2px;
    background: var(--card);
    color: var(--muted);
    font-size: 12.5px;
}

.home-comments-loading span {
    border-radius: 2px;
}

/* home comment form */
.home-comment-form {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.home-comment-form .field input,
.home-comment-form textarea {
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--card);
    color: var(--text);
}

.home-comment-form .field input:focus,
.home-comment-form textarea:focus {
    border-color: var(--accent);
    outline: 0;
    box-shadow: 0 0 0 2px var(--accent-soft);
}

.home-comment-form .field-label {
    color: var(--muted);
    font-size: 11.5px;
}

.home-comment-form .submit-btn {
    border-radius: 2px;
    background: var(--accent-strong);
    color: #fff;
}

.home-comment-form .submit-btn:hover {
    background: var(--accent);
}

.home-comment-form .tool-tip {
    color: var(--muted);
}

.reply-hint {
    border-radius: 2px;
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.comment-notice.is-success {
    color: #8a6a23;
}

html.dark .comment-notice.is-success {
    color: #d8b46a;
}

/* ---------------------------------------------------------------- article / page */
.post-card,
.page-card,
.comments-card,
.post-nav {
    padding: 24px 0 18px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.comments-card,
.post-nav {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.post-head {
    padding-bottom: 4px;
}

.post-title {
    color: var(--text);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0;
}

.post-meta {
    gap: 6px 14px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
}

.meta-item a {
    color: var(--text-2);
}

.meta-item a:hover {
    color: var(--accent-strong);
}

.post-tags-top,
.post-tags {
    margin-top: 16px;
}

.tag-chip {
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--card-2);
    color: var(--accent-strong);
    font-size: 11.5px;
}

.tag-chip:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.article {
    margin-top: 18px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.95;
}

.article p {
    margin: 15px 0;
}

.article a {
    color: var(--accent-strong);
    text-decoration: underline;
    text-decoration-color: var(--accent-soft);
    text-underline-offset: 3px;
}

.article a:hover {
    text-decoration-color: var(--accent);
}

.article h1,
.article h2,
.article h3,
.article h4 {
    letter-spacing: 0;
}

.article h2 {
    margin: 30px 0 12px;
    padding-left: 0;
    color: var(--text);
    font-size: 19px;
    font-weight: 600;
}

.article h2::before {
    display: none;
}

.article h3 {
    font-size: 16.5px;
    font-weight: 600;
}

.article blockquote {
    margin: 18px 0;
    padding: 12px 15px;
    border-left: 3px solid var(--accent);
    border-radius: 0;
    background: var(--card-2);
    color: var(--text-2);
}

.article blockquote p {
    margin: 0;
}

.article code {
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--card-2);
    color: var(--accent-strong);
    font-size: 0.9em;
}

.article pre {
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--card-2);
}

.article img {
    border-radius: 2px;
}

.article hr {
    border: 0;
    border-top: 1px solid var(--line);
}

.page-head {
    padding: 20px 0 14px;
    border-bottom: 1px solid var(--line);
}

.page-head::after {
    display: none;
}

.page-title {
    color: var(--text);
    font-size: 22px;
    font-weight: 600;
}

.page-desc {
    color: var(--muted);
    font-size: 12.5px;
}

.post-nav {
    display: flex;
    gap: 12px;
}

.post-nav .pn-item {
    padding: 0;
    background: transparent;
    border: 0;
}

.post-nav .pn-label {
    color: var(--muted);
}

.post-nav .pn-title {
    color: var(--text-2);
}

.post-nav .pn-title:hover {
    color: var(--accent-strong);
}

/* ---------------------------------------------------------------- flat cards / footer / pager */
.card,
.link-card,
.photo-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 3px;
    box-shadow: none;
}

.pager-wrap {
    padding: 18px 0 4px;
}

.page-navigator a,
.page-navigator span {
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--card);
    box-shadow: none;
    color: var(--text-2);
}

.page-navigator a:hover {
    border-color: var(--accent);
    color: var(--accent-strong);
}

.page-navigator .current a,
.page-navigator .current span {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    color: #fff;
}

.load-retry {
    border-radius: 2px;
    background: var(--card);
    box-shadow: none;
}

.site-footer {
    margin-top: 0;
    padding: 0;
    background: transparent;
}

.space-layout.is-single + .site-footer {
    max-width: 720px;
    margin: 0 auto;
}

.footer-card {
    padding: 14px 0 6px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.footer-copy {
    color: var(--muted);
    font-size: 12px;
}

.footer-copy a {
    color: var(--text-2);
    font-weight: 500;
}

.footer-copy a:hover {
    color: var(--accent-strong);
}

.footer-meta,
.footer-extra {
    color: var(--muted);
    font-size: 11px;
}

.footer-meta a,
.footer-extra a {
    color: var(--text-2);
}

.empty-state {
    padding: 30px 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1000px) {
    .space-layout {
        grid-template-columns: 230px minmax(0, 1fr);
        gap: 16px;
    }
}

@media (max-width: 900px) {
    .header-card {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px;
        width: calc(100% - 20px);
        height: 54px;
    }

    .header-nav {
        display: none;
    }

    .brand-name {
        max-width: 150px;
        font-size: 14.5px;
    }

    .brand-avatar {
        width: 27px;
        height: 27px;
    }

    .header-actions {
        gap: 0;
    }

    .header-actions .icon-btn {
        width: 32px;
        height: 32px;
    }

    .rss-btn,
    .login-btn {
        display: none;
    }

    .menu-toggle {
        display: grid;
        width: 32px;
        height: 32px;
    }

    .page-shell {
        width: calc(100% - 12px);
        padding: 68px 0 28px;
    }

    .site-main {
        padding: 0 14px 8px;
    }

    .space-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .space-layout.is-single {
        max-width: none;
    }

    .space-sidebar {
        position: static;
        padding: 12px 14px;
        text-align: left;
    }

    .space-profile {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 2px 10px;
        align-items: center;
        text-align: left;
    }

    .space-avatar-link {
        grid-row: span 2;
    }

    .space-avatar {
        width: 48px;
        height: 48px;
    }

    .space-name {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
        font-size: 15px;
    }

    .space-desc {
        display: none;
    }

    .space-count {
        grid-column: 2;
        grid-row: 2;
        margin: 0;
        font-size: 11.5px;
    }

    .space-count strong {
        font-size: 14px;
    }

    .space-nav {
        display: none;
    }

    .feed-item {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 10px;
        padding: 16px 0;
    }

    .shuo-avatar,
    .shuo-avatar img {
        width: 38px;
        height: 38px;
    }

    .shuo-author {
        font-size: 13.5px;
    }

    .shuo-time {
        font-size: 11.5px;
    }

    .shuo-text {
        margin-top: 6px;
        font-size: 14px;
        line-height: 1.8;
    }

    .shuo-bar {
        gap: 14px;
        margin-top: 8px;
    }

    .post-title {
        font-size: 21px;
    }

    .article {
        font-size: 14.5px;
    }

    html {
        scroll-padding-top: 68px;
    }
}

@media (max-width: 420px) {
    .brand-name {
        max-width: 118px;
    }

    .site-main {
        padding: 0 12px 6px;
    }

    .feed-item {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 9px;
        padding: 15px 0;
    }

    .shuo-avatar,
    .shuo-avatar img {
        width: 34px;
        height: 34px;
    }

    .shuo-text {
        font-size: 13.5px;
    }

    .shuo-act-label {
        display: none;
    }

    .shuo-bar {
        gap: 16px;
    }

    .post-title {
        font-size: 20px;
    }
}

/* =========================================================================
   QZone single-column feed — 截图样式
   白卡片 / 灰色背景 / 蓝色昵称 / 大图 / 日期来源 / 互动
   ========================================================================= */
:root {
    --accent: #4a90e2;
    --accent-strong: #2f6fbe;
    --accent-soft: #eaf3ff;

    --bg: #f5f6f7;
    --card: #ffffff;
    --card-2: #f7f8fa;
    --text: #333333;
    --text-2: #555555;
    --muted: #999999;
    --line: #e5e7eb;
    --line-strong: #d9dde3;
    --header-bg: #ffffff;

    --radius: 4px;
    --radius-sm: 3px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 4px 14px rgba(0, 0, 0, 0.08);
}

html.dark {
    --bg: #181a1d;
    --card: #22252a;
    --card-2: #2a2e34;
    --text: #e6e8eb;
    --text-2: #b8bdc5;
    --muted: #8b919a;
    --line: #343941;
    --line-strong: #414852;
    --header-bg: #202329;

    --accent: #6aa9f0;
    --accent-strong: #8bc0ff;
    --accent-soft: #26384d;
}

body {
    background: var(--bg);
    color: var(--text);
}

/* top bar */
.site-header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--line);
    box-shadow: none;
}

.site-header[data-scrolled="1"] {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.header-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    width: min(100% - 32px, 1000px);
    height: 52px;
}

.brand {
    gap: 8px;
}

.brand-avatar {
    width: 28px;
    height: 28px;
    border: 1px solid var(--line);
}

.brand-name {
    max-width: 170px;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
}

.header-nav {
    gap: 2px;
    margin-left: 14px;
}

.nav-link {
    height: 52px;
    padding: 0 11px;
    color: var(--text-2);
    font-size: 14px;
}

.nav-link:hover {
    color: var(--accent-strong);
}

.nav-link.current {
    color: var(--accent-strong);
    font-weight: 600;
    box-shadow: inset 0 -2px 0 var(--accent);
}

.header-actions .icon-btn,
.icon-btn {
    width: 30px;
    height: 30px;
    color: var(--muted);
}

.header-actions .icon-btn:hover,
.icon-btn:hover {
    background: var(--card-2);
    color: var(--accent-strong);
}

.menu-toggle {
    width: 30px;
    height: 30px;
    color: var(--text-2);
}

/* single column */
.page-shell {
    width: min(100% - 32px, 760px);
    padding: 72px 0 36px;
}

.site-main {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    min-height: 0;
}

.feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
}

.feed-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 18px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.035);
    animation: none;
}

.feed-item:hover {
    transform: none;
    border-color: var(--line);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.feed-item:last-child {
    border-bottom: 1px solid var(--line);
}

.shuo-avatar,
.shuo-avatar img {
    width: 48px;
    height: 48px;
}

.shuo-avatar img {
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--card-2);
}

.shuo-main {
    min-width: 0;
}

.shuo-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shuo-author {
    color: var(--accent-strong);
    font-size: 15px;
    font-weight: 600;
}

.shuo-text {
    margin-top: 4px;
    color: var(--text);
    font-size: 16px;
    line-height: 1.85;
    word-break: break-word;
}

.shuo-music {
    margin-top: 12px;
}

.shuo-music .sleek-music {
    margin-top: 0;
}

/* photos */
.shuo-photos {
    display: grid;
    gap: 5px;
    margin-top: 12px;
}

.shuo-photos.count-1 {
    grid-template-columns: 1fr;
}

.shuo-photos.count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shuo-photos.count-3,
.shuo-photos.count-4,
.shuo-photos.count-5,
.shuo-photos.count-6,
.shuo-photos.count-7,
.shuo-photos.count-8,
.shuo-photos.count-9 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shuo-photo {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 2px;
    background: var(--card-2);
    aspect-ratio: auto;
    cursor: zoom-in;
}

.shuo-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shuo-photo:hover img {
    transform: none;
}

.shuo-photos.count-1 .shuo-photo {
    aspect-ratio: 16 / 9;
    max-height: 420px;
}

.shuo-photos.count-1 .shuo-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shuo-photos.count-2 .shuo-photo {
    aspect-ratio: 4 / 3;
}

.shuo-photos.count-3 .shuo-photo,
.shuo-photos.count-4 .shuo-photo,
.shuo-photos.count-5 .shuo-photo,
.shuo-photos.count-6 .shuo-photo,
.shuo-photos.count-7 .shuo-photo,
.shuo-photos.count-8 .shuo-photo,
.shuo-photos.count-9 .shuo-photo {
    aspect-ratio: 1 / 1;
}

.shuo-zoom {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 2px 8px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.94);
    color: #666;
    font-size: 12px;
    line-height: 1.6;
    opacity: 0;
    transition: opacity 0.2s var(--ease);
}

.shuo-photo:hover .shuo-zoom {
    opacity: 1;
}

.shuo-photos.count-1 .shuo-zoom {
    opacity: 1;
}

/* meta + actions */
.shuo-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
}

.shuo-date,
.shuo-source {
    white-space: nowrap;
}

.shuo-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
    margin-top: 0;
    color: var(--muted);
    font-size: 13px;
}

.shuo-act {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 13px;
    cursor: pointer;
}

.shuo-act .icon {
    width: 15px;
    height: 15px;
}

.shuo-act:hover,
.shuo-act[aria-expanded="true"] {
    background: none;
    color: var(--accent-strong);
}

.shuo-full {
    margin-left: 0;
    color: var(--accent-strong);
    font-size: 13px;
}

/* latest reply */
.feed-reply {
    margin-top: 10px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--card-2);
}

.feed-reply:hover {
    border-color: var(--line-strong);
    background: var(--card-2);
}

.feed-reply-avatar {
    width: 22px;
    height: 22px;
    border-radius: 2px;
}

.feed-reply-meta {
    color: var(--muted);
    font-size: 12px;
}

.feed-reply-label {
    color: var(--accent-strong);
}

.feed-reply-meta strong {
    color: var(--text-2);
}

.feed-reply-text {
    max-height: 3.4em;
    color: var(--text-2);
    font-size: 13px;
    line-height: 1.7;
}

.feed-reply-more .icon {
    width: 13px;
    height: 13px;
}

/* 我也说一句 */
.shuo-say {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin-top: 10px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--card-2);
    color: var(--muted);
    font-size: 13px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.shuo-say:hover {
    border-color: var(--line-strong);
    color: var(--accent-strong);
}

.shuo-say-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shuo-say-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    color: var(--muted);
}

.shuo-say-tools .icon {
    width: 16px;
    height: 16px;
}

/* comment box */
.home-comments {
    margin-top: 10px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    animation: none;
}

.home-comments-inner {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--card-2);
    box-shadow: none;
}

.home-comments-head {
    margin-bottom: 0;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--line);
}

.home-comments-title {
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.home-comments-count {
    border-radius: 2px;
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.home-comments-all {
    color: var(--accent-strong);
    font-size: 12px;
}

.home-comments .comment-body {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 8px;
    padding: 8px 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
}

.home-comments .comment-list > .comment-body:first-child {
    border-top: 0;
    padding-top: 0;
}

.home-comments .comment-avatar img {
    width: 26px;
    height: 26px;
    border: 1px solid var(--line);
    border-radius: 3px;
}

.home-comments .comment-head {
    gap: 6px;
    font-size: 12px;
}

.home-comments .comment-name {
    color: var(--accent-strong);
    font-weight: 600;
}

.home-comments .comment-time {
    color: var(--muted);
    font-size: 11px;
}

.home-comments .comment-text {
    margin-top: 2px;
    color: var(--text-2);
    font-size: 13px;
    line-height: 1.7;
}

.home-comments .comment-actions {
    font-size: 11.5px;
}

.home-comments .comment-actions a {
    color: var(--muted);
}

.home-comments .comment-actions a:hover {
    color: var(--accent-strong);
}

.home-comments .comment-children {
    margin-top: 4px;
    padding-left: 8px;
    border-left: 2px solid var(--line);
}

.home-comments .comment-children .comment-body {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 7px;
    padding: 7px 0;
}

.home-comments .comment-children .comment-avatar img {
    width: 22px;
    height: 22px;
}

.home-comment-form {
    margin-top: 9px;
    padding-top: 9px;
    border-top: 1px solid var(--line);
}

.home-comment-form .field input,
.home-comment-form textarea {
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--card);
    color: var(--text);
}

.home-comment-form .field input:focus,
.home-comment-form textarea:focus {
    border-color: var(--accent);
    outline: 0;
    box-shadow: 0 0 0 2px var(--accent-soft);
}

.home-comment-form .submit-btn {
    border-radius: 2px;
    background: var(--accent-strong);
    color: #fff;
}

.home-comment-form .submit-btn:hover {
    background: var(--accent);
}

.home-comments-empty,
.home-comments-closed,
.home-comments-error {
    border-radius: 2px;
    background: var(--card);
    color: var(--muted);
}

.reply-hint {
    border-radius: 2px;
    background: var(--accent-soft);
    color: var(--accent-strong);
}

/* article / pages */
.post-card,
.page-card,
.comments-card,
.post-nav {
    margin-bottom: 12px;
    padding: 22px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.035);
}

.post-title {
    color: var(--text);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0;
}

.post-meta {
    gap: 6px 14px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 12.5px;
}

.meta-item a {
    color: var(--text-2);
}

.meta-item a:hover {
    color: var(--accent-strong);
}

.article {
    margin-top: 18px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.95;
}

.article h2 {
    margin: 28px 0 12px;
    padding-left: 0;
    color: var(--text);
    font-size: 19px;
    font-weight: 600;
}

.article h2::before {
    display: none;
}

.article a {
    color: var(--accent-strong);
    text-decoration: underline;
    text-decoration-color: var(--accent-soft);
    text-underline-offset: 3px;
}

.article blockquote {
    margin: 18px 0;
    padding: 12px 15px;
    border-left: 3px solid var(--accent);
    border-radius: 0;
    background: var(--card-2);
    color: var(--text-2);
}

.article code {
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--card-2);
    color: var(--accent-strong);
}

.article img {
    border-radius: 2px;
}

.tag-chip {
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--card-2);
    color: var(--accent-strong);
}

.tag-chip:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.post-nav {
    display: flex;
    gap: 12px;
}

.post-nav .pn-item {
    padding: 0;
    background: transparent;
    border: 0;
}

.post-nav .pn-label {
    color: var(--muted);
}

.post-nav .pn-title {
    color: var(--text-2);
}

.post-nav .pn-title:hover {
    color: var(--accent-strong);
}

.card,
.link-card,
.photo-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.035);
}

/* footer + pager */
.site-footer {
    margin-top: 14px;
    padding: 0;
    background: transparent;
}

.footer-card {
    padding: 12px 0 4px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.footer-copy {
    color: var(--muted);
    font-size: 12px;
}

.footer-copy a {
    color: var(--text-2);
    font-weight: 500;
}

.footer-copy a:hover {
    color: var(--accent-strong);
}

.pager-wrap {
    padding: 16px 0 4px;
}

.page-navigator a,
.page-navigator span {
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--card);
    box-shadow: none;
    color: var(--text-2);
}

.page-navigator a:hover {
    border-color: var(--accent);
    color: var(--accent-strong);
}

.page-navigator .current a,
.page-navigator .current span {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    color: #fff;
}

.load-retry {
    border-radius: 2px;
    background: var(--card);
    box-shadow: none;
}

.empty-state {
    padding: 30px 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

/* responsive */
@media (max-width: 900px) {
    .header-card {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px;
        width: calc(100% - 20px);
        height: 50px;
    }

    .header-nav {
        display: none;
    }

    .brand-name {
        max-width: 150px;
        font-size: 14.5px;
    }

    .header-actions .icon-btn {
        width: 30px;
        height: 30px;
    }

    .rss-btn,
    .login-btn {
        display: none;
    }

    .menu-toggle {
        display: grid;
        width: 30px;
        height: 30px;
    }

    .page-shell {
        width: calc(100% - 20px);
        padding: 64px 0 26px;
    }

    .feed-item {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
    }

    .shuo-avatar,
    .shuo-avatar img {
        width: 40px;
        height: 40px;
    }

    .shuo-author {
        font-size: 14px;
    }

    .shuo-text {
        font-size: 14.5px;
        line-height: 1.8;
    }

    .shuo-meta {
        gap: 8px;
        margin-top: 10px;
        font-size: 12px;
    }

    .shuo-bar {
        gap: 12px;
        font-size: 12px;
    }

    .shuo-act,
    .shuo-full {
        font-size: 12px;
    }

    .post-card,
    .page-card,
    .comments-card,
    .post-nav {
        padding: 16px;
    }

    .post-title {
        font-size: 21px;
    }

    .article {
        font-size: 14.5px;
    }

    html {
        scroll-padding-top: 64px;
    }
}

@media (max-width: 420px) {
    .page-shell {
        width: calc(100% - 12px);
    }

    .feed-item {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 9px;
        padding: 10px;
    }

    .shuo-avatar,
    .shuo-avatar img {
        width: 36px;
        height: 36px;
    }

    .shuo-text {
        font-size: 14px;
    }

    .shuo-act-label {
        display: none;
    }

    .shuo-bar {
        gap: 10px;
    }

    .post-card,
    .page-card,
    .comments-card,
    .post-nav {
        padding: 13px;
    }

    .post-title {
        font-size: 20px;
    }
}

/* ---------------------------------------------------------------- a11y */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

@media print {
    .bg-decor,
    .site-header,
    .site-footer,
    .comments-card,
    .to-top,
    .overlay,
    .lightbox,
    .nav-drawer,
    .drawer-mask {
        display: none !important;
    }

    .page-shell {
        width: 100%;
        padding: 0;
    }

    body {
        background: #fff;
    }

    .card {
        border: 0;
        box-shadow: none;
    }
}

body.overlay-open,
body.lightbox-open {
    overflow: hidden;
}

/* ---------------------------------------------------------------- vian-style hero header */
.site-hero {
    position: relative;
    z-index: 5;
    width: min(100% - 36px, 880px);
    margin: 18px auto 0;
}

.hero-cover {
    position: relative;
    height: 210px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(135deg, #2b3440, #11151b 72%);
}

.hero-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 12, 18, 0.04) 28%, rgba(8, 12, 18, 0.7) 100%);
    pointer-events: none;
}

.hero-profile {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 20px 17px;
}

.hero-avatar {
    display: block;
    flex: none;
    width: 54px;
    height: 54px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.hero-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-info {
    min-width: 0;
}

.hero-name {
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.35;
    text-overflow: ellipsis;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
    white-space: nowrap;
}

.hero-bio {
    overflow: hidden;
    margin: 3px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 12px;
    line-height: 1.5;
    text-overflow: ellipsis;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
}

.hero-nav {
    border: 1px solid var(--line);
    border-radius: 0 0 8px 8px;
    background: var(--card);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.hero-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 14px 0 20px;
}

.hero-nav .header-nav {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 27px;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
}

.hero-nav .header-nav::-webkit-scrollbar {
    display: none;
}

.hero-nav .nav-link {
    position: relative;
    display: inline-flex;
    flex: none;
    align-items: center;
    padding: 16px 0;
    border-radius: 0;
    background: none;
    color: var(--text-2);
    font-size: 14px;
    letter-spacing: 0.03em;
    line-height: 1.35;
}

.hero-nav .nav-link::after {
    position: absolute;
    right: 0;
    bottom: 8px;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background: transparent;
    content: "";
    transition: background 0.2s var(--ease);
}

.hero-nav .nav-link:hover,
.hero-nav .nav-link.current {
    background: none;
    color: var(--text);
}

.hero-nav .nav-link.current {
    font-weight: 600;
}

.hero-nav .nav-link.current::after {
    background: var(--accent);
}

.hero-nav .nav-link:hover::after {
    background: var(--accent-soft);
}

.hero-actions {
    display: flex;
    flex: none;
    align-items: center;
    gap: 4px;
    margin-left: 0;
}

.hero-actions .icon-btn {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text-2);
}

.hero-actions .icon-btn:hover {
    background: var(--card-2);
    color: var(--accent-strong);
}

.hero-actions .icon-btn .icon {
    width: 19px;
    height: 19px;
}

.hero-actions .menu-toggle {
    display: none;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
}

.footer-theme {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--muted);
    cursor: pointer;
    vertical-align: middle;
}

.footer-theme:hover {
    color: var(--accent-strong);
}

.footer-theme .icon {
    width: 14px;
    height: 14px;
}

.footer-theme .icon-sun {
    display: none;
}

html.dark .footer-theme .icon-sun {
    display: block;
}

html.dark .footer-theme .icon-moon {
    display: none;
}

@media (max-width: 720px) {
    .site-hero {
        width: 100%;
        margin: 0;
    }

    .hero-cover {
        height: 170px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .hero-profile {
        gap: 11px;
        padding: 0 16px 14px;
    }

    .hero-avatar {
        width: 46px;
        height: 46px;
        border-width: 2px;
    }

    .hero-name {
        font-size: 16px;
    }

    .hero-bio {
        font-size: 11.5px;
    }

    .hero-nav {
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .hero-nav-inner {
        padding: 0 10px 0 16px;
    }

    .hero-nav .header-nav {
        display: none;
    }

    .hero-actions .menu-toggle {
        display: inline-grid;
    }
}

/* Align the cover and nav with the 760px feed column */
.site-hero {
    width: min(100% - 32px, 760px);
}

.page-shell {
    padding-top: 22px;
}

@media (max-width: 720px) {
    .site-hero {
        width: 100%;
    }

    .page-shell {
        padding-top: 18px;
    }
}

/* Article prev/next: two balanced clickable columns */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.post-nav .pn-item {
    position: relative;
    min-width: 0;
    padding: 0;
    background: transparent;
    border: 0;
}

.post-nav .pn-item + .pn-item {
    border-left: 1px solid var(--line);
}

.post-nav .pn-item > a {
    display: flex;
    flex-direction: column;
    gap: 7px;
    height: 100%;
    padding: 18px 22px;
    color: inherit;
}

.post-nav .pn-item:hover {
    background: var(--card-2);
}

.post-nav .pn-dir {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: none;
}

.post-nav .pn-prev .pn-dir::before {
    content: "←";
    font-size: 13px;
    line-height: 1;
}

.post-nav .pn-next .pn-dir::after {
    content: "→";
    font-size: 13px;
    line-height: 1;
}

.post-nav .pn-next > a {
    align-items: flex-end;
    text-align: right;
}

.post-nav .pn-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text);
    font-size: 14px;
    line-height: 1.55;
    white-space: normal;
    word-break: break-word;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.post-nav .pn-title:hover {
    color: var(--accent-strong);
}

.post-nav .pn-empty {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

@media (max-width: 600px) {
    .post-nav {
        grid-template-columns: 1fr;
    }

    .post-nav .pn-item + .pn-item {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .post-nav .pn-item > a {
        padding: 15px 18px;
    }

    .post-nav .pn-next > a {
        align-items: flex-start;
        text-align: left;
    }
}

/* Balance the new post-nav markup where the label sits outside the title link */
.post-nav .pn-item {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 18px 22px;
    cursor: pointer;
}

.post-nav .pn-item > a {
    display: inline;
    height: auto;
    padding: 0;
}

.post-nav .pn-title {
    width: 100%;
}

.post-nav .pn-title a {
    display: block;
    color: inherit;
}

.post-nav .pn-next {
    align-items: flex-end;
    text-align: right;
}

@media (max-width: 600px) {
    .post-nav .pn-item {
        padding: 15px 18px;
    }

    .post-nav .pn-next {
        align-items: flex-start;
        text-align: left;
    }
}

/* ---------------------------------------------------------------- QZone-style inline comments + likes */
.home-comments.qzone-comments {
    margin-top: 14px;
    padding: 14px 0 0;
    background: none;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    animation: none;
}

.qzone-likes {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 9px;
    color: #c08a3e;
    font-size: 12px;
    line-height: 1.5;
}

.qzone-likes[hidden] {
    display: none;
}

.qzone-likes .icon {
    width: 14px;
    height: 14px;
}

.qzone-likes b {
    font-weight: 600;
}

.qzone-comment-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.qzone-comment {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

.qzone-avatar {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--card-2);
    object-fit: cover;
}

.qzone-body {
    min-width: 0;
    flex: 1 1 auto;
}

.qzone-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    line-height: 1.4;
}

.qzone-name {
    color: #b98132;
    font-size: 13px;
    font-weight: 500;
}

.qzone-owner {
    padding: 0 5px;
    border-radius: 3px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 9.5px;
    line-height: 1.5;
}

.qzone-time {
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
}

.qzone-text {
    margin-top: 2px;
    color: var(--text);
    font-size: 13.5px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.qzone-reply-to {
    color: #b98132;
}

.qzone-reply-to b {
    font-weight: 500;
}

.qzone-reply {
    margin: 1px 0 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.18s var(--ease), color 0.18s var(--ease);
}

.qzone-comment:hover .qzone-reply,
.qzone-reply:focus-visible {
    opacity: 1;
}

.qzone-reply:hover {
    color: var(--accent-strong);
}

.qzone-comment.is-reply {
    margin-left: 38px;
}

.qzone-comment.is-reply .qzone-avatar {
    width: 26px;
    height: 26px;
}

.qzone-comment.is-reply .qzone-name {
    font-size: 12.5px;
}

.qzone-empty {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.7;
}

.qzone-comments .qzone-form {
    margin-top: 13px;
}

.qzone-compose {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 4px 0 0;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--card-2);
    transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.qzone-compose:focus-within {
    border-color: var(--accent);
    background: var(--card);
}

.qzone-compose > input[name="text"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 38px;
    padding: 0 12px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 13px;
    line-height: 38px;
}

.qzone-compose > input[name="text"]::placeholder {
    color: var(--muted);
}

.qzone-send {
    display: grid;
    flex: none;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.qzone-send:hover {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.qzone-send .icon {
    width: 16px;
    height: 16px;
}

.qzone-fields {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 9px;
}

.qzone-form.is-active .qzone-fields {
    display: grid;
}

.qzone-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.qzone-field > span {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.3;
}

.qzone-field input {
    width: 100%;
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--card);
    color: var(--text);
    font-size: 12px;
}

.qzone-form .reply-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 11.5px;
}

.qzone-form .reply-hint[hidden] {
    display: none;
}

.qzone-form .reply-cancel {
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent-strong);
    font-size: 11.5px;
    cursor: pointer;
}

.qzone-closed {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 12px;
}

/* Likes in card meta and post meta */
.like-btn {
    font-variant-numeric: tabular-nums;
}

.like-btn.is-liked {
    color: #c08a3e;
}

.like-btn:disabled {
    opacity: 1;
    cursor: default;
}

.like-btn .like-count {
    min-width: 1ch;
}

.post-meta .meta-like .like-btn,
.meta-like .like-btn {
    color: inherit;
    font-size: inherit;
}

.meta-like .like-btn .icon {
    width: 15px;
    height: 15px;
}

html.dark .qzone-name,
html.dark .qzone-reply-to,
html.dark .qzone-likes {
    color: #e0b56e;
}

@media (max-width: 600px) {
    .qzone-comment.is-reply {
        margin-left: 20px;
    }

    .qzone-comment.is-reply .qzone-avatar {
        width: 24px;
        height: 24px;
    }

    .qzone-reply {
        opacity: 1;
    }

    .qzone-fields {
        grid-template-columns: 1fr;
    }

    .qzone-compose > input[name="text"] {
        font-size: 16px;
    }
}

.qzone-pending {
    padding: 0 5px;
    border-radius: 3px;
    background: #fff3d9;
    color: #b98132;
    font-size: 9.5px;
    line-height: 1.5;
}

html.dark .qzone-pending {
    background: rgba(224, 181, 110, 0.16);
    color: #e0b56e;
}

/* Remove the legacy inner-comment card styling */
.home-comments.qzone-comments .home-comments-inner {
    padding: 0;
    border: 0;
    background: none;
}

/* Compact send button must beat .home-comment-form .submit-btn */
.home-comment-form.qzone-form .qzone-send {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--muted);
}

.home-comment-form.qzone-form .qzone-send:hover {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.home-comment-form.qzone-form .qzone-send .icon {
    width: 16px;
    height: 16px;
}

/* Always show an avatar while remote gravatar is loading or blocked */
.qzone-avatar {
    background-color: var(--card-2);
    background-image: url("../img/avatar.svg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.qzone-avatar {
    background-image: none;
    background-color: var(--card-2);
}

/* Compact, tidier QZone comment list */
.qzone-comment-list {
    gap: 7px;
}

.qzone-comment {
    position: relative;
    margin-left: -8px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.18s var(--ease);
}

.qzone-comment:hover {
    background: var(--card-2);
}

.qzone-avatar {
    width: 28px;
    height: 28px;
}

.qzone-body {
    position: relative;
    padding-right: 34px;
}

.qzone-head {
    gap: 6px;
    line-height: 1.35;
}

.qzone-name {
    font-size: 12.5px;
}

.qzone-time {
    font-size: 10.5px;
}

.qzone-text {
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.6;
}

.qzone-reply {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    padding: 0;
    font-size: 10.5px;
    line-height: 1.5;
    opacity: 0;
}

.qzone-comment:hover .qzone-reply,
.qzone-reply:focus-visible {
    opacity: 1;
}

.qzone-comment.is-reply {
    margin-left: 30px;
    padding: 3px 8px;
}

.qzone-comment.is-reply .qzone-avatar {
    width: 22px;
    height: 22px;
}

.qzone-comment.is-reply .qzone-body {
    padding-right: 30px;
}

.qzone-comment.is-reply .qzone-name {
    font-size: 12px;
}

.qzone-comment.is-reply .qzone-text {
    font-size: 12.5px;
    line-height: 1.6;
}

.qzone-likes {
    margin-bottom: 7px;
    font-size: 11.5px;
}

.qzone-comments .qzone-form {
    margin-top: 11px;
}

.qzone-compose {
    height: 38px;
}

.qzone-compose > input[name="text"] {
    height: 36px;
    line-height: 36px;
}

@media (max-width: 600px) {
    .qzone-comment {
        margin-left: -4px;
        padding: 4px;
    }

    .qzone-comment.is-reply {
        margin-left: 18px;
        padding: 3px 4px;
    }

    .qzone-body,
    .qzone-comment.is-reply .qzone-body {
        padding-right: 30px;
    }

    .qzone-reply {
        opacity: 1;
    }
}

/* Keep site avatars visible while the remote image is loading */
.hero-avatar,
.shuo-avatar,
.drawer-brand {
    background-color: var(--card-2);
    background-image: url("../img/avatar.svg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Card meta: title + date + source/category */
.shuo-title {
    flex: 0 1 auto;
    max-width: 58%;
    overflow: hidden;
    color: var(--text);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shuo-title:hover {
    color: var(--accent-strong);
}

.shuo-source a {
    color: inherit;
}

.shuo-source a:hover {
    color: var(--accent-strong);
}

@media (max-width: 600px) {
    .shuo-title {
        flex: 1 1 100%;
        max-width: 100%;
        display: -webkit-box;
        overflow: hidden;
        white-space: normal;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
}

/* Truncated article link card, replaces the old "全文" text link */
.shuo-link-card {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 11px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--card-2);
    color: var(--text);
    transition: border-color 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.shuo-link-card:hover {
    border-color: var(--accent);
    background: var(--card);
    color: var(--text);
    box-shadow: 0 4px 14px -8px var(--accent-strong);
}

.shuo-link-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.shuo-link-icon .icon {
    width: 16px;
    height: 16px;
}

.shuo-link-main {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.shuo-link-kicker {
    color: var(--muted);
    font-size: 10.5px;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.shuo-link-title {
    overflow: hidden;
    color: var(--text);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shuo-link-arrow {
    display: grid;
    flex: none;
    place-items: center;
    color: var(--muted);
    transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}

.shuo-link-arrow .icon {
    width: 15px;
    height: 15px;
}

.shuo-link-card:hover .shuo-link-arrow {
    color: var(--accent-strong);
    transform: translateX(2px);
}

@media (max-width: 600px) {
    .shuo-link-card {
        gap: 9px;
        padding: 9px 10px;
    }

    .shuo-link-title {
        display: -webkit-box;
        overflow: hidden;
        white-space: normal;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
}

/* Truncated summary link card: thumbnail + excerpt */
.shuo-link-card {
    gap: 10px;
    padding: 8px 10px;
}

.shuo-link-thumb {
    position: relative;
    display: grid;
    flex: none;
    place-items: center;
    width: 58px;
    height: 58px;
    overflow: hidden;
    border-radius: 6px;
    background: var(--card);
    color: var(--muted);
}

.shuo-link-thumb-icon {
    display: grid;
    place-items: center;
}

.shuo-link-thumb-icon .icon {
    width: 18px;
    height: 18px;
}

.shuo-link-thumb img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shuo-link-main {
    gap: 2px;
}

.shuo-link-kicker {
    font-size: 10px;
}

.shuo-link-excerpt {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    white-space: normal;
    word-break: break-word;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

@media (max-width: 600px) {
    .shuo-link-card {
        gap: 9px;
        padding: 8px 9px;
    }

    .shuo-link-thumb {
        width: 50px;
        height: 50px;
    }

    .shuo-link-excerpt {
        font-size: 12.5px;
    }
}

/* Shorten the summary link card to 4/5 width */
.shuo-link-card {
    width: 80%;
    max-width: 100%;
}

@media (max-width: 600px) {
    .shuo-link-card {
        width: 100%;
    }
}

/* Refined hero navigation: quieter bar, soft active pill */
.hero-nav {
    border-color: rgba(15, 23, 42, 0.08);
    border-radius: 0 0 10px 10px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 26px -16px rgba(15, 23, 42, 0.22);
}

.hero-nav-inner {
    gap: 10px;
    padding: 8px 12px;
}

.hero-nav .header-nav {
    gap: 3px;
    margin: 0;
    padding: 2px 0;
}

.hero-nav .nav-link {
    height: auto;
    min-height: 34px;
    padding: 7px 13px;
    border-radius: 7px;
    box-shadow: none;
    color: var(--text-2);
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.4;
    transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.hero-nav .nav-link::after {
    display: none;
}

.hero-nav .nav-link:hover {
    background: var(--card-2);
    color: var(--text);
}

.hero-nav .nav-link.current {
    background: var(--accent-soft);
    box-shadow: none;
    color: var(--accent-strong);
    font-weight: 600;
}

.hero-nav .nav-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.hero-nav .hero-actions {
    gap: 2px;
    margin-left: 2px;
    padding-left: 8px;
    border-left: 1px solid var(--line);
}

.hero-nav .icon-btn {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
}

.hero-nav .icon-btn:hover {
    background: var(--card-2);
    color: var(--accent-strong);
}

@media (max-width: 600px) {
    .hero-nav-inner {
        padding: 6px 8px;
    }

    .hero-nav .header-nav {
        gap: 1px;
    }

    .hero-nav .nav-link {
        padding: 7px 10px;
        font-size: 13px;
    }

    .hero-nav .hero-actions {
        padding-left: 6px;
    }
}

/* Redesigned Links page */
.links-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
    padding: 24px 26px;
    overflow: hidden;
    border: 1px solid #e6eef9;
    border-radius: 14px;
    background:
        radial-gradient(circle at 88% 15%, rgba(74, 144, 226, 0.13), transparent 32%),
        linear-gradient(135deg, #f7faff 0%, #ffffff 55%, #edf5ff 100%);
    box-shadow: 0 10px 30px -24px rgba(15, 23, 42, 0.25);
}

.links-hero::after {
    position: absolute;
    right: -60px;
    bottom: -100px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(74, 144, 226, 0.06);
    content: "";
}

.links-hero-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.links-kicker {
    display: block;
    color: var(--accent-strong);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.4;
}

.links-title {
    margin: 5px 0 3px;
    color: var(--text);
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.links-sub {
    margin: 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.6;
}

.links-hero-faces {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    flex: none;
    padding-left: 10px;
}

.links-face {
    position: relative;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-left: -10px;
    overflow: hidden;
    border: 2px solid #fff;
    border-radius: 50%;
    background: hsl(var(--hue, 212) 60% 88%);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.links-face:first-child {
    margin-left: 0;
}

.links-face > span {
    color: hsl(var(--hue, 212) 44% 32%);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.links-face img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.links-face-more {
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
}

.links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 0;
}

.link-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 168px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
    box-shadow: 0 2px 10px -8px rgba(15, 23, 42, 0.22);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.link-card:hover {
    border-color: var(--accent);
    box-shadow: 0 16px 32px -24px rgba(74, 144, 226, 0.65);
    transform: translateY(-3px);
}

.link-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.link-avatar {
    width: 50px;
    height: 50px;
    border: 3px solid var(--card);
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--line), 0 3px 10px rgba(15, 23, 42, 0.12);
}

.link-initial {
    font-size: 18px;
}

.link-arrow {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--muted);
    transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
}

.link-arrow .icon {
    width: 12px;
    height: 12px;
}

.link-card:hover .link-arrow {
    border-color: transparent;
    background: var(--accent-soft);
    color: var(--accent-strong);
    transform: rotate(-45deg);
}

.link-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    margin-top: 11px;
}

.link-name {
    color: var(--text);
    font-size: 15.5px;
    font-weight: 650;
    line-height: 1.35;
}

.link-desc {
    display: -webkit-box;
    min-height: 37px;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.link-desc.is-empty {
    opacity: 0.62;
}

.link-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 11px;
    border-top: 1px solid var(--line);
}

.link-domain {
    overflow: hidden;
    color: var(--muted);
    font-size: 10.5px;
    letter-spacing: 0.02em;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.link-visit {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 2px;
    color: var(--accent-strong);
    font-size: 11px;
    font-weight: 600;
}

.link-visit .icon {
    width: 11px;
    height: 11px;
    transition: transform 0.18s var(--ease);
}

.link-card:hover .link-visit .icon {
    transform: translateX(2px);
}

.links-exchange {
    margin-top: 16px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(180deg, #fbfcfe 0%, var(--card) 100%);
}

.links-exchange-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.links-exchange-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.links-exchange-icon .icon {
    width: 15px;
    height: 15px;
}

.links-exchange-head h2 {
    margin: 1px 0 0;
    color: var(--text);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
}

.links-exchange-content {
    color: var(--text-2);
    font-size: 13px;
    line-height: 1.8;
}

.links-exchange-content p {
    margin: 5px 0;
}

.links-exchange-content a {
    color: var(--accent-strong);
    word-break: break-all;
}

html.dark .links-hero {
    border-color: #2c3540;
    background:
        radial-gradient(circle at 88% 15%, rgba(74, 144, 226, 0.16), transparent 32%),
        linear-gradient(135deg, #20242b 0%, #1b1e24 55%, #202833 100%);
    box-shadow: 0 10px 30px -24px rgba(0, 0, 0, 0.6);
}

html.dark .links-face {
    border-color: #1d2026;
}

html.dark .links-exchange {
    border-color: #30343b;
    background: linear-gradient(180deg, #202329 0%, #1d2026 100%);
}

html.dark .link-desc,
html.dark .link-domain,
html.dark .links-sub {
    color: #9299a4;
}

@media (max-width: 700px) {
    .links-hero {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 14px;
        padding: 19px 18px;
    }

    .links-title {
        font-size: 22px;
    }

    .links-hero-faces {
        padding-left: 0;
    }

    .links-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .link-card {
        min-height: 152px;
        padding: 14px;
    }

    .links-exchange {
        padding: 16px;
    }
}

/* Redesigned archive page */
.archive-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 14px;
    padding: 24px 26px;
    overflow: hidden;
    border: 1px solid #e6eef9;
    border-radius: 14px;
    background:
        radial-gradient(circle at 88% 15%, rgba(74, 144, 226, 0.13), transparent 32%),
        linear-gradient(135deg, #f7faff 0%, #ffffff 55%, #edf5ff 100%);
    box-shadow: 0 10px 30px -24px rgba(15, 23, 42, 0.25);
}

.archive-hero::after {
    position: absolute;
    right: -50px;
    bottom: -120px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(74, 144, 226, 0.06);
    content: "";
}

.archive-hero-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.archive-kicker {
    display: block;
    color: var(--accent-strong);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.4;
}

.archive-hero-title {
    margin: 5px 0 3px;
    color: var(--text);
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.archive-hero-sub {
    margin: 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.6;
}

.archive-stats {
    position: relative;
    z-index: 1;
    display: flex;
    flex: none;
    align-items: center;
    gap: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(74, 144, 226, 0.16);
}

.archive-stat {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 48px;
}

.archive-stat strong {
    color: var(--text);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.archive-stat span {
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.4;
}

.archive-years {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 14px;
}

.archive-years a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--card);
    color: var(--text-2);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    font-variant-numeric: tabular-nums;
    transition: border-color 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease);
}

.archive-years a:hover {
    border-color: transparent;
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.archive-years em {
    color: var(--muted);
    font-size: 10px;
    font-style: normal;
    font-weight: 500;
}

.archive-years a:hover em {
    color: var(--accent-strong);
    opacity: 0.7;
}

.archive-intro {
    margin: 0 0 14px;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card-2);
    color: var(--text-2);
    font-size: 13px;
    line-height: 1.8;
}

.archive-intro p {
    margin: 4px 0;
}

.archive-timeline {
    padding: 4px 22px 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    box-shadow: 0 4px 20px -18px rgba(15, 23, 42, 0.25);
}

.archive-year {
    padding: 18px 0 6px;
    scroll-margin-top: 16px;
}

.archive-year + .archive-year {
    border-top: 1px dashed var(--line);
}

.archive-year-head {
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin-bottom: 6px;
}

.archive-year-head h2 {
    margin: 0;
    color: var(--text);
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.archive-year-count {
    flex: none;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.4;
}

.archive-year-rule {
    flex: 1 1 auto;
    height: 1px;
    margin-left: 5px;
    background: var(--line);
}

.archive-list {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
    --archive-line: 81px;
}

.archive-list::before {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: var(--archive-line);
    width: 1px;
    background: var(--line);
    content: "";
}

.archive-item a {
    display: grid;
    grid-template-columns: 56px 10px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    margin: 0 -10px;
    border-radius: 8px;
    transition: background 0.16s var(--ease), transform 0.16s var(--ease);
}

.archive-item a:hover {
    background: var(--card-2);
    transform: translateX(2px);
}

.archive-item time {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 2px;
    color: var(--muted);
    line-height: 1.35;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.archive-month {
    font-size: 10px;
}

.archive-item time strong {
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
}

.archive-dot {
    position: relative;
    z-index: 1;
    display: block;
    width: 7px;
    height: 7px;
    border: 1.5px solid var(--card);
    border-radius: 50%;
    background: #cbd3df;
    box-shadow: 0 0 0 1px var(--line);
    transition: background 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.archive-item a:hover .archive-dot {
    background: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.archive-title {
    overflow: hidden;
    color: var(--text-2);
    font-size: 13.5px;
    line-height: 1.55;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.archive-item a:hover .archive-title {
    color: var(--accent-strong);
}

.archive-arrow {
    display: grid;
    place-items: center;
    color: var(--muted);
    opacity: 0;
    transform: translateX(-2px);
    transition: opacity 0.16s var(--ease), transform 0.16s var(--ease), color 0.16s var(--ease);
}

.archive-arrow .icon {
    width: 13px;
    height: 13px;
}

.archive-item a:hover .archive-arrow {
    color: var(--accent-strong);
    opacity: 1;
    transform: translateX(0);
}

.archive-empty-state {
    margin-top: 14px;
    padding: 46px 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    text-align: center;
}

.archive-empty-state .empty-icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 8px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.archive-empty-state .empty-icon .icon {
    width: 20px;
    height: 20px;
}

.archive-empty-state h2 {
    margin: 0 0 4px;
    font-size: 15px;
}

.archive-empty-state p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

html.dark .archive-hero {
    border-color: #2c3540;
    background:
        radial-gradient(circle at 88% 15%, rgba(74, 144, 226, 0.16), transparent 32%),
        linear-gradient(135deg, #20242b 0%, #1b1e24 55%, #202833 100%);
    box-shadow: 0 10px 30px -24px rgba(0, 0, 0, 0.6);
}

html.dark .archive-stats {
    border-left-color: rgba(74, 144, 226, 0.22);
}

html.dark .archive-timeline,
html.dark .archive-empty-state {
    background: #1d2026;
    border-color: #30343b;
}

html.dark .archive-dot {
    border-color: #1d2026;
    background: #4a5360;
    box-shadow: 0 0 0 1px #3a414b;
}

html.dark .archive-intro {
    background: #202329;
    border-color: #30343b;
}

html.dark .archive-years a {
    background: #1d2026;
    border-color: #30343b;
}

html.dark .archive-years a:hover {
    background: rgba(74, 144, 226, 0.16);
}

@media (max-width: 700px) {
    .archive-hero {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 16px;
        padding: 19px 18px;
    }

    .archive-hero-title {
        font-size: 22px;
    }

    .archive-stats {
        width: 100%;
        padding-top: 12px;
        padding-left: 0;
        border-top: 1px solid rgba(74, 144, 226, 0.14);
        border-left: 0;
    }

    .archive-years {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .archive-years::-webkit-scrollbar {
        display: none;
    }

    .archive-years a {
        flex: none;
    }

    .archive-timeline {
        padding: 2px 14px 16px;
    }

    .archive-list {
        --archive-line: 68px;
    }

    .archive-item a {
        grid-template-columns: 46px 8px minmax(0, 1fr) 14px;
        gap: 8px;
        padding: 8px;
        margin: 0 -8px;
    }

    .archive-title {
        font-size: 13px;
    }
}

/* Redesigned album page */
.album-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 14px;
    padding: 24px 26px;
    overflow: hidden;
    border: 1px solid #e6eef9;
    border-radius: 14px;
    background:
        radial-gradient(circle at 88% 15%, rgba(74, 144, 226, 0.13), transparent 32%),
        linear-gradient(135deg, #f7faff 0%, #ffffff 55%, #edf5ff 100%);
    box-shadow: 0 10px 30px -24px rgba(15, 23, 42, 0.25);
}

.album-hero::after {
    position: absolute;
    right: -50px;
    bottom: -120px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(74, 144, 226, 0.06);
    content: "";
}

.album-hero-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.album-kicker {
    display: block;
    color: var(--accent-strong);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.4;
}

.album-hero-title {
    margin: 5px 0 3px;
    color: var(--text);
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.album-hero-sub {
    margin: 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.6;
}

.album-stats {
    position: relative;
    z-index: 1;
    display: flex;
    flex: none;
    align-items: center;
    gap: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(74, 144, 226, 0.16);
}

.album-stat {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 48px;
}

.album-stat strong {
    color: var(--text);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.album-stat span {
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.4;
}

.album-intro {
    margin: 0 0 14px;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card-2);
    color: var(--text-2);
    font-size: 13px;
    line-height: 1.8;
}

.album-intro p {
    margin: 4px 0;
}

.album-grid {
    columns: 3;
    column-gap: 14px;
}

.album-item {
    position: relative;
    display: inline-block;
    width: 100%;
    min-height: 120px;
    margin: 0 0 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #eef2f7;
    box-shadow: 0 3px 14px -12px rgba(15, 23, 42, 0.35);
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.album-item:hover {
    border-color: var(--accent);
    box-shadow: 0 16px 30px -22px rgba(74, 144, 226, 0.55);
    transform: translateY(-2px);
}

.album-frame {
    display: block;
    overflow: hidden;
}

.album-frame img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.35s var(--ease);
}

.album-item:hover .album-frame img {
    transform: scale(1.025);
}

.album-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 34px 12px 10px;
    background: linear-gradient(180deg, transparent 0%, rgba(8, 13, 21, 0.78) 100%);
    pointer-events: none;
}

.album-caption-title {
    display: -webkit-box;
    overflow: hidden;
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    text-overflow: ellipsis;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.album-caption-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    line-height: 1.35;
    font-variant-numeric: tabular-nums;
}

.album-caption-meta > span {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 2px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
}

.album-caption-meta .icon {
    width: 10px;
    height: 10px;
    transition: transform 0.18s var(--ease);
}

.album-item:hover .album-caption-meta .icon {
    transform: translateX(2px);
}

.album-empty {
    padding: 46px 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    text-align: center;
}

.album-empty .empty-icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 8px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.album-empty .empty-icon .icon {
    width: 20px;
    height: 20px;
}

.album-empty h2 {
    margin: 0 0 4px;
    font-size: 15px;
}

.album-empty p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

html.dark .album-hero {
    border-color: #2c3540;
    background:
        radial-gradient(circle at 88% 15%, rgba(74, 144, 226, 0.16), transparent 32%),
        linear-gradient(135deg, #20242b 0%, #1b1e24 55%, #202833 100%);
    box-shadow: 0 10px 30px -24px rgba(0, 0, 0, 0.6);
}

html.dark .album-stats {
    border-left-color: rgba(74, 144, 226, 0.22);
}

html.dark .album-item {
    border-color: #30343b;
    background: #24272d;
}

html.dark .album-intro {
    background: #202329;
    border-color: #30343b;
}

html.dark .album-empty {
    background: #1d2026;
    border-color: #30343b;
}

@media (max-width: 900px) {
    .album-grid {
        columns: 2;
    }
}

@media (max-width: 700px) {
    .album-hero {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 16px;
        padding: 19px 18px;
    }

    .album-hero-title {
        font-size: 22px;
    }

    .album-stats {
        width: 100%;
        padding-top: 12px;
        padding-left: 0;
        border-top: 1px solid rgba(74, 144, 226, 0.14);
        border-left: 0;
    }

    .album-grid {
        column-gap: 9px;
    }

    .album-item {
        margin-bottom: 9px;
        border-radius: 9px;
    }

    .album-caption {
        padding: 28px 9px 8px;
    }

    .album-caption-title {
        font-size: 11.5px;
    }

    .album-caption-meta {
        font-size: 9.5px;
    }
}

/* Redesigned about page */
.about-hero {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-bottom: 14px;
    padding: 24px 26px;
    overflow: hidden;
    border: 1px solid #e6eef9;
    border-radius: 14px;
    background:
        radial-gradient(circle at 88% 15%, rgba(74, 144, 226, 0.13), transparent 32%),
        linear-gradient(135deg, #f7faff 0%, #ffffff 55%, #edf5ff 100%);
    box-shadow: 0 10px 30px -24px rgba(15, 23, 42, 0.25);
}

.about-hero::after {
    position: absolute;
    right: -50px;
    bottom: -120px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(74, 144, 226, 0.06);
    content: "";
}

.about-profile {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.about-avatar {
    position: relative;
    display: grid;
    flex: none;
    place-items: center;
    width: 78px;
    height: 78px;
    overflow: hidden;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--card-2) url("../img/avatar.svg") center / cover no-repeat;
    box-shadow: 0 0 0 1px var(--line), 0 6px 18px -8px rgba(15, 23, 42, 0.28);
}

.about-avatar img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-profile-copy {
    min-width: 0;
}

.about-kicker {
    display: block;
    color: var(--accent-strong);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.4;
}

.about-name {
    margin: 3px 0 2px;
    color: var(--text);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.about-signature {
    margin: 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.6;
}

.about-actions {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
}

.about-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-2);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.about-action .icon {
    width: 12px;
    height: 12px;
}

.about-action:hover {
    border-color: transparent;
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.about-stats {
    position: relative;
    z-index: 1;
    display: grid;
    flex: 0 0 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(74, 144, 226, 0.14);
}

.about-stat {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 0 16px;
    border-left: 1px solid rgba(74, 144, 226, 0.12);
}

.about-stat:first-child {
    padding-left: 0;
    border-left: 0;
}

.about-stat strong {
    color: var(--text);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.about-stat span {
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.4;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
    gap: 14px;
}

.about-card {
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
    box-shadow: 0 3px 16px -16px rgba(15, 23, 42, 0.25);
}

.about-card-head {
    margin-bottom: 10px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--line);
}

.about-card-head h2 {
    margin: 2px 0 0;
    color: var(--text);
    font-size: 16px;
    font-weight: 650;
    line-height: 1.35;
}

.about-prose {
    color: var(--text-2);
    font-size: 13.5px;
    line-height: 1.9;
}

.about-prose p {
    margin: 7px 0;
}

.about-prose p:first-child {
    margin-top: 0;
}

.about-prose p:last-child {
    margin-bottom: 0;
}

.about-prose strong {
    color: var(--text);
    font-weight: 650;
}

.about-prose a {
    color: var(--accent-strong);
}

.about-prose blockquote {
    margin: 12px 0;
    padding: 8px 12px;
    border-left: 2px solid var(--accent);
    background: var(--accent-soft);
    color: var(--text-2);
    border-radius: 0 6px 6px 0;
}

.about-info {
    background: linear-gradient(180deg, #fbfcfe 0%, var(--card) 100%);
}

.about-facts {
    margin: 0;
    padding: 0;
}

.about-facts > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px dashed var(--line);
}

.about-facts > div:last-child {
    border-bottom: 0;
}

.about-facts dt {
    color: var(--muted);
    font-size: 11.5px;
}

.about-facts dd {
    margin: 0;
    color: var(--text-2);
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.about-rss {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    color: var(--accent-strong);
    font-size: 11px;
    font-weight: 600;
}

.about-rss .icon {
    width: 12px;
    height: 12px;
}

.about-recent {
    margin-top: 14px;
}

.about-recent-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.about-more {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.4;
}

.about-more .icon {
    width: 11px;
    height: 11px;
}

.about-more:hover {
    color: var(--accent-strong);
}

.about-recent-list {
    display: flex;
    flex-direction: column;
}

.about-recent-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 10px;
    padding: 8px 8px;
    margin: 0 -8px;
    border-radius: 7px;
    color: var(--text-2);
    transition: background 0.16s var(--ease);
}

.about-recent-item:hover {
    background: var(--card-2);
    color: var(--text);
}

.about-recent-item time {
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
}

.about-recent-item > span {
    overflow: hidden;
    font-size: 12.5px;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.about-recent-item .icon {
    width: 12px;
    height: 12px;
    color: var(--muted);
    opacity: 0;
    transition: opacity 0.16s var(--ease), transform 0.16s var(--ease);
}

.about-recent-item:hover .icon {
    color: var(--accent-strong);
    opacity: 1;
    transform: translateX(2px);
}

html.dark .about-hero {
    border-color: #2c3540;
    background:
        radial-gradient(circle at 88% 15%, rgba(74, 144, 226, 0.16), transparent 32%),
        linear-gradient(135deg, #20242b 0%, #1b1e24 55%, #202833 100%);
    box-shadow: 0 10px 30px -24px rgba(0, 0, 0, 0.6);
}

html.dark .about-stats {
    border-top-color: rgba(74, 144, 226, 0.22);
}

html.dark .about-stat {
    border-left-color: rgba(74, 144, 226, 0.2);
}

html.dark .about-card {
    background: #1d2026;
    border-color: #30343b;
}

html.dark .about-info {
    background: linear-gradient(180deg, #202329 0%, #1d2026 100%);
}

html.dark .about-action {
    background: rgba(255, 255, 255, 0.04);
    border-color: #30343b;
}

html.dark .about-action:hover {
    background: rgba(74, 144, 226, 0.16);
}

@media (max-width: 800px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .about-hero {
        align-items: flex-start;
        gap: 14px;
        padding: 19px 18px;
    }

    .about-avatar {
        width: 64px;
        height: 64px;
    }

    .about-name {
        font-size: 22px;
    }

    .about-actions {
        width: 100%;
        margin-left: 0;
    }

    .about-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 0;
        margin-top: 14px;
        padding-top: 12px;
    }

    .about-stat {
        padding: 0 12px;
    }

    .about-stat:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .about-recent-item {
        grid-template-columns: 64px minmax(0, 1fr) 14px;
    }
}

/* Links page exchange CTA and comments */
.links-apply {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
    padding: 8px 13px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.35;
    box-shadow: 0 6px 16px -10px rgba(74, 144, 226, 0.8);
    transition: background 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}

.links-apply .icon {
    width: 12px;
    height: 12px;
}

.links-apply:hover {
    background: var(--accent-strong);
    color: #fff;
    box-shadow: 0 9px 20px -10px rgba(74, 144, 226, 0.9);
    transform: translateY(-1px);
}

.links-comment-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(74, 144, 226, 0.16);
    border-radius: 10px;
    background: linear-gradient(90deg, var(--accent-soft) 0%, rgba(74, 144, 226, 0.02) 100%);
}

.links-comment-note-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--accent-strong);
}

.links-comment-note-icon .icon {
    width: 14px;
    height: 14px;
}

.links-comment-note strong {
    display: block;
    color: var(--text);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;
}

.links-comment-note p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

.links-comments {
    margin-top: 12px;
}

html.dark .links-comment-note {
    border-color: rgba(74, 144, 226, 0.22);
    background: linear-gradient(90deg, rgba(74, 144, 226, 0.14) 0%, rgba(74, 144, 226, 0.02) 100%);
}

html.dark .links-comment-note-icon {
    background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 600px) {
    .links-comment-note {
        padding: 10px 12px;
    }
}

/* Redesigned tags page */
.tags-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 14px;
    padding: 24px 26px;
    overflow: hidden;
    border: 1px solid #e6eef9;
    border-radius: 14px;
    background:
        radial-gradient(circle at 88% 15%, rgba(74, 144, 226, 0.13), transparent 32%),
        linear-gradient(135deg, #f7faff 0%, #ffffff 55%, #edf5ff 100%);
    box-shadow: 0 10px 30px -24px rgba(15, 23, 42, 0.25);
}

.tags-hero::after {
    position: absolute;
    right: -60px;
    bottom: -110px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: rgba(74, 144, 226, 0.06);
    content: "";
}

.tags-hero-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.tags-kicker {
    display: block;
    color: var(--accent-strong);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.4;
}

.tags-title {
    margin: 5px 0 3px;
    color: var(--text);
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.tags-sub {
    margin: 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.6;
}

.tags-stats {
    position: relative;
    z-index: 1;
    display: flex;
    flex: none;
    align-items: center;
    gap: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(74, 144, 226, 0.16);
}

.tags-stat {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 48px;
}

.tags-stat strong {
    color: var(--text);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.tags-stat span {
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.4;
}

.tags-intro {
    margin-bottom: 14px;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card-2);
    color: var(--text-2);
    font-size: 13px;
    line-height: 1.8;
}

.tags-intro p {
    margin: 4px 0;
}

.tags-card {
    padding: 18px 20px 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    box-shadow: 0 4px 20px -18px rgba(15, 23, 42, 0.25);
}

.tags-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--line);
}

.tags-head h2 {
    margin: 2px 0 0;
    color: var(--text);
    font-size: 16px;
    font-weight: 650;
    line-height: 1.35;
}

.tags-hint {
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.4;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card-2);
    color: var(--text-2);
    line-height: 1.35;
    transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
}

.tag-pill:hover {
    border-color: transparent;
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.tag-pill.level-1 {
    font-size: 12.5px;
}

.tag-pill.level-2 {
    padding: 8px 12px;
    background: rgba(74, 144, 226, 0.06);
    font-size: 13.5px;
    font-weight: 500;
}

.tag-pill.level-3 {
    padding: 9px 14px;
    border-color: rgba(74, 144, 226, 0.2);
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 15px;
    font-weight: 600;
}

.tag-pill.level-3:hover {
    border-color: transparent;
    background: var(--accent);
    color: #fff;
}

.tag-hash {
    color: var(--muted);
    font-size: 0.9em;
    opacity: 0.75;
}

.tag-pill.level-3 .tag-hash {
    color: var(--accent-strong);
    opacity: 0.55;
}

.tag-pill:hover .tag-hash,
.tag-pill.level-3:hover .tag-hash {
    color: rgba(255, 255, 255, 0.75);
}

.tag-name {
    white-space: nowrap;
}

.tag-count {
    display: inline-grid;
    place-items: center;
    min-width: 17px;
    height: 17px;
    margin-left: 4px;
    padding: 0 4px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.tag-pill.level-3 .tag-count {
    background: rgba(74, 144, 226, 0.13);
    color: var(--accent-strong);
}

.tag-pill:hover .tag-count,
.tag-pill.level-3:hover .tag-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.tags-footnote {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    margin-top: 14px;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.5;
}

.tags-footnote .icon {
    width: 12px;
    height: 12px;
}

.tags-footnote p {
    margin: 0;
}

.tags-empty {
    padding: 46px 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    text-align: center;
}

.tags-empty .empty-icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 8px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.tags-empty .empty-icon .icon {
    width: 20px;
    height: 20px;
}

.tags-empty h2 {
    margin: 0 0 4px;
    font-size: 15px;
}

.tags-empty p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

html.dark .tags-hero {
    border-color: #2c3540;
    background:
        radial-gradient(circle at 88% 15%, rgba(74, 144, 226, 0.16), transparent 32%),
        linear-gradient(135deg, #20242b 0%, #1b1e24 55%, #202833 100%);
    box-shadow: 0 10px 30px -24px rgba(0, 0, 0, 0.6);
}

html.dark .tags-stats {
    border-left-color: rgba(74, 144, 226, 0.22);
}

html.dark .tags-card,
html.dark .tags-empty {
    background: #1d2026;
    border-color: #30343b;
}

html.dark .tag-pill {
    background: #24272d;
    border-color: #30343b;
}

html.dark .tag-pill.level-2 {
    background: rgba(74, 144, 226, 0.1);
}

html.dark .tag-pill.level-3 {
    background: rgba(74, 144, 226, 0.16);
    border-color: rgba(74, 144, 226, 0.28);
}

html.dark .tag-count {
    background: rgba(255, 255, 255, 0.06);
}

html.dark .tags-intro {
    background: #202329;
    border-color: #30343b;
}

@media (max-width: 700px) {
    .tags-hero {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 16px;
        padding: 19px 18px;
    }

    .tags-title {
        font-size: 22px;
    }

    .tags-stats {
        width: 100%;
        padding-top: 12px;
        padding-left: 0;
        border-top: 1px solid rgba(74, 144, 226, 0.14);
        border-left: 0;
    }

    .tags-card {
        padding: 16px 14px 18px;
    }

    .tags-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .tag-cloud {
        gap: 7px;
    }

    .tag-pill {
        padding: 7px 10px;
    }

    .tag-pill.level-2 {
        padding: 7px 11px;
    }

    .tag-pill.level-3 {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* Refined single-post reading page */
.post-card {
    padding: 30px 32px 30px;
}

.post-byline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
}

.post-author {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.post-author-avatar {
    position: relative;
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    overflow: hidden;
    border: 2px solid var(--card);
    border-radius: 50%;
    background: var(--card-2) url("../img/avatar.svg") center / cover no-repeat;
    box-shadow: 0 0 0 1px var(--line), 0 3px 10px -6px rgba(15, 23, 42, 0.3);
}

.post-author-avatar img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-author-info {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.post-author-name {
    overflow: hidden;
    color: var(--accent-strong);
    font-size: 13.5px;
    font-weight: 650;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-author:hover .post-author-name {
    color: var(--accent);
}

.post-author-role {
    flex: none;
    padding: 1px 6px;
    border-radius: 5px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.5;
}

.post-card .post-title {
    margin: 0;
    color: var(--text);
    font-size: 29px;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.38;
}

.post-card .post-meta {
    margin-top: 13px;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--line);
}

.post-card .article {
    max-width: 680px;
    margin: 23px auto 0;
    color: #3f4650;
    font-size: 16px;
    line-height: 2;
}

.post-card .article > p:first-of-type {
    color: var(--text);
    font-size: 16.8px;
    line-height: 1.95;
}

.post-card .article p {
    margin: 16px 0;
}

.post-card .article h2 {
    margin-top: 38px;
    font-size: 20px;
}

.post-card .article h3 {
    margin-top: 30px;
    font-size: 17.5px;
}

.post-card .article blockquote {
    margin: 24px 0;
    padding: 13px 18px;
    border-left-width: 3px;
    border-radius: 0 10px 10px 0;
    background: linear-gradient(90deg, var(--accent-soft) 0%, var(--card-2) 100%);
}

.post-card .article code {
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--card-2);
    font-size: 0.9em;
}

.post-card .article pre {
    border-radius: 10px;
}

.post-card .article img {
    border-radius: 10px;
}

.post-card .article table {
    overflow: hidden;
    border-radius: 8px;
}

.post-card .post-tags {
    max-width: 680px;
    margin: 26px auto 0;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

html.dark .post-card .article {
    color: #c7ccd4;
}

html.dark .post-author-role {
    background: rgba(74, 144, 226, 0.16);
}

@media (max-width: 640px) {
    .post-card {
        padding: 22px 18px 24px;
    }

    .post-card .post-title {
        font-size: 23px;
        line-height: 1.4;
    }

    .post-byline {
        margin-bottom: 12px;
    }

    .post-author-avatar {
        width: 34px;
        height: 34px;
    }

    .post-author-name {
        font-size: 12.5px;
    }

    .post-card .post-meta {
        padding-bottom: 14px;
    }

    .post-card .article {
        margin-top: 18px;
        font-size: 15.5px;
        line-height: 1.95;
    }

    .post-card .article > p:first-of-type {
        font-size: 16px;
    }

    .post-card .post-tags {
        margin-top: 22px;
    }
}

/* Homepage author chip */
.shuo-head {
    align-items: center;
    gap: 7px;
}

.shuo-author {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 1px 0;
    color: var(--accent-strong);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.4;
}

.shuo-author:hover {
    color: var(--accent);
    text-decoration: none;
}

.shuo-author-dot {
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #76b0ff, #3f7fd9);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.shuo-author-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shuo-author-badge {
    flex: none;
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.5;
}

.shuo-avatar img {
    border: 0;
    box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--line), 0 3px 10px -6px rgba(15, 23, 42, 0.3);
}

/* Short posts: keep Markdown structure instead of flattened excerpt */
.shuo-text.is-rich {
    margin-top: 8px;
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.82;
}

.shuo-text.is-rich p {
    margin: 0 0 9px;
}

.shuo-text.is-rich > :last-child {
    margin-bottom: 0;
}

.shuo-text.is-rich strong {
    color: var(--text);
    font-weight: 650;
}

.shuo-text.is-rich a {
    color: var(--accent-strong);
    text-decoration: underline;
    text-decoration-color: var(--accent-soft);
    text-underline-offset: 2px;
}

.shuo-text.is-rich a:hover {
    text-decoration-color: var(--accent);
}

.shuo-text.is-rich ul,
.shuo-text.is-rich ol {
    margin: 7px 0 9px;
    padding-left: 1.35em;
}

.shuo-text.is-rich li {
    margin: 3px 0;
}

.shuo-text.is-rich li::marker {
    color: var(--accent);
}

.shuo-text.is-rich blockquote {
    margin: 9px 0;
    padding: 7px 11px;
    border-left: 2px solid var(--accent);
    border-radius: 0 6px 6px 0;
    background: var(--card-2);
    color: var(--text-2);
}

.shuo-text.is-rich blockquote p {
    margin: 2px 0;
}

.shuo-text.is-rich h2,
.shuo-text.is-rich h3,
.shuo-text.is-rich h4 {
    margin: 12px 0 5px;
    color: var(--text);
    font-size: 15px;
    font-weight: 650;
    line-height: 1.5;
}

.shuo-text.is-rich code {
    padding: 1px 4px;
    border-radius: 4px;
    background: var(--card-2);
    font-size: 0.9em;
}

.shuo-text.is-rich pre {
    margin: 9px 0;
    padding: 10px 12px;
    overflow: auto;
    border-radius: 7px;
    background: #1f242c;
    color: #e7ebf0;
    font-size: 12px;
    line-height: 1.65;
}

.shuo-text.is-rich hr {
    margin: 12px 0;
    border: 0;
    border-top: 1px dashed var(--line);
}

.shuo-text.is-rich table {
    width: 100%;
    margin: 9px 0;
    border-collapse: collapse;
    font-size: 12.5px;
}

.shuo-text.is-rich th,
.shuo-text.is-rich td {
    padding: 6px 8px;
    border: 1px solid var(--line);
    text-align: left;
}

.shuo-text.is-rich th {
    background: var(--card-2);
}

html.dark .shuo-avatar img {
    box-shadow: 0 0 0 2px var(--card), 0 0 0 3px #343a44;
}

html.dark .shuo-author-badge {
    background: rgba(74, 144, 226, 0.16);
    color: #9cc7ff;
}

html.dark .shuo-text.is-rich blockquote,
html.dark .shuo-text.is-rich code,
html.dark .shuo-text.is-rich th {
    background: #24282f;
}

@media (max-width: 600px) {
    .shuo-author {
        font-size: 13.5px;
    }

    .shuo-author-badge {
        font-size: 9px;
    }

    .shuo-text.is-rich {
        font-size: 13.5px;
        line-height: 1.8;
    }
}

/* Compact first-level heading inside short homepage Markdown */
.shuo-text.is-rich h1 {
    margin: 10px 0 6px;
    color: var(--text);
    font-size: 18px;
    font-weight: 650;
    line-height: 1.5;
}

.shuo-text.is-rich h1:first-child {
    margin-top: 0;
}

/* Homepage video window */
.shuo-video {
    max-width: 480px;
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #0b0d10;
    box-shadow: 0 8px 22px -16px rgba(15, 23, 42, 0.45);
}

.shuo-video video {
    display: block;
    width: 100%;
    max-height: 270px;
    background: #0b0d10;
    object-fit: contain;
}

html.dark .shuo-video {
    border-color: #30343b;
}

@media (max-width: 600px) {
    .shuo-video {
        max-width: 100%;
        border-radius: 8px;
    }

    .shuo-video video {
        max-height: 220px;
    }
}

/* PJAX page transition */
.site-main {
    transition: opacity 0.15s ease;
}

html.is-pjaxing .site-main {
    opacity: 0.55;
    pointer-events: none;
}

/* ===== About v2 + contribution heatmap ===== */
.about-v2 {
    display: grid;
    gap: 18px;
}

.about-v2 .about-card {
    margin: 0;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 28px -22px rgba(15, 23, 42, 0.35);
}

.about-v2 .about-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px 28px;
    padding: 30px 32px 22px;
    overflow: hidden;
    border: 1px solid rgba(74, 144, 226, 0.13);
    border-radius: 18px;
    background:
        radial-gradient(circle at 92% 6%, rgba(74, 144, 226, 0.15), transparent 34%),
        linear-gradient(145deg, #fbfdff 0%, #f3f8ff 100%);
    box-shadow: 0 14px 40px -30px rgba(34, 74, 130, 0.45);
}

.about-v2 .about-hero::after {
    content: "";
    position: absolute;
    right: -50px;
    bottom: -80px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(74, 144, 226, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.about-v2 .about-hero-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    min-width: 0;
}

.about-v2 .about-profile {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.about-v2 .about-avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 88px;
    height: 88px;
    overflow: hidden;
    border: 4px solid #fff;
    border-radius: 24px;
    background: #e8f1ff;
    box-shadow: 0 10px 24px -12px rgba(74, 144, 226, 0.55);
}

.about-v2 .about-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-v2 .about-kicker {
    display: inline-block;
    margin-bottom: 5px;
    color: #4a90e2;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.2em;
    line-height: 1;
}

.about-v2 .about-name {
    margin: 0;
    color: #172033;
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 750;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.about-v2 .about-signature {
    max-width: 460px;
    margin: 8px 0 0;
    color: #687386;
    font-size: 13px;
    line-height: 1.7;
}

.about-v2 .about-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: none;
}

.about-v2 .about-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid #4a90e2;
    border-radius: 9px;
    background: #4a90e2;
    color: #fff;
    font-size: 11px;
    font-weight: 650;
    line-height: 1;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.about-v2 .about-action .icon {
    width: 13px;
    height: 13px;
}

.about-v2 .about-action:hover {
    border-color: #3b7fd1;
    background: #3b7fd1;
    color: #fff;
}

.about-v2 .about-action-ghost {
    border-color: #dce8f8;
    background: rgba(255, 255, 255, 0.7);
    color: #4b6a92;
}

.about-v2 .about-action-ghost:hover {
    border-color: #bcd7f5;
    background: #fff;
    color: #2f70ca;
}

.about-v2 .about-stats-v2 {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid rgba(74, 144, 226, 0.12);
}

.about-v2 .about-stats-v2 .about-stat {
    padding: 12px 14px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.72);
}

.about-v2 .about-stats-v2 .about-stat strong {
    display: block;
    color: #1b2a3d;
    font-size: 22px;
    font-weight: 750;
    line-height: 1.1;
}

.about-v2 .about-stats-v2 .about-stat span {
    display: block;
    margin-top: 3px;
    color: #8b95a4;
    font-size: 10px;
}

/* Heatmap */
.about-v2 .about-heat-card {
    padding: 24px 26px 18px;
}

.about-v2 .about-heat-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.about-v2 .about-heat-head h2 {
    margin: 0;
    color: #1a2433;
    font-size: 21px;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.about-v2 .about-heat-head p {
    margin: 6px 0 0;
    color: #8a94a3;
    font-size: 11.5px;
}

.about-v2 .about-heat-total {
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex: none;
    padding: 8px 12px;
    border: 1px solid #e4eefb;
    border-radius: 10px;
    background: #f5f9ff;
}

.about-v2 .about-heat-total strong {
    color: #2f70ca;
    font-size: 24px;
    font-weight: 750;
    line-height: 1;
}

.about-v2 .about-heat-total span {
    color: #7e8da3;
    font-size: 10px;
}

.about-v2 .about-heat-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
    padding: 11px 13px;
    border: 1px solid #eef2f7;
    border-radius: 11px;
    background: #fbfcfe;
}

.about-v2 .about-heat-summary > div {
    padding-left: 10px;
    border-left: 2px solid #dce9f8;
}

.about-v2 .about-heat-summary > div:first-child {
    border-left-color: #4a90e2;
}

.about-v2 .about-heat-summary strong {
    display: block;
    color: #33445c;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.about-v2 .about-heat-summary span {
    display: block;
    margin-top: 2px;
    color: #98a1ae;
    font-size: 9.5px;
}

.about-v2 .about-heat-scroll {
    display: flex;
    gap: 8px;
    margin-top: 18px;
    padding: 2px 2px 8px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.about-v2 .about-heat-days {
    display: grid;
    grid-template-rows: repeat(7, 11px);
    gap: 3px;
    flex: none;
    padding-top: 1px;
    color: #b0b8c4;
    font-size: 8px;
    line-height: 11px;
    text-align: right;
}

.about-v2 .about-heat-body {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    flex: none;
}

.about-v2 .about-heat-months {
    display: grid;
    grid-template-columns: repeat(53, 11px);
    gap: 3px;
    height: 15px;
    color: #9aa4b2;
    font-size: 8px;
    line-height: 15px;
    white-space: nowrap;
}

.about-v2 .about-heat-months span {
    display: block;
}

.about-v2 .about-heat-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(7, 11px);
    grid-auto-columns: 11px;
    gap: 3px;
}

.about-v2 .about-heat-cell {
    display: block;
    width: 11px;
    height: 11px;
    border-radius: 2.5px;
    background: #edf1f5;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.025);
    cursor: default;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.about-v2 .about-heat-cell:hover {
    transform: scale(1.4);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.about-v2 .about-heat-cell.level-1 {
    background: #d8e9fb;
}

.about-v2 .about-heat-cell.level-2 {
    background: #a9cdf1;
}

.about-v2 .about-heat-cell.level-3 {
    background: #6ba8e3;
}

.about-v2 .about-heat-cell.level-4 {
    background: #2f7ed8;
}

.about-v2 .about-heat-cell.is-today {
    box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px #7fb2eb;
}

.about-v2 .about-heat-cell.is-future {
    background: #f7f9fb;
    box-shadow: none;
    opacity: 0.55;
}

.about-v2 .about-heat-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 13px;
    padding-top: 11px;
    border-top: 1px solid #f0f3f7;
    color: #a3abb7;
    font-size: 9px;
}

.about-v2 .about-heat-legend {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #9aa4b2;
    font-size: 9px;
}

.about-v2 .about-heat-legend i {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 2px;
}

.about-v2 .about-heat-legend i.level-0 { background: #edf1f5; }
.about-v2 .about-heat-legend i.level-1 { background: #d8e9fb; }
.about-v2 .about-heat-legend i.level-2 { background: #a9cdf1; }
.about-v2 .about-heat-legend i.level-3 { background: #6ba8e3; }
.about-v2 .about-heat-legend i.level-4 { background: #2f7ed8; }

/* Story + info */
.about-v2 .about-grid-v2 {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.85fr);
    gap: 18px;
    align-items: start;
}

.about-v2 .about-story,
.about-v2 .about-info,
.about-v2 .about-recent {
    padding: 24px;
}

.about-v2 .about-card-head h2 {
    margin: 0;
    color: #1a2433;
    font-size: 19px;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.about-v2 .about-prose {
    margin-top: 14px;
    color: #586577;
    font-size: 13.5px;
    line-height: 1.9;
}

.about-v2 .about-prose p {
    margin: 0 0 0.9em;
}

.about-v2 .about-prose strong {
    color: #273449;
}

.about-v2 .about-facts {
    margin: 15px 0 0;
}

.about-v2 .about-facts > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px dashed #edf0f4;
}

.about-v2 .about-facts dt {
    color: #929ba8;
    font-size: 11px;
}

.about-v2 .about-facts dd {
    margin: 0;
    color: #344256;
    font-size: 12px;
    font-weight: 650;
}

.about-v2 .about-rss {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    color: #4a90e2;
    font-size: 11px;
    font-weight: 650;
}

.about-v2 .about-recent-list-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 22px;
    margin-top: 10px;
}

.about-v2 .about-recent-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f3f7;
}

.about-v2 .about-recent-item time {
    color: #a0a8b4;
    font-size: 9.5px;
}

.about-v2 .about-recent-item span {
    margin: 3px 0 0;
    color: #344256;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.5;
}

.about-v2 .about-comments {
    margin-top: 0;
}

/* Dark */
html.dark .about-v2 .about-hero {
    border-color: rgba(255, 255, 255, 0.07);
    background:
        radial-gradient(circle at 92% 6%, rgba(74, 144, 226, 0.16), transparent 34%),
        linear-gradient(145deg, #1c2027 0%, #1a222d 100%);
}

html.dark .about-v2 .about-card {
    border-color: rgba(255, 255, 255, 0.07);
    background: #1d2026;
    box-shadow: none;
}

html.dark .about-v2 .about-name,
html.dark .about-v2 .about-heat-head h2,
html.dark .about-v2 .about-card-head h2 {
    color: #edf0f4;
}

html.dark .about-v2 .about-signature,
html.dark .about-v2 .about-prose,
html.dark .about-v2 .about-heat-head p {
    color: #a2abb8;
}

html.dark .about-v2 .about-stats-v2 .about-stat {
    border-color: #30343b;
    background: rgba(255, 255, 255, 0.03);
}

html.dark .about-v2 .about-stats-v2 .about-stat strong,
html.dark .about-v2 .about-heat-summary strong,
html.dark .about-v2 .about-facts dd,
html.dark .about-v2 .about-recent-item span {
    color: #e8ebef;
}

html.dark .about-v2 .about-heat-summary {
    border-color: #30343b;
    background: #20242b;
}

html.dark .about-v2 .about-heat-summary > div {
    border-left-color: #34475e;
}

html.dark .about-v2 .about-heat-total {
    border-color: #30445c;
    background: #1e2d3e;
}

html.dark .about-v2 .about-heat-cell {
    background: #2b3038;
}

html.dark .about-v2 .about-heat-cell.level-1 { background: #24405d; }
html.dark .about-v2 .about-heat-cell.level-2 { background: #2f5f8d; }
html.dark .about-v2 .about-heat-cell.level-3 { background: #3f82c4; }
html.dark .about-v2 .about-heat-cell.level-4 { background: #5ba7ef; }

html.dark .about-v2 .about-heat-cell.is-future {
    background: #23272e;
}

html.dark .about-v2 .about-action-ghost {
    border-color: #34475e;
    background: rgba(255, 255, 255, 0.03);
    color: #a9c9ef;
}

/* Responsive */
@media (max-width: 900px) {
    .about-v2 .about-hero {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .about-v2 .about-hero-main {
        flex-direction: column;
    }

    .about-v2 .about-actions {
        justify-content: flex-start;
    }

    .about-v2 .about-stats-v2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-v2 .about-grid-v2 {
        grid-template-columns: 1fr;
    }

    .about-v2 .about-heat-card {
        padding: 20px 18px 15px;
    }

    .about-v2 .about-heat-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 10px;
    }

    .about-v2 .about-recent-list-v2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .about-v2 {
        gap: 12px;
    }

    .about-v2 .about-hero {
        padding: 20px 17px 16px;
        border-radius: 14px;
    }

    .about-v2 .about-profile {
        align-items: flex-start;
        gap: 13px;
    }

    .about-v2 .about-avatar {
        width: 68px;
        height: 68px;
        border-radius: 18px;
    }

    .about-v2 .about-name {
        font-size: 24px;
    }

    .about-v2 .about-signature {
        font-size: 12px;
    }

    .about-v2 .about-action {
        height: 32px;
        padding: 0 10px;
        font-size: 10.5px;
    }

    .about-v2 .about-stats-v2 {
        gap: 7px;
        padding-top: 14px;
    }

    .about-v2 .about-stats-v2 .about-stat {
        padding: 9px 10px;
    }

    .about-v2 .about-stats-v2 .about-stat strong {
        font-size: 19px;
    }

    .about-v2 .about-heat-head {
        flex-direction: column;
        gap: 10px;
    }

    .about-v2 .about-heat-total {
        align-self: flex-start;
    }

    .about-v2 .about-heat-summary {
        gap: 8px;
        padding: 9px 10px;
    }

    .about-v2 .about-story,
    .about-v2 .about-info,
    .about-v2 .about-recent {
        padding: 19px 16px;
    }
}

/* Sticky post badge */
.shuo-sticky-badge {
    display: inline-flex;
    align-items: center;
    height: 16px;
    margin-left: 6px;
    padding: 0 5px;
    border: 1px solid #ffd8a8;
    border-radius: 4px;
    background: #fff7ed;
    color: #d97706;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
}

html.dark .shuo-sticky-badge {
    border-color: #5b4427;
    background: #2d261d;
    color: #f0b35b;
}

/* Sticky badge at card top-right */
.shuo-item {
    position: relative;
}

.shuo-item > .shuo-sticky-badge {
    position: absolute;
    top: 11px;
    right: 13px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    height: 20px;
    margin: 0;
    padding: 0 7px;
    border: 1px solid #ffd8a8;
    border-radius: 6px;
    background: #fff7ed;
    color: #d97706;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    box-shadow: 0 2px 7px -3px rgba(217, 119, 6, 0.25);
}

@media (max-width: 600px) {
    .shuo-item > .shuo-sticky-badge {
        top: 9px;
        right: 10px;
        height: 18px;
        padding: 0 6px;
        font-size: 9px;
    }
}

html.dark .shuo-item > .shuo-sticky-badge {
    border-color: #5b4427;
    background: #2d261d;
    color: #f0b35b;
}

/* Comment/like actions: labels only, larger icons */
.shuo-bar .stat-count,
.shuo-bar .like-count {
    display: none;
}

.shuo-bar .shuo-act {
    gap: 5px;
    font-size: 13px;
}

.shuo-bar .shuo-act .icon {
    width: 18px;
    height: 18px;
}

.post-meta .meta-like .like-count {
    display: none;
}

.meta-like .like-btn .icon {
    width: 17px;
    height: 17px;
}

.post-meta .meta-item .icon {
    width: 16px;
    height: 16px;
}

.post-meta .meta-item {
    gap: 6px;
}

#comments {
    scroll-margin-top: 86px;
}

/* Keep liked state visible in post meta (override meta color inheritance) */
.post-meta .meta-like .like-btn.is-liked,
.meta-like .like-btn.is-liked,
.post-meta .meta-like .like-btn:disabled.is-liked {
    color: #c08a3e;
}

.post-meta .meta-like .like-btn.is-liked .icon,
.meta-like .like-btn.is-liked .icon {
    color: #c08a3e;
    fill: currentColor;
}

/* Scroll reveal: subtle fade + slide, no conflict with hover transforms */
.sleek-reveal {
    opacity: 0;
    translate: 0 12px;
    transition:
        opacity 0.62s cubic-bezier(0.22, 0.61, 0.36, 1),
        translate 0.62s cubic-bezier(0.22, 0.61, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, translate;
}

.sleek-reveal.is-revealed {
    opacity: 1;
    translate: 0 0;
    will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
    .sleek-reveal,
    .sleek-reveal.is-revealed {
        opacity: 1;
        translate: none;
        transition: none;
    }
}

@media print {
    .sleek-reveal,
    .sleek-reveal.is-revealed {
        opacity: 1;
        translate: none;
    }
}

/* Truncated link card: two-line summary + third-line continue */
.shuo-link-main {
    gap: 3px;
}

.shuo-link-excerpt {
    -webkit-line-clamp: 2;
}

.shuo-link-more {
    display: block;
    color: var(--accent-strong);
    font-size: 10.5px;
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: 0.02em;
}

.shuo-link-card:hover .shuo-link-more {
    color: var(--accent);
}

@media (max-width: 600px) {
    .shuo-link-more {
        font-size: 10px;
    }
}

/* Link card: roomier lines, continue aligned right */
.shuo-link-main {
    gap: 4px;
}

.shuo-link-excerpt {
    line-height: 1.7;
}

.shuo-link-more {
    align-self: stretch;
    margin-top: 1px;
    line-height: 1.5;
    text-align: right;
}

/* Homepage body: HarmonyOS Sans SC, one step larger */
@font-face {
    font-family: "HarmonyOS Sans SC";
    src: url("../fonts/HarmonyOS_Sans_SC_Regular.woff2?v=1") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

.is-home .shuo-main {
    font-family: "HarmonyOS Sans SC", "HarmonyOS Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.is-home .shuo-text,
.is-home .shuo-text.is-rich {
    font-size: 15.5px;
    line-height: 1.86;
}

.is-home .shuo-link-excerpt {
    font-size: 14px;
    line-height: 1.72;
}

@media (max-width: 600px) {
    .is-home .shuo-text,
    .is-home .shuo-text.is-rich {
        font-size: 15px;
    }
}

/* Comment submit loading state */
.submit-btn {
    justify-content: center;
    min-width: 76px;
    white-space: nowrap;
}

.submit-btn .submit-label {
    display: inline-block;
}

.submit-btn.is-loading {
    min-width: 98px;
    opacity: 0.85;
    pointer-events: none;
}

.submit-btn.is-loading .icon {
    display: none;
}

.submit-btn.is-loading::before {
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    content: "";
    animation: sleek-submit-spin 0.7s linear infinite;
}

@keyframes sleek-submit-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Simplifed about page */
.about-simple {
    display: grid;
    gap: 16px;
    width: 100%;
}

.about-simple-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    padding: 28px;
    box-sizing: border-box;
    border: 1px solid rgba(74, 144, 226, 0.14);
    border-radius: 16px;
    background:
        radial-gradient(circle at 92% 8%, rgba(74, 144, 226, 0.14), transparent 34%),
        linear-gradient(145deg, #fbfdff 0%, #f3f8ff 100%);
    box-shadow: 0 14px 38px -30px rgba(34, 74, 130, 0.4);
}

.about-simple-avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 76px;
    height: 76px;
    overflow: hidden;
    border: 3px solid #fff;
    border-radius: 20px;
    background: #e8f1ff;
    box-shadow: 0 10px 22px -12px rgba(74, 144, 226, 0.55);
}

.about-simple-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-simple-copy {
    min-width: 0;
}

.about-simple-kicker {
    display: inline-block;
    margin-bottom: 5px;
    color: #4a90e2;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.2em;
    line-height: 1;
}

.about-simple-copy h1 {
    margin: 0;
    color: #172033;
    font-size: clamp(26px, 3vw, 32px);
    font-weight: 750;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.about-simple-copy p {
    margin: 7px 0 0;
    color: #687386;
    font-size: 13px;
    line-height: 1.7;
}

.about-simple-rss {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    margin-left: auto;
    height: 34px;
    padding: 0 13px;
    border: 1px solid #4a90e2;
    border-radius: 9px;
    background: #4a90e2;
    color: #fff;
    font-size: 11px;
    font-weight: 650;
    line-height: 1;
}

.about-simple-rss:hover {
    border-color: #3b7fd1;
    background: #3b7fd1;
    color: #fff;
}

.about-simple-rss .icon {
    width: 13px;
    height: 13px;
}

.about-simple-card {
    width: 100%;
    padding: 26px;
    box-sizing: border-box;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 28px -22px rgba(15, 23, 42, 0.35);
}

.about-simple-prose {
    margin-top: 12px;
    color: #586577;
    font-size: 13.5px;
    line-height: 1.9;
}

.about-simple-prose p {
    margin: 0 0 0.9em;
}

.about-simple-prose p:last-child {
    margin-bottom: 0;
}

.about-simple-prose strong {
    color: #273449;
}

.archive-heat {
    margin: 0 0 18px;
}

html.dark .about-simple-hero {
    border-color: rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 92% 8%, rgba(74, 144, 226, 0.16), transparent 34%),
        linear-gradient(145deg, #1c2027 0%, #1a222d 100%);
}

html.dark .about-simple-copy h1 {
    color: #edf0f4;
}

html.dark .about-simple-copy p,
html.dark .about-simple-prose {
    color: #a2abb8;
}

html.dark .about-simple-card {
    border-color: rgba(255, 255, 255, 0.07);
    background: #1d2026;
    box-shadow: none;
}

html.dark .about-simple-prose strong {
    color: #e8ebef;
}

@media (max-width: 600px) {
    .about-simple-hero {
        flex-wrap: wrap;
        gap: 13px;
        padding: 20px 17px;
        border-radius: 14px;
    }

    .about-simple-avatar {
        width: 62px;
        height: 62px;
        border-radius: 17px;
    }

    .about-simple-rss {
        margin-left: 0;
    }

    .about-simple-card {
        padding: 20px 17px;
        border-radius: 14px;
    }
}

/* Align archive heatmap card with the archive hero / top bar */
.archive-heat {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.archive-heat .about-heat-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.archive-heat .about-heat-scroll {
    max-width: 100%;
}

.archive-heat .about-heat-grid {
    grid-template-rows: repeat(7, 11px);
    grid-auto-columns: 11px;
    gap: 2px;
}

.archive-heat .about-heat-days {
    grid-template-rows: repeat(7, 11px);
    gap: 2px;
    padding-top: 1px;
}

/* Half-year heatmap: larger cells, no summary */
.archive-heat .about-heat-summary {
    display: none;
}

.archive-heat .about-heat-scroll {
    justify-content: center;
}

.archive-heat .about-heat-grid {
    grid-template-rows: repeat(7, 20px);
    grid-auto-columns: 20px;
    gap: 5px;
}

.archive-heat .about-heat-cell {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.archive-heat .about-heat-days {
    grid-template-rows: repeat(7, 20px);
    gap: 5px;
    padding-top: 1px;
    font-size: 9px;
    line-height: 20px;
}

@media (max-width: 600px) {
    .archive-heat .about-heat-scroll {
        justify-content: flex-start;
    }
}

/* Unified comment editor controls */
.editor-tools {
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    padding: 0 9px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1;
    transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.tool-btn .icon {
    width: 14px;
    height: 14px;
}

.tool-btn:hover,
.tool-btn[aria-expanded="true"] {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.tool-tip {
    color: #a0a8b3;
    font-size: 10.5px;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 32px;
    min-width: 78px;
    margin-left: auto;
    padding: 0 13px;
    border: 0;
    border-radius: 8px;
    background: #4a90e2;
    color: #fff;
    font-size: 12px;
    font-weight: 650;
    line-height: 1;
    box-shadow: none;
    transition: background 0.18s var(--ease), opacity 0.18s var(--ease);
}

.submit-btn .icon {
    width: 13px;
    height: 13px;
}

.submit-btn:hover,
.home-comment-form .submit-btn:hover {
    background: #3b7fd1;
    filter: none;
    transform: none;
}

.submit-btn:active {
    transform: none;
}

.submit-btn.is-loading {
    min-width: 98px;
    opacity: 0.85;
    pointer-events: none;
}

.submit-btn.is-loading .icon {
    display: none;
}

.submit-btn.is-loading::before {
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    content: "";
    animation: sleek-submit-spin 0.7s linear infinite;
}

.home-comment-form .editor-tools {
    gap: 8px;
    margin-top: 8px;
}

.home-comment-form .tool-btn {
    height: 30px;
    padding: 0 8px;
    font-size: 11px;
}

.home-comment-form .tool-tip {
    font-size: 10.5px;
}

.home-comment-form .submit-btn {
    height: 32px;
    padding: 0 13px;
    border-radius: 8px;
    font-size: 12px;
    box-shadow: none;
}

.emoji-panel {
    grid-template-columns: repeat(10, 1fr);
    gap: 2px;
    margin-top: 8px;
    padding: 7px;
    max-height: 160px;
    border-radius: 9px;
    background: var(--card-2);
}

.emoji-item {
    padding: 2px;
    border-radius: 5px;
    font-size: 18px;
    line-height: 1.35;
}

@media (max-width: 600px) {
    .editor-tools {
        gap: 6px;
    }

    .tool-tip {
        display: none;
    }

    .submit-btn {
        min-width: 72px;
        padding: 0 11px;
    }
}

/* Emoji control in the compact homepage comment bar */
.qzone-emoji {
    display: grid;
    place-items: center;
    flex: none;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.qzone-emoji:hover,
.qzone-emoji[aria-expanded="true"] {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.qzone-emoji .icon {
    width: 17px;
    height: 17px;
}

.qzone-form > .emoji-panel {
    margin-top: 8px;
    grid-template-columns: repeat(10, 1fr);
}

@media (max-width: 600px) {
    .qzone-form > .emoji-panel {
        grid-template-columns: repeat(8, 1fr);
    }
}

/* Link-card thumbnail fallback: clean gradient + article initial */
.shuo-link-thumb-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: inherit;
    background:
        radial-gradient(circle at 82% 14%, rgba(255, 255, 255, 0.95), transparent 38%),
        linear-gradient(135deg, #eff6ff 0%, #dcecff 100%);
}

.shuo-link-thumb-fallback::after {
    position: absolute;
    right: -11px;
    bottom: -13px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(74, 144, 226, 0.16);
    border-radius: 50%;
    content: "";
}

.shuo-link-thumb-letter {
    position: relative;
    z-index: 1;
    color: #3f7fd9;
    font-family: "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 23px;
    font-weight: 750;
    line-height: 1;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.shuo-link-thumb img {
    z-index: 2;
}

html.dark .shuo-link-thumb-fallback {
    background:
        radial-gradient(circle at 82% 14%, rgba(80, 130, 190, 0.28), transparent 38%),
        linear-gradient(135deg, #223247 0%, #1d2938 100%);
}

html.dark .shuo-link-thumb-letter {
    color: #9cc8ff;
    text-shadow: none;
}

@media (max-width: 600px) {
    .shuo-link-thumb-letter {
        font-size: 20px;
    }
}

/* Article link card redesign with supplied default illustration */
.shuo-link-card {
    width: 80%;
    align-items: center;
    gap: 11px;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card);
    box-shadow: 0 3px 12px -10px rgba(15, 23, 42, 0.28);
}

.shuo-link-card:hover {
    border-color: var(--accent);
    background: var(--card);
    box-shadow: 0 7px 20px -14px var(--accent-strong);
}

.shuo-link-thumb {
    position: relative;
    display: grid;
    flex: none;
    place-items: center;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--card-2);
}

.shuo-link-thumb img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
}

.shuo-link-thumb.is-default {
    background: #f2fbf6;
}

.shuo-link-thumb.is-default img {
    object-fit: contain;
    padding: 6px;
}

.shuo-link-main {
    gap: 5px;
}

.shuo-link-excerpt {
    font-size: 14px;
    line-height: 1.72;
    -webkit-line-clamp: 2;
}

.shuo-link-more {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    color: var(--accent-strong);
    font-size: 11px;
    line-height: 1.4;
    text-align: right;
}

.shuo-link-more .icon {
    width: 12px;
    height: 12px;
}

.shuo-link-card:hover .shuo-link-more {
    color: var(--accent);
}

.shuo-link-thumb-fallback,
.shuo-link-thumb-letter,
.shuo-link-arrow {
    display: none;
}

html.dark .shuo-link-thumb.is-default {
    background: #1d2b25;
}

@media (max-width: 600px) {
    .shuo-link-card {
        width: 100%;
        padding: 9px 11px;
    }

    .shuo-link-thumb {
        width: 56px;
        height: 56px;
    }

    .shuo-link-excerpt {
        font-size: 13px;
        line-height: 1.68;
    }
}

/* Long-form article bookmark ribbon */
.shuo-item > .shuo-long-badge {
    position: absolute;
    top: 0;
    right: 14px;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 32px;
    height: 38px;
    padding-top: 8px;
    border-radius: 0 0 5px 5px;
    background: linear-gradient(180deg, #ffd75e 0%, #f2b928 100%);
    color: #5a3b00;
    box-shadow: 0 4px 10px -4px rgba(180, 125, 0, 0.55);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
    transition: filter 0.18s var(--ease), transform 0.18s var(--ease);
}

.shuo-item > .shuo-long-badge > span {
    font-size: 8.5px;
    font-weight: 750;
    letter-spacing: 0.04em;
    line-height: 1;
    writing-mode: horizontal-tb;
}

.shuo-item > .shuo-long-badge.is-offset {
    right: 55px;
}

.shuo-item:hover > .shuo-long-badge {
    filter: brightness(1.03);
    transform: translateY(1px);
}

html.dark .shuo-item > .shuo-long-badge {
    background: linear-gradient(180deg, #e8b73f 0%, #c9911d 100%);
    color: #2c1d00;
    box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 600px) {
    .shuo-item > .shuo-long-badge {
        right: 9px;
        width: 28px;
        height: 34px;
        padding-top: 7px;
    }

    .shuo-item > .shuo-long-badge.is-offset {
        right: 49px;
    }
}

/* Long-form article table of contents */
.post-card .article h2,
.post-card .article h3 {
    scroll-margin-top: 96px;
}

.post-toc {
    position: fixed;
    top: 100px;
    left: calc(50% + 390px);
    z-index: 25;
    display: none;
    width: 202px;
    max-height: calc(100vh - 145px);
    overflow: auto;
    padding: 14px 14px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 34px -26px rgba(15, 23, 42, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s var(--ease);
    backdrop-filter: blur(10px);
}

.post-toc.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.post-toc-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 9px;
}

.post-toc-kicker {
    display: block;
    margin-bottom: 3px;
    color: var(--accent-strong);
    font-size: 7.5px;
    font-weight: 750;
    letter-spacing: 0.16em;
    line-height: 1;
}

.post-toc-head strong {
    color: var(--text);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.2;
}

.post-toc-head em {
    color: var(--muted);
    font-size: 9px;
    font-style: normal;
    line-height: 1.4;
}

.post-toc-progress {
    height: 2px;
    margin-bottom: 8px;
    overflow: hidden;
    border-radius: 2px;
    background: var(--accent-soft);
}

.post-toc-progress i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
    transition: width 0.12s linear;
}

.post-toc-nav {
    display: grid;
    gap: 1px;
}

.post-toc-nav a {
    display: block;
    overflow: hidden;
    padding: 4px 7px;
    border-radius: 5px;
    color: var(--text-2);
    font-size: 10px;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.post-toc-nav a.is-sub {
    padding-left: 17px;
    color: var(--muted);
    font-size: 9.5px;
}

.post-toc-nav a:hover {
    background: var(--card-2);
    color: var(--accent-strong);
}

.post-toc-nav a.is-active {
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-weight: 650;
}

.post-toc::-webkit-scrollbar {
    width: 4px;
}

.post-toc::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: var(--line);
}

.post-toc-mobile {
    display: none;
    margin: 0 0 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--card-2);
}

.post-toc-mobile > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 11px;
    color: var(--text-2);
    font-size: 11.5px;
    list-style: none;
    cursor: pointer;
}

.post-toc-mobile > summary::-webkit-details-marker {
    display: none;
}

.post-toc-mobile > summary span {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.post-toc-mobile > summary b {
    color: var(--text);
    font-size: 12px;
    font-weight: 650;
}

.post-toc-mobile > summary em {
    color: var(--muted);
    font-size: 9px;
    font-style: normal;
}

.post-toc-mobile > summary i {
    width: 6px;
    height: 6px;
    border-right: 1.5px solid var(--muted);
    border-bottom: 1.5px solid var(--muted);
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.2s var(--ease);
}

.post-toc-mobile[open] > summary i {
    transform: translateY(1px) rotate(225deg);
}

.post-toc-mobile-nav {
    display: grid;
    gap: 1px;
    max-height: 42vh;
    overflow: auto;
    padding: 0 7px 8px;
    border-top: 1px solid var(--line);
}

.post-toc-mobile-nav a {
    display: block;
    overflow: hidden;
    padding: 5px 5px;
    border-radius: 4px;
    color: var(--text-2);
    font-size: 10.5px;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-toc-mobile-nav a.is-sub {
    padding-left: 15px;
    color: var(--muted);
    font-size: 10px;
}

.post-toc-mobile-nav a.is-active {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

@media (min-width: 1240px) {
    .post-toc {
        display: block;
    }

    .post-toc-mobile {
        display: none !important;
    }
}

@media (max-width: 1239px) {
    .post-toc-mobile {
        display: block;
    }
}

html.dark .post-toc {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(29, 32, 38, 0.97);
    box-shadow: 0 14px 34px -26px rgba(0, 0, 0, 0.6);
}

html.dark .post-toc-mobile {
    border-color: rgba(255, 255, 255, 0.08);
    background: #20242a;
}

html.dark .post-toc-nav a.is-active,
html.dark .post-toc-mobile-nav a.is-active {
    background: #25364b;
    color: #8dc2ff;
}

@media print {
    .post-toc,
    .post-toc-mobile {
        display: none !important;
    }
}
