/* 特博云禾 - 消费者端共享布局样式 */

/* 桌面顶部导航栏 */
.desktop-top-bar {
    display: none;
}

.desktop-logo {
    font-size: 20px;
    font-weight: bold;
    color: #2E7D32;
    text-decoration: none;
}

.desktop-nav a {
    margin: 0 14px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.desktop-auth a {
    margin-left: 14px;
    color: #2E7D32;
    text-decoration: none;
    font-size: 14px;
}

.desktop-register-btn {
    background: #2E7D32;
    color: white !important;
    padding: 6px 16px;
    border-radius: 18px;
}

/* 移动底部导航 */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
    z-index: 1000;
    max-width: 480px;
    margin: 0 auto;
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-bottom-nav a {
    flex: 1;
    text-align: center;
    padding: 8px 0 6px;
    text-decoration: none;
    color: #999;
    font-size: 11px;
}

.mobile-bottom-nav a.active {
    color: #2E7D32;
}

.mobile-bottom-nav span {
    font-size: 20px;
    display: block;
}

/* 默认（手机）隐藏 desktop-footer */
.desktop-footer {
    display: none;
}

/* 桌面响应式：显示顶部栏，隐藏底部导航 */
@media (min-width: 768px) {
    .desktop-top-bar {
        display: flex;
        background: white;
        padding: 14px 40px;
        align-items: center;
        justify-content: space-between;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .mobile-bottom-nav,
    .bottom-nav {
        display: none !important;
    }

    .footer-icp {
        display: none !important;
    }

    /* 桌面显示备案 footer */
    .desktop-footer {
        display: block;
    }

    /* 搜索框样式 */
    .desktop-search-form {
        flex: 1;
        max-width: 360px;
        margin: 0 20px;
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .search-input-wrapper {
        position: relative;
        flex: 1;
    }

    .search-icon {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #999;
        font-size: 13px;
        pointer-events: none;
    }

    .search-input-wrapper input {
        width: 100%;
        border: 1px solid #E0E8E0;
        border-radius: 22px;
        padding: 9px 16px 9px 36px;
        font-size: 13px;
        background: #F8FAF8;
        outline: none;
        transition: all 0.2s;
    }

    .search-input-wrapper input:focus {
        border-color: #2E7D32;
        background: white;
        box-shadow: 0 0 0 3px rgba(46,125,50,0.08);
    }

    .search-btn {
        border: none;
        background: #2E7D32;
        color: white;
        border-radius: 20px;
        padding: 8px 16px;
        font-size: 13px;
        cursor: pointer;
        white-space: nowrap;
        transition: all 0.2s;
        flex-shrink: 0;
    }

    .search-btn:hover {
        background: #1B5E20;
    }
}

/* 手机内容底部留白 */
@media (max-width: 767px) {
    body {
        padding-bottom: 60px;
    }
}
/* 登录后用户信息 */
.desktop-user-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #2E7D32 !important;
}

.desktop-logout-link {
    font-size: 13px;
    color: #999 !important;
}
/* 主内容区：底部留空间给 bottom-nav */
.app-main {
    padding-bottom: 80px;
}

/* JS 判断：桌面端隐藏 shop-header（分类导航页除外） */
html.is-desktop .shop-header:not(.shop-header-show-desktop) {
    display: none !important;
}

/* JS 判断：移动端隐藏 desktop-top-bar */
html.is-mobile .desktop-top-bar {
    display: none !important;
}