.content .category1 {
    padding: 20px;
    background-color: #f9f9f9;
}

.category-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.content {
    display: flex;
    flex-direction: column;
    /*gap: 60px; !* 增加分类之间的间隙，稍微大一些 *!*/
    /*padding-bottom: 120px; !* 与底部保持更多距离 *!*/
    /* margin: 0 20px; 增加左右边距，防止内容紧贴屏幕边缘 */
}

.category1,
.category2,
.category3,
.category4,
.category5 {
    background-color: #f9f9f9; /* 轻微的背景色区分不同分类 */
    padding: 30px;
    border-radius: 15px; /* 圆角 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); /* 轻微阴影 */
    transition: all 0.3s ease;
}

.category1:hover,
.category2:hover,
.category3:hover,
.category4:hover,
.category5:hover {
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.category-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}

.category-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
    font-weight: bold;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #4CAF50;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.category-item img {
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.category-item:hover img {
    transform: scale(1.05);
}

.category-item h3 {
    margin: 10px 0;
    font-size: 16px;
    color: #333;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-item .price {
    font-size: 18px;
    color: #e44d26;
    font-weight: bold;
    margin: 10px 0;
}

.category-item .add-to-cart {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    margin-top: auto;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    width: 100%;
}

.category-item .add-to-cart:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

@media (max-width: 1200px) {
    .category-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .category-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .category-container {
        grid-template-columns: 1fr;
    }
}
}

.category-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.category-item p {
    margin-top: 10px;
    font-size: 16px;
    color: #666;
}
/* 添加消息提示样式 */
.message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4CAF50;
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    z-index: 1000;
    animation: fadeInOut 3s ease-in-out;
}
a{
    text-decoration: none;
}