@import url('/assets/css/common/fonts.css');

:root {
    color-scheme: light only;
    --fullscreen-bg: #f5f5f7;
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-soft: #f6f7f9;
    --text: #1f2937;
    --heading: #111827;
    --muted: #6b7280;
    --subtle: #9ca3af;
    --line: #e5e7eb;
    --line-strong: #d1d5db;
    --primary: #111827;
    --primary-hover: #374151;
    --primary-soft: rgba(17, 24, 39, 0.08);
    --accent: #111827;
    --accent-soft: rgba(17, 24, 39, 0.06);
    --accent-pink: #d1d5db;
    --accent-pink-soft: rgba(17, 24, 39, 0.06);
    --accent-pink-text: #374151;
    --like: #e11d48;
    --like-soft: rgba(225, 29, 72, 0.12);
    --success: #4b5563;
    --container: 1200px;
    --readable: 760px;
    --radius: 12px;
    --radius-lg: 16px;
    --scrollbar-track: #f3f4f6;
    --scrollbar-thumb: #cbd5e1;
    --scrollbar-thumb-hover: #94a3b8;
    --shadow-card: 0 8px 24px rgba(15, 23, 42, 0.07);
    --shadow-card-hover: 0 14px 34px rgba(15, 23, 42, 0.12);
    --copy-tooltip-bg: #111827;
    --copy-tooltip-text: #ffffff;
    --copy-tooltip-border: rgba(17, 24, 39, 0.12);
    --copy-tooltip-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
}

html[data-theme="light"] {
    color-scheme: light only;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --fullscreen-bg: #000000;
    --bg: #222326;
    --surface: #2a2b2f;
    --surface-soft: #303136;
    --text: #e5e7eb;
    --heading: #ffffff;
    --muted: #c5c7cc;
    --subtle: #9ca0a8;
    --line: rgba(255, 255, 255, 0.07);
    --line-strong: rgba(255, 255, 255, 0.13);
    --primary: #f3f4f6;
    --primary-hover: #ffffff;
    --primary-soft: rgba(255, 255, 255, 0.09);
    --accent: #f3f4f6;
    --accent-soft: rgba(255, 255, 255, 0.08);
    --accent-pink: #a1a1aa;
    --accent-pink-soft: rgba(255, 255, 255, 0.07);
    --accent-pink-text: #e5e7eb;
    --like: #f43f5e;
    --like-soft: rgba(244, 63, 94, 0.18);
    --success: #d1d5db;
    --scrollbar-track: #2f3035;
    --scrollbar-thumb: #6b7280;
    --scrollbar-thumb-hover: #9ca3af;
    --shadow-card: 0 10px 26px rgba(0, 0, 0, 0.18);
    --shadow-card-hover: 0 16px 34px rgba(0, 0, 0, 0.24);
    --copy-tooltip-bg: #f3f4f6;
    --copy-tooltip-text: #222326;
    --copy-tooltip-border: rgba(255, 255, 255, 0.18);
    --copy-tooltip-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--text);
    background: var(--bg);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

body.is-menu-open,
body.is-front-loading,
body.is-comment-gate-open {
    overflow: hidden;
}

.front-loading-screen {
    position: fixed;
    inset: 0;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fullscreen-bg);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.32s ease, visibility 0.32s ease;
}

html[data-theme="dark"] .front-loading-screen {
    background: var(--fullscreen-bg);
}

.front-loading-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    padding: 3vh 6vw;
}

.front-loading-title {
    margin: 0;
    font-family: var(--font-misans);
    font-size: clamp(3rem, min(11vw, 12vh), 8.5rem);
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    user-select: none;
    text-align: center;
}

.front-loading-screen.is-loading-cycle .welcome-letter {
    animation: letterLoadingOutline 2.6s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--welcome-i, 0) * 0.08s);
}

.front-loading-screen.is-loading-cycle .welcome-letter::after {
    animation: letterLoadingFill 2.6s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--welcome-i, 0) * 0.08s + 0.26s);
}

.front-loading-screen.is-loading-complete .welcome-letter {
    clip-path: inset(0 0 0 0);
    opacity: 1;
}

.front-loading-screen.is-loading-complete .welcome-letter::after {
    clip-path: inset(0 0 0 0);
    opacity: 1;
}

.front-loading-screen.is-welcome-handoff {
    z-index: 10003;
    background: var(--fullscreen-bg);
    pointer-events: none;
}

.front-loading-screen.is-welcome-handoff .front-loading-title {
    animation: frontLoadingTitleLift 0.78s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.front-loading-screen.is-welcome-handoff.is-hidden {
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.front-loading-screen.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ===== 欢迎页 Welcome Screen ===== */
.welcome-screen {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    background: var(--fullscreen-bg);
    opacity: 0;
    visibility: hidden;
    transform: scale(1);
    transform-origin: center center;
    transition: opacity 0.92s cubic-bezier(0.22, 1, 0.36, 1),
                transform 1.08s cubic-bezier(0.22, 1, 0.36, 1),
                filter 1.08s cubic-bezier(0.22, 1, 0.36, 1);
    -webkit-tap-highlight-color: transparent;
}

html[data-theme="dark"] .welcome-screen {
    background: var(--fullscreen-bg);
}

.welcome-screen.is-loading-handoff {
    z-index: 10004;
    background: transparent;
}

html[data-theme="dark"] .welcome-screen.is-loading-handoff {
    background: transparent;
}

/* JS 在字体加载完成后追加 is-ready，欢迎屏淡入并播放动画；
   这样 JS 失败时不会用空白屏挡住整页 */
.welcome-screen.is-ready {
    visibility: visible;
    opacity: 1;
}

.welcome-screen.is-preparing {
    visibility: visible;
    opacity: 1;
    cursor: default;
}

.welcome-screen.is-leaving {
    opacity: 0;
    transform: scale(1.015);
    filter: blur(4px);
    pointer-events: none;
}

.welcome-screen.is-hidden {
    display: none;
}

.welcome-screen:hover .welcome-enter-text {
    opacity: 1;
}

.welcome-screen:focus-visible {
    outline: none;
}

.welcome-screen:focus-visible .welcome-enter-text {
    opacity: 1;
}

/* 内容容器：默认不可见，is-ready 后整体淡入 */
.welcome-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(1.2rem, 3.5vh, 2.4rem);
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    padding: 3vh 6vw;
    opacity: 0;
    transform: none;
    transition: opacity 0.24s ease;
}

.welcome-screen.is-ready .welcome-inner {
    opacity: 1;
    transform: none;
}

.welcome-screen.is-preparing .welcome-inner {
    opacity: 0;
    transform: none;
}

/* 标题：字号增大；line-height 1.3 防止 descender 被 line-box 裁剪 */
.welcome-title {
    margin: 0;
    font-family: var(--font-misans);
    font-size: clamp(3rem, min(11vw, 12vh), 8.5rem);
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    user-select: none;
    text-align: center;
    transform: translateY(0);
    will-change: transform;
}

.welcome-screen.is-ready .welcome-title {
    animation: welcomeTitleLift 0.78s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.welcome-screen.is-loading-handoff .welcome-title {
    visibility: hidden;
    animation: none;
}

.welcome-screen.is-loading-handoff .welcome-enter {
    position: relative;
    z-index: 2;
    transform: translateY(0.5rem);
    animation: welcomeEnterIn 0.68s cubic-bezier(0.22, 1, 0.36, 1) 0.62s forwards;
}

/* ── 字母动画：线条从左划过描出轮廓 → 填充色明显滞后跟上 ── */
/* 默认状态：clip-path 完全裁掉，不可见；只有 is-ready 才播放动画 */

.welcome-letter {
    display: inline-block;
    position: relative;
    color: transparent;
    clip-path: inset(0 100% 0 0);
    animation-fill-mode: both;
}

/* ::after 填充层：绝对覆盖，默认也裁掉，is-ready 后晚于描边开始 */
.welcome-letter::after {
    content: attr(data-char);
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    -webkit-text-stroke: 0;
    color: inherit;
    clip-path: inset(0 100% 0 0);
    animation-fill-mode: both;
}

/* 描边层动画：先划过，构成空心轮廓 */
.welcome-screen.is-ready .welcome-letter {
    clip-path: inset(0 0 0 0);
}

/* 填充层动画：滞后 0.55s 开始，从左追上填满 */
.welcome-screen.is-ready .welcome-letter::after {
    clip-path: inset(0 0 0 0);
}

/* 浅色主题 */
html[data-theme="light"] .welcome-letter {
    -webkit-text-stroke: 1.5px rgba(29, 29, 31, 0.28);
}
html[data-theme="light"] .welcome-letter::after {
    color: #1d1d1f;
}

/* 暗色主题 */
html[data-theme="dark"] .welcome-letter {
    -webkit-text-stroke: 1.5px rgba(245, 245, 247, 0.32);
}
html[data-theme="dark"] .welcome-letter::after {
    color: #f5f5f7;
}

/* 连字符 */
.welcome-letter-dash {
    font-weight: 300;
    margin: 0 0.04em;
}

/* 保留 .welcome-letter-dot 颜色（如有） */
.welcome-letter-dot {
    font-weight: 700;
}
.welcome-letter-dot::after {
    color: var(--like);
}

@keyframes welcomeInnerIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes welcomeTitleLift {
    from {
        transform: translateY(calc((clamp(1.2rem, 3.5vh, 2.4rem) + 2.95rem) / 2));
    }
    to {
        transform: translateY(0);
    }
}

@keyframes frontLoadingTitleLift {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(calc((clamp(1.2rem, 3.5vh, 2.4rem) + 2.95rem) / -2));
    }
}

/* 线条从左向右划过，揭开文字 */
@keyframes letterSweep {
    from { clip-path: inset(0 100% 0 0); }
    to   { clip-path: inset(0 0 0 0); }
}

@keyframes letterLoadingOutline {
    0% {
        clip-path: inset(0 100% 0 0);
        opacity: 0.5;
    }
    34% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
    72% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
    100% {
        clip-path: inset(0 0 0 100%);
        opacity: 0.45;
    }
}

@keyframes letterLoadingFill {
    0% {
        clip-path: inset(0 100% 0 0);
        opacity: 0;
    }
    34% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
    68% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
    100% {
        clip-path: inset(0 0 0 100%);
        opacity: 0;
    }
}

/* ── 进入提示 ── */
.welcome-enter {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    opacity: 0;
    transform: translateY(0.5rem);
}

.welcome-screen.is-ready .welcome-enter {
    animation: welcomeEnterIn 0.58s cubic-bezier(0.22, 1, 0.36, 1) 0.78s forwards;
}

.welcome-screen.is-ready.is-loading-handoff .welcome-enter {
    position: relative;
    z-index: 2;
    transform: translateY(0.5rem);
    animation: welcomeEnterIn 0.68s cubic-bezier(0.22, 1, 0.36, 1) 0.62s forwards;
}

.welcome-enter-text {
    font-family: var(--font-misans);
    font-size: clamp(0.78rem, 1.35vw, 0.92rem);
    letter-spacing: 0.2em;
    font-weight: 400;
    color: #86868b;
}

html[data-theme="dark"] .welcome-enter-text {
    color: #c7c7cc;
}

.welcome-enter-arrow {
    width: 20px;
    height: 20px;
    color: #86868b;
    animation: welcomeArrowBob 2.4s ease-in-out 2.4s infinite;
}

html[data-theme="dark"] .welcome-enter-arrow {
    color: #8e8e93;
}

@keyframes welcomeEnterIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes welcomeArrowBob {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50%      { transform: translateY(5px); opacity: 1; }
}

body.is-welcome-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .welcome-screen,
    .welcome-inner,
    .welcome-title,
    .welcome-letter,
    .welcome-letter::after,
    .welcome-enter,
    .welcome-enter-arrow {
        animation: none !important;
        animation-delay: 0s !important;
    }
    .welcome-inner,
    .welcome-title,
    .welcome-letter,
    .welcome-enter {
        opacity: 1;
        transform: none;
        filter: none;
    }
    .welcome-letter {
        -webkit-text-stroke: 0;
        clip-path: none;
        color: #1d1d1f;
    }
    html[data-theme="dark"] .welcome-letter {
        color: #f5f5f7;
    }
    .welcome-letter::after {
        clip-path: none;
    }
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

img {
    max-width: 100%;
}

svg {
    display: block;
    fill: currentColor;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* 小巧滚动条 */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
    border: 2px solid var(--scrollbar-track);
    border-radius: 999px;
    background: var(--scrollbar-thumb);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

/* 顶部导航栏：全宽固定顶部 */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    width: 100%;
    height: 56px;
    border-bottom: 1px solid rgba(229, 231, 235, 0.88);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: saturate(160%) blur(0);
    -webkit-backdrop-filter: saturate(160%) blur(0);
    box-shadow: 0 4px 18px rgba(33, 40, 61, 0.04);
    transition: background 0.22s ease, box-shadow 0.22s ease, backdrop-filter 0.22s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    box-shadow: 0 8px 28px rgba(33, 40, 61, 0.1);
}

.site-header-inner {
    width: min(100%, 1360px);
    height: 56px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    transition: gap 0.28s cubic-bezier(0.22, 1, 0.36, 1), padding 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-sidebar-button {
    display: none;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-height: 40px;
    overflow: visible;
    color: var(--heading);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 0;
}

.site-brand img {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: block;
    border-radius: 50%;
    object-fit: contain;
    background: var(--surface-soft);
}

.site-brand span {
    display: block;
    line-height: 1.35;
    padding-bottom: 1px;
}

.site-nav {
    min-width: 0;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    color: var(--text);
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
}

.site-nav a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:active {
    color: var(--accent);
    background: var(--accent-soft);
}

.site-actions {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    transition: gap 0.26s cubic-bezier(0.22, 1, 0.36, 1), margin-left 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-actions .site-search {
    order: 1;
}

.site-actions .theme-toggle-button {
    order: 2;
}

.site-actions .site-avatar {
    order: 3;
}

.site-icon-button {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--muted);
    background: transparent;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    touch-action: manipulation;
}

.site-icon-button svg {
    width: 20px;
    height: 20px;
}

.site-icon-button:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

.site-icon-button:active {
    color: var(--primary);
    background: var(--primary-soft);
    transform: scale(0.96);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-search {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 34px;
    height: 44px;
    flex: 0 0 auto;
    transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-search.is-open {
    width: min(320px, 40vw);
}

.site-search-toggle {
    position: relative;
    z-index: 1;
    border-radius: 12px;
    transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease, color 0.2s ease;
}

.site-search-toggle:hover {
    background: var(--accent-soft);
    color: var(--heading);
}

.site-search.is-open .site-search-toggle {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.86);
}

.site-search.is-closing .site-search-toggle {
    pointer-events: none;
}

.site-search-panel {
    position: relative;
    top: auto;
    left: auto;
    z-index: 20;
    width: 100%;
    max-width: none;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.96);
    transform-origin: center;
    transition: opacity 220ms cubic-bezier(0.22, 1, 0.36, 1), transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.site-search-panel[hidden] {
    display: none;
}

.site-search.is-open .site-search-panel {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.site-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 0 10px 0 15px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    transition: border-color 0.24s ease, box-shadow 0.3s ease, background 0.24s ease;
}

.site-search-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft), 0 12px 28px rgba(15, 23, 42, 0.12);
}

.site-search-icon,
.site-search-close svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.site-search-icon {
    flex: 0 0 auto;
    color: var(--subtle);
    transition: color 0.2s ease;
}

.site-search-form:focus-within .site-search-icon {
    color: var(--muted);
}

.site-search-input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--heading);
    font: inherit;
    padding: 2px 0;
}

.site-search-input::placeholder {
    color: var(--subtle);
}

.site-search-close {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: var(--muted);
    background: transparent;
    font: inherit;
    cursor: pointer;
    touch-action: manipulation;
    transition: color 0.2s ease, background 0.2s ease, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-search-close:hover,
.site-search-close:focus-visible {
    color: var(--heading);
    background: var(--accent-soft);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .site-search-panel {
        right: 0;
        width: 290px;
        width: min(290px, calc(100vw - 24px));
        max-width: calc(100vw - 24px);
    }
}

@media (max-width: 900px) {
    .site-header-inner {
        padding: 0 14px;
        gap: 10px;
    }

    .mobile-sidebar-button {
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 44px;
        color: var(--heading);
        background: transparent;
        cursor: pointer;
        touch-action: manipulation;
    }

    .mobile-sidebar-button svg {
        width: 22px;
        height: 22px;
        color: currentColor;
    }

    .mobile-sidebar-button svg path {
        fill: currentColor;
    }

    .site-brand {
        min-width: 0;
        min-height: 44px;
        gap: 8px;
    }

    .site-brand span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .site-nav {
        display: none;
    }

    .site-actions {
        margin-left: auto;
        gap: 4px;
    }

    .site-icon-button {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .site-header .mobile-sidebar-button,
    .site-header .site-brand,
    .site-header .theme-toggle-button,
    .site-header .site-avatar {
        transition: opacity 0.2s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear;
        will-change: opacity, transform;
    }

    .site-header.is-mobile-searching .site-header-inner {
        gap: 0;
        padding: 0 12px;
    }

    .site-header.is-mobile-searching .mobile-sidebar-button,
    .site-header.is-mobile-searching .site-brand,
    .site-header.is-mobile-searching .site-nav,
    .site-header.is-mobile-searching .theme-toggle-button,
    .site-header.is-mobile-searching .site-avatar {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translate3d(0, -6px, 0) scale(0.96);
        transition-delay: 0s, 0s, 0.18s;
    }

    .site-header.is-mobile-searching .site-actions {
        margin-left: auto;
        gap: 0;
    }

    .site-search.is-mobile-search {
        width: 40px;
        height: 40px;
        justify-content: center;
    }

    .site-search.is-mobile-search .site-search-toggle {
        opacity: 0;
        pointer-events: none;
        transform: scale(0.78);
    }

    .site-search.is-mobile-search .site-search-panel {
        position: fixed;
        top: var(--mobile-search-top, 8px);
        left: var(--mobile-search-left, 12px);
        right: auto;
        z-index: 70;
        width: var(--mobile-search-width, calc(100vw - 24px));
        max-width: none;
        opacity: 1;
        pointer-events: auto;
        transform: translate3d(0, 0, 0) scale(1);
        transform-origin: center;
        transition: none;
        will-change: opacity, transform;
    }

    .site-search.is-mobile-search .site-search-form {
        height: 40px;
        min-height: 40px;
        padding: 0 7px 0 12px;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    }

    .site-search.is-mobile-search .site-search-close {
        width: 32px;
        height: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-search-panel {
        transition: none;
    }
}

.theme-toggle-button .theme-icon {
    display: block;
    width: 20px;
    height: 20px;
}

.site-avatar {
    width: 36px;
    height: 36px;
    display: inline-flex;
    overflow: hidden;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 3px 10px rgba(32, 42, 68, 0.12);
}

.site-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--surface-soft);
}

/* 手机端侧边抽屉导航 */
.mobile-menu-mask {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(15, 23, 42, 0.34);
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.mobile-menu-mask[hidden] {
    display: none;
}

.mobile-menu-mask.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-drawer {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 90;
    width: min(78vw, 292px);
    height: 100vh;
    height: 100dvh;
    padding: 14px;
    border-right: 1px solid rgba(229, 231, 235, 0.82);
    border-radius: 0 18px 18px 0;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 14px 0 34px rgba(15, 23, 42, 0.13);
    opacity: 0.96;
    transform: translate3d(calc(-100% - 14px), 0, 0);
    transform-origin: left center;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
    will-change: transform;
}

.mobile-menu-drawer.is-open {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 46px;
    margin-bottom: 12px;
    padding: 0 0 12px;
    border-bottom: 1px solid rgba(229, 231, 235, 0.82);
}

.mobile-menu-head strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--heading);
    font-size: 17px;
    line-height: 1.25;
    font-weight: 750;
    letter-spacing: -0.01em;
}

.mobile-menu-head strong::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.mobile-menu-head button {
    position: relative;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-soft);
    color: var(--muted);
    cursor: pointer;
    touch-action: manipulation;
    box-shadow: none;
    transition: color 0.22s ease, transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.mobile-menu-head button::before {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background: var(--primary-soft);
    opacity: 0;
    transform: scale(0.55);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.mobile-menu-head button svg {
    position: relative;
    z-index: 1;
    width: 17px;
    height: 17px;
    transition: transform 0.24s ease;
}

.mobile-menu-head button:hover {
    color: var(--primary);
    border-color: var(--line-strong);
    background: #ffffff;
    transform: translateY(-1px);
}

.mobile-menu-head button:hover::before {
    opacity: 1;
    transform: scale(1);
}

.mobile-menu-head button:hover svg {
    transform: rotate(90deg) scale(0.96);
}

.mobile-menu-head button:active {
    color: var(--primary);
    transform: scale(0.96);
}

.mobile-menu-head button:active::before {
    opacity: 1;
    transform: scale(0.9);
}

.mobile-menu-nav {
    display: grid;
    gap: 8px;
}

.mobile-menu-nav a {
    min-height: 48px;
    padding: 7px 10px;
    border: 1px solid rgba(229, 231, 235, 0.72);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 9px;
    background: rgba(246, 247, 249, 0.9);
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    box-shadow: none;
    touch-action: manipulation;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.mobile-menu-nav a svg {
    width: 32px;
    height: 32px;
    padding: 7px;
    flex: 0 0 32px;
    border-radius: 10px;
    color: var(--heading);
    background: transparent;
    transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.mobile-menu-notice-icon-dark {
    display: none;
}

html[data-theme="dark"] .mobile-menu-notice-icon-light {
    display: none;
}

html[data-theme="dark"] .mobile-menu-notice-icon-dark {
    display: block;
    color: #949DA6;
}

html[data-theme="dark"] .mobile-menu-notice-icon-dark path {
    fill: #949DA6;
}

.mobile-menu-nav a span {
    min-width: 0;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a:active {
    border-color: var(--line-strong);
    background: #ffffff;
    color: var(--primary);
    transform: translateX(1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.mobile-menu-nav a:hover svg,
.mobile-menu-nav a:active svg {
    color: var(--primary);
    background: transparent;
    transform: scale(1.03);
}

.mobile-menu-nav a:active {
    transform: scale(0.985);
}

html[data-theme="dark"] .mobile-menu-mask {
    background: rgba(0, 0, 0, 0.48);
}

html[data-theme="dark"] .mobile-menu-drawer {
    border-right-color: var(--line);
    background: rgba(42, 43, 47, 0.98);
    box-shadow: 14px 0 34px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .mobile-menu-head {
    border-bottom-color: var(--line);
}

html[data-theme="dark"] .mobile-menu-head button,
html[data-theme="dark"] .mobile-menu-nav a {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.035);
}

html[data-theme="dark"] .mobile-menu-head button:hover,
html[data-theme="dark"] .mobile-menu-nav a:hover,
html[data-theme="dark"] .mobile-menu-nav a:active {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.07);
}

@media (prefers-reduced-motion: reduce) {
    .mobile-menu-mask,
    .mobile-menu-drawer,
    .mobile-menu-nav a,
    .mobile-menu-nav a svg {
        transition: none;
    }
}

/* 页面主容器 */
.site-main {
    width: min(100%, var(--container));
    margin: 0 auto;
    padding: 80px 24px 0;
    flex: 1 0 auto;
}

/* 首页双栏布局：左侧固定宽度更显精致，右侧内容区收窄聚焦，间距留白更透气 */
.home-shell {
    display: grid;
    grid-template-columns: minmax(280px, 300px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.home-sidebar {
    position: sticky;
    top: 80px;
    display: grid;
    gap: 24px;
}

.home-content {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 12px;
}

.home-panel:not([hidden]) {
    display: grid;
    align-content: start;
    gap: 12px;
}

.home-panel.is-panel-entering {
    animation: home-panel-enter 0.28s ease both;
}

@keyframes home-panel-enter {
    from {
        opacity: 0;
        transform: translateY(14px);
        filter: blur(2px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-panel.is-panel-entering {
        animation: none;
    }
}

/* 左侧个人资料卡片 */
.profile-card,
.notice-card,
.hero-card,
.post-card,
.empty-state {
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.profile-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding-bottom: 20px;
}

.profile-cover {
    height: 120px;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background:
        radial-gradient(circle at 78% 22%, var(--accent-pink-soft), transparent 34%),
        linear-gradient(135deg, #f3f4f6, #ffffff);
}

.profile-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: var(--surface-soft);
}

.profile-main {
    padding: 0 20px;
    text-align: center;
}

.profile-avatar-wrap {
    position: relative;
    width: 86px;
    height: 86px;
    margin: -43px auto 10px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    margin: 3px;
    display: block;
    border: 3px solid #ffffff;
    border-radius: 50%;
    object-fit: contain;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(32, 42, 68, 0.16);
}

.profile-status {
    position: absolute;
    right: 7px;
    bottom: 9px;
    width: 10px;
    height: 10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: var(--muted);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.profile-main h1 {
    margin: 0;
    color: var(--heading);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
}

.profile-main p {
    margin: 8px auto 16px;
    max-width: 260px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-socials button {
    position: relative;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--muted);
    background: var(--surface-soft);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.profile-socials button svg {
    width: 18px;
    height: 18px;
}

.profile-socials .copy-button-github {
    color: #24292f;
    background: rgba(36, 41, 47, 0.1);
}

.profile-socials .copy-button-gitee {
    color: #c71d23;
    background: rgba(199, 29, 35, 0.1);
}

.profile-socials .copy-button-qq {
    color: #12b7f5;
    background: rgba(18, 183, 245, 0.12);
}

.profile-socials .copy-button-email {
    color: #f29600;
    background: rgba(242, 150, 0, 0.12);
}

.profile-socials .copy-button-wechat {
    color: #09bb07;
    background: rgba(9, 187, 7, 0.12);
}

.profile-socials .copy-button-default {
    color: var(--muted);
    background: var(--surface-soft);
}

.profile-socials button:hover {
    background: var(--surface);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(32, 42, 68, 0.1);
}

.profile-socials button.is-copied {
    background: var(--primary-soft);
}

.profile-socials button.is-copy-failed {
    background: rgba(217, 45, 32, 0.12);
}

.copy-button-text {
    color: var(--heading);
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
}

.copy-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    z-index: 10;
    min-width: 64px;
    padding: 4px 8px;
    border: 1px solid var(--copy-tooltip-border);
    border-radius: 999px;
    background: var(--copy-tooltip-bg);
    color: var(--copy-tooltip-text);
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    opacity: 0;
    box-shadow: var(--copy-tooltip-shadow);
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

@keyframes copyTooltipPop {
    0% { opacity: 0; transform: translate(-50%, 8px) scale(0.5); }
    45% { opacity: 1; transform: translate(-50%, -3px) scale(1.1); }
    70% { transform: translate(-50%, 0) scale(0.94); }
    100% { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

@keyframes copyButtonCheer {
    0% { transform: translateY(0) scale(1); }
    35% { transform: translateY(-4px) scale(1.1); }
    70% { transform: translateY(0) scale(0.94); }
    100% { transform: translateY(0) scale(1); }
}

.profile-socials button.is-copied {
    animation: copyButtonCheer 0.46s cubic-bezier(0.22, 1, 0.36, 1);
}

.profile-socials button.is-copied .copy-tooltip {
    background: #16a34a;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 10px 22px rgba(22, 163, 74, 0.32);
    animation: copyTooltipPop 0.44s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.profile-socials button.is-copy-failed .copy-tooltip {
    background: #dc2626;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 10px 22px rgba(220, 38, 38, 0.32);
    animation: copyTooltipPop 0.44s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* 左侧公告卡片 */
.notice-card {
    border-radius: var(--radius-lg);
    padding: 20px;
    font-family: var(--font-misans);
}

.notice-card-head {
    min-height: 22px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    color: var(--heading);
}

.notice-card-head::before {
    content: "";
    width: 3px;
    height: 18px;
    flex: 0 0 3px;
    border-radius: 999px;
    background: var(--primary);
}

.notice-card-icon {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    line-height: 1;
}

.notice-card-icon svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.notice-card-icon-dark {
    display: none;
}

html[data-theme="dark"] .notice-card-icon-light {
    display: none;
}

html[data-theme="dark"] .notice-card-icon-dark {
    display: block;
    color: #949DA6;
}

html[data-theme="dark"] .notice-card-icon-dark path {
    fill: #949DA6;
}

.notice-card-head h2 {
    margin: 0;
    color: var(--heading);
    font-size: 16px;
    line-height: 22px;
    font-weight: 700;
}

.notice-content {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.notice-content p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
    font-weight: 400;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.notice-content a {
    color: var(--accent);
    font-weight: 700;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.notice-content a:hover {
    color: var(--primary);
}

.search-result-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.search-result-eyebrow {
    display: inline-flex;
    margin-bottom: 6px;
    color: var(--primary);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
}

.search-result-card h2 {
    margin: 0;
    color: var(--heading);
    font-size: 18px;
    line-height: 1.4;
    font-weight: 800;
}

.search-result-card p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.search-result-clear {
    flex: 0 0 auto;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
    text-decoration: none;
}

.search-result-clear:hover {
    background: var(--primary);
    color: var(--bg);
}

/* 首页焦点图 */
.hero-card {
    position: relative;
    height: 360px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    isolation: isolate;
}

.hero-track {
    position: relative;
    height: 100%;
    touch-action: pan-y;
    cursor: grab;
}

.hero-track.is-dragging {
    cursor: grabbing;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
    transition: transform 0.55s ease;
    will-change: transform;
}

.hero-track.is-dragging .hero-slide {
    transition: none;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 0.7s ease;
}

.hero-slide:hover img {
    transform: scale(1.045);
}

.hero-nav {
    position: absolute;
    top: 50%;
    z-index: 12;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.36);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    opacity: 0;
    transform: translateY(-50%) scale(0.96);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.hero-card:hover .hero-nav,
.hero-nav:focus-visible {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.hero-nav:hover {
    border-color: rgba(255, 255, 255, 0.9);
    background: rgba(17, 24, 39, 0.58);
}

.hero-nav svg {
    width: 22px;
    height: 22px;
}

.hero-nav-prev {
    left: 18px;
}

.hero-nav-next {
    right: 18px;
}

/* 标签分类按钮：桌面端悬停展开，移动端点击展开 */
.category-dropdown {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    padding: 6px 8px 6px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(32, 42, 68, 0.055);
}

.category-dropdown::before {
    content: "文章筛选";
    color: var(--subtle);
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.category-trigger {
    min-height: 38px;
    padding: 7px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-soft);
    color: var(--muted);
    font: inherit;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.18s ease;
    touch-action: manipulation;
}

.category-trigger span {
    color: inherit;
}

.category-trigger svg {
    width: 16px;
    height: 16px;
    color: inherit;
    transition: transform 0.2s ease;
}

.category-dropdown.is-open .category-trigger {
    border-color: var(--line-strong);
    background: var(--surface);
    color: var(--primary);
    box-shadow: none;
}

.category-trigger:active {
    transform: scale(0.97);
}

.category-dropdown.is-open .category-trigger svg {
    transform: rotate(180deg);
}

.category-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: min(280px, calc(100vw - 32px));
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    background: var(--surface);
    box-shadow: 0 18px 42px rgba(32, 42, 68, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.category-menu::before {
    content: "";
    position: absolute;
    right: 0;
    top: -12px;
    left: 0;
    height: 12px;
}

.category-dropdown.is-loading {
    opacity: 0.72;
}

.category-dropdown.is-loading .category-trigger {
    cursor: wait;
}

.category-dropdown.is-open .category-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.category-dropdown.is-hover-paused .category-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
}

.category-menu a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
    text-align: left;
}

.category-menu a:hover,
.category-menu a.is-active {
    background: var(--surface-soft);
    color: var(--primary);
}

.category-menu a.is-active::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 8px;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 auto;
}

@media (hover: hover) and (pointer: fine) {
    .category-dropdown:not(.is-hover-paused):hover .category-trigger,
    .category-dropdown:not(.is-hover-paused) .category-trigger:hover,
    .category-dropdown:not(.is-hover-paused) .category-trigger:hover + .category-menu {
        border-color: transparent;
    }

    .category-dropdown:not(.is-hover-paused):hover .category-trigger,
    .category-dropdown:not(.is-hover-paused) .category-trigger:hover {
        background: var(--surface);
        color: var(--primary);
        box-shadow: none;
    }

    .category-dropdown:not(.is-hover-paused):hover .category-trigger svg,
    .category-dropdown:not(.is-hover-paused) .category-trigger:hover svg {
        transform: rotate(180deg);
    }

    .category-dropdown:not(.is-hover-paused):hover .category-menu,
    .category-dropdown:not(.is-hover-paused):focus-within .category-menu,
    .category-dropdown:not(.is-hover-paused) .category-trigger:hover + .category-menu,
    .category-dropdown:not(.is-hover-paused) .category-menu:hover {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
}

/* 文章列表 */
.post-section {
    margin: 0;
}

.post-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    min-width: 0;
}

.post-card {
    display: flex;
    align-items: stretch;
    gap: 18px;
    min-width: 0;
    max-width: 100%;
    min-height: 152px;
    padding: 16px;
    border-radius: var(--radius);
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.post-card-title-link,
.post-card-summary-link {
    display: block;
}

.post-card-title-link {
    display: block;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.post-card-summary-link {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    max-width: 100%;
}

.post-card-body > p {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.post-card-body > p .post-card-summary-link {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-body {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.post-card-body > * {
    min-width: 0;
    max-width: 100%;
}

.post-card-labels {
    min-height: 22px;
    margin-bottom: 4px;
}

.post-pin {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 8px;
    border-radius: 4px;
    background: #16a34a;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
}

.hot-board-panel {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.hot-board-head {
    min-height: 78px;
    padding: 18px 20px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    background: var(--surface);
}

.hot-board-kicker {
    display: block;
    margin-bottom: 4px;
    color: var(--subtle);
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hot-board-head h2 {
    margin: 0;
    color: var(--heading);
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hot-board-head p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    font-weight: 700;
    white-space: nowrap;
}

.hot-board-body {
    padding: 0 14px 14px;
}

.hot-board-body .post-list {
    gap: 12px;
}

.hot-post-card {
    border-radius: var(--radius-lg);
    background: var(--surface-soft);
}

.hot-post-card:hover {
    background: var(--surface);
}

.hot-post-card .post-card-labels {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.hot-rank-badge,
.hot-score-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.hot-rank-badge {
    min-width: 42px;
    justify-content: center;
    color: var(--heading);
    background: var(--primary-soft);
}

.hot-rank-badge.rank-gold,
.hot-rank-badge.rank-silver,
.hot-rank-badge.rank-bronze {
    color: var(--heading);
    background: var(--surface-soft);
}

.hot-score-badge {
    color: var(--muted);
}

html[data-theme="dark"] .hot-rank-badge,
html[data-theme="dark"] .hot-score-badge {
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
}

html[data-theme="dark"] .hot-rank-badge {
    color: var(--heading);
}

@media (max-width: 640px) {
    .hot-board-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 16px;
    }

    .hot-board-head p {
        white-space: normal;
    }

    .hot-board-body {
        padding: 10px;
    }
}

.post-card h3 {
    margin: 0;
    color: var(--heading);
    font-size: 18px;
    line-height: 1.45;
    font-weight: 700;
    letter-spacing: 0;
}

.post-card p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.post-card-footer {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.post-card-meta {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--subtle);
    font-size: 13px;
    line-height: 1.4;
}

.post-time,
.post-stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.post-time .icon,
.post-stat .icon {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
}

.post-tag {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f3f5f9;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.2;
}

.post-stats {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    color: #333333;
    font-size: 13px;
    line-height: 1.4;
    flex-shrink: 0;
}

.inline-like-form {
    margin: 0;
    display: inline-flex;
}

.inline-like-button {
    border: 0;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.post-like {
    padding: 0;
    background: transparent;
    cursor: pointer;
    color: #333333;
    transition: color 0.2s ease, transform 0.2s ease;
}

.post-like:hover {
    color: var(--like);
    transform: translateY(-1px);
}

.post-like.is-liked,
.hot-like.is-liked {
    color: var(--like);
}

.post-like.is-liked .icon path,
.hot-like.is-liked path {
    fill: var(--like);
}

.post-like.is-loading,
.hot-like.is-loading {
    opacity: 0.62;
    pointer-events: none;
}

.post-like-heart {
    display: inline-block;
    transform-origin: center;
    transition: color 0.2s ease;
}

@keyframes postLikeHeartPop {
    0% { transform: scale(1); }
    28% { transform: scale(1.42); }
    55% { transform: scale(0.82); }
    78% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

.post-like-heart.is-popping {
    animation: postLikeHeartPop 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.post-card-cover {
    width: 160px;
    height: 120px;
    flex: 0 0 160px;
    overflow: hidden;
    border-radius: 8px;
    background: #eef0f5;
}

.post-card-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.post-card:hover .post-card-cover img {
    transform: scale(1.04);
}

/* 热榜列表：保持统计项等距，并移除卡片与悬停阴影 */
.hot-page-grid {
    display: grid;
    gap: 16px;
}

.hot-page-grid .page-main-card,
.hot-main-card,
.hot-card,
.hot-card:hover,
.hot-card:focus-within {
    box-shadow: none;
}

.hot-main-card {
    display: grid;
    gap: 16px;
}

.hot-list {
    display: grid;
    gap: 14px;
}

.hot-card {
    display: grid;
    grid-template-columns: auto 150px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.hot-card:hover,
.hot-card:focus-within {
    border-color: var(--line-strong);
    background: var(--surface);
    transform: none;
}

.hot-rank {
    min-width: 34px;
    color: var(--subtle);
    font-size: 18px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hot-cover {
    width: 150px;
    height: 104px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface-soft);
    box-shadow: none;
}

.hot-cover img,
.hot-cover-placeholder {
    width: 100%;
    height: 100%;
    display: block;
}

.hot-cover img {
    object-fit: cover;
}

.hot-cover-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--subtle);
    font-weight: 800;
    letter-spacing: 0.12em;
}

.hot-body {
    min-width: 0;
}

.hot-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--subtle);
    font-size: 13px;
    line-height: 1.4;
}

.hot-body h2 {
    margin: 6px 0 0;
    color: var(--heading);
    font-size: 18px;
    line-height: 1.45;
    font-weight: 700;
}

.hot-body h2 a,
.hot-body p a {
    display: block;
}

.hot-body p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-stats {
    margin-top: 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: #333333;
    font-size: 13px;
    line-height: 1.4;
}

.hot-stats > span,
.hot-stats > form,
.hot-like {
    display: inline-flex;
    align-items: center;
}

.hot-stats > span,
.hot-like {
    gap: 5px;
    white-space: nowrap;
}

.hot-stats > form {
    margin: 0;
}

.hot-stats svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
}

.hot-like {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    box-shadow: none;
    transition: color 0.2s ease, transform 0.18s ease;
}

.hot-like:hover,
.hot-like:focus-visible {
    color: var(--like);
    box-shadow: none;
    transform: scale(1.04);
}

.hot-like:active {
    transform: scale(0.98);
}

html[data-theme="dark"] .hot-stats {
    color: var(--muted);
}

/* 热榜页：只保留单一排行榜，按序号和热度从上到下展示文章 */
.hot-ranking-board {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.hot-ranking-head {
    min-height: 74px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
}

.hot-ranking-head span {
    display: block;
    margin-bottom: 3px;
    color: var(--subtle);
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hot-ranking-head h2 {
    margin: 0;
    color: var(--heading);
    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hot-ranking-head small {
    color: var(--subtle);
    font-size: 13px;
    white-space: nowrap;
}

.hot-ranking-list {
    display: grid;
}

.hot-ranking-item {
    min-height: 72px;
    padding: 14px 20px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    color: inherit;
    background: var(--surface);
    transition: background 0.18s ease, color 0.18s ease;
}

.hot-ranking-item:last-child {
    border-bottom: 0;
}

.hot-ranking-item:hover,
.hot-ranking-item:focus-visible {
    background: var(--surface-soft);
    color: inherit;
}

.hot-ranking-index {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--subtle);
    background: var(--surface-soft);
    font-size: 16px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hot-ranking-index.rank-gold,
.hot-ranking-index.rank-silver,
.hot-ranking-index.rank-bronze {
    color: #111827;
}

.hot-ranking-index.rank-gold {
    background: #fde68a;
}

.hot-ranking-index.rank-silver {
    background: #e5e7eb;
}

.hot-ranking-index.rank-bronze {
    background: #fed7aa;
}

.hot-ranking-content {
    min-width: 0;
}

.hot-ranking-content h3 {
    margin: 0;
    overflow: hidden;
    color: var(--heading);
    font-size: 17px;
    line-height: 1.45;
    font-weight: 750;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hot-ranking-score {
    min-width: 86px;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    color: var(--subtle);
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
}

.hot-ranking-score strong {
    color: var(--heading);
    font-size: 18px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

@media (max-width: 640px) {
    .hot-ranking-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .hot-ranking-head small {
        white-space: normal;
    }

    .hot-ranking-item {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 12px;
        padding: 14px;
    }

    .hot-ranking-score {
        grid-column: 2;
        align-items: flex-start;
        flex-direction: row;
        gap: 6px;
    }

    .hot-ranking-score strong {
        font-size: 15px;
    }
}

/* 热榜页：文章卡片沿用首页样式，右侧保留排行榜信息 */
.hot-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
    align-items: start;
    gap: 16px;
}

.hot-main-card {
    min-width: 0;
}

.hot-rank-sidebar {
    position: sticky;
    top: 80px;
    display: grid;
    gap: 16px;
    min-width: 0;
}

.hot-rank-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.hot-rank-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.hot-rank-kicker {
    display: block;
    margin-bottom: 3px;
    color: var(--subtle);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hot-rank-head h2 {
    margin: 0;
    color: var(--heading);
    font-size: 17px;
    line-height: 1.35;
    font-weight: 800;
}

.hot-rank-badge {
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
}

.hot-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.hot-stat-grid span {
    min-width: 0;
    padding: 12px;
    border-radius: 14px;
    background: var(--surface-soft);
}

.hot-stat-grid strong,
.hot-stat-grid small {
    display: block;
}

.hot-stat-grid strong {
    color: var(--heading);
    font-size: 18px;
    line-height: 1.15;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
}

.hot-stat-grid small {
    margin-top: 4px;
    color: var(--subtle);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
}

.hot-rank-list {
    display: grid;
    gap: 8px;
}

.hot-rank-item {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 3px 10px;
    align-items: center;
    min-height: 56px;
    padding: 9px 10px;
    border-radius: 14px;
    color: inherit;
    background: transparent;
}

.hot-rank-item:hover,
.hot-rank-item:focus-visible {
    background: var(--surface-soft);
    transform: translateX(1px);
}

.hot-rank-index {
    grid-row: 1 / span 2;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 13px;
    line-height: 1;
    font-weight: 850;
}

.hot-rank-index.rank-gold {
    background: rgba(245, 158, 11, 0.16);
    color: #d97706;
}

.hot-rank-index.rank-silver {
    background: rgba(100, 116, 139, 0.14);
    color: #64748b;
}

.hot-rank-index.rank-bronze {
    background: rgba(180, 83, 9, 0.14);
    color: #b45309;
}

.hot-rank-title {
    min-width: 0;
    color: var(--heading);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hot-rank-item small {
    min-width: 0;
    color: var(--subtle);
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hot-rank-empty {
    padding: 14px;
    border-radius: 14px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    font-weight: 700;
    text-align: center;
}

html[data-theme="dark"] .hot-rank-card,
html[data-theme="dark"] .hot-stat-grid span,
html[data-theme="dark"] .hot-rank-badge,
html[data-theme="dark"] .hot-rank-index,
html[data-theme="dark"] .hot-rank-empty {
    border-color: var(--line);
}

html[data-theme="dark"] .hot-rank-index.rank-gold {
    background: rgba(251, 191, 36, 0.16);
    color: #facc15;
}

html[data-theme="dark"] .hot-rank-index.rank-silver {
    background: rgba(203, 213, 225, 0.12);
    color: #cbd5e1;
}

html[data-theme="dark"] .hot-rank-index.rank-bronze {
    background: rgba(251, 146, 60, 0.16);
    color: #fdba74;
}

@media (max-width: 760px) {
    .hot-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .hot-cover {
        grid-column: 1 / -1;
        width: 100%;
        height: 180px;
    }
}

@media (max-width: 1180px) {
    .hot-page-grid {
        grid-template-columns: 1fr;
    }

    .hot-rank-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hot-rank-overview {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .hot-rank-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .hot-card {
        padding: 14px;
        gap: 12px;
    }

    .hot-stats {
        gap: 12px;
    }
}

/* 空状态 */
.empty-state {
    padding: 56px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.empty-state-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #919191;
}

.empty-state-icon svg {
    width: 58px;
    height: 58px;
}

.empty-state h2 {
    margin: 0 0 8px;
    color: var(--heading);
    font-size: 20px;
    line-height: 1.4;
    font-weight: 700;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

/* 分页 */
.pagination {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pagination a,
.pagination span {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 13px;
    box-shadow: 0 4px 14px rgba(32, 42, 68, 0.04);
}

.pagination a:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-1px);
}

/* 文章详情页 - 电脑端 */
.pd-container {
    width: 100%;
    min-width: 0;
    max-width: 920px;
    margin: 0 auto;
    padding: clamp(22px, 4vw, 32px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
    font-family: var(--font-misans);
}

.pd-header {
    padding-bottom: clamp(12px, 2vw, 16px);
    border-bottom: 1px solid var(--line);
}

.pd-title {
    margin: 0;
    color: var(--heading);
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* 作者信息条：标题上方独立区块，显示站长头像、用户名、座右铭 */
.pd-author-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.pd-author-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--surface);
}

.pd-author-meta {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pd-author-name {
    color: var(--heading);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.pd-author-motto {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pd-author-home {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.pd-author-home:hover,
.pd-author-home:focus-visible {
    color: var(--heading);
    background: var(--surface-soft);
    border-color: var(--line-strong);
}

.pd-author-home svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.pd-author-home:hover svg,
.pd-author-home:focus-visible svg {
    transform: translateX(2px);
}

/* 摘要按钮：标题下方，点击展开站长摘要 */
.pd-summary-toggle {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pd-summary-toggle:hover,
.pd-summary-toggle:focus-visible {
    background: var(--surface);
    color: var(--heading);
    border-color: var(--line-strong);
}

.pd-summary-toggle svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.pd-summary-toggle .pd-summary-caret {
    transition: transform 0.22s ease;
}

.pd-summary-toggle[aria-expanded="true"] .pd-summary-caret {
    transform: rotate(180deg);
}

.pd-summary-panel {
    margin-top: 12px;
    padding: 14px 16px;
    min-width: 0;
    border-left: 3px solid var(--primary);
    border-radius: 0 12px 12px 0;
    background: var(--surface-soft);
    animation: pdSummaryIn 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.pd-summary-panel[hidden] {
    display: none;
}

.pd-summary-panel p {
    margin: 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.8;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@keyframes pdSummaryIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.pd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.pd-tag {
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
}

.pd-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    color: var(--subtle);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
}

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

.pd-meta-item svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: currentColor;
}

.pd-meta-item svg path {
    fill: currentColor;
}

.pd-content {
    min-width: 0;
    padding: clamp(14px, 2.5vw, 20px) 0;
    color: var(--text);
    font-size: 16px;
    line-height: 1.85;
    overflow-wrap: anywhere;
    word-break: break-word;
}

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

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

.pd-content p {
    margin: 0 0 1em;
    color: var(--text);
}

.pd-content h1,
.pd-content h2,
.pd-content h3,
.pd-content h4,
.pd-content h5,
.pd-content h6 {
    margin: 1.4em 0 0.6em;
    color: var(--heading);
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.pd-content h1 {
    font-size: 26px;
}

.pd-content h2 {
    font-size: 22px;
}

.pd-content h3 {
    font-size: 18px;
}

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

.pd-content h5,
.pd-content h6 {
    font-size: 16px;
}

.pd-content a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pd-content a:hover {
    color: var(--primary-hover);
}

.pd-content blockquote {
    margin: 1.2em 0;
    padding: 14px 16px;
    border-left: 4px solid var(--primary);
    border-radius: 0 14px 14px 0;
    background: var(--surface-soft);
    color: var(--muted);
}

.pd-content code {
    padding: 3px 7px;
    border-radius: 7px;
    background: var(--surface-soft);
    color: var(--heading);
    font-family: var(--font-misans);
    font-size: 0.9em;
}

.pd-content pre {
    margin: 1.2em 0;
    padding: 16px;
    max-width: 100%;
    overflow-x: auto;
    border-radius: 14px;
    background: #1f2433;
    color: #f5f7ff;
    font-size: 14px;
    line-height: 1.6;
}

.pd-content pre code {
    padding: 0;
    background: transparent;
    color: inherit;
}

.pd-content ul,
.pd-content ol {
    margin: 1em 0;
    padding-left: 1.8em;
}

.pd-content li {
    margin: 0.4em 0;
}

.pd-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.2em 0;
}

.pd-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    padding: clamp(20px, 3vw, 28px) 0 0;
}

.pd-action-form {
    display: contents;
}

.pd-action-button {
    padding: 0;
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.18s ease;
}

.pd-action-button svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    color: currentColor;
    transition: transform 0.2s ease;
}

.pd-action-button:hover {
    color: var(--primary);
}

.pd-action-button:hover svg {
    transform: scale(1.1);
}

.pd-action-button:active svg {
    transform: scale(0.95);
}

.pd-action-button.is-liked {
    color: var(--like);
}

.pd-action-button.is-liked svg {
    fill: var(--like);
    stroke: var(--like);
}

.pd-action-button.is-animating {
    animation: like-bounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes like-bounce {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.2) translateY(-8px);
    }
    50% {
        transform: scale(0.95) translateY(0);
    }
    75% {
        transform: scale(1.05) translateY(-4px);
    }
    100% {
        transform: scale(1) translateY(0);
    }
}

.pd-divider {
    height: 1px;
    margin: clamp(10px, 1.5vw, 14px) 0;
    border: 0;
    background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.pd-comments-section {
    padding-top: clamp(18px, 3vw, 24px);
}

.pd-comments-header {
    margin-bottom: 18px;
}

.pd-comments-header h2 {
    margin: 0;
    color: var(--heading);
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.pd-comment-identity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -4px 0 18px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.pd-comment-identity[hidden] {
    display: none;
}

.pd-comment-identity-edit {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
    color: var(--heading);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.pd-comments-list {
    display: flex;
    flex-direction: column;
}

.pd-comment-card {
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
    transition: border-color 0.2s ease;
}

.pd-comment-card:last-child {
    border-bottom: none;
}

.pd-comment-card:hover {
    border-bottom-color: var(--line-strong);
}

.pd-comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.pd-comment-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.pd-comment-author {
    display: contents;
}

.pd-comment-avatar {
    display: none;
}

.pd-comment-name {
    color: var(--heading);
    font-size: 15px;
    line-height: 1.3;
    font-weight: 600;
}

.pd-comment-time {
    color: var(--subtle);
    font-size: 13px;
    line-height: 1.4;
}

.pd-comment-content {
    margin: 0;
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.pd-comment-empty {
    padding: 40px 20px;
    border-radius: 18px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.pd-comment-form {
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.pd-comment-form-wrapper {
    margin-bottom: 20px;
}

.pd-comment-form button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.pd-comment-gate {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 5vw, 48px);
    background: var(--bg);
    color: var(--text);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

.pd-comment-gate.is-visible {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.pd-comment-gate[hidden] {
    display: none;
}

.pd-comment-gate-panel {
    width: min(100%, 520px);
    padding: clamp(24px, 4vw, 36px);
}

.pd-comment-gate.is-visible .pd-comment-gate-panel {
    animation: commentGatePanelIn 680ms cubic-bezier(0.22, 1, 0.36, 1) 420ms both;
}

.pd-comment-gate.is-visible .pd-comment-gate-panel.is-ready-state {
    animation: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes commentGatePanelIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pd-comment-gate-kicker {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    position: relative;
    min-width: 280px;
    max-width: 420px;
    padding: 14px 18px;
    border-radius: 8px;
    background: #dc2626;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    overflow: hidden;
    animation: toastSlideIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.toast-success {
    background: #16a34a;
}

.toast-error {
    background: #dc2626;
}

.toast.is-hiding {
    animation: toastSlideOut 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.toast::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    animation: toastProgress 3s linear forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%) translateY(-10px);
    }
}

@keyframes toastProgress {
    from {
        transform: scaleX(1);
        transform-origin: left;
    }
    to {
        transform: scaleX(0);
        transform-origin: left;
    }
}

html[data-theme="dark"] .toast {
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .toast-success {
    background: #16a34a;
}

html[data-theme="dark"] .toast-error {
    background: #dc2626;
}

@media (max-width: 640px) {
    .toast-container {
        top: 16px;
        right: 16px;
        left: 16px;
    }

    .toast {
        min-width: auto;
        width: 100%;
    }
}

.pd-comment-gate-panel h2 {
    margin: 0;
    color: var(--heading);
    font-size: clamp(26px, 5vw, 38px);
    line-height: 1.16;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.pd-comment-gate-desc {
    margin: 12px 0 22px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.pd-comment-gate-form {
    display: grid;
    gap: 16px;
}

.pd-comment-gate-form.is-ready-state {
    display: none;
}

.pd-comment-gate-helper {
    margin: -2px 0 0;
    color: var(--subtle);
    font-size: 13px;
    line-height: 1.5;
}

.pd-comment-gate-ready[hidden] {
    display: none;
}

.pd-comment-gate-ready {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 0;
    background: var(--bg);
    color: var(--heading);
    font-size: 26px;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Noto Sans SC", sans-serif;
    line-height: 1;
    letter-spacing: 0.04em;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.pd-comment-gate-ready.is-visible {
    opacity: 1;
    visibility: visible;
}

.pd-comment-gate-panel.is-fading-out {
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
}

.pd-comment-gate.is-exiting {
    opacity: 0;
    transition: opacity 0.95s ease;
}

.pd-comment-gate-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 4px;
}

html[data-theme="dark"] .pd-comment-gate-ready {
    color: var(--heading);
}

.pd-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.pd-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pd-form-label {
    color: var(--heading);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.pd-required {
    color: var(--like);
}

.pd-form-input,
.pd-form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pd-form-input:focus,
.pd-form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.pd-form-textarea {
    resize: vertical;
    min-height: 100px;
}

.pd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 24px;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
}

.pd-btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.pd-btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.2);
}

.pd-btn-primary:active {
    transform: translateY(0);
}

html[data-theme="dark"] .pd-btn-primary {
    color: #222326;
}

html[data-theme="dark"] .pd-btn-primary:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pd-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
}

.pd-btn-secondary {
    background: var(--surface-soft);
    color: var(--text);
}

.pd-btn-secondary:hover {
    background: var(--line);
    color: var(--heading);
    box-shadow: none;
}

.pd-alert {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.pd-alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #16a34a;
}

.pd-alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

html[data-theme="dark"] .pd-alert-success {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

html[data-theme="dark"] .pd-alert-error {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.pd-action-form {
    display: contents;
}

@media (max-width: 768px) {
    .pd-container {
        padding: 18px;
        border-radius: 20px;
    }

    .pd-title {
        font-size: clamp(24px, 6vw, 28px);
    }

    .pd-tags {
        gap: 7px;
        margin-top: 14px;
    }

    .pd-tag {
        min-height: 28px;
        padding: 0 10px;
        font-size: 12px;
    }

    .pd-meta {
        gap: 10px;
        margin-top: 12px;
        font-size: 12px;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .pd-meta::-webkit-scrollbar {
        display: none;
    }

    .pd-meta-item {
        white-space: nowrap;
    }

    .pd-content {
        padding: 20px 0 0;
        font-size: 15px;
        line-height: 1.8;
    }

    .pd-actions {
        padding: 24px 0 0;
        gap: 14px;
        justify-content: flex-end;
    }

    .pd-action-button {
        font-size: 14px;
    }

    .pd-action-button svg {
        width: 20px;
        height: 20px;
        flex: 0 0 20px;
    }

    .pd-comments-section {
        padding-top: 16px;
    }

    .pd-comments-header h2 {
        font-size: 18px;
    }

    .pd-comment-card {
        padding: 14px;
        border-radius: 16px;
    }

    .pd-comment-avatar {
        width: 34px;
        height: 34px;
        border-radius: 11px;
        font-size: 14px;
    }

    .pd-form-row {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 14px;
    }

    .pd-comment-form {
        padding: 16px;
        border-radius: 16px;
    }

    .pd-form-input,
    .pd-form-textarea {
        font-size: 16px;
    }

    .pd-btn {
        width: 100%;
        min-height: 44px;
    }

    .pd-comment-gate {
        align-items: flex-end;
        padding: 14px;
    }

    .pd-comment-gate-panel {
        border-radius: 24px;
    }

    .pd-comment-gate-actions,
    .pd-form-actions {
        flex-direction: column-reverse;
    }

    .pd-comment-gate-actions .pd-btn,
    .pd-form-actions .pd-btn {
        width: 100%;
    }

    .pd-comment-identity {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .pd-container {
        padding: 16px;
        border-radius: 18px;
    }

    .pd-header {
        padding-bottom: 16px;
    }

    .pd-actions {
        justify-content: flex-end;
    }

    .pd-action-button {
        flex: 0 0 auto;
        justify-content: center;
    }

    .pd-comments-list {
        gap: 12px;
    }
}

/* 关于页：温和的纸张感布局，避免生硬卡片和渐变背景 */
.about-panel {
    --about-card: #ffffff;
    --about-soft: #f7f8fb;
    --about-soft-strong: #eef1f5;
    --about-border: var(--line);
    --about-border-strong: var(--line-strong);
    --about-shadow: 0 22px 54px rgba(15, 23, 42, 0.08);
    width: min(100%, 1040px);
    margin: 0 auto;
    font-family: var(--font-misans);
}

html[data-theme="dark"] .about-panel {
    --about-card: var(--surface);
    --about-soft: rgba(255, 255, 255, 0.04);
    --about-soft-strong: rgba(255, 255, 255, 0.08);
    --about-shadow: 0 24px 54px rgba(0, 0, 0, 0.24);
}

.about-panel-card {
    position: relative;
    padding: clamp(24px, 4.8vw, 48px);
    border: 1px solid var(--about-border);
    border-radius: 34px;
    overflow: hidden;
    background: var(--about-card);
    box-shadow: var(--about-shadow);
}

.about-panel-card::before {
    content: "";
    position: absolute;
    top: clamp(22px, 4vw, 38px);
    right: clamp(22px, 4vw, 38px);
    width: clamp(68px, 10vw, 112px);
    height: clamp(68px, 10vw, 112px);
    border: 1px solid var(--about-border);
    border-radius: 30px;
    background: var(--about-soft);
    opacity: 0.7;
    transform: rotate(8deg);
    pointer-events: none;
}

.about-panel-card > * {
    position: relative;
}

.about-panel-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    gap: clamp(18px, 4vw, 34px);
    align-items: stretch;
    margin-bottom: clamp(22px, 4vw, 34px);
}

.about-profile {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 26px);
    min-width: 0;
}

.about-avatar-frame {
    width: clamp(82px, 10vw, 112px);
    height: clamp(82px, 10vw, 112px);
    flex: 0 0 auto;
    padding: 6px;
    border: 1px solid var(--about-border);
    border-radius: 30px;
    display: inline-flex;
    background: var(--about-soft);
    box-shadow: 0 14px 30px rgba(32, 42, 68, 0.12);
}

.about-avatar-frame img {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    display: block;
    object-fit: contain;
    background: var(--about-card);
}

.about-profile-copy {
    min-width: 0;
}

.about-panel .page-kicker,
.about-panel .section-kicker {
    min-height: 32px;
    margin-bottom: 10px;
    padding: 0 12px;
    border: 1px solid var(--about-border);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    color: var(--muted);
    background: var(--about-soft);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.about-profile h1 {
    margin: 0;
    color: var(--heading);
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.055em;
}

.about-profile p {
    max-width: 640px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.9;
}

.about-note-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--about-border);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--about-soft);
}

.about-note-card span {
    color: var(--heading);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 800;
}

.about-note-card p {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
}

.about-stat-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 clamp(24px, 4vw, 38px);
}

.about-stat-card {
    min-width: 0;
    min-height: 128px;
    padding: 18px;
    border: 1px solid var(--about-border);
    border-radius: 24px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-content: start;
    column-gap: 12px;
    row-gap: 12px;
    background: var(--about-soft);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.about-stat-card:hover {
    border-color: var(--about-border-strong);
    background: var(--about-card);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
}

.about-stat-icon,
.about-feature-icon {
    width: 38px;
    height: 38px;
    border: 1px solid var(--about-border);
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--about-card);
    color: var(--heading);
    font-size: 15px;
}

.about-stat-copy {
    min-width: 0;
}

.about-stat-card strong {
    display: block;
    color: var(--heading);
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.about-stat-copy span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 800;
}

.about-stat-card small {
    grid-column: 1 / -1;
    color: var(--subtle);
    font-size: 12px;
    line-height: 1.6;
    font-weight: 600;
}

.about-body-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 32%);
    gap: clamp(20px, 4vw, 34px);
    align-items: start;
}

.about-body-grid.is-single {
    grid-template-columns: minmax(0, 1fr);
}

.about-body-grid.is-single .about-content.article-content {
    max-width: 780px;
}

.about-content.article-content {
    padding: clamp(20px, 3.5vw, 30px);
    border: 1px solid var(--about-border);
    border-radius: 26px;
    background: var(--about-card);
    box-shadow: none;
}

.about-content.article-content > :first-child {
    margin-top: 0;
}

.about-content.article-content > :last-child {
    margin-bottom: 0;
}

.about-content.article-content h1,
.about-content.article-content h2,
.about-content.article-content h3 {
    letter-spacing: -0.025em;
}

.about-feature-list {
    display: grid;
    gap: 12px;
}

.about-feature-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--about-border);
    border-radius: 22px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    background: var(--about-soft);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.about-feature-card:hover {
    border-color: var(--about-border-strong);
    background: var(--about-card);
    transform: translateY(-2px);
}

.about-feature-card h2,
.about-extra-card h2 {
    margin: 0;
    color: var(--heading);
    font-size: 17px;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.about-feature-card p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
}

.about-extra-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: clamp(20px, 4vw, 34px);
}

.about-extra-card {
    min-width: 0;
    padding: clamp(18px, 3vw, 24px);
    border: 1px solid var(--about-border);
    border-radius: 24px;
    background: var(--about-soft);
}

.about-extra-card .section-kicker {
    margin-bottom: 10px;
}

.about-extra-card h2 {
    margin-bottom: 16px;
}

.skill-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.skill-cloud span {
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid var(--about-border);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    background: var(--about-card);
    color: var(--muted);
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
}

.about-link-list {
    display: grid;
    gap: 9px;
}

.about-link-list a {
    min-height: 46px;
    padding: 8px 12px;
    border: 1px solid var(--about-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--about-card);
    color: var(--heading);
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
}

.about-link-list a i {
    width: 30px;
    height: 30px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--about-soft-strong);
    color: var(--heading);
    font-size: 14px;
}

.about-link-list a span {
    margin-right: auto;
}

.about-link-list a::after {
    content: "→";
    color: var(--subtle);
    font-weight: 800;
    transition: transform 0.18s ease, color 0.18s ease;
}

.about-link-list a:hover {
    border-color: var(--about-border-strong);
    color: var(--heading);
    transform: translateX(2px);
}

.about-link-list a:hover::after {
    color: var(--heading);
    transform: translateX(2px);
}

@media (max-width: 900px) {
    .about-panel-head,
    .about-body-grid {
        grid-template-columns: 1fr;
    }

    .about-note-card {
        max-width: none;
    }

    .about-feature-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .about-panel-card {
        padding: 22px;
        border-radius: 28px;
    }

    .about-panel-card::before {
        width: 72px;
        height: 72px;
        border-radius: 24px;
    }

    .about-profile {
        align-items: flex-start;
    }

    .about-stat-row,
    .about-feature-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-extra-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .about-panel-card::before {
        display: none;
    }

    .about-profile {
        display: grid;
        justify-items: center;
        text-align: center;
    }

    .about-profile p {
        margin-right: auto;
        margin-left: auto;
    }

    .about-note-card {
        text-align: center;
    }

    .about-stat-row,
    .about-feature-list {
        grid-template-columns: 1fr;
    }
}

/* 关于页：简约纯色版，去掉图案、渐变和硬卡片感 */
.about-panel {
    --about-card: var(--surface);
    --about-soft: #f7f8fb;
    --about-border: var(--line);
    --about-border-strong: var(--line-strong);
    width: min(100%, 900px);
}

html[data-theme="dark"] .about-panel {
    --about-card: var(--surface);
    --about-soft: rgba(255, 255, 255, 0.04);
}

.about-panel-card {
    padding: clamp(28px, 5vw, 52px);
    border: 1px solid var(--about-border);
    border-radius: 28px;
    overflow: visible;
    background: var(--about-card);
    box-shadow: none;
}

.about-panel-card::before {
    content: none;
    display: none;
}

.about-panel-card > * {
    position: static;
}

.about-panel-head {
    display: block;
    margin-bottom: clamp(26px, 5vw, 42px);
    padding-bottom: clamp(24px, 4vw, 34px);
    border-bottom: 1px solid var(--about-border);
}

.about-profile {
    align-items: center;
    gap: clamp(16px, 3vw, 24px);
}

.about-avatar-frame {
    width: clamp(76px, 9vw, 96px);
    height: clamp(76px, 9vw, 96px);
    padding: 4px;
    border-color: var(--about-border);
    border-radius: 999px;
    background: var(--about-soft);
    box-shadow: none;
}

.about-avatar-frame img {
    border-radius: 50%;
}

.about-panel .page-kicker,
.about-panel .section-kicker {
    min-height: auto;
    margin-bottom: 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--subtle);
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: 0.16em;
}

.about-profile h1 {
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.12;
    font-weight: 780;
    letter-spacing: -0.045em;
}

.about-profile p,
.about-note {
    max-width: 700px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.9;
}

.about-note {
    margin: 18px 0 0;
}

.about-note-card {
    padding: 0;
    border: 0;
    background: transparent;
}

.about-note-card span {
    display: none;
}

.about-note-card p {
    margin: 18px 0 0;
    max-width: 700px;
    font-size: 15px;
    line-height: 1.9;
}

.about-stat-row {
    gap: 0;
    margin-bottom: clamp(28px, 5vw, 46px);
    padding-bottom: clamp(24px, 4vw, 34px);
    border-bottom: 1px solid var(--about-border);
}

.about-stat-card {
    min-height: auto;
    padding: 0 clamp(14px, 2vw, 20px);
    border: 0;
    border-radius: 0;
    background: transparent;
    align-content: start;
    row-gap: 8px;
    transition: none;
}

.about-stat-card:first-child {
    padding-left: 0;
}

.about-stat-card + .about-stat-card {
    border-left: 1px solid var(--about-border);
}

.about-stat-card:hover {
    border-color: var(--about-border);
    background: transparent;
    transform: none;
    box-shadow: none;
}

.about-stat-icon,
.about-feature-icon {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--about-soft);
    color: var(--muted);
}

.about-stat-card strong {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 780;
}

.about-stat-copy span {
    color: var(--muted);
    font-weight: 700;
}

.about-stat-card small {
    color: var(--subtle);
    font-size: 12px;
    line-height: 1.65;
}

.about-body-grid {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 28%);
    gap: clamp(28px, 6vw, 56px);
}

.about-content.article-content {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.about-body-grid.is-single .about-content.article-content {
    max-width: 760px;
}

.about-feature-list {
    gap: 0;
}

.about-feature-card {
    padding: 0 0 18px;
    border: 0;
    border-bottom: 1px solid var(--about-border);
    border-radius: 0;
    background: transparent;
    transition: none;
}

.about-feature-card + .about-feature-card {
    padding-top: 18px;
}

.about-feature-card:hover {
    border-color: var(--about-border);
    background: transparent;
    transform: none;
}

.about-feature-card h2,
.about-extra-card h2 {
    font-size: 16px;
    font-weight: 760;
}

.about-feature-card p {
    color: var(--muted);
}

.about-extra-grid {
    gap: clamp(28px, 5vw, 52px);
    margin-top: clamp(28px, 5vw, 46px);
    padding-top: clamp(24px, 4vw, 34px);
    border-top: 1px solid var(--about-border);
}

.about-extra-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.skill-cloud span {
    min-height: 34px;
    border-color: transparent;
    background: var(--about-soft);
}

.about-link-list {
    gap: 0;
}

.about-link-list a {
    min-height: 44px;
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid var(--about-border);
    border-radius: 0;
    background: transparent;
}

.about-link-list a i {
    background: var(--about-soft);
    color: var(--muted);
}

.about-link-list a:hover {
    border-color: var(--about-border-strong);
    transform: none;
}

@media (max-width: 900px) {
    .about-body-grid {
        grid-template-columns: 1fr;
    }

    .about-feature-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .about-panel-card {
        padding: 24px;
        border-radius: 24px;
    }

    .about-profile {
        align-items: flex-start;
    }

    .about-stat-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 0;
    }

    .about-stat-card:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }

    .about-stat-card:nth-child(even) {
        padding-right: 0;
        border-left: 1px solid var(--about-border);
    }

    .about-extra-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .about-profile {
        justify-items: start;
        text-align: left;
    }

    .about-stat-row {
        grid-template-columns: 1fr;
    }

    .about-stat-card,
    .about-stat-card:nth-child(even),
    .about-stat-card:nth-child(odd) {
        padding: 0;
        border-left: 0;
    }
}

/* 关于页：简约纯色版，去掉图案、渐变和硬卡片感 */
.about-minimal {
    --about-minimal-soft: #f7f8fb;
    --about-minimal-border: var(--line);
    --about-minimal-border-strong: var(--line-strong);
    width: min(100%, 900px);
    margin: 0 auto;
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid var(--about-minimal-border);
    border-radius: 28px;
    background: var(--surface);
    color: var(--text);
    font-family: var(--font-misans);
}

html[data-theme="dark"] .about-minimal {
    --about-minimal-soft: rgba(255, 255, 255, 0.04);
}

.about-minimal-hero {
    display: flex;
    align-items: center;
    gap: clamp(18px, 4vw, 30px);
    padding-bottom: clamp(26px, 5vw, 40px);
    border-bottom: 1px solid var(--about-minimal-border);
}

.about-minimal-avatar {
    width: clamp(76px, 10vw, 104px);
    height: clamp(76px, 10vw, 104px);
    flex: 0 0 auto;
    padding: 4px;
    border: 1px solid var(--about-minimal-border);
    border-radius: 50%;
    display: inline-flex;
    background: var(--about-minimal-soft);
}

.about-minimal-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
    object-fit: contain;
    background: var(--about-minimal-soft);
}

.about-minimal-intro {
    min-width: 0;
}

.about-minimal-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--subtle);
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.about-minimal h1 {
    margin: 0;
    color: var(--heading);
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.045em;
}

.about-minimal-lead,
.about-minimal-note {
    max-width: 700px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.9;
}

.about-minimal-lead {
    margin: 12px 0 0;
}

.about-minimal-note {
    margin: 14px 0 0;
}

.about-minimal-stats {
    margin: 0;
    padding: clamp(24px, 5vw, 38px) 0;
    border-bottom: 1px solid var(--about-minimal-border);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    list-style: none;
}

.about-minimal-stats li {
    min-width: 0;
    padding: 0 clamp(14px, 2vw, 22px);
    display: grid;
    grid-template-columns: auto 1fr;
    align-content: start;
    column-gap: 10px;
    row-gap: 8px;
}

.about-minimal-stats li:first-child {
    padding-left: 0;
}

.about-minimal-stats li + li {
    border-left: 1px solid var(--about-minimal-border);
}

.about-minimal-stat-icon,
.about-minimal-feature-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--about-minimal-soft);
    color: var(--muted);
    font-size: 14px;
}

.about-minimal-stat-copy {
    min-width: 0;
}

.about-minimal-stat-copy strong {
    display: block;
    color: var(--heading);
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.about-minimal-stat-copy span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
}

.about-minimal-stats small {
    grid-column: 1 / -1;
    color: var(--subtle);
    font-size: 12px;
    line-height: 1.65;
    font-weight: 600;
}

.about-minimal-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 28%);
    gap: clamp(30px, 6vw, 58px);
    align-items: start;
    padding-top: clamp(28px, 5vw, 44px);
}

.about-minimal-main.is-single {
    grid-template-columns: minmax(0, 1fr);
}

.about-minimal-main.is-single .about-minimal-content {
    max-width: 760px;
}

.about-minimal-content.article-content {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.about-minimal-content.article-content > :first-child {
    margin-top: 0;
}

.about-minimal-content.article-content > :last-child {
    margin-bottom: 0;
}

.about-minimal-aside {
    display: grid;
    gap: 0;
}

.about-minimal-feature {
    min-width: 0;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--about-minimal-border);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
}

.about-minimal-feature + .about-minimal-feature {
    padding-top: 18px;
}

.about-minimal-feature h2,
.about-minimal-section h2 {
    margin: 0;
    color: var(--heading);
    font-size: 16px;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.about-minimal-feature p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
}

.about-minimal-extra {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(28px, 5vw, 52px);
    margin-top: clamp(28px, 5vw, 46px);
    padding-top: clamp(24px, 4vw, 34px);
    border-top: 1px solid var(--about-minimal-border);
}

.about-minimal-section {
    min-width: 0;
}

.about-minimal-section h2 {
    margin-bottom: 16px;
}

.about-minimal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.about-minimal-tags span {
    min-height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    background: var(--about-minimal-soft);
    color: var(--muted);
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
}

.about-minimal-links {
    display: grid;
    gap: 0;
}

.about-minimal-links a {
    min-height: 44px;
    padding: 10px 0;
    border-bottom: 1px solid var(--about-minimal-border);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--heading);
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
}

.about-minimal-links a i {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--about-minimal-soft);
    color: var(--muted);
    font-size: 14px;
}

.about-minimal-links a span {
    margin-right: auto;
}

.about-minimal-links a::after {
    content: "→";
    color: var(--subtle);
    font-weight: 800;
    transition: transform 0.18s ease, color 0.18s ease;
}

.about-minimal-links a:hover {
    border-color: var(--about-minimal-border-strong);
    color: var(--heading);
}

.about-minimal-links a:hover::after {
    color: var(--heading);
    transform: translateX(2px);
}

@media (max-width: 900px) {
    .about-minimal-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .about-minimal {
        padding: 24px;
        border-radius: 24px;
    }

    .about-minimal-hero {
        align-items: flex-start;
    }

    .about-minimal-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 0;
    }

    .about-minimal-stats li:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }

    .about-minimal-stats li:nth-child(even) {
        padding-right: 0;
        border-left: 1px solid var(--about-minimal-border);
    }

    .about-minimal-extra {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .about-minimal-hero {
        display: grid;
        justify-items: start;
    }

    .about-minimal-stats {
        grid-template-columns: 1fr;
    }

    .about-minimal-stats li,
    .about-minimal-stats li:nth-child(even),
    .about-minimal-stats li:nth-child(odd) {
        padding: 0;
        border-left: 0;
    }
}

/* 关于页：简化容器层级，减少分割线和卡片感 */
.about-ios {
    --about-ios-glass: #ffffff;
    --about-ios-glass-strong: #ffffff;
    --about-ios-sheet: #f7f8fb;
    --about-ios-line: rgba(17, 24, 39, 0.08);
    --about-ios-line-strong: rgba(17, 24, 39, 0.14);
    --about-ios-soft-line: rgba(17, 24, 39, 0.06);
    --about-ios-blue: #0a84ff;
    --about-ios-green: #30b45a;
    --about-ios-pink: #ff2d55;
    --about-ios-purple: #af52de;
    position: relative;
    isolation: isolate;
    width: min(100%, 980px);
    margin: 0 auto;
    padding: clamp(24px, 5vw, 46px);
    border: 1px solid var(--about-ios-soft-line);
    border-radius: 32px;
    background: var(--about-ios-glass);
    color: var(--text);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
    font-family: var(--font-misans);
    font-weight: 400;
}

html[data-theme="dark"] .about-ios {
    --about-ios-glass: var(--surface);
    --about-ios-glass-strong: var(--surface-soft);
    --about-ios-sheet: var(--surface-soft);
    --about-ios-line: rgba(255, 255, 255, 0.08);
    --about-ios-line-strong: rgba(255, 255, 255, 0.16);
    --about-ios-soft-line: rgba(255, 255, 255, 0.06);
    background: var(--surface);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
}

.about-ios::before,
.about-ios::after {
    content: none;
    display: none;
}

.about-ios *,
.about-ios *::before,
.about-ios *::after {
    box-sizing: border-box;
}

.about-ios h1,
.about-ios h2,
.about-ios h3,
.about-ios strong,
.about-ios b {
    font-weight: 700;
}

.about-ios p,
.about-ios small,
.about-ios span,
.about-ios a {
    font-weight: 400;
}

.about-ios-hero {
    display: block;
}

.about-ios-profile-card,
.about-ios-stat,
.about-ios-article.article-content,
.about-ios-card {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.about-ios-profile-card {
    min-width: 0;
    padding: 0 0 clamp(22px, 4vw, 34px);
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.2vw, 22px);
    background: transparent;
}

.about-ios-avatar {
    width: clamp(72px, 9vw, 104px);
    height: clamp(72px, 9vw, 104px);
    flex: 0 0 auto;
    padding: 3px;
    border-radius: 50%;
    display: inline-flex;
    background: var(--about-ios-sheet);
    box-shadow: none;
}

html[data-theme="dark"] .about-ios-avatar {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.about-ios-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
    object-fit: contain;
    background: var(--about-ios-sheet);
}

.about-ios-intro {
    min-width: 0;
}

.about-ios-kicker {
    display: block;
    margin-bottom: 8px;
    padding: 0;
    color: var(--subtle);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.about-ios h1 {
    margin: 0;
    color: var(--heading);
    font-size: clamp(30px, 4.6vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.about-ios-lead {
    max-width: 640px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: clamp(14px, 1.5vw, 16px);
    line-height: 1.75;
}

.about-ios-note {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--subtle);
    font-size: 14px;
    line-height: 1.8;
}

.about-ios-stats {
    margin: 0 0 clamp(28px, 5vw, 42px);
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(14px, 3vw, 28px);
    list-style: none;
}

.about-ios-stat {
    --about-stat-color: var(--about-ios-blue);
    --about-stat-soft: rgba(10, 132, 255, 0.1);
    min-width: 0;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    align-content: start;
    column-gap: 10px;
    row-gap: 8px;
    background: transparent;
    transition: color 0.2s ease;
}

.about-ios-stat.is-views {
    --about-stat-color: var(--about-ios-green);
    --about-stat-soft: rgba(48, 180, 90, 0.12);
}

.about-ios-stat.is-likes {
    --about-stat-color: var(--about-ios-pink);
    --about-stat-soft: rgba(255, 45, 85, 0.12);
}

.about-ios-stat.is-comments {
    --about-stat-color: var(--about-ios-purple);
    --about-stat-soft: rgba(175, 82, 222, 0.12);
}

.about-ios-stat:hover {
    color: var(--heading);
}

html[data-theme="dark"] .about-ios-stat:hover {
    box-shadow: none;
}

.about-ios-stat-icon,
.about-ios-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--about-stat-soft, rgba(10, 132, 255, 0.1));
    color: var(--about-stat-color, var(--about-ios-blue));
    font-size: 14px;
}

.about-ios-stat-copy {
    min-width: 0;
}

.about-ios-stat-copy strong {
    display: block;
    color: var(--heading);
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.about-ios-stat-copy span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.about-ios-stat small {
    grid-column: 1 / -1;
    color: var(--subtle);
    font-size: 12px;
    line-height: 1.55;
}

.about-ios-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 32%);
    gap: clamp(28px, 5vw, 52px);
    align-items: start;
    margin-top: 0;
}

.about-ios-main.is-single {
    grid-template-columns: minmax(0, 1fr);
}

.about-ios-main.is-single .about-ios-article.article-content {
    max-width: 760px;
    margin: 0;
}

.about-ios-article.article-content {
    width: 100%;
    min-width: 0;
    padding: 0;
    border-radius: 0;
    color: var(--text);
    font-size: 15px;
    line-height: 1.85;
}

.about-ios-article.article-content > :first-child {
    margin-top: 0;
}

.about-ios-article.article-content > :last-child {
    margin-bottom: 0;
}

.about-ios-article.article-content p {
    margin: 0 0 12px;
    color: var(--text);
    line-height: 1.85;
}

.about-ios-article.article-content h1,
.about-ios-article.article-content h2,
.about-ios-article.article-content h3 {
    margin: 22px 0 10px;
    color: var(--heading);
    line-height: 1.28;
    letter-spacing: -0.025em;
}

.about-ios-article.article-content h1 {
    font-size: 26px;
}

.about-ios-article.article-content h2 {
    font-size: 22px;
}

.about-ios-article.article-content h3 {
    font-size: 18px;
}

.about-ios-article.article-content a {
    color: var(--about-ios-blue);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.about-ios-article.article-content blockquote {
    margin: 16px 0;
    padding: 12px 14px;
    border-left: 3px solid var(--about-ios-blue);
    border-radius: 16px;
    background: rgba(10, 132, 255, 0.08);
    color: var(--muted);
}

html[data-theme="dark"] .about-ios-article.article-content blockquote {
    background: rgba(10, 132, 255, 0.12);
}

.about-ios-side {
    min-width: 0;
    display: grid;
    gap: 28px;
}

.about-ios-card {
    min-width: 0;
    padding: 0;
    border-radius: 0;
}

.about-ios-card-head {
    margin-bottom: 12px;
}

.about-ios-card-head .about-ios-kicker {
    margin-bottom: 7px;
}

.about-ios-card h2 {
    margin: 0;
    color: var(--heading);
    font-size: 17px;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.about-ios-feature-list {
    display: grid;
    gap: 18px;
}

.about-ios-feature {
    min-width: 0;
    padding: 0;
    border-radius: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    background: transparent;
}

.about-ios-feature-icon {
    --about-stat-color: var(--about-ios-blue);
    --about-stat-soft: rgba(10, 132, 255, 0.1);
}

.about-ios-feature h3 {
    margin: 0;
    color: var(--heading);
    font-size: 15px;
    line-height: 1.35;
    letter-spacing: -0.015em;
}

.about-ios-feature p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.about-ios-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.about-ios-tags span {
    min-height: 32px;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    background: var(--about-ios-sheet);
    color: var(--muted);
    font-size: 13px;
    line-height: 1;
}

.about-ios-links {
    display: grid;
    gap: 8px;
}

.about-ios-links a {
    min-height: 44px;
    padding: 7px 0;
    border: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--heading);
    font-size: 14px;
    line-height: 1.25;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.about-ios-links a i {
    width: 30px;
    height: 30px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 132, 255, 0.1);
    color: var(--about-ios-blue);
    font-size: 13px;
}

.about-ios-links a span {
    margin-right: auto;
    color: inherit;
}

.about-ios-links a::after {
    content: "→";
    color: var(--subtle);
    transition: transform 0.18s ease, color 0.18s ease;
}

.about-ios-links a:hover {
    background: transparent;
    color: var(--heading);
    transform: translateX(2px);
}

.about-ios-links a:hover::after {
    color: var(--heading);
    transform: translateX(2px);
}

@media (max-width: 980px) {
    .about-ios-hero,
    .about-ios-main {
        grid-template-columns: 1fr;
    }

    .about-ios-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-ios-card:first-child:last-child {
        grid-column: auto;
    }
}

@media (max-width: 760px) {
    .about-ios {
        padding: 22px;
        border-radius: 26px;
    }

    .about-ios-stats,
    .about-ios-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-ios-stat {
        min-height: 0;
        padding: 0;
    }
}

@media (max-width: 560px) {
    .about-ios-profile-card {
        align-items: flex-start;
        padding: 0 0 24px;
    }

    .about-ios-avatar {
        width: 68px;
        height: 68px;
        border-radius: 50%;
    }

    .about-ios-avatar img {
        border-radius: 50%;
    }

    .about-ios-side {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .about-ios-stats {
        gap: 10px;
    }

    .about-ios-stat {
        grid-template-columns: 1fr;
    }

    .about-ios-stat small {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-ios-stat,
    .about-ios-links a,
    .about-ios-links a::after {
        transition: none;
    }

    .about-ios-stat:hover,
    .about-ios-links a:hover {
        transform: none;
    }
}

/* 通用内容页：热榜 / 公告 / 留言板 */
.page-hero {
    position: relative;
    min-height: 238px;
    margin-bottom: 18px;
    padding: clamp(28px, 5vw, 52px);
    border: 1px solid var(--line);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 12%, var(--surface), transparent 34%),
        linear-gradient(135deg, var(--surface), var(--surface-soft));
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
    isolation: isolate;
}

.page-hero::before,
.page-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    pointer-events: none;
}

.page-hero::before {
    width: 260px;
    height: 260px;
    right: -80px;
    top: -95px;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.16), rgba(107, 114, 128, 0.12));
    filter: blur(2px);
}

.page-hero::after {
    width: 160px;
    height: 160px;
    left: 46%;
    bottom: -92px;
    background: var(--accent-pink-soft);
}

.page-hero-hot {
    background:
        radial-gradient(circle at 16% 18%, var(--surface), transparent 35%),
        linear-gradient(135deg, var(--surface), var(--surface-soft));
}

.page-hero-notice {
    background:
        radial-gradient(circle at 18% 20%, var(--surface), transparent 36%),
        linear-gradient(135deg, var(--surface), var(--surface-soft));
}

.page-hero-guestbook {
    background:
        radial-gradient(circle at 18% 20%, var(--surface), transparent 36%),
        linear-gradient(135deg, var(--surface), var(--surface-soft));
}

.page-kicker,
.section-kicker,
.side-panel-kicker,
.notice-feature-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-hero h1 {
    margin: 0;
    color: var(--heading);
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 620px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.85;
}

.page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
}

.hero-primary-link,
.hero-ghost-link,
.section-action,
.section-chip {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
}

.hero-primary-link {
    background: var(--heading);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(26, 26, 26, 0.14);
}

.hero-primary-link:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-1px);
}

.hero-ghost-link,
.section-action {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--primary);
}

.hero-ghost-link:hover,
.section-action:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-1px);
}

.guestbook-compose-open:hover,
.guestbook-compose-open:focus-visible {
    border-color: var(--line-strong);
    background: var(--surface);
    color: var(--primary);
}

.section-chip {
    min-height: 34px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
}

.page-hero-badge {
    width: clamp(118px, 15vw, 166px);
    height: clamp(118px, 15vw, 166px);
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.84);
    border-radius: 34px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.58);
    color: var(--heading);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 16px 34px rgba(32, 42, 68, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transform: rotate(3deg);
}

.page-hero-badge span {
    color: var(--primary);
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.page-hero-badge strong {
    color: var(--heading);
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1;
    font-weight: 700;
}

.metric-strip {
    margin: 0 0 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.guestbook-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card {
    min-height: 96px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    display: grid;
    gap: 8px;
    background: var(--surface);
    box-shadow: 0 10px 24px rgba(32, 42, 68, 0.055);
}

.metric-card span {
    color: var(--subtle);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
}

.metric-card strong {
    color: var(--heading);
    font-size: 26px;
    line-height: 1;
    letter-spacing: -0.03em;
}

.page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}

.hot-page-grid {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    display: block;
}

.page-main-card.hot-main-card {
    padding: clamp(14px, 2vw, 20px);
    border-color: var(--line);
    border-radius: 22px;
    background: linear-gradient(135deg, var(--surface), var(--surface-soft));
    box-shadow: var(--shadow-card);
}

.page-main-card,
.side-panel,
.notice-feature-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.page-main-card {
    padding: clamp(18px, 3vw, 26px);
}

.page-side-stack {
    position: sticky;
    top: 78px;
    display: grid;
    gap: 14px;
}

.side-panel {
    padding: 20px;
}

.side-panel h2 {
    margin: 0 0 14px;
    color: var(--heading);
    font-size: 18px;
    line-height: 1.35;
}

.side-desc,
.hot-rule-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

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

.hot-main-card .section-title-row {
    margin-bottom: 14px;
}

.section-title-row h2 {
    margin: 0;
    color: var(--heading);
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.hot-list,
.guestbook-list {
    display: grid;
    gap: 14px;
}

.hot-list {
    gap: 10px;
}

.hot-card {
    position: relative;
    min-height: 132px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    display: grid;
    grid-template-columns: 44px clamp(142px, 18vw, 176px) minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
    background: var(--surface);
    box-shadow: 0 4px 14px rgba(32, 42, 68, 0.035);
    overflow: hidden;
}

.hot-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: transparent;
    transition: background 0.2s ease;
}

.hot-card:hover {
    border-color: var(--line-strong);
    background: var(--surface-soft);
    box-shadow: var(--shadow-card-hover);
    transform: none;
}

.hot-card:hover::before {
    background: transparent;
}

.hot-card.is-podium {
    border-color: var(--line);
    background: var(--surface);
}

.hot-rank {
    width: 38px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    background: transparent;
    color: #b5bbc7;
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.hot-rank.rank-gold {
    background: transparent;
    color: #d7a64f;
    box-shadow: none;
}

.hot-rank.rank-silver {
    background: transparent;
    color: #9aa4b2;
}

.hot-rank.rank-bronze {
    background: transparent;
    color: #c18a64;
}

.hot-cover {
    overflow: hidden;
    border-radius: 14px;
    background: var(--surface-soft);
}

.hot-cover img {
    width: 100%;
    height: 112px;
    display: block;
    object-fit: cover;
    transition: transform 0.36s ease;
}

.hot-cover-placeholder {
    width: 100%;
    height: 112px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 24% 22%, rgba(255, 255, 255, 0.42), transparent 34%),
        linear-gradient(135deg, var(--heading), var(--primary-hover));
    color: #ffffff;
}

.hot-cover-placeholder span {
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.14em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hot-card:hover .hot-cover img {
    transform: scale(1.045);
}

.hot-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hot-meta,
.hot-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.hot-meta span {
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
}

.hot-meta span:last-child {
    background: var(--primary-soft);
    color: var(--primary);
}

.hot-body h2 {
    margin: 6px 0 4px;
    color: var(--heading);
    font-size: clamp(17px, 1.5vw, 19px);
    line-height: 1.35;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hot-body p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-stats {
    margin-top: 9px;
    color: var(--subtle);
    font-size: 12px;
    font-weight: 700;
}

.hot-stats span {
    min-height: 26px;
    padding: 3px 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--surface-soft);
    color: var(--muted);
}

.hot-like {
    min-height: 26px;
    padding: 3px 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--surface-soft);
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.hot-like:hover {
    background: var(--like-soft);
    color: var(--like);
    transform: translateY(-1px);
}

.hot-stats svg,
.hot-like svg {
    width: 14px;
    height: 14px;
    color: currentColor;
}

.hot-like:hover svg,
.hot-like.is-liked svg {
    color: var(--like);
}

@media (min-width: 1280px) {
    .hot-page-grid {
        max-width: min(100%, 1240px);
    }

    .hot-card {
        grid-template-columns: 54px 184px minmax(0, 1fr);
    }
}

@media (max-width: 860px) {
    .hot-main-card {
        padding: 14px;
        border-radius: 20px;
    }

    .hot-card {
        grid-template-columns: 46px 132px minmax(0, 1fr);
        gap: 10px;
        min-height: 116px;
        padding: 10px;
    }

    .hot-rank {
        width: 38px;
        height: 38px;
        border-radius: 13px;
        font-size: 16px;
    }

    .hot-cover img,
    .hot-cover-placeholder {
        height: 96px;
    }
}

@media (max-width: 640px) {
    .hot-main-card .section-title-row {
        align-items: flex-start;
    }

    .hot-card {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 9px 10px;
    }

    .hot-cover {
        grid-column: 1 / -1;
        order: -1;
    }

    .hot-cover img,
    .hot-cover-placeholder {
        height: clamp(128px, 42vw, 188px);
    }

    .hot-body h2 {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .hot-stats span {
        min-height: 24px;
        padding: 2px 7px;
    }
}

.mini-rank-list {
    display: grid;
    gap: 10px;
}

.mini-rank-item {
    min-height: 58px;
    padding: 10px;
    border-radius: 16px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    column-gap: 10px;
    align-items: center;
    background: var(--surface-soft);
}

.mini-rank-item:hover {
    background: var(--primary-soft);
    transform: translateY(-1px);
}

.mini-rank-item span {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--surface);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.mini-rank-item strong {
    min-width: 0;
    color: var(--heading);
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-rank-item small {
    grid-column: 2;
    color: var(--subtle);
    font-size: 12px;
    line-height: 1.4;
}

.mini-empty {
    padding: 18px 12px;
    border-radius: 16px;
    background: var(--surface-soft);
    color: var(--subtle);
    font-size: 14px;
    text-align: center;
}

.system-notice-panel {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
    font-family: var(--font-misans);
}

.system-notice-panel h1 {
    margin: 0 0 clamp(14px, 2vw, 20px);
    color: var(--heading);
    font-family: var(--font-misans);
    font-size: clamp(24px, 3.5vw, 32px);
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.system-notice-list {
    display: grid;
}

.system-notice-item {
    --notice-dot-color: var(--muted);
    --notice-level-bg: var(--primary-soft);
    --notice-level-text: var(--primary);
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    column-gap: 10px;
    align-items: stretch;
}

.system-notice-item.is-important {
    --notice-dot-color: var(--subtle);
    --notice-level-bg: var(--surface-soft);
    --notice-level-text: var(--heading);
}

.system-notice-item.is-urgent {
    --notice-dot-color: var(--heading);
    --notice-level-bg: var(--primary-soft);
    --notice-level-text: var(--heading);
}

.system-notice-item.is-archived {
    --notice-dot-color: var(--subtle);
    --notice-level-bg: var(--surface-soft);
    --notice-level-text: var(--muted);
}

.system-notice-rail {
    position: relative;
    display: flex;
    justify-content: center;
}

.system-notice-rail::after {
    content: "";
    position: absolute;
    top: 19px;
    bottom: 0;
    width: 1px;
    border-radius: 999px;
    background: var(--line);
}

.system-notice-item:last-child .system-notice-rail::after {
    display: none;
}

.system-notice-dot {
    position: relative;
    z-index: 1;
    width: 8px;
    height: 8px;
    margin-top: 8px;
    border: 0;
    border-radius: 50%;
    background: var(--notice-dot-color);
    box-shadow: none;
}

.system-notice-body {
    min-width: 0;
    padding: 0 0 clamp(12px, 1.8vw, 18px);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.system-notice-item:last-child .system-notice-body {
    padding-bottom: 0;
}

.system-notice-head {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.system-notice-head h2 {
    margin: 0;
    color: var(--heading);
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.system-notice-level {
    min-height: 26px;
    padding: 5px 10px;
    border-radius: 999px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    background: var(--notice-level-bg);
    color: var(--notice-level-text);
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
}

.system-notice-time {
    margin-top: 4px;
    display: block;
    color: var(--subtle);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.system-notice-content {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    color: var(--text);
    font-family: var(--font-misans);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
}

.system-notice-content strong,
.system-notice-content b,
.system-notice-content h1,
.system-notice-content h2,
.system-notice-content h3,
.system-notice-content h4,
.system-notice-content h5,
.system-notice-content h6 {
    font-family: var(--font-misans);
    font-weight: 700;
}

.system-notice-content p,
.system-notice-content ul,
.system-notice-content ol,
.system-notice-content blockquote,
.system-notice-content pre {
    margin-bottom: 0.42em;
}

.system-notice-content p:last-child,
.system-notice-content ul:last-child,
.system-notice-content ol:last-child,
.system-notice-content blockquote:last-child,
.system-notice-content pre:last-child {
    margin-bottom: 0;
}

.system-notice-empty {
    border-radius: 22px;
}

@media (max-width: 640px) {
    .system-notice-panel {
        padding: 18px 15px;
        border-radius: 20px;
    }

    .system-notice-item {
        grid-template-columns: 12px minmax(0, 1fr);
        column-gap: 9px;
    }

    .system-notice-head {
        display: grid;
        justify-content: stretch;
        gap: 8px;
    }

    .system-notice-level {
        justify-self: start;
    }
}

.ios-notice-shell {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.ios-notice-hero {
    position: relative;
    min-height: 156px;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 30px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 16%, rgba(255, 255, 255, 0.72), transparent 32%),
        linear-gradient(135deg, var(--surface), var(--surface-soft));
    box-shadow: var(--shadow-card);
    isolation: isolate;
}

.ios-notice-hero::after {
    content: "";
    position: absolute;
    right: -72px;
    top: -86px;
    z-index: -1;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.14), rgba(107, 114, 128, 0.12));
    pointer-events: none;
}

.ios-notice-hero-icon {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, var(--heading), var(--primary-hover));
    color: var(--surface);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 14px 28px rgba(17, 24, 39, 0.16);
}

.ios-notice-hero-icon svg {
    width: 31px;
    height: 31px;
}

.ios-notice-hero-copy {
    min-width: 0;
}

.ios-notice-hero-copy h1 {
    margin: 0;
    color: var(--heading);
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.ios-notice-hero-copy p {
    max-width: 560px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}

.ios-notice-summary {
    min-width: 126px;
    min-height: 104px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 24px;
    display: grid;
    align-content: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.62);
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 10px 24px rgba(32, 42, 68, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.ios-notice-summary span,
.ios-notice-summary small {
    color: var(--subtle);
    font-size: 12px;
    line-height: 1.25;
    font-weight: 700;
}

.ios-notice-summary strong {
    color: var(--heading);
    font-size: 34px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.ios-notice-list {
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 30px;
    display: grid;
    gap: 10px;
    background: rgba(255, 255, 255, 0.42);
    box-shadow: 0 12px 34px rgba(32, 42, 68, 0.055);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.ios-notice-item {
    position: relative;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
}

.ios-notice-date {
    min-height: 88px;
    padding: 12px 10px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 5px;
    background: rgba(246, 247, 251, 0.96);
    color: var(--muted);
    text-align: center;
}

.ios-notice-date strong {
    color: var(--heading);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
}

.ios-notice-date span {
    min-height: 23px;
    padding: 4px 9px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    background: var(--surface);
    color: var(--subtle);
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
}

.ios-notice-card {
    position: relative;
    min-width: 0;
    padding: clamp(16px, 2.4vw, 22px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 8px 22px rgba(32, 42, 68, 0.045);
    overflow: hidden;
}

.ios-notice-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: transparent;
}

.ios-notice-item.is-latest .ios-notice-card {
    border-color: var(--line-strong);
    background: linear-gradient(135deg, var(--surface), var(--surface-soft));
}

.ios-notice-item.is-latest .ios-notice-card::before {
    background: var(--line-strong);
}

.ios-notice-card header {
    margin-bottom: 10px;
}

.ios-notice-card h2 {
    margin: 7px 0 0;
    color: var(--heading);
    font-size: clamp(19px, 2.2vw, 24px);
    line-height: 1.32;
    letter-spacing: -0.025em;
}

.ios-notice-empty {
    border-radius: 30px;
}

.notice-feature-card {
    margin-bottom: 18px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, var(--surface), var(--surface-soft));
}

.notice-feature-icon {
    width: 56px;
    height: 56px;
    flex: 0 0 auto;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: var(--heading);
    color: var(--surface);
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.16);
}

.notice-feature-icon svg {
    width: 28px;
    height: 28px;
}

.notice-feature-card h2 {
    margin: 0;
    color: var(--heading);
    font-size: 22px;
    line-height: 1.35;
}

.notice-feature-card p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.notice-timeline {
    position: relative;
    display: grid;
    gap: 16px;
}

.notice-timeline-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
}

.notice-timeline-rail {
    position: relative;
    display: flex;
    justify-content: center;
}

.notice-timeline-rail::after {
    content: "";
    position: absolute;
    top: 30px;
    bottom: -18px;
    width: 2px;
    border-radius: 999px;
    background: var(--line);
}

.notice-timeline-item:last-child .notice-timeline-rail::after {
    display: none;
}

.notice-timeline-dot {
    position: relative;
    z-index: 1;
    width: 16px;
    height: 16px;
    margin-top: 20px;
    border: 4px solid var(--surface);
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.notice-timeline-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 8px 18px rgba(32, 42, 68, 0.045);
}

.notice-timeline-item.is-latest .notice-timeline-card {
    border-color: var(--line-strong);
    background: linear-gradient(135deg, var(--surface), var(--surface-soft));
}

.notice-timeline-card header {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    margin-bottom: 12px;
}

.notice-date-pill {
    min-height: 58px;
    padding: 10px;
    border-radius: 16px;
    display: grid;
    gap: 4px;
    justify-items: center;
    background: var(--surface-soft);
    color: var(--muted);
    text-align: center;
}

.notice-date-pill strong {
    color: var(--heading);
    font-size: 14px;
    line-height: 1.2;
}

.notice-date-pill span {
    color: var(--subtle);
    font-size: 12px;
    line-height: 1.2;
}

.notice-latest-mark,
.admin-mark {
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
}

.notice-timeline-card h2 {
    margin: 6px 0 0;
    color: var(--heading);
    font-size: 21px;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.notice-rich-content {
    color: var(--text);
    font-size: 15px;
    line-height: 1.9;
}

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

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

.notice-rich-content p,
.notice-rich-content ul,
.notice-rich-content ol,
.notice-rich-content blockquote,
.notice-rich-content pre {
    margin: 0 0 1em;
}

.notice-rich-content a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.notice-rich-content h1,
.notice-rich-content h2,
.notice-rich-content h3,
.notice-rich-content h4,
.notice-rich-content h5,
.notice-rich-content h6 {
    margin: 1.25em 0 0.55em;
    color: var(--heading);
    line-height: 1.35;
}

.notice-rich-content blockquote {
    padding: 12px 14px;
    border-left: 4px solid var(--primary);
    border-radius: 0 14px 14px 0;
    background: var(--accent-pink-soft);
    color: var(--muted);
}

.notice-rich-content code {
    padding: 2px 6px;
    border-radius: 7px;
    background: var(--surface-soft);
    color: var(--heading);
    font-family: var(--font-misans);
    font-size: 0.9em;
}

.notice-rich-content pre {
    padding: 14px;
    overflow-x: auto;
    border-radius: 14px;
    background: #1f2433;
    color: #f5f7ff;
    font-size: 13px;
}

.notice-rich-content pre code {
    padding: 0;
    background: transparent;
    color: inherit;
}

@media (max-width: 760px) {
    .ios-notice-hero {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
        border-radius: 26px;
    }

    .ios-notice-summary {
        grid-column: 1 / -1;
        min-height: 74px;
        grid-template-columns: auto auto minmax(0, 1fr);
        align-items: center;
        justify-content: start;
        text-align: left;
    }

    .ios-notice-summary strong {
        font-size: 28px;
    }

    .ios-notice-item {
        grid-template-columns: 1fr;
    }

    .ios-notice-date {
        min-height: 0;
        padding: 10px 12px;
        display: inline-flex;
        justify-content: space-between;
        justify-self: start;
        min-width: min(100%, 210px);
    }
}

@media (max-width: 520px) {
    .ios-notice-shell {
        gap: 12px;
    }

    .ios-notice-hero {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .ios-notice-hero-icon {
        width: 56px;
        height: 56px;
        border-radius: 18px;
    }

    .ios-notice-summary {
        grid-template-columns: auto auto;
    }

    .ios-notice-summary small {
        grid-column: 1 / -1;
    }

    .ios-notice-list {
        padding: 8px;
        border-radius: 24px;
    }

    .ios-notice-card {
        border-radius: 20px;
    }
}

.guestbook-board {
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
    padding: clamp(16px, 3vw, 24px);
    border: 1px solid var(--line);
    border-radius: 28px;
    display: grid;
    gap: 16px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.guestbook-summary-panel {
    padding: clamp(16px, 2.8vw, 24px);
    border: 1px solid var(--line);
    border-radius: 24px;
    display: grid;
    gap: 18px;
    background: linear-gradient(135deg, var(--surface), var(--surface-soft));
}

.guestbook-summary-copy h1 {
    margin: 0;
    color: var(--heading);
    font-size: clamp(28px, 4.5vw, 42px);
    line-height: 1.14;
    letter-spacing: -0.035em;
}

.guestbook-summary-copy p {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.guestbook-board-section {
    padding: clamp(14px, 2.5vw, 22px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.guestbook-board .guestbook-metrics {
    margin: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.guestbook-board .metric-card {
    min-height: 88px;
    background: var(--surface);
}

.guestbook-message-card {
    position: relative;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    background: var(--surface);
    box-shadow: 0 8px 18px rgba(32, 42, 68, 0.045);
}

.guestbook-message-card.is-admin {
    border-color: var(--line-strong);
    background: linear-gradient(135deg, var(--surface), var(--surface-soft));
}

.guestbook-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--heading), var(--primary-hover));
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.16);
}

.guestbook-message-body {
    min-width: 0;
}

.guestbook-message-body header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.guestbook-message-body header div {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.guestbook-message-body strong,
.guestbook-message-body a {
    color: var(--heading);
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
}

.guestbook-message-body a:hover {
    color: var(--primary);
}

.guestbook-message-body time {
    flex: 0 0 auto;
    color: var(--subtle);
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
}

.guestbook-message-body p {
    margin: 0;
    color: var(--text);
    font-size: 15px;
    line-height: 1.85;
    word-break: break-word;
}

.guestbook-message-body footer {
    margin-top: 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.guestbook-message-body footer span {
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
}

.guestbook-message-body footer svg {
    width: 15px;
    height: 15px;
    color: currentColor;
}

.guestbook-message-body footer .reply-status.has-reply {
    background: var(--primary-soft);
    color: var(--primary);
}

.guestbook-message-body footer .reply-status.no-reply {
    background: var(--surface-soft);
    color: var(--subtle);
}

.guestbook-reply {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: var(--surface-soft);
    color: var(--muted);
}

.guestbook-reply.has-reply {
    border: 1px solid var(--line-strong);
    background: linear-gradient(135deg, var(--surface), var(--surface-soft));
}

.guestbook-reply-head {
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.guestbook-reply-head strong {
    color: var(--primary);
    font-size: 13px;
    line-height: 1.3;
}

.guestbook-reply-head time {
    color: var(--subtle);
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
}

.guestbook-reply p {
    margin: 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.8;
}

.guestbook-reply.no-reply p {
    color: var(--subtle);
}

.guestbook-compose-panel {
    overflow: hidden;
}

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

.guestbook-compose-head h2 {
    margin: 0;
    color: var(--heading);
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.guestbook-compose-head p {
    max-width: 620px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.guestbook-compose-mark {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: linear-gradient(135deg, var(--heading), var(--primary-hover));
    color: var(--surface);
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.16);
}

.guestbook-compose-mark svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.guestbook-form {
    margin-top: 16px;
    display: grid;
    gap: 16px;
}

.guestbook-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.guestbook-form label,
.guestbook-form-full {
    display: grid;
    gap: 9px;
}

.guestbook-form label span {
    color: var(--heading);
    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
}

.guestbook-form input,
.guestbook-form select,
.guestbook-form textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-soft);
    color: var(--heading);
    font: inherit;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.guestbook-form textarea {
    min-height: 150px;
    resize: vertical;
}

.guestbook-form input::placeholder,
.guestbook-form textarea::placeholder {
    color: var(--subtle);
}

.guestbook-form input:focus,
.guestbook-form select:focus,
.guestbook-form textarea:focus {
    border-color: var(--line-strong);
    background: var(--surface);
    box-shadow: 0 0 0 4px var(--primary-soft), 0 10px 22px rgba(32, 42, 68, 0.06);
    outline: none;
}

.guestbook-form button {
    min-height: 52px;
    min-width: 168px;
    padding: 0 26px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--heading), var(--primary-hover));
    color: var(--surface);
    font: inherit;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(17, 24, 39, 0.18);
    transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.guestbook-form button svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    transition: transform 0.18s ease;
}

.guestbook-form button:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(17, 24, 39, 0.22);
}

.guestbook-form button:hover svg {
    transform: translateX(2px);
}

.guestbook-form button:active {
    transform: scale(0.98);
}

.guestbook-form-actions {
    margin-top: 2px;
    padding: 14px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: var(--surface-soft);
}

.guestbook-form-actions > span {
    color: var(--subtle);
    font-size: 13px;
    line-height: 1.6;
}

.comment-alert {
    margin: 14px 0 0;
    padding: 11px 12px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.6;
    font-weight: 700;
}

.comment-alert-error {
    border: 1px solid var(--line-strong);
    background: var(--surface-soft);
    color: var(--heading);
}

.comment-alert-success {
    border: 1px solid var(--line-strong);
    background: var(--surface-soft);
    color: var(--heading);
}

.page-pagination {
    margin-top: 18px;
}

.page-empty {
    box-shadow: none;
    border: 1px dashed var(--line-strong);
    background: var(--surface-soft);
}

.guestbook-board {
    position: relative;
    max-width: 1120px;
    padding: clamp(18px, 3vw, 30px);
    gap: clamp(16px, 2.4vw, 22px);
    overflow: hidden;
    background: var(--surface);
    isolation: isolate;
}

.guestbook-board::before {
    content: none;
}

.guestbook-board-head {
    max-width: 720px;
}

.guestbook-board-head h1 {
    margin: 0;
    color: var(--heading);
    font-family: var(--font-misans);
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.guestbook-barrage-section .section-title-row h2,
.guestbook-compose-head h2,
.guestbook-detail-name-row h2 {
    font-family: var(--font-misans);
    font-weight: 700;
}

.guestbook-board-head p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.guestbook-stats-panel {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.72);
    border-radius: 24px;
    background: linear-gradient(135deg, var(--surface), var(--surface-soft));
    box-shadow: 0 10px 26px rgba(32, 42, 68, 0.045);
}

.guestbook-stats-toggle {
    min-height: 54px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--heading);
    list-style: none;
    cursor: pointer;
}

.guestbook-stats-toggle::-webkit-details-marker {
    display: none;
}

.guestbook-stats-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.guestbook-stats-toggle-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.guestbook-stats-toggle-copy strong {
    font-family: var(--font-misans);
    font-size: 18px;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.guestbook-stats-toggle-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
}

.guestbook-stats-toggle-meta svg {
    width: 20px;
    height: 20px;
    color: currentColor;
    transition: transform 0.2s ease;
}

.guestbook-stats-panel[open] .guestbook-stats-toggle-meta svg {
    transform: rotate(180deg);
}

.guestbook-stats-panel.is-collapsing .guestbook-stats-toggle-meta svg {
    transform: rotate(0deg);
}

.guestbook-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 0 14px 14px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.guestbook-stats-panel.is-collapsing .guestbook-stats-grid {
    opacity: 0;
    transform: translateY(-6px);
}

.guestbook-stats-panel[open]:not(.is-expanding):not(.is-collapsing) .guestbook-stats-grid {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .guestbook-stats-grid {
        transition: none;
    }

    .guestbook-stats-toggle-meta svg {
        transition: none;
    }
}

.guestbook-stat-card {
    padding: 14px;
    border: 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: none;
}

html[data-theme="dark"] .guestbook-stat-card {
    background: rgba(255, 255, 255, 0.035);
}

.guestbook-stat-card-head h3 {
    margin: 0;
    color: var(--heading);
    font-size: 14px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.guestbook-stat-card-divider {
    display: none;
}

.guestbook-stat-rows {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.guestbook-stat-row {
    min-height: 48px;
    padding: 0;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 68px;
    align-items: center;
    gap: 8px;
    background: transparent;
}

.guestbook-stat-row-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(32, 42, 68, 0.12);
}

.guestbook-stat-row-icon svg {
    width: 21px;
    height: 21px;
    margin: auto;
    display: block;
    fill: currentColor;
}

.guestbook-stat-row-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.guestbook-stat-row-label {
    color: var(--subtle);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
}

.guestbook-stat-row-value {
    color: var(--heading);
    font-family: var(--font-misans);
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.guestbook-stat-row-chart {
    width: 68px;
    height: 21px;
    overflow: visible;
}

.guestbook-stat-row-fill {
    fill: currentColor;
    opacity: 0.08;
}

.guestbook-stat-row-line {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.08));
}

.guestbook-stat-row-dot {
    fill: currentColor;
}

.guestbook-stat-row-blue .guestbook-stat-row-icon {
    background: var(--heading);
}

.guestbook-stat-row-blue .guestbook-stat-row-chart,
.guestbook-stat-card-blue .guestbook-stat-row:nth-child(1) {
    color: var(--heading);
}

.guestbook-stat-row-green .guestbook-stat-row-icon {
    background: var(--muted);
}

.guestbook-stat-row-green .guestbook-stat-row-chart,
.guestbook-stat-card-green .guestbook-stat-row:nth-child(1) {
    color: var(--muted);
}

.guestbook-stat-row-pink .guestbook-stat-row-icon {
    background: var(--accent-pink);
    color: var(--accent-pink-text);
}

.guestbook-stat-row-pink .guestbook-stat-row-chart,
.guestbook-stat-card-pink .guestbook-stat-row:nth-child(2) {
    color: var(--accent-pink-text);
}

.guestbook-stat-row-amber .guestbook-stat-row-icon {
    background: var(--subtle);
}

.guestbook-stat-row-amber .guestbook-stat-row-chart,
.guestbook-stat-card-amber .guestbook-stat-row:nth-child(2) {
    color: var(--subtle);
}

.guestbook-board-divider {
    height: 1px;
    border: 0;
    background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.guestbook-barrage-section {
    min-width: 0;
}

.guestbook-barrage-stage {
    position: relative;
    min-height: clamp(360px, 46vw, 520px);
    border: 1px solid var(--line);
    border-radius: 26px;
    overflow: hidden;
    background: var(--surface-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), var(--shadow-card);
}

.guestbook-barrage-stage::before,
.guestbook-barrage-stage::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 2;
    width: 10%;
    pointer-events: none;
    background: linear-gradient(90deg, var(--surface-soft), transparent);
}

.guestbook-barrage-stage::after {
    inset: 0 0 0 auto;
    background: linear-gradient(270deg, var(--surface-soft), transparent);
}

.guestbook-barrage-item {
    --barrage-top: 24px;
    --barrage-duration: 22s;
    --barrage-delay: 0s;
    position: absolute;
    top: var(--barrage-top);
    left: 100%;
    z-index: 1;
    width: max-content;
    max-width: min(620px, 84vw);
    min-height: 58px;
    padding: 11px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: var(--surface);
    color: var(--heading);
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(30, 58, 95, 0.08);
    animation: guestbook-barrage-move var(--barrage-duration) linear var(--barrage-delay) infinite;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.guestbook-barrage-item:hover,
.guestbook-barrage-item:focus-visible {
    z-index: 5;
    border-color: rgba(151, 160, 175, 0.36);
    box-shadow: 0 16px 34px rgba(32, 42, 68, 0.1);
    animation-play-state: paused;
}

.guestbook-barrage-item.is-admin {
    border-color: var(--line-strong);
    background: var(--surface-soft);
}

.guestbook-barrage-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.guestbook-barrage-meta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.guestbook-barrage-meta strong {
    color: var(--heading);
    font-size: 14px;
    line-height: 1.25;
    font-weight: 700;
}

.guestbook-barrage-meta small {
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
}

.guestbook-barrage-meta small.has-reply {
    background: var(--primary-soft);
    color: var(--primary);
}

.guestbook-barrage-meta small.no-reply {
    background: var(--surface-soft);
    color: var(--muted);
}

.guestbook-barrage-text {
    max-width: 460px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes guestbook-barrage-move {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-100vw - 100% - 220px));
    }
}

.guestbook-page-panel {
    overflow: visible;
}

.guestbook-page-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.guestbook-page-back {
    min-height: 44px;
    padding: 0 16px 0 13px;
    border: 1px solid rgba(226, 229, 236, 0.92);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--surface);
    color: var(--heading);
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(32, 42, 68, 0.06);
}

.guestbook-page-back::before {
    content: none;
}

.guestbook-page-back svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: currentColor;
    transition: transform 0.18s ease;
}

.guestbook-page-back:hover,
.guestbook-page-back:focus-visible {
    border-color: var(--line-strong);
    background: var(--surface-soft);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-card-hover);
}

.guestbook-page-back:hover svg,
.guestbook-page-back:focus-visible svg {
    transform: translateX(-2px);
}

.guestbook-compose-page {
    width: 100%;
    max-width: 920px;
    padding: clamp(18px, 3vw, 30px);
    gap: 16px;
    background: var(--surface);
}

.guestbook-compose-page > .guestbook-page-back {
    width: fit-content;
    margin-bottom: 4px;
}

.guestbook-compose-page > .guestbook-compose-head,
.guestbook-compose-page > .comment-alert,
.guestbook-compose-page > .guestbook-form {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
}

.guestbook-compose-page > .guestbook-compose-head {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.guestbook-compose-page {
    --guestbook-compose-bg: rgba(246, 247, 249, 0.78);
    --guestbook-compose-card: rgba(255, 255, 255, 0.86);
    --guestbook-compose-card-strong: rgba(255, 255, 255, 0.96);
    --guestbook-compose-border: rgba(229, 231, 235, 0.86);
    --guestbook-compose-control: rgba(246, 247, 249, 0.9);
    --guestbook-compose-shadow: 0 26px 70px rgba(15, 23, 42, 0.12);
    --guestbook-compose-inner-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
    max-width: 960px;
    padding: clamp(12px, 2.8vw, 26px);
    border: 0;
    border-radius: 34px;
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.96), transparent 32%),
        linear-gradient(135deg, var(--guestbook-compose-bg), var(--surface-soft));
    box-shadow: none;
    font-family: var(--font-misans);
}

html[data-theme="dark"] .guestbook-compose-page {
    --guestbook-compose-bg: rgba(255, 255, 255, 0.035);
    --guestbook-compose-card: rgba(42, 43, 47, 0.88);
    --guestbook-compose-card-strong: rgba(48, 49, 54, 0.96);
    --guestbook-compose-border: rgba(255, 255, 255, 0.09);
    --guestbook-compose-control: rgba(255, 255, 255, 0.055);
    --guestbook-compose-shadow: 0 28px 74px rgba(0, 0, 0, 0.34);
    --guestbook-compose-inner-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.guestbook-compose-card {
    position: relative;
    width: 100%;
    padding: clamp(20px, 4vw, 36px);
    border: 1px solid var(--guestbook-compose-border);
    border-radius: 30px;
    overflow: hidden;
    background: var(--guestbook-compose-card);
    box-shadow: var(--guestbook-compose-inner-shadow), var(--guestbook-compose-shadow);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    isolation: isolate;
}

.guestbook-compose-card::before,
.guestbook-compose-card::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    pointer-events: none;
}

.guestbook-compose-card::before {
    width: clamp(180px, 30vw, 300px);
    height: clamp(180px, 30vw, 300px);
    top: -130px;
    right: -98px;
    background: radial-gradient(circle, rgba(17, 24, 39, 0.12), transparent 68%);
}

.guestbook-compose-card::after {
    width: 160px;
    height: 160px;
    left: -70px;
    bottom: -86px;
    background: radial-gradient(circle, rgba(156, 163, 175, 0.18), transparent 70%);
}

html[data-theme="dark"] .guestbook-compose-card::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 68%);
}

.guestbook-compose-card > .guestbook-page-back {
    width: fit-content;
    min-height: 42px;
    margin-bottom: clamp(18px, 3vw, 28px);
    padding: 0 15px 0 12px;
    border-color: var(--guestbook-compose-border);
    background: var(--guestbook-compose-card-strong);
    box-shadow: 0 10px 24px rgba(32, 42, 68, 0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

html[data-theme="dark"] .guestbook-compose-card > .guestbook-page-back {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.guestbook-compose-page .guestbook-compose-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(18px, 3vw, 28px);
    align-items: center;
    margin: 0 0 clamp(20px, 3.5vw, 30px);
}

.guestbook-compose-title {
    min-width: 0;
}

.guestbook-compose-title .page-kicker {
    min-height: 28px;
    margin-bottom: 10px;
    padding: 0 11px;
    border: 1px solid var(--guestbook-compose-border);
    border-radius: 999px;
    background: var(--guestbook-compose-control);
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.14em;
}

.guestbook-compose-page .guestbook-compose-head h1 {
    font-size: clamp(34px, 6vw, 54px);
    line-height: 1.04;
    letter-spacing: -0.065em;
}

.guestbook-compose-page .guestbook-compose-head p {
    max-width: 620px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.85;
}

.guestbook-compose-badge {
    width: clamp(116px, 15vw, 148px);
    min-height: clamp(116px, 15vw, 148px);
    padding: 16px;
    border: 1px solid var(--guestbook-compose-border);
    border-radius: 28px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 7px;
    background: var(--guestbook-compose-card-strong);
    color: var(--heading);
    text-align: center;
    box-shadow: var(--guestbook-compose-inner-shadow), 0 14px 34px rgba(32, 42, 68, 0.08);
    transform: rotate(2deg);
}

.guestbook-compose-badge svg {
    width: 34px;
    height: 34px;
}

.guestbook-compose-badge span {
    color: var(--subtle);
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.guestbook-compose-badge strong {
    color: var(--heading);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
}

.guestbook-compose-page .comment-alert {
    margin: 0 0 16px;
    padding: 13px 15px;
    border-color: var(--guestbook-compose-border);
    border-radius: 18px;
    background: var(--guestbook-compose-control);
}

.guestbook-compose-page .guestbook-form {
    margin-top: 0;
    gap: 14px;
}

.guestbook-compose-page .guestbook-field {
    padding: 16px;
    border: 1px solid var(--guestbook-compose-border);
    border-radius: 24px;
    display: grid;
    gap: 13px;
    background: var(--guestbook-compose-card-strong);
    box-shadow: var(--guestbook-compose-inner-shadow), 0 8px 22px rgba(32, 42, 68, 0.045);
}

.guestbook-compose-page .guestbook-field-head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.guestbook-compose-page .guestbook-field-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--guestbook-compose-control);
    color: var(--heading);
}

.guestbook-compose-page .guestbook-field-icon svg {
    width: 22px;
    height: 22px;
}

.guestbook-compose-page .guestbook-field-head strong,
.guestbook-compose-page .guestbook-field-head small {
    display: block;
}

.guestbook-compose-page .guestbook-field-head strong {
    color: var(--heading);
    font-size: 15px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.guestbook-compose-page .guestbook-field-head small {
    margin-top: 3px;
    color: var(--subtle);
    font-size: 12px;
    line-height: 1.45;
    font-weight: 400;
}

.guestbook-compose-page .guestbook-form input,
.guestbook-compose-page .guestbook-form textarea {
    min-height: 54px;
    padding: 14px 16px;
    border-color: transparent;
    border-radius: 18px;
    background: var(--guestbook-compose-control);
    color: var(--heading);
    font-family: var(--font-misans);
    font-size: 15px;
    line-height: 1.55;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

html[data-theme="dark"] .guestbook-compose-page .guestbook-form input,
html[data-theme="dark"] .guestbook-compose-page .guestbook-form textarea {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.guestbook-compose-page .guestbook-form textarea {
    min-height: clamp(168px, 24vw, 220px);
    resize: vertical;
}

.guestbook-compose-page .guestbook-form input:focus,
.guestbook-compose-page .guestbook-form textarea:focus {
    border-color: rgba(17, 24, 39, 0.2);
    background: var(--surface);
    box-shadow: 0 0 0 4px var(--primary-soft), 0 10px 24px rgba(32, 42, 68, 0.08);
}

html[data-theme="dark"] .guestbook-compose-page .guestbook-form input:focus,
html[data-theme="dark"] .guestbook-compose-page .guestbook-form textarea:focus {
    border-color: rgba(255, 255, 255, 0.16);
}

.guestbook-compose-page .guestbook-form-actions {
    margin-top: 2px;
    padding: 14px 14px 14px 16px;
    border: 1px solid var(--guestbook-compose-border);
    border-radius: 22px;
    background: var(--guestbook-compose-card-strong);
    box-shadow: var(--guestbook-compose-inner-shadow), 0 8px 22px rgba(32, 42, 68, 0.04);
}

.guestbook-compose-page .guestbook-form-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.guestbook-compose-page .guestbook-form-note svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    color: var(--subtle);
}

.guestbook-compose-page .guestbook-form button {
    min-height: 50px;
    min-width: 154px;
    padding: 0 22px;
    border-radius: 17px;
    background: linear-gradient(180deg, var(--heading), var(--primary-hover));
    color: var(--surface);
    box-shadow: 0 14px 26px rgba(17, 24, 39, 0.18);
}

.guestbook-compose-page .guestbook-form button:hover,
.guestbook-compose-page .guestbook-form button:focus-visible {
    filter: none;
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(17, 24, 39, 0.22);
}

.guestbook-compose-page .guestbook-form button:active {
    transform: scale(0.98);
}

.guestbook-compose-page {
    --guestbook-compose-border: var(--line);
    --guestbook-compose-control: var(--surface-soft);
    --guestbook-compose-card-strong: var(--surface);
    max-width: 920px;
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid var(--line);
    border-radius: 28px;
    gap: clamp(16px, 2.4vw, 22px);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

html[data-theme="dark"] .guestbook-compose-page {
    --guestbook-compose-border: var(--line);
    --guestbook-compose-control: var(--surface-soft);
    --guestbook-compose-card-strong: var(--surface);
}

.guestbook-compose-card {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: visible;
    background: var(--surface);
    box-shadow: var(--shadow-card);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    isolation: auto;
}

.guestbook-compose-card::before,
.guestbook-compose-card::after {
    content: none;
}

.guestbook-compose-page .guestbook-compose-head {
    display: block;
    margin: 0 0 18px;
}

.guestbook-compose-title .page-kicker {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary);
}

.guestbook-compose-page .guestbook-compose-head h1 {
    font-size: clamp(26px, 5vw, 38px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.guestbook-compose-page .guestbook-compose-head p {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.8;
}

.guestbook-compose-page .guestbook-field {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.guestbook-compose-page .guestbook-field-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: var(--surface-soft);
}

.guestbook-compose-page .guestbook-form input,
.guestbook-compose-page .guestbook-form textarea {
    border-color: var(--line);
    background: var(--surface-soft);
    box-shadow: none;
}

.guestbook-compose-page .guestbook-form-actions {
    border-color: var(--line);
    background: var(--surface-soft);
    box-shadow: none;
}

.guestbook-compose-page .guestbook-form button {
    border-radius: 14px;
    background: var(--heading);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.14);
}

.guestbook-compose-page .guestbook-form button:hover,
.guestbook-compose-page .guestbook-form button:focus-visible {
    background: var(--primary);
    box-shadow: 0 14px 28px rgba(17, 24, 39, 0.16);
}

@media (max-width: 720px) {
    .guestbook-compose-page .guestbook-compose-head {
        grid-template-columns: 1fr;
    }

    .guestbook-compose-badge {
        width: 100%;
        min-height: 88px;
        grid-template-columns: auto minmax(0, 1fr);
        place-items: center start;
        align-content: center;
        text-align: left;
        transform: none;
    }

    .guestbook-compose-badge svg {
        grid-row: 1 / span 2;
    }
}

@media (max-width: 520px) {
    .guestbook-compose-page {
        padding: 8px;
        border-radius: 26px;
    }

    .guestbook-compose-card {
        padding: 18px;
        border-radius: 24px;
    }

    .guestbook-compose-page .guestbook-compose-head h1 {
        font-size: clamp(31px, 10vw, 40px);
        letter-spacing: -0.045em;
    }

    .guestbook-compose-page .guestbook-field {
        padding: 14px;
        border-radius: 21px;
    }

    .guestbook-compose-page .guestbook-field-head {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 10px;
    }

    .guestbook-compose-page .guestbook-field-icon {
        width: 38px;
        height: 38px;
        border-radius: 14px;
    }

    .guestbook-compose-page .guestbook-form-actions {
        align-items: stretch;
        padding: 14px;
    }

    .guestbook-compose-page .guestbook-form-note {
        align-items: flex-start;
    }

    .guestbook-compose-page .guestbook-form button {
        width: 100%;
    }
}

.guestbook-detail-page-card {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.guestbook-compose-head h1,
.guestbook-detail-name-row h1 {
    margin: 0;
    color: var(--heading);
    font-family: var(--font-misans);
    font-size: clamp(26px, 5vw, 38px);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.guestbook-avatar {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: linear-gradient(135deg, var(--heading), var(--primary-hover));
    color: #ffffff;
    font-family: var(--font-misans);
    font-size: 22px;
    line-height: 1;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.18);
}

.guestbook-detail-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.guestbook-detail-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.guestbook-detail-name-row span,
.guestbook-detail-meta span {
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
}

.guestbook-detail-head time {
    margin-top: 5px;
    display: block;
    color: var(--subtle);
    font-size: 13px;
    line-height: 1.4;
}

.guestbook-detail-content {
    margin-top: 18px;
    padding: 16px 0 0;
    border-top: 1px solid var(--line);
    color: var(--text);
    font-size: 16px;
    line-height: 1.9;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.guestbook-detail-meta {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.guestbook-detail-meta .has-reply {
    background: var(--primary-soft);
    color: var(--primary);
}

.guestbook-detail-meta .no-reply {
    background: var(--surface-soft);
    color: var(--muted);
}

.guestbook-compose-open {
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.guestbook-form button {
    border-radius: 14px;
}

@media (prefers-reduced-motion: reduce) {
    .guestbook-barrage-item {
        position: static;
        width: 100%;
        max-width: 100%;
        animation: none;
    }

    .guestbook-barrage-stage {
        min-height: 0;
        padding: 12px;
        display: grid;
        gap: 10px;
    }
}

@media (max-width: 640px) {
    .guestbook-board {
        padding: 14px;
        border-radius: 20px;
    }

    .guestbook-stats-grid {
        grid-template-columns: 1fr;
    }

    .guestbook-stat-card {
        min-height: 74px;
        padding: 14px 16px;
        border-radius: 18px;
    }

    .guestbook-barrage-stage {
        min-height: 420px;
        border-radius: 20px;
    }

    .guestbook-barrage-item {
        max-width: calc(100vw - 44px);
        min-height: 56px;
        padding: 10px 14px;
        border-radius: 16px;
    }

    .guestbook-barrage-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .guestbook-barrage-text {
        max-width: calc(100vw - 86px);
    }

    .guestbook-page-nav {
        align-items: stretch;
        flex-direction: column;
    }

    .guestbook-page-back,
    .guestbook-page-nav .section-action {
        width: 100%;
    }

    .guestbook-compose-page-card,
    .guestbook-detail-page-card {
        padding: 18px;
        border-radius: 20px;
    }

    .guestbook-detail-head {
        gap: 12px;
    }

    .guestbook-avatar {
        width: 46px;
        height: 46px;
        border-radius: 16px;
        font-size: 19px;
    }

    .guestbook-detail-content {
        margin-top: 16px;
        padding-top: 14px;
        font-size: 15px;
        line-height: 1.8;
    }

    .guestbook-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .guestbook-form button {
        width: 100%;
    }
}

@media (max-width: 1024px) {
    .page-grid,
    .hot-page-grid,
    .guestbook-grid {
        grid-template-columns: 1fr;
    }

    .page-side-stack {
        position: static;
    }

    .metric-strip,
    .guestbook-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 768px) {
    .page-hero {
        min-height: 0;
        padding: 24px 20px;
        border-radius: 22px;
        display: grid;
        gap: 20px;
    }

    .page-hero h1 {
        font-size: clamp(32px, 11vw, 44px);
    }

    .page-hero p {
        font-size: 14px;
        line-height: 1.75;
    }

    .page-hero-actions {
        margin-top: 18px;
    }

    .page-hero-badge {
        width: 108px;
        height: 108px;
        border-radius: 26px;
        justify-self: end;
    }

    .metric-strip {
        gap: 10px;
    }

    .metric-card {
        min-height: 86px;
        padding: 15px;
        border-radius: 18px;
    }

    .metric-card strong {
        font-size: 22px;
    }

    .page-main-card,
    .side-panel {
        border-radius: 20px;
    }

    .section-title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .hot-card {
        min-height: 0;
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
        border-radius: 18px;
    }

    .hot-rank {
        width: 40px;
        height: 40px;
        border-radius: 14px;
        font-size: 15px;
    }

    .hot-cover {
        grid-column: 1 / -1;
        grid-row: 1;
        height: clamp(150px, 42vw, 220px);
        border-radius: 16px;
    }

    .hot-cover img,
    .hot-cover-placeholder {
        height: 100%;
    }

    .hot-rank {
        position: relative;
        z-index: 1;
        grid-column: 1;
        grid-row: 1;
        margin: 10px;
        align-self: start;
        box-shadow: 0 10px 22px rgba(32, 42, 68, 0.12);
    }

    .hot-body {
        grid-column: 1 / -1;
    }

    .hot-body h2 {
        white-space: normal;
        font-size: 18px;
    }

    .hot-stats {
        gap: 7px;
    }

    .mini-rank-item {
        min-height: 56px;
    }
}

@media (max-width: 520px) {
    .metric-strip {
        grid-template-columns: 1fr;
    }

    .page-hero-badge {
        justify-self: start;
        transform: rotate(0);
    }

    .hot-meta span,
    .hot-stats span {
        font-size: 11px;
    }
}

.page-hero-guestbook,
.page-hero-guestbook *,
.page-hero-guestbook *::before,
.page-hero-guestbook *::after,
.guestbook-board,
.guestbook-board *,
.guestbook-board *::before,
.guestbook-board *::after {
    box-shadow: none !important;
    filter: none !important;
    text-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.page-hero-guestbook,
.guestbook-board,
.guestbook-summary-panel,
.guestbook-board-section,
.guestbook-stats-panel,
.guestbook-stat-card,
.guestbook-barrage-item,
.guestbook-compose-card,
.guestbook-detail-page-card,
.guestbook-page-back,
.guestbook-compose-page .guestbook-field,
.guestbook-compose-page .guestbook-form-actions {
    background: var(--surface) !important;
}

.page-hero-guestbook::before,
.page-hero-guestbook::after,
.guestbook-barrage-stage::before,
.guestbook-barrage-stage::after,
.guestbook-compose-card::before,
.guestbook-compose-card::after {
    content: none !important;
}

.page-hero-guestbook .page-hero-badge,
.guestbook-barrage-stage,
.guestbook-message-card.is-admin,
.guestbook-barrage-item.is-admin,
.guestbook-reply.has-reply,
.guestbook-form-actions,
.guestbook-form input,
.guestbook-form select,
.guestbook-form textarea,
.guestbook-compose-page .guestbook-field-icon,
.guestbook-compose-page .guestbook-form input,
.guestbook-compose-page .guestbook-form textarea,
.guestbook-compose-page .comment-alert,
.page-empty {
    background: var(--surface-soft) !important;
}

.guestbook-avatar,
.guestbook-compose-mark,
.guestbook-form button,
.guestbook-compose-page .guestbook-form button {
    background: var(--heading) !important;
    color: #ffffff !important;
}

.guestbook-board-divider {
    background: var(--line) !important;
}

.site-footer {
    width: 100%;
    margin: 48px auto 0;
    padding: 0;
    border-top: 1px solid var(--line);
    background: var(--bg);
    flex-shrink: 0;
}

.site-footer-inner {
    width: min(100%, var(--container));
    margin: 0 auto;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
}

.site-footer-brand {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--heading);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
}

.site-footer-brand img {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: block;
    border-radius: 50%;
    object-fit: contain;
    background: var(--surface-soft);
}

.site-footer-brand a {
    min-height: 28px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--primary-soft);
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
    white-space: nowrap;
    touch-action: manipulation;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.site-footer-brand a:hover {
    border-color: var(--line-strong);
    background: var(--surface-soft);
    color: var(--primary);
    transform: translateY(-1px);
}

.site-footer-copy {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    font-weight: 500;
    text-align: center;
}

.site-footer-copy span {
    display: block;
}

.site-footer-credit {
    color: var(--subtle);
    font-size: 12px;
}

.site-footer-credit a {
    color: var(--muted);
    font-weight: 600;
    transition: color 0.2s ease;
}

.site-footer-credit a:hover {
    color: var(--primary);
}

.site-footer-copy a {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    font-weight: 600;
    transition: color 0.2s ease;
}

.site-footer-copy a:hover {
    color: var(--primary);
    transform: none;
}

.site-footer-powered {
    max-width: 100%;
    color: var(--subtle);
    font-size: 12px;
    line-height: 1.6;
    font-weight: 500;
    flex-shrink: 0;
    text-align: right;
}

@media (max-width: 768px) {
    .site-header-inner {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) auto;
        padding: 0 12px;
        align-items: center;
        gap: 8px;
    }

    .mobile-sidebar-button {
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--heading);
        background: transparent;
        cursor: pointer;
        touch-action: manipulation;
        transition: opacity 0.22s ease, color 0.18s ease, background 0.18s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .mobile-sidebar-button svg {
        width: 22px;
        height: 22px;
    }

    .mobile-sidebar-button svg path {
        fill: currentColor;
    }

    .mobile-sidebar-button:active {
        background: var(--primary-soft);
        color: var(--primary);
        transform: scale(0.96);
    }

    .site-brand {
        position: absolute;
        left: 50%;
        top: 50%;
        min-width: 0;
        max-width: min(52vw, 260px);
        justify-self: auto;
        justify-content: center;
        gap: 7px;
        font-size: 16px;
        transform: translate(-50%, -50%);
        transition: opacity 0.22s ease, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .site-brand img {
        width: 30px;
        height: 30px;
    }

    .site-brand span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .site-nav {
        display: none;
    }

    .site-actions {
        margin-left: auto;
        gap: 8px;
        transition: gap 0.24s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
    }

    .site-actions .theme-toggle-button,
    .site-actions .site-avatar {
        transition: opacity 0.22s ease, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .site-search {
        width: 38px;
        height: 44px;
        transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .site-search.is-open,
    .site-search.is-closing {
        width: min(360px, calc(100vw - 24px));
    }

    .site-search-panel {
        position: fixed;
        top: 6px;
        left: 50%;
        right: auto;
        width: min(360px, calc(100vw - 24px));
        max-width: calc(100vw - 24px);
        transform: translateX(-50%) translateY(-10px) scaleX(0.92);
        transform-origin: center;
    }

    .site-search.is-open .site-search-panel {
        transform: translateX(-50%) translateY(0) scaleX(1);
    }

    .site-header.is-search-open .mobile-sidebar-button,
    .site-header.is-search-closing .mobile-sidebar-button,
    .site-header.is-search-open .site-brand,
    .site-header.is-search-closing .site-brand,
    .site-header.is-search-open .theme-toggle-button,
    .site-header.is-search-closing .theme-toggle-button,
    .site-header.is-search-open .site-avatar,
    .site-header.is-search-closing .site-avatar {
        opacity: 0;
        pointer-events: none;
        transform: scale(0.92);
    }

    .site-header.is-search-open .site-brand,
    .site-header.is-search-closing .site-brand {
        transform: translate(-50%, -50%) scale(0.92);
    }

    .site-header.is-search-open .site-actions,
    .site-header.is-search-closing .site-actions {
        position: absolute;
        left: 50%;
        top: 50%;
        width: min(360px, calc(100vw - 24px));
        margin-left: 0;
        gap: 0;
        justify-content: center;
        transform: translate(-50%, -50%);
        z-index: 4;
    }

    .site-icon-button {
        width: 38px;
        height: 38px;
        background: transparent;
    }

    .site-icon-button svg {
        width: 19px;
        height: 19px;
    }

    .site-icon-button:active {
        color: var(--primary);
        background: var(--primary-soft);
        transform: scale(0.96);
    }

    .site-avatar {
        width: 38px;
        height: 38px;
    }

    .site-main {
        padding: 72px 12px 0;
    }

    .home-shell {
        display: block;
    }

    .home-sidebar {
        display: none;
    }

    .home-content,
    .home-panel:not([hidden]) {
        gap: 10px;
    }

    .hero-card {
        height: clamp(180px, 50vw, 260px);
        border-radius: 14px;
    }

    .hero-nav {
        display: none;
    }

    .category-dropdown {
        min-height: 44px;
        padding: 5px 6px 5px 12px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.86);
    }

    .category-dropdown::before {
        font-size: 12px;
    }

    .category-trigger {
        min-height: 36px;
        padding: 6px 12px;
        font-size: 13px;
    }

    .category-menu {
        left: auto;
        right: 6px;
        top: calc(100% + 9px);
        width: min(258px, calc(100vw - 40px));
        padding: 9px;
        border-color: var(--line);
        border-radius: 16px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        background: var(--surface);
        box-shadow: 0 16px 34px rgba(32, 42, 68, 0.13);
    }

    .category-menu a {
        min-height: 34px;
        padding: 6px 10px;
        border-color: var(--line);
        background: var(--surface);
        font-size: 13px;
    }

    .post-list {
        gap: 12px;
    }

    .post-card {
        min-height: 0;
        padding: 12px;
        gap: 12px;
        border-radius: 14px;
    }

    .post-card-cover {
        width: 108px;
        height: 92px;
        flex-basis: 108px;
        border-radius: 10px;
    }

    .post-card-labels {
        min-height: 0;
        margin-bottom: 2px;
    }

    .post-card h3 {
        font-size: 16px;
        line-height: 1.4;
    }

    .post-card p {
        margin-top: 5px;
        font-size: 13px;
        line-height: 1.55;
    }

    .post-card-footer {
        margin-top: 8px;
        display: block;
    }

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

    .post-stats {
        display: none;
    }

    .post-tag {
        min-height: 20px;
        padding: 2px 7px;
        font-size: 12px;
    }

    .mobile-menu-drawer {
        padding: 14px;
    }

    .mobile-menu-nav {
        gap: 9px;
    }

    .mobile-menu-nav a {
        min-height: 48px;
        border-color: var(--line);
        background: var(--surface);
    }
}

@media (max-width: 520px) {
    .site-header-inner {
        grid-template-columns: 40px minmax(0, 1fr) auto;
        padding: 0 10px;
        gap: 6px;
    }

    .mobile-sidebar-button {
        width: 40px;
        height: 40px;
    }

    .site-brand {
        gap: 6px;
        font-size: 14px;
    }

    .site-brand img {
        width: 28px;
        height: 28px;
    }

    .site-actions {
        gap: 4px;
    }

    .site-icon-button,
    .site-avatar {
        width: 34px;
        height: 34px;
    }

    .site-footer {
        margin-top: 24px;
        padding: 0 12px 22px;
    }

    .site-footer-inner {
        padding: 20px 14px;
        border-radius: 14px;
    }

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

    .post-card-cover {
        width: 100%;
        height: 150px;
        flex-basis: auto;
    }
}

html[data-theme="dark"] .site-header {
    border-bottom-color: rgba(63, 70, 82, 0.78);
    background: rgba(15, 16, 19, 0.88);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .site-header.is-scrolled {
    background: rgba(15, 16, 19, 0.78);
}

html[data-theme="dark"] .mobile-menu-drawer,
html[data-theme="dark"] .category-dropdown,
html[data-theme="dark"] .category-trigger,
html[data-theme="dark"] .category-menu,
html[data-theme="dark"] .category-menu a,
html[data-theme="dark"] .ios-notice-date span,
html[data-theme="dark"] .ios-notice-card,
html[data-theme="dark"] .notice-timeline-card,
html[data-theme="dark"] .notice-date-pill {
    border-color: var(--line);
    background: var(--surface);
}

html[data-theme="dark"] .profile-cover,
html[data-theme="dark"] .notice-feature-card,
html[data-theme="dark"] .ios-notice-item.is-latest .ios-notice-card,
html[data-theme="dark"] .notice-timeline-item.is-latest .notice-timeline-card {
    background: linear-gradient(135deg, var(--surface), var(--surface-soft));
}

html[data-theme="dark"] .site-avatar,
html[data-theme="dark"] .profile-avatar,
html[data-theme="dark"] .profile-status,
html[data-theme="dark"] .notice-timeline-dot {
    border-color: var(--surface);
}

html[data-theme="dark"] .profile-socials .copy-button-github,
html[data-theme="dark"] .profile-socials .copy-button-default,
html[data-theme="dark"] .post-tag,
html[data-theme="dark"] .post-card-cover,
html[data-theme="dark"] .notice-rich-content code,
html[data-theme="dark"] .mobile-menu-nav a {
    background: var(--surface-soft);
}

html[data-theme="dark"] .post-stats,
html[data-theme="dark"] .post-like {
    color: var(--muted);
}

html[data-theme="dark"] .mobile-sidebar-button svg path {
    fill: var(--heading) !important;
}

/* 最终中性色主题覆盖：避免旧蓝色规则在局部页面继续生效 */
.category-dropdown,
.category-trigger,
.category-menu,
.category-menu a,
.page-main-card,
.side-panel,
.notice-feature-card,
.system-notice-panel,
.ios-notice-card,
.notice-timeline-card,
.guestbook-board,
.guestbook-summary-panel,
.guestbook-board-section,
.guestbook-message-card,
.guestbook-stats-panel,
.guestbook-stat-card,
.guestbook-barrage-stage,
.guestbook-barrage-item,
.guestbook-page-back,
.guestbook-detail-page-card {
    border-color: var(--line);
    background: var(--surface);
}

.page-main-card.hot-main-card,
.ios-notice-item.is-latest .ios-notice-card,
.notice-feature-card,
.notice-timeline-item.is-latest .notice-timeline-card,
.guestbook-summary-panel,
.guestbook-message-card.is-admin,
.guestbook-reply.has-reply {
    border-color: var(--line-strong);
    background: linear-gradient(135deg, var(--surface), var(--surface-soft));
}

.site-nav a:hover,
.site-nav a:active,
.site-icon-button:hover,
.site-icon-button:active,
.mobile-menu-nav a:hover,
.mobile-menu-nav a:active,
.category-dropdown.is-open .category-trigger,
.category-menu a:hover,
.category-menu a:active,
.hot-card:hover,
.mini-rank-item:hover,
.guestbook-page-back:hover,
.guestbook-page-back:focus-visible,
.site-footer-brand a:hover {
    border-color: var(--line-strong);
    background: var(--surface-soft);
    color: var(--primary);
    box-shadow: none;
}

.hot-card,
.hot-card.is-podium,
.mini-rank-item,
.mini-empty,
.notice-date-pill,
.ios-notice-date span,
.guestbook-board .metric-card,
.guestbook-message-body footer span,
.guestbook-detail-name-row span,
.guestbook-detail-meta span,
.guestbook-barrage-meta small,
.mobile-menu-nav a {
    border-color: var(--line);
    background: var(--surface-soft);
}

.hot-cover,
.hot-meta span,
.hot-stats span,
.hot-like,
.guestbook-stats-panel,
.guestbook-barrage-stage,
.guestbook-barrage-meta small.no-reply,
.guestbook-detail-meta .no-reply {
    background: var(--surface-soft);
}

.hot-cover-placeholder {
    background:
        radial-gradient(circle at 24% 22%, rgba(255, 255, 255, 0.42), transparent 34%),
        linear-gradient(135deg, var(--heading), var(--primary-hover));
    color: var(--surface);
}

.hot-stats svg,
.hot-like svg,
.guestbook-message-body footer svg,
.guestbook-stats-toggle-meta svg,
.guestbook-page-back svg {
    color: currentColor;
}

.ios-notice-item.is-latest .ios-notice-card::before,
.guestbook-stat-card-divider,
.guestbook-board-divider {
    background: var(--line-strong);
}

.notice-feature-icon,
.guestbook-avatar,
.guestbook-stat-row-blue .guestbook-stat-row-icon,
.guestbook-stat-row-green .guestbook-stat-row-icon,
.guestbook-stat-row-pink .guestbook-stat-row-icon,
.guestbook-stat-row-amber .guestbook-stat-row-icon {
    background: linear-gradient(135deg, var(--heading), var(--primary-hover));
    color: var(--surface);
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.16);
}

.guestbook-stat-row-blue .guestbook-stat-row-chart,
.guestbook-stat-card-blue .guestbook-stat-row:nth-child(1),
.guestbook-stat-row-green .guestbook-stat-row-chart,
.guestbook-stat-card-green .guestbook-stat-row:nth-child(1),
.guestbook-stat-row-pink .guestbook-stat-row-chart,
.guestbook-stat-card-pink .guestbook-stat-row:nth-child(2),
.guestbook-stat-row-amber .guestbook-stat-row-chart,
.guestbook-stat-card-amber .guestbook-stat-row:nth-child(2),
.guestbook-message-body a:hover,
.guestbook-reply-head strong,
.site-footer-brand a,
.site-footer-copy a {
    color: var(--primary);
}

.guestbook-form input,
.guestbook-form select,
.guestbook-form textarea {
    border-color: var(--line);
    background: var(--surface);
    color: var(--heading);
}

.guestbook-form input:focus,
.guestbook-form select:focus,
.guestbook-form textarea:focus {
    border-color: var(--line-strong);
    background: var(--surface);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.guestbook-form button {
    background: linear-gradient(135deg, var(--heading), var(--primary-hover));
    color: var(--surface);
    box-shadow: 0 14px 28px rgba(17, 24, 39, 0.18);
}

.guestbook-form button:hover {
    filter: brightness(1.05);
    box-shadow: 0 16px 30px rgba(17, 24, 39, 0.22);
}

.guestbook-barrage-stage::before {
    background: linear-gradient(90deg, var(--surface-soft), transparent);
}

.guestbook-barrage-stage::after {
    background: linear-gradient(270deg, var(--surface-soft), transparent);
}

@media (max-width: 768px) {
    .category-dropdown,
    .category-menu,
    .category-menu a,
    .mobile-menu-nav a {
        border-color: var(--line);
        background: var(--surface);
    }

    .mobile-sidebar-button:active {
        color: var(--primary);
        background: var(--primary-soft);
    }
}

html[data-theme="dark"] .site-header {
    border-bottom-color: rgba(74, 77, 86, 0.86);
    background: rgba(7, 8, 10, 0.94);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .site-header.is-scrolled {
    background: rgba(7, 8, 10, 0.88);
}

html[data-theme="dark"] .site-icon-button,
html[data-theme="dark"] .mobile-sidebar-button,
html[data-theme="dark"] .mobile-menu-head button,
html[data-theme="dark"] .mobile-menu-nav a svg,
html[data-theme="dark"] .post-stat .icon,
html[data-theme="dark"] .post-time .icon,
html[data-theme="dark"] .hot-stats svg,
html[data-theme="dark"] .hot-like svg,
html[data-theme="dark"] .guestbook-message-body footer svg,
html[data-theme="dark"] .guestbook-stats-toggle-meta svg,
html[data-theme="dark"] .guestbook-page-back svg {
    color: var(--heading);
}

html[data-theme="dark"] .mobile-menu-drawer,
html[data-theme="dark"] .page-hero,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .page-main-card,
html[data-theme="dark"] .side-panel,
html[data-theme="dark"] .notice-feature-card,
html[data-theme="dark"] .system-notice-panel,
html[data-theme="dark"] .ios-notice-card,
html[data-theme="dark"] .notice-timeline-card,
html[data-theme="dark"] .guestbook-board,
html[data-theme="dark"] .guestbook-summary-panel,
html[data-theme="dark"] .guestbook-board-section,
html[data-theme="dark"] .guestbook-message-card,
html[data-theme="dark"] .guestbook-stats-panel,
html[data-theme="dark"] .guestbook-stat-card,
html[data-theme="dark"] .guestbook-barrage-item,
html[data-theme="dark"] .guestbook-detail-page-card {
    border-color: var(--line);
    background: var(--surface);
}

/* 暗色模式视觉收敛：主体灰、顶栏黑、线条弱、图标清晰 */
html[data-theme="dark"] {
    --fullscreen-bg: #000000;
    --bg: #242528;
    --surface: #2b2c30;
    --surface-soft: #33343a;
    --line: rgba(255, 255, 255, 0.045);
    --line-strong: rgba(255, 255, 255, 0.085);
    --muted: #c7c9ce;
    --subtle: #9b9fa7;
    --primary-soft: rgba(255, 255, 255, 0.075);
    --accent-soft: rgba(255, 255, 255, 0.065);
    --shadow-card: 0 10px 24px rgba(0, 0, 0, 0.12);
    --shadow-card-hover: 0 14px 30px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] body {
    background: var(--bg);
}

html[data-theme="dark"] .site-header {
    border-bottom-color: rgba(255, 255, 255, 0.055);
    background: rgba(8, 9, 11, 0.94);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .site-header.is-scrolled {
    background: rgba(8, 9, 11, 0.9);
}

html[data-theme="dark"] .page-hero,
html[data-theme="dark"] .profile-card,
html[data-theme="dark"] .profile-cover,
html[data-theme="dark"] .post-card,
html[data-theme="dark"] .hero-card,
html[data-theme="dark"] .category-dropdown,
html[data-theme="dark"] .category-trigger,
html[data-theme="dark"] .category-menu,
html[data-theme="dark"] .category-menu a,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .page-main-card,
html[data-theme="dark"] .side-panel,
html[data-theme="dark"] .notice-feature-card,
html[data-theme="dark"] .system-notice-panel,
html[data-theme="dark"] .ios-notice-card,
html[data-theme="dark"] .notice-timeline-card,
html[data-theme="dark"] .guestbook-board,
html[data-theme="dark"] .guestbook-summary-panel,
html[data-theme="dark"] .guestbook-board-section,
html[data-theme="dark"] .guestbook-message-card,
html[data-theme="dark"] .guestbook-stats-panel,
html[data-theme="dark"] .guestbook-stat-card,
html[data-theme="dark"] .guestbook-barrage-stage,
html[data-theme="dark"] .guestbook-barrage-item,
html[data-theme="dark"] .guestbook-detail-page-card,
html[data-theme="dark"] .mobile-menu-drawer {
    border-color: var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

html[data-theme="dark"] .page-main-card.hot-main-card,
html[data-theme="dark"] .notice-feature-card,
html[data-theme="dark"] .ios-notice-item.is-latest .ios-notice-card,
html[data-theme="dark"] .notice-timeline-item.is-latest .notice-timeline-card,
html[data-theme="dark"] .guestbook-summary-panel,
html[data-theme="dark"] .guestbook-message-card.is-admin,
html[data-theme="dark"] .guestbook-reply.has-reply {
    border-color: var(--line);
    background: var(--surface-soft);
}

html[data-theme="dark"] hr,
html[data-theme="dark"] .guestbook-board-divider,
html[data-theme="dark"] .guestbook-stat-card-divider,
html[data-theme="dark"] .system-notice-rail::after,
html[data-theme="dark"] .notice-timeline-rail::after {
    background: rgba(255, 255, 255, 0.055);
}

html[data-theme="dark"] .mobile-menu-head,
html[data-theme="dark"] .post-card-footer,
html[data-theme="dark"] .guestbook-detail-content,
html[data-theme="dark"] .article-content blockquote,
html[data-theme="dark"] .notice-rich-content blockquote {
    border-color: rgba(255, 255, 255, 0.055);
}

html[data-theme="dark"] .site-nav a:hover,
html[data-theme="dark"] .site-nav a:active,
html[data-theme="dark"] .site-icon-button:hover,
html[data-theme="dark"] .site-icon-button:active,
html[data-theme="dark"] .mobile-sidebar-button:hover,
html[data-theme="dark"] .mobile-sidebar-button:active,
html[data-theme="dark"] .mobile-menu-nav a:hover,
html[data-theme="dark"] .mobile-menu-nav a:active,
html[data-theme="dark"] .category-dropdown.is-open .category-trigger,
html[data-theme="dark"] .category-menu a:hover,
html[data-theme="dark"] .category-menu a:active,
html[data-theme="dark"] .hot-card:hover,
html[data-theme="dark"] .mini-rank-item:hover,
html[data-theme="dark"] .guestbook-page-back:hover,
html[data-theme="dark"] .guestbook-page-back:focus-visible,
html[data-theme="dark"] .site-footer-brand a:hover {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.075);
    color: var(--heading);
    box-shadow: none;
}

html[data-theme="dark"] svg,
html[data-theme="dark"] svg path,
html[data-theme="dark"] svg circle,
html[data-theme="dark"] svg rect,
html[data-theme="dark"] svg line,
html[data-theme="dark"] svg polyline,
html[data-theme="dark"] svg polygon {
    color: currentColor;
}

html[data-theme="dark"] .site-icon-button,
html[data-theme="dark"] .theme-toggle-button,
html[data-theme="dark"] .mobile-sidebar-button,
html[data-theme="dark"] .mobile-menu-head button,
html[data-theme="dark"] .mobile-menu-nav a svg,
html[data-theme="dark"] .post-stat .icon,
html[data-theme="dark"] .post-time .icon,
html[data-theme="dark"] .hot-stats svg,
html[data-theme="dark"] .hot-like svg,
html[data-theme="dark"] .guestbook-message-body footer svg,
html[data-theme="dark"] .guestbook-stats-toggle-meta svg,
html[data-theme="dark"] .guestbook-page-back svg {
    color: rgba(255, 255, 255, 0.88);
}

html[data-theme="dark"] .post-stats,
html[data-theme="dark"] .post-like,
html[data-theme="dark"] .hot-stats,
html[data-theme="dark"] .hot-like,
html[data-theme="dark"] .mobile-menu-nav a svg {
    color: var(--muted);
}

html[data-theme="dark"] .post-like.is-liked,
html[data-theme="dark"] .hot-like.is-liked {
    color: var(--like);
}

html[data-theme="dark"] .post-like.is-liked .icon path,
html[data-theme="dark"] .hot-like.is-liked path,
html[data-theme="dark"] .post-like.is-liked .post-like-heart {
    fill: var(--like);
    color: var(--like);
}

html[data-theme="dark"] .mobile-sidebar-button svg path {
    fill: currentColor !important;
}

/* 细节修正：图标对比、在线状态、下拉悬停和主题切换动效 */
.profile-status {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.profile-socials .copy-button-github {
    color: #111827;
    background: rgba(17, 24, 39, 0.08);
}

.profile-socials .copy-button-github svg,
.profile-socials .copy-button-github svg path {
    color: currentColor;
    fill: currentColor !important;
}

::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

::view-transition-old(root) {
    z-index: 1;
}

::view-transition-new(root) {
    z-index: 2;
}

::view-transition-old(comment-gate),
::view-transition-new(comment-gate) {
    animation: none;
    mix-blend-mode: normal;
}

::view-transition-old(comment-gate) {
    z-index: 10000;
}

::view-transition-new(comment-gate) {
    z-index: 10001;
}

@media (hover: hover) and (pointer: fine) {
    .category-trigger:hover,
    .category-trigger:focus-visible {
        border-color: var(--line-strong);
        background: var(--surface-soft);
        color: var(--primary);
        box-shadow: none;
    }

    .category-trigger:hover svg,
    .category-trigger:focus-visible svg {
        transform: rotate(180deg);
    }

    .category-trigger:hover + .category-menu,
    .category-trigger:focus-visible + .category-menu,
    .category-menu:hover,
    .category-menu:focus-within {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .category-menu::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -10px;
        height: 10px;
    }
}

html[data-theme="dark"] {
    --fullscreen-bg: #000000;
    --bg: #2f3034;
    --surface: #35363b;
    --surface-soft: #3d3e44;
    --line: rgba(255, 255, 255, 0.05);
    --line-strong: rgba(255, 255, 255, 0.1);
    --primary-soft: rgba(255, 255, 255, 0.08);
    --accent-soft: rgba(255, 255, 255, 0.07);
}

/* ===== 留言板现代化精修：统一圆角、调柔阴影、去渐变色斑，保留信息层次 ===== */

/* 容器：去掉溢出隐藏，留白更舒展 */
.guestbook-board {
    max-width: 960px;
    padding: clamp(20px, 4vw, 32px);
    gap: clamp(18px, 2.6vw, 24px);
    overflow: visible;
}

/* 标题：略微收敛 */
.guestbook-board-head h1 {
    font-size: clamp(26px, 4.4vw, 40px);
    letter-spacing: -0.03em;
}
.guestbook-board-head p { font-size: 14px; line-height: 1.75; margin-top: 10px; }

/* 统计面板：去渐变改纯色，圆角统一 18px，阴影调柔 */
.guestbook-stats-panel {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);
}
.guestbook-stats-toggle {
    min-height: 56px;
    padding: 14px 20px;
}
.guestbook-stats-toggle-copy strong { font-size: 17px; }
.guestbook-stats-toggle-meta { font-size: 13px; }
.guestbook-stats-toggle-meta svg { width: 18px; height: 18px; }

/* 统计卡片：保留圆角卡片层次，去半透明背景 */
.guestbook-stat-card {
    padding: 16px;
    border-radius: 14px;
    background: var(--surface-soft);
    box-shadow: none;
}
html[data-theme="dark"] .guestbook-stat-card { background: rgba(255, 255, 255, 0.03); }
.guestbook-stat-card-head h3 { font-size: 13px; letter-spacing: -0.01em; }
.guestbook-stat-rows { gap: 12px; margin-top: 14px; }
.guestbook-stat-row { min-height: 44px; gap: 10px; }

/* 图标：圆角改 10px（squircle 感），阴影调柔 */
.guestbook-stat-row-icon {
    width: 34px; height: 34px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.guestbook-stat-row-icon svg { width: 18px; height: 18px; }
.guestbook-stat-row-value { font-size: clamp(18px, 2vw, 22px); }

/* 弹幕舞台：圆角统一 18px，去 inset 高光 */
.guestbook-barrage-stage {
    min-height: clamp(320px, 40vw, 460px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-soft);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

/* 弹幕条目：圆角 14px，阴影调柔 */
.guestbook-barrage-item {
    min-height: 52px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}
.guestbook-barrage-item:hover,
.guestbook-barrage-item:focus-visible {
    border-color: var(--line-strong);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}

/* 返回按钮：圆角统一 */
.guestbook-page-back {
    min-height: 42px;
    border-radius: 12px;
    background: var(--surface);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
.guestbook-page-back:hover,
.guestbook-page-back:focus-visible {
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

/* ===== 写留言页：去渐变色斑+毛玻璃，保留卡片感 ===== */
.guestbook-compose-page {
    max-width: 760px;
    padding: clamp(20px, 4vw, 32px);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.guestbook-compose-card {
    padding: clamp(24px, 4vw, 36px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.05);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
/* 去掉两个 radial-gradient 色斑装饰 */
.guestbook-compose-card::before,
.guestbook-compose-card::after { display: none; }
.guestbook-compose-card > .guestbook-page-back {
    background: var(--surface);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
.guestbook-compose-title .page-kicker {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-soft);
}
.guestbook-compose-page .guestbook-compose-head h1 {
    font-size: clamp(28px, 5vw, 40px);
    letter-spacing: -0.04em;
}

/* 表单输入：圆角统一 12px */
.guestbook-form input,
.guestbook-form textarea {
    border-radius: 12px;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.guestbook-form input:focus,
.guestbook-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}
.guestbook-form button {
    min-height: 44px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.guestbook-form button:hover { box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12); }

/* ===== 详情页：圆角统一 ===== */
.guestbook-detail-page-card {
    border-radius: 18px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.05);
}
/* 分隔线 */
.guestbook-board-divider { background: linear-gradient(90deg, transparent, var(--line), transparent); }

/* 暗色模式：统一背景，去掉杂色 */
html[data-theme="dark"] .guestbook-stats-panel,
html[data-theme="dark"] .guestbook-compose-card,
html[data-theme="dark"] .guestbook-detail-page-card {
    background: var(--surface);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
html[data-theme="dark"] .guestbook-barrage-stage { background: rgba(255,255,255,0.025); }
html[data-theme="dark"] .guestbook-compose-title .page-kicker { background: rgba(255,255,255,0.05); }

/* 移动端 */
@media (max-width: 640px) {
    .guestbook-board { padding: 16px; gap: 18px; }
    .guestbook-stats-grid { grid-template-columns: 1fr; gap: 12px; }
}

html[data-theme="dark"] .profile-status {
    border-color: var(--surface);
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
}

html[data-theme="dark"] .profile-socials .copy-button-github {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .profile-socials .copy-button-github:hover {
    background: rgba(255, 255, 255, 0.18);
}

html[data-theme="dark"] .notice-card,
html[data-theme="dark"] .notice-content {
    border-color: var(--line);
    background: var(--surface);
}

/* 公告状态点保留语义色：正常绿、重要橙、紧急红、维护/归档灰 */
.system-notice-item.is-normal {
    --notice-dot-color: #16a34a;
    --notice-level-bg: rgba(22, 163, 74, 0.12);
    --notice-level-text: #15803d;
}

.system-notice-item.is-important {
    --notice-dot-color: #f97316;
    --notice-level-bg: rgba(249, 115, 22, 0.14);
    --notice-level-text: #ea580c;
}

.system-notice-item.is-urgent {
    --notice-dot-color: #dc2626;
    --notice-level-bg: rgba(220, 38, 38, 0.12);
    --notice-level-text: #b91c1c;
}

.system-notice-item.is-archived {
    --notice-dot-color: #94a3b8;
    --notice-level-bg: rgba(148, 163, 184, 0.14);
    --notice-level-text: #64748b;
}

.system-notice-dot {
    background: var(--notice-dot-color);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--notice-dot-color) 18%, transparent);
}

.notice-timeline-item.is-normal .notice-timeline-dot {
    background: #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.16);
}

.notice-timeline-item.is-important .notice-timeline-dot {
    background: #f97316;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.18);
}

.notice-timeline-item.is-urgent .notice-timeline-dot {
    background: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.16);
}

.notice-timeline-item.is-archived .notice-timeline-dot {
    background: #94a3b8;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .system-notice-item.is-normal {
    --notice-dot-color: #22c55e;
    --notice-level-bg: rgba(34, 197, 94, 0.16);
    --notice-level-text: #86efac;
}

html[data-theme="dark"] .system-notice-item.is-important {
    --notice-dot-color: #fb923c;
    --notice-level-bg: rgba(251, 146, 60, 0.16);
    --notice-level-text: #fdba74;
}

html[data-theme="dark"] .system-notice-item.is-urgent {
    --notice-dot-color: #f87171;
    --notice-level-bg: rgba(248, 113, 113, 0.16);
    --notice-level-text: #fca5a5;
}

html[data-theme="dark"] .system-notice-item.is-archived {
    --notice-dot-color: #94a3b8;
    --notice-level-bg: rgba(148, 163, 184, 0.16);
    --notice-level-text: #cbd5e1;
}

/* 留言板统计卡片保留彩色图标，不跟随中性色覆盖 */
.guestbook-stat-row-blue .guestbook-stat-row-icon {
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12);
}

.guestbook-stat-row-blue .guestbook-stat-row-chart,
.guestbook-stat-card-blue .guestbook-stat-row:nth-child(1) {
    color: #2563eb;
}

.guestbook-stat-row-green .guestbook-stat-row-icon {
    background: rgba(22, 163, 74, 0.12);
    color: #16a34a;
    box-shadow: 0 8px 18px rgba(22, 163, 74, 0.12);
}

.guestbook-stat-row-green .guestbook-stat-row-chart,
.guestbook-stat-card-green .guestbook-stat-row:nth-child(1) {
    color: #16a34a;
}

.guestbook-stat-row-pink .guestbook-stat-row-icon {
    background: rgba(219, 39, 119, 0.12);
    color: #db2777;
    box-shadow: 0 8px 18px rgba(219, 39, 119, 0.12);
}

.guestbook-stat-row-pink .guestbook-stat-row-chart,
.guestbook-stat-card-pink .guestbook-stat-row:nth-child(2) {
    color: #db2777;
}

.guestbook-stat-row-amber .guestbook-stat-row-icon {
    background: rgba(249, 115, 22, 0.14);
    color: #f97316;
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.14);
}

.guestbook-stat-row-amber .guestbook-stat-row-chart,
.guestbook-stat-card-amber .guestbook-stat-row:nth-child(2) {
    color: #f97316;
}

html[data-theme="dark"] .guestbook-stat-row-blue .guestbook-stat-row-icon {
    background: rgba(147, 197, 253, 0.16);
    color: #93c5fd;
    box-shadow: 0 8px 18px rgba(147, 197, 253, 0.12);
}

html[data-theme="dark"] .guestbook-stat-row-blue .guestbook-stat-row-chart,
html[data-theme="dark"] .guestbook-stat-card-blue .guestbook-stat-row:nth-child(1) {
    color: #93c5fd;
}

html[data-theme="dark"] .guestbook-stat-row-green .guestbook-stat-row-icon {
    background: rgba(134, 239, 172, 0.16);
    color: #86efac;
    box-shadow: 0 8px 18px rgba(134, 239, 172, 0.12);
}

html[data-theme="dark"] .guestbook-stat-row-green .guestbook-stat-row-chart,
html[data-theme="dark"] .guestbook-stat-card-green .guestbook-stat-row:nth-child(1) {
    color: #86efac;
}

html[data-theme="dark"] .guestbook-stat-row-pink .guestbook-stat-row-icon {
    background: rgba(249, 168, 212, 0.16);
    color: #f9a8d4;
    box-shadow: 0 8px 18px rgba(249, 168, 212, 0.12);
}

html[data-theme="dark"] .guestbook-stat-row-pink .guestbook-stat-row-chart,
html[data-theme="dark"] .guestbook-stat-card-pink .guestbook-stat-row:nth-child(2) {
    color: #f9a8d4;
}

html[data-theme="dark"] .guestbook-stat-row-amber .guestbook-stat-row-icon {
    background: rgba(253, 230, 138, 0.16);
    color: #fde68a;
    box-shadow: 0 8px 18px rgba(253, 230, 138, 0.12);
}

html[data-theme="dark"] .guestbook-stat-row-amber .guestbook-stat-row-chart,
html[data-theme="dark"] .guestbook-stat-card-amber .guestbook-stat-row:nth-child(2) {
    color: #fde68a;
}

@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root),
    ::view-transition-new(root),
    ::view-transition-old(comment-gate),
    ::view-transition-new(comment-gate) {
        animation: none;
    }

    .pd-comment-gate-panel {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ============ 作者主页 /me ============ */
.me-page {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 0 48px;
}

.me-cover {
    position: relative;
    width: 100%;
    height: clamp(160px, 24vw, 220px);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
    background: var(--surface-soft);
}

.me-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--surface-soft);
    display: block;
}

.me-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 55%, var(--surface-soft) 100%);
    pointer-events: none;
}

.me-head {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    padding: 18px 4px;
    margin-top: -40px;
    position: relative;
    z-index: 1;
}

.me-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 4px solid var(--surface);
    object-fit: contain;
    flex-shrink: 0;
    background: var(--surface-soft);
}

.me-head-meta {
    flex: 1;
    min-width: 0;
}

.me-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--heading);
    line-height: 1.25;
    margin: 0;
}

.me-text {
    color: var(--muted);
    font-size: 14px;
    margin: 4px 0 0;
}

.me-about-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--heading);
    text-decoration: none;
    background: var(--surface);
    transition: background 0.18s ease, border-color 0.18s ease;
}

.me-about-btn:hover {
    background: var(--accent-soft);
    border-color: var(--primary);
}

.me-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 20px 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.me-stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.me-stat-value {
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 700;
    color: var(--heading);
    line-height: 1.2;
}

.me-stat-label {
    font-size: 12px;
    color: var(--subtle);
    margin-top: 4px;
}

.me-works-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px 0 14px;
}

.me-works-head h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--heading);
    margin: 0;
}

.me-works-more {
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
}

.me-works-more:hover {
    color: var(--primary);
}

.me-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.me-work-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-card);
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.me-work-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--primary);
}

.me-work-cover {
    width: 100%;
    height: clamp(110px, 15vw, 140px);
    border-radius: 10px;
    object-fit: cover;
    background: var(--surface-soft);
    display: block;
}

.me-work-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.me-work-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--heading);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.me-work-summary {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.me-work-meta {
    font-size: 12px;
    color: var(--subtle);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.me-works-empty {
    padding: 48px 16px;
    text-align: center;
    color: var(--subtle);
    border: 1px dashed var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-soft);
    font-size: 14px;
}

@media (max-width: 768px) {
    .me-works-grid {
        grid-template-columns: 1fr;
    }

    .me-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .me-head {
        flex-wrap: wrap;
        gap: 12px;
    }

    .me-about-btn {
        order: 3;
    }
}

/* Guestbook compose page: refined minimal override */
.guestbook-compose-page.guestbook-board,
.guestbook-compose-page.guestbook-page-panel {
    width: min(100%, 760px);
    max-width: 760px;
    margin-inline: auto;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    gap: 14px;
    background: transparent !important;
}

.guestbook-compose-page .guestbook-page-nav {
    margin-bottom: 14px;
}

.guestbook-compose-page .guestbook-page-back,
.guestbook-compose-page .section-chip {
    min-height: 40px;
    border-color: var(--line) !important;
    background: var(--surface) !important;
    color: var(--heading) !important;
}

.guestbook-compose-card {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: clamp(28px, 4vw, 40px);
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface) !important;
}

.guestbook-compose-card > .guestbook-page-nav {
    justify-content: flex-start;
    margin: 0;
}

.guestbook-compose-card::before,
.guestbook-compose-card::after {
    content: none !important;
    display: none !important;
}

.guestbook-compose-page .guestbook-compose-head {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
}

.guestbook-compose-title {
    display: grid;
    gap: 8px;
}

.guestbook-compose-page .guestbook-compose-head h1 {
    margin: 0;
    color: var(--heading);
    font-size: clamp(30px, 4vw, 40px);
    line-height: 1.12;
    letter-spacing: 0;
}

.guestbook-compose-page .guestbook-compose-head p {
    max-width: 58ch;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}

.guestbook-compose-page .comment-alert {
    margin: 0;
}

.guestbook-compose-page .guestbook-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 0;
}

.guestbook-compose-page .guestbook-field {
    display: grid;
    gap: 14px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
}

.guestbook-compose-page .guestbook-field-head {
    display: block;
}

.guestbook-compose-page .guestbook-field-head strong {
    color: var(--heading);
    font-size: 15px;
}

.guestbook-compose-page .guestbook-form textarea {
    min-height: 220px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-soft) !important;
    color: var(--text);
    box-shadow: none;
    resize: vertical;
}

.guestbook-compose-page .guestbook-form textarea:focus {
    border-color: var(--line-strong);
    background: var(--surface) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--heading) 10%, transparent) !important;
    outline: 0;
}

.guestbook-compose-page .guestbook-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
}

.guestbook-compose-page .guestbook-form-note {
    color: var(--muted);
}

.guestbook-compose-page .guestbook-form-note svg {
    fill: currentColor;
}

.guestbook-compose-page .guestbook-form button {
    min-width: 132px;
    min-height: 46px;
    padding: 0 24px;
    border: 1px solid #222222 !important;
    border-radius: 999px;
    background: #222222 !important;
    color: #ffffff !important;
    box-shadow: none !important;
    filter: none !important;
}

.guestbook-compose-page .guestbook-form button span,
.guestbook-compose-page .guestbook-form button svg {
    color: currentColor !important;
    fill: currentColor !important;
}

.guestbook-compose-page .guestbook-form button:hover,
.guestbook-compose-page .guestbook-form button:focus-visible {
    border-color: #111111 !important;
    background: #111111 !important;
    transform: translateY(-1px);
}

html[data-theme="dark"] .guestbook-compose-page .guestbook-page-back,
html[data-theme="dark"] .guestbook-compose-page .section-chip {
    border-color: rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: var(--heading) !important;
}

html[data-theme="dark"] .guestbook-compose-card {
    border-color: rgba(255, 255, 255, 0.10);
    background: var(--surface) !important;
}

html[data-theme="dark"] .guestbook-compose-page .guestbook-form textarea {
    background: rgba(255, 255, 255, 0.045) !important;
}

html[data-theme="dark"] .guestbook-compose-page .guestbook-form button {
    border-color: rgba(255, 255, 255, 0.18) !important;
    background: #3a3b40 !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .guestbook-compose-page .guestbook-form button:hover,
html[data-theme="dark"] .guestbook-compose-page .guestbook-form button:focus-visible {
    border-color: rgba(255, 255, 255, 0.26) !important;
    background: #46474d !important;
}

@media (max-width: 640px) {
    .guestbook-compose-page.guestbook-board,
    .guestbook-compose-page.guestbook-page-panel {
        padding: 0;
    }

    .guestbook-compose-card {
        border-radius: 18px;
        padding: 22px;
    }

    .guestbook-compose-page .guestbook-form textarea {
        min-height: 190px;
    }

    .guestbook-compose-page .guestbook-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .guestbook-compose-page .guestbook-form button {
        width: 100%;
    }
}

/* Final guestbook detail and cover-image overrides */
.profile-cover img,
.me-cover-img {
    object-fit: cover !important;
}

.guestbook-detail-page.guestbook-board,
.guestbook-detail-page.guestbook-page-panel {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.guestbook-detail-page .guestbook-page-nav {
    justify-content: flex-start !important;
    margin-bottom: 22px;
}

.guestbook-detail-page-card {
    width: min(100%, 760px) !important;
    margin: 0 auto !important;
    padding: clamp(24px, 4vw, 38px) !important;
    border: 1px solid var(--line) !important;
    border-radius: 18px !important;
    background: var(--surface) !important;
    box-shadow: var(--shadow-card) !important;
}

.guestbook-detail-head {
    display: block !important;
    margin-bottom: 22px !important;
    padding: 0 0 18px !important;
    border-bottom: 1px solid var(--line) !important;
}

.guestbook-detail-title-block {
    display: grid;
    gap: 8px;
}

.guestbook-detail-title-block h1 {
    margin: 0;
    color: var(--heading);
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.22;
    font-weight: 800;
    letter-spacing: 0;
}

.guestbook-detail-title-block time {
    color: var(--subtle);
    font-size: 13px;
    line-height: 1.4;
}

.guestbook-detail-content {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--text) !important;
    font-size: 16px;
    line-height: 1.9;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.guestbook-detail-page .guestbook-detail-reply {
    display: grid !important;
    gap: 14px !important;
    min-width: 0 !important;
    margin-top: 34px !important;
    padding: 26px 0 0 !important;
    border: 0 !important;
    border-top: 1px solid var(--line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.guestbook-detail-page .guestbook-detail-reply-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    margin: 0 !important;
}

.guestbook-detail-page .guestbook-detail-reply-head strong {
    color: var(--heading) !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    font-weight: 800 !important;
}

.guestbook-detail-page .guestbook-detail-reply-head time {
    color: var(--subtle) !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}

.guestbook-detail-page .guestbook-detail-reply p {
    margin: 0 !important;
    color: var(--text) !important;
    font-size: 15px !important;
    line-height: 1.9 !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.guestbook-detail-page .guestbook-detail-reply.no-reply p {
    color: var(--muted) !important;
}

@media (max-width: 640px) {
    .guestbook-detail-page-card {
        padding: 22px !important;
        border-radius: 16px !important;
    }
}
