/* ==================== 手机版专用样式 ==================== */
/* 只在屏幕宽度小于 768px 时生效 */

@media (max-width: 768px) {
    /* 隐藏PC版头部导航和搜索框 */
    .header .nav,
    .header .header-right,
    .header-search {
        display: none !important;
    }

    /* 手机版头部 */
    .header {
        background: #fff;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .header-inner {
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 15px;
        position: relative;
    }

    .header .logo {
        font-size: 18px;
        font-weight: bold;
        color: var(--primary-color, #4CAF50);
        display: flex;
        align-items: center;
        gap: 8px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .header .logo i {
        font-size: 24px;
    }

    /* 手机版搜索图标 */
    .mobile-search-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        color: #666;
        font-size: 18px;
        margin-left: auto;
    }

    /* 主内容区调整 */
    .main {
        padding: 10px 0 80px 0;
        background: #f5f5f5;
        min-height: calc(100vh - 50px);
    }

    .container {
        padding: 0 10px;
        max-width: 100%;
    }

    /* ==================== 搜索页面手机版样式 ==================== */
    .search-page {
        padding: 0;
    }

    .search-box-large {
        padding: 15px;
        margin: 10px;
        border-radius: 8px;
    }

    .search-form-large {
        flex-direction: column;
    }

    .search-input-large {
        padding: 10px 12px;
        font-size: 15px;
    }

    .search-btn-large {
        padding: 10px;
        justify-content: center;
    }

    .search-result-item {
        margin: 10px;
        padding: 15px;
    }

    .search-result-title {
        font-size: 16px;
    }

    .search-result-content {
        font-size: 13px;
    }

    .search-result-meta {
        font-size: 12px;
        gap: 10px;
    }

    .search-stats {
        padding: 0 15px;
        font-size: 14px;
    }

    /* ==================== 底部导航栏 ==================== */
    .mobile-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
        z-index: 1000;
    }

    .mobile-nav-inner {
        display: flex;
        justify-content: space-around;
        align-items: center;
        height: 55px;
        width: 100%;
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        color: #999;
        text-decoration: none;
        font-size: 10px;
        flex: 1;
        height: 100%;
    }

    .mobile-nav-item i {
        font-size: 18px;
    }

    .mobile-nav-item.active {
        color: var(--primary-color, #4CAF50);
    }

    /* 中间发布按钮 */
    .mobile-nav-item.center-btn {
        position: relative;
        top: -12px;
        flex: 0 0 60px;
    }

    .mobile-nav-item.center-btn .publish-btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: var(--primary-color, #4CAF50);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(76, 175, 80, 0.35);
    }

    /* 隐藏底部footer */
    .footer {
        display: none;
    }
}

/* PC版隐藏手机版元素 */
@media (min-width: 769px) {
    .mobile-nav,
    .mobile-search-btn {
        display: none !important;
    }
}
