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

.category-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #333;
    color: white;
    padding: 20px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-size: 18px;  /* 增大字体大小 */
    font-weight: bold;  /* 加粗显示 */
}
/* 如果需要在手机端调整大小 */
@media screen and (max-width: 768px) {
    .category-button {
        font-size: 18px;  /* 手机端稍微小一点 */
    }
}
.category-menu {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 5px;
    margin-bottom: 10px;
    display: none;
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 300px;
    padding: 5px;
}

.category-menu::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 25px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

.category-menu.active {
    display: flex;
}

.category-item {
    padding: 8px 15px;
    color: #333;
    cursor: pointer;
    margin: 3px;
    border-radius: 3px;
    white-space: nowrap;
}

.category-item:hover {
    background: #f0f0f0;
}

.waterfall {
    column-count: 4;
    column-gap: 15px;
    padding: 15px;
}

@media (max-width: 1200px) {
    .waterfall {
        column-count: 3;
    }
}

@media (max-width: 800px) {
    .waterfall {
        column-count: 2;
    }
}

@media (max-width: 500px) {
    .waterfall {
        column-count: 1;
    }
}

.image-item {
    break-inside: avoid;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.image-number {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.image-item img {
    width: 100%;
    display: block;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.image-item:hover img {
    transform: scale(1.02);
}

.modal {
    display: none;
    position: fixed;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 2000;
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.product-info {
    margin-top: 15px;
}

.price-list {
    margin: 10px 0;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

/* 修改备案信息样式 */
.icp-info {
text-align: center;
    padding: 15px 0;
    background: #ffffff;
    width: 100%;
    position: fixed;
    bottom: -100px;
    left: 0;
    transition: bottom 0.3s ease;
    z-index: 999;
}

.icp-info.show {
    bottom: 0;
}

.icp-info a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;  /* 改为行内块级元素 */
    padding: 5px 10px;     /* 添加内边距 */
}

.icp-info a:hover {
    color: #333;
}

/* 添加移动端适配 */
@media screen and (max-width: 768px) {
    .icp-info {
        padding: 10px 0;  /* 移动端减小内边距 */
    }
    
    .icp-info a {
        font-size: 12px;  /* 移动端减小字体 */
        padding: 3px 8px; /* 移动端减小内边距 */
    }
}

/* 确保在移动端不会被分类按钮遮挡 */
@media screen and (max-width: 768px) {
    .category-button {
        bottom: 80px;  /* 调整分类按钮位置，避免遮挡备案号 */
    }
} 