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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    background: transparent;
    color: #333;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* 内容区域 */
.content {
    width: 90%;
    max-width: 800px;
    margin: 2rem auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.product {
    flex: 0 0 25%;
    text-align: left;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    justify-content: flex-start;
    min-height: 280px;
}

.product:hover {
    border: 1px solid #ccc;
    transform: translateY(-5px);
}

.product-image {
    width: 50%;
    height: auto;
    margin: 15px 0 10px 0;
    transition: transform 0.3s ease;
    display: block;
    object-fit: contain;
    max-height: 120px;
    min-height: 120px;
    object-position: center;
}

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

.product-thumbnails {
    display: flex;
    justify-content: center;
    margin: 5px 0;
    gap: 10px;
    width: 100%;
}

.product-thumbnails img {
    width: 40px;
    height: 30px;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.product-thumbnails img:nth-child(1):hover {
    outline: 2px solid transparent;
    border-top: 2px solid #ff6b6b;
    border-bottom: 2px solid #ffd93d;
    border-left: 2px dashed #ff6b6b;
    border-right: 2px dashed #ffd93d;
}

.product-thumbnails img:nth-child(2):hover {
    outline: 2px solid transparent;
    border-top: 2px solid #4ecdc4;
    border-bottom: 2px solid #45b7d1;
    border-left: 2px dashed #4ecdc4;
    border-right: 2px dashed #45b7d1;
}

.product-thumbnails img:nth-child(3):hover {
    outline: 2px solid transparent;
    border-top: 2px solid #96e6a1;
    border-bottom: 2px solid #6454f0;
    border-left: 2px dashed #96e6a1;
    border-right: 2px dashed #6454f0;
}

.product-thumbnails img:nth-child(4):hover {
    outline: 2px solid transparent;
    border-top: 2px solid #ff758c;
    border-bottom: 2px solid #ff7eb3;
    border-left: 2px dashed #ff758c;
    border-right: 2px dashed #ff7eb3;
}

.text-container {
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    margin-top: 5px;
}

.product-price {
    color: red;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
    text-align: left;
    margin-left: 5px;
    width: 100%;
}

.product-price::first-letter {
    font-size: 14px;
    vertical-align: baseline;
}

.product-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    text-align: left;
    position: relative;
    float: left;
    width: 100%;
    text-decoration: none;
    margin-left: 5px;
}

.product-name::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: blue;
    transition: width 0.3s ease;
}

.product-name:hover::after {
    width: 100%;
}

.product-description {
    font-size: 12px;
    color: #666;
    text-align: left;
    width: 100%;
    margin-left: 5px;
    position: relative;
}

.product-description::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: green;
    transition: width 0.3s ease;
}

.product-description:hover::after {
    width: 100%;
}

/* 响应式设计 */
@media screen and (max-width: 1200px) {
    .container {
        max-width: 80%;
    }
    
    .product {
        flex: 0 0 33.33%;
    }
}

@media screen and (max-width: 992px) {
    .product {
        flex: 0 0 50%;
    }
}

/* 优化移动端布局 */
@media screen and (max-width: 768px) {
    .content {
        margin-top: 60px;
        padding: 1.5rem;
    }

    .product {
        flex: 0 0 50%;
        min-height: 250px;
    }

    .product-image {
        max-height: 100px;
        min-height: 100px;
    }
}

@media screen and (max-width: 480px) {
    .content {
        margin-top: 50px;
        padding: 1rem;
    }

    .product {
        flex: 0 0 100%;
        min-height: 220px;
    }

    .product-image {
        max-height: 80px;
        min-height: 80px;
    }

    .product-price {
        font-size: 18px;
    }

    .product-name {
        font-size: 13px;
    }

    .product-description {
        font-size: 11px;
    }
}