﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "微软雅黑","Microsoft YaHei";
}

/* 红色主题背景 */
body {
    background: #b81c22;
    color: #333;
    line-height: 1.7;
    overflow-x: hidden;
}

/* 动画画布层级最低，不遮挡内容 */
#snowCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    position: relative;
    z-index: 2;
}

/* 面包屑导航 */
.breadcrumb {
    background: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

    .breadcrumb a {
        color: #b81c22;
        text-decoration: none;
    }

    .breadcrumb span {
        color: #999;
        margin: 0 5px;
    }

.header {
    text-align: center;
    padding: 20px 0 30px;
}

    .header h1 {
        font-size: 26px;
        margin-bottom: 10px;
        color: #fff;
    }

    .header p {
        color: #ffe6e8;
    }

/* 布局：电脑4列 / 平板3列 / 手机2列 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* 产品卡片 白色白底突出 */
.product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    }

/* 固定比例图片容器 杜绝变形 */
.img-box {
    width: 100%;
    height: 0;
    padding-top: 75%;
    position: relative;
    overflow: hidden;
}

    .img-box img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

.info {
    padding: 20px;
}

    .info h2 {
        font-size: 17px;
        margin-bottom: 8px;
        line-height: 1.4;
    }

    .info p {
        font-size: 14px;
        color: #666;
        margin-bottom: 15px;
        line-height: 1.5;
    }

    .info a {
        display: inline-block;
        padding: 7px 14px;
        background: #b81c22;
        color: #fff;
        border-radius: 6px;
        font-size: 14px;
        text-decoration: none;
    }

.share {
    text-align: center;
    margin: 40px 0;
}

    .share a {
        margin: 0 10px;
        color: #fff;
        text-decoration: none;
        font-size: 15px;
    }

/* 底部备案全局样式 */
.footer {
    background: #fff;
    padding: 25px 15px;
    text-align: center;
    font-size: 14px;
    color: #666;
    border-top: 1px solid #f0f0f0;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

    .footer a {
        color: #666;
        text-decoration: none;
    }
