/* 延边批发网 - 主样式 */
:root {
    --primary-color: #e60012;
    --secondary-color: #2c3e50;
    --accent-color: #f39c12;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
    padding-top: 50px;
}

/* Logo 样式 */
.logo {
    font-family: 'Microsoft YaHei', sans-serif;
    font-size: 48px;
    color: var(--primary-color);
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.slogan {
    font-size: 16px;
    color: #666;
    margin-top: -5px;
}

/* 联系信息栏 */
.contact-bar {
    z-index: 1030;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-bar a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* 商品卡片 */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
}

.product-image-container {
    overflow: hidden;
}

.product-image-container:hover .image-overlay {
    opacity: 0.3 !important;
}

.product-image {
    transition: transform 0.3s;
}

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

.product-image-placeholder {
    height: 200px;
    color: #999;
}

.price {
    font-size: 1.5rem;
}

.buy-btn {
    transition: all 0.3s;
}

.buy-btn:hover {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    transform: scale(1.05);
}

/* 模态框样式 */
.modal-content {
    border-radius: 10px;
    overflow: hidden;
}

#modalImage {
    max-height: 70vh;
    object-fit: contain;
}

/* 返回顶部按钮 */
#scrollTopBtn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

#scrollTopBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .logo {
        font-size: 36px;
    }
    
    .contact-bar .container {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-bar .contact-info {
        margin-bottom: 5px;
    }
    
    .product-image {
        height: 180px;
    }
}

/* 商品卡片动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease-out;
}