﻿* {
    box-sizing: border-box;
}

body {
    background-color: #f7f8fa;
    padding-top: 60px; /* 给固定顶栏留出空间 */
}
/* 1:1 商品图容器核心样式，无白边不拉伸 */
.product-ratio-box {
    width: 100%;
    padding-top: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #eee;
    border: 1px solid transparent;
}

    .product-ratio-box img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* cover：填满容器、居中裁切、无白边，电商商品图最优方案 */
        object-fit: cover;
    }
/* 卡片美化 */
.product-card {
    height: 100%;
    transition: all 0.25s ease;
    border-radius: 10px;
    overflow: hidden;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }
/* 价格样式 */
.price-sale {
    font-size: 1.25rem;
    color: #e53935;
    font-weight: 700;
}

.price-original {
    font-size: 0.85rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}

.sales-text {
    font-size: 0.8rem;
    color: #666;
    margin-top: 2px;
}
/* 顶部导航栏美化 - 改为固定定位 */
.top-nav {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
/* 导航菜单样式 */
.nav-menu {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.5rem 0;
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    z-index: 998;
}

    .nav-menu a {
        color: #334155;
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        border-radius: 6px;
        transition: all 0.2s ease;
    }

        .nav-menu a:hover {
            background: #eff6ff;
            color: #2563eb;
            text-decoration: none;
        }

        .nav-menu a.active {
            background: #2563eb;
            color: #fff;
        }

.section-title-wrap {
    border-left: 5px solid #2563eb;
    padding-left: 12px;
    margin-bottom: 1.5rem;
}
/* 客服模块样式 - 优化版 */
.service-box {
    background: linear-gradient(135deg, #409eff, #1989fa);
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 4px 20px rgba(64, 158, 255, 0.3);
    overflow: hidden;
    position: relative;
}
