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

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

header {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 1rem;
    text-align: center;
}

header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1rem;
    color: #ccc;
}

.section-title {
    padding: 1rem;
    background-color: #ecf0f1;
    text-align: center;
}

.section-title h2 {
    font-size: 1.5rem;
    color: #2c3e50;
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem;
    gap: 1rem;
}

.product {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    width: 300px;
    transition: transform 0.3s ease;
}

.product:hover {
    transform: translateY(-5px);
}

.product h2 {
    font-size: 1.2rem;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.product ul {
    margin: 1rem 0;
    padding-left: 1.2rem;
    list-style-type: disc;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e74c3c;
}

.note {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1rem;
}

.buy-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.buy-btn:hover {
    background-color: #2980b9;
}

.buy-btn.sold-out {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
    pointer-events: none;
}

footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .product-list {
        flex-direction: column;
        align-items: center;
    }

    .product {
        width: 90%;
    }
}