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

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

.header {
    background: linear-gradient(135deg, #1a1a1a, #333);
    color: white;
    text-align: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
    margin-top: 60px;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%),
                linear-gradient(-45deg, rgba(255,255,255,0.1) 25%, transparent 25%);
    background-size: 60px 60px;
    opacity: 0.1;
}

.slogan {
    font-size: 1.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.products {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
}

.products-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8em;
    color: #1a1a1a;
    position: relative;
    padding-bottom: 15px;
}

.products-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1a1a1a, #333);
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 10px 0;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

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

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

.product-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-title {
    font-size: 1.1em;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-weight: 600;
    text-align: center;
}

.product-description {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 12px;
    line-height: 1.5;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-features {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.feature-tag {
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    color: #666;
    transition: all 0.3s ease;
}

.feature-tag:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.buy-button {
    display: inline-block;
    background: linear-gradient(135deg, #1a1a1a, #333);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
    margin-top: auto;
    font-size: 0.9em;
}

.buy-button:hover {
    background: linear-gradient(135deg, #333, #1a1a1a);
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .header {
        padding: 60px 20px;
    }

    .slogan {
        font-size: 2em;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .product-image {
        height: 180px;
    }

    .product-info {
        padding: 20px;
    }

    .product-title {
        font-size: 1.3em;
        margin-bottom: 12px;
    }

    .product-description {
        font-size: 1em;
        margin-bottom: 15px;
        -webkit-line-clamp: 3;
    }

    .feature-tag {
        padding: 6px 12px;
        font-size: 0.9em;
    }

    .buy-button {
        padding: 10px 25px;
        font-size: 1em;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .product-image {
        height: 200px;
    }
}

/* 导航栏样式 */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #1a1a1a;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-size: 1em;
    padding: 5px 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #1a1a1a, #333);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: #000;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #1a1a1a;
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* 移动端样式 */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: 50vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        transition: 0.3s;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 0 0 20px 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 10px 0;
    }

    .nav-menu a {
        font-size: 1.1em;
        padding: 8px 20px;
        border-radius: 20px;
        transition: all 0.3s ease;
        display: block;
        width: 80%;
        text-align: center;
    }

    .nav-menu a:hover {
        background: rgba(0, 0, 0, 0.05);
    }
}

/* 侧边抽屉导航样式 */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.35);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 60vw;
    max-width: 340px;
    height: 100vh;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 4px 0 32px rgba(0,0,0,0.12);
    border-radius: 0 18px 18px 0;
    z-index: 2100;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    padding: 0 0 24px 0;
}
.drawer.active {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px 10px 24px;
}
.drawer-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #1a1a1a;
    letter-spacing: 2px;
}
.drawer-close {
    font-size: 2em;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
    user-select: none;
}
.drawer-close:hover {
    color: #333;
}

.drawer-menu {
    list-style: none;
    padding: 0 24px;
    margin: 0;
    flex: 1;
}
.drawer-menu li {
    margin: 18px 0;
}
.drawer-menu a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    transition: color 0.2s;
    border-radius: 8px;
    padding: 8px 12px;
}
.drawer-menu a.active,
.drawer-menu a:hover {
    color: #1abc9c;
    background: rgba(26,188,156,0.08);
}

@media (max-width: 480px) {
    .drawer {
        width: 80vw;
        max-width: 98vw;
        border-radius: 0 12px 12px 0;
    }
    .drawer-header, .drawer-menu {
        padding-left: 14px;
        padding-right: 14px;
    }
} 