
body{
    background-color: #f2f2f2;
}
/* ========== 主容器 ========== */
.configurator {
    width: 100%;
    padding: 0px 0px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.configurator .configurator__container {
    width: 100%;
}

/* ========== 步骤切换 ========== */
.step {
    display: none;
}

.step.active {
    display: block !important;
    animation: fadeIn 0.3s ease;
}

.step .step__title {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    text-align: center;
    font-size: 36px;
    font-weight: 600;
    color: #111111;
    margin-bottom: 40px;
}

.step .step__content {
    background-color: #fff;
}
.step .step__content.result{
    padding-top: 60px;
    padding-bottom: 82px;
}

.step .step__actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding-top: 22px;
    padding-bottom: 22px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.mianCont{
        background: #ffffff;
        padding-top: 60px;
        padding-bottom: 82px;

}
/* ========== 按钮 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    column-gap: 10px;
    width: 200px;
    height: 56px;
    border-radius: 30px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s ease;
    text-decoration: none;
}

.btn--primary {
    background-color: #002853;
    color: #ffffff;
}

.btn--primary:hover {
    opacity: 0.9;
}

.btn--outline {
    background-color: #ffffff;
    color: #002853;
    border: 1px solid #002853;
}

.btn--outline:hover {
    background-color: #f5f7fa;
}

/* ========== 场景选择卡片（Figma 精确规格） ========== */
.scenario-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    width: 95%;
    max-width: 1500px;
    margin: 0 auto;
}

.scenario-card {
    position: relative;
    width: 400px;
    height: 360px;
    border-radius: 16px;
    border: 1px solid #e1e0e0;
    background: #ffffff;
    overflow: hidden;
    cursor: pointer;
    transition: none;
}

.scenario-card.selected {
    background: #002853;
    border-color: #002853;
}

.scenario-card .scenario-card__img {
    width: 100%;
    height: calc(100% - 60px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scenario-card .scenario-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.scenario-card .scenario-card__check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% - 30px));
    width: 60px;
    height: 60px;
    background: rgba(0, 40, 83, 0.6);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: #002853;
    z-index: 2;
}

.scenario-card .scenario-card__check svg {
    width: 42px;
    height: 42px;
}

.scenario-card.selected .scenario-card__check {
    display: flex;
}

.scenario-card .scenario-card__label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #333333;
    z-index: 1;
}

.scenario-card.selected .scenario-card__label {
    color: #ffffff;
    background: transparent;
}

/* ========== 产品选择网格 ========== */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    /* max-width: 1500px; */
    margin: 0 auto;
    max-height: 582px;
    /* overflow-y: overlay; */
    overflow-y: auto;            /* 产生滚动条 */
    max-width: calc(1500px + 14px);
    padding-right: 6px;

}

.product-grid::-webkit-scrollbar {
  width: 8px;
}

.product-grid::-webkit-scrollbar-track {
  background: #F5F5F5;
}

.product-grid::-webkit-scrollbar-thumb {
  background: #B4B4B4;
  border-radius: 6px;
}

.product-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.4);
}

.product-card {
    width: 233px;
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.2s ease;
    position: relative;
}

.product-card:hover {
    opacity: 0.9;
}

.product-card .product-card__img {
    position: relative;
    width: 233px;
    height: 233px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .product-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card .product-card__check {
    position: absolute;
    bottom: 0;
    right: 0;
    width: fit-content;
    height: fit-content;
    display: none;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    z-index: 2;
}

.product-card .product-card__check svg {
    width: 40px;
    height: 40px;
}

.product-card .product-card__label {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    text-align: center;
    padding: 13px 0;
    font-size: 20px;
    font-weight: 500;
    color: #333333;
    line-height: 1;
}

.product-card.selected {
    border-color: #002853;
}

.product-card.selected .product-card__check {
    display: flex;
}

/* ========== 完成页面 ========== */
.result-layout {
    gap: 37px;
    max-width: calc(1500px + 14px);
    margin: 0 auto;

    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    display-radio: flex;
}
.result-layout > div{
    flex: 1;
    max-width: 100%;
    max-height: 100%;
}
.result-layout .result-section {
    flex: 0 0 600px;
}

.result-section .result-section__title {
    font-size: 20px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 20px;
}

.result-image {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.result-image img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.shop-section {
    flex: 1;
}

.shop-section .shop-section__title {
    font-size: 20px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 20px;
}

.shop-section .shop-section__grid {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    display-radio: flex;
    gap: 19px;
    width: 100%;
    max-height: 100%;
    /* height: 100%; */
    overflow-y: auto;            /* 产生滚动条 */
    padding-right: 6px;
}

.result-layout {
    align-items: stretch;
}

.shop-section {
    display: flex;
    flex-direction: column;
    min-height: 0;
    contain: size;
}


.shop-card {
    flex: 0 0 calc((100% / 3) - 13px);
    max-width: 100%;
    max-height: 100%;
    width: calc((100% / 3) - 13px);
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.shop-card:hover {
    opacity: 0.85;
}

.shop-card .shop-card__img {
    width: 100%;
    overflow: hidden;
}

.shop-card .shop-card__img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    aspect-ratio: 1/1;
}

.shop-card .shop-card__info {
    padding: 10px 0;
}

.shop-card .shop-card__model {
    font-size: 14px;
    font-weight: 600;
    color: #111111;
    margin-bottom: 4px;
}

.shop-card .shop-card__link {
    font-size: 12px;
    color: #002853;
    font-weight: 500;
}

.shop-card .shop-card__link:hover {
    text-decoration: underline;
}

/* ========== 响应式 ========== */
@media (max-width: 992px) {
    .shop-section {
        contain: none;
    }

    .shop-section .shop-section__grid {
        flex: none;
        overflow-y: visible;
    }


    .step .step__title {
        font-size: 28px;
    }

    .scenario-card {
        width: 320px;
        height: 300px;
    }

    .product-card {
        width: calc(33.333% - 14px);
        min-width: 0;
    }

    .product-card .product-card__img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .result-layout {
        flex-direction: column;
        gap: 30px;
    }

    .result-section {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 768px) {

    .step .step__title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .scenario-grid {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .scenario-card {
        width: 100%;
        max-width: 400px;
        height: 340px;
    }

    .product-card {
        width: calc(50% - 10px);
        min-width: 0;
    }

    .product-card .product-card__img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .product-card .product-card__label {
        font-size: 16px;
        padding: 10px 0;
    }

    .shop-card {
        width: 100%;
    }

    .step .step__actions {
        flex-direction: column;
        align-items: center;
    }

    .step .step__actions .btn {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .step .step__title {
        font-size: 20px;
    }

    .scenario-card {
        height: 280px;
    }

    .product-card {
        width: calc(50% - 10px);
        min-width: 0;
    }

    .product-card .product-card__img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .product-card .product-card__label {
        font-size: 14px;
        padding: 8px 0;
    }
}
