/*
Theme Name: Xion
Description: 一个简洁现代的WordPress主题
Author: Your Name
Version: 2.0
Text Domain: xion
*/

/* ========== 重置样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========== 容器 ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========== 头部 ========== */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.2s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    gap: 2rem;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.site-title a {
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-title a:hover {
    color: #555;
}

.site-icon {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    border-radius: 6px;
}

/* ========== 导航菜单 ========== */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: #666;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.main-navigation a:hover {
    color: #333;
    background: #f5f5f5;
}

.main-navigation a.current-menu-item,
.main-navigation a.current_page_item,
.main-navigation a.active {
    color: #333;
    background: #f0f0f0;
    font-weight: 600;
}

/* ========== 头部操作按钮 ========== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-toggle,
.activate-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: 1px solid #eee;
    cursor: pointer;
    padding: 0.6rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.search-toggle:hover,
.activate-button:hover {
    background: #eee;
}

.search-icon,
.activate-icon {
    width: 18px;
    height: 18px;
    color: #666;
}

/* ========== 搜索覆盖层 ========== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 560px;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.search-overlay.active .search-container {
    transform: scale(1);
}

.search-container .search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: #333;
    color: #fff;
}

.search-container .search-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.search-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.search-close:hover {
    background: rgba(255,255,255,0.2);
}

.search-close svg {
    width: 16px;
    height: 16px;
}

.search-form-overlay {
    padding: 1.5rem;
}

.search-input-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.search-field-overlay {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.search-field-overlay:focus {
    border-color: #333;
}

.search-submit-overlay {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s ease;
}

.search-submit-overlay:hover {
    background: #555;
}

.search-submit-overlay svg {
    width: 16px;
    height: 16px;
}

.search-suggestions {
    padding: 0 1.5rem 1.5rem;
}

.search-trending h4 {
    margin: 0 0 0.75rem;
    color: #333;
    font-size: 0.9rem;
    font-weight: 600;
}

.trending-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.trending-tag {
    display: inline-block;
    padding: 0.4rem 0.875rem;
    background: #f5f5f5;
    color: #666;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.trending-tag:hover {
    background: #333;
    color: #fff;
}

body.search-open {
    overflow: hidden;
}

/* ========== 菜单切换按钮 ========== */
.menu-toggle {
    display: none;
    background: #f5f5f5;
    border: 1px solid #eee;
    cursor: pointer;
    padding: 0.6rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
}

.menu-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 18px;
}

.menu-toggle-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background: #333;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.menu-toggle.active .menu-toggle-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .menu-toggle-icon span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-toggle-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== 主要内容区域 ========== */
.site-main {
    padding: 1.5rem 0;
    min-height: 60vh;
    background: #f8f8f8;
}

.search-section {
    margin-bottom: 20px;
}

/* ========== 文章容器 ========== */
.posts-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

/* ========== 文章卡片 ========== */
.post {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}


.post-thumbnail {
    position: relative;
    overflow: hidden;
    display: block;
    width: 100%;
    padding-bottom: 150%;
}

.post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}


.post-thumbnail-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

/* ========== 海报标签 ========== */
.post-badge {
    position: absolute;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-sticky-badge {
    top: 0.75rem;
    left: 0.75rem;
    background: #333;
}

.post-category-badge {
    bottom: 0.75rem;
    left: 0.75rem;
    background: rgba(0,0,0,0.7);
}

.post-views-badge {
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(0,0,0,0.7);
}

.post-rating-badge {
    top: 0.75rem;
    right: 0.75rem;
    background: #333;
}

.category-icon,
.views-icon,
.rating-icon {
    width: 12px;
    height: 12px;
    opacity: 0.9;
}

.post-content {
    padding: 0.875rem;
    background: #fff;
}

.post-title {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.3;
    margin: 0 0 0.3rem;
    font-weight: 600;
}

.post-title a {
    color: inherit;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-title a:hover {
    color: #555;
}

.post-tags-info {
    display: block;
    overflow: hidden;
    margin-top: 0.1rem;
    line-height: 1.3;
    max-height: 2.6rem;
}

.post-tags-info a {
    color: #999;
    font-size: 0.7rem;
}

.post-tags-info a:hover {
    color: #666;
}

.post-tags-info .tag-separator {
    color: #ccc;
    margin: 0 0.25rem;
    font-size: 0.7rem;
}

/* ========== 分页 ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-radius: 12px;
    border: 1px solid #eee;
}

.pagination .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span.page-numbers {
    padding: 0.625rem 1rem;
    border: 1px solid #e0e0e0;
    color: #555;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    background: #fff;
    min-width: 42px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.pagination a:hover {
    background: #333;
    color: #fff;
    border-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.pagination .current {
    background: #333;
    color: #fff;
    border-color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.pagination .dots {
    background: transparent;
    border: none;
    color: #999;
    box-shadow: none;
    min-width: auto;
    padding: 0.625rem 0.5rem;
}

.pagination .prev,
.pagination .next {
    padding: 0.625rem 1.25rem;
    font-weight: 600;
}

/* ========== 加载更多按钮 ========== */
.load-more-btn {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 2rem auto;
    padding: 0.875rem 1.5rem;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.load-more-btn:hover {
    background: #555;
}

.load-more-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.load-more-btn.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 0.5rem;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== 侧边栏 ========== */
.sidebar {
    background: #fff;
    padding: 1.25rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    border: 1px solid #eee;
}

.widget {
    margin-bottom: 1.5rem;
}

.widget-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #333;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #333;
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.widget a {
    color: #666;
}

.widget a:hover {
    color: #333;
}

/* ========== 底部 ========== */
.site-footer {
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    color: #fff;
    text-align: center;
    padding: 0;
    margin-top: 1.5rem;
}

.footer-top {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
    margin-bottom: 1.25rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

.footer-tagline {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    list-style: none;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: color 0.2s ease;
    position: relative;
}

.footer-links a:hover {
    color: #fff;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.2s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-bottom {
    padding: 0.75rem 1.5rem;
    background: rgba(0,0,0,0.2);
}

.footer-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

.footer-info p {
    margin: 0;
}

.footer-divider {
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
}

.footer-love {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.heart {
    color: #ff6b6b;
    animation: heartbeat 1.5s ease-in-out infinite;
    display: inline-block;
    font-size: 0.9rem;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.footer-copyright {
    color: rgba(255,255,255,0.4);
}

.footer-copyright a {
    color: rgba(255,255,255,0.6);
    transition: color 0.2s ease;
}

.footer-copyright a:hover {
    color: #fff;
}

/* ========== 工具类 ========== */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 1rem; }
.mt-2 { margin-top: 1rem; }

/* ========== 阅读进度条 ========== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(0,0,0,0.1);
    z-index: 9999;
}

.progress-bar {
    height: 100%;
    background: #333;
    width: 0%;
    transition: width 0.2s ease;
}

/* ========== 回到顶部 ========== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background: #555;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* ========== 搜索表单 ========== */
.search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-field {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    outline: none;
    transition: border-color 0.2s ease;
    flex: 1;
}

.search-field:focus {
    border-color: #333;
}

.search-submit {
    margin-left: 0.5rem;
    padding: 0.5rem 1rem;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-submit:hover {
    background: #555;
}

/* ========== 页面样式 ========== */
.page-wrapper {
    margin: 0;
    padding: 0;
}

.page-content-wrapper {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    overflow: hidden;
    margin-bottom: 2rem;
}

.page-header {
    background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
    color: #fff;
    text-align: center;
    padding: 2.5rem 2rem;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: -0.5px;
}

.page-content {
    padding: 2rem;
    line-height: 1.8;
    font-size: 1rem;
    color: #444;
}

.page-content h2 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    padding-left: 0.75rem;
    border-left: 3px solid #333;
}

.page-content h3 {
    font-size: 1.25rem;
    margin: 1.25rem 0 0.75rem;
}

.page-content p {
    margin-bottom: 1rem;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1rem 0;
}

.page-content blockquote {
    border-left: 3px solid #e5e5e5;
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    background: #f8f8f8;
    border-radius: 0 6px 6px 0;
    color: #666;
}

.page-content ul,
.page-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.page-content li {
    margin-bottom: 0.4rem;
}

.page-content a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.page-content a:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
}

/* ========== 搜索页面 ========== */
.search .site-main .search-header {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid #eee;
}

.search .site-main .search-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.search .site-main .search-query {
    color: #333;
    font-weight: 700;
}

/* ========== 无搜索结果 ========== */
.no-posts {
    text-align: center;
    padding: 3rem 2rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
}

.no-posts h2 {
    font-size: 1.75rem;
    color: #333;
    margin-bottom: 0.75rem;
}

.no-posts p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.no-posts .search-suggestions {
    margin: 2rem auto;
    max-width: 600px;
    padding: 1.5rem;
    background: #f8f8f8;
    border-radius: 8px;
    text-align: left;
}

.no-posts .search-suggestions h3 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.no-posts .search-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.no-posts .search-suggestions li {
    padding: 0.75rem 1rem;
    background: #fff;
    border-radius: 6px;
    color: #666;
    margin-bottom: 0.5rem;
    border: 1px solid #eee;
}

.search-again {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f8f8;
    border-radius: 8px;
}

.search-again h3 {
    color: #333;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

.search-again .search-form {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
}

.search-again .search-field {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.search-again .search-submit {
    padding: 0.75rem 1.5rem;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

.search-results-count {
    text-align: center;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 0.95rem;
}

.search-results-count strong {
    color: #333;
}

/* ========== 分类/标签页面 ========== */
.archive .archive-header,
.category .archive-header,
.tag .archive-header {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid #eee;
}

.archive .archive-title,
.category .archive-title,
.tag .archive-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.75rem;
}

.archive .archive-description,
.category .archive-description,
.tag .archive-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

.archive .archive-count,
.category .archive-count,
.tag .archive-count {
    margin-top: 0.75rem;
    padding: 0.4rem 1rem;
    background: #f5f5f5;
    color: #666;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 20px;
    display: inline-block;
}

/* ========== 404页面 ========== */
.error-404 {
    text-align: center;
    padding: 3rem 0;
}

.error-404 .error-title {
    font-size: 6rem;
    font-weight: bold;
    color: #333;
    margin: 0;
    line-height: 1;
}

.error-404 .error-description {
    font-size: 1rem;
    color: #666;
    margin: 1.5rem 0;
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    margin: 0 0.25rem;
    border: none;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #333;
    color: #fff;
}

.btn-primary:hover {
    background: #555;
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.btn-secondary:hover {
    background: #eee;
}

/* ========== 文章页面布局 ========== */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.25rem;
    align-items: start;
}

.article-main {
    min-width: 0;
}

.article-sidebar {
    position: sticky;
    top: 1.5rem;
}

/* ========== 页面布局（无侧边栏） ========== */
.page-layout {
    display: block;
    width: 100%;
}

.page-main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ========== 单篇文章 ========== */
.single-post {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    overflow: hidden;
}

.breadcrumbs {
    padding: 1rem 1.5rem;
    background: #333;
    color: #fff;
}

.breadcrumb-wrapper {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.breadcrumb-icon {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.breadcrumb-home,
.breadcrumb-category {
    color: rgba(255,255,255,0.8);
}

.breadcrumb-home:hover,
.breadcrumb-category:hover {
    color: #fff;
}

.breadcrumb-separator {
    opacity: 0.5;
}

.breadcrumb-current {
    font-weight: 500;
}

.single-post .post-header {
    padding: 0 1.5rem;
    border-bottom: 1px solid #eee;
}

.single-post .post-title {
    font-size: 1.5rem;
    color: #333;
    margin: 1.25rem 0;
    font-weight: 700;
    line-height: 1.4;
}

.single-post .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding: 1rem 0;
    border-top: 1px solid #eee;
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #999;
    font-size: 0.85rem;
}

.meta-icon {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.post-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #999;
    font-size: 0.85rem;
    white-space: nowrap;
}

.post-edit-btn .edit-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.post-edit-btn:hover {
    color: #333;
}

.single-post .post-content {
    padding: 1.5rem;
    line-height: 1.7;
    font-size: 1rem;
    color: #444;
}

.single-post .post-content a {
    color: #2563eb;
    transition: color 0.2s ease;
}

.single-post .post-content a:hover {
    color: #1d4ed8;
}

.single-post .post-content h2 {
    color: #333;
    margin: 1.5rem 0 1rem;
    font-size: 1.35rem;
    font-weight: 600;
    padding-left: 0.75rem;
    border-left: 3px solid #333;
}

.single-post .post-content h3 {
    color: #333;
    font-size: 1.15rem;
    font-weight: 600;
}

.single-post .post-content p {
    margin-bottom: 1rem;
}

.single-post .post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1rem 0;
}

.single-post .post-content blockquote {
    border-left: 3px solid #e5e5e5;
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    background: #f8f8f8;
    border-radius: 0 6px 6px 0;
    color: #666;
}

.single-post .post-content ul,
.single-post .post-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.single-post .post-content li {
    margin-bottom: 0.3rem;
}

.single-post .post-content pre {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1rem 0;
    font-size: 0.85rem;
}

.single-post .post-content code {
    background: #f0f0f0;
    padding: 0.15rem 0.3rem;
    border-radius: 3px;
    font-size: 0.85rem;
}

.single-post .post-footer {
    background: #f8f8f8;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #eee;
}

/* ========== 标签 ========== */
.single-post .post-tags {
    margin-bottom: 1.25rem;
}

.tags-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.tag-icon {
    width: 16px;
    height: 16px;
    color: #666;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tags-list a {
    display: inline-block;
    background: #333;
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.tags-list a:hover {
    background: #555;
}

/* ========== 文章导航 ========== */
.single-post .post-navigation {
    margin-top: 1.25rem;
}

.nav-links {
    display: flex;
    gap: 0.75rem;
    width: 100%;
}

.nav-item {
    flex: 1;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: border-color 0.2s ease;
}

.nav-item a {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 0.875rem 1rem;
    align-items: center;
    justify-content: center;
}

.nav-item:hover {
    border-color: #333;
}

.nav-prev a {
    align-items: flex-start;
    text-align: left;
}

.nav-next a {
    align-items: flex-end;
    text-align: right;
}

.nav-label {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 0.3rem;
}

.nav-title {
    font-size: 0.85rem;
    color: #333;
    font-weight: 500;
    line-height: 1.3;
}

.nav-empty {
    opacity: 0.5;
}

.nav-placeholder {
    font-size: 0.8rem;
    color: #999;
}

/* ========== 侧边栏卡片 ========== */
.sidebar-card {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #eee;
}

.sidebar-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #333;
}

.article-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem;
    background: #f8f8f8;
    border-radius: 6px;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
}

.stat-value {
    font-size: 0.8rem;
    color: #333;
    font-weight: 500;
}

/* ========== 目录 ========== */
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0.4rem;
}

.toc-level-2 { padding-left: 0; }
.toc-level-3 { padding-left: 0.75rem; }
.toc-level-4 { padding-left: 1.5rem; }

.toc-link {
    display: block;
    color: #666;
    padding: 0.4rem;
    border-radius: 4px;
    font-size: 0.8rem;
    line-height: 1.3;
    transition: all 0.2s ease;
}

.toc-link:hover {
    background: #f5f5f5;
    color: #333;
}

/* ========== 相关文章 ========== */
.related-posts-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.related-post-item {
    display: flex;
    gap: 0.6rem;
    padding: 0.6rem;
    background: #f8f8f8;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.related-post-item:hover {
    background: #f0f0f0;
}

.related-post-thumb {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
}

.related-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-content {
    flex: 1;
    min-width: 0;
}

.related-post-title {
    margin: 0 0 0.3rem;
    font-size: 0.8rem;
    line-height: 1.3;
}

.related-post-title a {
    color: #333;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post-title a:hover {
    color: #555;
}

.related-post-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: #999;
}

/* ========== 标签云 ========== */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag-item {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background: #f5f5f5;
    color: #666;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tag-item:hover {
    background: #333;
    color: #fff;
}

/* ========== 旧相关文章 ========== */
.related-posts {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f8f8;
    border-radius: 8px;
}

.related-posts h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.related-post {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: transform 0.2s ease;
}

.related-post:hover {
    transform: translateY(-2px);
}

.related-post-thumbnail {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-bottom: 150%;
}

.related-post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post h4 {
    padding: 0.6rem;
    margin: 0;
    text-align: center;
    background: #fff;
}

.related-post h4 a {
    color: #333;
    font-size: 0.8rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post h4 a:hover {
    color: #555;
}

/* ========== 评论区域 ========== */
.comments-area {
    margin: 1rem 0;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
}

.comments-title {
    color: #333;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list li {
    list-style: none;
}

.comment-list .comment {
    margin-bottom: 0.75rem;
}

.comment-body {
    background: #f8f8f8;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid #eee;
}

.comment-body:hover {
    background: #f5f5f5;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.comment-author .avatar {
    border-radius: 50%;
    width: 36px;
    height: 36px;
}

.comment-author .fn {
    font-weight: 500;
    color: #333;
    font-style: normal;
}

.comment-metadata {
    color: #999;
    font-size: 0.8rem;
    margin-left: auto;
}

.comment-metadata a {
    color: #999;
}

.comment-content {
    margin: 0.6rem 0;
    line-height: 1.5;
    color: #555;
}

.comment-content p {
    margin: 0 0 0.4rem;
}

.reply a {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background: #f0f0f0;
    color: #666;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.reply a:hover {
    background: #e5e5e5;
    color: #333;
}

.no-comments {
    text-align: center;
    color: #999;
    padding: 1.5rem;
    background: #f8f8f8;
    border-radius: 6px;
}

/* ========== 评论表单 ========== */
.comment-respond {
    margin-top: 1.25rem;
    padding: 1rem;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #eee;
}

.comment-reply-title {
    color: #333;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.comment-form {
    display: grid;
    gap: 0.75rem;
}

.comment-form p {
    margin: 0;
}

.comment-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.required {
    color: #e74c3c;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #333;
}

.comment-form textarea {
    resize: vertical;
    min-height: 100px;
}

.comment-form .form-submit {
    text-align: right;
}

.comment-form .submit {
    background: #333;
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.comment-form .submit:hover {
    background: #555;
}

.must-log-in,
.logged-in-as {
    background: #f8f8f8;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.must-log-in a,
.logged-in-as a {
    color: #333;
    font-weight: 500;
}

.comment-notes {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.comment-list .children {
    margin-left: 1.25rem;
    margin-top: 0.6rem;
}

.comment-list .children .comment-body {
    background: #fff;
    border-left: 2px solid #e5e5e5;
}

.comment-awaiting-moderation {
    background: #fef3c7;
    color: #92400e;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
}

/* ========== 短代码页面 ========== */
.shortcode-page-wrapper {
    padding: 1.5rem 0;
    min-height: 60vh;
}

.shortcode-content {
    background: #fff;
    border-radius: 12px;
    border: none;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.shortcode-header {
    background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
    color: #fff;
    text-align: center;
    padding: 2.5rem 2rem;
}

.shortcode-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    letter-spacing: -0.5px;
}

.shortcode-body {
    padding: 2rem;
    line-height: 1.8;
    color: #444;
}

.shortcode-pagination {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.shortcode-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    min-width: 40px;
    background: #f5f5f5;
    color: #666;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    border: 1px solid #eee;
}

.shortcode-pagination a:hover {
    background: #333;
    color: #fff;
    border-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.shortcode-pagination a.current {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* ========== 点赞按钮 ========== */
.post-like-section {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
    margin: 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.like-button {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #666;
    transition: all 0.3s ease;
}

.like-button:hover:not(.liked):not(:disabled) {
    border-color: #ff6b6b;
    color: #ff6b6b;
    transform: scale(1.05);
}

.like-button:hover:not(.liked):not(:disabled) .like-icon {
    fill: rgba(255, 107, 107, 0.1);
}

.like-button.liked {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    border-color: #ff6b6b;
    color: #fff;
    cursor: default;
}

.like-button.liked .like-icon {
    animation: likeAnimation 0.5s ease;
}

.like-icon {
    width: 16px;
    height: 16px;
    transition: all 0.3s ease;
}

.like-count {
    font-weight: 600;
    min-width: 1.5rem;
    text-align: center;
}

@keyframes likeAnimation {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ========== 返回顶部按钮 ========== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 999;
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #555;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.back-to-top:active {
    transform: translateY(-1px);
}

/* ========== 响应式 - 在 mobile.css 中定义 ========== */
