﻿/* ============================================================
   MyShopSite 前台全局基础样式
   文件：Content/site.css
   职责：
     1. 全局重置、品牌色变量
     2. 通用布局（前台双栏、主内容容器）
     3. 页头、导航、页脚
     4. 公共按钮、表格基础、模态框、Toast、分页
     5. 左侧导航（_LeftNavigation 专用）
     6. 搜索筛选栏（_SearchFilter 专用）
     7. 图片懒加载动画、工具类、悬浮联系方式
   注意：
     产品模块样式 → site.product.css
     登录注册模块 → site.auth.css
     会员中心与交易模块 → site.member.css
     分类信息模板 → site.category-info.css
     支付扫码页 → site.pay.css
   ============================================================ */

/* ==================== 1. 品牌色与功能色变量 ==================== */
:root {
    --brand-primary: #3d61a5;
    --brand-secondary: #2a4a7a;
    --brand-light: #759ff2;
    --brand-hover: #759ff2;
    --accent: #CC0000;
    --red: #e83e3e;
    --orange: #f97316;
    --green: #28a745;
    --text-main: #333;
    --text-secondary: #666;
    --text-muted: #999;
    --border-light: #e0e0e0;
    --bg-light: #f8fbfe;
}

/* ==================== 2. 全局重置与基础 ==================== */
* {
    margin: 0;
    box-sizing: border-box;
}

    *:focus,
    *:active,
    *:visited,
    a:focus,
    a:active,
    a:visited,
    a:focus-visible {
        outline: none !important;
        box-shadow: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }

a:active {
    background-color: transparent !important;
    color: inherit !important;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    background: #ffffff;
}

.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

input,
select,
textarea {
    max-width: 100%;
}

.dl-horizontal dt {
    white-space: normal;
}

a:hover {
    text-decoration: none !important;
}

/* ==================== 3. 通用布局 ==================== */
.detail-layout {
    display: flex;
    flex-wrap: nowrap;
    max-width: 1405px;
    margin: 0 auto;
    background: #fff;
}

.detail-sidebar {
    flex: 0 0 300px;
    width: 300px;
    box-sizing: border-box;
    margin-top: 26px;
    padding-left: 10px;
}

.detail-content {
    flex: 1;
    min-width: 0;
    padding-top: 26px;
    padding-right: 0px;
}

/* ==================== 4. 页头样式 ==================== */
.header-main {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    height: 80px;
}

.header-container {
    max-width: 1405px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.logo-image {
    height: 43px;
    width: auto;
    flex-shrink: 0;
}

.header-company {
    line-height: 1.3;
    white-space: nowrap;
}

.company-title {
    font-size: 18px;
    font-weight: 700;
    color: #3d61a5;
    letter-spacing: 4px;
    margin-top: 6px;
}

.company-subtitle {
    font-size: 14px;
    color: #333333;
    margin-top: 1px;
    letter-spacing: 1px;
}

.header-phone {
    font-size: 14px;
    color: #CC0000;
    white-space: nowrap;
    margin-left: 6px;
    padding-left: 15px;
    border-left: 2px solid #e0e0e0;
    margin-top: 30px;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-action-item {
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
    color: #555;
    text-decoration: none;
    white-space: nowrap;
}

    .header-action-item:hover {
        color: #ff6b00;
        font-weight: bold;
        letter-spacing: 1px;
    }

.login-link {
    color: #ff0000 !important;
}

    .login-link:hover {
        color: #ff6b00 !important;
    }

.header-welcome-text {
    /* 基础样式 */
    font-size: 15px; /* 字号 */
    color: #ff0000; /* 红色，醒目 */
    cursor: default; /* 鼠标不显示手型，因为不可点击 */
    /* 说明：昵称不加粗、无 title 悬停、无 CSS 截断，截断由后端按字符数处理 */
}

/* 购物车角标左侧留 1px 间距（原内联 style 抽离） */
#cartCountBadge {
    margin-left: 1px;
}

.header-search {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.search-input {
    width: 420px;
    height: 30px;
    padding: 0 12px;
    border: 1px solid #3d61a5;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

    .search-input:focus {
        border-color: #2a4a7a;
    }

.search-button {
    height: 30px;
    padding: 0 18px;
    background: #3d61a5;
    border: 1px solid #3d61a5;
    border-radius: 0 4px 4px 0;
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

    .search-button:hover {
        background: #2a4a7a;
    }

/* ==================== 5. 导航菜单 ==================== */
.nav-wrapper {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #efefef;
}

.nav-line-top {
    height: 1px;
    background: #e3e3e3;
    width: 100%;
    position: relative;
}

.nav-indicator-container {
    max-width: 1405px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    height: 100%;
}

.top-indicator,
.bottom-indicator {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    pointer-events: none;
}

.top-indicator {
    background: #e3e3e3;
}

.bottom-indicator {
    background: #3d61a5;
}

.nav-bar {
    background: #efefef;
    width: 100%;
    padding-top: 0px;
}

.nav-container {
    max-width: 1405px;
    width: 100%;
    margin: 0 auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 39px;
    position: relative;
    padding-top: 2px;
    padding-left: 15px;
}

.nav-item {
    height: 35px;
    display: flex;
    align-items: center;
    position: relative;
    margin-right: 15px;
}

    .nav-item a {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 12px;
        height: 100%;
        font-size: 16px;
        color: #333333;
        text-decoration: none;
        letter-spacing: 1px;
        background: #efefef;
        transition: all 0.2s ease;
        border-radius: 4px;
        box-sizing: border-box;
        white-space: nowrap;
    }

        .nav-item a:hover {
            background: #3d61a5;
            color: #ffffff;
            font-size: 17px;
            letter-spacing: 3px;
        }

    .nav-item.active a {
        background: #3d61a5 !important;
        color: #ffffff !important;
    }

        .nav-item.active a:hover {
            background: #2a4a7a !important;
        }

    /* active 项常驻下划线（与 hover 滑动指示条并存） */
    .nav-item.active > a::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 2px;
        background-color: #3d61a5;
    }

.home-icon {
    font-size: 18px;
    margin-right: 6px;
    margin-top: -5px;
}

.nav-item:not(:last-of-type)::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 22px;
    background: #cccccc;
}

.nav-left-line {
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 30px;
    background: #cccccc;
}

.nav-online {
    flex: 1;
    text-align: right;
    padding-right: 15px;
    color: #999999;
    font-size: 14px;
    margin-top: -8px;
}

.online-count {
    color: #FF3333;
    font-weight: bold;
}

.online-icon {
    color: #FF3333;
    font-size: 26px;
    font-weight: bold;
    margin-right: 5px;
    margin-top: -5px;
}

.nav-line-white {
    height: 2px;
    background: #ffffff;
    width: 100%;
}

.nav-line-bottom {
    height: 1px;
    background: #d0d0d0;
    width: 100%;
    position: relative;
}

.nav-member-icon {
    color: #ff6500;
    font-size: 1.6em;
}

.nav-item.active a .nav-member-icon {
    color: #ffffff !important;
}

.nav-item a:hover .nav-member-icon {
    color: #ffffff !important;
}

/* ==================== 6. 页脚 ==================== */
.footer-wrapper {
    background-color: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    margin-top: 40px;
}

.footer-container {
    max-width: 1405px;
    margin: 0 auto;
    padding: 40px 20px 20px;
    display: grid;
    grid-template-columns: 3fr 2fr 2fr 2fr;
    gap: 30px;
}

.footer-col h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111;
    padding-bottom: 10px;
    border-bottom: 3px solid #3d61a5;
}

.footer-col p,
.footer-col li {
    font-size: 14px;
    line-height: 2.2;
    color: #666;
    margin: 0;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col a {
    color: #666;
    text-decoration: none;
}

    .footer-col a:hover {
        color: #3d61a5;
        text-decoration: underline;
    }

.footer-trust-badges {
    margin: 15px 0;
    display: flex;
    gap: 15px;
}

.trust-badge {
    background-color: #e8edfd;
    color: #3d61a5;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.footer-address {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}

.footer-payment-icons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: #888;
}

.footer-icp {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
}

    .footer-icp a {
        color: #888;
        font-size: 12px;
    }

.footer-bottom-bar {
    background-color: #ebebeb;
    margin-top: 30px;
    padding: 15px 0;
}

    .footer-bottom-bar .footer-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 0;
        padding-bottom: 0;
    }

    .footer-bottom-bar p {
        margin: 0;
        font-size: 12px;
        color: #999;
    }

/* ==================== 7. 公共按钮 ==================== */
.btn-continue {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid #ccc;
    background: #fff;
    color: #666;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    line-height: normal;
    transition: border-color 0.2s, color 0.2s;
}

    .btn-continue:hover {
        background-color: #3d61a5 !important;
        color: #ffffff !important;
        border-color: #3d61a5 !important;
        text-decoration: none;
    }

.btn-buy,
.btn-confirm {
    padding: 14px 48px;
    border-radius: 40px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    background: #f97316;
    color: #fff;
    transition: background 0.2s;
    text-align: center;
    text-decoration: none;
    line-height: normal;
}

    .btn-buy:hover,
    .btn-confirm:hover {
        background: #ea5a0c;
        color: #fff;
        text-decoration: none;
    }

    .btn-buy:disabled,
    .btn-confirm:disabled {
        background: #ccc;
        cursor: not-allowed;
    }

.btn-back {
    flex: 0 0 auto;
    padding: 14px 24px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid #ccc;
    background: #fff;
    color: #666;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    line-height: normal;
    transition: border-color 0.2s, color 0.2s;
}

    .btn-back:hover {
        background-color: #3d61a5;
        color: #ffffff;
        border-color: #3d61a5;
        text-decoration: none;
    }

.btn-pay-now {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 4px;
    background: #f97316;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

    .btn-pay-now:hover {
        background: #ea5a0c;
        color: #fff;
        text-decoration: none;
    }

.btn-repurchase {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 4px;
    background: #3d61a5;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

    .btn-repurchase:hover {
        background: #2a4a7a;
        color: #fff;
        text-decoration: none;
    }

.btn-repurchase-sm {
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 3px;
    white-space: nowrap;
}

.btn-cancel-order {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid #dc3545;
    background: #fff;
    color: #dc3545;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

    .btn-cancel-order:hover {
        background: #dc3545;
        color: #fff;
    }

.btn-remove {
    background: none;
    border: 1px solid #ccc;
    color: #999;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

    .btn-remove:hover {
        background-color: #3d61a5;
        color: #ffffff;
        border-color: #3d61a5;
    }

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-action-sm {
    display: inline-block;
    padding: 5px 14px;
    font-size: 13px;
    border-radius: 18px;
    line-height: normal;
    text-align: center;
    text-decoration: none;
}

/* ==================== 8. 通用表格基础 ==================== */
.cart-table-wrapper {
    background: #fafbfc;
    border: 1px solid #e8ecf1;
    border-radius: 6px;
    overflow: hidden;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

    .cart-table th {
        background: #f0f2f5;
        color: #555;
        font-weight: 600;
        padding: 12px 10px;
        text-align: left;
        border-bottom: 1px solid #e0e0e0;
    }

    .cart-table td {
        padding: 12px 10px;
        border-bottom: 1px solid #eee;
        color: #333;
        vertical-align: middle;
    }

    .cart-table tbody tr:hover {
        background: #f0f4ff;
    }

.cart-price-current {
    color: #e74c3c;
    font-weight: bold;
}

/* ==================== 9. 模态框 ==================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-box {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    width: 520px;
    max-width: 90vw;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

    .modal-box h3 {
        margin-top: 0;
        margin-bottom: 20px;
        font-size: 18px;
    }

    .modal-box .btn-row {
        display: flex;
        gap: 10px;
        justify-content: flex-end;
        margin-top: 20px;
    }

    .modal-box .btn-cancel {
        padding: 8px 24px;
        background: #fff;
        color: #666;
        border: 1px solid #ddd;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
    }

    .modal-box .btn-submit {
        padding: 8px 24px;
        background: #3d61a5;
        color: #fff;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
    }

        .modal-box .btn-submit:hover {
            background: #2a4a7a;
        }

    .modal-box .btn-submit-warning {
        background: #f97316;
    }

        .modal-box .btn-submit-warning:hover {
            background: #ea5a0c;
        }

/* ==================== 10. Toast 提示 ==================== */
.my-toast {
    position: fixed;
    z-index: 99999;
    min-width: 200px;
    max-width: 360px;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    font-family: 'Microsoft YaHei', sans-serif;
    pointer-events: none;
    white-space: nowrap;
    text-align: center;
}

    .my-toast.show {
        opacity: 1;
        transform: translateY(0);
    }

    .my-toast.success {
        background: #3d61a5;
    }

    .my-toast.error {
        background: #e83e3e;
    }

.my-toast-buttons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    justify-content: center;
    pointer-events: auto;
}

.my-toast-btn {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    pointer-events: auto;
}

    .my-toast-btn:hover {
        transform: scale(1.03);
        color: #fff;
        text-decoration: none;
    }

.my-toast-btn-primary {
    background: rgba(255,255,255,0.25);
    font-weight: 600;
}

/* ==================== 11. 分页导航 ==================== */
.pagination-wrap {
    text-align: center;
    margin: 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    line-height: 1;
}

    .pagination-wrap a {
        display: inline-block;
        min-width: 36px;
        height: 34px;
        line-height: 34px;
        text-align: center;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 13px;
        color: #555;
        text-decoration: none;
        background: #fff;
        transition: all 0.5s ease;
        padding: 0 8px;
        cursor: pointer;
        vertical-align: middle;
        box-sizing: border-box;
    }

    .pagination-wrap span {
        display: inline-block;
        min-width: 36px;
        height: 34px;
        line-height: 34px;
        text-align: center;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 13px;
        color: #555;
        background: #fff;
        transition: all 0.5s ease;
        padding: 0 8px;
        cursor: default;
        vertical-align: middle;
        box-sizing: border-box;
    }

    .pagination-wrap a:hover {
        border-color: #3d61a5;
        color: #fff;
        background: #3d61a5;
        font-size: 15px;
        font-weight: bold;
        letter-spacing: 3px;
    }

    .pagination-wrap a.page-num:hover {
        padding-left: 16px !important;
        padding-right: 16px !important;
        min-width: 42px !important;
    }

    .pagination-wrap .active {
        border-color: #3d61a5;
        color: #fff;
        background: #3d61a5;
        font-weight: bold;
    }

    .pagination-wrap .disabled {
        color: #ccc;
        cursor: default;
        pointer-events: none;
    }

    .pagination-wrap .ellipsis {
        border: none;
        background: none;
        color: #999;
        cursor: default;
    }

    .pagination-wrap .pagination-info {
        margin-left: 15px;
        color: #999;
        font-size: 13px;
        vertical-align: middle;
    }

/* ==================== 12. 左侧导航（_LeftNavigation 专用） ==================== */
.left-nav-container {
    width: 280px;
    background: #fafcff;
    border: 1px solid #3d61a5;
    border-radius: 8px;
    box-shadow: 4px 4px 10px rgba(0,0,0,0.2);
    font-family: 'Microsoft YaHei', sans-serif;
    position: sticky;
    top: 70px;
    align-self: flex-start;
    padding: 0 0 12px 0;
    transition: all 0.2s;
    overflow: hidden;
}

.left-nav-bar {
    height: 4px;
    background: #3d61a5;
    width: 100%;
}

.left-nav-user {
    padding: 16px 20px 12px 20px;
    border-bottom: 1px solid #eef2f6;
    margin-bottom: 12px;
}

.login-guide {
    text-align: center;
}

.login-guide-icon {
    margin-bottom: 12px;
}

    .login-guide-icon img {
        max-width: 100%;
        height: auto;
        display: inline-block;
    }

.login-guide-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e2a3a;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.login-guide-desc {
    font-size: 14px;
    color: #ff6600;
    margin-bottom: 16px;
    line-height: 2;
    letter-spacing: 2px;
}

.btn-login-guide {
    background: #3d61a5;
    border: none;
    padding: 8px 20px;
    border-radius: 40px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    width: 100%;
    margin-bottom: 12px;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

    .btn-login-guide:hover {
        background: #2c4a8c;
        transform: translateY(-1px);
        text-decoration: none;
        color: white;
    }

.login-guide-footnote {
    font-size: 12px;
    color: #999;
    line-height: 1.5;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.user-info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
}

.user-welcome {
    flex: 1;
    padding-top: 12px;
}

.user-name {
    font-weight: 700;
    font-size: 15px;
    color: #1e2a3a;
    margin-bottom: 4px;
    padding-left: 4px;
    transform: translateY(8px);
}

.user-level {
    font-size: 12px;
    background: #f0f2f5;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    color: #3d61a5;
    font-weight: 500;
}

.dropdown-icon {
    font-size: 12px;
    color: #8a99b4;
    transition: 0.2s;
}

.user-info-card:hover .dropdown-icon {
    transform: rotate(180deg);
}

.member-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fef9e3;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #b67e00;
    margin-top: 8px;
}

.left-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.left-nav-header {
    padding: 8px 20px 4px 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6c8db0;
    border-bottom: 1px dotted #e2e8f0;
    margin-bottom: 6px;
}

.left-nav-item {
    margin: 2px 12px;
    border-radius: 6px;
    transition: background 0.2s;
    transform: translateX(-4px);
}

    .left-nav-item a {
        display: flex;
        align-items: center;
        padding: 5px 16px;
        color: #2c3e50;
        text-decoration: none;
        font-size: 15px;
        font-weight: 400;
        border-radius: 6px;
        transition: all 0.2s ease;
        position: relative;
        cursor: pointer;
    }

        .left-nav-item a:hover {
            background: #e0ecff;
            color: #1e40af;
            font-weight: 500;
            transform: translateX(4px);
        }

            .left-nav-item a:hover .left-nav-icon {
                transform: scale(1.05);
            }

    .left-nav-item.active a {
        background: #e0ecff;
        color: #1e40af;
        font-weight: 600;
        border-top: 1px solid #3d61a5;
        border-right: 1px solid #3d61a5;
        border-bottom: 1px solid #3d61a5;
        border-left: 4px solid #3d61a5;
        box-shadow: inset 0 0 0 1px rgba(61,97,165,0.2);
        transform: translateX(4px);
    }

        .left-nav-item.active a .left-nav-icon {
            transform: scale(1.02);
        }

.left-nav-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    margin-right: 12px;
    transition: transform 0.2s;
}

.left-nav-badge {
    background-color: #3d61a5;
    color: white;
    border-radius: 30px;
    padding: 0 6px;
    font-size: 14px;
    font-weight: bold;
    margin-left: auto;
    line-height: 18px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

    .left-nav-badge.red {
        background-color: #fd7e14;
    }

    .left-nav-badge.hidden {
        display: none;
    }

.login-hint {
    background: #f1f5f9;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 11px;
    color: #64748b;
    margin-left: auto;
    white-space: nowrap;
}

.asset-balance {
    font-size: 12px;
    color: #2c3e50;
    margin-left: auto;
    font-weight: 500;
}

.left-nav-item.logout-item {
    margin-top: 8px;
    border-top: 1px solid #eef2f6;
    padding-top: 6px;
}

/* ==================== 13. 搜索筛选栏（_SearchFilter 专用） ==================== */
.filter-wrapper {
    max-width: 1405px;
    width: 100%;
    margin: 10px auto 0;
    padding: 0;
    background: #ffffff;
    border-radius: 6px;
    box-sizing: border-box;
}

.filter-container {
    width: 100%;
    background: #e8edfd;
    border-radius: 4px;
    padding: 10px 20px;
    border: 1px solid #a1c9ff;
    box-sizing: border-box;
}

.filter-form {
    width: 100%;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 1px 0;
}

.filter-label {
    font-size: 15px;
    color: #333;
    white-space: nowrap;
    font-weight: bold;
}

.filter-input {
    flex: 0 0 auto;
}

/* 独立使用的 keyword-input（不在 search-input-group 内时，例如某些特殊场景） */
.keyword-input {
    width: 300px !important;
    max-width: 300px !important;
    height: 30px !important;
    padding: 0 10px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s;
    vertical-align: middle;
}

    .keyword-input:hover,
    .keyword-input:focus {
        border-color: #3d61a5;
        box-shadow: 0 0 3px rgba(61,97,165,0.15);
    }

/* ========== V8.6：搜索框 + 搜索按钮 一体化 ========== */
.search-input-group {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

    /* 一体化内部：去掉右侧圆角和右边框，与按钮无缝拼接
       V8.6 微调：宽度 320 → 340（+20），高度 32 */
    .search-input-group .keyword-input {
        width: 340px !important;
        max-width: 340px !important;
        height: 32px !important;
        padding: 0 10px;
        border: 1px solid #3d61a5;
        border-right: none;
        border-radius: 4px 0 0 4px;
        font-size: 14px;
        outline: none;
        box-sizing: border-box;
        transition: border-color 0.2s;
    }

        .search-input-group .keyword-input:hover,
        .search-input-group .keyword-input:focus {
            border-color: #2a4a7a;
            box-shadow: none;
        }

    /* 搜索按钮高度 32，与加高后的输入框对齐 */
    .search-input-group .keyword-btn {
        height: 32px !important;
        padding: 2px 18px 0 18px;
        background: #3d61a5;
        border: 1px solid #3d61a5;
        border-radius: 0 4px 4px 0;
        color: #fff;
        font-size: 16px;
        /* font-weight: bold;*/
        cursor: pointer;
        white-space: nowrap;
        box-sizing: border-box;
        transition: background 0.2s;
    }

        .search-input-group .keyword-btn:hover {
            background: #2a4a7a;
        }

.filter-select {
    flex: 0 0 auto;
}

.filter-select-input {
    height: 30px !important;
    padding: 0 30px 0 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    vertical-align: middle;
    box-sizing: border-box;
}

    .filter-select-input:hover,
    .filter-select-input:focus {
        border-color: #3d61a5;
        box-shadow: 0 0 3px rgba(61,97,165,0.15);
    }

.filter-btn {
    height: 30px !important;
    padding: 0 30px;
    background: #3d61a5;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    vertical-align: middle;
    box-sizing: border-box;
}

    .filter-btn:hover {
        background: #2a4a7a;
    }

.filter-divider {
    height: 0;
    border-bottom: 1px dashed #a1c9ff;
    background: none;
    margin: 5px 0;
    width: 100%;
}

.filter-tag {
    display: inline-block;
    height: 28px;
    line-height: 25px;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    background: #fafafa;
    transition: all 0.2s;
    white-space: nowrap;
    box-sizing: border-box;
}

    .filter-tag:hover {
        border-color: #3d61a5;
        color: #ffffff !important;
        background: #3d61a5;
        font-weight: bold;
        text-decoration: none;
        letter-spacing: 2px;
    }

    .filter-tag.active {
        border-color: #3d61a5;
        color: #ffffff;
        background: #3d61a5;
        font-weight: bold;
    }

    .filter-tag.special-tag:hover {
        color: #ffffff !important;
        background: #3d61a5 !important;
    }

.filter-separator {
    color: #d0d0d0;
    font-size: 14px;
    margin: 0 8px;
    user-select: none;
}

/* ========== V8.6：三行高度统一为 min-height: 40px ========== */
        .filter-row-first {
    margin-top: -5px;
    min-height: 45px;
    gap: 20px;
}

.filter-row-second {
    min-height: 38px;
}

.filter-row-third {
    min-height: 38px;
    padding: 12px 0;
    border-top: 1px dashed #a1c9ff;
    margin-top: 8px;
    margin-bottom: -10px;
}

/* ========== V8.6：视图模式按钮组（第一行最右，垂直居中） ========== */
.view-mode-group {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: center;
    flex-shrink: 0;
}

/* ========== V8.6 微调：第一行各组垂直位置 ========== */
/* 搜索关键词组（标签 + 输入组）：保持 2px */
.filter-row-first > .filter-label:first-child,
.filter-row-first > .search-input-group {
    position: relative;
    top: 2px;
}

    /* 搜索范围组（标签 + 下拉）：下移 2px → 4px */
    .filter-row-first > .search-input-group + .filter-label,
    .filter-row-first > .search-input-group + .filter-label + .filter-select {
        position: relative;
        top: 4px;
    }

/* 排序组（#sortSection 整体）：下移 2px → 2px */
#sortSection {
    position: relative;
    top: 2px;
}

/* 浏览模式组（.view-mode-group）：不动，不设置 top */

/* ========== V8.6 微调：标签与下拉 间距减半（-10px） ========== */
.filter-row-first .filter-label + .filter-select {
    margin-left: -10px;
}

/* ========== V8.6 微调：第二行、第三行下移 2px ========== */
.filter-row-second,
.filter-row-third {
    position: relative;
    top: 2px;
}

.view-mode-btn,
.filter-row .btn {
    transition: all 0.2s;
}

    .view-mode-btn:hover,
    .filter-row .btn:hover {
        background: #3d61a5 !important;
        color: #fff !important;
        border-color: #3d61a5 !important;
        letter-spacing: 2px;
    }

    .view-mode-btn.active,
    .filter-row .btn.active {
        background: #3d61a5 !important;
        color: #fff !important;
        border-color: #3d61a5 !important;
    }

        .view-mode-btn.active:hover,
        .filter-row .btn.active:hover {
            background: #2a4a7a !important;
            border-color: #2a4a7a !important;
        }

/* ==================== 14. 图片懒加载动画 ==================== */
.card-img-fade {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.card-img-loaded {
    opacity: 1 !important;
}

.card-img-placeholder {
    background-color: #f0f0f0;
}

.card-img-fade:not(.card-img-loaded) {
    animation: img-pulse 1.2s ease-in-out infinite;
}

@keyframes img-pulse {
    0%, 100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.9;
    }
}

.card-img-blur-loaded {
    opacity: 1 !important;
    position: relative;
}

.card-img-loaded {
    opacity: 1 !important;
    animation: none;
}

.card-img-blur-loaded::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid rgba(61, 97, 165, 0.2);
    border-top-color: #3d61a5;
    border-radius: 50%;
    animation: img-spin 0.8s linear infinite;
}

@keyframes img-spin {
    to {
        transform: rotate(360deg);
    }
}

.card-img-loaded::after {
    display: none;
}

.card-img-error {
    background-image: url('/Uploads/ProductEmpty.png') !important;
    background-size: contain;
    opacity: 1 !important;
    animation: none;
}

/* ==================== 15. 工具类 ==================== */
.mt-0 {
    margin-top: 0 !important;
}

.mt-2 {
    margin-top: 8px !important;
}

.mt-4 {
    margin-top: 20px !important;
}

.mt-10 {
    margin-top: 10px !important;
}

.mt-20 {
    margin-top: 20px !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-10 {
    margin-bottom: 10px !important;
}

.mb-20 {
    margin-bottom: 20px !important;
}

.py-4 {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

.d-block {
    display: block !important;
}

.bg-light {
    background-color: #f8fbfe !important;
}

.font-weight-bold {
    font-weight: 700 !important;
}

.text-center {
    text-align: center !important;
}

.hidden {
    display: none !important;
}

/* ==================== 16. 悬浮联系方式（_Layout 专用） ==================== */
.float-contact {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: 'Microsoft YaHei', sans-serif;
}

.float-contact-item {
    position: relative;
    width: 56px;
    height: 56px;
    background: #3d61a5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 24px;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    user-select: none;
}

    .float-contact-item:hover {
        background: #2a4a7a;
        transform: translateX(-4px);
    }

    .float-contact-item .icon {
        font-size: 26px;
        line-height: 1;
        pointer-events: none;
    }

    .float-contact-item .popup {
        position: absolute;
        right: 66px;
        top: 50%;
        transform: translateY(-50%);
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        padding: 16px 18px;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s, visibility 0.2s;
        pointer-events: none;
        color: #333;
        font-size: 14px;
    }

    .float-contact-item:hover .popup {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .float-contact-item .popup::after {
        content: '';
        position: absolute;
        right: -6px;
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
        width: 12px;
        height: 12px;
        background: #fff;
        box-shadow: 2px -2px 4px rgba(0, 0, 0, 0.05);
    }

    .float-contact-item .popup.popup-wechat {
        padding: 14px;
        text-align: center;
    }

        .float-contact-item .popup.popup-wechat img {
            width: 160px;
            height: 160px;
            display: block;
            border-radius: 4px;
        }

        .float-contact-item .popup.popup-wechat .tip {
            font-size: 12px;
            color: #666;
            margin-top: 8px;
            line-height: 1.4;
        }

    .float-contact-item .popup.popup-phone {
        padding: 10px 16px;
        font-size: 14px;
        color: #666;
    }

        .float-contact-item .popup.popup-phone .phone-num {
            font-size: 15px;
            font-weight: 600;
            color: #3d61a5;
            margin-left: 2px;
        }

    .float-contact-item.float-backtop {
        background: #3d61a5;
        font-size: 22px;
    }

        .float-contact-item.float-backtop:hover {
            background: #2a4a7a;
        }

.copy-toast {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

    .copy-toast.show {
        opacity: 1;
    }
