/* 首页分类标签骨架屏 */
.category-tab--skeleton {
    background: #f3f3f3;
    border-radius: 50px;
    min-width: 80px;
    height: 42px;
    display: flex;
    align-items: center;
    margin: 4px;
    border: none;
    animation: skeleton-loading 1.2s infinite ease-in-out;
}

.category-tab--skeleton .skeleton {
    background: #e0e0e0;
    border-radius: 8px;
    width: 48px;
    height: 16px;
    display: inline-block;
}

@keyframes skeleton-loading {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}
/* ===== 分类标签样式 ===== */
.category-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: 50px;
    background: var(--bg-card2);
    border: 1px solid var(--border-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: var(--text-title);
    white-space: nowrap;
    line-height: normal;
    height: 42px;
}

[theme="dark"] .category-tab {
    border-color: #4A5F4B;
}

.category-tab:hover {
    background: var(--primary-color-hover);
    border-color: var(--primary-color-hover);
    color: #ffffff;
}

.category-tab:active {
    background-color: var(--primary-color-active);
    border-color: var(--primary-color-active);
    color: #ffffff;
    transform: scale(0.95);
}

.category-tab--active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.category-tab__icon {
    width: 16px;
    height: 16px;
}

.category-tabs-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    touch-action: pan-x;
}

.category-tabs-wrapper:active,
.category-tabs-wrapper.is-dragging {
    cursor: grabbing;
}

.category-tabs-wrapper::-webkit-scrollbar {
    display: none;
}

@media (max-width: 768px) {
    .category-tab {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .category-tab__icon {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .category-tab {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* ===== Banner 样式 ===== */
.banner {
    width: 100%;
    height: 635px;
    /* background: #fd4f12; */
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}

.banner__image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.banner__image--active {
    opacity: 1;
}

@media (max-width: 1400px) {
    .banner {
        height: 500px;
    }
    
    .banner__image {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
    }
}

@media (max-width: 1024px) {
    .banner {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .banner {
        height: 300px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 250px;
        border-radius: 10px;
    }
}

.banner__pagination {
    position: absolute;
    bottom: 39px;
    left: 32px;
    display: flex;
    gap: 4px;
}

.banner__dot {
    height: 7px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.2);
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.banner__dot--active {
    width: 66px;
    background: rgba(0, 0, 0, 0.2);
}

.banner__dot--active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 14px;
    animation: fillProgress 5s linear forwards;
}

@keyframes fillProgress {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

.banner__dot--inactive {
    width: 26px;
}

@media (max-width: 768px) {
    .banner__arrow {
        width: 32px;
        height: 32px;
    }
    
    .banner__arrow--left {
        left: 16px;
    }
    
    .banner__arrow--right {
        right: 16px;
    }
    
    .banner__arrow svg {
        width: 12px;
        height: 12px;
    }
}

.banner__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner__arrow:hover {
    background: var(--bg-hover);
}

.banner__arrow--left {
    left: 32px;
}

.banner__arrow--right {
    right: 40px;
}

/* ===== 按钮样式 ===== */
.btn {
    padding: 12px 32px;
    border-radius: 50px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-inverse);
}

.btn-primary:hover {
    background: var(--primary-color-hover);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--bg-hover);
}

/* ===== Section Title 样式 ===== */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title__text {
    color: var(--text-title);
    font-family: Roboto;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 0.48px;
    text-transform: capitalize;
}

.section-title__link {
    display: flex;
    padding: 12px 20px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 24px;
    background: var(--primary-color-light);

    color: var(--primary-color-alt);
    text-align: center;
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 0.28px;
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.section-title__link:hover {
    color: var(--primary-color-hover);
    background-color: var(--primary-color-light);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .section-title__text {
        font-size: 22px;
    }
    
    .section-title__link {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .section-title__text {
        font-size: 20px;
    }
}

/* ===== Grid 布局 ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

/* 响应式布局 */
@media (max-width: 1600px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ===== 加载更多按钮区域 ===== */
.load-more-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin: 45px 0;
}

.load-more-section__line {
    flex: 1;
    height: 1px;
    background: var(--border-primary);
}

.load-more-section__button {
    padding: 12px 48px;
    background: var(--bg-card2);
    border: 1px solid var(--border-primary);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.load-more-section__button:hover {
    background: var(--primary-color-hover);
    border-color: var(--primary-color-hover);
    color: #ffffff;
}

.load-more-section__button:active {
    background-color: var(--primary-color-active);
    border-color: var(--primary-color-active);
    transform: scale(0.95);
}

.merchant-banner__feature {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.merchant-banner__divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.3);
}

.merchant-banner__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: white;
    color: #667eea;
    border-radius: 50px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.merchant-banner__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1024px) {
    .merchant-banner {
        padding: 60px 32px;
    }
    
    .merchant-banner__title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .merchant-banner {
        padding: 40px 24px;
        margin: 32px 0;
        border-radius: 12px;
    }
    
    .merchant-banner__title {
        font-size: 28px;
    }
    
    .merchant-banner__features {
        gap: 16px;
    }
    
    .merchant-banner__feature {
        font-size: 14px;
    }
    
    .merchant-banner__divider {
        display: none;
    }
    
    .merchant-banner__button {
        padding: 14px 28px;
    }
}

@media (max-width: 480px) {
    .merchant-banner {
        padding: 32px 16px;
    }
    
    .merchant-banner__title {
        font-size: 24px;
    }
    
    .merchant-banner__feature {
        font-size: 13px;
    }
}

/* ===== 商家入驻横幅 ===== */
.merchant-banner {
    border-radius: 15px;
    padding: 32px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 48px 0;
    min-height: 572px;
}

.merchant-banner__image{
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.merchant-banner__content{
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.merchant-banner__title {
    font-family: 'Roboto', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.merchant-banner__features {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
}

.merchant-banner__feature {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: var(--text-primary);
}

.merchant-banner__divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.3);
}

.merchant-banner__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--text-primary);
    color: var(--text-inverse);
    border-radius: 50px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.merchant-banner__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
