@import url("../remixicon/remixicon.css");

:root {
    --jc-primary: var(--primary-color);
    --jc-primary-contrast: #fff;
    --jc-bg: #f0f0f0;
    --jc-bg-page: #f0f0f0;
    --jc-bg-card: #fff;
    --jc-bg-muted: #fafafa;
    --jc-bg-subtle: #f5f5f5;
    --jc-bg-dark: var(--jc-primary);
    --jc-bg-info: #eff6ff;
    --jc-bg-success: #d1fae5;
    --jc-bg-danger: #fff1f1;
    --jc-bg-warning: #fef3c7;
    --jc-text: #333333;
    --jc-text-hover: var(--jc-primary);
    --jc-text-secondary: #444444;
    --jc-text-muted: #666666;
    --jc-text-hint: #999999;
    --jc-text-disabled: #d1d5db;
    --jc-text-current: var(--jc-primary);
    --jc-border: #f0f0f0;
    --jc-border-subtle: #f0f0f0;
    --jc-border-strong: #cccccc;
    --jc-radius-xs: .125rem;
    --jc-radius-sm: .25rem;
    --jc-radius-md: .375rem;
    --jc-radius-lg: .5rem;
    --jc-radius-xl: .75rem;
    --jc-radius-2xl: 1rem;
    --jc-radius-3xl: 1.5rem;
    --jc-radius-4xl: 2rem;
    --jc-radius-full: 50%;
    --jc-danger: #dc2626;
    --jc-info: #3b82f6;
    --jc-success: #27ca40;
    --jc-warning: #ffbd2e;
    --jc-shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.04);
    --jc-shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06);
    --jc-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.15);
    --jc-shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.1);
    --jc-shadow-xl: 0 10px 30px rgba(0, 0, 0, 0.15);
    --jc-shadow-2xl: 0 20px 60px rgba(0, 0, 0, 0.08);
    --jc-shadow-card: 0 25px 80px rgba(0, 0, 0, 0.25);
    --jc-shadow-focus: 0 0 0 3px rgba(0, 0, 0, 0.08);
    --site-max: 1180px;
    --jc-transition-fast: 0.15s ease;
    --jc-transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --jc-transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --jc-ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
    --jc-primary: #e2e2e2;
    --jc-primary-contrast: #121212;
    --jc-bg: #0f1117;
    --jc-bg-card: #1a1d26;
    --jc-bg-muted: #161920;
    --jc-bg-subtle: #1e212b;
    --jc-bg-dark: #1a1d26;
    --jc-bg-info: #1a2e4a;
    --jc-bg-success: #1a3a2a;
    --jc-bg-error: #3a1a1a;
    --jc-bg-warning: #3a3010;
    --jc-text: #e2e2e2;
    --jc-text-hover: #f0f0f0;
    --jc-text-secondary: #b0b0b0;
    --jc-text-muted: #8a8f9a;
    --jc-text-hint: #5c6270;
    --jc-text-current: #121212;
    --jc-border: #2a2d36;
    --jc-border-subtle: #252830;
    --jc-border-strong: #3a3f4d;
    --jc-danger: #ef4444;
    --jc-info: #5b8dc9;
    --jc-success: #4ade80;
    --jc-warning: #fbbf24;
    --jc-error: #f87171;
    --jc-shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.25);
    --jc-shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.35);
    --jc-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.45);
    --jc-shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.4);
    --jc-shadow-xl: 0 10px 30px rgba(0, 0, 0, 0.5);
    --jc-shadow-2xl: 0 20px 60px rgba(0, 0, 0, 0.45);
    --jc-shadow-card: 0 25px 80px rgba(0, 0, 0, 0.55);
    --jc-shadow-focus: 0 0 0 3px rgba(184, 145, 85, 0.15);
}

[data-theme="dark"] .post-content img,
[data-theme="dark"] .jcw-cover img,
[data-theme="dark"] .thread-row .user-avatar img,
[data-theme="dark"] .bloginfo-avatar img {
    filter: brightness(0.88) contrast(1.05);
}

[data-theme="dark"] .post-content a {
    color: var(--jc-info);
    border-bottom-color: rgba(91, 141, 201, 0.34);
}

[data-theme="dark"] .post-content a:hover {
    border-bottom-color: var(--jc-info);
    color: var(--jc-info);
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--jc-border-strong);
    border-radius: 3px;
}

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

::selection {
    background: var(--jc-primary);
    color: var(--jc-primary-contrast);
}

/* ===== focus-visible 焦点环 ===== */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--jc-primary);
    outline-offset: 2px;
    border-radius: var(--jc-radius-sm);
}

body {
    background-color: var(--jc-bg);
    color: var(--jc-text);
    font: 14px / 1.72 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    margin: 0;
    transition: background-color var(--jc-transition-slow), color var(--jc-transition-slow);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

[data-theme="dark"] body {
    background-image: none !important;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--jc-transition-fast);
}

a:hover {
    color: var(--jc-text-hover)
}

img,
video {
    max-width: 100%;
    height: auto;
    transition: transform var(--jc-transition-base), box-shadow var(--jc-transition-base);
}

/* ===== 图片懒加载占位防抖动 ===== */
.post-content img,
.jcw-cover img,
.user-avatar img,
.bloginfo-avatar img {
    background: var(--jc-bg-muted);
}

img[loading="lazy"] {
    background: linear-gradient(110deg, var(--jc-bg-muted) 8%, var(--jc-bg-subtle) 18%, var(--jc-bg-muted) 33%);
    background-size: 200% 100%;
    animation: shimmer 1.5s linear infinite;
}

img[loading="lazy"].loaded,
img[loading="lazy"][src]:not([src=""]) {
    animation: none;
    background: transparent;
}

@keyframes shimmer {
    to {
        background-position-x: -200%;
    }
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 16px;
    z-index: 30;
    padding: 8px 12px;
    transform: translateY(-140%);
    border-radius: var(--jc-radius-md);
    background: var(--jc-primary);
    color: var(--jc-primary-contrast);
    transition: transform var(--jc-transition-base);
}

.skip-link:focus {
    transform: translateY(0);
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px
}

/* ===== 头部导航 ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 72px;
    display: grid;
    grid-template-columns: minmax(190px, auto) minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 12px max(24px, calc((100vw - var(--site-max)) / 2));
    background: var(--jc-bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--jc-shadow-sm);
    transition: box-shadow var(--jc-transition-base), background-color var(--jc-transition-slow);
}

.site-header.scrolled {
    box-shadow: var(--jc-shadow-md);
}

.jc-brand,
.header-actions,
.jc-nav,
.theme-switch,
.search {
    display: flex;
    align-items: center;
}

.jc-brand {
    min-width: 210px;
    gap: 12px;
    transition: transform var(--jc-transition-fast);
}

.jc-brand:hover {
    transform: scale(1.02);
}

.jc-brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 3px;
    background: linear-gradient(135deg, var(--jc-primary), var(--jc-primary) 55%, var(--jc-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--jc-primary-contrast);
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: var(--jc-shadow-md);
    transition: transform var(--jc-transition-base), box-shadow var(--jc-transition-base);
}

.jc-brand:hover .jc-brand-logo {
    transform: rotate(-5deg) scale(1.1);
    box-shadow: var(--jc-shadow-lg);
}

.jc-brand-name {
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -.035em
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: var(--jc-bg-muted);
    border: 1px solid var(--jc-border-subtle);
    border-radius: var(--jc-radius-md);
    color: var(--jc-text);
    cursor: pointer;
    font-size: 1.25rem;
    transition: all var(--jc-transition-fast);
    flex-shrink: 0;
}

.mobile-menu-btn:hover {
    background: var(--jc-bg-subtle);
    transform: scale(1.05);
}

.mobile-menu-btn.active {
    background: var(--jc-primary);
    color: var(--jc-primary-contrast);
}

/* 导航覆盖层 */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 72px 0 0 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    z-index: 19;
    opacity: 0;
    transition: opacity var(--jc-transition-base);
}

.mobile-nav-overlay.active {
    opacity: 1;
}

.jc-nav {
    justify-content: flex-start;
    gap: 4px;
    min-width: 0;
    scrollbar-width: none;
    transition: all var(--jc-transition-base);
}

.jc-nav a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: var(--jc-radius-md);
    padding: 0 15px;
    color: var(--jc-text-muted);
    font-size: 13px;
    font-weight: 800;
    transition: all var(--jc-transition-fast);
    position: relative;
    overflow: hidden;
}

.jc-nav a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--jc-primary);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--jc-transition-base), opacity var(--jc-transition-fast);
    z-index: -1;
    border-radius: var(--jc-radius-md);
}

.jc-nav a[aria-current="page"],
.jc-nav a:hover {
    background: var(--jc-bg-page);
    color: var(--jc-text-current)
}

.jc-nav a[aria-current="page"]::before,
.jc-nav a:hover::before {
    transform: scaleX(1);
    opacity: 0.06;
}

.jc-nav .menu {
    position: relative;
}

.dropdown-menus {
    background: var(--jc-bg-card);
    opacity: 0;
    z-index: 30;
    list-style: none;
    margin-left: -26px;
    position: absolute;
    padding-left: 0;
    border: 1px solid var(--jc-border);
    border-radius: var(--jc-radius-md);
    top: 100%;
    margin-bottom: 0;
    pointer-events: none;
    transform: translateY(6px) scale(0.96);
    box-shadow: var(--jc-shadow-md);
    transition: opacity 0.2s ease, transform 0.2s var(--jc-ease-out-back);
    min-width: 160px;
    padding: 6px;
}

.menu:hover .dropdown-menus,
.menu:focus-within .dropdown-menus {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.dropdown-menus a {
    display: block;
    padding: 8px 14px;
    border-radius: var(--jc-radius-md);
    margin: 2px 0;
}

.dropdown-menus a:hover {
    background: var(--jc-bg-muted);
}

.header-actions {
    justify-content: flex-end;
    gap: 10px;
}

.theme-switch {
    min-height: 36px;
    padding: 3px;
    background: var(--jc-bg-muted);
    border: 1px solid var(--jc-border-subtle);
    border-radius: var(--jc-radius-md);
    flex-shrink: 0;
}

.theme-switch a {
    min-width: 34px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: var(--jc-radius-md);
    color: var(--jc-text-muted);
    font-size: 12px;
    font-weight: 800;
    transition: all var(--jc-transition-fast);
}

.theme-switch a[aria-current="true"] {
    background: var(--jc-primary);
    color: var(--jc-primary-contrast);
    box-shadow: var(--jc-shadow-sm);
}

.mode-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--jc-border-subtle);
    background: rgba(255, 255, 255, .62);
    border-radius: 999px;
    color: var(--jc-text-muted);
    cursor: pointer;
    transition: all var(--jc-transition-fast);
}

.mode-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--jc-shadow-md);
}

.board-hero {
    margin-top: 20px;
    background: linear-gradient(135deg, #000000, #545454 58%, #4e4e4d);
    border-radius: var(--jc-radius-lg);
    padding: 24px 28px;
    color: #fff;
    box-shadow: var(--jc-shadow-xs);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    overflow: hidden;
    transition: transform var(--jc-transition-base), box-shadow var(--jc-transition-base);
}

.board-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.board-hero:hover {
    transform: translateY(-2px);
    box-shadow: var(--jc-shadow-md);
}

[data-theme="dark"] .board-hero {
    background: linear-gradient(135deg, #0a111f, #2a2b2d 58%, #3d3833);
}

.search {
    position: relative;
}

.search input {
    width: 320px;
    height: 42px;
    border: 1px solid var(--jc-border-subtle);
    background: var(--jc-bg-muted);
    color: var(--jc-text);
    border-radius: var(--jc-radius-lg);
    padding: 0 72px 0 40px;
    outline: none;
    transition: all var(--jc-transition-base);
    font-size: 14px;
}

.search input::placeholder {
    color: var(--jc-text-hint);
    transition: color var(--jc-transition-fast);
}

.search input:focus {
    width: 380px;
    border-color: var(--jc-border-strong);
    background: var(--jc-bg-card);
    box-shadow: var(--jc-shadow-sm);
}

.search input:focus::placeholder {
    color: var(--jc-text-muted);
}

.search-icon {
    position: absolute;
    left: 14px;
    color: var(--jc-text-hint);
    font-size: 16px;
    pointer-events: none;
    transition: color var(--jc-transition-fast);
}

.search input:focus+.search-icon {
    color: var(--jc-text);
}

.search-kbd {
    position: absolute;
    right: 8px;
    padding: 2px 8px;
    border: 1px solid var(--jc-border-subtle);
    border-radius: var(--jc-radius-md);
    background: var(--jc-bg-card);
    color: var(--jc-text-hint);
    font-size: 11px;
    font-family: inherit;
    pointer-events: none;
    transition: all var(--jc-transition-fast);
}

[data-theme="dark"] .search input {
    background: var(--jc-bg-subtle);
}

[data-theme="dark"] .search input:focus {
    background: var(--jc-bg-card);
}

[data-theme="dark"] .search-kbd {
    background: var(--jc-bg-subtle);
    border-color: var(--jc-border);
}

/* ===== 作品 ===== */
.jcw-section {
    margin-bottom: 20px;
    padding: 0;
}

.jcw-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.jcw-item {
    background: var(--jc-bg-card);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--jc-border-subtle);
    transition: all var(--jc-transition-base);
}

.jcw-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--jc-shadow-md);
}

.jcw-cover {
    width: 100%;
    height: 120px;
    background: var(--jc-bg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.jcw-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.03));
    pointer-events: none;
}

.jcw-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--jc-transition-slow);
}

.jcw-item:hover .jcw-cover img {
    transform: scale(1.08);
}

.jcw-cover .no-img {
    font-size: 1.6rem;
    opacity: .2;
}

.jcw-info {
    padding: 12px 14px 14px;
}

.jcw-meta {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.jcw-meta span {
    padding: 2px 7px;
    border-radius: 3px;
    font-size: .68rem;
    font-weight: 600;
    background: var(--jc-bg-subtle);
    color: var(--jc-text-muted);
    transition: all var(--jc-transition-fast);
}

.jcw-meta .t-theme {
    background: var(--jc-primary);
    color: var(--jc-primary-contrast);
}

.jcw-meta .t-plugin {
    background: var(--jc-text-hover);
    color: var(--jc-primary-contrast);
}

.jcw-meta .t-service {
    background: var(--jc-text-muted);
    color: var(--jc-primary-contrast);
}

.jcw-name {
    font-size: .92rem;
    font-weight: 700;
    color: var(--jc-text-hover);
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--jc-transition-fast);
}

.jcw-desc {
    font-size: .78rem;
    color: var(--jc-text-hint);
    line-height: 1.5;
    margin-bottom: 10px;
    min-height: 2.3em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jcw-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.jcw-price {
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
}

.jcw-original {
    font-size: .75rem;
    color: var(--jc-text-hint);
    text-decoration: line-through;
    margin-left: 6px;
}

.jcw-buy {
    padding: 6px 14px;
    background: var(--jc-primary);
    color: var(--jc-primary-contrast);
    border-radius: 4px;
    font-size: .78rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--jc-transition-fast);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
}

.jcw-buy::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.jcw-buy:hover {
    opacity: .9;
    color: var(--jc-primary-contrast);
    transform: translateY(-1px);
    box-shadow: var(--jc-shadow-md);
}

.jcw-buy:active::after {
    width: 200px;
    height: 200px;
}

.board-hero h1 {
    margin: 0 0 6px;
    font-size: 25px;
    letter-spacing: -.04em
}

.board-hero p {
    margin: 0;
    color: var(--jc-text-disabled)
}

/*
.jc-card {
    background: var(--jc-bg-card);
    border: 1px solid var(--jc-border);
    border-radius: var(--jc-radius-lg);
    box-shadow: var(--jc-shadow-xs);
    overflow: hidden;
    transition: box-shadow var(--jc-transition-base), border-color var(--jc-transition-base);
}*/

.jc-card {
    background: var(--jc-bg-card);
    border: 1px solid var(--jc-border);
    border-radius: var(--jc-radius-lg);
    box-shadow: var(--jc-shadow-xs);
    overflow: hidden;
}

.jc-card:hover {
    box-shadow: var(--jc-shadow-sm);
}

/* ===== 置顶标签 ===== */
.log-topflg,
.log-sortopflg {
    display: inline-flex;
    align-items: center;
    background: var(--jc-bg-danger);
    color: var(--jc-danger);
    padding: 1px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    vertical-align: middle;
    white-space: nowrap;
    letter-spacing: 0.02em;
    position: relative;
    top: -1px;
}

.main-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 316px;
    gap: 22px;
    padding-top: 22px;
    padding-bottom: 42px
}

.board-panel {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.board-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--jc-border);
    flex-wrap: wrap;
}

.board-tabs h3 {
    margin: 0;
    font-size: 16px;
    letter-spacing: -.02em
}

.tab-links {
    display: flex;
    gap: 2px;
    overflow: auto;
    scrollbar-width: none;
}

.tab-links::-webkit-scrollbar {
    display: none;
}

.tab-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 20px;
    border-radius: var(--jc-radius-md);
    color: var(--jc-text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--jc-transition-fast);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.tab-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--jc-primary);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--jc-transition-base), opacity var(--jc-transition-fast);
    z-index: -1;
    border-radius: var(--jc-radius-md);
}

.tab-links a:hover {
    background: var(--jc-bg-page);
    color: var(--jc-text-current)
}

.tab-links a:hover::before {
    transform: scaleX(1);
    opacity: 0.06;
}

.tab-links a.active {
    background: var(--jc-primary);
    color: var(--jc-primary-contrast);
    box-shadow: var(--jc-shadow-md)
}

.tab-links a.active::before {
    display: none;
}

.notice,
.ad-wide,
.list-ad,
.footer-ad {
    margin: 14px 18px;
    padding: 12px 14px;
    border: 1px dashed rgba(184, 145, 85, .45);
    border-radius: 14px;
    background: rgba(184, 145, 85, .06);
    color: var(--jc-text-muted);
    transition: all var(--jc-transition-fast);
}

.notice:hover,
.ad-wide:hover,
.list-ad:hover,
.footer-ad:hover {
    border-style: solid;
    box-shadow: var(--jc-shadow-sm);
}

.ns-list {
    display: block
}

.jc-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--jc-text-hint)
}

.jc-empty i {
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    font-size: 32px;
    color: var(--jc-text-muted)
}

.thread-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 92px;
    gap: 14px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--jc-border-subtle);
    align-items: center;
    transition: all var(--jc-transition-fast);
    min-height: 70px;
}

.thread-row:hover {
    background-color: color-mix(in oklab, var(--jc-primary) 1.2%, transparent);
    transform: translateX(4px);
}

.thread-row:last-child {
    border-bottom: none
}

.user-avatar {
    width: 46px;
    height: 46px;
    border-radius: var(--jc-radius-md);
    background: var(--jc-bg-subtle);
    color: var(--jc-info);
    border: 1px solid var(--jc-border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    overflow: hidden;
    transition: all var(--jc-transition-fast);
}

.thread-row:hover .user-avatar {
    border-color: var(--jc-border-strong);
    box-shadow: var(--jc-shadow-sm);
}

.user-avatar img {
    height: 100%;
    width: 100%;
    inset: 0px;
    color: transparent;
    object-fit: cover;
    transition: transform var(--jc-transition-base);
}

.user-avatar:hover img {
    transform: scale(1.1);
}

.thread-body {
    min-width: 0
}

.thread-body h2 {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 0 0 3px;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 500;
    letter-spacing: -.01em;
    transition: color var(--jc-transition-fast);
}

.thread-row:hover .thread-body h2 {
    color: var(--jc-text-hover);
}

.thread-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--jc-text-hint);
    font-size: 12px
}

.thread-meta span,
.thread-meta span a {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.meta-separator {
    font-size: 0.75rem;
    color: var(--jc-border-strong)
}

.thread-summary {
    margin: 6px 0 0;
    color: var(--jc-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.thread-stats {
    display: flex;
    gap: 8px;
    justify-content: flex-end
}

.thread-stats span {
    min-width: 38px;
    text-align: center;
    border-radius: var(--jc-radius-md);
    padding: 4px;
    color: var(--jc-text-hint);
    font-weight: 500;
    border: 1px dashed var(--jc-border-subtle);
    background: var(--jc-bg-subtle);
    transition: all var(--jc-transition-fast);
}

.thread-row:hover .thread-stats span {
    border-style: solid;
    background: var(--jc-bg-card);
    color: var(--jc-text-muted);
}

.thread-stats em {
    display: block;
    font-style: normal;
    font-size: 11px;
    color: var(--jc-text-muted);
    font-weight: 500;
    margin-top: -3px
}

.pagination {
    padding: 19px;
    text-align: center;
    border-top: 1px solid var(--jc-border-subtle)
}

.page-navigator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0
}

.page-navigator span,
.page-navigator a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid var(--jc-border-subtle);
    border-radius: var(--jc-radius-lg);
    background: var(--jc-bg-card);
    color: var(--jc-text);
    font-weight: 800;
    line-height: 1;
    transition: all var(--jc-transition-fast);
    cursor: pointer;
}

.page-navigator span:hover:not(.current),
.page-navigator a:hover {
    background: var(--jc-bg-muted);
    border-color: var(--jc-border-strong);
    transform: translateY(-2px);
    box-shadow: var(--jc-shadow-sm);
}

.page-navigator .current,
.page-navigator .current a {
    background: var(--jc-primary);
    color: var(--jc-primary-contrast);
    border-color: var(--jc-primary);
    box-shadow: var(--jc-shadow-md);
    transform: translateY(-1px);
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 90px;
    height: fit-content;
}

.side-card {
    padding: 17px;
    transition: transform 0.3s ease, box-shadow 0.3s ease
}

/*
.side-card {
    padding: 17px;
    transition: box-shadow var(--jc-transition-base), border-color var(--jc-transition-base);
}

.side-card:hover {
    box-shadow: var(--jc-shadow-sm);
    border-color: var(--jc-border-strong);
}*/

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

.side-card h3 {
    margin: 0 0 14px;
    font-size: 16px;
    letter-spacing: -.02em
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px
}

.stat-grid div {
    border: 1px solid var(--jc-border-subtle);
    border-radius: 14px;
    padding: 12px 6px;
    text-align: center;
    background: rgba(255, 255, 255, .48);
    transition: all var(--jc-transition-fast);
}

.stat-grid div:hover {
    transform: translateY(-2px);
    border-color: var(--jc-border-strong);
    box-shadow: var(--jc-shadow-sm);
}

.stat-grid strong {
    display: block;
    font-size: 18px;
    transition: transform var(--jc-transition-fast);
}

.stat-grid div:hover strong {
    transform: scale(1.1);
}

.stat-grid span {
    font-size: 12px;
    color: var(--jc-text-muted)
}

.bloggerinfo {
    display: flex;
    flex-direction: column;
    align-items: center
}

.bloginfo-avatar {
    width: 70px;
    height: 70px;
    border-radius: var(--jc-radius-md);
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid var(--jc-border-subtle);
    box-shadow: var(--jc-shadow-sm);
    transition: all var(--jc-transition-base);
}

.bloginfo-avatar:hover {
    transform: scale(1.05) rotate(3deg);
    box-shadow: var(--jc-shadow-md);
    border-color: var(--jc-border-strong);
}

.bloginfo-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--jc-transition-slow);
}

.bloginfo-avatar:hover img {
    transform: scale(1.1);
}

.bloginfo-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--jc-text);
    margin: 0 0 0.75rem 0
}

.bloginfo-bio {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.35em;
    max-width: 100%;
    text-align: left;
    font-size: 0.875rem;
    color: var(--jc-text-hint);
    line-height: 1.6;
    margin: 0 0 1rem 0
}

.bloginfo-social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap
}

/* 微信二维码弹出层 */
.wechat-wrapper {
    position: relative;
    display: inline-block
}

.wechat-qr-popup {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: var(--jc-bg-card);
    border-radius: var(--jc-radius-md);
    padding: 12px;
    box-shadow: var(--jc-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--jc-ease-out-back);
    z-index: 1000;
    min-width: 124px;
    text-align: center
}

.wechat-wrapper:hover .wechat-qr-popup {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 8px);
    transform: translateX(-50%) scale(1);
}

.wechat-qr-arrow {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--jc-bg-card)
}

.wechat-qr-popup img {
    width: 100px;
    height: 100px;
    border-radius: var(--jc-radius-md);
    display: block;
    margin: 0 auto
}

.wechat-qr-text {
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--jc-text-muted)
}

/* 抖音二维码弹出层 */
.douyin-wrapper {
    position: relative;
    display: inline-block
}

.douyin-qr-popup {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: var(--jc-bg-card);
    border-radius: var(--jc-radius-md);
    padding: 12px;
    box-shadow: var(--jc-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--jc-ease-out-back);
    z-index: 1000;
    min-width: 124px;
    text-align: center
}

.douyin-wrapper:hover .douyin-qr-popup {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 8px);
    transform: translateX(-50%) scale(1);
}

.douyin-qr-arrow {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--jc-bg-card)
}

.douyin-qr-popup img {
    width: 100px;
    height: 100px;
    border-radius: var(--jc-radius-md);
    display: block;
    margin: 0 auto
}

.douyin-qr-text {
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--jc-text-muted)
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--jc-bg-muted);
    border: 1px dashed var(--jc-border-strong);
    color: var(--jc-text-muted);
    border-radius: var(--jc-radius-md);
    transition: all var(--jc-transition-fast);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--jc-primary);
    opacity: 0;
    transform: scale(0);
    border-radius: var(--jc-radius-md);
    transition: all var(--jc-transition-base);
}

.social-link:hover {
    background: var(--jc-bg-subtle);
    border-style: solid;
    transform: translateY(-2px);
    box-shadow: var(--jc-shadow-sm);
}

.social-link:hover::before {
    opacity: 0.06;
    transform: scale(1);
}

.social-link i {
    font-size: 1.125rem;
    color: var(--jc-text-muted);
    transition: color var(--jc-transition-fast);
    position: relative;
    z-index: 1;
}

.social-link:hover i {
    color: var(--jc-text);
}

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

.side-list li {
    padding: 9px 0;
    border-bottom: 1px dashed var(--jc-border-subtle);
    transition: all var(--jc-transition-fast);
}

.side-list li:hover {
    padding-left: 6px;
    border-bottom-style: solid;
}

.side-list li:last-child {
    border-bottom: none
}

.side-list.cats li {
    display: flex;
    justify-content: space-between;
    gap: 12px
}

.side-list span {
    background: var(--jc-bg-muted);
    border: 1px solid var(--jc-border-subtle);
    color: var(--jc-text-muted);
    border-radius: var(--jc-radius-md);
    padding: 0 8px;
    font-size: 12px;
    font-weight: 500;
    transition: all var(--jc-transition-fast);
}

.side-list li:hover span {
    background: var(--jc-primary);
    color: var(--jc-primary-contrast);
    border-color: var(--jc-primary);
}

.latest a {
    display: block;
    line-height: 1.65;
    transition: all var(--jc-transition-fast);
    border-radius: var(--jc-radius-sm);
    padding: 2px 0;
}

.latest a:hover {
    color: var(--jc-text-hover);
    padding-left: 4px;
}

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

.tags a {
    background: var(--jc-bg-muted);
    border: 1px dashed var(--jc-border-strong);
    border-radius: var(--jc-radius-md);
    padding: 3px 9px;
    font-size: 13px;
    transition: all var(--jc-transition-fast);
    position: relative;
    overflow: hidden;
}

.tags a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--jc-primary);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: all var(--jc-transition-base);
    z-index: -1;
    border-radius: var(--jc-radius-md);
}

.tags a:hover {
    background: var(--jc-bg-subtle);
    border-style: solid;
    transform: translateY(-2px);
    box-shadow: var(--jc-shadow-sm);
}

.tags a:hover::before {
    opacity: 0.06;
    transform: scaleX(1);
}

.ad-box {
    border: 1px dashed rgba(184, 145, 85, .45);
    border-radius: 14px;
    padding: 14px;
    text-align: center;
    color: var(--jc-text-muted);
    background: rgba(184, 145, 85, .05);
    transition: all var(--jc-transition-fast);
}

.ad-box:hover {
    border-style: solid;
    box-shadow: var(--jc-shadow-sm);
}

.breadcrumb {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 13px 22px;
    border-bottom: 1px solid var(--jc-border-subtle);
    color: var(--jc-text-muted);
    font-size: 13px
}

.breadcrumb span {
    margin: 0
}

.post-head {
    padding: 24px 26px;
    border-bottom: 1px solid var(--jc-border-subtle)
}

.post-head h1 {
    font-size: 29px;
    line-height: 1.36;
    margin: 0 0 10px;
    letter-spacing: -.04em
}

.post-wrap {
    padding: 26px;
}

.post-content {
    font-size: 16px;
    color: var(--jc-text)
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    cursor: zoom-in;
    transition: all var(--jc-transition-base);
}

.post-content img:hover {
    box-shadow: var(--jc-shadow-lg);
    transform: scale(1.01);
}

.post-content p {
    margin: 0 0 1em
}

.post-content a {
    color: var(--jc-text);
    border-bottom: 1px dashed var(--jc-border-strong);
    transition: all var(--jc-transition-fast);
    position: relative;
}

.post-content a:hover {
    border-bottom-color: var(--jc-text-hover);
    color: var(--jc-text-hover);
}

/* ===== 文章内表格样式 ===== */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 14px;
    border: 1px solid var(--jc-border-subtle);
}

.post-content thead {
    background: var(--jc-bg-subtle);
}

.post-content th,
.post-content td {
    padding: 12px 16px;
    border: 1px solid var(--jc-border-subtle);
    text-align: center;
}

.post-content th {
    font-weight: 600;
    color: var(--jc-text-hover);
}

.post-content tbody tr:nth-child(even) {
    background: var(--jc-bg-muted);
}

.post-content tbody tr:hover {
    background: var(--jc-bg-subtle);
}

/* ===== 引用块 blockquote 美化 ===== */
.post-content blockquote {
    margin: 1.5em 0;
    padding: 16px 20px 16px 56px;
    background: var(--jc-bg-muted);
    border-left: 3px solid var(--jc-primary);
    border-radius: 0 var(--jc-radius-lg) var(--jc-radius-lg) 0;
    color: var(--jc-text-secondary);
    font-style: italic;
    position: relative;
}

.post-content blockquote::before {
    content: '\201C';
    position: absolute;
    top: 8px;
    left: 16px;
    font-size: 48px;
    line-height: 1;
    color: var(--jc-text-hint);
    font-family: Georgia, serif;
    opacity: 0.4;
}

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

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

.post-content blockquote cite {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-style: normal;
    color: var(--jc-text-muted);
}

/* ===== 文章内水平分割线 ===== */
.post-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--jc-border-strong) 20%,
        var(--jc-primary) 50%,
        var(--jc-border-strong) 80%,
        transparent 100%
    );
    margin: 2.5em auto;
    position: relative;
    max-width: 80%;
    opacity: 0.6;
    transition: opacity var(--jc-transition-fast), max-width var(--jc-transition-base);
}

.post-content hr::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--jc-bg-card);
    border: 2px solid var(--jc-border-strong);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--jc-bg-card);
    transition: all var(--jc-transition-base);
}

.post-content hr:hover {
    opacity: 1;
    max-width: 100%;
}

.post-content hr:hover::before {
    border-color: var(--jc-primary);
    background: var(--jc-primary);
    box-shadow: 0 0 0 4px var(--jc-bg-card), 0 0 12px var(--jc-primary);
}

/* ===== 代码块美化 ===== */
.post-content pre {
    position: relative;
    background: var(--jc-bg-muted);
    border: 1px solid var(--jc-border-subtle);
    border-radius: var(--jc-radius-lg);
    padding: 44px 20px 16px;
    margin: 1.5em 0;
    overflow-x: auto;
    font-family: "JetBrains Mono", "Fira Code", Consolas, Monaco, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.7;
    color: var(--jc-text);
}

.post-content pre code {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    font-size: inherit;
    color: inherit;
    font-family: inherit;
    line-height: inherit;
}

/* ===== macOS 风格代码块标题栏 ===== */
.post-content pre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: var(--jc-bg-subtle);
    border-bottom: 1px solid var(--jc-border-subtle);
    border-radius: var(--jc-radius-lg) var(--jc-radius-lg) 0 0;
    pointer-events: none;
    z-index: 1;
}

.post-content pre::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 14px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5f56;
    box-shadow: 16px 0 0 #ffbd2e, 32px 0 0 #27ca40;
    z-index: 2;
    pointer-events: none;
}

.post-content :not(pre)>code {
    background: var(--jc-bg-subtle);
    border: 1px solid var(--jc-border-subtle);
    border-radius: var(--jc-radius-md);
    padding: 2px 6px;
    font-size: 0.875em;
    color: var(--jc-danger);
    font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
}

.copy-code-btn {
    position: absolute;
    top: 40px;
    right: 8px;
    padding: 5px 12px;
    background: var(--jc-bg-card);
    border: 1px solid var(--jc-border-subtle);
    border-radius: var(--jc-radius-md);
    color: var(--jc-text-muted);
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--jc-transition-fast);
    z-index: 2;
    font-family: inherit;
}

.post-content pre:hover .copy-code-btn {
    opacity: 1;
    visibility: visible;
}

.copy-code-btn:hover {
    background: var(--jc-primary);
    color: var(--jc-primary-contrast);
    border-color: var(--jc-primary);
}

.copy-code-btn.copied {
    background: var(--jc-success);
    color: #fff;
    border-color: var(--jc-success);
}

.post-nav {
    border-top: 1px solid var(--jc-border-subtle);
    padding: 14px 24px;
    display: grid;
    gap: 8px;
    background: var(--jc-bg-muted)
}

/* ===== 文章页标签 ===== */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin-top: 20px;
}

.post-tags a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 14px;
    background: var(--jc-bg-muted);
    border: 1px solid var(--jc-border-subtle);
    border-radius: var(--jc-radius-md);
    font-size: 13px;
    color: var(--jc-text-secondary);
    transition: all var(--jc-transition-fast);
}

.post-tags a:hover {
    background: var(--jc-primary);
    color: var(--jc-primary-contrast);
    border-color: var(--jc-primary);
    transform: translateY(-2px);
    box-shadow: var(--jc-shadow-sm);
}

/* ===== 评论区美化（表单卡片风格） ===== */
.comments-wrap {
    border-top: 1px solid var(--jc-border-subtle);
    padding: 20px;
}

/* 评论标题 */
.comment-header {
    font-size: 17px;
    font-weight: 700;
    color: var(--jc-text);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--jc-border-subtle);
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-header b {
    font-weight: 700;
}

.comment-header::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--jc-primary);
    border-radius: 2px;
    margin-right: 4px;
}

.no-comment,
.comments-wrap>p {
    color: var(--jc-text-hint);
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
    padding: 40px 0;
}

/* 评论表单 */
#comments {
    background: var(--jc-bg-muted);
    border: 1px solid var(--jc-border);
    border-radius: var(--jc-radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--jc-shadow-xs);
}

.comment-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 1px solid var(--jc-border-strong);
    border-radius: var(--jc-radius-lg);
    background: var(--jc-bg-card);
    color: var(--jc-text);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.7;
    outline: none;
    resize: vertical;
    transition: all var(--jc-transition-fast);
    margin-bottom: 14px;
}

.comment-form textarea::placeholder {
    color: var(--jc-text-hint);
}

.comment-form textarea:focus {
    border-color: var(--jc-border-strong);
    background: var(--jc-bg-card);
    box-shadow: var(--jc-shadow-focus);
}

.comment-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.comment-info input,
.comment-info .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--jc-border-strong);
    border-radius: var(--jc-radius-lg);
    background: var(--jc-bg-card);
    color: var(--jc-text);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all var(--jc-transition-fast);
}

.comment-info input::placeholder,
.comment-info .form-control::placeholder {
    color: var(--jc-text-hint);
}

.comment-info input:focus,
.comment-info .form-control:focus {
    border-color: var(--jc-border-strong);
    background: var(--jc-bg-card);
    box-shadow: var(--jc-shadow-focus);
}

.comment-info .captcha-container {
    grid-column: 1 / -1;
    margin: 0;
}

.com_submit_p {
    display: flex;
    gap: 10px;
    align-items: center;
}

#comment_submit {
    padding: 10px 28px;
    border-radius: var(--jc-radius-lg);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--jc-transition-fast);
    border: none;
    background: var(--jc-primary);
    color: var(--jc-primary-contrast);
    letter-spacing: 0.02em;
}

#comment_submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: var(--jc-shadow-sm);
}

#comment_submit:active {
    transform: translateY(0);
}

.cancel-reply {
    padding: 10px 24px;
    border-radius: var(--jc-radius-lg);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--jc-transition-fast);
    background: var(--jc-bg-card);
    color: var(--jc-text-muted);
    border: 1px solid var(--jc-border-strong);
}

.cancel-reply:hover {
    background: var(--jc-bg-card);
    border-color: var(--jc-border-strong);
    color: var(--jc-text);
}

#comments form+p a,
#comments>p a {
    color: var(--jc-primary);
    font-weight: 600;
}

/* ===== 评论列表 ===== */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--jc-border-subtle);
    transition: background-color var(--jc-transition-fast);
    position: relative;
}

.comment:first-child {
    padding-top: 4px;
}

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

.comment::after {
    content: '';
    display: table;
    clear: both;
}

/* 评论头部：头像 + 用户信息 */
.comment>.avatar {
    float: left;
    width: 44px;
    height: 44px;
    border-radius: var(--jc-radius-md);
    overflow: hidden;
    background: var(--jc-bg-subtle);
    border: 1px solid var(--jc-border-subtle);
    margin-right: 14px;
    flex-shrink: 0;
}

.comment>.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.comment>.comment-infos {
    overflow: hidden;
}

.comment-infos .arrow {
    display: none;
}

/* 评论作者行 */
.comment-author-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.comment-infos>b,
.comment-infos .comment-author {
    font-size: 14px;
    font-weight: 700;
    color: var(--jc-text-hover);
}

.comment-time {
    font-size: 12px;
    color: var(--jc-text-hint);
    font-weight: 400;
}

/* 评论内容 - 已在 BFC 中，无需额外 margin-left */
.comment-content {
    margin: 10px 0 12px;
    font-size: 14px;
    line-height: 1.75;
    color: var(--jc-text);
    word-break: break-word;
}

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

.comment-content p:last-child {
    margin-bottom: 0;
}

.comment-content img {
    max-width: 120px;
    border-radius: var(--jc-radius-md);
    margin: 4px 0;
}

/* 回复按钮 */
.comment-reply {
    margin: 0;
}

.com-reply,
.comment-replay-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--jc-text-muted);
    background: var(--jc-bg-muted);
    border: 1px solid var(--jc-border-subtle);
    padding: 5px 12px;
    border-radius: var(--jc-radius-md);
    cursor: pointer;
    transition: all var(--jc-transition-fast);
    font-weight: 500;
    line-height: 1;
    position: relative;
    z-index: 2;
}

.com-reply::before,
.comment-replay-btn::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 17 4 12 9 7'%3E%3C/polyline%3E%3Cpath d='M20 18v-2a4 4 0 0 0-4-4H4'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
    transition: opacity var(--jc-transition-fast);
}

.com-reply:hover,
.comment-replay-btn:hover {
    color: var(--jc-primary);
    border-color: var(--jc-border-strong);
    background: var(--jc-bg-card);
}

.com-reply:hover::before,
.comment-replay-btn:hover::before {
    opacity: 1;
}

/* ===== 子评论（嵌套） ===== */
.comment.comment-children {
    margin-left: 58px;
    margin-top: 12px;
    padding: 14px 0 14px 16px;
    border-bottom: none;
    border-top: none;
    border-left: 2px solid var(--jc-border-subtle);
    background: linear-gradient(90deg, var(--jc-bg-muted) 0%, transparent 50%);
    border-radius: 0 var(--jc-radius-md) var(--jc-radius-md) 0;
    position: relative;
    z-index: 1;
}

.comment.comment-children>.avatar {
    width: 34px;
    height: 34px;
    margin-right: 10px;
}

.comment.comment-children .comment-content {
    margin-left: 0;
    font-size: 13px;
}

.comment.comment-children .comment-reply {
    margin-left: 0;
}

.comment.comment-children>.comment-infos b,
.comment.comment-children>.comment-infos .comment-author {
    font-size: 13px;
}

/* 三级嵌套评论 */
.comment.comment-children .comment.comment-children {
    margin-left: 44px;
    padding-left: 14px;
}

/* ===== 评论分页 ===== */
#pagenavi {
    padding: 20px 0 8px;
    text-align: center;
    border-top: 1px solid var(--jc-border-subtle);
    margin-top: 8px;
}

/* ===== 验证码美化 ===== */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.captcha-container img {
    height: 40px;
    border-radius: var(--jc-radius-md);
    cursor: pointer;
    border: 1px solid var(--jc-border-subtle);
    background: var(--jc-bg-card);
    transition: all var(--jc-transition-fast);
}

.captcha-container img:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.captcha-container input[type="text"] {
    flex: 1;
    min-width: 120px;
    padding: 10px 14px;
    border: 1px solid var(--jc-border-strong);
    border-radius: var(--jc-radius-lg);
    background: var(--jc-bg-card);
    color: var(--jc-text);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all var(--jc-transition-fast);
}

.captcha-container input[type="text"]:focus {
    border-color: var(--jc-border-strong);
    box-shadow: var(--jc-shadow-focus);
}

.muted {
    color: var(--jc-text-muted)
}

.footer-ad {
    margin-top: 0
}

.footer {
    background: var(--jc-bg-dark);
    color: var(--jc-text-disabled);
    padding: 26px 0;
    border-top: 1px solid var(--jc-border-subtle)
}

.footer a {
    color: var(--jc-text-disabled);
    transition: color var(--jc-transition-fast);
}

.footer a:hover {
    color: var(--jc-text-muted);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px
}

/* ===== 返回顶部按钮 ===== */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border-radius: var(--jc-radius-full);
    background: var(--jc-bg-card);
    border: 1px solid var(--jc-border-subtle);
    color: var(--jc-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--jc-transition-base);
    box-shadow: var(--jc-shadow-md);
    z-index: 100;
    font-size: 1.25rem;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--jc-primary);
    color: var(--jc-primary-contrast);
    border-color: var(--jc-primary);
    transform: translateY(-4px);
    box-shadow: var(--jc-shadow-lg);
}

.back-to-top:active {
    transform: translateY(-2px) scale(0.95);
}

/* ===== 灯箱样式 ===== */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--jc-transition-slow);
    cursor: zoom-out;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--jc-radius-lg);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform var(--jc-transition-slow) var(--jc-ease-out-back);
}

.lightbox-overlay.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: var(--jc-radius-full);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all var(--jc-transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* ===== 弹窗消息 ===== */
.coco-message {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 12px 24px;
    border-radius: var(--jc-radius-xl);
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--jc-transition-base);
    box-shadow: var(--jc-shadow-xl);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 200px;
    justify-content: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.coco-message.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.coco-message.success {
    background: var(--jc-bg-success);
    color: #166534;
    border: 1px solid rgba(39, 202, 64, 0.3);
}

[data-theme="dark"] .coco-message.success {
    color: var(--jc-success);
}

.coco-message.error {
    background: var(--jc-bg-danger);
    color: #991b1b;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

[data-theme="dark"] .coco-message.error {
    color: var(--jc-danger);
}

.coco-message.info {
    background: var(--jc-bg-info);
    color: #1e40af;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .coco-message.info {
    color: var(--jc-info);
}

.coco-message.warning {
    background: var(--jc-bg-warning);
    color: #92400e;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

[data-theme="dark"] .coco-message.warning {
    color: var(--jc-warning);
}

/* ===== Analytics Pro v9 ===== */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px
}

.analytics-grid div {
    border: 1px solid var(--jc-border-subtle);
    border-radius: var(--jc-radius-md);
    padding: 10px 8px;
    text-align: center;
    transition: .16s
}

.analytics-grid div:hover {
    transform: translateY(-1px);
    border-color: var(--jc-border-strong);
    box-shadow: var(--jc-shadow-sm)
}

.analytics-grid strong {
    display: block;
    font-size: 18px;
    line-height: 1.2;
    color: var(--jc-primary);
    font-weight: 500;
    letter-spacing: -.02em
}

.analytics-grid span {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: var(--jc-text-muted)
}

.analytics-note {
    margin: 10px 0 0;
    padding-top: 9px;
    border-top: 1px dashed var(--jc-border-subtle);
    font-size: 12px;
    color: var(--jc-text-muted);
    text-align: center
}

/* ===== 动画关键帧 ===== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* ===== 响应式优化 ===== */
@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }

    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
    }

    .search input {
        width: 260px;
    }

    .search input:focus {
        width: 300px;
    }

    .board-hero {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .board-hero h1 {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .site-header {
        grid-template-columns: auto 1fr;
        gap: 12px;
        padding: 10px 16px;
        min-height: 60px;
    }

    .jc-brand {
        min-width: auto;
        gap: 8px;
    }

    .jc-brand-logo {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .jc-brand-name {
        font-size: 18px;
    }

    .jc-nav {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--jc-bg-card);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        box-shadow: var(--jc-shadow-lg);
        border-top: 1px solid var(--jc-border-subtle);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        z-index: 20;
    }

    .jc-nav.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }

    .jc-nav a {
        width: 100%;
        padding: 10px 14px;
        justify-content: flex-start;
    }

    .jc-nav .menu {
        width: 100%;
    }

    .dropdown-menus {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        box-shadow: none;
        border: none;
        margin: 0;
        padding: 4px 0 4px 16px;
        display: none;
    }

    .menu.active .dropdown-menus {
        display: block;
        animation: slideDown 0.2s ease;
    }

    .mobile-menu-btn {
        display: flex;
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .mobile-nav-overlay.active {
        display: block;
    }

    .header-actions {
        gap: 6px;
    }

    .theme-switch {
        min-height: 32px;
        padding: 4px;
    }

    .theme-switch a {
        min-width: 28px;
        height: 26px;
        font-size: 11px;
    }

    .board-hero {
        padding: 18px 20px;
        margin: 12px 0;
    }

    .jcw-section {
        margin-bottom: 12px;
    }

    .board-tabs {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .tab-links {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .thread-row {
        grid-template-columns: 40px minmax(0, 1fr) auto;
        gap: 10px;
        padding: 12px 14px;
    }

    .user-avatar {
        width: 40px;
        height: 40px;
    }

    .thread-body h2 {
        font-size: 15px;
    }

    .thread-stats {
        display: none;
    }

    .thread-stats span {
        min-width: 50px;
        padding: 3px 6px;
    }

    .post-head h1 {
        font-size: 22px;
    }

    .post-wrap {
        padding: 18px;
        font-size: 15px;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 40px;
        height: 40px;
    }
}

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

    .jcw-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .jcw-cover {
        height: 100px;
    }

    .jcw-info {
        padding: 10px;
    }

    .jcw-name {
        font-size: .85rem;
    }

    .jcw-desc {
        font-size: .72rem;
        -webkit-line-clamp: 1;
        min-height: auto;
        margin-bottom: 8px;
    }

    .jcw-bottom {
        gap: 6px;
    }

    .jcw-price {
        font-size: .9rem;
    }

    .jcw-original {
        font-size: .7rem;
        margin-left: 4px;
    }

    .jcw-buy {
        padding: 5px 10px;
        font-size: .72rem;
    }

    .jcw-meta span {
        font-size: .6rem;
        padding: 1px 5px;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .page-navigator span,
    .page-navigator a {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 13px;
    }

    .comment-fields,
    .comment-info {
        grid-template-columns: 1fr;
    }

    .board-hero {
        padding: 16px;
    }

    .board-hero h1 {
        font-size: 20px;
    }

    .search {
        width: 100%;
    }

    .search input {
        width: 100%;
    }

    .search input:focus {
        width: 100%;
    }

    .post-head {
        padding: 20px;
    }

    .post-head h1 {
        font-size: 20px;
    }

    #comments {
        padding: 16px;
    }

    .post-actions {
        padding-top: 12px;
    }
}

/* ===== 阅读进度条 ===== */
.read-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--jc-primary), var(--jc-border-strong));
    z-index: 10001;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
}

/* ===== 文章目录 TOC（右侧边栏卡片） ===== */
.toc-wrap {
    padding: 17px;
}

.toc-wrap h3 {
    margin: 0 0 12px;
    font-size: 15px;
    letter-spacing: -.02em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.toc-wrap h3 i {
    font-size: 16px;
    color: var(--jc-text-muted);
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 420px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.toc-list::-webkit-scrollbar {
    width: 4px;
}

.toc-list::-webkit-scrollbar-thumb {
    background: var(--jc-border-subtle);
    border-radius: 2px;
}

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

.toc-list a {
    display: block;
    padding: 5px 0 5px 10px;
    border-radius: 0;
    color: var(--jc-text-muted);
    font-size: 12px;
    line-height: 1.5;
    transition: all var(--jc-transition-fast);
    border-left: 2px solid transparent;
    position: relative;
}

.toc-list a:hover {
    background: transparent;
    color: var(--jc-text-hover);
    border-left-color: var(--jc-border-strong);
}

.toc-list a.active {
    background: transparent;
    color: var(--jc-text-hover);
    border-left-color: var(--jc-primary);
    font-weight: 600;
}

.toc-list .toc-h2 {
    padding-left: 10px;
    font-size: 13px;
}

.toc-list .toc-h3 {
    padding-left: 22px;
    font-size: 12px;
}

/* 移动端：侧边栏变为单列时，TOC 回到文章顶部 */
@media (max-width: 992px) {
    .toc-wrap {
        grid-column: 1 / -1;
        margin-bottom: 16px;
    }
}

/* ===== 代码块语言标签 ===== */
.code-lang-label {
    position: absolute;
    top: 6px;
    right: 12px;
    padding: 2px 10px;
    background: var(--jc-bg-muted);
    border-radius: var(--jc-radius-md);
    font-size: 11px;
    font-weight: 600;
    color: var(--jc-text-hint);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 3;
    border: 1px solid var(--jc-border-subtle);
    line-height: 1.4;
}

/* ===== 文章底部操作栏 + 一键复制链接 ===== */
.post-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--jc-border-subtle);
    background: var(--jc-bg-card);
}

.copy-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--jc-bg-muted);
    border: 1px solid var(--jc-border-subtle);
    border-radius: var(--jc-radius-lg);
    color: var(--jc-text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--jc-transition-fast);
    font-family: inherit;
    line-height: 1;
}

.copy-link-btn:hover {
    background: var(--jc-bg-subtle);
    border-color: var(--jc-border-strong);
    color: var(--jc-text);
    transform: translateY(-1px);
    box-shadow: var(--jc-shadow-sm);
}

.copy-link-btn.copied {
    background: var(--jc-success);
    color: #fff;
    border-color: var(--jc-success);
}

/* ===== iPhone 底部安全区适配 ===== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .back-to-top {
        bottom: calc(24px + env(safe-area-inset-bottom));
        right: calc(24px + env(safe-area-inset-right, 0px));
    }

    .footer {
        padding-bottom: calc(26px + env(safe-area-inset-bottom));
    }

    .coco-message {
        top: calc(24px + env(safe-area-inset-top, 0px));
    }
}

/* ===== prefers-reduced-motion ===== */
/*
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .back-to-top,
    .lightbox-overlay,
    .coco-message,
    .read-progress-bar {
        transition: none !important;
    }
}
*/
/* ===== 归档页面 (page_archive.php) ===== */
.archive-wrap {
    padding: 24px 26px;
}

.archive-year {
    font-size: 24px;
    font-weight: 800;
    color: var(--jc-text-hover);
    margin: 32px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--jc-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.02em;
}

.archive-year:first-child {
    margin-top: 0;
}

.archive-year::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 24px;
    background: var(--jc-primary);
    border-radius: 3px;
}

.archive-year-count {
    font-size: 13px;
    font-weight: 500;
    color: var(--jc-text-hint);
    margin-left: auto;
    background: var(--jc-bg-muted);
    padding: 2px 10px;
    border-radius: var(--jc-radius-md);
    border: 1px solid var(--jc-border-subtle);
}

.archive-month {
    font-size: 16px;
    font-weight: 700;
    color: var(--jc-text);
    margin: 20px 0 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.archive-month::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--jc-border-strong);
    border-radius: 50%;
    border: 2px solid var(--jc-bg-card);
    box-shadow: 0 0 0 2px var(--jc-border-strong);
}

.archive-list {
    list-style: none;
    margin: 0 0 24px 16px;
    padding: 0;
    border-left: 1px solid var(--jc-border-subtle);
}

.archive-list li {
    padding: 8px 0 8px 20px;
    position: relative;
    transition: all var(--jc-transition-fast);
}

.archive-list li::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 7px;
    height: 7px;
    background: var(--jc-border-strong);
    border-radius: 50%;
    transition: all var(--jc-transition-fast);
}

.archive-list li:hover {
    padding-left: 24px;
}

.archive-list li:hover::before {
    background: var(--jc-primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.archive-list li a {
    display: flex;
    align-items: baseline;
    gap: 12px;
    color: var(--jc-text);
    font-size: 14px;
    transition: color var(--jc-transition-fast);
}

.archive-list li a:hover {
    color: var(--jc-text-hover);
}

.archive-date {
    font-size: 12px;
    color: var(--jc-text-hint);
    font-weight: 500;
    white-space: nowrap;
    min-width: 48px;
}

.archive-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== 友链页面 (page_links.php) ===== */
.links-wrap {
    padding: 24px 26px;
}

.links-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--jc-text-hover);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--jc-border-subtle);
    display: flex;
    align-items: center;
    gap: 8px;
}

.links-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--jc-primary);
    border-radius: 2px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.link-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: var(--jc-bg-muted);
    border: 1px solid var(--jc-border-subtle);
    border-radius: var(--jc-radius-lg);
    transition: all var(--jc-transition-base);
    text-decoration: none;
    color: inherit;
}

.link-card:hover {
    background: var(--jc-bg-card);
    border-color: var(--jc-border-strong);
    transform: translateY(-3px);
    box-shadow: var(--jc-shadow-md);
}

.link-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--jc-radius-md);
    background: var(--jc-bg-card);
    border: 1px solid var(--jc-border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    font-size: 20px;
    color: var(--jc-text-hint);
    transition: all var(--jc-transition-fast);
}

.link-card:hover .link-card-avatar {
    border-color: var(--jc-border-strong);
    transform: scale(1.05);
}

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

.link-card-body {
    min-width: 0;
    flex: 1;
}

.link-card-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--jc-text-hover);
    margin: 0 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color var(--jc-transition-fast);
}

.link-card:hover .link-card-name {
    color: var(--jc-primary);
}

.link-card-desc {
    font-size: 12px;
    color: var(--jc-text-hint);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.link-card-arrow {
    margin-left: auto;
    color: var(--jc-text-hint);
    font-size: 18px;
    transition: all var(--jc-transition-fast);
    flex-shrink: 0;
    align-self: center;
}

.link-card:hover .link-card-arrow {
    color: var(--jc-primary);
    transform: translateX(3px);
}

/* 友链页面暗色模式 */
[data-theme="dark"] .link-card {
    background: var(--jc-bg-subtle);
}

[data-theme="dark"] .link-card:hover {
    background: var(--jc-bg-card);
}

/* 归档页面暗色模式 */
[data-theme="dark"] .archive-list li::before {
    border-color: var(--jc-bg-card);
}

[data-theme="dark"] .archive-list li:hover::before {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

/* ===== 标签云页面 (page_tags.php) ===== */
.tags-wrap {
    padding: 24px 26px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
}

.tag-cloud-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    border-radius: var(--jc-radius-lg);
    font-weight: 500;
    text-decoration: none;
    transition: all var(--jc-transition-fast);
    border: 1px solid var(--jc-border-strong);
    background: var(--jc-bg-card);
    color: var(--jc-text);
    line-height: 1.5;
}

.tag-cloud-item:hover {
    background: var(--jc-primary);
    color: var(--jc-primary-contrast);
    border-color: var(--jc-primary);
    transform: translateY(-2px);
    box-shadow: var(--jc-shadow-sm);
}

.tag-cloud-item .tag-count {
    font-size: 0.75em;
    font-weight: 400;
    color: var(--jc-text-hint);
    margin-left: 2px;
    transition: color var(--jc-transition-fast);
}

.tag-cloud-item:hover .tag-count {
    color: var(--jc-primary-contrast);
    opacity: 0.8;
}

/* 标签大小分档 */
.tag-size-1 { font-size: 13px; padding: 4px 12px; }
.tag-size-2 { font-size: 14px; padding: 5px 14px; }
.tag-size-3 { font-size: 16px; padding: 6px 16px; }
.tag-size-4 { font-size: 20px; padding: 7px 18px; }
.tag-size-5 { font-size: 26px; padding: 8px 20px; font-weight: 700; }

/* 暗色模式标签云 */
[data-theme="dark"] .tag-cloud-item {
    background: var(--jc-bg-card);
    border-color: var(--jc-border);
}

[data-theme="dark"] .tag-cloud-item:hover {
    background: var(--jc-primary);
    border-color: var(--jc-primary);
}

/* ===== 关于页面 (page_about.php) ===== */
.about-wrap {
    padding: 24px 26px;
}

.about-profile {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 32px;
    background: var(--jc-bg-muted);
    border-radius: var(--jc-radius-lg);
    border: 1px solid var(--jc-border-subtle);
    margin-bottom: 28px;
    transition: all var(--jc-transition-base);
}

.about-profile:hover {
    box-shadow: var(--jc-shadow-sm);
    border-color: var(--jc-border-strong);
}

.about-avatar {
    width: 100px;
    height: 100px;
    border-radius: var(--jc-radius-lg);
    overflow: hidden;
    border: 2px solid var(--jc-border-subtle);
    box-shadow: var(--jc-shadow-sm);
    flex-shrink: 0;
    transition: all var(--jc-transition-base);
}

.about-profile:hover .about-avatar {
    transform: scale(1.05) rotate(2deg);
    box-shadow: var(--jc-shadow-md);
    border-color: var(--jc-border-strong);
}

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

.about-info {
    flex: 1;
    min-width: 0;
}

.about-name {
    font-size: 24px;
    font-weight: 800;
    color: var(--jc-text-hover);
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

.about-bio {
    font-size: 15px;
    color: var(--jc-text-muted);
    line-height: 1.7;
    margin: 0 0 16px;
}

.about-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.about-social .social-link {
    width: 38px;
    height: 38px;
}

/* 站点统计 */
.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.about-stat-item {
    text-align: center;
    padding: 18px 12px;
    background: var(--jc-bg-muted);
    border: 1px solid var(--jc-border-subtle);
    border-radius: var(--jc-radius-lg);
    transition: all var(--jc-transition-fast);
}

.about-stat-item:hover {
    transform: translateY(-3px);
    border-color: var(--jc-border-strong);
    box-shadow: var(--jc-shadow-sm);
    background: var(--jc-bg-card);
}

.about-stat-item strong {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--jc-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
    transition: transform var(--jc-transition-fast);
}

.about-stat-item:hover strong {
    transform: scale(1.1);
}

.about-stat-item span {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--jc-text-muted);
    font-weight: 500;
}

/* 关于页自定义内容 */
.about-content {
    margin-top: 20px;
}

/* 关于页暗色模式 */
[data-theme="dark"] .about-profile,
[data-theme="dark"] .about-stat-item {
    background: var(--jc-bg-subtle);
}

[data-theme="dark"] .about-stat-item:hover {
    background: var(--jc-bg-card);
}

/* 移动端关于页 */
@media (max-width: 576px) {
    .about-profile {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 24px;
    }

    .about-avatar {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }

    .about-social {
        justify-content: center;
    }

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

    .about-stat-item strong {
        font-size: 22px;
    }
}

/* ===== 打印样式 ===== */
@media print {

    .site-header,
    .sidebar,
    .back-to-top,
    .board-hero,
    .comments-wrap,
    .post-nav,
    .post-tags,
    .lightbox-overlay,
    .mobile-menu-btn,
    .theme-switch,
    .search,
    .footer-ad,
    .ad-wide,
    .ad-box,
    .list-ad,
    .notice,
    .read-progress-bar,
    .toc-wrap,
    .copy-link-btn,
    .coco-message,
    .mobile-nav-overlay {
        display: none !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 12pt;
        line-height: 1.6;
    }

    .post-content a {
        color: #000 !important;
        border-bottom: 1px solid #999 !important;
        text-decoration: none !important;
    }

    .post-content a[href]::after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
        word-break: break-all;
    }

    .main-layout {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        padding-top: 10px !important;
    }

    .jc-card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        break-inside: avoid;
    }

    .post-head {
        padding: 16px 0 !important;
        border-bottom: 2px solid #000 !important;
    }

    .post-head h1 {
        font-size: 22pt !important;
    }

    .post-content {
        padding: 16px 0 !important;
    }

    .post-content pre {
        background: #f5f5f5 !important;
        border: 1px solid #ddd !important;
        white-space: pre-wrap !important;
        word-break: break-all !important;
    }

    .post-content blockquote {
        border-left: 3px solid #000 !important;
        background: #f9f9f9 !important;
    }

    .footer {
        background: #fff !important;
        color: #000 !important;
        border-top: 1px solid #000 !important;
        margin-top: 20px;
    }

    .thread-row {
        border-bottom: 1px solid #ddd !important;
    }

    .thread-row:hover {
        transform: none !important;
        background: transparent !important;
    }

    img {
        max-width: 100% !important;
        filter: none !important;
    }
}