/* 手机端专用样式 */

/* 折叠按钮 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block !important;
    }
    
    /* 主布局：改为垂直单列 */
    .main-layout {
        flex-direction: column;
        padding-left: 0;
        flex-wrap: nowrap; /* 改为不换行，垂直顺序排列 */
        display: flex;
    }

    /* 侧边栏：固定侧滑不变，只是顺序在最上 */
    .sidebar {
        position: fixed !important;
        top: 80px !important;
        left: 0 !important;
        width: 260px !important;
        height: calc(100vh - 80px) !important;
        max-height: calc(100vh - 80px) !important;
        overflow-y: auto !important;
        z-index: 95 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease !important;
        border-right: 1px solid var(--border-light) !important;
        border-bottom: none !important;
        flex: none !important;
        order: 1;
    }
    
    .sidebar.active {
        transform: translateX(0) !important;
    }

    /* 内容区：放在中间第二位 */
    .content {
        order: 2;
        height: auto;
        min-height: auto;
        padding-bottom: 1rem;
        width: 100% !important;
        flex: 0 0 auto !important;
    }

    /* 右侧边栏：放在最下面第三位，垂直排列 */
    .right-sidebar {
        order: 3;
        width: 100% !important;
        padding: 1rem;
        border-left: none !important;
        border-top: 1px solid var(--border-light);
        margin-top: 1rem;
        position: static !important;
        height: auto !important;
        max-height: none !important;
        flex: 0 0 auto !important;
        top: auto !important;
    }

    /* 右侧边栏区块 */
    .right-sidebar-section {
        margin-bottom: 1.5rem;
    }
    
    /* 热门文章 */
    .hot-articles {
        margin-top: 0.5rem;
    }
    
    .hot-article-item {
        margin-bottom: 0.5rem;
    }
    
    /* 博客信息 */
    .blog-info {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .blog-info-item {
        padding: 0.5rem;
        background: var(--bg-light);
        border-radius: 4px;
        text-align: center;
    }
    
    /* 标签 */
    .tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }
    
    .tags a {
        padding: 0.25rem 0.75rem;
        font-size: 0.8rem;
        background: var(--bg-light);
        border-radius: 1rem;
    }
    
    /* 顶部导航栏 */
    .top-header {
        padding: 0.8rem 1rem;
    }
    
    /* 搜索区域 */
    .search-area {
        flex: 1 1 100%;
        max-width: none;
    }
    
    /* 文章内容 */
    .article-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* 导航链接 */
    .nav-links a {
        padding: var(--space-3) var(--space-4);
    }
    
    /* 分类/页面/友链标题 */
    .nav-title {
        padding: var(--space-3) var(--space-4);
    }
    
    /* 子菜单 */
    .nav-sub {
        padding-left: var(--space-6);
    }
    
    /* 底部信息 */
    .sidebar-footer {
        padding: var(--space-4);
        font-size: var(--font-sm);
    }
    
    /* 文章卡片 */
    .post-card {
        padding: var(--space-5);
        margin-bottom: var(--space-4);
    }
    
    /* 标签 */
    .post-tags {
        flex-wrap: wrap;
        gap: var(--space-2);
    }
    
    /* 标签链接 */
    .post-tags a {
        padding: var(--space-1) var(--space-2);
        font-size: var(--font-xs);
    }
    
    /* 分页 */
    .pagination {
        flex-wrap: wrap;
        gap: var(--space-2);
    }
    
    /* 分页链接 */
    .pagination a,
    .pagination span {
        padding: var(--space-2) var(--space-3);
        font-size: var(--font-sm);
    }
}
/* 个人资料区域 */
.profile-introduction {
             color: #28a745;     /* 文字居中 */
     font-size: 12px;
   margin-bottom: 5px; /* 比原来 40px 小一半 */
}

/* 平板适配 */
@media (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }
    
    .main-layout {
        padding-left: 0;
    }
    
    .logo-area {
        flex: 0 0 auto;
    }
}
