* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.header {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 45px;
    object-fit: contain;
}

.logo-text {
    font-size: 26px;
    font-weight: bold;
    color: #2c3e50;
    letter-spacing: 3px;
}

.main-nav {
    display: flex;
    gap: 35px;
}

.nav-link {
    color: #555;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: #e74c3c;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e74c3c, #f39c12);
    border-radius: 2px;
}

.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
}

.banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 70px 40px;
    text-align: center;
    color: white;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner-content h1 {
    font-size: 44px;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 2px;
}

.banner-content p {
    font-size: 18px;
    opacity: 0.95;
    letter-spacing: 1px;
}

.quick-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.quick-cat-item {
    background: #fff;
    border-radius: 10px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #eee;
}

.quick-cat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-color: #e74c3c;
}

.quick-cat-item .cat-icon {
    font-size: 20px;
}

.quick-cat-item .cat-name {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.featured {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 24px;
    color: #2c3e50;
    padding-left: 15px;
    border-left: 4px solid #e74c3c;
    font-weight: 700;
}

.view-all-link {
    color: #e74c3c;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.view-all-link:hover {
    color: #c0392b;
    text-decoration: underline;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border-color: #e74c3c;
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

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

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 14px;
    margin-bottom: 8px;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    font-weight: 500;
}

.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.color-badge {
    font-size: 11px;
    color: #666;
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 4px;
    line-height: 1.4;
}

.sizes-badge {
    font-size: 11px;
    color: #e74c3c;
    background: #fff5f5;
    padding: 3px 8px;
    border-radius: 4px;
    line-height: 1.4;
}

.footer {
    background: #2c3e50;
    color: #bbb;
    padding: 50px 0 20px;
    margin-top: 40px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #3d5166;
}

.footer-info h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 12px;
}

.footer-info p {
    font-size: 14px;
    line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #f39c12;
}

.footer-contact p {
    font-size: 14px;
    line-height: 1.8;
}

.footer-bottom {
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    margin: 5px 0;
    font-size: 13px;
}

.footer-bottom a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: #f39c12;
}

.loading,
.no-data,
.error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 14px;
}

.error {
    color: #dc3545;
}

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

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 15px;
        gap: 15px;
    }
    
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .banner {
        padding: 50px 20px;
    }
    
    .banner-content h1 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 15px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .main-content {
        padding: 20px 15px;
    }
    
    .featured {
        padding: 20px;
    }
}