/* ==========================================
   响应式布局 - 电脑端含侧边栏，手机端无侧边栏
   ========================================== */

/* ========== 电脑端（>768px）：显示侧边栏 ========== */
/* 默认样式不需要修改，保持 Argon 主题原有的双栏布局 */
#leftbar {
    display: block;  /* 显示左侧边栏 */
    width: 280px;
    float: left;
}

#main {
    /* 电脑端正常布局 */
}

/* ========== 手机端（≤768px）：隐藏侧边栏，全宽显示 ========== */
@media screen and (max-width: 768px) {
    /* 隐藏左侧边栏 */
    #leftbar {
        display: none !important;
    }

    /* 主内容区域占满全宽 */
    #main,
    #primary {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        padding: 0 15px !important;
        margin: 0 !important;
    }

    /* 文章卡片全宽 */
    .post,
    .card {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* 容器全宽 */
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* 页脚全宽 */
    footer {
        width: 100% !important;
        padding: 30px 15px !important;
    }

    /* 隐藏右侧边栏（如果有） */
    #rightbar {
        display: none !important;
    }
}

/* ========== 平板端（769px - 1024px）：可选优化 ========== */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    /* 平板可以保留侧边栏，或者调整侧边栏宽度 */
    #leftbar {
        width: 240px;  /* 稍微窄一点 */
    }
}

/* ========== 超小屏幕（≤480px）：进一步优化 ========== */
@media screen and (max-width: 480px) {
    #main,
    #primary {
        padding: 0 10px !important;
    }

    .post {
        margin-bottom: 15px !important;
    }
}
