/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 医学小常识小工具样式 */
.zhiji-medical-tips-widget {
    margin: 0;
    padding: var(--spacing-md);
    text-indent: 2em;
    color: var(--text-primary);
    font-family: "KaiTi", "STKaiti", "楷体", 'SimSun', 'STSong', 'Noto Serif SC', serif;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.zhiji-medical-tip-content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-family: "KaiTi", "STKaiti", "楷体", 'SimSun', 'STSong', 'Noto Serif SC', serif;
    letter-spacing: 0.3px;
}

.zhiji-medical-tip-date {
    font-size: 12px;
    color: var(--text-tertiary);
    text-align: right;
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-xs);
    border-top: 1px solid var(--border-primary);
}

/* 文章内容栏样式 */
.zhiji-content-sidebar {
    margin: 0;
    padding: 0;
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    align-items: stretch;
}

.zhiji-content-sidebar .widget {
    margin-bottom: 10px;
    flex: 1;
    min-width: 250px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-primary);
    box-shadow: none;
}

.zhiji-content-sidebar .widget-header {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    box-shadow: none;
}

.zhiji-content-sidebar .widget-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 16px;
}

.zhiji-content-sidebar .widget-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
    flex: 1;
}

.zhiji-content-sidebar .widget-content {
    padding: 10px;
}

/* CSS变量系统 */
:root {
    /* 主色调 */
    --primary-color: #4a6cf7;
    --primary-hover: #3a5bf2;
    
    /* 文本颜色 */
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-tertiary: #86868b;
    
    /* 背景颜色 */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-hover: #f0f0f2;
    
    /* 边框颜色 */
    --border-primary: #e5e5ea;
    --border-hover: #d1d1d6;
    
    /* 阴影 */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.2);
    
    /* 间距 */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    
    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    /* 过渡动画 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* 容器宽度 */
    --container-width: 1200px;
    
    /* 头部高度 */
    --header-height: 60px;
}

/* 公共样式复用类 */

/* 颜色相关 */

/* 文本颜色 */
.text-primary {
    color: var(--text-primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-tertiary {
    color: var(--text-tertiary);
}

.text-primary-hover {
    color: var(--primary-color);
}

.text-primary-hover:hover {
    color: var(--primary-hover);
}

/* 背景颜色 */
.bg-primary {
    background-color: var(--bg-primary);
}

.bg-secondary {
    background-color: var(--bg-secondary);
}

.bg-hover {
    background-color: var(--bg-hover);
}

.bg-primary-color {
    background-color: var(--primary-color);
}

/* 作者信息小工具样式 */
.zhiji-widget-form {
    padding: var(--spacing-sm);
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.zhiji-widget-form-section {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-primary);
}

.zhiji-widget-form-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.zhiji-widget-form-section h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
}

.zhiji-author-info-card {
    padding: var(--spacing-lg);
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.zhiji-author-info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.zhiji-author-header {
    margin-bottom: var(--spacing-md);
}

.zhiji-author-avatar {
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
}

.zhiji-author-avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-secondary);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.zhiji-author-info-card:hover .zhiji-author-avatar-img {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.zhiji-author-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-sm) 0;
}

.zhiji-author-bio {
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    text-align: left;
}

.zhiji-author-bio p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-secondary);
    font-size: 14px;
}

.zhiji-author-website {
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm);
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.zhiji-author-website a {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-size: 14px;
}

.zhiji-author-website a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.zhiji-author-website a i {
    margin-right: var(--spacing-xs);
}

.zhiji-author-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.zhiji-author-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
}

.zhiji-author-stat-item:hover {
    background-color: var(--bg-hover);
}

.zhiji-author-stat-item i {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.zhiji-author-stat-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.zhiji-author-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.zhiji-author-contact {
    padding: var(--spacing-md);
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    text-align: left;
}

.zhiji-contact-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
}

.zhiji-contact-title i {
    margin-right: var(--spacing-xs);
    color: var(--primary-color);
}

.zhiji-contact-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.zhiji-contact-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
}

.zhiji-contact-item:hover {
    background-color: var(--bg-hover);
}

.zhiji-contact-label {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    margin-right: var(--spacing-sm);
    width: 60px;
    flex-shrink: 0;
    font-size: 13px;
}

.zhiji-contact-label i {
    margin-right: var(--spacing-xs);
    font-size: 12px;
}

.zhiji-contact-value {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 400;
    flex: 1;
}

.zhiji-author-info-error {
    padding: var(--spacing-lg);
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .zhiji-author-stats {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .zhiji-author-stat-item {
        flex-direction: row;
        justify-content: center;
        gap: var(--spacing-sm);
    }
    
    .zhiji-author-stat-item i {
        margin-bottom: 0;
    }
    
    .zhiji-author-stat-value {
        margin-bottom: 0;
    }
    
    .zhiji-contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }
    
    .zhiji-contact-label {
        width: 100%;
        margin-right: 0;
    }
}

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

/* 边框颜色 */
.border {
    border: 1px solid var(--border-primary);
}

.border-primary {
    border-color: var(--border-primary);
}

.border-hover {
    border-color: var(--border-hover);
}

.border-primary-color {
    border-color: var(--primary-color);
}

.border-primary-color:hover {
    border-color: var(--primary-hover);
}

/* Flex 布局相关 */
.flex {
    display: flex;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.flex-row-reverse {
    display: flex;
    flex-direction: row-reverse;
}

.flex-col-reverse {
    display: flex;
    flex-direction: column-reverse;
}

.items-center {
    align-items: center;
}

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

.items-end {
    align-items: flex-end;
}

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

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

.justify-start {
    justify-content: flex-start;
}

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

.flex-wrap {
    flex-wrap: wrap;
}

.flex-nowrap {
    flex-wrap: nowrap;
}

.flex-1 {
    flex: 1;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.gap-xs {
    gap: var(--spacing-xs);
}

.gap-sm {
    gap: var(--spacing-sm);
}

.gap-md {
    gap: var(--spacing-md);
}

.gap-lg {
    gap: var(--spacing-lg);
}

.gap-xl {
    gap: var(--spacing-xl);
}

/* 文本溢出相关 */
.text-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.text-ellipsis-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 居中对齐相关 */
.center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 边框和背景相关 */
.border-radius-sm {
    border-radius: var(--radius-sm);
}

.border-radius-md {
    border-radius: var(--radius-md);
}

.border-radius-lg {
    border-radius: var(--radius-lg);
}

.border-radius-full {
    border-radius: var(--radius-full);
}

/* 过渡动画相关 */
.transition {
    transition: all var(--transition-normal);
}

.transition-fast {
    transition: all var(--transition-fast);
}

.transition-slow {
    transition: all var(--transition-slow);
}

/* 响应式布局相关 */
@media (max-width: 1024px) {
    .hidden-md {
        display: none;
    }
}

@media (max-width: 768px) {
    .hidden-sm {
        display: none;
    }
}

@media (max-width: 480px) {
    .hidden-xs {
        display: none;
    }
}

/* ==================== 暗黑模式 ==================== */

/* 深色模式CSS变量 */
body.dark-mode {
    --primary-color: #6384f7;
    --primary-hover: #4a6cf7;
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    
    --bg-primary: #18181b;
    --bg-secondary: #27272a;
    --bg-hover: #3f3f46;
    
    --border-primary: #3f3f46;
    --border-hover: #52525b;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.6);
}

/* 头部导航 */
body.dark-mode .zhiji-header {
    background-color: rgba(24, 24, 27, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #3f3f46;
}

body.dark-mode .zhiji-blog-name a {
    color: #ffffff;
}

body.dark-mode .zhiji-blog-name a:hover {
    color: #64b5f6;
}

body.dark-mode .zhiji-blog-description {
    color: #a1a1aa;
}

body.dark-mode .zhiji-header-btn {
    color: #a1a1aa;
}

body.dark-mode .zhiji-header-btn:hover {
    color: #ffffff;
    background-color: #3f3f46;
}

body.dark-mode .zhiji-header-menu-list li a {
    color: #a1a1aa;
}

body.dark-mode .zhiji-header-menu-list li a:hover {
    color: #ffffff;
}

body.dark-mode .zhiji-header-menu-list li a::before {
    background-color: #64b5f6;
}

body.dark-mode .zhiji-header-menu-list li.current-menu-item > a,
body.dark-mode .zhiji-header-menu-list li.current_page_item > a {
    color: #ffffff;
}

body.dark-mode .zhiji-header-menu-list li.zhiji-mac-dropdown > a::after {
    border-top-color: #a1a1aa;
}

body.dark-mode .zhiji-header-menu-list li.zhiji-mac-dropdown:hover > a::after {
    border-top-color: #ffffff;
}

body.dark-mode .zhiji-header-menu-list li .zhiji-mac-dropdown-menu {
    background-color: #27272a;
    border: 1px solid #3f3f46;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

body.dark-mode .zhiji-header-menu-list li .zhiji-mac-dropdown-menu li a {
    color: #a1a1aa;
}

body.dark-mode .zhiji-header-menu-list li .zhiji-mac-dropdown-menu li a:hover {
    color: #ffffff;
    background-color: #3f3f46;
}

body.dark-mode .zhiji-header-menu-list li .zhiji-mac-dropdown-menu li a::before {
    background-color: #64b5f6;
}

/* 移动端菜单 */
body.dark-mode .zhiji-mobile-menu {
    background-color: #1e1e1e;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .zhiji-mobile-menu-list li {
    border-bottom-color: #333;
}

body.dark-mode .zhiji-mobile-menu-list li a {
    color: #e0e0e0;
}

body.dark-mode .zhiji-mobile-menu-list li a:hover {
    color: #64b5f6;
}

body.dark-mode .zhiji-mobile-menu-list li .zhiji-mac-dropdown-menu {
    background-color: #27272a;
    border: 1px solid #3f3f46;
}

body.dark-mode .zhiji-mobile-menu-list li .zhiji-mac-dropdown-menu li a {
    color: #a1a1aa;
}

body.dark-mode .zhiji-mobile-menu-list li .zhiji-mac-dropdown-menu li a:hover {
    color: #ffffff;
    background-color: #3f3f46;
}

body.dark-mode .zhiji-mobile-menu-btn {
    color: #a1a1aa;
}

body.dark-mode .zhiji-mobile-menu-btn:hover {
    color: #ffffff;
}

/* 主题切换按钮 */
body.dark-mode .zhiji-theme-toggle-label {
    background-color: #27272a;
    border: 1px solid #3f3f46;
}

body.dark-mode .zhiji-theme-toggle-day,
body.dark-mode .zhiji-theme-toggle-night {
    color: #a1a1aa;
}

body.dark-mode .zhiji-theme-toggle input:checked+.zhiji-theme-toggle-label {
    background-color: #64b5f6;
    border-color: #64b5f6;
}

body.dark-mode .zhiji-theme-toggle input:checked+.zhiji-theme-toggle-label .zhiji-theme-toggle-night {
    color: #ffffff;
}

/* 面包屑导航 */
body.dark-mode .zhiji-breadcrumb {
    background-color: #27272a;
    border: 1px solid #3f3f46;
}

body.dark-mode .zhiji-breadcrumb:hover {
    background-color: #3f3f46;
}

body.dark-mode .zhiji-breadcrumb-container {
    color: #a1a1aa;
}

body.dark-mode .zhiji-breadcrumb a {
    color: #64b5f6;
}

body.dark-mode .zhiji-breadcrumb a:hover {
    color: #42a5f5;
}

body.dark-mode .zhiji-breadcrumb span {
    color: #a1a1aa;
}

body.dark-mode .zhiji-breadcrumb-toggle {
    color: #a1a1aa;
}

/* 小工具 */
body.dark-mode .widget {
    background-color: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 8px;
}

body.dark-mode .widget-header {
    background-color: #3f3f46;
    border-bottom: 1px solid #52525b;
}

body.dark-mode .widget-icon {
    color: #64b5f6;
}

body.dark-mode .widget-title {
    color: #ffffff;
}

body.dark-mode .widget-content {
    color: #a1a1aa;
}

body.dark-mode .zhiji-theme-info {
    background-color: #27272a;
    border: 1px solid #3f3f46;
}

body.dark-mode .zhiji-theme-info li {
    border-bottom: 1px solid #3f3f46;
}

body.dark-mode .zhiji-tang-poem-widget {
    background-color: #27272a;
    border: 1px solid #3f3f46;
}

body.dark-mode .zhiji-tang-poem-widget::before {
    background-color: #3f3f46;
}

body.dark-mode .zhiji-tang-poem-widget .zhiji-tang-poem-title {
    color: #ffffff;
}

body.dark-mode .zhiji-tang-poem-widget .zhiji-tang-poem-author {
    color: #a1a1aa;
}

body.dark-mode .zhiji-tang-poem-widget .zhiji-tang-poem-content {
    color: #ffffff;
}

/* 文章目录树 */
body.dark-mode .zhiji-post-tree-container {
    background-color: #27272a;
    border: 1px solid #3f3f46;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

body.dark-mode .zhiji-post-tree-header {
    background-color: #3f3f46;
    border-bottom: 1px solid #52525b;
    color: #ffffff;
}

body.dark-mode .zhiji-post-tree-header i {
    color: #64b5f6;
}

body.dark-mode .zhiji-post-tree-list a {
    color: #a1a1aa;
}

body.dark-mode .zhiji-post-tree-list a:hover {
    background-color: #3f3f46;
    color: #ffffff;
}

body.dark-mode .zhiji-post-tree-list a.active {
    background-color: #64b5f6;
    color: #ffffff;
}

/* 作者信息小工具 */
body.dark-mode .zhiji-author-info {
    background-color: #27272a;
    border: 1px solid #3f3f46;
}

body.dark-mode .zhiji-author-info .zhiji-author-avatar img {
    border: 3px solid #3f3f46;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

body.dark-mode .zhiji-author-info .zhiji-author-name {
    color: #ffffff;
}

body.dark-mode .zhiji-author-info .zhiji-author-info-list {
    border-top: 1px solid #3f3f46;
}

body.dark-mode .zhiji-author-info .zhiji-author-info-item {
    background-color: #3f3f46;
    border: 1px solid #52525b;
    color: #a1a1aa;
}

body.dark-mode .zhiji-author-info .zhiji-author-info-item:hover {
    background-color: #52525b;
    color: #ffffff;
}

body.dark-mode .zhiji-author-info .zhiji-author-info-item i {
    color: #64b5f6;
}

body.dark-mode .zhiji-author-info .zhiji-author-website {
    color: #64b5f6;
}

body.dark-mode .zhiji-author-info .zhiji-author-website:hover {
    color: #42a5f5;
}

body.dark-mode .zhiji-author-info .zhiji-author-description {
    color: #a1a1aa;
}

body.dark-mode .zhiji-author-info .zhiji-author-stat-label {
    color: #a1a1aa;
}

body.dark-mode .zhiji-author-info .zhiji-author-stat-value {
    color: #64b5f6;
}

/* 用户菜单 */
body.dark-mode .zhiji-user-menu-divider {
    border-color: #3f3f46;
}

body.dark-mode .zhiji-user-btn {
    color: #a1a1aa;
}

body.dark-mode .zhiji-user-btn:hover {
    color: #ffffff;
    background-color: #3f3f46;
}

body.dark-mode .zhiji-user-dropdown {
    background-color: #27272a;
    border: 1px solid #3f3f46;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

body.dark-mode .zhiji-user-info {
    border-bottom: 1px solid #3f3f46;
}

body.dark-mode .zhiji-user-name {
    color: #ffffff;
}

body.dark-mode .zhiji-user-role {
    color: #a1a1aa;
}

body.dark-mode .zhiji-user-menu-item {
    color: #a1a1aa;
}

body.dark-mode .zhiji-user-menu-item:hover {
    color: #ffffff;
    background-color: #3f3f46;
}

/* 登录弹窗 */
body.dark-mode .zhiji-login-popup {
    background-color: rgba(0, 0, 0, 0.8);
}

body.dark-mode .zhiji-login-popup-content {
    background-color: #27272a;
    border: 1px solid #3f3f46;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6);
}

body.dark-mode .zhiji-login-popup-header {
    background-color: #3f3f46;
    border-bottom: 1px solid #52525b;
}

body.dark-mode .zhiji-login-popup-header h3 {
    color: #ffffff;
}

body.dark-mode .zhiji-login-form-group label {
    color: #a1a1aa;
}

body.dark-mode .zhiji-login-form-group input {
    background-color: #3f3f46;
    border: 1px solid #52525b;
    color: #ffffff;
}

body.dark-mode .zhiji-login-form-group input:focus {
    border-color: #64b5f6;
    box-shadow: 0 0 0 4px rgba(100, 181, 246, 0.2);
}

body.dark-mode .zhiji-login-submit {
    background-color: #64b5f6;
    color: #ffffff;
}

body.dark-mode .zhiji-login-submit:hover {
    background-color: #42a5f5;
    box-shadow: 0 4px 12px rgba(100, 181, 246, 0.3);
}

body.dark-mode .zhiji-login-form-links a {
    color: #64b5f6;
}

body.dark-mode .zhiji-login-form-links a:hover {
    color: #42a5f5;
}

body.dark-mode .zhiji-login-message.error {
    background-color: #4a2529;
    color: #ffcdd2;
    border-color: #6d4c41;
}

body.dark-mode .zhiji-login-message.success {
    background-color: #2e4d33;
    color: #c8e6c9;
    border-color: #388e3c;
}

/* 倒计时小工具 */
body.dark-mode .zhiji-countdown-widget {
    background-color: #27272a;
    border: 1px solid #3f3f46;
}

body.dark-mode .zhiji-countdown-title {
    color: #ffffff;
}

body.dark-mode .zhiji-countdown-item {
    background-color: #3f3f46;
    border: 1px solid #52525b;
}

body.dark-mode .zhiji-countdown-item:hover {
    background-color: #52525b;
}

body.dark-mode .zhiji-countdown-number {
    color: #64b5f6;
}

body.dark-mode .zhiji-countdown-label {
    color: #a1a1aa;
}

body.dark-mode .zhiji-countdown-expired {
    color: #ff5252;
}

body.dark-mode .zhiji-countdown-error {
    color: #ff5252;
}

/* 文章内容 */
body.dark-mode .zhiji-single-content {
    background-color: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 8px;
}

body.dark-mode .zhiji-post-title {
    color: #ffffff;
}

body.dark-mode .zhiji-post-meta {
    color: #a1a1aa;
}

body.dark-mode .zhiji-post-meta a {
    color: #64b5f6;
}

body.dark-mode .zhiji-post-meta a:hover {
    color: #42a5f5;
}

body.dark-mode .zhiji-post-content {
    color: #a1a1aa;
}

body.dark-mode .zhiji-post-content h2,
body.dark-mode .zhiji-post-content h3,
body.dark-mode .zhiji-post-content h4,
body.dark-mode .zhiji-post-content h5,
body.dark-mode .zhiji-post-content h6 {
    color: #ffffff;
}

body.dark-mode .zhiji-post-content a {
    color: #64b5f6;
}

body.dark-mode .zhiji-post-content a:hover {
    color: #42a5f5;
}

body.dark-mode .zhiji-post-content ul,
body.dark-mode .zhiji-post-content ol {
    color: #a1a1aa;
}

body.dark-mode .zhiji-post-content li {
    color: #a1a1aa;
}

body.dark-mode .zhiji-post-content blockquote {
    background-color: #3f3f46;
    border-left: 4px solid #64b5f6;
    color: #a1a1aa;
}

body.dark-mode .zhiji-post-content code {
    background-color: #3f3f46;
    border: 1px solid #52525b;
    color: #ffcc80;
}

body.dark-mode .zhiji-post-content pre {
    background-color: #3f3f46;
    border: 1px solid #52525b;
}

body.dark-mode .zhiji-post-content pre code {
    background-color: transparent;
    border: none;
}

/* 评论区 */
body.dark-mode .zhiji-comments-section {
    background-color: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 8px;
}

body.dark-mode .zhiji-comments-title {
    color: #ffffff;
}

body.dark-mode .comment-list {
    color: #a1a1aa;
}

body.dark-mode .comment-author {
    color: #ffffff;
}

body.dark-mode .comment-metadata {
    color: #a1a1aa;
}

body.dark-mode .comment-content {
    color: #a1a1aa;
}

body.dark-mode .comment-form {
    color: #a1a1aa;
}

body.dark-mode .comment-form label {
    color: #a1a1aa;
}

body.dark-mode .comment-form input,
body.dark-mode .comment-form textarea {
    background-color: #3f3f46;
    border: 1px solid #52525b;
    color: #ffffff;
}

body.dark-mode .comment-form input:focus,
body.dark-mode .comment-form textarea:focus {
    border-color: #64b5f6;
    box-shadow: 0 0 0 4px rgba(100, 181, 246, 0.2);
}

body.dark-mode .comment-form-submit input {
    background-color: #64b5f6;
    color: #ffffff;
}

body.dark-mode .comment-form-submit input:hover {
    background-color: #42a5f5;
    box-shadow: 0 4px 12px rgba(100, 181, 246, 0.3);
}

/* 页脚 */
body.dark-mode .zhiji-footer {
    background-color: #27272a;
    border-top: 1px solid #3f3f46;
}

body.dark-mode .zhiji-footer-content {
    color: #a1a1aa;
}

body.dark-mode .zhiji-footer-column h3 {
    color: #ffffff;
}

body.dark-mode .zhiji-footer-column a {
    color: #64b5f6;
}

body.dark-mode .zhiji-footer-column a:hover {
    color: #42a5f5;
}

body.dark-mode .zhiji-footer-bottom {
    background-color: #3f3f46;
    border-top: 1px solid #52525b;
    color: #a1a1aa;
}

/* 友情链接 */
body.dark-mode .zhiji-link-card {
    background-color: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 8px;
}

body.dark-mode .zhiji-link-card:hover {
    background-color: #3f3f46;
    border-color: #64b5f6;
}

body.dark-mode .zhiji-link-title {
    color: #ffffff;
}

body.dark-mode .zhiji-link-description {
    color: #a1a1aa;
}

body.dark-mode .zhiji-link-status-indicator {
    color: #a1a1aa;
}

body.dark-mode .zhiji-link-status-indicator.online {
    color: #4caf50;
}

body.dark-mode .zhiji-link-status-indicator.offline {
    color: #ff5252;
}

body.dark-mode .zhiji-link-status-indicator.checking {
    color: #ffc107;
}

/* 左侧边栏音乐播放器 */
.zhiji-music-player {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid #e0e0e0;
    border-radius: 0 50px 50px 0;
    padding: 20px 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: all 0.3s ease;
    overflow: hidden;
    width: 60px;
}

.zhiji-music-player:hover {
    width: 100px;
    padding: 20px 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.zhiji-music-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #1d1d1f;
    font-size: 18px;
}

.zhiji-music-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
}

.zhiji-music-btn:active {
    transform: scale(0.95);
}

.zhiji-music-btn.zhiji-music-play {
    background-color: #64b5f6;
    color: #ffffff;
}

.zhiji-music-btn.zhiji-music-play:hover {
    background-color: #42a5f5;
    box-shadow: 0 4px 12px rgba(100, 181, 246, 0.3);
}

/* 暗黑模式下的音乐播放器 */
body.dark-mode .zhiji-music-player {
    background-color: rgba(39, 39, 42, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid #3f3f46;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

body.dark-mode .zhiji-music-btn {
    color: #ffffff;
}

body.dark-mode .zhiji-music-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .zhiji-music-btn.zhiji-music-play {
    background-color: #64b5f6;
    color: #ffffff;
}

body.dark-mode .zhiji-music-btn.zhiji-music-play:hover {
    background-color: #42a5f5;
    box-shadow: 0 4px 12px rgba(100, 181, 246, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .zhiji-music-player {
        left: 0;
        top: auto;
        bottom: 20px;
        transform: none;
        width: 50px;
        gap: 8px;
        padding: 16px 6px;
        border-radius: 0 50px 50px 0;
    }
    
    .zhiji-music-player:hover {
        width: 80px;
        padding: 16px 8px;
    }
    
    .zhiji-music-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .zhiji-music-player {
        left: 0;
        bottom: 10px;
        width: 40px;
        gap: 6px;
        padding: 12px 4px;
    }
    
    .zhiji-music-player:hover {
        width: 70px;
        padding: 12px 6px;
    }
    
    .zhiji-music-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* 暗黑模式响应式设计 */
@media (max-width: 1024px) {
    body.dark-mode .zhiji-header {
        background-color: rgba(24, 24, 27, 0.98);
    }
}

@media (max-width: 768px) {
    body.dark-mode .zhiji-single-content {
        background-color: transparent;
        border: none;
    }
}


/* 基础样式 */
a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

body {
    font-family: "KaiTi", "STKaiti", "楷体", "KaiTi SC", "STKaiti SC", "Apple LiSung", "PingFang SC", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    margin-top: calc(var(--header-height) + 10px) !important;
}

.zhiji-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-md);
    z-index: 9999;
    transition: all var(--transition-normal);
}

.zhiji-header-container {
    max-width: 95%;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.zhiji-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.zhiji-blog-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zhiji-blog-icon img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    object-fit: cover;
}

.zhiji-blog-name {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.zhiji-blog-name a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.zhiji-blog-name a:hover {
    color: var(--primary-color);
}

.zhiji-blog-description {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 3px;
    font-weight: normal;
    line-height: 1.2;
}

body.dark-mode .zhiji-blog-description {
    color: var(--text-secondary);
}

/* 主菜单样式 - 重写版 */
.zhiji-header-menu {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
    margin-right: 20px;
}

.zhiji-header-menu-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.zhiji-header-menu-list li {
    position: relative;
    display: flex;
    align-items: center;
}

.zhiji-header-menu-list li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.zhiji-header-menu-list li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.zhiji-header-menu-list li a:hover {
    background-color: rgba(74, 108, 247, 0.1);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.zhiji-header-menu-list li a:hover::before {
    transform: scaleX(1);
}

/* 当前菜单项样式 */
.zhiji-header-menu-list li.current-menu-item > a,
.zhiji-header-menu-list li.current_page_item > a {
    background-color: rgba(74, 108, 247, 0.1);
    color: var(--primary-color);
}

.zhiji-header-menu-list li.current-menu-item > a::before,
.zhiji-header-menu-list li.current_page_item > a::before {
    transform: scaleX(1);
}

/* 下拉菜单样式 */
.zhiji-header-menu-list li.zhiji-mac-dropdown {
    position: relative;
}

.zhiji-header-menu-list li.zhiji-mac-dropdown > a {
    padding-right: 28px;
}

.zhiji-header-menu-list li.zhiji-mac-dropdown > a::after {
    content: '\f107';
    font-family: 'bootstrap-icons';
    font-size: 12px;
    position: absolute;
    right: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.zhiji-header-menu-list li.zhiji-mac-dropdown:hover > a::after {
    transform: rotate(180deg);
    color: #3b82f6;
}

.zhiji-header-menu-list li .zhiji-mac-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 8px 0;
    margin-top: 8px;
    list-style: none;
    z-index: 9999;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
}

.zhiji-header-menu-list li:hover .zhiji-mac-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.zhiji-header-menu-list li .zhiji-mac-dropdown-menu li {
    display: block;
    width: 100%;
}

.zhiji-header-menu-list li .zhiji-mac-dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 400;
    border-radius: 0;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.zhiji-header-menu-list li .zhiji-mac-dropdown-menu li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-hover));
    transform: scaleY(0);
    transition: transform var(--transition-fast);
}

.zhiji-header-menu-list li .zhiji-mac-dropdown-menu li a:hover {
    background-color: rgba(74, 108, 247, 0.1);
    color: var(--primary-color);
    transform: translateX(8px);
    padding-left: 24px;
}

.zhiji-header-menu-list li .zhiji-mac-dropdown-menu li a:hover::before {
    transform: scaleY(1);
}

/* 深色模式下的主菜单样式 */
body.dark-mode .zhiji-header-menu-list li a {
    color: var(--text-primary);
}

body.dark-mode .zhiji-header-menu-list li a:hover {
    background-color: rgba(74, 108, 247, 0.2);
    color: var(--primary-color);
}

body.dark-mode .zhiji-header-menu-list li a::before {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
}

body.dark-mode .zhiji-header-menu-list li.current-menu-item > a,
body.dark-mode .zhiji-header-menu-list li.current_page_item > a {
    background-color: rgba(74, 108, 247, 0.2);
    color: var(--primary-color);
}

body.dark-mode .zhiji-header-menu-list li.zhiji-mac-dropdown > a::after {
    color: var(--text-secondary);
}

body.dark-mode .zhiji-header-menu-list li.zhiji-mac-dropdown:hover > a::after {
    color: var(--primary-color);
}

body.dark-mode .zhiji-header-menu-list li .zhiji-mac-dropdown-menu {
    background-color: var(--bg-primary);
    border-color: var(--border-primary);
    box-shadow: var(--shadow-xl);
}

body.dark-mode .zhiji-header-menu-list li .zhiji-mac-dropdown-menu li a {
    color: var(--text-primary);
}

body.dark-mode .zhiji-header-menu-list li .zhiji-mac-dropdown-menu li a:hover {
    background-color: rgba(74, 108, 247, 0.3);
    color: var(--primary-color);
}

body.dark-mode .zhiji-header-menu-list li .zhiji-mac-dropdown-menu li a::before {
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-hover));
}

.zhiji-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 1px solid var(--border-primary);
    padding-left: 10px;
    height: 26px;
}

.zhiji-header-btn {
    width: 26px;
    height: 26px;
    font-weight: 900;
    border: none;
    border-radius: var(--radius-sm);
    background-color: transparent;
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.zhiji-header-btn:hover {
    color: var(--primary-color);
}

.zhiji-theme-toggle {
    margin: 0 4px;
}

.zhiji-theme-toggle input {
    display: none;
}

.zhiji-theme-toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 56px;
    height: 28px;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-normal);
    padding: 0 5px;
    box-sizing: border-box;
}

.zhiji-theme-toggle-day,
.zhiji-theme-toggle-night {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.zhiji-theme-toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background-color: var(--bg-primary);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.zhiji-theme-toggle input:checked+.zhiji-theme-toggle-label {
    background-color: var(--bg-secondary);
}

.zhiji-theme-toggle input:checked+.zhiji-theme-toggle-label .zhiji-theme-toggle-slider {
    transform: translateX(28px);
    background-color: var(--primary-color);
}

.zhiji-theme-toggle input:checked+.zhiji-theme-toggle-label .zhiji-theme-toggle-day {
    color: var(--text-tertiary);
}

.zhiji-theme-toggle input:checked+.zhiji-theme-toggle-label .zhiji-theme-toggle-night {
    color: var(--text-primary);
}

.zhiji-theme-toggle-label:hover {
    box-shadow: 0 0 0 2px rgba(74, 108, 247, 0.1);
}

body.dark-mode .zhiji-theme-toggle-label {
    background-color: var(--bg-secondary);
}

body.dark-mode .zhiji-theme-toggle-day,
body.dark-mode .zhiji-theme-toggle-night {
    color: var(--text-tertiary);
}

body.dark-mode .zhiji-theme-toggle input:checked+.zhiji-theme-toggle-label {
    background-color: var(--bg-secondary);
}

body.dark-mode .zhiji-theme-toggle input:checked+.zhiji-theme-toggle-label .zhiji-theme-toggle-night {
    color: var(--primary-color);
}

.zhiji-mobile-menu-btn {
    display: none;
    width: 26px;
    height: 26px;
    font-weight: 900;
    border: none;
    border-radius: var(--radius-sm);
    background-color: transparent;
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    margin-right: 8px;
}

.zhiji-mobile-menu-btn:hover {
    color: var(--primary-color);
}

.zhiji-mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-md);
    z-index: 9998;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.zhiji-mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.zhiji-mobile-menu-list li {
    position: relative;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-primary);
}

.zhiji-mobile-menu-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.zhiji-mobile-menu-list li a:hover {
    color: var(--primary-color);
}

.zhiji-mobile-menu-list li .zhiji-mac-dropdown-menu {
    position: static;
    min-width: 100%;
    background-color: var(--bg-secondary);
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 8px 0;
    margin-top: 8px;
    list-style: none;
    z-index: 9999;
    display: none;
    opacity: 1;
    transform: none;
}

.zhiji-mobile-menu-list li .zhiji-mac-dropdown-menu li a {
    display: block;
    padding: 8px 20px 8px 32px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    border-radius: 0;
    transition: all var(--transition-fast);
    white-space: nowrap;
    margin: 0;
}

.zhiji-mobile-menu-list li .zhiji-mac-dropdown-menu li a:hover {
    background-color: rgba(74, 108, 247, 0.1);
    color: var(--primary-color);
    transform: none;
}

@media (max-width: 1024px) {
    .zhiji-header-left .zhiji-blog-name {
        display: block;
    }

    .zhiji-header-left .zhiji-blog-name a {
        font-size: 16px;
    }

    .zhiji-header-left .zhiji-blog-description {
        display: none;
    }

    .zhiji-header-left {
        gap: 8px;
    }

    .zhiji-blog-icon img {
        width: 28px;
        height: 28px;
    }

    .zhiji-header-menu {
        display: none;
    }

    .zhiji-mobile-menu-btn {
        display: inline-flex;
    }

    .content-mode-btn {
        display: none;
    }
}

body.dark-mode .zhiji-mobile-menu {
    background-color: #1e1e1e;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .zhiji-mobile-menu-list li {
    border-bottom-color: #333;
}

body.dark-mode .zhiji-mobile-menu-list li a {
    color: #e0e0e0;
}

body.dark-mode .zhiji-mobile-menu-list li a:hover {
    color: #64b5f6;
}

body.dark-mode .zhiji-mobile-menu-list li .zhiji-mac-dropdown-menu {
    background-color: #252525;
}

body.dark-mode .zhiji-mobile-menu-list li .zhiji-mac-dropdown-menu li a {
    color: #e0e0e0;
}

body.dark-mode .zhiji-mobile-menu-list li .zhiji-mac-dropdown-menu li a:hover {
    background-color: rgba(100, 181, 246, 0.2);
    color: #64b5f6;
}

body.dark-mode .zhiji-mobile-menu-btn {
    color: #e0e0e0;
}

body.dark-mode .zhiji-mobile-menu-btn:hover {
    color: #64b5f6;
}

.zhiji-breadcrumb {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    line-height: 50px;
    height: 50px;
    padding-left: 15px;
    display: flex;
    align-items: center;
    transition: all var(--transition-normal);
    box-sizing: border-box;
    border-bottom: 1px solid var(--border-primary);
}

.zhiji-breadcrumb-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    font-size: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    overflow: hidden;
    text-align: left;
}

.zhiji-breadcrumb-row {
    display: flex;
    align-items: center;
    gap: 2px;
    width: 100%;
    flex-wrap: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: inherit;
}

@media (max-width: 1280px) {
    .zhiji-breadcrumb {
        max-width: calc(100% - 40px);
        padding-left: 15px;
    }
}

@media (max-width: 768px) {
    .zhiji-breadcrumb {
        max-width: calc(100% - 20px);
        padding-left: 15px;
    }

    .zhiji-breadcrumb-container {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .zhiji-breadcrumb {
        display: none;
    }
}

.zhiji-breadcrumb-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0;
    padding: 0;
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    transition: all var(--transition-normal);
    user-select: none;
    text-align: left;
}

.zhiji-breadcrumb-toggle .toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-color);
    transition: all var(--transition-normal);
    min-width: 24px;
    height: 24px;
}

.zhiji-breadcrumb-toggle .toggle-text {
    transition: all var(--transition-normal);
    width: 100%;
    text-align: left;
    font-size: inherit;
    line-height: 1.2;
}

body.dark-mode .zhiji-breadcrumb-toggle {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .zhiji-breadcrumb-toggle {
        gap: 12px;
        font-size: 16px;
        padding: 0;
    }

    .zhiji-breadcrumb-toggle .toggle-icon {
        font-size: 18px;
        min-width: 20px;
    }
}

.zhiji-breadcrumb a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-normal);
    font-weight: 600;
    position: relative;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: inherit;
}

.zhiji-breadcrumb a:hover {
    color: var(--primary-color);
    background-color: rgba(74, 108, 247, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
}

.zhiji-breadcrumb span {
    color: var(--text-tertiary);
    font-size: inherit;
    display: flex;
    align-items: center;
    justify-content: left;
    width: auto;
    height: auto;
    margin: 0;
}

@media (max-width: 768px) {
    .zhiji-breadcrumb {
        min-height: 40px;
        padding: 5px 10px;
    }

    .zhiji-breadcrumb-container {
        font-size: 16px;
        gap: 6px;
    }

    .zhiji-breadcrumb-row {
        gap: 6px;
    }

    .zhiji-breadcrumb a {
        padding: 3px 6px;
    }

    .zhiji-breadcrumb span {
        width: 14px;
        height: 14px;
        font-size: 11px;
    }

    .zhiji-breadcrumb-toggle {
        font-size: 11px;
        padding: 3px 10px;
        gap: 4px;
    }
}

body.dark-mode .zhiji-breadcrumb {
    background-color: var(--bg-primary);
    border-color: var(--border-primary);
    box-shadow: var(--shadow-sm);
}

body.dark-mode .zhiji-breadcrumb:hover {
    box-shadow: var(--shadow-md);
}

body.dark-mode .zhiji-breadcrumb-container {
    color: var(--text-secondary);
}

body.dark-mode .zhiji-breadcrumb a {
    color: var(--primary-color);
}

body.dark-mode .zhiji-breadcrumb a:hover {
    color: var(--primary-hover);
    background-color: rgba(74, 108, 247, 0.1);
}

body.dark-mode .zhiji-breadcrumb span {
    color: var(--text-tertiary);
}

body.dark-mode .zhiji-header {
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-md);
}

body.dark-mode .zhiji-blog-name a {
    color: var(--text-primary);
}

body.dark-mode .zhiji-blog-name a:hover {
    color: var(--primary-color);
}

body.dark-mode .zhiji-header-btn {
    color: var(--text-primary);
}

body.dark-mode .zhiji-header-btn:hover {
    background-color: rgba(74, 108, 247, 0.1);
    color: var(--primary-color);
}

body.dark-mode .zhiji-blog-icon {}

.zhiji-window {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 10px auto 10px;
    max-width: var(--container-width);
    box-shadow: none;
}

.zhiji-search-btn {
    border: none;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: none;
    color: inherit;
}



.zhiji-content-container {
    padding: 0;
    display: flex;
    align-items: stretch;
}



.zhiji-sidebar {
    width: 300px;
    min-width: 300px;
    padding: 10px;
    background-color: var(--bg-primary);
    border-left: 1px solid var(--border-primary);
    transition: all var(--transition-normal);
    position: sticky;
    top: 80px;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    box-shadow: none;
}

.widget {
    margin-bottom: 10px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-primary);
    box-shadow: none;
}

.widget-header {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    box-shadow: none;
}

.widget-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 16px;
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
    flex: 1;
}

.zhiji-theme-info {
    list-style: none;
    margin: 0;
    padding: 0;
}

.zhiji-theme-info li {
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-primary);
}

.zhiji-theme-info li:last-child {
    margin-bottom: 0;
}

.zhiji-tang-poem-widget {
    text-align: center;
    margin-bottom: 15px;
    font-family: "KaiTi", "STKaiti", "楷体", 'SimSun', 'STSong', 'Noto Serif SC', serif;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.zhiji-tang-poem-widget .zhiji-tang-poem-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #2c3e50;
    letter-spacing: 0.5px;
    text-shadow: none;
}

.zhiji-tang-poem-widget .zhiji-tang-poem-author {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 12px;
    font-style: italic;
    letter-spacing: 0.3px;
}

.zhiji-tang-poem-widget .zhiji-tang-poem-content {
    font-size: 15px;
    line-height: 1.7;
    color: #34495e;
    white-space: pre-line;
    text-align: center;
    letter-spacing: 0.3px;
    padding: 0;
    margin-bottom: 0;
}

body.dark-mode .widget {
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}

body.dark-mode .widget-header {
    background-color: var(--bg-secondary);
    border-bottom-color: var(--border-primary);
}

body.dark-mode .widget-icon {
    color: var(--primary-color);
}

body.dark-mode .widget-title {
    color: var(--text-primary);
}

body.dark-mode .widget-content {
    background-color: var(--bg-primary);
}

body.dark-mode .zhiji-theme-info {
    background-color: var(--bg-primary);
}

body.dark-mode .zhiji-theme-info li {
    color: var(--text-primary);
}

body.dark-mode .zhiji-tang-poem-widget {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-color: var(--border-primary);
    box-shadow: var(--shadow-sm);
}

body.dark-mode .zhiji-tang-poem-widget::before {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
}

body.dark-mode .zhiji-tang-poem-widget .zhiji-tang-poem-title {
    color: var(--text-primary);
    text-shadow: none;
}

body.dark-mode .zhiji-tang-poem-widget .zhiji-tang-poem-author {
    color: var(--text-secondary);
}

body.dark-mode .zhiji-tang-poem-widget .zhiji-tang-poem-content {
    color: var(--text-primary);
}

.zhiji-popular-posts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.zhiji-popular-posts li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.zhiji-popular-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.zhiji-popular-posts li a {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    color: #1d1d1f;
    transition: all 0.3s ease;
}

.zhiji-popular-posts li a:hover {
    color: #0066cc;
}

.zhiji-popular-post-rank {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: white;
    margin-right: 12px;
    flex-shrink: 0;
}

.zhiji-popular-posts li:nth-child(1) .zhiji-popular-post-rank {
    background-color: #ff5f57;
}

.zhiji-popular-posts li:nth-child(2) .zhiji-popular-post-rank {
    background-color: #ffbd2e;
}

.zhiji-popular-posts li:nth-child(3) .zhiji-popular-post-rank {
    background-color: #28ca42;
}

.zhiji-popular-posts li:nth-child(4) .zhiji-popular-post-rank {
    background-color: #0066cc;
}

.zhiji-popular-posts li:nth-child(5) .zhiji-popular-post-rank {
    background-color: #9c27b0;
}

.zhiji-popular-posts li:nth-child(6) .zhiji-popular-post-rank {
    background-color: #ff9800;
}

.zhiji-popular-posts li:nth-child(7) .zhiji-popular-post-rank {
    background-color: #795548;
}

.zhiji-popular-posts li:nth-child(8) .zhiji-popular-post-rank {
    background-color: #607d8b;
}

.zhiji-popular-posts li:nth-child(9) .zhiji-popular-post-rank {
    background-color: #009688;
}

.zhiji-popular-posts li:nth-child(10) .zhiji-popular-post-rank {
    background-color: #e91e63;
}

.zhiji-popular-post-content {
    flex: 1;
}

.zhiji-popular-post-title {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.zhiji-popular-post-content {
    flex: 1;
    min-width: 0;
}

.zhiji-recommended-posts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.zhiji-recommended-posts li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.zhiji-recommended-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.zhiji-recommended-posts li a {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    text-decoration: none;
    color: #1d1d1f;
    transition: all 0.3s ease;
}

.zhiji-recommended-posts li a:hover {
    color: #0066cc;
}

.zhiji-recommended-post-title {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    margin-right: 8px;
}

.zhiji-recommended-post-date {
    font-size: 12px;
    color: #6e6e73;
    white-space: nowrap;
}

.zhiji-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.zhiji-links li {
    flex: 0 0 calc(50% - 4px);
    margin-bottom: 8px;
}

.zhiji-links li a {
    display: block;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    color: #1d1d1f;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
}

.zhiji-links li a:hover {
    background-color: #0066cc;
    color: #ffffff;
    border-color: #0066cc;
}

.zhiji-recent-comments {
    list-style: none;
    margin: 0;
    padding: 0;
}

.zhiji-recent-comments li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.zhiji-recent-comments li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* 标签云小工具样式 */
.zhiji-colorful-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.zhiji-colorful-tags a {
    display: inline-block;
    padding: 4px 10px;
    font-size: 14px;
    text-decoration: none;
    color: #ffffff;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.zhiji-colorful-tags a:hover {
    opacity: 0.8;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.zhiji-colorful-tags a:active {
    transform: translateY(0);
}

/* 倒计时小工具样式 */
.zhiji-countdown-widget {
    text-align: center;
    padding: 15px 10px;
    background-color: #fafafa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.zhiji-countdown-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 15px;
    line-height: 1.4;
}

.zhiji-countdown-container {
    position: relative;
    overflow: hidden;
}

.zhiji-countdown-content {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
    margin-bottom: 10px;
}

.zhiji-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background-color: #ffffff;
    padding: 8px 4px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    min-width: 48px;
    flex: 1;
    transition: all 0.3s ease;
}

.zhiji-countdown-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.zhiji-countdown-number {
    font-size: 24px;
    font-weight: 700;
    font-family: 'SF Mono', Monaco, Inconsolata, 'Roboto Mono', Consolas, 'Courier New', monospace;
    line-height: 1;
    transition: all 0.3s ease;
    position: relative;
}

/* 为每个时间单位的数字设置不同颜色 */
.zhiji-countdown-item:nth-child(1) .zhiji-countdown-number {
    color: #ff6b6b;
}

.zhiji-countdown-item:nth-child(2) .zhiji-countdown-number {
    color: #4ecdc4;
}

.zhiji-countdown-item:nth-child(3) .zhiji-countdown-number {
    color: #45b7d1;
}

.zhiji-countdown-item:nth-child(4) .zhiji-countdown-number {
    color: #96ceb4;
}

/* 数字变化动画 */
.zhiji-countdown-number-animation {
    animation: zhiji-countdown-number-pulse 0.5s ease-in-out;
}

@keyframes zhiji-countdown-number-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.zhiji-countdown-label {
    font-size: 12px;
    font-weight: 500;
    color: #9e9e9e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* 倒计时结束样式 */
.zhiji-countdown-expired {
    text-align: center;
    padding: 0;
    font-size: 16px;
    font-weight: 600;
    color: #ff5f57;
    background-color: #fff5f5;
    border: 1px solid #ffd7d7;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* 倒计时结束动画 */
.zhiji-countdown-expired-animation {
    animation: zhiji-countdown-expired-fade-in 0.6s ease-out;
}

@keyframes zhiji-countdown-expired-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 错误提示样式 */
.zhiji-countdown-error {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
    background-color: #f5f5f5;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* 继续阅读按钮样式 */
.zhiji-post-read-more {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    padding: 10px 0;
}

.zhiji-read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.zhiji-read-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-normal);
}

.zhiji-read-more-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.zhiji-read-more-btn:hover::before {
    left: 100%;
}

.zhiji-read-more-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* 深色模式下的继续阅读按钮样式 */
body.dark-mode .zhiji-read-more-btn {
    background-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

body.dark-mode .zhiji-read-more-btn:hover {
    background-color: var(--primary-hover);
    box-shadow: var(--shadow-md);
}

/* 文章内容字体设置，提高可读性 */
.zhiji-single-post-content {
    font-size: 16px;
    line-height: 1.8;
}

.zhiji-single-post-content p {
    margin-bottom: 1.2em;
    text-align: justify;
}

.zhiji-single-post-content h1,
.zhiji-single-post-content h2,
.zhiji-single-post-content h3,
.zhiji-single-post-content h4,
.zhiji-single-post-content h5,
.zhiji-single-post-content h6 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    font-weight: 600;
    line-height: 1.3;
}

.zhiji-single-post-content h1 {
    font-size: 2em;
}

.zhiji-single-post-content h2 {
    font-size: 1.6em;
}

.zhiji-single-post-content h3 {
    font-size: 1.3em;
}

.zhiji-single-post-content h4 {
    font-size: 1.1em;
}

.zhiji-single-post-content ul,
.zhiji-single-post-content ol {
    margin-bottom: 1.2em;
    padding-left: 0;
    list-style-position: inside;
}

.zhiji-single-post-content li {
    margin-bottom: 0.5em;
    padding-left: 2ch;
}

.zhiji-single-post-content blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-left: 4px solid var(--primary-color);
    background-color: var(--bg-secondary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
}

.zhiji-single-post-content img {
    max-width: 100%;
    height: auto;
    margin: 1em 0;
    border-radius: var(--radius-sm);
}

/* 响应式字体设置 */
@media (max-width: 768px) {
    .zhiji-single-post-content {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .zhiji-single-post-content h1 {
        font-size: 1.8em;
    }
    
    .zhiji-single-post-content h2 {
        font-size: 1.4em;
    }
    
    .zhiji-single-post-content h3 {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .zhiji-single-post-content {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .zhiji-single-post-content h1 {
        font-size: 1.6em;
    }
    
    .zhiji-single-post-content h2 {
        font-size: 1.3em;
    }
    
    .zhiji-single-post-content h3 {
        font-size: 1.1em;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .zhiji-countdown-content {
        gap: 8px;
    }
    
    .zhiji-countdown-item {
        padding: 8px 6px;
        min-width: 50px;
    }
    
    .zhiji-countdown-number {
        font-size: 20px;
    }
    
    .zhiji-countdown-label {
        font-size: 11px;
    }
    
    .zhiji-countdown-title {
        font-size: 14px;
        margin-bottom: 10px;
    }
}

/* 深色模式下的样式 */
body.dark-mode .zhiji-countdown-widget {
    background-color: #2d2d2d;
}

body.dark-mode .zhiji-countdown-title {
    color: #e0e0e0;
}

body.dark-mode .zhiji-countdown-item {
    background-color: #252525;
    border-color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .zhiji-countdown-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-mode .zhiji-countdown-item:nth-child(1) .zhiji-countdown-number {
    color: #ff8a80;
}

body.dark-mode .zhiji-countdown-item:nth-child(2) .zhiji-countdown-number {
    color: #80cbc4;
}

body.dark-mode .zhiji-countdown-item:nth-child(3) .zhiji-countdown-number {
    color: #64b5f6;
}

body.dark-mode .zhiji-countdown-item:nth-child(4) .zhiji-countdown-number {
    color: #a5d6a7;
}

body.dark-mode .zhiji-countdown-label {
    color: #757575;
}

body.dark-mode .zhiji-countdown-expired {
    background-color: #3a2424;
    color: #ff8a80;
    border-color: #4a3030;
}

body.dark-mode .zhiji-countdown-error {
    background-color: #252525;
    border-color: #333;
    color: #bdbdbd;
}

/* 文章目录树样式 */
.zhiji-post-tree-container {
    position: fixed;
    left: 20px;
    top: 120px;
    width: 250px;
    max-height: calc(100vh - 140px);
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border: 1px solid #e0e0e0;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.zhiji-post-tree-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 16px;
    background-color: #fafafa;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
    color: #1d1d1f;
    cursor: pointer;
    position: sticky;
    top: 0;
    z-index: 10;
}

.zhiji-post-tree-header i {
    color: #0066cc;
}

.zhiji-post-tree-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.zhiji-post-tree-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.zhiji-post-tree-toggle::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border: 2px solid #666;
    border-top: none;
    border-right: none;
    transform: rotate(-45deg);
    transition: all 0.3s ease;
}

/* 目录隐藏状态 */
.zhiji-post-tree-container.collapsed {
    width: auto;
    max-height: 48px;
    overflow: hidden;
}

.zhiji-post-tree-container.collapsed .zhiji-post-tree-content {
    display: none;
}

.zhiji-post-tree-container.collapsed .zhiji-post-tree-toggle::before {
    transform: rotate(135deg);
    margin-top: 2px;
}

.zhiji-post-tree-container.collapsed .zhiji-post-tree-header span {
    display: none;
}

.zhiji-post-tree-content {
    padding: 12px 8px;
    overflow-y: auto;
    flex: 1;
}

.zhiji-post-tree-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.zhiji-post-tree-list li {
    margin: 4px 0;
}

.zhiji-post-tree-list a {
    display: block;
    padding: 6px 12px;
    color: #424245;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 14px;
    line-height: 1.5;
}

.zhiji-post-tree-list a:hover {
    background-color: #f5f5f7;
    color: #0066cc;
}

.zhiji-post-tree-list a.active {
    background-color: #0066cc;
    color: #ffffff;
}

/* 嵌套目录样式 */
.zhiji-post-tree-list ul {
    list-style: none;
    margin: 0;
    padding-left: 16px;
}

/* 深色模式 */
body.dark-mode .zhiji-post-tree-container {
    background-color: #252525;
    border-color: #333;
}

body.dark-mode .zhiji-post-tree-header {
    background-color: #333;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-mode .zhiji-post-tree-header i {
    color: #64b5f6;
}

body.dark-mode .zhiji-post-tree-list a {
    color: #bdbdbd;
}

body.dark-mode .zhiji-post-tree-list a:hover {
    background-color: #333;
    color: #64b5f6;
}

body.dark-mode .zhiji-post-tree-list a.active {
    background-color: #64b5f6;
    color: #ffffff;
}

/* ==================== 响应式设计 ==================== */

/* 大屏幕适配 (1024px以下) */
@media (max-width: 1024px) {
    /* 文章目录树 */
    .zhiji-post-tree-container {
        left: 10px;
        width: 220px;
    }
    
    /* 头部导航 */
    .zhiji-header-left .zhiji-blog-name {
        display: block;
    }
    
    .zhiji-header-left .zhiji-blog-name a {
        font-size: 16px;
    }
    
    .zhiji-header-left .zhiji-blog-description {
        display: none;
    }
    
    .zhiji-header-left {
        gap: 8px;
    }
    
    .zhiji-blog-icon img {
        width: 28px;
        height: 28px;
    }
    
    .zhiji-header-menu {
        display: none;
    }
    
    .zhiji-mobile-menu-btn {
        display: inline-flex;
    }
    
    .content-mode-btn {
        display: none;
    }
}

/* 中屏幕适配 (768px以下) */
@media (max-width: 768px) {
    /* 文章目录树 */
    .zhiji-post-tree-container {
        display: none;
    }
    
    /* 面包屑导航 */
    .zhiji-breadcrumb {
        max-width: calc(100% - 20px);
        padding-left: 15px;
    }
    
    .zhiji-breadcrumb-container {
        font-size: 16px;
    }
    
    /* 作者信息 */
    .zhiji-author-stats {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .zhiji-author-stat-item {
        flex-direction: row;
        justify-content: center;
        gap: var(--spacing-sm);
    }
    
    .zhiji-author-stat-item i {
        margin-bottom: 0;
    }
    
    .zhiji-author-stat-value {
        margin-bottom: 0;
    }
    
    .zhiji-contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }
    
    .zhiji-contact-label {
        width: 100%;
        margin-right: 0;
    }
    
    /* 文章内容 */
    .zhiji-single-content {
        padding: var(--spacing-md);
    }
    
    .zhiji-post-header {
        margin-bottom: var(--spacing-md);
    }
    
    .zhiji-post-title {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .zhiji-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }
    
    /* 评论区 */
    .zhiji-comments-section {
        padding: var(--spacing-md);
    }
    
    /* 页脚 */
    .zhiji-footer {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .zhiji-footer-content {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .zhiji-footer-column {
        flex: 1 1 100%;
    }
}

/* 小屏幕适配 (480px以下) */
@media (max-width: 480px) {
    /* 面包屑导航 */
    .zhiji-breadcrumb {
        display: none;
    }
    
    /* 文章内容 */
    .zhiji-single-content {
        padding: var(--spacing-sm);
    }
    
    .zhiji-post-title {
        font-size: 20px;
    }
    
    /* 评论区 */
    .zhiji-comments-section {
        padding: var(--spacing-sm);
    }
    
    /* 页脚 */
    .zhiji-footer {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    /* 友情链接 */
    .zhiji-link-card {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    .zhiji-link-info {
        flex: 1 1 100%;
    }
    
    .zhiji-link-actions {
        margin-top: var(--spacing-sm);
    }
}

/* 作者信息小工具样式 */
.zhiji-author-info {
    background-color: #fafafa;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.zhiji-author-info .zhiji-author-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.zhiji-author-info .zhiji-author-avatar {
    flex-shrink: 0;
}

.zhiji-author-info .zhiji-author-avatar img {
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    width: 70px;
    height: 70px;
    object-fit: cover;
}

.zhiji-author-info .zhiji-author-avatar img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.zhiji-author-info .zhiji-author-name {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #1d1d1f;
    line-height: 1.2;
}

/* 作者信息列表 */
.zhiji-author-info .zhiji-author-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.zhiji-author-info .zhiji-author-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #424245;
    padding: 8px 12px;
    background-color: #ffffff;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.zhiji-author-info .zhiji-author-info-item:hover {
    background-color: #f5f5f5;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.zhiji-author-info .zhiji-author-info-item i {
    font-size: 16px;
    color: #0066cc;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.zhiji-author-info .zhiji-author-website {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
    flex: 1;
}

.zhiji-author-info .zhiji-author-website:hover {
    color: #0052a3;
    text-decoration: underline;
}

.zhiji-author-info .zhiji-author-description {
    color: #6e6e73;
    line-height: 1.6;
}

.zhiji-author-info .zhiji-author-description span {
    flex: 1;
}

.zhiji-author-info .zhiji-author-stat-label {
    color: #9e9e9e;
    font-weight: 500;
}

.zhiji-author-info .zhiji-author-stat-value {
    font-weight: 700;
    color: #1d1d1f;
}

/* 深色模式下的作者信息小工具样式 */
body.dark-mode .zhiji-author-info {
    background-color: #2d2d2d;
}

body.dark-mode .zhiji-author-info .zhiji-author-avatar img {
    border-color: #252525;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .zhiji-author-info .zhiji-author-name {
    color: #e0e0e0;
}

body.dark-mode .zhiji-author-info .zhiji-author-info-list {
    background-color: transparent;
}

body.dark-mode .zhiji-author-info .zhiji-author-info-item {
    background-color: #252525;
    border-color: #333;
    color: #bdbdbd;
}

body.dark-mode .zhiji-author-info .zhiji-author-info-item:hover {
    background-color: #333;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .zhiji-author-info .zhiji-author-info-item i {
    color: #64b5f6;
}

body.dark-mode .zhiji-author-info .zhiji-author-website {
    color: #64b5f6;
}

body.dark-mode .zhiji-author-info .zhiji-author-website:hover {
    color: #81c7fa;
    text-decoration: underline;
}

body.dark-mode .zhiji-author-info .zhiji-author-description {
    color: #9e9e9e;
}

body.dark-mode .zhiji-author-info .zhiji-author-stat-label {
    color: #757575;
}

body.dark-mode .zhiji-author-info .zhiji-author-stat-value {
    color: #e0e0e0;
}

/* 用户菜单样式 */
.zhiji-user-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background-color: transparent;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.zhiji-user-btn:hover {
    background-color: rgba(74, 108, 247, 0.1);
    color: var(--primary-color);
}

.zhiji-user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: 240px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    pointer-events: none;
}

.zhiji-user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.zhiji-user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: all var(--transition-fast);
    position: relative;
    z-index: 10001;
    pointer-events: auto;
}

.zhiji-user-info {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-primary);
    background-color: var(--bg-secondary);
}

.zhiji-user-avatar {
    margin-right: 12px;
    flex-shrink: 0;
}

.zhiji-user-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.zhiji-user-details {
    flex: 1;
}

.zhiji-user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.zhiji-user-role {
    font-size: 12px;
    color: var(--text-secondary);
}

.zhiji-user-menu {
    padding: 8px 0;
}

.zhiji-user-menu-divider {
    height: 1px;
    background-color: var(--border-primary);
    margin: 8px 0;
}

body.dark-mode .zhiji-user-menu-divider {
    background-color: var(--border-primary);
}

.zhiji-user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: all var(--transition-fast);
}

.zhiji-user-menu-item:hover {
    background-color: var(--bg-hover);
    color: var(--primary-color);
}

.zhiji-user-menu-item i {
    font-size: 16px;
    width: 16px;
    text-align: center;
}

.zhiji-user-menu-item.zhiji-user-logout:hover {
    color: #ff5f57;
}

body.dark-mode .zhiji-user-btn {
    color: var(--text-primary);
}

body.dark-mode .zhiji-user-btn:hover {
    background-color: rgba(74, 108, 247, 0.2);
    color: var(--primary-color);
}

body.dark-mode .zhiji-user-dropdown {
    background-color: var(--bg-primary);
    border-color: var(--border-primary);
    box-shadow: var(--shadow-xl);
}

body.dark-mode .zhiji-user-info {
    background-color: var(--bg-secondary);
    border-bottom-color: var(--border-primary);
}

body.dark-mode .zhiji-user-name {
    color: var(--text-primary);
}

body.dark-mode .zhiji-user-role {
    color: var(--text-secondary);
}

body.dark-mode .zhiji-user-menu-item {
    color: var(--text-primary);
}

body.dark-mode .zhiji-user-menu-item:hover {
    background-color: var(--bg-hover);
    color: var(--primary-color);
}

body.dark-mode .zhiji-user-menu-item.zhiji-user-logout:hover {
    color: #ff8a80;
}

@media (max-width: 768px) {
    .zhiji-user-dropdown {
        width: 200px;
        right: -10px;
    }

    .zhiji-user-info {
        padding: 10px 12px;
    }

    .zhiji-user-menu-item {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* 登陆弹出框样式 */
.zhiji-login-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: none;
    box-sizing: border-box;
}

.zhiji-login-popup.show {
    display: flex;
    animation: zhiji-search-fade-in 0.3s ease-out;
}

.zhiji-login-popup-content {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-sizing: border-box;
    animation: zhiji-search-content-slide-in 0.3s ease-out;
}

.zhiji-login-popup-header {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background-color: #f5f5f7;
    border-bottom: 1px solid #e0e0e0;
    height: 50px;
    box-sizing: border-box;
}

.zhiji-login-controls {
    display: flex;
    gap: 8px;
    margin-right: 16px;
}

.zhiji-login-control-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
    padding: 0;
}

.zhiji-login-control-btn.close {
    background-color: #ff5f57;
}

.zhiji-login-control-btn.minimize {
    background-color: #ffbd2e;
}

.zhiji-login-control-btn.maximize {
    background-color: #28ca42;
}

.zhiji-login-popup-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    flex: 1;
}

.zhiji-login-popup-body {
    padding: 24px;
    max-height: calc(80vh - 50px);
    overflow-y: auto;
    box-sizing: border-box;
}

.zhiji-login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.zhiji-login-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.zhiji-login-form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
}

.zhiji-login-form-group input {
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: "KaiTi", "STKaiti", "楷体", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.zhiji-login-form-group input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.zhiji-login-form-checkbox {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.zhiji-login-form-checkbox input {
    width: auto;
    padding: 0;
}

.zhiji-login-form-checkbox label {
    margin: 0;
    font-weight: 400;
}

.zhiji-login-form-actions {
    margin-top: 8px;
}

.zhiji-login-submit {
    width: 100%;
    padding: 12px;
    background-color: #0066cc;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "KaiTi", "STKaiti", "楷体", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.zhiji-login-submit:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

.zhiji-login-submit:active {
    transform: translateY(0);
}

.zhiji-login-form-links {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    font-size: 14px;
}

.zhiji-login-form-links a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.zhiji-login-form-links a:hover {
    color: #0052a3;
    text-decoration: underline;
}

.zhiji-login-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    display: none;
}

.zhiji-login-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.zhiji-login-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

body.dark-mode .zhiji-login-popup {
    background-color: rgba(0, 0, 0, 0.7);
}

body.dark-mode .zhiji-login-popup-content {
    background-color: #252525;
    border-color: #333;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

body.dark-mode .zhiji-login-popup-header {
    background-color: #333;
    border-color: #444;
}

body.dark-mode .zhiji-login-popup-header h3 {
    color: #e0e0e0;
}

body.dark-mode .zhiji-login-form-group label {
    color: #e0e0e0;
}

body.dark-mode .zhiji-login-form-group input {
    background-color: #2d2d2d;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-mode .zhiji-login-form-group input:focus {
    border-color: #64b5f6;
    box-shadow: 0 0 0 4px rgba(100, 181, 246, 0.2);
}

body.dark-mode .zhiji-login-submit {
    background-color: #64b5f6;
}

body.dark-mode .zhiji-login-submit:hover {
    background-color: #42a5f5;
    box-shadow: 0 4px 12px rgba(100, 181, 246, 0.3);
}

body.dark-mode .zhiji-login-form-links a {
    color: #64b5f6;
}

body.dark-mode .zhiji-login-form-links a:hover {
    color: #42a5f5;
}

body.dark-mode .zhiji-login-message.error {
    background-color: #4a2529;
    color: #ffcdd2;
    border-color: #6d4c41;
}

body.dark-mode .zhiji-login-message.success {
    background-color: #2e4d33;
    color: #c8e6c9;
    border-color: #388e3c;
}

@media (max-width: 768px) {
    .zhiji-login-popup-content {
        width: 95%;
        max-height: 90vh;
    }

    .zhiji-login-popup-body {
        padding: 16px;
        max-height: calc(90vh - 50px);
    }

    .zhiji-login-form-group input {
        padding: 10px 14px;
    }

    .zhiji-login-submit {
        padding: 10px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .zhiji-login-popup-content {
        width: 98%;
        max-height: 95vh;
    }

    .zhiji-login-popup-body {
        padding: 12px;
        max-height: calc(95vh - 50px);
    }

    .zhiji-login-form-group input {
        padding: 8px 12px;
        font-size: 13px;
    }

    .zhiji-login-submit {
        padding: 8px;
        font-size: 14px;
    }

    .zhiji-login-form-links {
        font-size: 13px;
        flex-direction: column;
        gap: 8px;
    }
}

.zhiji-recent-comments li a {
    display: block;
    text-decoration: none;
    color: #1d1d1f;
    transition: all 0.3s ease;
}

.zhiji-recent-comments li a:hover {
    color: #0066cc;
}

.zhiji-recent-comment-author {
    font-weight: 600;
    font-size: 14px;
}

.zhiji-recent-comment-content {
    font-size: 14px;
    line-height: 1.4;
    color: #424245;
    margin-top: 4px;
}

body.dark-mode .zhiji-popular-posts {
    background-color: #252525;
}

body.dark-mode .zhiji-popular-posts li {
    border-bottom-color: #333;
}

body.dark-mode .zhiji-popular-posts li a {
    color: #e0e0e0;
}

body.dark-mode .zhiji-popular-posts li a:hover {
    color: #64b5f6;
}

body.dark-mode .zhiji-recommended-posts {
    background-color: #252525;
}

body.dark-mode .zhiji-recommended-posts li {
    border-bottom-color: #333;
}

body.dark-mode .zhiji-recommended-posts li a {
    color: #e0e0e0;
}

body.dark-mode .zhiji-recommended-posts li a:hover {
    color: #64b5f6;
}

body.dark-mode .zhiji-recommended-post-date {
    color: #9e9e9e;
}

body.dark-mode .zhiji-links {
    background-color: #252525;
}

body.dark-mode .zhiji-links li a {
    background-color: #2d2d2d;
    border-color: #333;
    color: #e0e0e0;
}

body.dark-mode .zhiji-links li a:hover {
    background-color: #64b5f6;
    border-color: #64b5f6;
}

body.dark-mode .zhiji-recent-comments {
    background-color: #252525;
}

body.dark-mode .zhiji-recent-comments li {
    border-bottom-color: #333;
}

body.dark-mode .zhiji-recent-comments li a {
    color: #e0e0e0;
}

body.dark-mode .zhiji-recent-comments li a:hover {
    color: #64b5f6;
}

body.dark-mode .zhiji-recent-comment-author {
    color: #e0e0e0;
}

body.dark-mode .zhiji-recent-comment-content {
    color: #bdbdbd;
}

/* 统一内容区域样式 */
.zhiji-content-container {
    padding: 0;
    display: flex;
    align-items: stretch;
}

.zhiji-main-content {
    flex: 1;
    min-width: 0;
    gap: 10px;
    background-color: #f8f9fa;
    color: #333333;
    padding: 10px;
    border-radius: var(--radius-md);
}

.zhiji-sidebar {
    width: 300px;
    min-width: 300px;
    padding: 10px;
    background-color: var(--bg-primary);
    border-left: 1px solid var(--border-primary);
    transition: all var(--transition-normal);
    position: sticky;
    top: 80px;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    box-shadow: none;
}

/* 统一页面内容样式 */
.zhiji-index-content,
.zhiji-single-content,
.zhiji-pages-content,
.zhiji-search-content,
.zhiji-404-content {
    min-width: 0;
    background-color: var(--bg-primary);
}

/* 统一小工具内容样式 */
.widget-content {
    padding: 10px;
}

/* 统一边框颜色 */
.zhiji-titlebar,
.zhiji-sidebar,
.widget,
.widget-header,
.zhiji-footer {
    border-color: var(--border-primary);
}

/* 统一灰色背景 */
.zhiji-titlebar,
.widget-header,
.zhiji-footer {
    background-color: var(--bg-secondary);
}

/* 统一白色背景 */
.zhiji-window,
.zhiji-main-content,
.zhiji-sidebar,
.zhiji-index-content,
.zhiji-single-content,
.zhiji-pages-content,
.zhiji-search-content,
.zhiji-404-content,
.widget,
.widget-content {
    background-color: var(--bg-primary);
}

.zhiji-footer {
    background-color: var(--bg-secondary);
    padding: 10px;
    border-top: 1px solid var(--border-primary);
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    box-shadow: none;
}

/* 响应式布局 */
@media (max-width: 992px) {
    .zhiji-content-container {
        flex-direction: column;
    }

    .zhiji-sidebar {
        width: 100%;
        min-width: 100%;
        border-left: none;
        border-top: 1px solid #f0f0f0;
    }
}

/* 深色模式样式 */
body.dark-mode .zhiji-window {
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-primary);
}

body.dark-mode .zhiji-main-content {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-radius: var(--radius-md);
}

body.dark-mode .zhiji-sidebar {
    background-color: var(--bg-primary);
    border-left-color: var(--border-primary);
}

body.dark-mode .zhiji-sidebar:hover {
    background-color: var(--bg-hover);
}

body.dark-mode .zhiji-content-container {
    background-color: var(--bg-secondary);
}

@media (max-width: 992px) {
    body.dark-mode .zhiji-sidebar {
        border-left: none;
        border-top-color: var(--border-primary);
    }
}

body.dark-mode .zhiji-blog-name {
    color: var(--text-primary);
}

body.dark-mode .zhiji-control-btn {
    opacity: 0.8;
}

body.dark-mode .zhiji-control-btn:hover {
    opacity: 1;
}

body.dark-mode .zhiji-mac-menu-item {
    color: var(--text-primary);
}

body.dark-mode .zhiji-titlebar .zhiji-mac-menu-item:hover {
    background-color: transparent;
    border-color: transparent;
    color: var(--primary-color);
}

body.dark-mode .zhiji-mac-menu-separator {
    background-color: var(--border-primary);
}

body.dark-mode .zhiji-footer {
    background-color: var(--bg-primary);
    border-top-color: var(--border-primary);
    color: var(--text-secondary);
}

.zhiji-post-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 10px;
}

.zhiji-post-grid:not([data-posts-per-row]) {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.zhiji-post-grid[data-posts-per-row="1"] {
    grid-template-columns: 1fr;
}

.zhiji-post-grid[data-posts-per-row="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.zhiji-post-grid[data-posts-per-row="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.zhiji-post-grid[data-posts-per-row="4"] {
    grid-template-columns: repeat(4, 1fr);
}

.zhiji-post-grid-item {
    height: 100%;
}

.zhiji-index-post,
.zhiji-list-post,
.zhiji-grid-post {
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    height: 100%;
}

.zhiji-post-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}

.zhiji-list-post {
    flex-direction: row;
    align-items: stretch;
}

.zhiji-list-post-thumbnail,
.zhiji-grid-post-thumbnail,
.zhiji-index-post-thumbnail {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: none;
}

.zhiji-list-post-thumbnail {
    flex: 0 0 240px;
    height: 180px;
}

.zhiji-grid-post-thumbnail,
.zhiji-index-post-thumbnail {
    width: 100%;
    height: 160px;
    background-color: #f5f5f5;
}

.zhiji-list-post-thumbnail a,
.zhiji-grid-post-thumbnail a,
.zhiji-index-post-thumbnail a {
    display: block;
    height: 100%;
    width: 100%;
}

.zhiji-list-thumbnail-img,
.zhiji-grid-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
}

.zhiji-list-post-category,
.zhiji-grid-post-category {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 102, 204, 0.9);
    color: white;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.zhiji-list-post-content {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.zhiji-list-post-title,
.zhiji-grid-post-title {
    margin: 0 0 12px 0;
    font-weight: 600;
    line-height: 1.3;
}

.zhiji-list-post-title {
    font-size: 18px;
}

.zhiji-grid-post-title {
    font-size: 16px;
}

.zhiji-list-post-title a,
.zhiji-grid-post-title a {
    color: #1d1d1f;
    text-decoration: none;
}

.zhiji-list-post-meta,
.zhiji-grid-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: #6e6e73;
    margin-bottom: 16px;
}

.zhiji-list-post-tags,
.zhiji-grid-post-tags {
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow: hidden;
    align-items: center;
}

.zhiji-list-post-tags a,
.zhiji-grid-post-tags a {
    display: inline;
    padding: 0;
    background-color: transparent;
    color: #666;
    font-size: 12px;
    border-radius: 0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.zhiji-list-post-tags a:hover,
.zhiji-grid-post-tags a:hover {
    color: #4a6cf7;
}

.zhiji-list-post-views,
.zhiji-grid-post-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.zhiji-list-post-views a,
.zhiji-grid-post-views a {
    color: #6e6e73;
    text-decoration: none;
    transition: color 0.2s ease;
}

.zhiji-list-post-views a:hover,
.zhiji-grid-post-views a:hover {
    color: #4a6cf7;
}

.zhiji-list-post-excerpt,
.zhiji-grid-post-excerpt,
.zhiji-index-post-excerpt {
    flex: 1;
    margin-bottom: 16px;
    line-height: 1.6;
    color: #424245;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.zhiji-grid-post-excerpt,
.zhiji-index-post-excerpt {
    -webkit-line-clamp: 3;
}

.zhiji-grid-post-content,
.zhiji-index-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.zhiji-index-post-title {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.zhiji-post-grid[data-posts-per-row="2"] .zhiji-grid-post-thumbnail,
.zhiji-post-grid[data-posts-per-row="2"] .zhiji-index-post-thumbnail {
    height: 176px;
}

.zhiji-post-grid[data-posts-per-row="2"] .zhiji-grid-post-content,
.zhiji-post-grid[data-posts-per-row="2"] .zhiji-index-post-content {
    padding: 24px;
}

.zhiji-post-grid[data-posts-per-row="2"] .zhiji-index-post-title {
    font-size: 16px;
    margin-bottom: 16px;
}

.zhiji-post-grid[data-posts-per-row="2"] .zhiji-index-post-meta {
    font-size: 14px;
    gap: 15px;
}

.zhiji-post-grid[data-posts-per-row="2"] .zhiji-index-post-excerpt {
    font-size: 16px;
    line-height: 1.6;
}

.zhiji-post-grid[data-posts-per-row="3"] .zhiji-grid-post-thumbnail,
.zhiji-post-grid[data-posts-per-row="3"] .zhiji-index-post-thumbnail {
    height: 144px;
}

.zhiji-post-grid[data-posts-per-row="3"] .zhiji-grid-post-content,
.zhiji-post-grid[data-posts-per-row="3"] .zhiji-index-post-content {
    padding: 18px;
}

.zhiji-post-grid[data-posts-per-row="3"] .zhiji-index-post-title {
    font-size: 16px;
    margin-bottom: 12px;
}

.zhiji-post-grid[data-posts-per-row="3"] .zhiji-index-post-meta {
    font-size: 13px;
    gap: 12px;
}

.zhiji-post-grid[data-posts-per-row="3"] .zhiji-index-post-excerpt {
    font-size: 14px;
    line-height: 1.55;
}

.zhiji-post-grid[data-posts-per-row="4"] .zhiji-grid-post-thumbnail,
.zhiji-post-grid[data-posts-per-row="4"] .zhiji-index-post-thumbnail {
    height: 120px;
}

.zhiji-post-grid[data-posts-per-row="4"] .zhiji-grid-post-content,
.zhiji-post-grid[data-posts-per-row="4"] .zhiji-index-post-content {
    padding: 16px;
}

.zhiji-post-grid[data-posts-per-row="4"] .zhiji-index-post-title {
    font-size: 16px;
    margin-bottom: 10px;
}

.zhiji-post-grid[data-posts-per-row="4"] .zhiji-index-post-meta {
    font-size: 12px;
    gap: 10px;
}

.zhiji-post-grid[data-posts-per-row="4"] .zhiji-index-post-excerpt {
    font-size: 13px;
    line-height: 1.5;
}

/* 随机浏览按钮样式 */
/* 鼠标经过旋转动画 */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 0.5s linear;
}

/* 加载状态动画 */
.zhiji-header-btn.loading {
    animation: spin 1s linear infinite;
}

/* 按钮悬停效果 */
.zhiji-random-btn:hover {
    background-color: rgba(74, 108, 247, 0.1);
    color: #4a6cf7;
}

/* 右侧悬浮工具面板样式 */
.zhiji-float-tools {
    position: fixed;
    right: 10px;
    bottom: 30px;
    display: flex;
    flex-direction: column-reverse;
    gap: 15px;
    z-index: 9999;
}

/* 返回顶部按钮样式 */
.zhiji-back-to-top {
    width: 50px;
    height: 50px;
    background-color: rgba(74, 108, 247, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 1;
    visibility: visible;
}

.zhiji-back-to-top:hover {
    background-color: rgba(74, 108, 247, 1);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.zhiji-back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* 深色模式适配 */
body.dark-mode .zhiji-back-to-top {
    background-color: rgba(96, 125, 139, 0.9);
}

body.dark-mode .zhiji-back-to-top:hover {
    background-color: rgba(117, 146, 159, 1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .zhiji-float-tools {
        right: 10px;
        bottom: 20px;
        gap: 10px;
    }
    
    .zhiji-back-to-top {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .zhiji-list-post {
        flex-direction: column;
        align-items: stretch;
    }

    .zhiji-list-post-thumbnail {
        flex: 0 0 auto;
        height: 160px;
    }

    .zhiji-list-post-content {
        padding: 16px;
    }

    .zhiji-list-post-title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .zhiji-post-grid[data-posts-per-row="2"] .zhiji-grid-post-thumbnail,
    .zhiji-post-grid[data-posts-per-row="3"] .zhiji-grid-post-thumbnail,
    .zhiji-post-grid[data-posts-per-row="4"] .zhiji-grid-post-thumbnail,
    .zhiji-post-grid[data-posts-per-row="2"] .zhiji-index-post-thumbnail,
    .zhiji-post-grid[data-posts-per-row="3"] .zhiji-index-post-thumbnail,
    .zhiji-post-grid[data-posts-per-row="4"] .zhiji-index-post-thumbnail {
        height: 144px;
    }

    .zhiji-post-grid[data-posts-per-row="2"] .zhiji-grid-post-content,
    .zhiji-post-grid[data-posts-per-row="3"] .zhiji-grid-post-content,
    .zhiji-post-grid[data-posts-per-row="4"] .zhiji-grid-post-content,
    .zhiji-post-grid[data-posts-per-row="2"] .zhiji-index-post-content,
    .zhiji-post-grid[data-posts-per-row="3"] .zhiji-index-post-content,
    .zhiji-post-grid[data-posts-per-row="4"] .zhiji-index-post-content {
        padding: 18px;
    }

    .zhiji-post-grid[data-posts-per-row="2"] .zhiji-index-post-title,
    .zhiji-post-grid[data-posts-per-row="3"] .zhiji-index-post-title,
    .zhiji-post-grid[data-posts-per-row="4"] .zhiji-index-post-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .zhiji-post-grid[data-posts-per-row="4"] .zhiji-index-post-meta {
        font-size: 13px;
        gap: 12px;
    }

    .zhiji-post-grid[data-posts-per-row="4"] .zhiji-index-post-excerpt {
        font-size: 14px;
        line-height: 1.6;
    }
}

.zhiji-index-post-title a {
    color: #1d1d1f;
    text-decoration: none;
    transition: color 0.2s ease;
}

.zhiji-index-post-title a:hover {
    color: #0066cc;
}

.zhiji-index-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: #6e6e73;
    margin-bottom: 16px;
}

.zhiji-index-post-excerpt {
    flex: 1;
    margin-bottom: 16px;
    line-height: 1.6;
    color: #424245;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zhiji-index-post-tags {
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.zhiji-index-post-tags a {
    display: inline-block;
    padding: 4px 12px;
    background-color: #f5f5f7;
    color: #666;
    font-size: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.zhiji-index-post-tags a:hover {
    background-color: #0066cc;
    color: white;
    transform: translateY(-1px);
}

.zhiji-index-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background-color: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.zhiji-index-read-more:hover {
    background-color: #0052a3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.3);
}

.zhiji-index-pagination {
    margin-top: 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 6px;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-links .page-numbers:hover {
    background-color: #e9ecef;
    color: #007bff;
    border-color: #dee2e6;
}

.nav-links .page-numbers.current {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    font-weight: 600;
}

.nav-links .page-numbers.current:hover {
    background-color: #0066cc;
    border-color: #0066cc;
}

body.dark-mode .zhiji-post-grid-item {
    background-color: #1e1e1e;
}

body.dark-mode .zhiji-index-post,
body.dark-mode .zhiji-list-post,
body.dark-mode .zhiji-grid-post {
    background-color: rgba(30, 30, 30, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: #333;
}

body.dark-mode .zhiji-index-post-title a,
body.dark-mode .zhiji-list-post-title a,
body.dark-mode .zhiji-grid-post-title a {
    color: #e0e0e0;
}

body.dark-mode .zhiji-index-post-title a:hover,
body.dark-mode .zhiji-list-post-title a:hover,
body.dark-mode .zhiji-grid-post-title a:hover {
    color: #64b5f6;
}

body.dark-mode .zhiji-index-post-meta,
body.dark-mode .zhiji-list-post-meta,
body.dark-mode .zhiji-grid-post-meta {
    color: #9e9e9e;
}

body.dark-mode .zhiji-index-post-excerpt,
body.dark-mode .zhiji-list-post-excerpt,
body.dark-mode .zhiji-grid-post-excerpt {
    color: #bdbdbd;
}

body.dark-mode .zhiji-index-post-category,
body.dark-mode .zhiji-list-post-category,
body.dark-mode .zhiji-grid-post-category {
    background-color: rgba(100, 181, 246, 0.9);
}

body.dark-mode .zhiji-index-post:hover .zhiji-index-post-category {
    background-color: rgba(66, 165, 245, 0.9);
}

body.dark-mode .zhiji-index-post-category a {
    color: white;
}

body.dark-mode .zhiji-index-post-category a:hover {
    color: #e3f2fd;
}

body.dark-mode .zhiji-index-read-more {
    background-color: #1976d2;
}

body.dark-mode .zhiji-index-read-more:hover {
    background-color: #1565c0;
    box-shadow: 0 4px 8px rgba(25, 118, 210, 0.4);
}

body.dark-mode .zhiji-list-post-thumbnail,
body.dark-mode .zhiji-grid-post-thumbnail,
body.dark-mode .zhiji-index-post-thumbnail {
    background-color: #333;
}

body.dark-mode .zhiji-list-post-tags a,
body.dark-mode .zhiji-grid-post-tags a,
body.dark-mode .zhiji-index-post-tags a {
    color: #aaa;
}

body.dark-mode .zhiji-list-post-meta .zhiji-list-post-tags a,
body.dark-mode .zhiji-grid-post-meta a,
body.dark-mode .zhiji-index-post-meta a {
    color: #aaa;
}

body.dark-mode .zhiji-list-post-meta .zhiji-list-post-tags a:hover,
body.dark-mode .zhiji-grid-post-meta a:hover,
body.dark-mode .zhiji-index-post-meta a:hover {
    color: #64b5f6;
}

body.dark-mode .zhiji-index-pagination {
    background-color: #1e1e1e;
    border-color: #333;
}

body.dark-mode .nav-links {
    background-color: #252525;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body.dark-mode .nav-links .page-numbers {
    color: #e0e0e0;
    border-color: #333;
}

body.dark-mode .nav-links .page-numbers:hover {
    background-color: #252525;
    border-color: #1976d2;
    color: #64b5f6;
}

body.dark-mode .nav-links .page-numbers.current {
    background-color: #1976d2;
    border-color: #1565c0;
    color: #fff;
}

.nav-links .page-numbers.prev,
.nav-links .page-numbers.next {
    font-weight: 600;
    padding: 8px 16px;
}

.nav-links .page-numbers.prev:hover,
.nav-links .page-numbers.next:hover {
    background-color: #e9ecef;
    color: #007bff;
}

.nav-links .page-numbers.dots {
    padding: 8px 4px;
    color: #6c757d;
    cursor: default;
}

.nav-links .page-numbers.dots:hover {
    background-color: transparent;
    color: #6c757d;
    border-color: transparent;
}

body.dark-mode .nav-links .page-numbers.prev:hover,
body.dark-mode .nav-links .page-numbers.next:hover {
    background-color: #252525;
    color: #64b5f6;
}


.zhiji-single-post {
    margin-bottom: 10px;
    font-size: 17px;
}

.zhiji-single-post *, 
.zhiji-single-post *::before, 
.zhiji-single-post *::after {
    font-size: inherit;
}

.zhiji-single-post-header {
    position: relative;
    padding: 60px 20px;
    margin: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    max-width: var(--container-width);
    width: 100%;
    box-sizing: border-box;
    box-shadow: none;
}

.zhiji-single-post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 0;
}

.zhiji-single-post-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    color: #1a1a1a;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.zhiji-single-post-header .zhiji-single-post-title {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 24px;
}

.zhiji-single-post-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #6e6e73;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e5e7;
    position: relative;
    z-index: 1;
}

.zhiji-single-post-header .zhiji-single-post-meta {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    background: none;
}

.zhiji-single-post-header .zhiji-single-post-meta span {
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
}

.zhiji-single-post-header .zhiji-single-post-meta a {
    color: rgba(255, 255, 255, 0.9);
    transition: color var(--transition-fast);
}

.zhiji-single-post-header .zhiji-single-post-meta a:hover {
    color: var(--primary-color);
}

.zhiji-single-post-content {
    font-size: 17px;
    line-height: 2.0;
    color: #333;
    background-color: #fff;
    padding: 10px;
}

.zhiji-single-post-content * {
    font-size: inherit;
}

.zhiji-single-post-content p {
    margin-bottom: 10px;
    text-indent: 2em;
}

.zhiji-single-post-content img {
    display: block;
    margin: 10px auto;
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    height: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.zhiji-single-post-content img:hover {
    transform: scale(1.02);
}

@media (min-width: 768px) {
    .zhiji-single-post-content img {
        width: 100%;
        max-width: 800px;
    }
}

.zhiji-single-post-content h1,
.zhiji-single-post-content h2,
.zhiji-single-post-content h3,
.zhiji-single-post-content h4,
.zhiji-single-post-content h5,
.zhiji-single-post-content h6 {
    margin-top: 10px;
    margin-bottom: 10px;
    border-left: 3px solid #000;
    text-indent: 0;
    padding-left: 2em;
    font-weight: 600;
    line-height: 1.4;
    font-size: 17px;
}

.zhiji-single-post-content h1 {
    color: #0bd476;
    border-left-color: #0bd476;
}

.zhiji-single-post-content h2 {
    color: #ee8905;
    border-left-color: #ee8905;
}

.zhiji-single-post-content h3 {
    color: #4a6cf7;
    border-left-color: #4a6cf7;
}

.zhiji-single-post-content h4 {
    color: #ff4757;
    border-left-color: #ff4757;
}

.zhiji-single-post-content h5 {
    color: #2ed573;
    border-left-color: #2ed573;
}

.zhiji-single-post-content h6 {
    color: #ffa502;
    border-left-color: #ffa502;
}

.zhiji-single-post-content figure {
    margin: 30px 0;
    text-align: center;
}

.zhiji-single-post-content figcaption {
    display: block;
    margin: 12px auto 0;
    padding: 12px 20px;
    font-size: 14px;
    color: #6e6e73;
    text-align: center;
    max-width: 800px;
    background-color: rgba(74, 108, 247, 0.05);
    border-radius: 12px;
    font-style: italic;
}

.zhiji-single-post-tags {
    margin: 10px 0;
    padding: 20px;
    background-color: #f5f5f7;
    border-radius: 8px;
}



.zhiji-popup {
    margin: 40px 0;
    padding: 0;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

/* 弹出框头部样式 */
.zhiji-popup-header {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background-color: #f5f5f7;
    border-bottom: 1px solid #e0e0e0;
    height: 50px;
    box-sizing: border-box;
}

/* 弹出框控制按钮容器 */
.zhiji-popup-controls {
    display: flex;
    gap: 8px;
    margin-right: 16px;
}

/* 弹出框控制按钮 */
.zhiji-popup-control-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
    padding: 0;
}

/* 关闭按钮 */
.zhiji-popup-control-btn.close {
    background-color: #ff5f57;
}

/* 最小化按钮 */
.zhiji-popup-control-btn.minimize {
    background-color: #ffbd2e;
}

/* 最大化按钮 */
.zhiji-popup-control-btn.maximize {
    background-color: #28ca42;
}

/* 弹出框标题 */
.zhiji-popup-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #1d1d1f;
    flex: 1;
}

/* 弹出框内容 */
.zhiji-popup-content {
    padding: 20px;
}

/* 相关文章容器 */
.zhiji-related-posts {
    margin: 10px 0;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
}

.zhiji-related-posts-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1d1d1f;
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 2px solid #0066cc;
    display: inline-block;
    width: 100%;
    text-align: left;
}

/* 相关文章链接 */
.zhiji-related-post-link {
    color: #1d1d1f;
    text-decoration: none;
    transition: color 0.2s ease;
}

.zhiji-related-post-link:hover {
    color: #0066cc;
}

/* 深色模式下的弹出框样式 */
body.dark-mode .zhiji-popup {
    background-color: rgba(30, 30, 30, 0.95);
    border-color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .zhiji-popup-header {
    background-color: #252525;
    border-bottom-color: #333;
}

body.dark-mode .zhiji-popup-title {
    color: #e0e0e0;
}

body.dark-mode .zhiji-popup-content {
    background-color: rgba(30, 30, 30, 0.95);
}

body.dark-mode .zhiji-related-post-link {
    color: #e0e0e0;
}

body.dark-mode .zhiji-related-post-link:hover {
    color: #64b5f6;
}

.zhiji-search-popup-body .zhiji-related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.zhiji-search-popup-body .zhiji-related-post-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* 重置非弹出框模式下的样式 */
.zhiji-related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.zhiji-related-post-item {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.zhiji-related-post-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.zhiji-related-post-thumbnail {
    width: 100%;
    height: 120px;
    overflow: hidden;
    background-color: #f5f5f7;
}

.zhiji-related-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.zhiji-related-post-item:hover .zhiji-related-post-thumbnail img {
    transform: scale(1.05);
}

.zhiji-related-post-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.zhiji-related-post-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.4;
    flex: 1;
}

.zhiji-related-post-title a {
    color: #1d1d1f;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zhiji-related-post-title a:hover {
    color: #0066cc;
}

.zhiji-related-post-meta {
    font-size: 12px;
    color: #6e6e73;
    margin-top: 8px;
}



body.dark-mode .zhiji-single-post-title,
body.dark-mode .zhiji-related-post-title a {
    color: #e0e0e0;
}

body.dark-mode .zhiji-single-post-meta,
body.dark-mode .zhiji-related-post-meta {
    color: #9e9e9e;
}

body.dark-mode .zhiji-single-post-header {
    background-color: var(--bg-primary);
}

body.dark-mode .zhiji-single-post-header::before {
    background: linear-gradient(rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
}

body.dark-mode .zhiji-single-post-header .zhiji-single-post-meta span {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .zhiji-single-post-content {
    color: #e0e0e0;
    background-color: #252525;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .zhiji-single-post-content p {
    text-indent: 2em;
}

body.dark-mode .zhiji-single-post-tags {
    background-color: #252525;
}

body.dark-mode .zhiji-single-post-content img {
    border-radius: 8px;
}

body.dark-mode .zhiji-single-post-content figcaption {
    color: #9e9e9e;
    background-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .zhiji-nav-previous a,
body.dark-mode .zhiji-nav-next a {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-color: var(--border-primary);
    box-shadow: var(--shadow-sm);
    color: var(--text-primary);
}

body.dark-mode .zhiji-nav-previous a::before,
body.dark-mode .zhiji-nav-next a::before {
    background: linear-gradient(135deg, rgba(74, 108, 247, 0.1) 0%, rgba(74, 108, 247, 0.05) 100%);
}

body.dark-mode .zhiji-nav-previous a .nav-title,
body.dark-mode .zhiji-nav-next a .nav-title {
    color: var(--text-tertiary);
}

body.dark-mode .zhiji-nav-previous a:hover,
body.dark-mode .zhiji-nav-next a:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
    border-color: var(--border-primary);
}

body.dark-mode .zhiji-nav-previous a:hover .nav-link,
body.dark-mode .zhiji-nav-next a:hover .nav-link {
    color: var(--text-primary);
}

body.dark-mode .zhiji-related-posts {
    background-color: rgba(30, 30, 30, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .zhiji-related-posts-title {
    color: #e0e0e0;
    border-bottom-color: #1976d2;
}

body.dark-mode .zhiji-related-post-item {
    background-color: #252525;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .zhiji-related-post-thumbnail {
    background-color: #333;
}

.zhiji-single-post-content blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    border-left: 4px solid #0066cc;
    background-color: #f5f5f7;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #444;
}

.zhiji-single-post-content blockquote p {
    margin-bottom: 0;
}

.zhiji-single-post-content ul,
.zhiji-single-post-content ol {
    margin: 20px 0;
    padding-left: 24px;
}

.zhiji-single-post-content ul li,
.zhiji-single-post-content ol li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.zhiji-single-post-content ul li {
    list-style-type: disc;
}

.zhiji-single-post-content ol li {
    list-style-type: decimal;
}

.zhiji-single-post-content a {
    color: #0066cc;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.zhiji-single-post-content a:hover {
    color: #0052a3;
    border-bottom-color: #0052a3;
}

@media (max-width: 768px) {
    .zhiji-single-post-title {
        font-size: 28px;
    }

    .zhiji-single-post-meta {
        flex-wrap: wrap;
        gap: 16px;
        font-size: 13px;
    }

    .zhiji-single-post-content {
        font-size: 16px;
    }

    .zhiji-single-post-content h1 {
        font-size: 24px;
    }

    .zhiji-single-post-content h2 {
        font-size: 22px;
    }

    .zhiji-single-post-content h3 {
        font-size: 19px;
    }

    .zhiji-single-post-content blockquote {
        padding: 16px 20px;
    }
}

body.dark-mode .zhiji-single-post-content blockquote {
    background-color: #252525;
    border-left-color: #64b5f6;
    color: #ccc;
}

body.dark-mode .zhiji-single-post-content a {
    color: #64b5f6;
}

body.dark-mode .zhiji-single-post-content a:hover {
    color: #42a5f5;
    border-bottom-color: #42a5f5;
}

body.dark-mode .zhiji-single-post-content img {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .zhiji-single-post-content img:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

body.dark-mode .zhiji-single-post-content h1,
body.dark-mode .zhiji-single-post-content h2,
body.dark-mode .zhiji-single-post-content h3,
body.dark-mode .zhiji-single-post-content h4,
body.dark-mode .zhiji-single-post-content h5,
body.dark-mode .zhiji-single-post-content h6 {
    color: #e0e0e0;
}

body.dark-mode .zhiji-single-post-content h2 {
    border-bottom-color: #333;
}

.zhiji-pages-content {
    padding: 40px;
}

.zhiji-pages-page {
    margin-bottom: 40px;
}

.zhiji-pages-page-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1d1d1f;
}

.zhiji-pages-page-content {
    font-size: 16px;
    line-height: 1.8;
    color: #1d1d1f;
}

body.dark-mode .zhiji-pages-content {
    background-color: #1e1e1e;
}

body.dark-mode .zhiji-pages-page-title {
    color: #e0e0e0;
}

body.dark-mode .zhiji-pages-page-content {
    color: #e0e0e0;
}

.zhiji-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.zhiji-post-grid[data-posts-per-row="1"] {
    grid-template-columns: 1fr;
}

.zhiji-post-grid[data-posts-per-row="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.zhiji-post-grid[data-posts-per-row="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.zhiji-post-grid[data-posts-per-row="4"] {
    grid-template-columns: repeat(4, 1fr);
}

.zhiji-post-grid-item {
    height: 100%;
}

.zhiji-index-post {
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.zhiji-index-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.zhiji-index-post-thumbnail {
    width: 100%;
    overflow: hidden;
    background-color: #f5f5f5;
}

.zhiji-index-thumbnail-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.zhiji-index-post:hover .zhiji-index-thumbnail-img {
    transform: scale(1.05);
}

.zhiji-index-post-content {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.zhiji-index-post-title {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.zhiji-index-post-title a {
    color: #1d1d1f;
    text-decoration: none;
    transition: color 0.2s ease;
}

.zhiji-index-post-title a:hover {
    color: #0066cc;
}

.zhiji-index-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: #6e6e73;
    margin-bottom: 16px;
}

.zhiji-index-post-excerpt {
    flex: 1;
    margin-bottom: 16px;
    line-height: 1.6;
    color: #424245;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zhiji-index-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background-color: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.zhiji-index-read-more:hover {
    background-color: #0052a3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.3);
}

.zhiji-index-pagination {
    margin-top: 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 6px;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-links .page-numbers:hover {
    background-color: #e9ecef;
    color: #007bff;
    border-color: #dee2e6;
}

.nav-links .page-numbers.current {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    font-weight: 600;
}

.nav-links .page-numbers.current:hover {
    background-color: #0066cc;
    border-color: #0066cc;
}

body.dark-mode .zhiji-post-grid-item {
    background-color: #1e1e1e;
}

body.dark-mode .zhiji-index-post {
    background-color: rgba(30, 30, 30, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .zhiji-index-post-title a {
    color: #e0e0e0;
}

body.dark-mode .zhiji-index-post-title a:hover {
    color: #64b5f6;
}

body.dark-mode .zhiji-index-post-meta {
    color: #9e9e9e;
}

body.dark-mode .zhiji-index-post-excerpt {
    color: #bdbdbd;
}

body.dark-mode .zhiji-index-read-more {
    background-color: #1976d2;
}

body.dark-mode .zhiji-index-read-more:hover {
    background-color: #1565c0;
    box-shadow: 0 4px 8px rgba(25, 118, 210, 0.4);
}

body.dark-mode .zhiji-index-pagination {
    background-color: #1e1e1e;
    border-color: #333;
}

body.dark-mode .nav-links {
    background-color: #252525;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body.dark-mode .nav-links .page-numbers {
    color: #e0e0e0;
    border-color: #333;
}

body.dark-mode .nav-links .page-numbers:hover {
    background-color: #252525;
    border-color: #1976d2;
    color: #64b5f6;
}

body.dark-mode .nav-links .page-numbers.current {
    background-color: #1976d2;
    border-color: #1565c0;
    color: #fff;
}

.nav-links .page-numbers.prev,
.nav-links .page-numbers.next {
    font-weight: 600;
    padding: 8px 16px;
}

.nav-links .page-numbers.prev:hover,
.nav-links .page-numbers.next:hover {
    background-color: #e9ecef;
    color: #007bff;
}

.nav-links .page-numbers.dots {
    padding: 8px 4px;
    color: #6c757d;
    cursor: default;
}

.nav-links .page-numbers.dots:hover {
    background-color: transparent;
    color: #6c757d;
    border-color: transparent;
}

body.dark-mode .nav-links .page-numbers.prev:hover,
body.dark-mode .nav-links .page-numbers.next:hover {
    background-color: #252525;
    color: #64b5f6;
}

.zhiji-search-content {
    padding: 40px;
}

.zhiji-search-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
    color: #1d1d1f;
}

.zhiji-search-pagination {
    margin-top: 40px;
    text-align: center;
}

.zhiji-search-no-results {
    text-align: center;
    padding: 60px 20px;
}

.zhiji-search-no-results h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1d1d1f;
}

.zhiji-search-no-results p {
    font-size: 16px;
    color: #6e6e73;
    margin-bottom: 30px;
}

.zhiji-search-form {
    max-width: 500px;
    margin: 0 auto;
}

body.dark-mode .zhiji-search-content {
    background-color: #1e1e1e;
}

body.dark-mode .zhiji-search-title {
    color: #e0e0e0;
}

body.dark-mode .zhiji-search-no-results h2 {
    color: #e0e0e0;
}

body.dark-mode .zhiji-search-no-results p {
    color: #9e9e9e;
}

.zhiji-404-content {
    padding: 60px 40px;
    text-align: center;
}

.zhiji-404-error-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1d1d1f;
}

.zhiji-404-error-icon {
    margin: 30px 0;
}

.zhiji-404-error-message {
    font-size: 18px;
    color: #6e6e73;
    margin-bottom: 30px;
}

.zhiji-404-read-more {
    display: inline-block;
    padding: 12px 24px;
    background-color: #0066cc;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.zhiji-404-read-more:hover {
    background-color: #0052a3;
}

body.dark-mode .zhiji-404-content {
    background-color: #1e1e1e;
}

body.dark-mode .zhiji-404-error-title {
    color: #e0e0e0;
}

body.dark-mode .zhiji-404-error-message {
    color: #9e9e9e;
}

body.dark-mode .zhiji-404-read-more {
    background-color: #1976d2;
}

body.dark-mode .zhiji-404-read-more:hover {
    background-color: #1565c0;
}

.zhiji-404-error-icon {
    margin: 30px 0;
}

@media (max-width: 480px) {
    .zhiji-mac-menu-right .zhiji-mac-menu-separator {
        display: none;
    }
}

@media (max-width: 1024px) {
    .zhiji-window {
        margin: 5px;
    }
}

@media (max-width: 992px) {
    .zhiji-content-container {
        padding: 0;
    }

    .zhiji-sidebar {
        width: 220px;
        min-width: 220px;
        padding: 10px;
    }

    .zhiji-post-grid[data-posts-per-row="3"] {
        grid-template-columns: repeat(2, 1fr);
    }

    .zhiji-post-grid[data-posts-per-row="4"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .zhiji-window {
        margin: 5px;
        border-radius: 8px;
    }

    .zhiji-titlebar {
        padding: 10px 16px;
    }

    .zhiji-post-grid[data-posts-per-row="3"] {
        grid-template-columns: 1fr;
    }

    .zhiji-post-grid[data-posts-per-row="4"] {
        grid-template-columns: 1fr;
    }

    .zhiji-index-content,
    .zhiji-single-content,
    .zhiji-pages-content,
    .zhiji-404-content,
    .zhiji-search-content {
        padding: 5px;
    }

    .zhiji-sidebar {
        display: none;
    }

    .zhiji-main-content {
        width: 100%;
    }

    .zhiji-index-post-title,
    .zhiji-search-title {
        font-size: 24px;
    }

    .zhiji-single-post-title,
    .zhiji-pages-page-title {
        font-size: 28px;
    }

    .zhiji-404-error-title {
        font-size: 36px;
    }

    .zhiji-index-post-meta,
    .zhiji-single-post-meta {
        flex-wrap: wrap;
        gap: 12px;
        font-size: 13px;
    }

    .zhiji-index-post {
        margin-bottom: 30px;
        padding-bottom: 30px;
    }

    .zhiji-index-comments-content {
        padding: 20px;
    }

    .zhiji-index-comment-body {
        flex-direction: column;
        gap: 12px;
    }

    .zhiji-index-comment-author-avatar {
        align-self: flex-start;
    }

    .zhiji-index-comment-form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .zhiji-index-comment-form {
        padding: 20px;
    }

    .zhiji-index-comment-submit,
    .zhiji-index-comment-cancel {
        width: 100%;
        margin-left: 0;
        margin-bottom: 10px;
    }

    .zhiji-index-comments-title {
        font-size: 18px;
    }

    .zhiji-index-comment-reply-title {
        font-size: 16px;
    }

    .zhiji-music-container {
        right: 10px;
    }

    .zhiji-music-panel {
        width: calc(100vw - 80px);
        max-width: 320px;
    }

    .zhiji-share-section {
        padding: 20px;
    }

    .zhiji-share-container {
        flex-direction: column;
        align-items: center;
    }

    .zhiji-share-buttons {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .zhiji-share-btn {
        justify-content: center;
        flex: 1;
        min-width: 80px;
        padding: 8px 12px;
        font-size: 13px;
    }

    .zhiji-share-btn i {
        font-size: 12px;
    }

    .zhiji-share-qrcode {
        width: 100%;
        max-width: 250px;
    }

    .zhiji-search-popup-content {
        width: 95%;
        max-width: 500px;
    }

    .zhiji-search-popup-body {
        padding: 20px;
    }

    #zhiji-search-input {
        font-size: 14px;
        padding: 10px 45px 10px 14px;
    }

    .zhiji-search-submit {
        padding: 6px 10px;
    }

    .zhiji-search-result-item {
        padding: 12px;
    }

    .zhiji-search-result-title {
        font-size: 14px;
    }

    .zhiji-single-navigation {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .zhiji-nav-previous a,
    .zhiji-nav-next a {
        padding: 20px 24px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        text-align: center;
    }

    .zhiji-nav-previous a {
        justify-content: center;
    }

    .zhiji-nav-next a {
        justify-content: center;
    }

    .zhiji-nav-previous a .nav-content,
    .zhiji-nav-next a .nav-content {
        align-items: center;
    }

    .zhiji-nav-next a .nav-link {
        text-align: center;
    }

    .zhiji-nav-previous a .nav-link {
        text-align: center;
    }

    .zhiji-nav-previous a .nav-icon,
    .zhiji-nav-next a .nav-icon {
        font-size: 24px;
    }

    .zhiji-nav-previous a .nav-link,
    .zhiji-nav-next a .nav-link {
        font-size: 15px;
    }

    .zhiji-nav-previous a:hover,
    .zhiji-nav-next a:hover {
        transform: none;
    }

    .zhiji-related-posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .zhiji-related-post-thumbnail {
        height: 100px;
    }

    .zhiji-related-post-title {
        font-size: 13px;
    }
}

@media (max-width: 480px) {

    .zhiji-index-content,
    .zhiji-single-content,
    .zhiji-pages-content,
    .zhiji-404-content,
    .zhiji-search-content {
        padding: 5px;
    }
    
    /* 手机页面只显示2篇相关文章 */
    .zhiji-related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .zhiji-related-post-thumbnail {
        height: 90px;
    }
    
    .zhiji-related-post-title {
        font-size: 12px;
    }

    .zhiji-single-post-title,
    .zhiji-pages-page-title {
        font-size: 24px;
    }

    .zhiji-404-error-title {
        font-size: 28px;
    }

    .zhiji-404-content {
        padding: 40px 16px;
    }

    .zhiji-post-grid {
        grid-template-columns: 1fr;
    }

    .zhiji-post-grid[data-posts-per-row="2"],
    .zhiji-post-grid[data-posts-per-row="3"],
    .zhiji-post-grid[data-posts-per-row="4"] {
        grid-template-columns: 1fr;
    }

    .zhiji-index-comments-content {
        padding: 16px;
    }

    .zhiji-index-window-header {
        padding: 10px 16px;
    }

    .zhiji-index-comment-text {
        font-size: 14px;
    }

    .zhiji-index-comment-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .zhiji-music-toggle {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .zhiji-music-play {
        font-size: 28px;
        width: 45px;
        height: 45px;
    }

    .zhiji-music-btn {
        font-size: 16px;
        width: 36px;
        height: 36px;
    }

    .zhiji-tang-poem {
        padding: 16px;
        margin: 10px 0;
    }

    .zhiji-tang-poem-title {
        font-size: 18px;
    }

    .zhiji-tang-poem-content {
        font-size: 14px;
    }
}

.zhiji-index-comment {
    background-color: #f8f9fa;
    border: 1px solid transparent;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.zhiji-index-comment:hover {
    background-color: #ffffff;
    border-color: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.zhiji-index-comment:last-child {
    margin-bottom: 0;
}

.zhiji-index-comment-body {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.zhiji-index-comment-author-avatar {
    flex-shrink: 0;
    position: relative;
}

.zhiji-index-comment-author-avatar img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 3px solid #ffffff;
}

.zhiji-index-comment-author-avatar img:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.3);
}

.zhiji-index-comment-content {
    flex: 1;
    min-width: 0;
}

.zhiji-index-comment-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.zhiji-index-comment-author {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.zhiji-index-comment-author:hover {
    color: #0066cc;
}

.zhiji-index-comment-author::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0066cc;
    transition: width 0.3s ease;
}

.zhiji-index-comment-author:hover::after {
    width: 100%;
}

.zhiji-index-comment-date {
    font-size: 14px;
    color: #6c757d;
    position: relative;
    padding-left: 16px;
}

.zhiji-index-comment-date::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background-color: #dee2e6;
    border-radius: 50%;
}

.zhiji-index-comment-date a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.zhiji-index-comment-date a:hover {
    color: #0066cc;
}

.zhiji-index-comment-edit {
    font-size: 14px;
}

.zhiji-index-comment-edit a {
    color: #6c757d;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.zhiji-index-comment-edit a:hover {
    color: #0066cc;
    background-color: rgba(0, 102, 204, 0.1);
    border-color: rgba(0, 102, 204, 0.2);
}

.zhiji-index-comment-awaiting-moderation {
    font-size: 14px;
    color: #ff9500;
    margin-bottom: 16px;
    padding: 10px 16px;
    background-color: rgba(255, 149, 0, 0.1);
    border-radius: 8px;
    display: inline-block;
    border-left: 4px solid #ff9500;
    transition: all 0.3s ease;
}

.zhiji-index-comment-awaiting-moderation:hover {
    background-color: rgba(255, 149, 0, 0.15);
    transform: translateX(4px);
}

.zhiji-index-comment-text {
    font-size: 16px;
    line-height: 1.75;
    color: #495057;
    margin-bottom: 16px;
    word-wrap: break-word;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #f1f3f5;
    transition: all 0.3s ease;
}

.zhiji-index-comment:hover .zhiji-index-comment-text {
    border-color: #e3f2fd;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
}

.zhiji-index-comment-reply {
    margin-top: 12px;
}

.zhiji-index-comment-reply a {
    display: inline-block;
    padding: 8px 16px;
    background-color: #ffffff;
    color: #212529;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
    position: relative;
    overflow: hidden;
}

.zhiji-index-comment-reply a:hover {
    background-color: #0066cc;
    color: white;
    border-color: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.zhiji-index-comment-reply a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%);
    transition: left 0.3s ease;
}

.zhiji-index-comment-reply a:hover::before {
    left: 100%;
}

.zhiji-index-comment-reply-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #212529;
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 2px solid #0066cc;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.zhiji-index-comment-form {
    margin-top: 48px;
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.zhiji-index-comment-form:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.zhiji-index-comment-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.zhiji-index-comment-form-field {
    position: relative;
}

.zhiji-index-comment-form-field input {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    background-color: white;
    color: #212529;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.zhiji-index-comment-form-field input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.15);
    transform: translateY(-2px);
}

.zhiji-index-comment-field {
    margin-bottom: 24px;
}

.zhiji-index-comment-field textarea {
    width: 100%;
    min-height: 140px;
    padding: 20px;
    font-size: 16px;
    line-height: 1.6;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    background-color: white;
    color: #212529;
    resize: vertical;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-family: "KaiTi", "STKaiti", "楷体", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.zhiji-index-comment-field textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.15);
    transform: translateY(-2px);
}

.zhiji-index-comment-submit {
    display: inline-block;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background-color: #0066cc;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 140px;
    position: relative;
    overflow: hidden;
}

.zhiji-index-comment-submit:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.zhiji-index-comment-submit:active {
    transform: translateY(0);
}

.zhiji-index-comment-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%);
    transition: left 0.4s ease;
}

.zhiji-index-comment-submit:hover::before {
    left: 100%;
}

.zhiji-index-comment-cancel {
    display: inline-block;
    margin-left: 16px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    color: #6c757d;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.zhiji-index-comment-cancel:hover {
    background-color: #f8f9fa;
    color: #495057;
    border-color: #ced4da;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.zhiji-index-comments-closed {
    text-align: center;
    padding: 48px;
    font-size: 16px;
    color: #6c757d;
    background-color: #f8f9fa;
    border-radius: 16px;
    margin-top: 36px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.zhiji-index-comments-closed:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.navigation.comment-navigation {
    margin-top: 48px;
    text-align: center;
}

.zhiji-index-comment-notes {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 24px;
    text-align: center;
    padding: 12px 24px;
    background-color: rgba(0, 102, 204, 0.05);
    border-radius: 8px;
    border-left: 4px solid #0066cc;
}

/* 评论区主容器样式 */
.zhiji-index-comments {
    margin: 40px 0;
    background-color: #fff;
    border: 1px solid #e5e5e7;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Mac窗口标题栏样式 */
.zhiji-index-window-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e5e5e7;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 窗口控制按钮 */
.zhiji-index-window-controls {
    display: flex;
    gap: 8px;
}

.zhiji-index-window-control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.zhiji-index-window-control-close {
    background-color: #ff5f56;
}

.zhiji-index-window-control-minimize {
    background-color: #ffbd2e;
}

.zhiji-index-window-control-maximize {
    background-color: #27ca3f;
}

/* 窗口标题 */
.zhiji-index-window-title {
    font-size: 14px;
    font-weight: 500;
    color: #6e6e73;
}

/* 评论区内容 */
.zhiji-index-comments-content {
    padding: 24px;
}

/* 评论标题 */
.zhiji-index-comments-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1a1a1a;
}

/* 评论列表 */
.zhiji-index-comments-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

body.dark-mode .zhiji-index-comments {
    background-color: #252525;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
}

body.dark-mode .zhiji-index-window-header {
    background-color: #2d2d2d;
    border-bottom-color: #404040;
}

body.dark-mode .zhiji-index-window-title,
body.dark-mode .zhiji-index-comments-title,
body.dark-mode .zhiji-index-comment-author,
body.dark-mode .zhiji-index-comment-reply-title {
    color: #e0e0e0;
}

body.dark-mode .zhiji-index-comments-content {
    background-color: #1e1e1e;
}

body.dark-mode .zhiji-index-comment {
    background-color: #252525;
    border-color: #333;
}

body.dark-mode .zhiji-index-comment:hover {
    background-color: #2d2d2d;
    border-color: #404040;
}

body.dark-mode .zhiji-index-comment-author:hover {
    color: #64b5f6;
}

body.dark-mode .zhiji-index-comment-author::after {
    background-color: #64b5f6;
}

body.dark-mode .zhiji-index-comment-date,
body.dark-mode .zhiji-index-comment-date a,
body.dark-mode .zhiji-index-comment-edit a {
    color: #9e9e9e;
}

body.dark-mode .zhiji-index-comment-date::before {
    background-color: #404040;
}

body.dark-mode .zhiji-index-comment-date a:hover,
body.dark-mode .zhiji-index-comment-edit a:hover {
    color: #64b5f6;
}

body.dark-mode .zhiji-index-comment-edit a:hover {
    background-color: rgba(100, 181, 246, 0.1);
    border-color: rgba(100, 181, 246, 0.2);
}

body.dark-mode .zhiji-index-comment-awaiting-moderation {
    color: #ff9500;
    background-color: rgba(255, 149, 0, 0.1);
    border-left-color: #ff9500;
}

body.dark-mode .zhiji-index-comment-awaiting-moderation:hover {
    background-color: rgba(255, 149, 0, 0.15);
}

body.dark-mode .zhiji-index-comment-text {
    color: #bdbdbd;
    background-color: #2d2d2d;
    border-color: #404040;
}

body.dark-mode .zhiji-index-comment:hover .zhiji-index-comment-text {
    border-color: rgba(100, 181, 246, 0.2);
    box-shadow: 0 2px 8px rgba(100, 181, 246, 0.1);
}

body.dark-mode .zhiji-index-comment-reply a,
body.dark-mode .zhiji-index-comment-cancel {
    background-color: #3a3a3a;
    color: #e0e0e0;
    border-color: #404040;
}

body.dark-mode .zhiji-index-comment-reply a:hover {
    background-color: #1976d2;
    border-color: #1565c0;
}

body.dark-mode .zhiji-index-comment-reply-title {
    border-bottom-color: #1976d2;
}

body.dark-mode .zhiji-index-comment-form {
    background-color: #252525;
    border-color: #333;
}

body.dark-mode .zhiji-index-comment-form-field input,
body.dark-mode .zhiji-index-comment-field textarea {
    background-color: #3a3a3a;
    border-color: #404040;
    color: #e0e0e0;
}

body.dark-mode .zhiji-index-comment-form-field input:focus,
body.dark-mode .zhiji-index-comment-field textarea:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.2);
}

body.dark-mode .zhiji-index-comment-submit {
    background-color: #1976d2;
}

body.dark-mode .zhiji-index-comment-submit:hover {
    background-color: #1565c0;
}

body.dark-mode .zhiji-index-comment-cancel:hover {
    background-color: #424242;
    color: #e0e0e0;
    border-color: #505050;
}

body.dark-mode .zhiji-index-comments-closed {
    color: #9e9e9e;
    background-color: #252525;
    border-color: #333;
}

body.dark-mode .nav-previous a,
body.dark-mode .nav-next a {
    background-color: #3a3a3a;
    color: #e0e0e0;
    border-color: #404040;
}

body.dark-mode .nav-previous a:hover,
body.dark-mode .nav-next a:hover {
    background-color: #1976d2;
    border-color: #1565c0;
}

body.dark-mode .zhiji-index-comment-notes {
    color: #9e9e9e;
    background-color: rgba(25, 118, 210, 0.1);
    border-left-color: #1976d2;
}

.zhiji-share-section {
    margin: 10px 0;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
}



.zhiji-share-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
}

.zhiji-share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.zhiji-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.zhiji-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.zhiji-share-wechat {
    background-color: #07C160;
    color: white;
}

.zhiji-share-wechat:hover {
    background-color: #05ae54;
}

.zhiji-share-qq {
    background-color: #12B7F5;
    color: white;
}

.zhiji-share-qq:hover {
    background-color: #0aa3d8;
}

.zhiji-share-weibo {
    background-color: #E6162D;
    color: white;
}

.zhiji-share-weibo:hover {
    background-color: #c41327;
}

.zhiji-share-qrcode {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    min-width: 200px;
}

.zhiji-share-qrcode-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-align: center;
}

.zhiji-share-qrcode-image {
    width: 150px;
    height: 150px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.zhiji-share-qrcode-image img {
    max-width: 100%;
    max-height: 100%;
}

.zhiji-share-qrcode-info {
    text-align: center;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.zhiji-share-wechat-popup {
    position: absolute;
    display: none;
    z-index: 1000;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    min-width: 280px;
    overflow: hidden;
}

.zhiji-share-wechat-header {
    background-color: #f5f5f7;
    padding: 10px 16px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.zhiji-share-wechat-controls {
    display: flex;
    gap: 8px;
}

.zhiji-share-wechat-control-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    padding: 0;
}

.zhiji-share-wechat-control-btn.close {
    background-color: #ff5f57;
}

.zhiji-share-wechat-control-btn.minimize {
    background-color: #ffbd2e;
}

.zhiji-share-wechat-control-btn.maximize {
    background-color: #28ca42;
}

.zhiji-share-wechat-title {
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
}

.zhiji-share-wechat-content {
    padding: 20px;
}

body.dark-mode .zhiji-share-section {
    background-color: #252525;
}

body.dark-mode .zhiji-share-qrcode-title,
body.dark-mode .zhiji-share-wechat-title {
    color: #e0e0e0;
}

body.dark-mode .zhiji-share-qrcode {
    background-color: #3a3a3a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .zhiji-share-qrcode-image {
    border-color: #555;
    background-color: #3a3a3a;
}

body.dark-mode .zhiji-share-qrcode-info {
    color: #aaa;
}

body.dark-mode .zhiji-share-wechat-popup {
    background-color: #1e1e1e;
    border-color: #333;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body.dark-mode .zhiji-share-wechat-header {
    background-color: #252525;
    border-bottom-color: #333;
}

body.dark-mode .zhiji-share-wechat-content {
    background-color: #1e1e1e;
}

@media (max-width: 768px) {
    .zhiji-share-section {
        padding: 20px;
    }

    .zhiji-share-container {
        flex-direction: column;
        align-items: center;
    }

    .zhiji-share-buttons {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .zhiji-share-btn {
        justify-content: center;
        flex: 1;
        min-width: 80px;
        padding: 8px 12px;
        font-size: 13px;
    }

    .zhiji-share-btn i {
        font-size: 12px;
    }

    .zhiji-share-qrcode {
        width: 100%;
        max-width: 250px;
    }
}

.zhiji-search-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: none;
    box-sizing: border-box;
}

.zhiji-search-popup.show {
    display: flex;
    animation: zhiji-search-fade-in 0.3s ease-out;
}

@keyframes zhiji-search-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.zhiji-search-popup-content {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-sizing: border-box;
    animation: zhiji-search-content-slide-in 0.3s ease-out;
}

@keyframes zhiji-search-content-slide-in {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

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

.zhiji-search-popup-header {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background-color: #f5f5f7;
    border-bottom: 1px solid #e0e0e0;
    height: 50px;
    box-sizing: border-box;
}

.zhiji-search-controls {
    display: flex;
    gap: 8px;
    margin-right: 16px;
}

.zhiji-search-control-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
    padding: 0;
}

.zhiji-search-control-btn.close {
    background-color: #ff5f57;
}

.zhiji-search-control-btn.minimize {
    background-color: #ffbd2e;
}

.zhiji-search-control-btn.maximize {
    background-color: #28ca42;
}

.zhiji-search-popup-body {
    padding: 24px;
    box-sizing: border-box;
}

#zhiji-search-form {
    position: relative;
    margin-bottom: 20px;
}

#zhiji-search-input {
    width: 100%;
    padding: 12px 50px 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

#zhiji-search-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

.zhiji-search-submit {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.zhiji-search-submit:hover {
    background-color: #0052a3;
}

.zhiji-search-results {
    max-height: 400px;
    overflow-y: auto;
}

body.dark-mode .zhiji-search-popup {
    background-color: rgba(0, 0, 0, 0.7);
}

body.dark-mode .zhiji-search-popup-content {
    background-color: #2d2d2d;
    border-color: #404040;
}

body.dark-mode .zhiji-search-popup-header {
    background-color: #252525;
    border-bottom-color: #333;
}

body.dark-mode .zhiji-search-popup-header h3 {
    color: #e0e0e0;
}

.zhiji-content-mode-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: none;
    box-sizing: border-box;
}

.zhiji-content-mode-popup.show {
    display: flex;
    animation: zhiji-content-mode-fade-in 0.3s ease-out;
}

@keyframes zhiji-content-mode-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.zhiji-content-mode-popup-content {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-sizing: border-box;
    animation: zhiji-content-mode-content-slide-in 0.3s ease-out;
}

@keyframes zhiji-content-mode-content-slide-in {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

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

.zhiji-content-mode-popup-header {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background-color: #f5f5f7;
    border-bottom: 1px solid #e0e0e0;
    height: 50px;
    box-sizing: border-box;
}

.zhiji-content-mode-controls {
    display: flex;
    gap: 8px;
    margin-right: 16px;
}

.zhiji-content-mode-control-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
    padding: 0;
}

.zhiji-content-mode-control-btn.close {
    background-color: #ff5f57;
}

.zhiji-content-mode-control-btn.minimize {
    background-color: #ffbd2e;
}

.zhiji-content-mode-control-btn.maximize {
    background-color: #28ca42;
}

.zhiji-content-mode-popup-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
    flex: 1;
    text-align: center;
}

.zhiji-content-mode-popup-body {
    padding: 24px;
}

.zhiji-content-mode-container {
    max-height: 500px;
    overflow-y: auto;
}

.zhiji-content-mode-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1d1d1f;
}

.zhiji-content-mode-posts {
    margin-bottom: 32px;
}

.zhiji-content-mode-post-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.zhiji-content-mode-post-item:hover {
    background-color: #f5f5f7;
}

.zhiji-content-mode-post-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
}

.zhiji-content-mode-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zhiji-content-mode-post-info {
    flex: 1;
}

.zhiji-content-mode-post-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #1d1d1f;
    text-decoration: none;
    display: block;
}

.zhiji-content-mode-post-title:hover {
    color: #0066cc;
}

.zhiji-content-mode-post-meta {
    font-size: 14px;
    color: #666;
}

body.dark-mode .zhiji-content-mode-popup {
    background-color: rgba(0, 0, 0, 0.7);
}

body.dark-mode .zhiji-content-mode-popup-content {
    background-color: #2d2d2d;
    border-color: #404040;
}

body.dark-mode .zhiji-content-mode-popup-header {
    background-color: #252525;
    border-bottom-color: #333;
}

body.dark-mode .zhiji-content-mode-popup-header h3 {
    color: #e0e0e0;
}

body.dark-mode .zhiji-content-mode-title {
    color: #e0e0e0;
}

body.dark-mode .zhiji-content-mode-post-item:hover {
    background-color: #333;
}

body.dark-mode .zhiji-content-mode-post-title {
    color: #e0e0e0;
}

body.dark-mode .zhiji-content-mode-post-title:hover {
    color: #64b5f6;
}

body.dark-mode .zhiji-content-mode-post-meta {
    color: #aaa;
}

body.dark-mode #zhiji-search-input {
    background-color: #1e1e1e;
    border-color: #333;
    color: #e0e0e0;
}

body.dark-mode #zhiji-search-input:focus {
    border-color: #64b5f6;
    box-shadow: 0 0 0 2px rgba(100, 181, 246, 0.2);
}

body.dark-mode .zhiji-search-submit {
    background-color: #64b5f6;
}

body.dark-mode .zhiji-search-submit:hover {
    background-color: #42a5f5;
}

@media (max-width: 768px) {
    .zhiji-search-popup-content {
        width: 95%;
        max-width: 500px;
    }

    .zhiji-search-popup-body {
        padding: 10px;
    }

    #zhiji-search-input {
        font-size: 14px;
        padding: 10px 45px 10px 14px;
    }

    .zhiji-search-submit {
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .zhiji-search-popup-content {
        width: 98%;
        max-width: 98%;
    }

    .zhiji-search-popup-body {
        padding: 16px;
    }

    #zhiji-search-input {
        font-size: 13px;
        padding: 8px 40px 8px 12px;
    }

    .zhiji-search-submit {
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .zhiji-mac-menu-right .zhiji-mac-menu-separator {
        display: none;
    }
}

@media (max-width: 1024px) {
    .zhiji-window {
        margin: 10px;
        max-width: calc(100% - 30px);
    }
}

@media (max-width: 992px) {
    .zhiji-content-container {
        padding: 0;
    }

    .zhiji-post-grid[data-posts-per-row="3"] {
        grid-template-columns: repeat(2, 1fr);
    }

    .zhiji-post-grid[data-posts-per-row="4"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .zhiji-window {
        margin: 10px;
        border-radius: 8px;
        max-width: calc(100% - 20px);
    }

    .zhiji-titlebar {
        padding: 10px 10px;
    }

    .zhiji-post-grid[data-posts-per-row="3"] {
        grid-template-columns: 1fr;
    }

    .zhiji-post-grid[data-posts-per-row="4"] {
        grid-template-columns: 1fr;
    }

    .zhiji-index-content,
    .zhiji-single-content,
    .zhiji-pages-content,
    .zhiji-404-content,
    .zhiji-search-content {
        padding: 5px;
    }

    .zhiji-index-post-title,
    .zhiji-search-title {
        font-size: 24px;
    }

    .zhiji-single-post-title,
    .zhiji-pages-page-title {
        font-size: 28px;
    }

    .zhiji-404-error-title {
        font-size: 36px;
    }

    .zhiji-index-post-meta,
    .zhiji-single-post-meta {
        flex-wrap: wrap;
        gap: 8px;
        font-size: 13px;
    }

    .zhiji-index-post {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .zhiji-index-comments-content {
        padding: 10px;
    }

    .zhiji-index-comment-body {
        flex-direction: column;
        gap: 10px;
    }

    .zhiji-index-comment-author-avatar {
        align-self: flex-start;
    }

    .zhiji-index-comment-form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .zhiji-index-comment-form {
        padding: 10px;
    }

    .zhiji-index-comment-submit,
    .zhiji-index-comment-cancel {
        width: 100%;
        margin-left: 0;
        margin-bottom: 10px;
    }

    .zhiji-index-comments-title {
        font-size: 18px;
    }

    .zhiji-index-comment-reply-title {
        font-size: 16px;
    }

    .zhiji-music-container {
        right: 10px;
    }

    .zhiji-music-panel {
        width: calc(100vw - 80px);
        max-width: 320px;
    }

    .zhiji-share-section {
        padding: 10px;
    }

    .zhiji-share-container {
        flex-direction: column;
        align-items: center;
    }

    .zhiji-share-buttons {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .zhiji-share-btn {
        justify-content: center;
        flex: 1;
        min-width: 80px;
        padding: 8px 12px;
        font-size: 13px;
    }

    .zhiji-share-btn i {
        font-size: 12px;
    }

    .zhiji-share-qrcode {
        width: 100%;
        max-width: 250px;
    }

    .zhiji-search-popup-content {
        width: 95%;
        max-width: 500px;
    }

    .zhiji-search-popup-body {
        padding: 20px;
    }

    #zhiji-search-input {
        font-size: 14px;
        padding: 10px 45px 10px 14px;
    }

    .zhiji-search-submit {
        padding: 6px 10px;
    }

    .zhiji-search-result-item {
        padding: 10px;
    }

    .zhiji-search-result-title {
        font-size: 14px;
    }

    .zhiji-search-result-excerpt {
        font-size: 13px;
    }

    .zhiji-single-navigation {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .zhiji-nav-previous,
    .zhiji-nav-next {
        width: 100%;
        text-align: left;
    }

    .zhiji-related-posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }

    .zhiji-related-post-thumbnail {
        height: 100px;
    }

    .zhiji-related-post-title {
        font-size: 13px;
    }
}

@media (max-width: 480px) {

    .zhiji-index-content,
    .zhiji-single-content,
    .zhiji-pages-content,
    .zhiji-404-content,
    .zhiji-search-content {
        padding: 10px;
    }

    .zhiji-single-post-title,
    .zhiji-pages-page-title {
        font-size: 24px;
    }

    .zhiji-404-error-title {
        font-size: 28px;
    }

    .zhiji-404-content {
        padding: 20px 10px;
    }

    .zhiji-post-grid {
        grid-template-columns: 1fr;
    }

    .zhiji-post-grid[data-posts-per-row="2"],
    .zhiji-post-grid[data-posts-per-row="3"],
    .zhiji-post-grid[data-posts-per-row="4"] {
        grid-template-columns: 1fr;
    }

    .zhiji-index-comments-content {
        padding: 10px;
    }

    .zhiji-index-window-header {
        padding: 10px 10px;
    }

    .zhiji-index-comment-text {
        font-size: 14px;
    }

    .zhiji-index-comment-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .zhiji-music-toggle {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .zhiji-music-play {
        font-size: 28px;
        width: 45px;
        height: 45px;
    }

    .zhiji-music-btn {
        font-size: 16px;
        width: 36px;
        height: 36px;
    }

    .zhiji-tang-poem {
        padding: 10px;
        margin: 10px 0;
    }

    .zhiji-tang-poem-title {
        font-size: 18px;
    }

    .zhiji-tang-poem-content {
        font-size: 14px;
    }
}

.zhiji-links-content {
    padding: 20px;
}

.zhiji-links-intro {
    background-color: #333333;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%), url('/wp-content/themes/zhiji/images/friend-link.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
    line-height: 1.8;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.zhiji-links-intro p {
    margin-bottom: 16px;
    color: #ffffff;
    font-size: 18px;
}

.zhiji-links-requirements {
    margin-top: 20px;
}

.zhiji-links-requirements h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #ffffff;
}

.zhiji-links-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #ffffff;
}

.zhiji-links-requirements li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: #ffffff;
    font-size: 16px;
}

.zhiji-links-requirements li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 8px;
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
}

.zhiji-links-section {
    margin-bottom: 40px;
}

.zhiji-links-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.zhiji-links-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
}

.zhiji-links-actions {
    display: flex;
    gap: 12px;
}

.zhiji-check-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.zhiji-check-link-btn:hover {
    background-color: #0052a3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.zhiji-check-link-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.zhiji-links-stats {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.zhiji-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.zhiji-link-card {
    padding: 20px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.zhiji-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #0066cc;
}

.zhiji-link-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.zhiji-link-status {
    flex-shrink: 0;
}

.zhiji-link-status-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 14px;
    transition: all 0.3s ease;
}

.zhiji-link-status-indicator.unknown {
    background-color: #f0f0f0;
    color: #999;
}

.zhiji-link-status-indicator.checking {
    background-color: #fff3cd;
    color: #856404;
}

.zhiji-link-status-indicator.online {
    background-color: #d4edda;
    color: #155724;
}

.zhiji-link-status-indicator.offline {
    background-color: #f8d7da;
    color: #721c24;
}

.zhiji-link-card-body {
    flex: 1;
}

.zhiji-no-links {
    padding: 40px 20px;
    background-color: #f9f9f9;
    border: 1px dashed #e0e0e0;
    border-radius: 12px;
    text-align: center;
    color: #666;
    font-size: 16px;
}

.zhiji-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.zhiji-form-submit {
    margin-top: 24px;
    text-align: center;
}

.zhiji-links-count {
    font-size: 14px;
    font-weight: 400;
    color: #999;
}

.zhiji-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.zhiji-link-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.zhiji-link-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #0066cc;
}

.zhiji-link-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f0f0f0;
}

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

.zhiji-link-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    color: #666;
    background-color: #f0f0f0;
    border-radius: 50%;
}

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

.zhiji-link-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1d1d1f;
}

.zhiji-link-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.zhiji-link-name a:hover {
    color: #0066cc;
    text-decoration: none;
}

.zhiji-link-description {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zhiji-link-meta {
    font-size: 11px;
    color: #999;
    display: flex;
    gap: 8px;
}

.zhiji-link-meta a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.zhiji-link-meta a:hover {
    color: #0066cc;
}

.zhiji-link-category-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.zhiji-link-submit-section {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 2px solid #f0f0f0;
}

.zhiji-link-submit-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1d1d1f;
}

.zhiji-link-submit-form {
    max-width: 720px;
}

.zhiji-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.zhiji-form-group {
    margin-bottom: 20px;
}

.zhiji-form-group:last-child {
    margin-bottom: 0;
}

.zhiji-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.zhiji-form-group input[type="text"],
.zhiji-form-group input[type="url"],
.zhiji-form-group input[type="email"],
.zhiji-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.zhiji-form-group input[type="text"]::placeholder,
.zhiji-form-group input[type="url"]::placeholder,
.zhiji-form-group input[type="email"]::placeholder,
.zhiji-form-group textarea::placeholder {
    color: #ccc;
}

.zhiji-form-group input[type="text"]:focus,
.zhiji-form-group input[type="url"]:focus,
.zhiji-form-group input[type="email"]:focus,
.zhiji-form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.zhiji-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.zhiji-form-submit {
    margin-top: 32px;
}

.zhiji-link-submit-btn {
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.zhiji-link-submit-btn:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.3);
}

.zhiji-link-submit-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.zhiji-link-submit-success::before {
    content: "✓";
    font-size: 20px;
    font-weight: 600;
    color: #155724;
}

.zhiji-link-submit-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.zhiji-link-submit-error::before {
    content: "⚠";
    font-size: 20px;
    font-weight: 600;
    color: #721c24;
}

/* 深色模式 */
body.dark-mode .zhiji-links-intro {
    background-color: #2d2d2d;
    border-color: #444;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%), url('/wp-content/themes/zhiji/images/friend-link.png');
}

body.dark-mode .zhiji-links-intro p {
    color: #ffffff;
}

body.dark-mode .zhiji-links-requirements h3 {
    color: #ffffff;
}

body.dark-mode .zhiji-links-requirements li {
    color: #ffffff;
}

body.dark-mode .zhiji-links-requirements li::before {
    color: #64b5f6;
}

body.dark-mode .zhiji-links-title {
    color: #e0e0e0;
    border-bottom-color: #333;
}

body.dark-mode .zhiji-links-count {
    color: #777;
}

body.dark-mode .zhiji-link-item {
    background-color: #252525;
    border-color: #404040;
}

body.dark-mode .zhiji-link-item:hover {
    border-color: #64b5f6;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

body.dark-mode .zhiji-link-avatar {
    background-color: #333;
}

body.dark-mode .zhiji-link-avatar-placeholder {
    background-color: #333;
    color: #64b5f6;
}

body.dark-mode .zhiji-link-name {
    color: #e0e0e0;
}

body.dark-mode .zhiji-link-name a:hover {
    color: #64b5f6;
}

body.dark-mode .zhiji-links-header {
    border-bottom-color: #333;
}

body.dark-mode .zhiji-links-title {
    color: #e0e0e0;
}

body.dark-mode .zhiji-check-link-btn {
    background-color: #1e88e5;
}

body.dark-mode .zhiji-check-link-btn:hover {
    background-color: #1976d2;
}

body.dark-mode .zhiji-links-stats {
    color: #999;
}

body.dark-mode .zhiji-link-card {
    background-color: #252525;
    border-color: #404040;
}

body.dark-mode .zhiji-link-card:hover {
    border-color: #64b5f6;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

body.dark-mode .zhiji-link-status-indicator.unknown {
    background-color: #333;
    color: #777;
}

body.dark-mode .zhiji-link-status-indicator.checking {
    background-color: #3d3d29;
    color: #d4a72c;
}

body.dark-mode .zhiji-link-status-indicator.online {
    background-color: #2d3d2d;
    color: #4caf50;
}

body.dark-mode .zhiji-link-status-indicator.offline {
    background-color: #3d2d2d;
    color: #f44336;
}

body.dark-mode .zhiji-no-links {
    background-color: #252525;
    border-color: #404040;
    color: #999;
}

/* 评论区域样式 */
.zhiji-comments-area {
    margin: 10px;
    padding: 10px;
    border-top: 2px solid #f0f0f0;
    position: relative;
}

.zhiji-comments-area::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #0066cc, #64b5f6);
    border-radius: 3px;
}

.zhiji-comments-title {
    font-size: 28px;
    font-weight: 700;
    margin: 10px 0;
    color: #1d1d1f;
    position: relative;
    padding-left: 10px;
}

.zhiji-comments-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background-color: #0066cc;
    border-radius: 4px;
}

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

.zhiji-comment-item {
    margin: 10px 0;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.zhiji-comment-item:hover {
    /* 移除动画效果 */
}

/* 子评论样式 */
.zhiji-comment-child {
    position: relative;
}

.zhiji-comment-child::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e0e0e0;
}

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

.zhiji-comment-children .zhiji-comment-item {
    margin: 10px 0;
    padding: 10px 0;
}

.zhiji-comment-children .zhiji-comment-text {
    background-color: #f5f5f5;
}

.zhiji-comment-children .zhiji-comment-item:hover .zhiji-comment-text {
    background-color: #f0f8ff;
}

/* 深色模式子评论样式 */
body.dark-mode .zhiji-comment-child::before {
    background-color: #333;
}

body.dark-mode .zhiji-comment-children .zhiji-comment-text {
    background-color: #2d2d2d;
}

body.dark-mode .zhiji-comment-children .zhiji-comment-item:hover .zhiji-comment-text {
    background-color: #1a237e;
}

.zhiji-comment-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.zhiji-comment-item-inner {
    display: flex;
    gap: 20px;
}

.zhiji-comment-avatar {
    flex-shrink: 0;
    position: relative;
}

.zhiji-comment-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.zhiji-comment-item:hover .zhiji-comment-avatar img {
    /* 移除动画效果 */
}

.zhiji-comment-content {
    flex: 1;
    min-width: 0;
}

.zhiji-comment-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.zhiji-comment-author {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    transition: color 0.3s ease;
}

.zhiji-comment-author:hover {
    color: #0066cc;
}

.zhiji-comment-date {
    font-size: 14px;
    color: #999;
    transition: color 0.3s ease;
}

.zhiji-comment-item:hover .zhiji-comment-date {
    color: #666;
}

.zhiji-comment-date a {
    color: inherit;
    text-decoration: none;
}

.zhiji-comment-edit {
    font-size: 12px;
    margin-left: auto;
}

.zhiji-comment-edit a {
    color: #999;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.zhiji-comment-edit a:hover {
    color: #0066cc;
    background-color: #f0f8ff;
}

.zhiji-comment-awaiting-moderation {
    font-size: 14px;
    color: #ff9800;
    margin-bottom: 12px;
    padding: 8px 12px;
    background-color: #fff3e0;
    border-left: 4px solid #ff9800;
    border-radius: 0 4px 4px 0;
}

.zhiji-comment-text {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin: 10px 0;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 12px;
    position: relative;
}

.zhiji-comment-text::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -10px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid #f9f9f9;
}

.zhiji-comment-item:hover .zhiji-comment-text {
    /* 移除动画效果 */
}

.zhiji-comment-item:hover .zhiji-comment-text::before {
    /* 移除动画效果 */
}

.zhiji-comment-reply {
    margin-top: 10px;
}

.zhiji-comment-reply a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #0066cc;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #0066cc;
    border-radius: 20px;
    background-color: transparent;
}

.zhiji-comment-reply a:hover {
    /* 移除动画效果 */
    background-color: #f0f0f0;
    color: #0066cc;
}

.zhiji-comments-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 12px;
}

.zhiji-comments-navigation a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
}

.zhiji-comments-navigation a:hover {
    /* 移除动画效果 */
    color: #0066cc;
    background-color: #f0f0f0;
}

.zhiji-comments-closed {
    font-size: 16px;
    color: #999;
    margin: 30px 0;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 12px;
    text-align: center;
    border: 1px dashed #e0e0e0;
    position: relative;
}

.zhiji-comments-closed::before {
    content: '🔒';
    font-size: 32px;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    padding: 0 20px;
}

/* 评论表单样式 */
.zhiji-comment-form {
    margin-top: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 16px;
    position: relative;
}

.zhiji-comment-form::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0066cc, #64b5f6, #0066cc);
    border-radius: 16px 16px 0 0;
}

.zhiji-comment-form h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #1d1d1f;
    text-align: center;
    position: relative;
}

.zhiji-comment-form h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #0066cc;
    border-radius: 3px;
}

.zhiji-comment-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
    margin: 10px 0;
}

.zhiji-comment-form-field {
    margin: 10px 0;
    position: relative;
}

.zhiji-comment-form-field input,
.zhiji-comment-form-field textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.zhiji-comment-form-field input:focus,
.zhiji-comment-form-field textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 2px 4px rgba(0, 102, 204, 0.2);
}

.zhiji-comment-form-field textarea {
    resize: vertical;
    min-height: 160px;
    line-height: 1.6;
}

.zhiji-comment-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 102, 204, 0.3);
    margin: 10px 0;
}

.zhiji-comment-submit-btn:hover {
    /* 移除动画效果 */
    background-color: #0052a3;
}

.zhiji-comment-submit-btn:active {
    /* 移除动画效果 */
}

/* 深色模式评论样式 */
body.dark-mode .zhiji-comments-area {
    border-top-color: #333;
}

body.dark-mode .zhiji-comments-area::before {
    background: linear-gradient(90deg, #1e88e5, #64b5f6);
}

body.dark-mode .zhiji-comments-title {
    color: #e0e0e0;
}

body.dark-mode .zhiji-comments-title::before {
    background-color: #1e88e5;
}

body.dark-mode .zhiji-comment-item {
    border-bottom-color: #333;
}

body.dark-mode .zhiji-comment-avatar img {
    border-color: #404040;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .zhiji-comment-item:hover .zhiji-comment-avatar img {
    border-color: #1e88e5;
    box-shadow: 0 4px 12px rgba(100, 181, 246, 0.3);
}

body.dark-mode .zhiji-comment-author {
    color: #e0e0e0;
}

body.dark-mode .zhiji-comment-author:hover {
    color: #64b5f6;
}

body.dark-mode .zhiji-comment-date {
    color: #777;
}

body.dark-mode .zhiji-comment-item:hover .zhiji-comment-date {
    color: #999;
}

body.dark-mode .zhiji-comment-edit a {
    color: #777;
}

body.dark-mode .zhiji-comment-edit a:hover {
    color: #64b5f6;
    background-color: #1a237e;
}

body.dark-mode .zhiji-comment-awaiting-moderation {
    color: #ffb74d;
    background-color: #332900;
    border-left-color: #ff9800;
}

body.dark-mode .zhiji-comment-text {
    color: #ccc;
    background-color: #252525;
}

body.dark-mode .zhiji-comment-text::before {
    border-right-color: #252525;
}

body.dark-mode .zhiji-comment-item:hover .zhiji-comment-text {
    background-color: #1a237e;
}

body.dark-mode .zhiji-comment-item:hover .zhiji-comment-text::before {
    border-right-color: #1a237e;
}

body.dark-mode .zhiji-comment-reply a {
    color: #64b5f6;
    border-color: #64b5f6;
}

body.dark-mode .zhiji-comment-reply a:hover {
    background-color: #64b5f6;
    color: #121212;
}

body.dark-mode .zhiji-comments-navigation {
    background-color: #252525;
}

body.dark-mode .zhiji-comments-navigation a {
    color: #999;
}

body.dark-mode .zhiji-comments-navigation a:hover {
    color: #64b5f6;
    background-color: #1a237e;
}

body.dark-mode .zhiji-comments-closed {
    background-color: #252525;
    color: #777;
    border-color: #404040;
}

body.dark-mode .zhiji-comments-closed::before {
    background-color: #121212;
}

body.dark-mode .zhiji-comment-form {
    background-color: #252525;
}

body.dark-mode .zhiji-comment-form h3 {
    color: #e0e0e0;
}

body.dark-mode .zhiji-comment-form h3::after {
    background-color: #64b5f6;
}

body.dark-mode .zhiji-comment-form-field input,
body.dark-mode .zhiji-comment-form-field textarea {
    background-color: #1e1e1e;
    border-color: #404040;
    color: #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body.dark-mode .zhiji-comment-form-field input:focus,
body.dark-mode .zhiji-comment-form-field textarea:focus {
    border-color: #64b5f6;
    box-shadow: 0 4px 16px rgba(100, 181, 246, 0.3);
}

body.dark-mode .zhiji-comment-submit-btn {
    background-color: #1e88e5;
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
}

body.dark-mode .zhiji-comment-submit-btn:hover {
    background-color: #1976d2;
    box-shadow: 0 6px 20px rgba(30, 136, 229, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .zhiji-comments-area {
        margin-top: 60px;
        padding-top: 40px;
    }
    
    .zhiji-comments-title {
        font-size: 24px;
        margin-bottom: 30px;
        padding-left: 16px;
    }
    
    .zhiji-comment-item {
        margin-bottom: 25px;
        padding-bottom: 25px;
    }
    
    .zhiji-comment-item:hover {
        transform: translateX(4px);
    }
    
    .zhiji-comment-item-inner {
        flex-direction: column;
        gap: 16px;
    }
    
    .zhiji-comment-avatar {
        align-self: flex-start;
    }
    
    .zhiji-comment-avatar img {
        width: 48px;
        height: 48px;
    }
    
    .zhiji-comment-text {
        padding: 16px;
        font-size: 15px;
    }
    
    .zhiji-comment-text::before {
        display: none;
    }
    
    .zhiji-comment-form {
        margin-top: 40px;
        padding: 30px 20px;
    }
    
    .zhiji-comment-form h3 {
        font-size: 20px;
    }
    
    .zhiji-comment-form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .zhiji-comment-form-field textarea {
        min-height: 120px;
    }
    
    .zhiji-comment-submit-btn {
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .zhiji-comments-navigation {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .zhiji-comments-area {
        margin-top: 40px;
        padding-top: 30px;
    }
    
    .zhiji-comments-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .zhiji-comment-item {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    
    .zhiji-comment-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .zhiji-comment-edit {
        margin-left: 0;
        margin-top: 4px;
    }
    
    .zhiji-comment-form {
        padding: 20px 16px;
    }
    
    .zhiji-comment-submit-btn {
        width: 100%;
        justify-content: center;
    }
}

body.dark-mode .zhiji-link-description {
    color: #aaa;
}

body.dark-mode .zhiji-link-meta {
    color: #777;
}

body.dark-mode .zhiji-link-meta a:hover {
    color: #64b5f6;
}

body.dark-mode .zhiji-link-category-title {
    color: #e0e0e0;
}

body.dark-mode .zhiji-link-submit-title {
    color: #e0e0e0;
}

body.dark-mode .zhiji-link-submit-section {
    border-top-color: #333;
}

body.dark-mode .zhiji-form-group label {
    color: #e0e0e0;
}

body.dark-mode .zhiji-form-group input[type="text"],
body.dark-mode .zhiji-form-group input[type="url"],
body.dark-mode .zhiji-form-group input[type="email"],
body.dark-mode .zhiji-form-group textarea {
    background-color: #333;
    border-color: #555;
    color: #e0e0e0;
}

body.dark-mode .zhiji-form-group input[type="text"]::placeholder,
body.dark-mode .zhiji-form-group input[type="url"]::placeholder,
body.dark-mode .zhiji-form-group input[type="email"]::placeholder,
body.dark-mode .zhiji-form-group textarea::placeholder {
    color: #777;
}

body.dark-mode .zhiji-form-group input[type="text"]:focus,
body.dark-mode .zhiji-form-group input[type="url"]:focus,
body.dark-mode .zhiji-form-group input[type="email"]:focus,
body.dark-mode .zhiji-form-group textarea:focus {
    border-color: #64b5f6;
    box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.2);
}

body.dark-mode .zhiji-link-submit-btn {
    background-color: #1976d2;
}

body.dark-mode .zhiji-link-submit-btn:hover {
    background-color: #1565c0;
    box-shadow: 0 6px 16px rgba(100, 181, 246, 0.2);
}

body.dark-mode .zhiji-link-submit-success {
    background-color: #1b3425;
    color: #81c784;
    border-color: #2e7d32;
}

body.dark-mode .zhiji-link-submit-success::before {
    color: #81c784;
}

body.dark-mode .zhiji-link-submit-error {
    background-color: #3a1c21;
    color: #e57373;
    border-color: #c62828;
}

body.dark-mode .zhiji-link-submit-error::before {
    color: #e57373;
}

/* 友情链接页面 - 去除侧边栏后调整宽度 */
.page-template-page-links .zhiji-main-content {
    width: 100%;
    margin-right: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .zhiji-links-content {
        padding: 16px;
    }
    
    .zhiji-links-intro {
        padding: 20px;
    }
    
    .zhiji-links-title {
        font-size: 16px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
        overflow: hidden;
    }
    
    .zhiji-links-title .zhiji-links-status {
        gap: 8px;
    }
    
    .zhiji-check-link-btn {
        padding: 4px 8px;
        font-size: 12px;
        gap: 4px;
    }
    
    .zhiji-links-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .zhiji-link-item {
        padding: 12px;
    }
    
    .zhiji-form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .zhiji-link-submit-section {
        margin-top: 40px;
        padding-top: 24px;
    }
    
    .zhiji-link-submit-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .zhiji-links-intro {
        padding: 16px;
    }
    
    .zhiji-links-intro p {
        font-size: 14px;
    }
    
    .zhiji-links-requirements li {
        font-size: 12px;
    }
    
    .zhiji-links-title {
        font-size: 16px;
    }
    
    .zhiji-link-name {
        font-size: 16px;
    }
    
    .zhiji-link-description {
        font-size: 13px;
    }
    
    .zhiji-link-submit-btn {
        width: 100%;
        padding: 14px 20px;
        text-align: center;
    }
}

body.dark-mode .zhiji-link-item:hover {
    background-color: #3a3a3a;
    box-shadow: 0 4px 12px rgba(100, 181, 246, 0.2);
}

body.dark-mode .zhiji-link-name {
    color: #64b5f6;
}

body.dark-mode .zhiji-link-description {
    color: #9e9e9e;
}

body.dark-mode .zhiji-no-links {
    color: #9e9e9e;
}

body.dark-mode .zhiji-link-submit-title {
    color: #e0e0e0;
}

body.dark-mode .zhiji-form-group label {
    color: #e0e0e0;
}

body.dark-mode .zhiji-form-group input[type="text"],
body.dark-mode .zhiji-form-group input[type="url"],
body.dark-mode .zhiji-form-group input[type="email"],
body.dark-mode .zhiji-form-group textarea {
    background-color: #252525;
    border-color: #333;
    color: #e0e0e0;
}

body.dark-mode .zhiji-form-group input[type="text"]:focus,
body.dark-mode .zhiji-form-group input[type="url"]:focus,
body.dark-mode .zhiji-form-group input[type="email"]:focus,
body.dark-mode .zhiji-form-group textarea:focus {
    border-color: #64b5f6;
    box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.2);
}

body.dark-mode .zhiji-link-submit-btn {
    background-color: #1976d2;
}

body.dark-mode .zhiji-link-submit-btn:hover {
    background-color: #1565c0;
    box-shadow: 0 4px 12px rgba(100, 181, 246, 0.3);
}

body.dark-mode .zhiji-link-submit-success {
    background-color: #1b5e20;
    color: #c8e6c9;
    border-color: #2e7d32;
}

body.dark-mode .zhiji-link-submit-error {
    background-color: #c62828;
    color: #ffcdd2;
    border-color: #d32f2f;
}

@media (max-width: 768px) {
    .zhiji-links-content {
        padding: 10px;
    }

    .zhiji-page-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .zhiji-links-title {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .zhiji-link-category-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .zhiji-links-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .zhiji-link-item {
        padding: 12px;
    }

    .zhiji-link-submit-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .zhiji-form-group {
        margin-bottom: 16px;
    }

    .zhiji-link-submit-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@keyframes zhiji-search-fade-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.zhiji-search-popup-content {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.zhiji-search-popup-header {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background-color: #f5f5f7;
    border-bottom: 1px solid #e0e0e0;
    height: 50px;
}

.zhiji-search-controls {
    display: flex;
    gap: 8px;
    margin-right: 16px;
}

.zhiji-search-control-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
    border: none;
    padding: 0;
}

.zhiji-search-control-btn.close {
    background-color: #ff5f57;
}

.zhiji-search-control-btn.minimize {
    background-color: #ffbd2e;
}

.zhiji-search-control-btn.maximize {
    background-color: #28ca42;
}

.zhiji-search-popup-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
    flex: 1;
    text-align: center;
}

.zhiji-search-popup-close {
    display: none;
}

.zhiji-search-popup-body {
    padding: 24px;
}

#zhiji-search-form {
    position: relative;
    margin-bottom: 20px;
}

#zhiji-search-input {
    width: 100%;
    padding: 12px 50px 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
}

#zhiji-search-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.zhiji-search-submit {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.zhiji-search-submit:hover {
    background-color: #0052a3;
    transform: translateY(-50%) scale(1.05);
}

.zhiji-search-results {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.zhiji-search-result-item {
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.2s ease;
    cursor: pointer;
}

.zhiji-search-result-item:hover {
    background-color: #e3f2fd;
}

.zhiji-search-result-item:last-child {
    border-bottom: none;
}

.zhiji-search-result-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #1d1d1f;
}

.zhiji-search-result-excerpt {
    font-size: 14px;
    color: #6e6e73;
    line-height: 1.5;
}

.zhiji-search-result-meta {
    font-size: 12px;
    color: #9e9e9e;
    margin-top: 8px;
}

.zhiji-search-no-results {
    padding: 40px 20px;
    text-align: center;
}

.zhiji-search-highlight {
    background-color: #fff3cd;
    color: #856404;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
}

body.dark-mode .zhiji-search-popup {
    background-color: rgba(0, 0, 0, 0.7);
}

body.dark-mode .zhiji-search-popup-content {
    background-color: #252525;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid #333;
}

body.dark-mode .zhiji-search-popup-header {
    background-color: #252525;
    border-bottom-color: #333;
}

body.dark-mode .zhiji-search-popup-header h3 {
    color: #e0e0e0;
}

body.dark-mode .zhiji-search-control-btn.close {
    background-color: #ff5f57;
}

body.dark-mode .zhiji-search-control-btn.minimize {
    background-color: #ffbd2e;
}

body.dark-mode .zhiji-search-control-btn.maximize {
    background-color: #28ca42;
}

body.dark-mode .zhiji-search-control-btn:hover {
    opacity: 0.8;
}

body.dark-mode #zhiji-search-input {
    background-color: #333;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-mode #zhiji-search-input:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.2);
}

body.dark-mode .zhiji-search-submit {
    background-color: #1976d2;
}

body.dark-mode .zhiji-search-submit:hover {
    background-color: #1565c0;
}

body.dark-mode .zhiji-search-results {
    border-color: #444;
    background-color: #333;
}

body.dark-mode .zhiji-search-result-item {
    border-bottom-color: #444;
}

body.dark-mode .zhiji-search-result-item:hover {
    background-color: rgba(25, 118, 210, 0.2);
}

body.dark-mode .zhiji-search-result-title {
    color: #e0e0e0;
}

body.dark-mode .zhiji-search-result-excerpt {
    color: #9e9e9e;
}

body.dark-mode .zhiji-search-result-meta {
    color: #757575;
}

body.dark-mode .zhiji-search-no-results {
    color: #9e9e9e;
}

body.dark-mode .zhiji-search-highlight {
    background-color: rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

@media (max-width: 768px) {
    .zhiji-search-popup-content {
        width: 95%;
        max-width: 500px;
    }

    .zhiji-search-popup-body {
        padding: 20px;
    }

    #zhiji-search-input {
        font-size: 14px;
        padding: 10px 45px 10px 14px;
    }

    .zhiji-search-submit {
        padding: 6px 10px;
    }

    .zhiji-search-result-item {
        padding: 12px;
    }

    .zhiji-search-result-title {
        font-size: 14px;
    }

    .zhiji-search-result-excerpt {
        font-size: 13px;
    }
}



.zhiji-music-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: none;
    align-items: flex-end;
    justify-content: flex-end;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: none;
    box-sizing: border-box;
}

.zhiji-music-panel.show {
    display: flex;
    animation: zhiji-content-mode-fade-in 0.3s ease-out;
}

.zhiji-music-panel .zhiji-music-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 420px;
    max-height: 85vh;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    animation: zhiji-music-slide-in 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 24px;
    margin-bottom: 50px;
    margin-right: 50px;
}

@keyframes zhiji-music-slide-in {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.92);
    }

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

.zhiji-music-header {
    display: flex;
    align-items: center;
    padding: 0 0 16px 0;
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    box-sizing: border-box;
}

.zhiji-music-content-controls {
    display: flex;
    gap: 10px;
    margin-right: 20px;
}

.zhiji-music-content-control-btn {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.zhiji-music-content-control-btn.close {
    background-color: #ff6b6b;
}

.zhiji-music-content-control-btn.close:hover {
    background-color: #ee5a52;
    transform: scale(1.1);
}

.zhiji-music-content-control-btn.minimize {
    background-color: #feca57;
}

.zhiji-music-content-control-btn.maximize {
    background-color: #1dd1a1;
}

.zhiji-music-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
    font-family: "KaiTi", "STKaiti", "楷体", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.zhiji-music-info {
    margin-bottom: 24px;
}

.zhiji-music-title {
    font-size: 17px;
    font-weight: 500;
    color: #2c3e50;
    text-align: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05) 0%, rgba(0, 123, 255, 0.02) 100%);
    border-radius: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.zhiji-music-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.zhiji-music-btn {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: none;
    font-size: 20px;
    color: #546e7a;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.zhiji-music-btn:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(25, 118, 210, 0.2);
}

.zhiji-music-play {
    font-size: 36px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.3);
}

.zhiji-music-play:hover {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    color: white;
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 8px 24px rgba(25, 118, 210, 0.4);
}

.zhiji-music-progress {
    margin-bottom: 24px;
}

.zhiji-music-progress-bar {
    width: 100%;
    height: 8px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.zhiji-music-progress-current {
    height: 100%;
    background: linear-gradient(90deg, #1976d2 0%, #42a5f5 100%);
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(25, 118, 210, 0.4);
}

.zhiji-music-time {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #607d8b;
    font-weight: 500;
}

.zhiji-music-list-container h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    font-family: "KaiTi", "STKaiti", "楷体", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.zhiji-music-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 220px;
    overflow-y: auto;
    border-radius: 12px;
    background-color: rgba(0, 0, 0, 0.02);
    padding: 8px;
}

.zhiji-music-list-item {
    padding: 12px 16px;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    color: #455a64;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.zhiji-music-list-item:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
    transform: translateX(-6px) translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.15);
}

.zhiji-music-list-item.active {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

.zhiji-music-list::-webkit-scrollbar {
    width: 8px;
}

.zhiji-music-list::-webkit-scrollbar-track {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 4px;
}

.zhiji-music-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1976d2 0%, #42a5f5 100%);
    border-radius: 4px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.zhiji-music-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
}

body.dark-mode .zhiji-music-toggle {
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.9) 0%, rgba(30, 30, 30, 0.9) 100%);
    border-color: rgba(255, 255, 255, 0.1);
    color: #64b5f6;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

body.dark-mode .zhiji-music-toggle:hover {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.5);
}

body.dark-mode .zhiji-music-panel {
    background-color: rgba(0, 0, 0, 0.7);
}

body.dark-mode .zhiji-music-panel .zhiji-music-content {
    background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
    border-color: #333;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

body.dark-mode .zhiji-music-header {
    border-bottom-color: #333;
}

body.dark-mode .zhiji-music-header h3 {
    color: #e0e0e0;
}

body.dark-mode .zhiji-music-content-control-btn {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body.dark-mode .zhiji-music-title {
    color: #e0e0e0;
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.1) 0%, rgba(25, 118, 210, 0.05) 100%);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

body.dark-mode .zhiji-music-btn {
    background: linear-gradient(135deg, #2d2d2d 0%, #3a3a3a 100%);
    color: #b0bec5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .zhiji-music-btn:hover {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    box-shadow: 0 6px 16px rgba(25, 118, 210, 0.4);
}

body.dark-mode .zhiji-music-play {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.4);
}

body.dark-mode .zhiji-music-play:hover {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    box-shadow: 0 8px 24px rgba(25, 118, 210, 0.5);
}

body.dark-mode .zhiji-music-progress-bar {
    background: linear-gradient(135deg, #2d2d2d 0%, #3a3a3a 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

body.dark-mode .zhiji-music-progress-current {
    background: linear-gradient(90deg, #64b5f6 0%, #2196f3 100%);
}

body.dark-mode .zhiji-music-time {
    color: #b0bec5;
}

body.dark-mode .zhiji-music-list-container h4 {
    color: #e0e0e0;
}

body.dark-mode .zhiji-music-list {
    background-color: rgba(255, 255, 255, 0.02);
}

body.dark-mode .zhiji-music-list-item {
    background: linear-gradient(135deg, #2d2d2d 0%, #3a3a3a 100%);
    color: #b0bec5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body.dark-mode .zhiji-music-list-item:hover {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

body.dark-mode .zhiji-music-list-item.active {
    background: linear-gradient(135deg, #64b5f6 0%, #2196f3 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

body.dark-mode .zhiji-music-list::-webkit-scrollbar-track {
    background: linear-gradient(135deg, #2d2d2d 0%, #3a3a3a 100%);
}

body.dark-mode .zhiji-music-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #64b5f6 0%, #2196f3 100%);
}

body.dark-mode .zhiji-music-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
}

body.dark-mode .zhiji-music-progress-bar {
    background-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .zhiji-music-progress-current {
    background-color: #1976d2;
}

body.dark-mode .zhiji-music-time {
    color: #9e9e9e;
}

body.dark-mode .zhiji-music-list-container h4 {
    color: #e0e0e0;
}

body.dark-mode .zhiji-music-list-item {
    background-color: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
}

body.dark-mode .zhiji-music-list-item:hover {
    background-color: rgba(25, 118, 210, 0.2);
    color: #64b5f6;
}

body.dark-mode .zhiji-music-list-item.active {
    background-color: rgba(25, 118, 210, 0.3);
    color: #64b5f6;
}

body.dark-mode .zhiji-music-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .zhiji-music-list::-webkit-scrollbar-thumb {
    background: rgba(25, 118, 210, 0.3);
}

body.dark-mode .zhiji-music-list::-webkit-scrollbar-thumb:hover {
    background: rgba(25, 118, 210, 0.5);
}

@media (max-width: 768px) {
    .zhiji-music-container {
        right: 10px;
    }

    .zhiji-music-panel {
        width: calc(100vw - 80px);
        max-width: 320px;
    }

    .zhiji-music-toggle {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .zhiji-music-play {
        font-size: 28px;
        width: 45px;
        height: 45px;
    }

    .zhiji-music-btn {
        font-size: 16px;
        width: 36px;
        height: 36px;
    }
}

.zhiji-tang-poem {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 10px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    font-family: "KaiTi", "STKaiti", "楷体", 'SimSun', 'STSong', 'Noto Serif SC', serif;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.zhiji-tang-poem::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.zhiji-tang-poem:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.09);
}

.zhiji-tang-poem-title {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    letter-spacing: 1px;
    text-shadow: none;
}

.zhiji-tang-poem-author {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 10px;
    font-style: italic;
    letter-spacing: 0.5px;
}

.zhiji-tang-poem-content {
    font-size: 18px;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 15px;
    white-space: pre-line;
    text-align: center;
    letter-spacing: 0.5px;
    padding: 0;
    border-left: none;
    border-right: none;
    transition: none;
}

.zhiji-tang-poem:hover .zhiji-tang-poem-content {
    border-left: none;
    border-right: none;
    padding: 0;
}

.zhiji-tang-poem-note {
    font-size: 12px;
    color: #95a5a6;
    font-style: italic;
    margin-top: 15px;
    opacity: 0.7;
    transition: none;
}

.zhiji-tang-poem:hover .zhiji-tang-poem-note {
    opacity: 0.7;
}

body.dark-mode .zhiji-tang-poem {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border-color: #4a5568;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .zhiji-tang-poem::before {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

body.dark-mode .zhiji-tang-poem-title {
    color: #e2e8f0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

body.dark-mode .zhiji-tang-poem-author {
    color: #a0aec0;
}

body.dark-mode .zhiji-tang-poem-content {
    color: #cbd5e0;
}

body.dark-mode .zhiji-tang-poem:hover .zhiji-tang-poem-content {
    border-left: 3px solid #667eea;
    border-right: 3px solid #764ba2;
}

body.dark-mode .zhiji-tang-poem-note {
    color: #718096;
}

@media (max-width: 768px) {
    .zhiji-tang-poem {
        padding: 18px 12px;
        margin: 10px 0;
    }

    .zhiji-tang-poem-title {
        font-size: 20px;
        letter-spacing: 0.5px;
    }

    .zhiji-tang-poem-author {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .zhiji-tang-poem-content {
        font-size: 16px;
        line-height: 1.8;
        margin-bottom: 12px;
    }

    .zhiji-tang-poem-note {
        font-size: 11px;
        margin-top: 12px;
    }
}

@media (max-width: 480px) {
    .zhiji-tang-poem {
        padding: 15px 10px;
        margin: 8px 0;
    }

    .zhiji-tang-poem-title {
        font-size: 18px;
        letter-spacing: 0.3px;
    }

    .zhiji-tang-poem-author {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .zhiji-tang-poem-content {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 10px;
    }

    .zhiji-tang-poem-note {
        font-size: 10px;
        margin-top: 10px;
    }
}

.zhiji-search-content {
    padding: 40px;
}

.zhiji-search-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
    color: #1d1d1f;
}

.zhiji-search-pagination {
    margin-top: 40px;
    text-align: center;
}

.zhiji-search-no-results {
    text-align: center;
    padding: 60px 20px;
}

.zhiji-search-no-results h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1d1d1f;
}

.zhiji-search-no-results p {
    font-size: 16px;
    color: #6e6e73;
    margin-bottom: 30px;
}

.zhiji-search-form {
    max-width: 500px;
    margin: 0 auto;
}

body.dark-mode .zhiji-search-content {
    background-color: #1e1e1e;
}

body.dark-mode .zhiji-search-title {
    color: #e0e0e0;
}

body.dark-mode .zhiji-search-no-results h2 {
    color: #e0e0e0;
}

body.dark-mode .zhiji-search-no-results p {
    color: #9e9e9e;
}

@media (max-width: 992px) {
    .zhiji-content-container {
        flex-direction: column;
        gap: 10px;
        padding: 0;
    }

    .zhiji-sidebar {
        width: 100%;
        min-width: 100%;
        position: static;
        max-height: none;
    }

    .zhiji-main-content {
        width: 100%;
    }

    .zhiji-post-grid[data-posts-per-row="3"],
    .zhiji-post-grid[data-posts-per-row="4"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .zhiji-post-grid[data-posts-per-row="2"],
    .zhiji-post-grid[data-posts-per-row="3"],
    .zhiji-post-grid[data-posts-per-row="4"] {
        grid-template-columns: 1fr;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

body.dark-mode .zhiji-content-container {
    background-color: #121212;
}

body.dark-mode .zhiji-main-content {
    background-color: #1e1e1e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .zhiji-index-content,
body.dark-mode .zhiji-single-content,
body.dark-mode .zhiji-pages-content,
body.dark-mode .zhiji-search-content,
body.dark-mode .zhiji-404-content {
    background-color: #1e1e1e;
}

body.dark-mode .zhiji-sidebar {
    background-color: #1e1e1e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .widget {
    background-color: #252525;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border-color: #333;
}

body.dark-mode .widget-header {
    background-color: #2d2d2d;
    border-bottom-color: #333;
}

body.dark-mode .widget-title {
    color: #e0e0e0;
}

body.dark-mode .widget-content {
    background-color: #252525;
}

body.dark-mode .zhiji-theme-info li {
    color: #bdbdbd;
}

body.dark-mode .zhiji-tang-poem-widget .zhiji-tang-poem-title {
    color: #e0e0e0;
}

body.dark-mode .zhiji-tang-poem-widget .zhiji-tang-poem-author {
    color: #9e9e9e;
}

body.dark-mode .zhiji-tang-poem-widget .zhiji-tang-poem-content {
    color: #bdbdbd;
}

body.dark-mode .zhiji-popular-posts li a {
    color: #e0e0e0;
}

body.dark-mode .zhiji-popular-posts li a:hover {
    color: #64b5f6;
}

body.dark-mode .zhiji-recommended-posts li a {
    color: #e0e0e0;
}

body.dark-mode .zhiji-recommended-posts li a:hover {
    color: #64b5f6;
}

body.dark-mode .zhiji-recommended-post-date {
    color: #9e9e9e;
}

body.dark-mode .zhiji-links li a {
    background-color: #2d2d2d;
    border-color: #333;
    color: #e0e0e0;
}

body.dark-mode .zhiji-links li a:hover {
    background-color: #64b5f6;
    border-color: #64b5f6;
}

body.dark-mode .zhiji-recent-comments li a {
    color: #e0e0e0;
}

body.dark-mode .zhiji-recent-comments li a:hover {
    color: #64b5f6;
}

body.dark-mode .zhiji-recent-comment-author {
    color: #e0e0e0;
}

body.dark-mode .zhiji-recent-comment-content {
    color: #bdbdbd;
}

body.dark-mode .zhiji-index-post {
    background-color: #252525;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border-color: #333;
}

body.dark-mode .zhiji-index-post-title a {
    color: #e0e0e0;
}

body.dark-mode .zhiji-index-post-title a:hover {
    color: #64b5f6;
}

body.dark-mode .zhiji-index-post-meta {
    color: #9e9e9e;
}

body.dark-mode .zhiji-index-post-excerpt {
    color: #bdbdbd;
}

body.dark-mode .zhiji-index-post-category {
    background-color: #64b5f6;
}

body.dark-mode .zhiji-index-post-tags a {
    background-color: #2d2d2d;
    border-color: #333;
    color: #bdbdbd;
}

body.dark-mode .zhiji-index-post-tags a:hover {
    background-color: #64b5f6;
    border-color: #64b5f6;
}

body.dark-mode .zhiji-index-read-more {
    background-color: #1976d2;
}

body.dark-mode .zhiji-index-read-more:hover {
    background-color: #1565c0;
}

body.dark-mode .nav-links {
    background-color: #252525;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border-color: #333;
}

body.dark-mode .nav-links .page-numbers {
    color: #e0e0e0;
}

body.dark-mode .nav-links .page-numbers:hover {
    background-color: #2d2d2d;
    color: #64b5f6;
}

body.dark-mode .nav-links .page-numbers.current {
    background-color: #1976d2;
    color: white;
}

body.dark-mode .nav-links .page-numbers.dots {
    color: #777;
}

body.dark-mode .zhiji-post-list .zhiji-index-post {
    background-color: #252525;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border-color: #333;
}

body.dark-mode .zhiji-post-list .zhiji-index-post-content {
    background-color: #252525;
}

body.dark-mode .zhiji-post-list .zhiji-index-post-excerpt {
    color: #bdbdbd;
}

body.dark-mode .zhiji-post-list .zhiji-index-read-more {
    background-color: #1976d2;
}

body.dark-mode .zhiji-post-list .zhiji-index-read-more:hover {
    background-color: #1565c0;
}

/* 加载动画样式 */
.zhiji-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.zhiji-loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.zhiji-loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 页面切换动画样式 */
.zhiji-window {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.zhiji-window.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

/* 深色模式下的加载动画 */
body.dark-mode .zhiji-loading {
    background-color: rgba(30, 30, 30, 0.9);
}

body.dark-mode .zhiji-loading-spinner {
    border: 5px solid #333;
    border-top: 5px solid #64b5f6;
}

/* 评论区样式 */
.zhiji-comments {
    margin: 48px 0;
    background-color: #ffffff;
    border: 1px solid #e5e5e7;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* 评论区标题 */
.zhiji-comments-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e5e5e7;
    padding: 20px 24px;
}

.zhiji-comments-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

/* 评论区内容容器 */
.zhiji-comments-container {
    padding: 24px;
}

/* 评论列表包装器 */
.zhiji-comments-list-wrapper {
    margin-bottom: 40px;
}

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

/* 评论项 */
.zhiji-comment-item {
    margin-bottom: 24px;
    padding: 0;
}

.zhiji-comment-item-inner {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* 评论头像 */
.zhiji-comment-avatar {
    flex-shrink: 0;
}

.zhiji-comment-avatar img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    border: 2px solid #ffffff;
}

/* 评论内容 */
.zhiji-comment-content {
    flex: 1;
    min-width: 0;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.zhiji-comment-item:hover .zhiji-comment-content {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

/* 评论元信息 */
.zhiji-comment-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.zhiji-comment-author {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 15px;
}

.zhiji-comment-author a {
    color: #4a6cf7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.zhiji-comment-author a:hover {
    color: #3a5bd6;
}

.zhiji-comment-date {
    font-size: 13px;
    color: #6b7280;
}

.zhiji-comment-date a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.zhiji-comment-date a:hover {
    color: #4a6cf7;
    text-decoration: underline;
}

.zhiji-comment-edit {
    font-size: 13px;
}

.zhiji-comment-edit a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.zhiji-comment-edit a:hover {
    color: #4a6cf7;
    text-decoration: underline;
}

/* 待审核提示 */
.zhiji-comment-awaiting-moderation {
    background-color: #fffbeb;
    color: #92400e;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 12px;
    display: inline-block;
}

/* 评论正文 */
.zhiji-comment-text {
    font-size: 15px;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 16px;
    word-wrap: break-word;
}

/* 回复按钮 */
.zhiji-comment-reply {
    display: inline-block;
}

.zhiji-comment-reply a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #4a6cf7;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    background-color: #f0f4ff;
    transition: all 0.3s ease;
}

.zhiji-comment-reply a:hover {
    background-color: #e0e7ff;
    color: #3a5bd6;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(74, 108, 247, 0.2);
}

/* 评论分页 */
.zhiji-comment-navigation {
    margin: 32px 0;
    padding: 16px;
    background-color: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.zhiji-comment-nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.zhiji-comment-nav-previous,
.zhiji-comment-nav-next {
    flex: 1;
}

.zhiji-comment-nav-previous {
    text-align: left;
}

.zhiji-comment-nav-next {
    text-align: right;
}

.zhiji-comment-nav-previous a,
.zhiji-comment-nav-next a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #4a6cf7;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.zhiji-comment-nav-previous a:hover,
.zhiji-comment-nav-next a:hover {
    background-color: #f0f4ff;
    transform: translateY(-1px);
}

/* 评论关闭提示 */
.zhiji-comments-closed {
    background-color: #fef2f2;
    color: #dc2626;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid #fee2e2;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

/* 评论表单包装器 */
.zhiji-comment-form-wrapper {
    margin-top: 32px;
}

/* 评论表单标题 */
.zhiji-comment-reply-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 24px 0;
}

/* 评论表单 */
.zhiji-comment-form {
    background-color: #f8f9fa;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #e9ecef;
}

/* 评论表单行 */
.zhiji-comment-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

/* 评论表单字段 */
.zhiji-comment-form-field {
    position: relative;
}

.zhiji-comment-form-field input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background-color: #ffffff;
    color: #1a1a1a;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-family: inherit;
}

.zhiji-comment-form-field input:focus {
    outline: none;
    border-color: #4a6cf7;
    box-shadow: 0 0 0 4px rgba(74, 108, 247, 0.1);
    transform: translateY(-1px);
}

/* 评论文本框 */
.zhiji-comment-field {
    margin-bottom: 24px;
}

.zhiji-comment-field textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    font-size: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background-color: #ffffff;
    color: #1a1a1a;
    resize: vertical;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-family: inherit;
    line-height: 1.6;
}

.zhiji-comment-field textarea:focus {
    outline: none;
    border-color: #4a6cf7;
    box-shadow: 0 0 0 4px rgba(74, 108, 247, 0.1);
    transform: translateY(-1px);
}

/* 评论提示 */
.zhiji-comment-notes {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 24px;
    text-align: center;
}

/* 评论提交按钮 */
.zhiji-comment-submit {
    display: inline-block;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background-color: #4a6cf7;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 140px;
}

.zhiji-comment-submit:hover {
    background-color: #3a5bd6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 108, 247, 0.3);
}

.zhiji-comment-submit:active {
    transform: translateY(0);
}

/* 取消回复按钮 */
.zhiji-comment-cancel {
    display: inline-block;
    margin-left: 12px;
    font-size: 14px;
    color: #6b7280;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.zhiji-comment-cancel:hover {
    background-color: #f3f4f6;
    color: #4b5563;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .zhiji-comments {
        margin: 32px 0;
    }
    
    .zhiji-comments-header,
    .zhiji-comments-container {
        padding: 16px;
    }
    
    .zhiji-comment-item-inner {
        flex-direction: column;
        gap: 12px;
    }
    
    .zhiji-comment-avatar {
        align-self: flex-start;
    }
    
    .zhiji-comment-form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .zhiji-comment-nav-links {
        flex-direction: column;
        gap: 16px;
    }
    
    .zhiji-comment-nav-previous,
    .zhiji-comment-nav-next {
        text-align: center;
    }
}

/* 深色模式支持 */
body.dark-mode .zhiji-comments {
    background-color: #252525;
    border-color: #333;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body.dark-mode .zhiji-comments-header {
    background-color: #2d2d2d;
    border-bottom-color: #404040;
}

body.dark-mode .zhiji-comments-title,
body.dark-mode .zhiji-comment-reply-title {
    color: #e0e0e0;
}

body.dark-mode .zhiji-comment-content {
    background-color: #2d2d2d;
    border-color: #404040;
}

body.dark-mode .zhiji-comment-item:hover .zhiji-comment-content {
    background-color: #333;
    border-color: #4a4a4a;
}

body.dark-mode .zhiji-comment-author,
body.dark-mode .zhiji-comment-text {
    color: #e0e0e0;
}

body.dark-mode .zhiji-comment-date,
body.dark-mode .zhiji-comment-date a,
body.dark-mode .zhiji-comment-edit a {
    color: #9e9e9e;
}

body.dark-mode .zhiji-comment-date a:hover,
body.dark-mode .zhiji-comment-edit a:hover {
    color: #64b5f6;
}

body.dark-mode .zhiji-comment-awaiting-moderation {
    background-color: #332700;
    color: #ffd54f;
    border-color: #4d4010;
}

body.dark-mode .zhiji-comment-reply a {
    background-color: rgba(74, 108, 247, 0.2);
    color: #64b5f6;
}

body.dark-mode .zhiji-comment-reply a:hover {
    background-color: rgba(74, 108, 247, 0.3);
    color: #90caf9;
}

body.dark-mode .zhiji-comment-navigation {
    background-color: #2d2d2d;
    border-color: #404040;
}

body.dark-mode .zhiji-comment-nav-previous a,
body.dark-mode .zhiji-comment-nav-next a {
    color: #64b5f6;
}

body.dark-mode .zhiji-comment-nav-previous a:hover,
body.dark-mode .zhiji-comment-nav-next a:hover {
    background-color: #333;
}

body.dark-mode .zhiji-comments-closed {
    background-color: #442b2b;
    color: #ef9a9a;
    border-color: #5c3a3a;
}

body.dark-mode .zhiji-comment-form {
    background-color: #2d2d2d;
    border-color: #404040;
}

body.dark-mode .zhiji-comment-form-field input,
body.dark-mode .zhiji-comment-field textarea {
    background-color: #333;
    border-color: #4a4a4a;
    color: #e0e0e0;
}

body.dark-mode .zhiji-comment-form-field input:focus,
body.dark-mode .zhiji-comment-field textarea:focus {
    border-color: #64b5f6;
    box-shadow: 0 0 0 4px rgba(100, 181, 246, 0.2);
}

body.dark-mode .zhiji-comment-notes {
    color: #9e9e9e;
}

body.dark-mode .zhiji-comment-cancel {
    color: #9e9e9e;
}

body.dark-mode .zhiji-comment-cancel:hover {
    background-color: #333;
    color: #e0e0e0;
}

/* 个人中心样式 */
.zhiji-user-center {
    margin-bottom: 32px;
}

.zhiji-user-center-header {
    margin-bottom: 24px;
}

.zhiji-user-center-title {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
}

.zhiji-user-profile {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.zhiji-user-profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.zhiji-user-avatar {
    flex-shrink: 0;
}

.zhiji-user-avatar img {
    border-radius: 50%;
    border: 3px solid #f5f5f5;
}

.zhiji-user-info {
    flex: 1;
}

.zhiji-user-name {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 8px 0;
}

.zhiji-user-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.zhiji-user-role {
    background-color: #4a6cf7;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.zhiji-user-email {
    color: #666;
    font-size: 14px;
}

.zhiji-user-stats {
    display: flex;
    gap: 24px;
    border-top: 1px solid #e0e0e0;
    padding-top: 16px;
}

.zhiji-user-stat-item {
    text-align: center;
    flex: 1;
}

.zhiji-user-stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 2px;
}

.zhiji-user-stat-label {
    font-size: 14px;
    color: #666;
}

.zhiji-user-post-create,
.zhiji-user-recent-posts,
.zhiji-user-settings {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.zhiji-user-post-create-header,
.zhiji-user-recent-posts-header,
.zhiji-user-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.zhiji-user-post-create-header h3,
.zhiji-user-recent-posts-header h3,
.zhiji-user-settings-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
}

.zhiji-user-more-link {
    color: #4a6cf7;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.zhiji-user-more-link:hover {
    color: #3a57d3;
    text-decoration: underline;
}

.zhiji-form-group {
    margin-bottom: 16px;
}

.zhiji-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
}

.zhiji-form-group input,
.zhiji-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #f9f9f9;
    color: #1d1d1f;
    font-size: 14px;
    transition: all 0.2s ease;
}

.zhiji-form-group input:focus,
.zhiji-form-group textarea:focus {
    outline: none;
    border-color: #4a6cf7;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
}

.zhiji-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.zhiji-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.zhiji-btn-primary {
    background-color: #4a6cf7;
    color: white;
}

.zhiji-btn-primary:hover {
    background-color: #3a57d3;
}

.zhiji-btn-secondary {
    background-color: #f5f5f5;
    color: #1d1d1f;
    border: 1px solid #e0e0e0;
}

.zhiji-btn-secondary:hover {
    background-color: #e8e8e8;
}

.zhiji-user-no-permission {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 48px 32px;
    text-align: center;
    color: #666;
    margin: 40px auto;
    max-width: 500px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.zhiji-user-no-permission-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #ff5f57;
    color: white;
    margin-bottom: 24px;
}

.zhiji-user-no-permission-icon i {
    font-size: 40px;
}

.zhiji-user-no-permission h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 16px 0;
}

.zhiji-user-no-permission p {
    font-size: 16px;
    color: #666;
    margin: 0 0 32px 0;
}

.zhiji-user-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.zhiji-user-countdown p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.zhiji-user-countdown #countdown {
    font-size: 24px;
    font-weight: 600;
    color: #ff5f57;
    margin: 0 8px;
}

/* 深色模式下的样式 */
body.dark-mode .zhiji-user-no-permission {
    background-color: #2d2d2d;
    border-color: #333;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

body.dark-mode .zhiji-user-no-permission h2 {
    color: #e0e0e0;
}

body.dark-mode .zhiji-user-no-permission p,
body.dark-mode .zhiji-user-countdown p {
    color: #757575;
}

body.dark-mode .zhiji-user-countdown #countdown {
    color: #ff8a80;
}

.zhiji-user-post-item {
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.zhiji-user-post-item:last-child {
    border-bottom: none;
}

.zhiji-user-post-title {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 8px 0;
}

.zhiji-user-post-title a {
    color: #1d1d1f;
    text-decoration: none;
    transition: color 0.2s ease;
}

.zhiji-user-post-title a:hover {
    color: #4a6cf7;
}

.zhiji-user-post-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #666;
}

.zhiji-user-no-posts {
    text-align: center;
    padding: 24px;
    color: #666;
    background-color: #f9f9f9;
    border-radius: 6px;
}

.zhiji-user-settings-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.zhiji-user-setting-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    background-color: #f9f9f9;
    border-radius: 6px;
    color: #1d1d1f;
    text-decoration: none;
    transition: all 0.2s ease;
}

.zhiji-user-setting-link:hover {
    background-color: #e8e8e8;
    color: #4a6cf7;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.zhiji-user-setting-link i {
    font-size: 16px;
    color: #666;
    transition: color 0.2s ease;
}

.zhiji-user-setting-link:hover i {
    color: #4a6cf7;
}

/* 深色模式下的样式 */
body.dark-mode .zhiji-user-profile,
body.dark-mode .zhiji-user-post-create,
body.dark-mode .zhiji-user-recent-posts,
body.dark-mode .zhiji-user-settings {
    background-color: #2d2d2d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .zhiji-user-avatar img {
    border-color: #333;
}

body.dark-mode .zhiji-user-name,
body.dark-mode .zhiji-user-center-title {
    color: #e0e0e0;
}

body.dark-mode .zhiji-user-email,
body.dark-mode .zhiji-user-stat-label,
body.dark-mode .zhiji-user-post-meta,
body.dark-mode .zhiji-user-no-posts,
body.dark-mode .zhiji-user-no-permission {
    color: #757575;
}

body.dark-mode .zhiji-user-stats {
    border-top-color: #333;
}

body.dark-mode .zhiji-user-post-item {
    border-bottom-color: #333;
}

body.dark-mode .zhiji-form-group input,
body.dark-mode .zhiji-form-group textarea {
    background-color: #252525;
    border-color: #333;
    color: #e0e0e0;
}

body.dark-mode .zhiji-form-group input:focus,
body.dark-mode .zhiji-form-group textarea:focus {
    border-color: #4a6cf7;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.2);
}

body.dark-mode .zhiji-user-no-permission,
body.dark-mode .zhiji-user-no-posts,
body.dark-mode .zhiji-user-setting-link {
    background-color: #252525;
    border-color: #333;
    color: #e0e0e0;
}

body.dark-mode .zhiji-user-setting-link:hover {
    background-color: #333;
    color: #4a6cf7;
}

body.dark-mode .zhiji-user-setting-link i {
    color: #757575;
}

body.dark-mode .zhiji-btn-secondary {
    background-color: #252525;
    color: #e0e0e0;
    border-color: #333;
}

body.dark-mode .zhiji-btn-secondary:hover {
    background-color: #333;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .zhiji-user-profile-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .zhiji-user-stats {
        justify-content: center;
    }
    
    .zhiji-user-settings-links {
        grid-template-columns: 1fr;
    }
    
    .zhiji-form-actions {
        flex-direction: column;
    }
    
    .zhiji-btn {
        width: 100%;
    }
}

/* 个人中心新样式 */
.zhiji-user-dashboard {
    margin-bottom: 40px;
}

/* 用户信息卡片 */
.zhiji-user-card {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 32px;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.zhiji-user-avatar-lg {
    flex-shrink: 0;
}

.zhiji-user-avatar-lg img {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.zhiji-user-details-lg {
    flex: 1;
}

.zhiji-user-name-lg {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 16px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.zhiji-user-meta-lg {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.zhiji-user-role-badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.zhiji-user-email-lg {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.zhiji-user-stats-lg {
    display: flex;
    gap: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.zhiji-user-stat-card {
    text-align: center;
}

.zhiji-user-stat-value {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.zhiji-user-stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 仪表盘网格 */
.zhiji-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

/* 仪表盘模块 */
.zhiji-dashboard-module {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.zhiji-dashboard-module:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.zhiji-dashboard-module-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.zhiji-dashboard-module-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
}

.zhiji-dashboard-module-title i {
    font-size: 20px;
    color: #4a6cf7;
}

.zhiji-dashboard-more-link {
    color: #4a6cf7;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.zhiji-dashboard-more-link:hover {
    color: #3a57d3;
    text-decoration: underline;
}

.zhiji-dashboard-module-content {
    padding: 24px;
}

/* 发布文章表单 */
.zhiji-post-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.zhiji-form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
}

.zhiji-form-input,
.zhiji-form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.zhiji-form-input:focus,
.zhiji-form-textarea:focus {
    outline: none;
    border-color: #4a6cf7;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
}

.zhiji-form-textarea {
    resize: vertical;
    min-height: 80px;
}

.zhiji-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

/* 最近文章 */
.zhiji-recent-post-item {
    padding: 16px 0;
    border-bottom: 1px solid #e9ecef;
}

.zhiji-recent-post-item:last-child {
    border-bottom: none;
}

.zhiji-recent-post-title {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 8px 0;
}

.zhiji-recent-post-title a {
    color: #1d1d1f;
    text-decoration: none;
    transition: color 0.2s ease;
}

.zhiji-recent-post-title a:hover {
    color: #4a6cf7;
}

.zhiji-recent-post-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #666;
}

/* 快捷操作 */
.zhiji-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.zhiji-quick-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 16px;
    background-color: #f8f9fa;
    border-radius: 8px;
    color: #1d1d1f;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.zhiji-quick-action-item:hover {
    background-color: #e3f2fd;
    border-color: #4a6cf7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 108, 247, 0.15);
}

.zhiji-quick-action-item i {
    font-size: 24px;
    color: #4a6cf7;
}

.zhiji-quick-action-item span {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

/* 账户设置 */
.zhiji-account-settings {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.zhiji-account-setting-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    color: #1d1d1f;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.zhiji-account-setting-item:hover {
    background-color: #e9ecef;
    border-color: #4a6cf7;
}

.zhiji-account-setting-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: #4a6cf7;
    color: white;
    flex-shrink: 0;
}

.zhiji-account-setting-icon i {
    font-size: 18px;
}

.zhiji-account-setting-info {
    flex: 1;
}

.zhiji-account-setting-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.zhiji-account-setting-info p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.zhiji-account-setting-item i:last-child {
    font-size: 16px;
    color: #666;
    transition: all 0.2s ease;
}

.zhiji-account-setting-item:hover i:last-child {
    color: #4a6cf7;
    transform: translateX(4px);
}

.zhiji-logout-item {
    border-color: #ff5f57;
}

.zhiji-logout-item:hover {
    background-color: #fff5f5;
    border-color: #ff5f57;
}

.zhiji-logout-item .zhiji-account-setting-icon {
    background-color: #ff5f57;
}

/* 错误和空状态 */
.zhiji-permission-error,
.zhiji-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.zhiji-empty-state i {
    font-size: 48px;
    color: #ced4da;
    margin-bottom: 16px;
}

.zhiji-permission-error p,
.zhiji-empty-state p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* 按钮样式 */
.zhiji-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    gap: 8px;
}

.zhiji-btn-primary {
    background-color: #4a6cf7;
    color: white;
}

.zhiji-btn-primary:hover {
    background-color: #3a57d3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 108, 247, 0.3);
}

.zhiji-btn-secondary {
    background-color: #f8f9fa;
    color: #1d1d1f;
    border: 2px solid #e9ecef;
}

.zhiji-btn-secondary:hover {
    background-color: #e9ecef;
    border-color: #4a6cf7;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .zhiji-user-card {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
        gap: 24px;
    }
    
    .zhiji-user-name-lg {
        font-size: 24px;
    }
    
    .zhiji-user-stats-lg {
        justify-content: center;
        gap: 24px;
    }
    
    .zhiji-user-stat-value {
        font-size: 24px;
    }
    
    .zhiji-dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .zhiji-quick-actions {
        grid-template-columns: 1fr;
    }
    
    .zhiji-form-actions {
        flex-direction: column;
    }
    
    .zhiji-dashboard-module-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .zhiji-account-setting-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .zhiji-account-setting-info {
        text-align: center;
    }
}

/* 深色模式下的样式 */
body.dark-mode .zhiji-dashboard-module {
    background-color: #2d2d2d;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

body.dark-mode .zhiji-dashboard-module-header {
    background-color: #333;
    border-bottom-color: #444;
}

body.dark-mode .zhiji-dashboard-module-title {
    color: #e0e0e0;
}

body.dark-mode .zhiji-form-group label {
    color: #e0e0e0;
}

body.dark-mode .zhiji-form-input,
body.dark-mode .zhiji-form-textarea {
    background-color: #252525;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-mode .zhiji-form-input:focus,
body.dark-mode .zhiji-form-textarea:focus {
    border-color: #4a6cf7;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.2);
}

body.dark-mode .zhiji-recent-post-title a {
    color: #e0e0e0;
}

body.dark-mode .zhiji-recent-post-meta {
    color: #757575;
}

body.dark-mode .zhiji-recent-post-item {
    border-bottom-color: #444;
}

body.dark-mode .zhiji-quick-action-item {
    background-color: #333;
    color: #e0e0e0;
}

body.dark-mode .zhiji-quick-action-item:hover {
    background-color: #444;
}

body.dark-mode .zhiji-account-setting-item {
    background-color: #333;
    color: #e0e0e0;
}

body.dark-mode .zhiji-account-setting-item:hover {
    background-color: #444;
}

body.dark-mode .zhiji-account-setting-info p {
    color: #757575;
}

body.dark-mode .zhiji-permission-error,
body.dark-mode .zhiji-empty-state {
    background-color: #333;
}

body.dark-mode .zhiji-permission-error p,
body.dark-mode .zhiji-empty-state p {
    color: #757575;
}

body.dark-mode .zhiji-btn-secondary {
    background-color: #333;
    color: #e0e0e0;
    border-color: #444;
}

body.dark-mode .zhiji-btn-secondary:hover {
    background-color: #444;
}