* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e1251b;
    --secondary-color: #ff8800;
    --text-dark: #333;
    --text-gray: #666;
    --text-light: #999;
    --border-color: #e3e4e5;
    --bg-light: #f4f4f4;
    --white: #fff;
    --shadow: 0 2px 12px 0 rgba(0,0,0,.1);
}

body {
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.top-bar {
    background: #e3e4e5;
    height: 30px;
    line-height: 30px;
    color: var(--text-gray);
    font-size: 12px;
    border-bottom: 1px solid #ddd;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
}

.top-bar a {
    color: var(--text-gray);
    margin: 0 8px;
}

.top-bar a:hover {
    color: var(--primary-color);
}

.header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
}

.search-box {
    display: flex;
    width: 500px;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid var(--primary-color);
    border-right: none;
    outline: none;
    font-size: 14px;
}

.search-box button {
    padding: 10px 30px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.nav-bar {
    background: var(--white);
    border-bottom: 2px solid var(--primary-color);
}

.nav-bar .container {
    display: flex;
}

.nav-bar a {
    padding: 15px 25px;
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 500;
    transition: all .3s;
}

.nav-bar a:hover,
.nav-bar a.active {
    color: var(--primary-color);
    background: rgba(225,37,27,.05);
}

.banner {
    height: 380px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 75px;
}

.banner-content {
    color: var(--white);
    text-align: center;
    max-width: 380px;
}

.banner-content h1 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.banner-content p {
    font-size: 14px;
    opacity: 0.95;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
}

.category-nav {
    width: 100%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    padding: 12px 0;
    position: absolute;
    top: 0;
    left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.category-nav .container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.category-nav .category-item {
    padding: 6px 14px;
    color: var(--white);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.category-nav .category-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.category-nav .category-item .icon {
    font-size: 14px;
}

.category-submenu {
    position: absolute;
    top: 55px;
    left: 50%;
    transform: translateX(-50%);
    width: 880px;
    max-width: 90vw;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    padding: 22px 32px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
    display: none;
    z-index: 100;
}

.category-submenu.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.category-submenu .submenu-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.category-submenu .submenu-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.category-submenu .submenu-item {
    padding: 9px 14px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%);
    border-radius: 6px;
    text-align: center;
    font-size: 13px;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.category-submenu .submenu-item:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, #c81623 100%);
    color: var(--white);
    transform: scale(1.03);
    border-color: transparent;
}

.filter-bar {
    background: var(--white);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.filter-bar h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.filter-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-categories .filter-item {
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s;
}

.filter-categories .filter-item:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-categories .filter-item.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.section-title {
    text-align: center;
    padding: 50px 0 30px;
}

.section-title h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-gray);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 15px;
    padding: 0 0 50px;
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: all .3s;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.product-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.product-card .info {
    padding: 12px;
}

.product-card .title {
    font-size: 13px;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
}

.product-card .price {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: bold;
}

.product-card .price span {
    font-size: 12px;
    font-weight: normal;
}

.product-card .sales {
    color: var(--text-light);
    font-size: 12px;
    margin-top: 5px;
}

.footer {
    background: #2d2d2d;
    color: #999;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer h3 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 20px;
}

.footer a {
    display: block;
    color: #999;
    margin-bottom: 10px;
    font-size: 14px;
}

.footer a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #3d3d3d;
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    line-height: 2;
}

.footer-bottom p {
    color: #666;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    cursor: pointer;
    transition: all .3s;
    border: none;
    font-size: 14px;
}

.btn:hover {
    background: #c81623;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.platform-info {
    background: var(--white);
    padding: 30px;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.platform-info h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.platform-info p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.info-item {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.info-item h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.info-item p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 10px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer .container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}