/* 全局容器优化 */
    .goods-con {
        margin-top: 30px !important;
        width: 100%;
    }
    .card {
        border: none;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        border-radius: 16px;
        overflow: hidden;
        margin-bottom: 30px;
        transition: transform 0.3s;
        background: #fff;
    }
    .card-body {
        padding: 30px;
    }
    
    /* 商品图片区域 */
    .goods-cover {
        width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: contain;
        border-radius: 12px;
        background: #f9f9f9;
    }
    
    /* 商品标题 */
    .card-title {
        font-size: 22px;
        font-weight: 700;
        color: #333;
        line-height: 1.4;
        margin-bottom: 15px;
    }
    
    /* 价格区域 */
    .goods-attr .currency {
        color: var(--price);
        font-size: 18px;
        font-weight: bold;
        position: relative;
        top: -4px;
    }
    .goods-attr .price {
        color: var(--price);
        font-size: 32px;
        font-weight: 800;
        letter-spacing: -1px;
    }
    .text-muted {
        font-size: 13px;
        color: #999 !important;
    }

    /* 规格选择组 */
    .form-group {
        margin-bottom: 20px;
    }
    .form-title {
        font-size: 14px;
        color: #666;
        margin-bottom: 10px;
        font-weight: 500;
        display: flex;
        align-items: center;
    }
    .form-title i {
        margin-right: 6px;
        font-size: 16px;
        color: var(--brand);
    }
    .spec-options {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }
    .spec-option {
        padding: 8px 20px;
        border: 1px solid #f0f0f0;
        background: #f9f9f9;
        border-radius: 8px;
        font-size: 14px;
        color: #555;
        cursor: pointer;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        min-width: 40px;
        text-align: center;
        position: relative;
        overflow: hidden;
    }
    .spec-option:hover {
        background: #fff;
        border-color: #ddd;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    .spec-option.active {
        background: var(--brand-soft);
        border-color: var(--brand);
        color: var(--brand);
        font-weight: 600;
        box-shadow: 0 2px 8px rgba(47, 93, 98, 0.18);
    }
    .spec-option.active::after {
        content: "";
        position: absolute;
        bottom: 0;
        right: 0;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 0 0 12px 12px;
        border-color: transparent transparent var(--brand) transparent;
    }
    .spec-option.disabled {
        opacity: 0.5 !important;
        cursor: not-allowed !important;
        background: #eee !important;
        text-decoration: line-through !important;
        pointer-events: none !important;
    }
    
    .spec-option.available {
        cursor: pointer;
        transition: all 0.2s ease;
    }

    /* 数量选择器 */
    .quantity-selector {
        display: flex;
        align-items: center;
        border: 1px solid #eee;
        border-radius: 8px;
        width: fit-content;
        overflow: hidden;
        margin-top: 5px;
    }
    .quantity-btn {
        width: 38px;
        height: 38px;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #666;
        transition: background 0.2s;
        border: none;
        font-size: 14px;
    }
    .quantity-btn:hover {
        background: #f5f5f5;
        color: #333;
    }
    .quantity-input {
        width: 50px;
        height: 38px;
        border: none;
        border-left: 1px solid #eee;
        border-right: 1px solid #eee;
        text-align: center;
        font-size: 15px;
        font-weight: 600;
        color: #333;
        outline: none;
        -moz-appearance: textfield;
        margin: 0;
    }

    /* 输入框美化 */
    .layui-input {
        height: 42px;
        border-radius: 8px;
        border-color: #eee;
        background: #fcfcfc;
        transition: all 0.3s;
        padding-left: 15px;
    }
    .layui-input:focus {
        border-color: var(--brand) !important;
        background: #fff;
        box-shadow: 0 0 0 3px var(--brand-ring);
    }

    /* 支付方式 */
    .payment-methods {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        flex-direction: unset;
    }
    .payment-item {
        width: 100%;
        padding: 15px;
        border: 1px solid #eee;
        border-radius: 10px;
        background: #fff;
        transition: all 0.2s;
        position: relative;
        display: flex;
        align-items: center;
        box-sizing: border-box;
    }
    .payment-item:hover {
        border-color: #d5e8e2;
        background: var(--brand-soft);
    }
    .payment-item.active {
        border-color: var(--brand);
        background: var(--brand-soft);
        box-shadow: 0 4px 12px rgba(47, 93, 98, 0.16);
    }
    .payment-icon {
        width: 36px;
        height: 36px;
        margin-right: 12px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #f5f5f5;
    }
    .payment-icon img {
        width: 24px;
        height: 24px;
    }
    .payment-info {
        flex: 1;
        min-width: 0;
    }
    .payment-name {
        font-size: 14px;
        font-weight: 600;
        color: #333;
        margin-bottom: 2px;
    }
    .payment-desc {
        font-size: 12px;
        color: #888;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .payment-checked {
        color: var(--brand);
        position: absolute;
        top: -8px;
        right: -8px;
        background: #fff;
        border-radius: 50%;
        font-size: 20px;
        display: none;
        z-index: 2;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    .payment-item.active .payment-checked {
        display: block;
    }

    /* 购买按钮 */
    .drawer-footer {
        margin-top: 30px;
    }
    .buy-btn-g {
        width: 100%;
        height: 54px;
        background: linear-gradient(135deg, var(--primary-from), var(--primary-to));
        border-radius: 12px;
        font-size: 18px;
        font-weight: 600;
        color: #fff !important;
        box-shadow: 0 8px 20px var(--primary-shadow);
        transition: all 0.3s;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        cursor: pointer;
    }
    .buy-btn-g:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 24px rgba(90, 140, 214, 0.34);
        opacity: 0.95;
    }
    .total-price {
        font-size: 16px;
        color: rgba(255,255,255,0.9);
        font-weight: 400;
        margin-left: 5px;
    }
    .total-price .dynamic-price {
        font-weight: 700;
        color: #fff;
        font-size: 24px;
    }

    /* 商品详情内容 */
    .intro {
        font-size: 16px;
        line-height: 1.8;
        color: #444;
        padding: 10px;
    }
    .intro img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        margin: 10px 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }
    
    /* 弹窗样式优化 */
    .layui-layer {
        border-radius: 12px !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    }
    .layui-layer-title {
        background: #fff !important;
        color: #333 !important;
        font-size: 16px !important;
        font-weight: bold !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }
    .layui-layer-setwin .layui-layer-close1 {
        background-position: -120px -30px !important; /* 调整为更现代的图标位置，或者保留默认 */
        opacity: 0.6;
    }
    
    /* 隐藏底部的导航栏（如果是公共部分引入的） */
    .footer-nav {
        display: none;
    }

    /* 移动端适配 */
    @media (max-width: 768px) {
        .goods-con {
            margin-top: 15px !important;
            padding: 0 10px;
        }
        .card {
            border-radius: 12px;
            margin-bottom: 15px;
        }
        .card-body {
            padding: 20px;
        }
        .goods-cover {
            max-height: 180px;
            width: auto;
            max-width: 100%;
            margin: 0 auto;
            display: block;
            position: static; /* 移动端取消 sticky */
        }
        .payment-methods {
            grid-template-columns: 1fr;
        }
        /* 移动端底部吸底按钮 */
        .drawer-footer {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: #fff;
            padding: 10px 15px;
            margin-top: 0;
            z-index: 999;
            box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
            padding-bottom: max(10px, env(safe-area-inset-bottom));
        }
        .buy-btn-g {
            height: 46px;
            font-size: 16px;
            border-radius: 50px;
        }
        .intro {
            font-size: 15px;
            padding: 0;
        }
    }

    /* PC端布局强化优化 */
    @media (min-width: 769px) {
        .goods-con .row.no-gutters {
            display: flex !important;
            flex-wrap: nowrap !important;
        }
        
        /* 左侧图片栏 */
        .goods-con .col-md-4 {
            flex: 0 0 450px !important; /* 固定宽度 */
            max-width: 450px !important;
            padding: 40px !important; /* 覆盖内联样式 */
            border-right: 1px solid #f9f9f9;
            background: #fff;
            display: block; /* 确保 sticky 生效 */
        }
        
        /* 右侧信息栏 */
        .goods-con .col-md-8 {
            flex: 1 !important;
            max-width: calc(100% - 450px) !important;
            padding: 40px 50px !important; /* 覆盖内联样式 */
        }

        /* 图片吸顶效果 */
        .goods-cover {
            width: 100%;
            height: auto;
            max-height: none;
            border-radius: 16px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.03);
            position: sticky;
            top: 30px; /* 吸顶距离 */
        }
        
        /* 调整标题 */
        .card-title {
            font-size: 26px;
            margin-bottom: 20px;
        }
        
        /* 调整价格 */
        .goods-attr .price {
            font-size: 36px;
        }
        
        /* 购买按钮 */
        .buy-btn-g {
            max-width: 300px; /* 限制按钮宽度 */
            height: 56px;
        }
    }

/* 默认模板头尾优化 */
:root {
    --brand: #3a78c2;
    --brand-dark: #2f65a8;
    --brand-soft: #e8f1ff;
    --brand-ring: rgba(58, 120, 194, 0.16);
    --primary-from: #7fb5ff;
    --primary-to: #5b97e8;
    --primary-shadow: rgba(90, 140, 214, 0.26);
    --accent: #5a90f2;
    --accent-soft: #eef4ff;
    --info: #2f86d7;
    --info-soft: #e7f2ff;
    --success: #1f9d76;
    --success-soft: #e6f6ef;
    --warning: #f2a01b;
    --warning-soft: #fff3e0;
    --price: #e15241;
    --text: #1f2933;
    --muted: #6b7280;
    --border: #e2e8f0;
    --surface: #ffffff;
    --surface-2: #f1f5f9;
    --page-bg: #f3f6ff;
    --shadow-soft: 0 16px 32px rgba(15, 23, 42, 0.08);
    --shadow-card: 0 12px 24px rgba(15, 23, 42, 0.08);
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--page-bg);
    color: var(--text);
}

main, .blog-container, .container {
    flex: 1 0 auto;
}

footer, .main-footer {
    flex-shrink: 0;
}

.drawer-footer {
    z-index: 9999;
}

.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-left: 16px;
    padding-right: 16px;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

.header {
    position: relative;
    z-index: 90;
}

.h-fix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(12px);
    z-index: 9999;
}

.h-fix > .container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 6px 0 10px;
}

.header-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 72px;
    width: 100%;
}

.logo, .logo-text {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.logo a, .logo-text a {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 46px;
    max-width: 180px;
}

.logo-text a span {
    font-size: clamp(18px, 2.1vw, 24px);
    color: var(--brand);
    font-weight: 700;
    letter-spacing: 0.4px;
    max-width: 40vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-container {
    flex: 1 1 auto;
    min-width: 0;
}

.nav-bar .nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    overflow: auto;
    scrollbar-width: none;
}

.nav-bar .nav::-webkit-scrollbar {
    display: none;
}

.header .nav-bar li {
    position: relative;
}

.header .nav-bar li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    height: 36px;
    border-radius: 999px;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.header .nav-bar li em[class*="dot"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
}

.header .nav-bar li em[class*="dot"] .fa {
    font-size: 14px;
    color: #8c93a2;
}

.header .nav-bar li a:hover {
    color: var(--brand);
    background: var(--brand-soft);
}

.header .nav-bar li.active > a,
.header .nav-bar li[class*="li-cate-"].active > a {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-from), var(--primary-to));
    box-shadow: 0 6px 14px var(--primary-shadow);
}

.header .nav-bar ul li > ul {
    min-width: 160px;
    position: absolute;
    top: 52px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 888;
}

.header .nav-bar ul li.on > ul {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.header .nav-bar ul li > ul li {
    width: 100%;
}

.header .nav-bar ul li > ul li a {
    display: block;
    width: 100%;
    padding: 8px 16px;
    border-radius: 0;
    color: #5f6b78;
    font-weight: 400;
}

.header .nav-bar ul li > ul li a:hover {
    background: #f4f7f6;
    color: var(--brand);
}

.header-right {
    flex: 0 0 auto;
    margin-left: auto;
}

.header-right-btn {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-account {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-auth-links {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface-2);
}

.header-auth-btn {
    height: 34px;
    padding: 0 14px;
    border-radius: 0;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 0;
}

.header-auth-btn.is-login {
    background: transparent;
    color: #33423c;
}

.header-auth-btn.is-login:hover {
    color: var(--brand);
    background: var(--brand-soft);
}

.header-auth-btn.is-register {
    background: linear-gradient(135deg, var(--primary-from), var(--primary-to));
    color: #ffffff;
}

.header-auth-btn.is-register:hover {
    transform: translateY(-1px);
}

.header-auth-btn + .header-auth-btn {
    border-left: 1px solid var(--border);
}

.header-user-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    transition: all 0.2s ease;
    text-decoration: none;
}

.header-user-card:hover {
    background: var(--brand-soft);
    border-color: #d5e8e2;
}

.header-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 8px rgba(15, 23, 42, 0.08);
}

.header-user-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.1;
    min-width: 0;
}

.header-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-user-balance {
    font-size: 12px;
    color: var(--muted);
}

.header-search-order-btn .a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--brand);
    font-size: 14px;
    border: 1px solid var(--border);
}

.header-search-order-btn .a:hover {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.m-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    color: #4b5563;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.m-btn:hover {
    color: var(--brand);
    background: var(--brand-soft);
}

.m-btn i.fa {
    font-size: 16px;
}

.m-btn {
    display: none;
    cursor: pointer;
}

.header-search-row {
    width: 100%;
}

.goods-search-wrap {
    display: flex;
    justify-content: stretch;
}

.goods-search-panel {
    width: 100%;
    max-width: 680px;
    background: linear-gradient(145deg, #ffffff 0%, var(--brand-soft) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    padding: 10px;
}

.goods-search-aside {
    margin-bottom: 16px;
}

.goods-search-aside .goods-search-panel {
    max-width: none;
}

.goods-search-form {
    display: block;
}

.goods-search-shell {
    position: relative;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    padding: 0 92px 0 36px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.goods-search-shell:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-ring);
}

.goods-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #8b98a7;
    font-size: 14px;
    pointer-events: none;
}

.goods-search-input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    padding: 0;
}

.goods-search-input::placeholder {
    color: #9aa4b2;
}

.goods-search-clear {
    position: absolute;
    right: 86px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #8b98a7;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.goods-search-clear.is-visible {
    display: inline-flex;
}

.goods-search-clear:hover {
    background: var(--surface-2);
    color: #5f6b78;
}

.goods-search-submit {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    width: 74px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--primary-from) 0%, var(--primary-to) 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.goods-search-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px var(--primary-shadow);
}

.transition {
    transition: all 0.3s ease;
}

#mask {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 899;
    display: none;
}

.main-footer {
    margin-top: 24px;
    background: var(--surface);
    padding: 24px 0 20px;
    color: #8a8f99;
    border-top: 1px solid var(--border);
    font-size: 12px;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-info {
    max-width: 960px;
}

.footer-brand-text {
    font-weight: 700;
    color: var(--brand);
    font-size: 13px;
}

.copyright {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 10px;
    line-height: 1.6;
}

.copyright a {
    color: #7b8591;
    transition: color 0.2s ease;
}

.copyright a:hover {
    color: var(--brand);
    text-decoration: none;
}

.divider {
    color: #d6dbe0;
    margin: 0 2px;
    font-size: 10px;
}

.footer-nav {
    display: none;
}

.footer-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #8a8f99;
    font-size: 11px;
    padding: 0 10px;
    transition: all 0.2s ease;
    flex: 1;
    position: relative;
    justify-content: center;
    height: 52px;
}

.footer-nav .nav-item.active {
    color: var(--brand);
    font-weight: 600;
}

.footer-nav .nav-icon {
    font-size: 20px;
    margin-bottom: 4px;
    transition: transform 0.2s ease;
}

.footer-nav .nav-item:active .nav-icon {
    transform: scale(0.92);
}

.footer-nav .nav-item.active .nav-icon {
    transform: scale(1.05);
}

@media (max-width: 1200px) {
    .header-search-order-btn {
        display: none;
    }

    .nav-bar .nav {
        gap: 4px;
    }
}

@media (max-width: 992px) {
    .header-bar {
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .nav-container {
        order: 3;
        width: 100%;
    }

    .nav-bar .nav {
        padding-bottom: 6px;
    }

    .header-user-name {
        max-width: 90px;
    }
}

@media (max-width: 768px) {
    .header-bar {
        min-height: 64px;
        gap: 12px;
    }

    .logo img {
        max-height: 40px;
    }

    .logo-text a span {
        max-width: 60vw;
        font-size: 20px;
    }

    .header-right-btn {
        gap: 8px;
    }

    .header-auth-btn {
        height: 32px;
        padding: 0 12px;
        font-size: 12px;
    }

    .header-user-card {
        padding: 4px 10px 4px 4px;
        gap: 8px;
    }

    .header-user-avatar {
        width: 30px;
        height: 30px;
    }

    .header-user-name {
        max-width: 72px;
        font-size: 12px;
    }

    .header-user-balance {
        font-size: 11px;
    }

    .goods-search-panel {
        padding: 8px;
    }

    .goods-search-shell {
        height: 40px;
        padding-right: 80px;
    }

    .goods-search-submit {
        width: 66px;
    }

    .main-footer {
        padding: 20px 0;
    }

    .copyright {
        flex-direction: column;
        gap: 4px;
    }

    .divider {
        display: none;
    }
}

@media (max-width: 480px) {
    .m-btn {
        width: 34px;
        height: 34px;
    }

    .header-bar {
        gap: 10px;
    }
}

/* 商品列表页 */
.blog-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
    width: 100%;
}

.goods-list-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.goods-list-aside {
    position: sticky;
    top: 92px;
    align-self: start;
}

.goods-list-main {
    min-width: 0;
}

.notice-roll {
    background: linear-gradient(135deg, var(--surface), var(--brand-soft));
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.notice-roll-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--brand-dark);
    font-weight: 600;
    white-space: nowrap;
}

.notice-roll-body {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: var(--muted);
}

.notice-roll marquee {
    width: 100%;
}

.notice-bar {
    background: var(--surface);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-card);
    margin-bottom: 20px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.notice-bar::after {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(47, 93, 98, 0.16), transparent 60%);
}

.notice-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: var(--brand-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    box-shadow: 0 8px 16px rgba(47, 93, 98, 0.18);
}

.notice-icon .layui-icon {
    font-size: 20px;
}

.notice-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.notice-content {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
    width: 100%;
}

.list-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    margin-bottom: 16px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.list-banner.is-search {
    background: var(--accent-soft);
    border-color: #dbe3ff;
}

.list-banner.is-category {
    background: var(--info-soft);
    border-color: #d6e9fb;
}

.list-banner.is-featured {
    background: var(--brand-soft);
    border-color: #d3e8e5;
}

.list-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-from), var(--primary-to));
}

.list-banner.is-search .list-badge {
    background: linear-gradient(135deg, #8bb3ff, var(--accent));
}

.list-banner.is-category .list-badge {
    background: linear-gradient(135deg, #86c0ff, var(--info));
}

.list-desc {
    font-size: 12px;
    color: var(--muted);
}

.category-section {
    background: var(--surface);
    border-radius: 16px;
    padding: 15px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}

.category-grid {
    display: grid;
    gap: 16px;
}

.goods-list-aside .category-grid {
    grid-template-columns: 1fr;
}

.category-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.category-card:hover {
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.category-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    gap: 10px;
}

.category-item:hover {
    transform: translateY(-2px);
}

.category-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    overflow: hidden;
    flex: 0 0 auto;
}

.category-item:hover .category-icon {
    background: var(--brand-soft);
    box-shadow: 0 8px 18px rgba(47, 93, 98, 0.2);
}

.category-icon img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s;
}

.category-item:hover .category-icon img {
    transform: scale(1.1);
}

.category-item span {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}

.category-item:hover span {
    color: var(--brand);
    font-weight: 600;
}

.category-item:hover .category-count {
    color: var(--muted);
    font-weight: 400;
}

.category-item.is-active {
    transform: translateY(-2px);
}

.category-item.is-active .category-icon {
    background: var(--brand-soft);
    box-shadow: 0 8px 18px rgba(47, 93, 98, 0.2);
}

.category-item.is-active span {
    color: var(--brand);
    font-weight: 600;
}

.category-item.is-active .category-count {
    color: var(--muted);
    font-weight: 400;
}

.category-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex: 1 1 auto;
}

.category-count {
    font-size: 12px;
    color: var(--muted);
    font-weight: 400;
}

.subcategory-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.subcategory-item {
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--surface-2);
    color: #52606d;
    font-size: 12px;
    line-height: 1;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    cursor: pointer;
}

.subcategory-item:hover {
    background: var(--brand-soft);
    border-color: var(--brand);
    color: var(--brand);
}

.subcategory-item.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.goods-list-section {
    position: relative;
}

#goods-list-wrapper {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

#goods-list-wrapper.is-loading {
    opacity: 0.6;
    transform: translateY(4px);
}

#goods-list-wrapper.is-loaded {
    animation: goodsFadeIn 0.35s ease;
}

@keyframes goodsFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.goods-card {
    display: block;
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    border: 1px solid var(--border);
}

.goods-card:hover {
    box-shadow: var(--shadow-card);
    border-color: #d7dee7;
    transform: translateY(-2px);
    z-index: 2;
}

.goods-img-box {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: var(--surface-2);
    overflow: hidden;
}

.goods-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.goods-card:hover .goods-img {
    transform: scale(1.08);
}

.goods-deliver-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 999px;
    color: #fff;
    z-index: 1;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.goods-deliver-tag.auto {
    background: var(--success);
}

.goods-deliver-tag.manual {
    background: var(--warning);
}

.goods-info {
    padding: 12px;
}

.goods-title {
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
    height: 42px;
    font-weight: 600;
}

.goods-price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.price-current {
    color: var(--price);
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
}

.price-current small {
    font-size: 12px;
    margin-right: 1px;
}

.price-market {
    color: #9aa4b2;
    font-size: 12px;
    text-decoration: line-through;
    margin-left: 5px;
}

.buy-icon {
    width: 24px;
    height: 24px;
    background: var(--surface-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7a8795;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.goods-card:hover .buy-icon {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    box-shadow: 0 6px 14px rgba(47, 93, 98, 0.24);
}

.goods-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
    margin-top: 5px;
}

.goods-stats span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.goods-stats .fa {
    font-size: 12px;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: var(--surface-2);
    border-radius: 16px;
    font-size: 11px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: var(--brand-soft);
    border-color: var(--brand);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(47, 93, 98, 0.12);
}

.stat-icon {
    font-size: 12px;
}

.stat-label {
    color: var(--muted);
    font-weight: 500;
}

.stat-value {
    color: var(--text);
    font-weight: 600;
}

.stock-stat .stat-value {
    color: var(--info);
}

.sales-stat .stat-value {
    color: var(--success);
}

.empty-container {
    padding: 60px 0;
    text-align: center;
}

.empty-icon {
    font-size: 60px;
    color: #d8dee6;
    margin-bottom: 20px;
}

.empty-text {
    color: #7a8795;
    font-size: 16px;
    margin-bottom: 25px;
}

.skeleton-card {
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.skeleton-img {
    width: 100%;
    padding-top: 100%;
    position: relative;
    overflow: hidden;
    background: #e9edf3;
}

.skeleton-line {
    height: 12px;
    margin: 10px 12px;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    background: #e9edf3;
}

.skeleton-line.short {
    width: 60%;
    margin-bottom: 14px;
}

.skeleton-shimmer::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.7), rgba(255,255,255,0));
    transform: translateX(-100%);
    animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

@media (max-width: 992px) {
    .goods-list-layout {
        grid-template-columns: 1fr;
    }
    .goods-list-aside {
        position: static;
    }
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 640px) {
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .list-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .notice-roll {
        flex-direction: column;
        align-items: flex-start;
    }
}
