/*
Theme Name: 知己
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: 知己 - 优雅的个人博客主题，带有友情链接、丰富动画和实用小工具
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zhiji
Tags: blog, personal-blog, friendly-links, animations, widgets
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: #333;
}

a:hover {
    color: var(--zhiji-primary-color, #667eea);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    animation: zhiji-floatOrbs 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes zhiji-floatOrbs {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(2%, -2%) rotate(1deg);
    }
    50% {
        transform: translate(0, 2%) rotate(0deg);
    }
    75% {
        transform: translate(-2%, 0) rotate(-1deg);
    }
}

.zhiji-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(102, 126, 234, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.zhiji-loading-content {
    text-align: center;
}

.zhiji-loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: zhiji-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes zhiji-spin {
    to {
        transform: rotate(360deg);
    }
}

.zhiji-loading-text {
    color: white;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 2px;
    animation: zhiji-pulse 2s ease-in-out infinite;
}

@keyframes zhiji-pulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

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

@keyframes zhiji-fadeInUp {
    from {
        opacity: 0.7;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zhiji-slideInLeft {
    from {
        opacity: 0.7;
        transform: translateX(-15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zhiji-slideInRight {
    from {
        opacity: 0.7;
        transform: translateX(15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.zhiji-fade-in-up {
    animation: zhiji-fadeInUp 1.5s ease-out forwards;
}

.zhiji-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: zhiji-slideInLeft 1.5s ease-out;
}

.zhiji-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.zhiji-site-title a {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--zhiji-primary-color, #667eea) 0%, var(--zhiji-bg-color-2, #764ba2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
}

.zhiji-site-title a:hover {
    transform: scale(1.05);
    display: inline-block;
}

.zhiji-main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.zhiji-main-nav a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.zhiji-main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--zhiji-primary-color, #667eea) 0%, var(--zhiji-bg-color-2, #764ba2) 100%);
    transition: width 0.3s ease;
}

.zhiji-main-nav a:hover::after {
    width: 100%;
}

.zhiji-main-nav a:hover {
    color: var(--zhiji-primary-color, #667eea);
}

.zhiji-main-content {
    padding: 60px 0;
    min-height: 70vh;
}

.zhiji-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.zhiji-content-wrapper-full {
    max-width: 800px;
    margin: 0 auto;
}

.zhiji-posts-grid {
    display: grid;
    gap: 30px;
}

.zhiji-post-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    animation: zhiji-fadeInUp 1.5s ease-out forwards;
    opacity: 0;
}

.zhiji-post-card:nth-child(1) { animation-delay: 0.05s; }
.zhiji-post-card:nth-child(2) { animation-delay: 0.1s; }
.zhiji-post-card:nth-child(3) { animation-delay: 0.15s; }
.zhiji-post-card:nth-child(4) { animation-delay: 0.2s; }
.zhiji-post-card:nth-child(5) { animation-delay: 0.25s; }

.zhiji-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.zhiji-post-thumbnail {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.zhiji-post-card:hover .zhiji-post-thumbnail {
    transform: scale(1.02);
}

.zhiji-post-thumbnail-wrapper {
    overflow: hidden;
}

.zhiji-post-content {
    padding: 30px;
}

.zhiji-post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.zhiji-post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.zhiji-post-title {
    font-size: 24px;
    margin-bottom: 15px;
}

.zhiji-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.zhiji-post-title a:hover {
    color: var(--zhiji-primary-color, #667eea);
}

.zhiji-post-excerpt {
    color: #666;
    margin-bottom: 20px;
}

.zhiji-read-more {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.zhiji-read-more:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.zhiji-sidebar {
    animation: zhiji-slideInRight 1.5s ease-out 0.3s both;
}

.zhiji-widget {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

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

.zhiji-widget-title {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid;
    border-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) 1;
}

.zhiji-widget ul {
    list-style: none;
}

.zhiji-widget ul li:last-child {
    border-bottom: none;
}

.zhiji-widget ul li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.zhiji-widget ul li a:hover {
    color: var(--zhiji-primary-color, #667eea);
}

.zhiji-tags-widget {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.zhiji-tag,
.zhiji-widget .tagcloud a,
.zhiji-widget .wp-block-tag-cloud a {
    display: inline-block;
    padding: 6px 14px;
    background: var(--zhiji-primary-color, #667eea);
    color: white;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.zhiji-tag:hover,
.zhiji-widget .tagcloud a:hover,
.zhiji-widget .wp-block-tag-cloud a:hover {
    background: var(--zhiji-bg-color-2, #764ba2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

@media (prefers-color-scheme: dark) {
    .zhiji-tag,
    .zhiji-widget .tagcloud a,
    .zhiji-widget .wp-block-tag-cloud a {
        color: white;
    }
}

.zhiji-footer {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.zhiji-footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.zhiji-footer-section h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.zhiji-footer-section p {
    color: #aaa;
}

.zhiji-footer-section ul {
    list-style: none;
}

.zhiji-footer-section ul li {
    margin-bottom: 10px;
}

.zhiji-footer-section ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.zhiji-footer-section ul li a:hover {
    color: white;
}

.zhiji-footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #666;
}

.zhiji-footer-bottom p {
    margin-bottom: 10px;
}

.zhiji-social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.zhiji-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.zhiji-social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.zhiji-wechat-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 14px;
}

.zhiji-wechat-icon {
    font-size: 18px;
}

.zhiji-wechat-text {
    color: #ccc;
}

.zhiji-icp-number {
    font-size: 14px;
}

.zhiji-icp-number a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.zhiji-icp-number a:hover {
    color: var(--zhiji-primary-color, #667eea);
}

.zhiji-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.zhiji-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.zhiji-pagination a,
.zhiji-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: white;
    border-radius: 25px;
    color: #555;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.zhiji-pagination a:hover {
    background: linear-gradient(135deg, var(--zhiji-primary-color, #667eea), var(--zhiji-bg-color-2, #764ba2));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    text-decoration: none;
}

.zhiji-pagination .current {
    background: linear-gradient(135deg, var(--zhiji-primary-color, #667eea), var(--zhiji-bg-color-2, #764ba2));
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.zhiji-pagination .prev,
.zhiji-pagination .next {
    padding: 0 20px;
    font-weight: 600;
}

.zhiji-pagination .dots {
    background: transparent;
    box-shadow: none;
    color: #999;
}

@media (max-width: 768px) {
    .zhiji-pagination {
        gap: 5px;
    }
    
    .zhiji-pagination a,
    .zhiji-pagination span {
        min-width: 38px;
        height: 38px;
        padding: 0 12px;
        font-size: 14px;
    }
}

.zhiji-single-post {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: zhiji-fadeInUp 0.8s ease-out;
}

.zhiji-single-post .zhiji-post-title {
    font-size: 36px;
    margin-bottom: 20px;
}

.zhiji-single-post .zhiji-post-meta {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.zhiji-single-post .zhiji-post-content {
    padding: 0;
}

.zhiji-single-post .zhiji-post-content p {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.8;
}

.zhiji-friend-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.zhiji-friend-link-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    animation: zhiji-fadeInUp 1.5s ease-out both;
    text-align: center;
}

.zhiji-friend-link-card:nth-child(1) { animation-delay: 0.05s; }
.zhiji-friend-link-card:nth-child(2) { animation-delay: 0.1s; }
.zhiji-friend-link-card:nth-child(3) { animation-delay: 0.15s; }
.zhiji-friend-link-card:nth-child(4) { animation-delay: 0.2s; }
.zhiji-friend-link-card:nth-child(5) { animation-delay: 0.25s; }
.zhiji-friend-link-card:nth-child(6) { animation-delay: 0.3s; }

.zhiji-friend-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.zhiji-friend-link-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    font-weight: bold;
}

.zhiji-friend-link-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.zhiji-friend-link-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.zhiji-friend-link-btn {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.zhiji-friend-link-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.zhiji-page-header {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: zhiji-fadeInUp 1.5s ease-out;
}

.zhiji-page-title {
    font-size: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.zhiji-comments {
    margin-top: 40px;
}

.zhiji-comments-title {
    font-size: 24px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid;
    border-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) 1;
}

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

.zhiji-comment {
    background: #f9f9f9;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.zhiji-comment:hover {
    background: #f5f5f5;
    transform: translateX(5px);
}

.zhiji-comment-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.zhiji-comment-author .fn {
    font-weight: 600;
    color: #333;
}

.zhiji-comment-meta-data {
    font-size: 14px;
    color: #666;
}

.zhiji-comment-meta-data a {
    color: #666;
    text-decoration: none;
}

.zhiji-comment-meta-data a:hover {
    color: #667eea;
}

.zhiji-comment-content {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.zhiji-comment-awaiting-moderation {
    display: block;
    color: #888;
    font-style: italic;
    font-size: 14px;
    margin-top: 10px;
}

.zhiji-reply a {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.zhiji-reply a:hover {
    transform: scale(1.02);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.zhiji-comment-reply-title {
    font-size: 20px;
    margin-bottom: 20px;
}

.comment-form {
    background: #f9f9f9;
    border-radius: 15px;
    padding: 30px;
}

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

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.zhiji-comment-submit {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.zhiji-comment-submit:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.comment-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.comment-navigation a {
    padding: 10px 20px;
    background: white;
    border-radius: 10px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.comment-navigation a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.zhiji-single-post .zhiji-post-content h1 {
    font-size: 32px;
    margin: 30px 0 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--zhiji-primary-color, #667eea);
    color: #333;
}

.zhiji-single-post .zhiji-post-content h2 {
    font-size: 26px;
    margin: 28px 0 18px;
    padding-left: 15px;
    border-left: 4px solid var(--zhiji-primary-color, #667eea);
    color: #333;
}

.zhiji-single-post .zhiji-post-content h3 {
    font-size: 22px;
    margin: 24px 0 16px;
    color: #444;
}

.zhiji-single-post .zhiji-post-content h4 {
    font-size: 20px;
    margin: 20px 0 14px;
    color: #555;
}

.zhiji-single-post .zhiji-post-content h5,
.zhiji-single-post .zhiji-post-content h6 {
    font-size: 18px;
    margin: 18px 0 12px;
    color: #666;
}

.zhiji-single-post .zhiji-post-content p {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.8;
    color: #555;
}

.zhiji-single-post .zhiji-post-content ul,
.zhiji-single-post .zhiji-post-content ol {
    margin: 20px 0;
    padding-left: 35px;
    list-style: none;
}

.zhiji-single-post .zhiji-post-content ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.zhiji-single-post .zhiji-post-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--zhiji-primary-color, #667eea);
    border-radius: 50%;
}

.zhiji-single-post .zhiji-post-content ol {
    list-style: none;
    counter-reset: ol-counter;
    padding-left: 30px;
}

.zhiji-single-post .zhiji-post-content ol li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 30px;
    counter-increment: ol-counter;
}

.zhiji-single-post .zhiji-post-content ol li::before {
    content: counter(ol-counter);
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--zhiji-primary-color, #667eea) 0%, var(--zhiji-bg-color-2, #764ba2) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

.zhiji-single-post .zhiji-post-content blockquote {
    margin: 25px 0;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-left: 4px solid var(--zhiji-primary-color, #667eea);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #666;
    font-size: 17px;
    line-height: 1.7;
}

.zhiji-single-post .zhiji-post-content code {
    display: inline-block;
    padding: 3px 8px;
    background: #f4f4f4;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    color: #c7254e;
    border: 1px solid #eee;
}

.zhiji-single-post .zhiji-post-content pre {
    margin: 25px 0;
    padding: 20px;
    background: #1e1e1e;
    border-radius: 10px;
    overflow-x: auto;
    border: 1px solid #333;
}

.zhiji-single-post .zhiji-post-content pre code {
    display: block;
    padding: 0;
    background: transparent;
    color: #ccc;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
    border: none;
    white-space: pre;
}

.zhiji-single-post .zhiji-post-content hr {
    margin: 40px 0;
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--zhiji-primary-color, #667eea), transparent);
}

.zhiji-single-post .zhiji-post-content a {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.zhiji-single-post .zhiji-post-content a:hover {
    color: var(--zhiji-primary-color, #667eea);
}

.zhiji-single-post .zhiji-post-content .zhiji-markdown-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.zhiji-single-post .zhiji-post-content strong {
    font-weight: 600;
    color: #333;
}

.zhiji-single-post .zhiji-post-content em {
    font-style: italic;
    color: #666;
}

.zhiji-single-post .zhiji-post-content table {
    width: 100%;
    margin: 25px 0;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.zhiji-single-post .zhiji-post-content th {
    background: linear-gradient(135deg, var(--zhiji-primary-color, #667eea) 0%, var(--zhiji-bg-color-2, #764ba2) 100%);
    color: white;
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
}

.zhiji-single-post .zhiji-post-content td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    color: #555;
}

.zhiji-single-post .zhiji-post-content tr:hover td {
    background: rgba(102, 126, 234, 0.05);
}

.zhiji-widget .wp-block-search {
    margin-bottom: 20px;
}

.zhiji-widget .wp-block-search__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.zhiji-widget .wp-block-search__inside-wrapper {
    display: flex;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.zhiji-widget .wp-block-search__input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    outline: none;
    font-size: 14px;
    background: #fff;
    color: #333;
}

.zhiji-widget .wp-block-search__input::placeholder {
    color: #999;
}

.zhiji-widget .wp-block-search__button {
    padding: 12px 25px;
    border: none;
    background: linear-gradient(135deg, var(--zhiji-primary-color, #667eea) 0%, var(--zhiji-bg-color-2, #764ba2) 100%);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zhiji-widget .wp-block-search__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.zhiji-widget .wp-block-group {
    margin-bottom: 20px;
}

.zhiji-widget .wp-block-heading {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--zhiji-primary-color, #667eea);
    position: relative;
}

.zhiji-widget .wp-block-heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--zhiji-primary-color, #667eea) 0%, var(--zhiji-bg-color-2, #764ba2) 100%);
}

.zhiji-widget .wp-block-latest-posts__list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    counter-reset: post-counter;
}

.zhiji-widget .wp-block-latest-posts__list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 30px;
    counter-increment: post-counter;
}

.zhiji-widget .wp-block-latest-posts__list li::before {
    content: counter(post-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--zhiji-primary-color, #667eea) 0%, var(--zhiji-bg-color-2, #764ba2) 100%);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.zhiji-widget .wp-block-latest-posts__post-title {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.6;
    padding-top: 3px;
    display: block;
}

.zhiji-widget .wp-block-latest-comments {
    list-style: none;
    padding-left: 0;
    margin: 0;
    counter-reset: comment-counter;
}

.zhiji-widget .wp-block-latest-comments__comment {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 30px;
    counter-increment: comment-counter;
}

.zhiji-widget .wp-block-latest-comments__comment:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.zhiji-widget .wp-block-latest-comments__comment::before {
    content: counter(comment-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--zhiji-primary-color, #667eea) 0%, var(--zhiji-bg-color-2, #764ba2) 100%);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zhiji-widget .wp-block-latest-comments__comment-meta {
    font-size: 14px;
    line-height: 1.6;
}

.zhiji-widget .wp-block-latest-comments__comment-author {
    color: #333;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.zhiji-widget .wp-block-latest-comments__comment-author:hover {
    color: var(--zhiji-primary-color, #667eea);
}

.zhiji-widget .wp-block-latest-comments__comment-link {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.zhiji-widget .wp-block-latest-comments__comment-link:hover {
    color: var(--zhiji-primary-color, #667eea);
}

.zhiji-table-wrapper {
    overflow-x: auto;
    margin: 25px 0;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.zhiji-markdown-table {
    width: 100%;
    border-collapse: collapse;
}

.zhiji-markdown-table th,
.zhiji-markdown-table td {
    padding: 15px 20px;
    border: 1px solid #eee;
}

.zhiji-markdown-table th {
    background: linear-gradient(135deg, var(--zhiji-primary-color, #667eea) 0%, var(--zhiji-bg-color-2, #764ba2) 100%);
    color: white;
    font-weight: 600;
}

.zhiji-markdown-table td {
    background: white;
    color: #555;
}

.zhiji-markdown-table tr:hover td {
    background: rgba(102, 126, 234, 0.05);
}

.zhiji-task-list {
    list-style: none;
    padding-left: 0;
}

.zhiji-task-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 10px;
}

.zhiji-task-checkbox {
    position: absolute;
    left: 0;
    top: 3px;
    width: 20px;
    height: 20px;
    border: 2px solid var(--zhiji-primary-color, #667eea);
    border-radius: 4px;
    background: white;
}

.zhiji-task-checkbox.checked {
    background: var(--zhiji-primary-color, #667eea);
}

.zhiji-task-checkbox.checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.zhiji-task-list-item.checked {
    text-decoration: line-through;
    color: #999;
}

.zhiji-post-content del {
    color: #999;
    text-decoration: line-through;
}

@media (max-width: 768px) {
    .zhiji-single-post .zhiji-post-content h1 {
        font-size: 26px;
    }
    
    .zhiji-single-post .zhiji-post-content h2 {
        font-size: 22px;
    }
    
    .zhiji-single-post .zhiji-post-content h3 {
        font-size: 20px;
    }
    
    .zhiji-single-post .zhiji-post-content p {
        font-size: 16px;
    }
    
    .zhiji-single-post .zhiji-post-content ul,
    .zhiji-single-post .zhiji-post-content ol {
        padding-left: 25px;
    }
}

@media (max-width: 968px) {
    .zhiji-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .zhiji-footer-content {
        grid-template-columns: 1fr;
    }
    
    .zhiji-header-inner {
        flex-direction: column;
        gap: 20px;
    }
}
