﻿﻿body {
    background-color: #f7f8fa;
}
/* 1:1 图片容器，绝对不会变形 */
.img-1x1 {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
    border: 3px solid transparent;
}

    .img-1x1 img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* 详情图 1:1 图片容器，绝对不会变形 */
.img-xq-1x1 {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: #f0f0f0;
}

    .img-xq-1x1 img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
/* 缩略图选中样式 - 增强移动端点击体验 */
.thumb {
    cursor: pointer;
    border: 3px solid transparent;
    /* 移动端点击去除高亮 */
    -webkit-tap-highlight-color: transparent;
}

    .thumb.active {
        border-color: #3273dc;
    }
/* 顶部导航 */
.top-bar {
    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);
}

.top-size
{
    height:60px;
}
/* 颜色选项样式 - 增强移动端点击体验 */
.spec-item {
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    min-width: 130px;
    text-align: center;
    /* 移动端点击去除高亮 */
    -webkit-tap-highlight-color: transparent;
    /* 增加点击反馈 */
    transition: all 0.2s ease;
}

    .spec-item.active {
        border-color: #3273dc;
        background: #eef4fc;
        color: #3273dc;
    }

    /* 移动端点击按压效果 */
    .spec-item:active {
        transform: scale(0.98);
    }

.color-price {
    font-size: 0.85rem;
    color: #e53935;
    margin-top: 4px;
    display: block;
}
/* 参数表格样式区分名称和值 */
.table td.param-name {
    background-color: #f0f2f5;
    font-weight: bold;
}
/* 详情图片消除上下间距，无缝拼接 */
.detail-img-wrap .img-1x1 {
    border-radius: 0;
    margin-bottom: 0 !important;
}

    .detail-img-wrap .img-1x1:first-child {
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
    }

    .detail-img-wrap .img-1x1:last-child {
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
    }
