* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}


.ui.toggle.checkbox input:checked~.box:before,
.ui.toggle.checkbox input:checked~label:before {
    background-color: #2196F3 !important;
}

.ui.blue.button,
.ui.blue.buttons .button {
    background-color: #2196F3 !important;
    color: #fff;
    text-shadow: none;
    background-image: none;
}

.ui.checkbox input:checked~.box:before,
.ui.checkbox input:checked~label:before {
    background: #fff;
    border-color: rgb(98 169 238);
}

.ui.checkbox input:checked~.box:after,
.ui.checkbox input:checked~label:after {
    opacity: 1;
    color: rgb(93 168 238);
}

.layui-layer-hui .layui-layer-content {
    font-size: 13px;
}

.main-goods-panel {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 80, 200, 0.12);
    padding: 15px;
}

/* ==================== 公共Select样式（类似layui风格） ==================== */
.home-select-container {
    position: relative;
    width: 100%;
    cursor: pointer;
    outline: none;
}

.home-select-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #1a3a5c;
    font-size: 14px;
    transition: all 0.2s ease;
}

.home-select-container:hover .home-select-header {
    border-color: #3399FF;
    background: rgba(255, 255, 255, 0.8);
}

.home-select-container.open .home-select-header {
    border-color: #3399FF;
    border-radius: 8px 8px 0 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(51, 153, 255, 0.15);
}


.home-select-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-select-icon {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #999;
    transition: transform 0.2s ease;
    margin-left: 12px;
    flex-shrink: 0;
}

.home-select-container.open .home-select-icon {
    transform: rotate(180deg);
    border-top-color: #3399FF;
}

.home-select-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid rgba(0, 85, 255, 0.15);
    border-radius: 0 0 8px 8px;
    box-shadow: 
        0 4px 20px rgba(0, 85, 255, 0.12),
        0 0 0 1px rgba(0, 85, 255, 0.05),
        0 8px 30px rgba(0, 0, 0, 0.08);
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.home-select-container.open .home-select-dropdown {
    display: block;
}

.home-select-item {
    padding: 12px 16px;
    color: #1a3a5c;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.home-select-item:hover {
    background: rgba(51, 153, 255, 0.08);
    color: #3399FF;
}

.home-select-item.selected {
    background: #3399FF;
    color: #fff;
}


/* 滚动广告栏 */
.home-marquee-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 32px;
    z-index: 1001;
    background: linear-gradient(90deg, #0055FF, #3399FF);
    overflow: hidden;
}

.home-marquee-inner {
    display: flex;
    width: max-content;
    /* animation 由 JS 动态控制，解决短文本重复和速度问题 */
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    line-height: 32px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    will-change: transform;
}

.home-marquee-inner span {
    display: inline-block;
    white-space: nowrap;
    padding-right: 100px;
}

/* announcement 存在时下移固定定位的容器 */
html.has-marquee .column-container { top: 90px; }
html.has-marquee .user-center { top: 90px; }
html.has-marquee .mobile-nav-menu { top: 90px; }

.panel-top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 2px solid #f0f3fa;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.nav-toggle-btn {
    display: none;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle-btn:hover {
    color: #409EFF;
}

.mobile-nav-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 999;
    border-bottom: 1px solid #f0f3fa;
}

.mobile-nav-menu.show {
    display: block;
}

.mobile-nav-menu a {
    display: block;
    padding: 14px 24px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f5f7fa;
    transition: background 0.2s ease;
}

.mobile-nav-menu a:hover {
    background: #f5f7fa;
    color: #409EFF;
}

.panel-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 17px;
    color: #2986f7;
}

.panel-nav-right {
    display: flex;
    gap: 5px;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.nav-tag-btn {
    padding: 6px 16px;
    background: #409EFF;
    color: #fff;
    border-radius: 20px;
    border: none;
    cursor: pointer;
}

.nav-menu-item {
    margin-right: 24px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-menu-item:hover {
    color: #409EFF;
}

.nav-menu-item.active {
    color: #409EFF;
    font-weight: 600;
}

.banner-25d {
    margin: 60px 24px;
    margin-bottom: 30px;
    border-radius: 16px;
    background: url(/static/home/img/bg.jpeg) right / 100% 130% no-repeat;
    padding: 28px;
    display: flex;
    align-items: center;
    color: #fff;
    min-height: 200px;
    position: relative;
}

.banner-text {
    position: relative;
    z-index: 1;
}

.banner-text h2 {
    font-size: 26px;
    margin-bottom: 8px;
}

.banner-text .badge {
    background: #ff9500;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 10px;
}

.banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 10px 24px;
    background: #fff;
    color: #409EFF;
    border-radius: 24px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.banner-btn:hover {
    background: #409EFF;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64, 158, 255, 0.4);
}

/* 数据统计栏 */
.home-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 0 24px 20px;
}

.home-stat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 14px;
    padding: 18px 20px;
    border: 1px solid #f0f3fa;
    transition: all 0.3s;
}

.home-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.home-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.home-stat-icon i {
    margin-left: 3px;
}

.home-stat-icon.blue { background: linear-gradient(135deg, #D6EBFF, #b8dcff); color: #3399FF; }
.home-stat-icon.green { background: linear-gradient(135deg, #e8f8f0, #c0e8d0); color: #52c41a; }
.home-stat-icon.orange { background: linear-gradient(135deg, #fff5e6, #ffe8cc); color: #fa8c16; }
.home-stat-icon.purple { background: linear-gradient(135deg, #f3e8ff, #e4d0f5); color: #722ed1; }

.home-stat-num {
    font-size: 22px;
    font-weight: 700;
    color: #1a3a5c;
    line-height: 1.1;
}

.home-stat-label {
    font-size: 12px;
    color: #8c9bab;
    margin-top: 2px;
}

/* 通用板块 */
.home-section {
    padding: 0 24px 20px;
}

.home-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.home-section-header h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1a3a5c;
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-section-header h3 i {
    color: #409EFF;
    font-size: 18px;
}

.home-section-more {
    font-size: 13px;
    color: #999;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 2px;
    transition: color 0.2s;
}

.home-section-more:hover {
    color: #409EFF;
}

/* 分类快捷入口 */
.home-category-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.home-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 10px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f0f3fa;
    text-decoration: none;
    color: #666;
    font-size: 13px;
    transition: all 0.3s;
    cursor: pointer;
}

.home-category-item:hover {
    border-color: #409EFF;
    color: #409EFF;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(64, 158, 255, 0.12);
}

.home-category-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: linear-gradient(135deg, #f0f4ff, #e6f0ff);
    color: #409EFF;
    overflow: hidden;
}

.home-category-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.home-category-icon i.icon {
    font-size: 22px;
    margin: 0;
}

.home-category-icon.all {
    background: linear-gradient(135deg, #409EFF, #67C23A);
    color: #fff;
}

/* 特色服务 */
.home-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.home-feature-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    border: 1px solid #f0f3fa;
    transition: all 0.3s;
}

.home-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.home-feature-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 12px 0 6px;
}

.home-feature-card p {
    font-size: 12px;
    color: #999;
    line-height: 1.5;
}

.home-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto;
}

.home-feature-icon i {
    margin-left: 2px;
    margin-top: 3px;
}

.home-feature-icon.blue { background: linear-gradient(135deg, #D6EBFF, #b8dcff); color: #3399FF; }
.home-feature-icon.green { background: linear-gradient(135deg, #e8f8f0, #c0e8d0); color: #52c41a; }
.home-feature-icon.orange { background: linear-gradient(135deg, #fff5e6, #ffe8cc); color: #fa8c16; }
.home-feature-icon.purple { background: linear-gradient(135deg, #f3e8ff, #e4d0f5); color: #722ed1; }

/* 空数据 */
.home-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 14px;
}

.discount-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 0 24px 24px;
}

.discount-card {
    background: #f7f9ff;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.discount-card.orange {
    background: #fff3e8;
}

.discount-info h4 {
    font-size: 15px;
    color: #333;
    margin-bottom: 4px;
}

.discount-info p {
    font-size: 12px;
    color: #888;
}

.discount-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: #409EFF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.discount-card.orange .discount-icon-box {
    background: #ff9500;
}

.goods-grid-area {
    padding: 0 24px 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.goods-item-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f0f3fa;
    transition: 0.3s ease;
}

.goods-item-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(64, 158, 255, 0.18);
}

.goods-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.goods-25d-img {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7fbff;
    position: relative;
    padding: 10px;
}

.goods-25d-img svg {
    width: 100%;
    height: 100%;
}

.goods-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #409EFF;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 8px;
}

.goods-card-bottom {
    padding: 16px;
}

.goods-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.goods-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-current {
    font-size: 18px;
    font-weight: 700;
    color: #ff6b35;
}

.price-old {
    font-size: 12px;
    color: #aaa;
    text-decoration: line-through;
}

.sale-badge {
    background: #ff6b35;
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 8px;
}

.goods-stock {
    font-size: 12px;
    color: #888;
}

.goods-sales {
    font-size: 11px;
    color: #ffffff;
    background: #9f73ff;
    padding: 2px 8px;
    border-radius: 10px;
}

.home-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.home-modal-overlay.show {
    display: flex;
}

.home-modal {
    background: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.home-modal-sm {
    max-width: 400px;
}

.home-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #D6EBFF 0%, rgba(214, 235, 255, 0.5) 100%);
    border-bottom: 1px solid rgba(51, 153, 255, 0.1);
}

.home-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a3a5c;
}

.home-modal-close {
    cursor: pointer;
    color: #94a3b8;
    font-size: 30px;
    transition: color 0.2s;
}

.home-modal-close:hover {
    color: #64748b;
}

.home-modal-body {
    padding: 20px;
}

.home-modal-body p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.home-modal-footer {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

::-webkit-scrollbar-corner {
    background: #f1f5f9;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

@media (max-width: 1200px) {
    .goods-grid-area {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .goods-grid-area {
        grid-template-columns: repeat(2, 1fr);
    }

    .panel-nav-right {
        gap: 16px;
    }

    .nav-menu-item {
        margin-right: 16px;
    }
}

@media (max-width: 768px) {
    .goods-grid-area {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 16px 20px;
    }

    .discount-row {
        grid-template-columns: 1fr;
    }

    .panel-top-nav {
        padding: 12px 16px;
    }

    .panel-nav-right .nav-menu-item {
        display: none;
    }

    .nav-toggle-btn {
        display: block;
    }

    .banner-25d {
        margin: 16px;
        padding: 20px;
        min-height: 160px;
    }

    .banner-text h2 {
        font-size: 22px;
    }

    .nav-tag-btn {
        padding: 5px 12px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .goods-grid-area {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .panel-logo {
        font-size: 15px;
    }

    .panel-nav-right {
        gap: 8px;
        font-size: 12px;
    }

    .panel-top-nav {
        padding: 10px 12px;
    }

    .banner-text h2 {
        font-size: 18px;
    }

    .banner-text p {
        font-size: 13px;
    }

    .goods-25d-img {
        height: 140px;
    }
}

.auth-form-container {
    position: relative;
    overflow: hidden;
    min-height: 180px;
}

.auth-form {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.auth-form.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.home-modal-switch {
    padding: 14px 20px;
    text-align: center;
    font-size: 13px;
    color: #666;
    border-top: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.home-modal-switch span {
    margin-right: 4px;
}

.home-modal-switch a {
    color: #409EFF;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.home-modal-switch a:hover {
    background: rgba(64, 158, 255, 0.1);
    color: #2684FF;
}

.product-detail-content {
    display: flex;
    gap: 20px;
}

.product-detail-img-box {
    width: 200px;
    flex-shrink: 0;
}

.product-detail-img {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    background: linear-gradient(135deg, #409EFF, #67C23A);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-img svg {
    width: 80%;
    height: 80%;
}

.product-detail-info {
    flex: 1;
}

.product-detail-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-detail-price {
    font-size: 24px;
    font-weight: 700;
    color: #ff6b35;
    margin-bottom: 10px;
}

.product-detail-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.product-detail-desc {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

.category-page-v2 {
    display: flex;
    height: calc(100vh - 60px);
}

.cat-v2-sidebar {
    width: 220px;
    flex-shrink: 0;
    background-color: #fff;
    border-right: 1px solid #e8e8e8;
    overflow-y: auto;
    padding: 12px 0;
}

.cat-v2-menu-group {
    margin-bottom: 2px;
}

.cat-v2-menu-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    cursor: pointer;
    color: #333;
    transition: background 0.2s;
    user-select: none;
}

.cat-v2-menu-title:hover {
    background-color: #f5f7fa;
}

.cat-v2-menu-title.active {
    background-color: #f0f7ff;
    color: #1677ff;
}

.cat-v2-arrow {
    font-size: 12px;
    transition: transform 0.2s;
}

.cat-v2-main {
    flex: 1;
    padding: 20px 24px;
    overflow-y: auto;
    background-color: #f0f2f5;
    min-width: 0;
}

.cat-v2-breadcrumb {
    font-size: 13px;
    color: #999;
    margin-bottom: 16px;
}

.cat-v2-breadcrumb span {
    margin: 0 4px;
}

.cat-v2-product-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background-color: #e8e8e8;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
}

.cat-v2-product-item {
    background-color: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
    width: 100%;
}

.cat-v2-product-item:hover {
    background-color: #fafafa;
}

.cat-v2-product-info {
    flex: 1;
    padding-right: 20px;
    min-width: 0;
}

.cat-v2-product-desc {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
    color: #222;
    word-break: break-word;
}

.cat-v2-product-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    flex-wrap: wrap;
}

.cat-v2-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.cat-v2-tag-type {
    background-color: #e6f7ed;
    color: #28a745;
}

.cat-v2-tag-top {
    background-color: #fde2e2;
    color: #c00;
}

.cat-v2-product-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.cat-v2-stock {
    font-size: 14px;
    color: #666;
    text-align: right;
    min-width: 80px;
}

.cat-v2-price {
    text-align: right;
    min-width: 100px;
}

.cat-v2-price-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 2px;
}

.cat-v2-price-value {
    font-size: 16px;
    font-weight: 600;
    color: #c00;
}

.cat-v2-btn-buy {
    background-color: #28a745;
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.cat-v2-btn-buy:hover {
    background-color: #218838;
}

@media (max-width: 992px) {
    .cat-v2-sidebar {
        width: 180px;
    }
}

@media (max-width: 768px) {
    .category-page-v2 {
        flex-direction: column;
        height: auto;
    }

    .cat-v2-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
        max-height: 200px;
    }

    .cat-v2-product-right {
        gap: 10px;
    }

    .cat-v2-stock {
        min-width: 60px;
    }

    .cat-v2-price {
        min-width: 80px;
    }
}

@media (max-width: 576px) {
    .cat-v2-product-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cat-v2-product-right {
        width: 100%;
        justify-content: space-between;
    }
}

.category-page {
    padding: 20px;
}

.category-sidebar {
    width: 200px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f0f3fa;
    padding: 16px;
    margin-right: 20px;
}

.category-sidebar h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f3fa;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.2s;
    margin-bottom: 5px;
}

.category-item:hover {
    background: #f0f5ff;
    color: #409EFF;
}

.category-item.active {
    background: #409EFF;
    color: #fff;
}

.category-content {
    flex: 1;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.category-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.category-filter {
    display: flex;
    gap: 10px;
}

.category-filter .ui.button {
    font-size: 13px;
    padding: 8px 16px;
}

.category-main {
    display: flex;
    gap: 20px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

@media (max-width: 1200px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-sidebar {
        width: 160px;
    }
}

@media (max-width: 768px) {
    .category-main {
        flex-direction: column;
    }

    .category-sidebar {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .category-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .category-item {
        padding: 8px 15px;
        margin-bottom: 0;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}

/* 首页新模块响应式 */
@media (max-width: 1200px) {
    .home-category-grid { grid-template-columns: repeat(5, 1fr); }
    .home-features-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
    .home-stats-bar { grid-template-columns: repeat(2, 1fr); }
    .home-category-grid { grid-template-columns: repeat(4, 1fr); }
    .home-features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .home-stats-bar { grid-template-columns: repeat(2, 1fr); }
    .home-category-grid { grid-template-columns: repeat(3, 1fr); }
    .home-features-grid { grid-template-columns: repeat(2, 1fr); }
    .banner-25d { margin: 16px; padding: 20px; min-height: 140px; }
    .banner-text h2 { font-size: 20px; }
}
@media (max-width: 576px) {
    .home-stats-bar { grid-template-columns: 1fr; }
    .home-category-grid { grid-template-columns: repeat(3, 1fr); }
    .home-features-grid { grid-template-columns: 1fr; }
}

.user-center {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    max-width: 1200px;
    width: 100%;
    padding: 20px 20px 0;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ==================== 用户统计卡片 ==================== */
.user-stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.user-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 18px;
    border: 1px solid #f0f3fa;
    text-align: center;
    transition: all 0.3s;
}

.user-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.user-stat-num {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 6px;
}

.user-stat-card.blue .user-stat-num { color: #3399FF; }
.user-stat-card.green .user-stat-num { color: #52c41a; }
.user-stat-card.orange .user-stat-num { color: #fa8c16; }
.user-stat-card.purple .user-stat-num { color: #722ed1; }

.user-stat-label {
    font-size: 13px;
    color: #8c9bab;
}

.user-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f3fa;
}

.user-section-more {
    font-size: 13px;
    color: #409EFF;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.user-section-more:hover {
    color: #2684FF;
    text-decoration: underline;
}

/* 响应式 */
@media (max-width: 768px) {
    .user-stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .user-stats-cards {
        grid-template-columns: 1fr;
    }
}

.user-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f3fa;
    padding-bottom: 10px;
}

.user-nav-item {
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.2s;
}

.user-nav-item.active {
    background: #409EFF;
    color: #fff;
}

.user-nav-item:hover:not(.active) {
    background: #f0f5ff;
    color: #409EFF;
}

.order-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f0f3fa;
    padding: 20px;
    margin-bottom: 15px;
    transition: box-shadow 0.2s;
}

.order-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.order-id {
    font-size: 14px;
    color: #666;
}

.order-status {
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 6px;
}

.order-status.paid {
    background: #e8f5e9;
    color: #4caf50;
}

.order-status.unpaid {
    background: #fff3e0;
    color: #ff9800;
}

.order-status.done {
    background: #e3f2fd;
    color: #2196f3;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-item-info {
    flex: 1;
}

.order-item-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.order-item-price {
    font-size: 18px;
    font-weight: 700;
    color: #ff6b35;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 14px;
}

@media (max-width: 768px) {
    .user-header {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }

    .user-info {
        flex-direction: column;
    }

    .user-avatar {
        width: 60px;
        height: 60px;
    }

    .user-nav-item {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* ==================== 用户中心布局 ==================== */
.user-layout {
    display: flex;
    gap: 50px;
    flex: 1;
    min-height: 0;
}

.user-sidebar {
    width: 200px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5eaf1;
    overflow: hidden;
}

.user-sidebar a i {
    margin-top: -5px;
}

/* 侧边栏用户信息卡片 */
.sidebar-profile {
    padding: 20px 16px 14px;
    text-align: center;
    border-bottom: 1px solid #f0f2f5;
    background: linear-gradient(180deg, #f8fafd 0%, #fff 100%);
}

.sidebar-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 10px;
    overflow: hidden;
    border: 2px solid #e5eaf1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.sidebar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-username {
    font-size: 15px;
    font-weight: 600;
    color: #1a3a5c;
    margin-bottom: 8px;
}

.sidebar-balance {
    width: 100%;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 4px 16px;
    background: #f0f5ff;
    border-radius: 8px;
}

.sidebar-balance-label {
    font-size: 10px;
    color: #8c9bab;
    letter-spacing: 1px;
}

.sidebar-balance-value {
    font-size: 15px;
    font-weight: 700;
    color: #409EFF;
}

.user-sidebar-item {
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    text-decoration: none;
}

.user-sidebar-item:hover {
    background: #f0f5ff;
    color: #409EFF;
}

.user-sidebar-item.active {
    background: #409EFF;
    color: #fff;
    font-weight: 500;
}

/* 分隔线 */
.sidebar-divider {
    margin: 4px 16px;
    border-top: 1px solid #eef0f4;
}

/* 退出链接样式 */
.user-sidebar-item.logout-item {
    color: #999;
    margin-top: 4px;
}

.user-sidebar-item.logout-item:hover {
    background: #fff0f0;
    color: #e5484d;
}

.user-main {
    flex: 1;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.user-main::-webkit-scrollbar {
    display: none;
}

/* ==================== 充值页面 ==================== */
.recharge-container {
    max-width: 936px;
}

.recharge-title {
    font-size: 28px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 28px;
}

.recharge-tab-group {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
}
.recharge-tab-btn {
    height: 36px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    background: #f5f5f5;
    color: #666666;
    transition: all 0.2s ease;
}
.recharge-tab-btn.active {
    background: #ffffff;
    border-color: #e5e7eb;
    color: #111111;
}

.recharge-section-label {
    font-size: 14px;
    color: #666666;
    margin-bottom: 12px;
}

input[type="radio"].recharge-radio {
    display: none;
}

.recharge-amount-section {
    margin-bottom: 32px;
}
.recharge-amount-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.recharge-amount-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    color: #111111;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.recharge-amount-btn:hover {
    border-color: #999999;
}

#amount10:checked ~ .recharge-amount-buttons label[for="amount10"],
#amountFirst:checked ~ .recharge-amount-buttons label[for="amountFirst"],
#amount20:checked ~ .recharge-amount-buttons label[for="amount20"],
#amount50:checked ~ .recharge-amount-buttons label[for="amount50"],
#amount100:checked ~ .recharge-amount-buttons label[for="amount100"],
#amount300:checked ~ .recharge-amount-buttons label[for="amount300"],
#amount500:checked ~ .recharge-amount-buttons label[for="amount500"],
#amountCustom:checked ~ .recharge-amount-buttons label[for="amountCustom"] {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}

.recharge-price-link {
    font-size: 14px;
    color: #111111;
    text-decoration: none;
    margin-left: 4px;
    cursor: pointer;
}
.recharge-price-link:hover {
    text-decoration: underline;
}

.recharge-custom-input-wrap {
    position: relative;
    display: none;
    margin-bottom: 16px;
}
#amountCustom:checked ~ .recharge-custom-input-wrap {
    display: block;
}
.recharge-input-prefix {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #666666;
    pointer-events: none;
}
.recharge-custom-input {
    width: 100%;
    height: 44px;
    padding: 0 16px 0 32px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #111111;
    outline: none;
    transition: border-color 0.2s ease;
}
.recharge-custom-input:focus {
    border-color: #000000;
}
.recharge-custom-input::placeholder {
    color: #999999;
}
.recharge-custom-input::-webkit-outer-spin-button,
.recharge-custom-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.recharge-notice-text {
    font-size: 13px;
    line-height: 1.6;
    color: #f59e0b;
    margin-top: 8px;
}

.recharge-payment-section {
    margin-bottom: 32px;
}
.recharge-payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.recharge-payment-option {
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}
.recharge-payment-option:hover {
    border-color: #cccccc;
}

.payment-brand-svg {
    height: 20px;
    width: auto;
    display: block;
}

#alipay:checked ~ .recharge-payment-options label[for="alipay"],
#cardpay:checked ~ .recharge-payment-options label[for="cardpay"],
#usdt:checked ~ .recharge-payment-options label[for="usdt"] {
    border-color: #000000;
}

.recharge-pay-btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 8px;
    background: #000000;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background 0.2s ease;
}
.recharge-pay-btn:hover {
    background: #333333;
}

.recharge-tips-section {
    border-top: 1px solid #f0f0f0;
    padding-top: 24px;
}
.recharge-tips-title {
    font-size: 16px;
    font-weight: 600;
    color: #111111;
    margin-bottom: 12px;
}
.recharge-tips-list {
    padding-left: 20px;
    font-size: 13px;
    line-height: 1.8;
    color: #666666;
}
.recharge-tips-list li {
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    .user-layout {
        flex-direction: column;
    }
    .user-sidebar {
        width: 100%;
        display: flex;
        gap: 0;
    }
    .user-sidebar-item {
        flex: 1;
        justify-content: center;
    }
}

/* ==================== 商品分类 ==================== */

body {
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #ffffff;
}

.column-container {
    display: flex;
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    max-width: 1400px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.column-sidebar {
    width: 220px;
    flex-shrink: 0;
    background-color: #fff;
    border-right: 1px solid #e8e8e8;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1px 0;
    border-radius: 4px 0 0 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    /* 隐藏滚动条但保留滚动功能 */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* 隐藏 column-sidebar 的 webkit 滚动条 */
.column-sidebar::-webkit-scrollbar {
    display: none;
}

.main-content {
    flex: 1;
    margin-top: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    min-width: 0;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.product-scroll-area {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    position: relative;
}

/* 回到顶部按钮 */
.product-back-to-top {
    position: sticky;
    bottom: 24px;
    float: right;
    width: 44px;
    height: 44px;
    margin-right: 16px;
    margin-top: -56px;
    background: linear-gradient(135deg, #3399FF 0%, #0055FF 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(51, 153, 255, 0.4);
    z-index: 100;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.product-back-to-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.product-back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(51, 153, 255, 0.5);
}

.product-back-to-top i {
    color: #fff;
    font-size: 18px;
    margin-left: 3px;
}

.menu-group {
    margin-bottom: 2px;
}

.menu-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    cursor: pointer;
    color: #333;
    transition: background 0.2s;
    user-select: none;
}

.menu-title:hover {
    background-color: #f5f7fa;
}

.menu-title.active {
    background-color: #f0f7ff;
    color: #1677ff;
}

.menu-title .icon {
    width: 16px;
    text-align: center;
    margin-right: 10px;
    display: inline-block;
}

.menu-title img {
    width: 16px;
    height: 16px;
    margin-top: -5px;
    margin-right: 10px;
}

.menu-title .arrow {
    font-size: 12px;
    transition: transform 0.2s;
}

.menu-title.open .arrow {
    transform: rotate(90deg);
}

.sub-menu {
    display: none;
    background-color: #fafafa;
}

.sub-menu.open {
    display: block;
}

.sub-menu-item {
    padding: 8px 16px 8px 42px;
    cursor: pointer;
    color: #666;
    font-size: 13px;
    transition: all 0.2s;
}

.sub-menu-item:hover {
    color: #1677ff;
    background-color: #f0f7ff;
}

.breadcrumb {
    font-size: 13px;
    color: #999;
    margin-bottom: 16px;
}

.breadcrumb span {
    margin: 0 4px;
}

.tab-group {
    display: flex;
    gap: 12px;
    padding: 20px 24px 20px 24px;
    margin: 0;
    flex-wrap: wrap;
    flex-shrink: 0;
    z-index: 10;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.tab-group .width {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.sort-tabs {
    display: inline-flex;
    gap: 2px;
    flex-wrap: wrap;
    background: #f0f1f3;
    border-radius: 8px;
    padding: 3px;
}

.sort-tab.active {
    color: #1f2937;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .04);
}

.sort-tab {
    position: relative;
    padding: 6px 16px;
    font-weight: 500;
    font-size: .9rem;
    color: #6b7280;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    background: transparent;
    transition: all .2s;
    cursor: pointer;
}

.sort-tab:hover {
    /* background-color: #eef2f7; */
    color: #409EFF;
}

/* 库存筛选 - 推到搜索框前面 */
.sort-inventory-tabs {
    margin-left: auto;
    margin-right: 0;
}

/* 搜索框 */
.search-box-wrapper {
    display: flex;
    align-items: center;
}

.home-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.home-search-input-wrap input {
    width: 200px;
    height: 36px;
    padding: 0 36px 0 36px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    background: #f5f7fa;
    outline: none;
    transition: all 0.2s ease;
}

.home-search-input-wrap input:focus {
    background: #fff;
    border-color: #409EFF;
    box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.1);
}

.home-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
}

.home-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, color 0.2s;
    z-index: 2;
}

.home-search-clear:hover {
    color: #64748b;
}

.home-search-clear.active {
    opacity: 1;
    pointer-events: auto;
}

.products-count {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-top: 8px;
}

.products-count-num {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #006fff, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    line-height: 1;
}

.products-count-label {
    color: #9ca3af;
    font-size: 0.8rem;
    font-weight: 500;
}

.tab-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 6px 16px;
    border-radius: 6px;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    font-size: .85rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all .2s;
    cursor: pointer;
}

/* 激活选中态：主题蓝底白字 */
.tab-item.active {
    background-color: #006eff;
    color: #ffffff;
}

/* 未选中态：浅灰白底、深灰文字，无边框 */
.tab-item.normal {
    background-color: #f5f7fa;
    color: #666666;
}

/* hover轻微变色提升交互 */
.tab-item.normal:hover {
    background-color: #eef2f7;
    color: #409EFF;
}

.main-content-body {
    padding: 16px 24px 20px 24px;
}

.product-list {
    width: calc(100% - 48px);
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background-color: #e8e8e8;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
    transition: opacity 0.15s ease;
}

.product-list.loading {
    opacity: 0.4;
    pointer-events: none;
}

.product-item {
    background-color: #fff;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: background 0.2s;
    width: 100%;
    position: relative;
    overflow: visible;
}

.product-highlight {
    animation: product-flash 0.6s ease-in-out 3;
}

@keyframes product-flash {
    0%, 100% { background-color: #fff; }
    50% { background-color: #fffbe6; box-shadow: 0 0 0 2px #faad14; }
}

/* 库存为 0 遮罩 */
.product-out-of-stock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
}

.product-out-of-stock-overlay .out-of-stock-text {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: #9E9E9E;
    padding: 6px 18px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.product-item:has(.product-out-of-stock-overlay) .btn-buy {
    pointer-events: none;
    opacity: 0.4;
}

.product-item:has(.product-out-of-stock-overlay) [data-help] {
    pointer-events: none;
}

.product-icon {
    width: 54px;
    height: 52px;
    border-radius: 8px;
    /* background: linear-gradient(135deg, #f0f4ff 0%, #e6f0ff 100%); */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-icon i.icon {
    font-size: 22px;
    color: #409EFF;
    margin: 0;
}

.product-info {
    flex: 1;
    min-width: 0;
}

.product-desc {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 6px;
    margin-right: 20px;
    color: #222;
    word-break: break-word;
}

.product-tags {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    flex-wrap: wrap;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 11px;
}

.tag i {
    margin-top: -6px;
}

.tag-warranty {
    background: linear-gradient(135deg, #99f3c5 0%, #48ff74 100%);
    color: #ffffff;
    border: 1px solid #84f4b3;
}

.tag-zidong {
    background: linear-gradient(135deg, #99cbf3 0%, #48aeff 100%);
    color: #ffffff;
    border: 1px solid #84c2f4;
}

.tag-sales {
    background: linear-gradient(135deg, #96e7f1 0%, #00BCD4 100%);
    color: #ffffff;
    border: 1px solid #96e7f1;
}

.product-stock {
    font-size: .8rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius:999px;
    color: #ffffff;
    background: linear-gradient(135deg, #b1d4f1 0%, #4867ff 100%);
}

.product-min-price {
    font-size: 24px;
    font-weight: 600;
    color: #F44336;
}

/* 价格卡片 —— 图标后面，描述前面 */
.product-price-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 100px;
    padding: 8px 10px;
    border-radius: 10px;
    background: linear-gradient(145deg, #ffffff, #ffffff);
    border: 1px solid #E91E63;
    gap: 2px;
}

/* 价格标签 "单价" */
.product-price-card .price-label {
    font-size: 10px;
    font-weight: 500;
    color: #b0a090;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* 价格数额容器 */
.product-price-card .price-amount {
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #e91e63;
    line-height: 1.1;
    white-space: nowrap;
}

/* 货币符号 */
.product-price-card .price-symbol {
    font-size: 13px;
    font-weight: 600;
    color: #e91e63;
    margin-right: 1px;
}

/* TOP 置顶徽章 */
.product-top-badge {
    position: absolute;
    top: -1px;
    left: -1px;
    background: linear-gradient(135deg, #FF6B35, #FF3D00);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px 3px 8px;
    border-radius: 4px 0 8px 0;
    letter-spacing: 1px;
    line-height: 1.4;
    z-index: 1;
    box-shadow: 0 2px 6px rgba(255, 61, 0, 0.3);
}

.btn-buy {
    background-color: #006fff;
    color: #fff;
    border: none;
    padding: 7px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
}

.btn-buy:hover {
    background-color: #62a4fb;
}

.home-search-icon {
    margin-top: -2px !important;
}

.home-search-clear {
    display: none !important;
    margin-top: -2px !important;
}

.home-search-input-wrap .active {
    display: block !important;
}

.user-actions i {
    margin-top: -5px !important;
}

@media (max-width: 768px) {
    .product-item {
        padding: 12px 14px;
        gap: 12px;
    }
    .product-icon {
        width: 40px;
        height: 40px;
    }
    .product-icon img {
        width: 24px;
        height: 24px;
    }
    .product-desc {
        font-size: 12px;
    }
    .btn-buy {
        padding: 6px 14px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .product-item {
        flex-wrap: wrap;
        padding: 12px;
    }
    .product-icon {
        width: 36px;
        height: 36px;
    }
    .product-info {
        flex: 1 1 calc(100% - 50px);
    }
    .product-price-card {
        width: 72px;
        padding: 5px 8px;
    }
    .product-price-card .price-amount {
        font-size: 17px;
    }
    .product-top-badge {
        font-size: 9px;
        padding: 2px 8px;
    }
    .btn-buy {
        order: 3;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 992px) {
    .column-container {
        padding: 15px;
    }

    .column-sidebar {
        width: 180px;
    }

    .main-content {
        padding: 18px 20px;
    }
}

@media (max-width: 768px) {
    .column-container {
        flex-direction: column;
        padding: 10px;
        top: 50px;
    }

    .column-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
        max-height: 200px;
        border-radius: 4px 4px 0 0;
    }

    .main-content {
        border-radius: 0 0 4px 4px;
        padding: 16px;
    }

    .product-right {
        gap: 10px;
    }

    .stock-num {
        min-width: 60px;
    }

    .price {
        min-width: 80px;
    }
}

@media (max-width: 576px) {
    .column-container {
        top: 44px;
        padding: 8px;
    }

    .product-item {
        /* flex-direction: column; */
        align-items: flex-start;
        gap: 12px;
    }

    .product-right {
        width: 100%;
        justify-content: space-between;
    }
}

/* ==================== 常见问题页面 ==================== */

/* 常见问题 column-container 覆盖 fixed 定位，保持与导航栏缝隙一致（top:60px + padding:20px = 80px） */
.faq-column {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    left: auto !important;
    margin: 80px auto 0;
}

html.has-marquee .faq-column {
    margin-top: 75px;
}

.frequently-main {
    background-color: #f0f2f5;
    overflow: visible;
}

.frequently-main .product-scroll-area {
    flex: none;
    overflow: visible;
}

.faq-header {
    padding: 32px 32px 24px;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    flex-shrink: 0;
}

.faq-header-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a3a5c;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.faq-header-title i {
    color: #409EFF;
    font-size: 22px;
}

.faq-header-sub {
    font-size: 14px;
    color: #999;
}

.faq-body {
    padding: 0;
}

.faq-item {
    border-bottom: 1px solid #e8e8e8;
    background: #fff;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

.faq-question:hover {
    background: #f5f7fa;
}

.faq-item.open .faq-question {
    background: #f0f7ff;
    color: #1677ff;
}

.faq-q-text {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.faq-item.open .faq-q-text {
    color: #1677ff;
}

.faq-arrow {
    font-size: 14px;
    color: #bbb;
    transition: transform 0.25s;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.open .faq-arrow {
    transform: rotate(90deg);
    color: #1677ff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
 
.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer-inner {
    padding: 10px 24px 20px;
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

/* 常见问题响应式 */
@media (max-width: 768px) {
    .faq-header {
        padding: 20px 20px 16px;
    }

    .faq-header-title {
        font-size: 18px;
    }

    .faq-question {
        padding: 14px 16px;
    }

    .faq-q-text {
        font-size: 14px;
    }

    .faq-answer-inner {
        padding: 0 16px 16px;
    }
}

/* ==================== 购买模态框 ==================== */
.buy-modal {
    max-width: 560px;
    width: 90%;
}

/* 步骤条 —— 使用高特异性选择器覆盖 Semantic UI 默认样式 */
.ui.steps.buy-steps {
    margin-bottom: 20px !important;
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}
.ui.steps.buy-steps .step {
    cursor: default !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 16px !important;
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgb(233 233 233) !important;
    color: #999 !important;
    border-radius: 8px !important;
    margin-right: 8px !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
}
.ui.steps.buy-steps .step:last-child {
    margin-right: 0 !important;
}
.ui.steps.buy-steps .step.active {
    background: linear-gradient(135deg, #64cfff, #3ba1f1) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgb(96 182 250) !important;
}
.ui.steps.buy-steps .step.active i.icon {
    color: #fff !important;
}
.ui.steps.buy-steps .step.active .title,
.ui.steps.buy-steps .step.active .description {
    color: #fff !important;
}
.ui.steps.buy-steps .step.completed {
    background: linear-gradient(135deg, #93f89b, #1ce368) !important;
    box-shadow: 0 4px 12px rgb(96 250 126) !important;
    color: #ffffff !important;
}
.ui.ordered.steps .step.completed:before,
.ui.steps .step.completed > .icon:before {
    color: #ffffff !important;
}
.ui.steps.buy-steps .step.completed .title,
.ui.steps.buy-steps .step.completed .description {
    color: #ffffff !important;
}
.ui.steps.buy-steps .step i.icon {
    font-size: 20px !important;
    margin-right: 10px !important;
    flex-shrink: 0 !important;
}
.ui.steps.buy-steps .step .content {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}
.ui.steps.buy-steps .step .title {
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-bottom: 2px !important;
}
.ui.steps.buy-steps .step .description {
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    opacity: 0.85 !important;
}

/* 购买步骤内容 */
.buy-step-content {
    padding: 0;
}

.buy-step-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

/* 供应商列表 */
.supplier-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 360px;
    overflow-y: auto;
    padding: 4px 0;
}

.supplier-card {
    flex: 1 1 100%;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.supplier-card:hover {
    border-color: #2196F3;
    background: #eef1f9;
}

.supplier-card.selected {
    border-color: #2196F3;
    background: #e6edff;
}

/* 一行一条供应商：左边 #ID，居中库存，右边价格 */
.supplier-card-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.supplier-pid {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    min-width: 80px;
}

.supplier-stock {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    text-align: center;
    flex: 1;
}

.supplier-cost {
    font-size: 15px;
    font-weight: 700;
    color: #0f3460;
    text-align: right;
    min-width: 100px;
}

/* 购买表单 */
.buy-form-group {
    margin-bottom: 16px;
}

.buy-form-label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
    font-weight: 500;
}

.buy-form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.buy-form-input:focus {
    border-color: #0f3460;
}

.buy-form-hint {
    display: block;
    font-size: 12px;
    margin-top: 4px;
    color: #999;
}

.buy-form-hint.error {
    color: #e74c3c;
}

.buy-form-hint.success {
    color: #27ae60;
}

.buy-form-static {
    padding: 10px 14px;
    background: #f8f9fc;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #0f3460;
}

.buy-form-price {
    padding: 10px 14px;
    background: #fff8f0;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #e67e22;
}

/* 同意协议 */
.buy-agreement {
    padding: 10px 0;
    border-top: 1px solid #eee;
    margin-top: 4px;
}

.buy-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    user-select: none;
}

.buy-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #0f3460;
}

.buy-checkbox-label span {
    line-height: 1.4;
}

/* ==================== 页脚 ==================== */
.home-footer {
    margin-top: auto;
    padding: 35px 0;
    margin-top: 15px;
    box-shadow: 0 8px 32px rgba(0, 80, 200, 0.12);
    border-top: 1px solid #eaeaea;
    text-align: center;
}

.home-footer-inner {
    font-size: 13px;
    color: #94a3b8;
}
