/*
Theme Name: swwlife
Theme URI: https://wordpress.org/themes/swwlife
Author: Your Name
Author URI: https://example.com
Description: 简洁的深色主题，支持两栏布局和灵活的页面结构，完美支持移动端响应式设计
Version: 2.3.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: swwlife
Tags: dark-mode, two-columns, accessibility-ready, mobile-friendly, responsive-layout, blog, e-commerce, left-sidebar, right-sidebar
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
*/

/* 全局样式 */
:root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3d3d3d;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --accent-color: #4a9eff;
    --border-color: #404040;
    --spacing-unit: 1rem;
    --vh: 1vh; /* 用于修复移动端 Safari 100vh 问题 */
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > header {
    flex-shrink: 0;
}

body > footer {
    flex-shrink: 0;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #6cb8ff;
}

/* 顶部区域 */
.site-header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-unit) 0;
}

.header-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    flex: 1;
    min-width: 250px;
}

.site-logo {
    display: inline-block;
    max-width: 200px;
}

.site-title-wrapper {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.site-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0;
    line-height: 1.2;
}

.site-title a {
    color: var(--text-primary);
}

.site-description-inline {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
}

/* 社交菜单 */
.social-navigation {
    flex: 0 0 auto;
    margin-left: 1rem;
}

.social-menu {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.social-menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--bg-tertiary);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-menu a:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
}

/* 移动端菜单切换 */
.menu-toggle {
    display: none;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    line-height: 1;
}

.menu-toggle:hover {
    background-color: var(--accent-color);
    color: #fff;
}

/* 主导航 */
.main-navigation {
    margin-top: 1rem;
    flex-basis: 100%;
}

.main-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-unit);
    margin: 0;
    padding: 0;
}

.main-menu a {
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.main-menu a:hover,
.main-menu a:focus {
    background-color: var(--bg-tertiary);
    color: var(--accent-color);
}

.main-menu .current-menu-item a {
    background-color: var(--accent-color);
    color: #fff;
}

/* 移动端样式 */
@media (max-width: 768px) {
    .header-top {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        position: relative;
    }
    
    .site-branding {
        min-width: 100%;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .site-description-inline {
        font-size: 0.9rem;
    }
    
    .social-navigation {
        margin-left: 0;
        margin-bottom: 1rem;
        order: 3;
    }
    
    .menu-toggle {
        display: inline-block;
        margin-left: auto;
    }
    
    .main-navigation {
        flex-basis: 100%;
        order: 2;
    }
    
    .main-menu {
        flex-direction: column;
        gap: 0.25rem;
        display: none;
    }
    
    .main-menu.active {
        display: flex;
    }
    
    .main-menu a {
        padding: 0.75rem 1rem;
    }
}

/* 主要内容区 - 两栏布局 */
.site-main {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem var(--spacing-unit);
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    position: relative;
    grid-template-areas: "content sidebar";
}

/* 左侧/中间主要内容 */
.content-area {
    grid-area: content;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: var(--spacing-unit);
}

/* 右侧边栏 */
.widget-area {
    grid-area: sidebar;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-unit);
}

.widget {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: var(--spacing-unit);
}

.widget-title {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-unit);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
    font-weight: bold;
}

.widget ul {
    list-style: none;
}

.widget li {
    margin-bottom: 0.5rem;
}

/* 标签云 */
.tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tagcloud a {
    display: inline-block;
    background-color: var(--bg-tertiary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.tagcloud a:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
}

/* 近期评论 */
.recent-comments {
    list-style: none;
    margin: 0;
    padding: 0;
}

.recent-comments li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

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

.comment-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.comment-item img {
    border-radius: 50%;
    border: 2px solid var(--accent-color);
}

.comment-info {
    flex: 1;
}

.comment-author {
    display: block;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.comment-post {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.comment-post a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.comment-post a:hover {
    color: var(--accent-color);
}

/* 热文排行 */
.hot-posts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hot-posts li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background-color: var(--bg-tertiary);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.hot-posts li:hover {
    background-color: var(--bg-secondary);
    transform: translateX(5px);
}

.hot-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: var(--accent-color);
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.9rem;
}

.hot-posts li:nth-child(1) .hot-number {
    background-color: #ff4757;
}

.hot-posts li:nth-child(2) .hot-number {
    background-color: #ffa502;
}

.hot-posts li:nth-child(3) .hot-number {
    background-color: #ff6b81;
}

.hot-posts a {
    flex: 1;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.hot-posts a:hover {
    color: var(--accent-color);
}

/* 站点统计 */
.site-stats {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-stats li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: var(--bg-tertiary);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.site-stats li:hover {
    background-color: var(--bg-secondary);
}

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

.stat-value {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* 订阅 */
.subscribe-text {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.subscribe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ff6b35;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.subscribe-btn:hover {
    background-color: #ff8c5a;
    transform: translateY(-2px);
    color: #fff;
}

.rss-btn {
    background-color: #ff9f43;
}

.rss-btn:hover {
    background-color: #ffb56b;
}

/* 收藏 */
.favorite-actions {
    text-align: center;
}

.favorite-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.favorite-btn:hover {
    background-color: #6cb8ff;
    transform: scale(1.05);
}

.favorite-icon {
    font-size: 1.2rem;
}

.favorite-tip {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 文章样式 */
article {
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    padding: var(--spacing-unit);
    margin-bottom: var(--spacing-unit);
}

/* 特色图片 */
.post-thumbnail {
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 8px;
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.post-thumbnail:hover .featured-image {
    transform: scale(1.05);
}

/* 阅读更多按钮 */
.read-more {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #6cb8ff;
    color: #fff;
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background-color: var(--bg-tertiary);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: var(--accent-color);
    color: #fff;
}

.pagination .prev,
.pagination .next {
    min-width: auto;
}

/* 编辑链接 */
.edit-link a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.edit-link a:hover {
    color: var(--accent-color);
}

.entry-header {
    margin-bottom: var(--spacing-unit);
}

.entry-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.entry-title a {
    color: var(--text-primary);
}

.entry-title a:hover {
    color: var(--accent-color);
}

.entry-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.entry-content {
    line-height: 1.8;
}

.entry-footer {
    margin-top: var(--spacing-unit);
    padding-top: var(--spacing-unit);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* 底部区域 */
.site-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem var(--spacing-unit) 2rem;
    margin-top: 2rem;
    flex-shrink: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    color: var(--text-secondary);
}

/* 底部小工具区域 */
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget-area {
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    padding: 1.5rem;
}

.footer-widget-area .widget-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
    color: var(--text-primary);
}

/* 底部菜单 */
.footer-navigation {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-menu {
    list-style: none;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.footer-menu a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: var(--accent-color);
}

/* 底部链接 */
.footer-links {
    text-align: center;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* 联系方式 */
.footer-contact {
    text-align: center;
    margin-bottom: 1.5rem;
}

.contact-info {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-icon {
    font-size: 1.2rem;
}

.contact-item a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-color);
}

/* 社交媒体图标 */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-tertiary);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-icon:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
}

/* 版权信息 */
.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.footer-copyright.minimal {
    padding-top: 1rem;
}

.footer-copyright p {
    margin: 0.5rem 0;
}

/* 底部自定义内容 */
.footer-custom {
    text-align: center;
    margin-bottom: 1rem;
}

/* 页面布局支持 */
.page-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-unit);
}

.page-top {
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    padding: var(--spacing-unit);
}

.page-left {
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    padding: var(--spacing-unit);
}

.page-center {
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    padding: var(--spacing-unit);
}

.page-right {
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    padding: var(--spacing-unit);
}

.page-bottom {
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    padding: var(--spacing-unit);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .content-area {
        padding: 0.75rem;
    }

    .widget {
        padding: 0.75rem;
    }
}

@media (max-width: 768px) {
    /* 主导航区域 */
    .header-top {
        padding: 0.75rem;
    }

    .site-branding {
        min-width: 100%;
        margin-bottom: 0.75rem;
    }

    .site-title {
        font-size: 1.5rem;
    }

    .site-description-inline {
        font-size: 0.9rem;
    }

    .social-navigation {
        margin-left: 0;
        margin-bottom: 0.75rem;
        order: 3;
        width: 100%;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
        position: absolute;
        top: 1rem;
        right: 1rem;
        padding: 0.5rem 1rem;
        font-size: 1.3rem;
    }

    .main-navigation {
        flex-basis: 100%;
        order: 2;
    }

    .main-menu {
        flex-direction: column;
        gap: 0.25rem;
        display: none;
        background-color: var(--bg-tertiary);
        border-radius: 8px;
        padding: 0.5rem;
        margin-top: 0.5rem;
    }

    .main-menu.active {
        display: flex;
    }

    .main-menu a {
        padding: 0.75rem 1rem;
        border-radius: 4px;
    }

    /* 主要内容区 */
    .site-main {
        grid-template-columns: 1fr;
        padding: 1rem 0.75rem;
    }

    /* 文章样式 */
    .entry-title {
        font-size: 1.4rem;
    }

    .post-thumbnail {
        margin-bottom: 0.75rem;
    }

    .post-stats {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    /* 分页 */
    .pagination {
        gap: 0.25rem;
    }

    .pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        padding: 0 0.5rem;
        font-size: 0.9rem;
    }

    /* 底部区域 */
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .footer-widget-area {
        padding: 1rem;
    }

    .footer-menu,
    .footer-links ul {
        flex-direction: column;
        gap: 0.75rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-copyright {
        font-size: 0.85rem;
    }

    .footer-copyright.minimal {
        padding-top: 1rem;
    }

    /* 侧边栏 */
    .widget-title {
        font-size: 1.1rem;
    }

    .tagcloud a {
        padding: 0.25rem 0.6rem;
        font-size: 0.85rem;
    }

    .hot-posts li {
        padding: 0.4rem;
    }

    /* 评论区域 */
    .comments-area {
        padding: 1.5rem 1rem;
    }

    .comment-body {
        padding: 1rem;
    }

    .comment-respond {
        padding: 1rem;
    }

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

    /* 面包屑 */
    .breadcrumb {
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    /* 搜索表单 */
    .search-form {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    /* 顶部区域 */
    .site-header {
        padding: 0.75rem 0;
    }

    .site-title {
        font-size: 1.3rem;
        line-height: 1.3;
    }

    .site-description-inline {
        font-size: 0.85rem;
    }

    .site-title-wrapper {
        gap: 0.25rem;
        align-items: flex-start;
    }

    /* 菜单切换按钮 */
    .menu-toggle {
        width: 36px;
        height: 36px;
        padding: 0;
        font-size: 1.2rem;
    }

    /* 主要内容区 */
    .site-main {
        padding: 0.75rem 0.5rem;
    }

    .content-area,
    .widget {
        padding: 0.6rem;
        border-radius: 6px;
    }

    article {
        padding: 0.75rem;
        border-radius: 6px;
    }

    /* 文章标题 */
    .entry-title {
        font-size: 1.25rem;
    }

    .entry-meta {
        font-size: 0.85rem;
    }

    .post-stats {
        font-size: 0.8rem;
        gap: 0.5rem;
    }

    /* 面包屑 */
    .breadcrumb {
        padding: 0.5rem;
        font-size: 0.8rem;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* 分页 */
    .pagination {
        flex-wrap: wrap;
    }

    .pagination .page-numbers {
        min-width: 32px;
        height: 32px;
        padding: 0 0.4rem;
        font-size: 0.85rem;
    }

    /* 底部 */
    .site-footer {
        padding: 2rem 0.75rem 1.5rem;
    }

    .footer-widget-area {
        padding: 0.75rem;
    }

    .footer-widget-area .widget-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .footer-menu,
    .footer-links ul {
        font-size: 0.9rem;
        gap: 0.5rem;
    }

    /* 社交图标 */
    .social-menu a,
    .social-icon {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    /* 按钮 */
    button,
    input[type="submit"],
    .read-more,
    .subscribe-btn,
    .favorite-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    /* 评论 */
    .comments-title {
        font-size: 1.2rem;
    }

    .comment-reply-title {
        font-size: 1.1rem;
    }

    .comment-body {
        padding: 0.75rem;
    }

    /* 小工具 */
    .widget-title {
        font-size: 1rem;
    }

    .site-stats li {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .hot-posts li {
        padding: 0.4rem;
        font-size: 0.9rem;
    }

    .hot-number {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }

    /* 表单 */
    input,
    textarea {
        padding: 0.6rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.2rem;
    }

    .site-description-inline {
        font-size: 0.8rem;
    }

    .entry-title {
        font-size: 1.15rem;
    }

    .content-area,
    .widget,
    article {
        padding: 0.5rem;
    }

    .footer-widgets {
        gap: 0.75rem;
    }

    .widget {
        margin-bottom: 0.5rem;
    }
}

/* 移动端触摸优化 */
@media (hover: none) and (pointer: coarse) {
    /* 增大可点击区域 */
    button,
    a,
    input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }

    .tagcloud a,
    .social-menu a,
    .social-icon {
        min-height: 44px;
        min-width: 44px;
    }

    /* 移除悬停效果,改用点击反馈 */
    a:active,
    button:active,
    .hot-posts li:active {
        background-color: var(--accent-color);
        color: #fff;
        transform: scale(0.98);
    }
}

/* 横屏优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .site-header {
        padding: 0.5rem 0;
    }

    .site-title {
        font-size: 1.2rem;
    }

    .site-main {
        padding: 1rem;
    }

    .site-footer {
        padding: 1.5rem 1rem;
    }
}

/* 面包屑导航 */
.breadcrumb {
    padding: 1rem;
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.breadcrumb nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

.breadcrumb .separator {
    color: var(--text-secondary);
    opacity: 0.5;
}

/* 搜索表单 */
.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-field {
    flex: 1;
}

.search-submit {
    padding: 0.75rem 1.5rem;
}

/* 文章元数据增强 */
.entry-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.entry-meta .meta-item::before {
    content: '•';
    margin: 0 0.5rem;
    opacity: 0.5;
}

.entry-meta .meta-item:first-child::before {
    display: none;
}

/* 阅读时间和浏览数 */
.post-stats {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    font-size: 1.2rem;
}

.back-to-top:hover {
    background-color: #6cb8ff;
    transform: translateY(-3px);
}

.back-to-top:active {
    transform: translateY(-1px);
}

.back-to-top.show {
    display: flex;
}

/* 表单样式 */
input,
textarea {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem;
    border-radius: 4px;
    width: 100%;
}

input:focus,
textarea:focus {
    outline: 2px solid var(--accent-color);
    border-color: var(--accent-color);
}

button,
input[type="submit"] {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover,
input[type="submit"]:hover {
    background-color: #6cb8ff;
}

/* 评论区域样式 */
.comments-area {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
}

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

.comment-list li {
    margin-bottom: 1.5rem;
}

.comment-list li ul {
    list-style: none;
    padding-left: 2rem;
    margin-top: 1.5rem;
}

.comment-body {
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    padding: 1.5rem;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.comment-author img {
    border-radius: 50%;
    border: 2px solid var(--accent-color);
}

.comment-author .fn {
    font-weight: bold;
    color: var(--text-primary);
}

.comment-metadata {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

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

.comment-awaiting-moderation {
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    margin: 0.5rem 0;
    display: inline-block;
}

.comment-content {
    line-height: 1.8;
}

.reply-wrapper {
    margin-top: 1rem;
}

.reply a {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.reply a:hover {
    background-color: #6cb8ff;
    color: #fff;
}

/* 评论表单 */
.comment-respond {
    margin-top: 2rem;
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    padding: 1.5rem;
}

.comment-reply-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.comment-respond > * {
    margin-bottom: 1rem;
}

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

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.comment-form .required {
    color: #ff6b6b;
}

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

.submit-button {
    background-color: var(--accent-color) !important;
}

/* 页面链接 */
.page-links {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.page-links > span {
    display: inline-block;
    background-color: var(--bg-secondary);
    padding: 0.3rem 0.8rem;
    margin-right: 0.5rem;
    border-radius: 4px;
}

.page-links a {
    color: var(--text-primary);
}

.page-links a:hover {
    color: var(--accent-color);
}

/* 归档页面标题 */
.page-header {
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.page-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.archive-description,
.category-description,
.tag-description {
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* 作者页面 */
.author-header {
    text-align: center;
}

.author-header .avatar {
    border-radius: 50%;
    border: 4px solid var(--accent-color);
    margin-bottom: 1rem;
}

.author-bio {
    max-width: 600px;
    margin: 1rem auto;
    color: var(--text-secondary);
}

.author-stats {
    margin-top: 1rem;
    color: var(--accent-color);
    font-weight: bold;
}

/* 无结果页面 */
.not-found {
    text-align: center;
}

.no-results .search-form {
    max-width: 500px;
    margin: 2rem auto;
}

.no-results .widget {
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.no-results .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.no-results .widget li {
    margin-bottom: 0.75rem;
}

/* 打印样式 */
@media print {
    .site-header,
    .site-footer,
    .widget-area,
    .breadcrumb,
    .back-to-top,
    .comment-respond {
        display: none !important;
    }
    
    .site-main {
        display: block !important;
    }
    
    .content-area {
        box-shadow: none !important;
        border: none !important;
    }
}

/* 无障碍支持 */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    clip: auto;
    height: auto;
    width: auto;
    display: block;
    font-size: 14px;
    padding: 15px 23px 14px;
    z-index: 999999;
    background-color: #fff;
    color: #333;
}

/* 跳转到内容链接 */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background-color: var(--accent-color);
    color: #fff;
    padding: 10px 20px;
    z-index: 999999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}
