/* PFA.com 统一样式 - 红色主题 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary-color: #FF4757;
    --primary-light: #FF6B7A;
    --primary-dark: #E63946;
    --secondary-color: #FFA502;
    --background: #F5F5F5;
    --card-bg: #FFFFFF;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --border-color: #E5E5E5;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    padding-top: 60px;
    padding-bottom: 60px;
    min-height: 100vh;
}

/* 顶部搜索栏 */
.top-search-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

/* Logo */
.logo-link {
    text-decoration: none;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(255, 71, 87, 0.1);
}

.logo:active {
    transform: scale(0.95);
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0 40px 0 15px;
    font-size: 14px;
    outline: none;
    background: #F8F8F8;
    transition: all 0.3s;
}

.search-input:focus {
    border-color: var(--primary-color);
    background: #fff;
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 18px;
    cursor: pointer;
}

/* 菜单按钮 */
.menu-btn {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s;
    padding: 8px;
}

.menu-btn:active {
    background: var(--primary-dark);
}

.menu-icon {
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

.menu-btn.active .menu-icon:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-btn.active .menu-icon:nth-child(2) {
    opacity: 0;
}

.menu-btn.active .menu-icon:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* 侧边菜单 */
.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s;
}

.side-menu.active {
    visibility: visible;
    opacity: 1;
}

.side-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.side-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    max-width: 85%;
    background: var(--card-bg);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s;
    overflow-y: auto;
}

.side-menu.active .side-menu-content {
    transform: translateX(0);
}

/* 菜单头部 */
.side-menu-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 30px 20px 20px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.menu-user-name {
    font-size: 16px;
    font-weight: 600;
}

.menu-close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.menu-close-btn:active {
    background: rgba(255, 255, 255, 0.3);
}

/* 菜单列表 */
.side-menu-list {
    padding: 10px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
    position: relative;
}

.menu-item:active {
    background: #F8F9FA;
}

.menu-item-icon {
    font-size: 22px;
    width: 30px;
    margin-right: 15px;
}

.menu-item-text {
    flex: 1;
    font-size: 15px;
}

.menu-badge {
    background: var(--primary-color);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 10px 20px;
}

.menu-item-danger {
    color: var(--primary-color);
}

.menu-item-danger:active {
    background: #FFF5F5;
}

/* Banner 轮播图区域 */
.banner-section {
    padding: 10px 15px;
    background: var(--card-bg);
    margin-bottom: 5px;
}

.banner-carousel {
    width: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.banner-wrapper {
    width: 100%;
    height: 252px;
    position: relative;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.banner-image.active {
    opacity: 1;
    z-index: 1;
}

/* 左右切换按钮 */
.banner-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.banner-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-50%) scale(1.1);
}

.banner-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.banner-btn-prev {
    left: 10px;
}

.banner-btn-next {
    right: 10px;
}

/* 指示点 */
.banner-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.indicator-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--primary-color);
}

/* 移动端优化 */
@media (max-width: 768px) {
    .banner-wrapper {
        height: 224px;
    }
    
    .banner-btn {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .banner-wrapper {
        height: 196px;
    }
    
    .banner-btn {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
    
    .banner-btn-prev {
        left: 5px;
    }
    
    .banner-btn-next {
        right: 5px;
    }
}

/* 分类标签 */
.category-tabs {
    background: var(--card-bg);
    padding: 10px 15px;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 10px;
}

.category-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    flex: 1;
    min-width: 0;
    transition: transform 0.2s;
}

.category-tab:active {
    transform: scale(0.95);
}

.category-tab img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 6px;
    transition: all 0.3s;
}

.category-tab.active img {
    transform: scale(1.05);
}

.category-tab-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFE5E8 0%, #FFF0F2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 6px;
    transition: all 0.3s;
}

.category-tab.active .category-tab-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    transform: scale(1.05);
}

.category-tab-name {
    font-size: 11px;
    text-align: center;
    color: var(--text-primary);
    line-height: 1.2;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-width: 100%;
}

.category-tab.active .category-tab-name {
    color: var(--primary-color);
    font-weight: 600;
}

/* 响应式布局 */
@media (min-width: 480px) {
    .category-tabs {
        padding: 20px;
        gap: 15px;
    }
    
    .category-tab img {
        width: 56px;
        height: 56px;
        margin-bottom: 8px;
    }
    
    .category-tab-icon {
        width: 56px;
        height: 56px;
        font-size: 28px;
        margin-bottom: 8px;
    }
    
    .category-tab-name {
        font-size: 12px;
    }
}

@media (min-width: 768px) {
    .category-tabs {
        padding: 25px;
        gap: 20px;
    }
    
    .category-tab img {
        width: 64px;
        height: 64px;
        margin-bottom: 10px;
    }
    
    .category-tab-icon {
        width: 64px;
        height: 64px;
        font-size: 32px;
        margin-bottom: 10px;
    }
    
    .category-tab-name {
        font-size: 13px;
    }
}

@media (min-width: 1024px) {
    .category-tabs {
        padding: 30px;
        gap: 25px;
    }
    
    .category-tab img {
        width: 72px;
        height: 72px;
        margin-bottom: 12px;
    }
    
    .category-tab-icon {
        width: 72px;
        height: 72px;
        font-size: 36px;
        margin-bottom: 12px;
    }
    
    .category-tab-name {
        font-size: 14px;
    }
}

/* 信息卡片 */
.info-cards {
    display: flex;
    gap: 10px;
    padding: 0 15px 10px;
    background: var(--card-bg);
    margin-bottom: 5px;
}

.info-card {
    flex: 1;
    background: #F8F9FA;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card-icon {
    font-size: 24px;
}

.info-card-text {
    flex: 1;
}

.info-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.info-card-desc {
    font-size: 11px;
    color: var(--text-light);
}

/* 商品一级类别筛选 */
.category-filter-section {
    background: var(--card-bg);
    padding: 10px 0;
    margin-bottom: 5px;
    line-height: 0.7;
}

.category-filter-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    padding: 0 15px 10px;
    line-height: 1.2;
}

.category-filter-scroll {
    display: flex;
    gap: 10px;
    padding: 0 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    line-height: 1;
}

.category-filter-scroll::-webkit-scrollbar {
    display: none;
}

.category-filter-item {
    flex: 0 0 auto;
    padding: 6px 16px;
    background: #F8F9FA;
    border: 2px solid transparent;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    position: relative;
    line-height: 1;
}

.category-filter-item:active {
    transform: scale(0.95);
}

.category-filter-item.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

.category-filter-item:not(.active):hover {
    background: #E8E9EB;
    border-color: var(--primary-light);
}

/* 商品二级类别筛选 */
.subcategory-filter-section {
    background: var(--card-bg);
    padding: 0 0 10px 0;
    margin-bottom: 5px;
}

.subcategory-filter-scroll {
    display: flex;
    gap: 8px;
    padding: 0 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.subcategory-filter-scroll::-webkit-scrollbar {
    display: none;
}

.subcategory-filter-item {
    flex: 0 0 auto;
    padding: 6px 16px;
    background: #FFF5F6;
    border: 1px solid #FFE5E8;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.subcategory-filter-item:active {
    transform: scale(0.95);
}

.subcategory-filter-item:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.2);
}

/* 商品区域标题 */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: var(--card-bg);
    margin-bottom: 5px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.view-more {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.view-more:hover {
    color: var(--primary-color);
}

/* 分类商品区域 */
.category-section {
    background: var(--card-bg);
    margin-bottom: 10px;
    padding-bottom: 15px;
}

.category-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: linear-gradient(135deg, #FFF0F2 0%, #FFE5E8 100%);
    border-radius: 12px;
    margin: 0 15px 10px;
}

.category-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.category-section-count {
    font-size: 13px;
    color: var(--text-light);
}

/* HOT 标签 */
.hot-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--primary-color);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(255, 71, 87, 0.3);
}

/* 走马灯商品容器 */
.products-carousel-container {
    background: var(--card-bg);
    padding: 0 0 10px 0;
    margin-bottom: 5px;
    overflow: hidden;
    position: relative;
}

.products-carousel-track {
    display: flex;
    gap: 12px;
    padding: 0 15px;
    will-change: transform;
}

.product-carousel-card {
    flex: 0 0 140px;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: scale(1);
}

.product-carousel-card.focus-card {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 71, 87, 0.3);
    z-index: 10;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease;
}

.product-carousel-card.focus-card-shrink {
    transform: scale(1);
    box-shadow: var(--shadow-sm);
    z-index: 5;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
}

.product-carousel-card:active {
    transform: scale(0.98);
}

.product-carousel-card.focus-card:active {
    transform: scale(1.08);
}

.product-carousel-image {
    width: 140px;
    height: 140px;
    object-fit: cover;
    background: #F5F5F5;
    display: block;
}

.product-carousel-info {
    padding: 8px;
}

.product-carousel-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.product-carousel-name {
    font-size: 12px;
    color: var(--text-primary);
    line-height: 1.3;
    height: 32px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 6px;
}

.product-carousel-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-light);
}

.product-carousel-sold {
    margin-left: auto;
}

/* 横向滚动商品容器 */
.products-scroll-container {
    background: var(--card-bg);
    padding: 0 0 15px 0;
    margin-bottom: 10px;
    overflow: hidden;
}

.products-scroll {
    display: flex;
    gap: 12px;
    padding: 0 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.products-scroll::-webkit-scrollbar {
    display: none;
}

.product-scroll-card {
    flex: 0 0 140px;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
    position: relative;
}

.product-scroll-card:active {
    transform: scale(0.98);
}

.product-scroll-image {
    width: 140px;
    height: 140px;
    object-fit: cover;
    background: #F5F5F5;
}

.product-scroll-info {
    padding: 8px;
}

.product-scroll-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.product-scroll-name {
    font-size: 12px;
    color: var(--text-primary);
    line-height: 1.3;
    height: 32px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 6px;
}

.product-scroll-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.product-scroll-sold {
    margin-left: auto;
}

/* 商品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 15px 10px;
    background: var(--card-bg);
}

.product-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    transition: all 0.3s;
}

.product-card:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-md);
}

.product-special-badge {
    position: absolute;
    top: 8px;
    right: 0;
    background: var(--primary-color);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px 0 0 12px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(255, 71, 87, 0.3);
}

.product-hot-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #FFA502 0%, #FF6348 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 8px;
    z-index: 10;
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #F5F5F5;
}

.product-info {
    padding: 10px;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.product-name {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.4;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 8px;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-light);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 3px;
}

.star {
    color: #FFA500;
}

.product-sold {
    color: var(--text-light);
}

/* 登录提示条 */
.login-prompt-bar {
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
    animation: slideInUp 0.4s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.login-prompt-message {
    flex: 1;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.login-prompt-btn {
    background: var(--primary-color);
    color: #FFFFFF;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
}

.login-prompt-btn:active {
    background: var(--primary-dark);
    transform: scale(0.95);
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
    z-index: 1000;
    height: 60px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    font-size: 11px;
    padding: 5px 12px;
    position: relative;
    transition: all 0.3s;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-icon {
    font-size: 22px;
    margin-bottom: 4px;
}

.nav-badge {
    position: absolute;
    top: 0;
    right: 8px;
    background: var(--primary-color);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    padding: 0 4px;
}

/* 按钮样式 */
.btn-primary {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

.btn-primary:active {
    background: var(--primary-dark);
    transform: scale(0.98);
}

.btn-secondary {
    background: #F5F5F5;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:active {
    background: #E5E5E5;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-icon {
    font-size: 60px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式 */
@media (min-width: 768px) {
    body {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .product-image {
        height: 240px;
    }
}

