/* 轮播图样式 */
.carousel-container {
    position: relative;
    width: 100%;
    height: 300px;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 4px;
    transition: background 0.3s;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(0,0,0,0.7);
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.indicator.active {
    background: white;
}

/* 滚动公告样式 */
.notice-bar {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 6px rgba(255,107,53,0.3);
}

.notice-icon {
    font-size: 16px;
    font-weight: bold;
    white-space: nowrap;
}

.notice-content {
    flex: 1;
    overflow: hidden;
}

.notice-text {
    animation: scroll-left 30s linear infinite;
    white-space: nowrap;
    font-size: 14px;
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* 筛选条件样式 */
.filter-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 32px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 16px 24px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.filter-content {
    padding: 20px 5px;
    transition: all 0.3s ease;
}

.filter-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0;
    padding-bottom: 18px;
    border-bottom: 1px solid #f1f3f4;
}

.filter-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-category-name {
    font-size: 14px;
    font-weight: 600;
    color: #34495e;
    margin-right: 20px;
    margin-bottom: 0;
    min-width: 80px;
    line-height: 32px;
    flex-shrink: 0;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.filter-option {
    padding: 6px 16px;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    background-color: #fff;
    color: #6b7280;
    line-height: 1.4;
    white-space: nowrap;
}

.filter-option:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background-color: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

.filter-option.active {
    background-color: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

#toggle-filter-btn {
    padding: 8px 20px;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    background-color: #fff;
    color: #6b7280;
    margin-top: 16px;
    display: none;
    font-weight: 500;
}

#toggle-filter-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background-color: #f8fafc;
}

/* 隐藏的筛选分类 */
.hidden-category {
    display: none;
}

.hidden-category.show {
    display: flex;
    align-items: flex-start;
}

/* 筛选内容折叠状态 */
.filter-content.collapsed {
    display: none;
}

/* 加载和错误状态 */
.filter-loading,
.filter-error {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-size: 14px;
}

.filter-error {
    color: #ef4444;
}


.filter-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #eee;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.filter-checkbox:hover input ~ .checkmark {
    background-color: #ccc;
}

.filter-checkbox input:checked ~ .checkmark {
    background-color: #2196F3;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.filter-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.filter-checkbox .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.option-text {
    margin-left: 5px;
}

.filter-content.collapsed {
    display: none;
}

/* 搜索区域样式 */
.search-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.search-content {
    padding: 20px;
}

.search-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.search-row:last-child {
    margin-bottom: 0;
}

.search-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-right: 15px;
    white-space: nowrap;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-input {
    width: 100px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.price-separator {
    font-size: 14px;
    color: #666;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    flex-grow: 1;
    margin-right: 10px;
}

.search-btn, .reset-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-btn {
    background-color: #007bff;
    color: white;
}

.search-btn:hover {
    background-color: #0056b3;
}

.reset-btn {
    background-color: #6c757d;
    color: white;
    margin-left: 10px;
}

.reset-btn:hover {
    background-color: #5a6268;
}

/* 商品列表样式 */
.product-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 1200px) {
    .product-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .carousel-container {
        height: 200px;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-label,
    .search-label,
    .sort-label {
        min-width: auto;
        margin-bottom: 5px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-input {
        min-width: auto;
    }
    
    .product-list {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    
    .product-buttons {
        flex-direction: column;
    }
    
    .product-buttons button {
        margin-bottom: 5px;
    }
    
    /* 调整商品卡片中的按钮样式 */
    .product-actions {
        gap: 2px;
        flex-wrap: nowrap;
    }
    
    .action-btn {
        padding: 2px;
        font-size: 8px;
        min-height: 24px;
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .action-btn .layui-icon {
        font-size: 10px;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 150px;
    }
    
    .notice-bar {
        padding: 10px 15px;
    }
    
    .filter-section {
        padding: 15px;
    }
    
    .product-list {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    
    .pagination {
        gap: 4px;
    }
    
    .pagination a,
    .pagination span {
        padding: 6px 8px;
        font-size: 12px;
    }
}

.product-image {
    position: relative;
}

.product-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.product-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    color: #e53935;
}

.product-actions {
    /* padding: 0 15px 15px; */
    display: flex;
    gap: 10px;
}

.action-btn {
    flex-grow: 1;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f8f9fa;
    font-size: 12px;
    cursor: default;
}

.action-btn.guarantee { color: #28a745; border-color: #28a745; }
.action-btn.service { color: #17a2b8; border-color: #17a2b8; }
.action-btn.official { color: #ffc107; border-color: #ffc107; }

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-prev, .page-next, .page-num {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.page-prev:hover, .page-next:hover, .page-num:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-num.active {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.page-ellipsis {
    color: #666;
}

.filter-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.filter-checkbox:hover input ~ .checkmark {
    border-color: #007AFF;
}

.filter-checkbox input:checked ~ .checkmark {
    background-color: #007AFF;
    border-color: #007AFF;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.filter-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.filter-checkbox .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.option-text {
    margin-left: 5px;
}

.filter-content.collapsed {
    position: relative;
}

.filter-content.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
}

.filter-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-weight: 600;
    color: #333;
    min-width: 100px;
    padding-top: 8px;
    font-size: 14px;
}

.filter-options {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-toggle {
    margin-top: 15px;
    text-align: center;
    padding: 10px 0;
    display: flex;
    justify-content: center;
}

.toggle-btn {
    background: none;
    border: 1px solid #e0e0e0;
    color: #007AFF;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 16px;
    transition: all 0.3s ease;
    border-radius: 20px;
    min-width: 120px;
}

.toggle-btn:hover {
    background-color: rgba(0, 122, 255, 0.1);
    border-color: #007AFF;
}

.toggle-btn .icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.filter-loading {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 14px;
}

.filter-error {
    text-align: center;
    color: #ff3b30;
    padding: 20px;
    font-size: 14px;
}

.toggle-btn.expanded .icon {
    transform: rotate(180deg);
}

.filter-btn {
    display: inline-block;
    padding: 6px 12px;
    margin: 4px 6px 4px 0;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    border: 1px solid #e9ecef;
    transition: all 0.3s;
    white-space: nowrap;
}

.filter-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-1px);
}

.filter-btn.active {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
}

/* 复选框样式 */
.filter-checkbox {
    display: inline-flex;
    align-items: center;
    margin: 4px 8px 4px 0;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    font-size: 13px;
    white-space: nowrap;
}

.filter-checkbox:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-1px);
}

.filter-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.filter-checkbox input[type="checkbox"]:checked + .checkmark {
    background: #007bff;
    border-color: #007bff;
}

.filter-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-checkbox input[type="checkbox"]:checked ~ .option-text {
    color: #007bff;
    font-weight: 500;
}

.option-text {
    transition: all 0.3s ease;
}

/* 搜索区域样式 */
.search-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.search-content {
    padding: 20px;
}

.search-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.search-row:last-child {
    margin-bottom: 0;
}

.search-label {
    font-weight: 600;
    color: #333;
    min-width: 80px;
    font-size: 14px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.price-input {
    width: 120px;
    padding: 10px 12px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.price-input:focus {
    outline: none;
    border-color: #007bff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.price-separator {
    color: #666;
    font-weight: 500;
    font-size: 14px;
}

.search-box {
    flex: 1;
    display: flex;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    overflow: hidden;
    background-color: #fff;
}

.search-input {
    flex: 1;
    width: 100%;
    border: none;
    padding: 8px 12px;
    outline: none;
    font-size: 14px;
}

.search-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.4);
}

.search-btn:active {
    transform: translateY(0);
}

/* 排序样式 */
.sort-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sort-label {
    font-weight: bold;
    color: #333;
    min-width: 80px;
    font-size: 14px;
}

.sort-select {
    padding: 10px 12px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    min-width: 150px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sort-select:focus {
    outline: none;
    border-color: #007bff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.reset-btn {
    padding: 10px 20px;
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 80px;
}

.reset-btn:hover {
    background: #e9ecef;
    color: #495057;
    transform: translateY(-1px);
}

/* 商品卡片样式 - 完全按照图片布局 */
.product-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* 右上角ID标识 */
.product-id-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    z-index: 2;
}

/* 商品图片容器 */
.product-image-container {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f8f8f8;
}

.product-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-main-image {
    transform: scale(1.02);
}

/* 商品信息区域 */
.product-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 商品标题 */
.product-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

/* 功能按钮组 */
.product-actions {
    display: flex;
    gap: 4px;
    margin: 12px 0;
    justify-content: space-between;
    /* padding: 0 4px; */
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 8px;
    border: none;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    flex: 1;
    color: #fff !important;
    text-decoration: none;
    min-height: 28px;
    transition: all 0.2s ease;
}

.action-btn.guarantee {
    background: linear-gradient(135deg, #ff6b6b, #ff5252) !important;
}

.action-btn.service {
    background: linear-gradient(135deg, #4ecdc4, #26a69a) !important;
}

.action-btn.platform {
    background: linear-gradient(135deg, #a855f7, #9c27b0) !important;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.action-btn .layui-icon {
    font-size: 12px;
    color: #fff !important;
    margin-right: 2px;
}

/* 价格显示 */
.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #e74c3c;
    margin-top: auto;
    padding-top: 8px;
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}

.action-btn {
    flex: 1;
    min-width: 70px;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
}

.action-btn.guarantee {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
}

.action-btn.guarantee:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.action-btn.service {
    background: linear-gradient(135deg, #3498db 0%, #5dade2 100%);
    color: white;
}

.action-btn.service:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.action-btn.official {
    background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
    color: white;
}

.action-btn.official:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

/* 加载和错误状态 */
.loading {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #6c757d;
}

.error {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    margin: 20px;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 20px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-prev, .page-next, .page-num {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.page-prev:hover, .page-next:hover, .page-num:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-num.active {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.page-ellipsis {
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .carousel-container {
        height: 200px;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-label,
    .search-label,
    .sort-label {
        min-width: auto;
        margin-bottom: 5px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-input {
        min-width: auto;
    }
    
    .product-list {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    
    .product-buttons {
        flex-direction: column;
    }
    
    .product-buttons button {
        margin-bottom: 5px;
    }
    
    /* 调整商品卡片中的按钮样式 */
    .product-actions {
        gap: 2px;
        flex-wrap: wrap;
    }
    
    .action-btn {
        padding: 2px;
        font-size: 8px;
        min-height: 24px;
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .action-btn .layui-icon {
        font-size: 10px;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 150px;
    }
    
    .notice-bar {
        padding: 10px 15px;
    }
    
    .filter-section {
        padding: 15px;
    }
    
    .product-list {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    
    .pagination {
        gap: 4px;
    }
    
    .pagination a,
    .pagination span {
        padding: 6px 8px;
        font-size: 12px;
    }
}

/* 响应式设计 - 手机端和桌面端显示控制 */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-search-filter {
        display: flex !important;
    }
    
    .mobile-filter-modal {
        display: none;
    }
}

@media (min-width: 769px) {
    .desktop-only {
        display: block;
    }
    
    .mobile-search-filter {
        display: none !important;
    }
    
    .mobile-filter-modal {
        display: none !important;
    }
}

/* 手机端搜索和筛选相关样式修改 */
.mobile-search-filter {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 10px;
    gap: 10px;
}

.mobile-search-bar {
    flex: 1;
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.mobile-search-bar input {
    flex: 1;
    border: none;
    padding: 10px 15px;
    outline: none;
    font-size: 14px;
}

.mobile-search-bar button {
    background: #3b82f6;
    border: none;
    color: white;
    padding: 0 15px;
    cursor: pointer;
}

/* 恢复筛选按钮样式 */
.mobile-filter-btn {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mobile-filter-btn i {
    font-size: 16px;
}

/* 手机端筛选弹窗样式 */
.mobile-filter-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    height: 100%;
}

.mobile-filter-modal.active {
    display: block;
}

.mobile-filter-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    max-height: 85%;
    height: 85%;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-filter-modal.active .mobile-filter-content {
    transform: translateY(0);
}

.mobile-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.mobile-filter-header h3 {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    text-align: center;
    flex: 1;
}

.mobile-filter-close {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-filter-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* 左侧分类列表 */
.mobile-filter-categories-nav {
    width: 100px;
    background: #f5f5f5;
    overflow-y: auto;
    height: 100%;
}

.mobile-filter-category-item {
    padding: 15px 10px;
    text-align: center;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.mobile-filter-category-item.active {
    background: white;
    color: #3b82f6;
    font-weight: bold;
    position: relative;
}

.mobile-filter-category-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #3b82f6;
}

/* 右侧选项区域 */
.mobile-filter-options-container {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.mobile-filter-section {
    margin-bottom: 20px;
}

.mobile-filter-section h4 {
    font-size: 15px;
    margin-bottom: 10px;
    color: #333;
}

.mobile-price-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-price-range input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 14px;
}

.mobile-sort-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mobile-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.mobile-radio input {
    margin: 0;
}

/* 筛选选项样式 */
.mobile-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mobile-filter-option {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    background: #f5f5f5;
}

.mobile-filter-option.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.mobile-filter-footer {
    display: flex;
    padding: 15px 20px;
    border-top: 1px solid #eee;
    position: sticky;
    bottom: 0;
    background: white;
    z-index: 10;
    gap: 10px;
}

.mobile-filter-reset {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.mobile-filter-apply {
    flex: 2;
    padding: 10px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}