.review-section {
    width: 100%;
}

.review-section__head {
    text-align: center;
    margin-bottom: 24px;
}

.review-section__head .block-heading {
    margin: 0 0 6px;
}

.review-section__head .subheading {
    margin: 0;
    opacity: 0.75;
}

/* Carousel */
.review-section__carousel {
    display: block;
    position: relative;
}

.review-section__track {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.review-section__track::-webkit-scrollbar {
    display: none;
}

.review-section__cell {
    flex: 0 0 calc((100% - (var(--review-columns) - 1) * 20px) / var(--review-columns));
    scroll-snap-align: start;
}

/* Card */
.review-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 12px rgba(104, 150, 170, 0.12);
}

.review-card--linked {
    cursor: pointer;
}

.review-card__link {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    font-size: 0;
}

.review-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.review-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.review-card__body {
    display: flex;
    flex-direction: column;
    padding: 12px 14px 14px;
    flex: 1 1 auto;
}

/* Stars */
.review-card__stars {
    margin-bottom: 0px;
}

.review-card__stars-track {
    position: relative;
    display: inline-flex;
    line-height: 0;
}

.review-card__stars-empty {
    display: flex;
    gap: 2px;
    color: #e0e0e0;
}

.review-card__stars-fill {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    display: flex;
    gap: 2px;
    width: var(--rating-pct, 100%);
    overflow: hidden;
    color: var(--review-star-color, #f5a623);
}

.review-card__star {
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
}

/* Title / content / author */
.review-card__title {
    margin: 0 0 0px;
    color: var(--review-title-color, #e7749b);
}

.review-card__content {
    margin: 0;
    color: rgb(var(--color-foreground, 41 37 44) / 85%);
    word-break: break-word;
}

.review-card__content p {
    margin: 0;
}

.review-card__content--mobile {
    display: none;
}

.review-card__author {
    margin-top: 10px;
    text-align: right;
    color: rgb(var(--color-foreground, 41 37 44) / 55%);
}

/* Quick add (加购) */
.review-card__quick-add-modal {
    position: static;
}

.review-card__quick-add {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    cursor: pointer;
    list-style: none;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease;
    opacity: .7;
}

.review-card__quick-add::-webkit-details-marker {
    display: none;
}

.review-card__quick-add:hover {
    transform: scale(1.08);
}

.review-card__quick-add svg {
    width: 17px;
    height: 17px;
    color: #29252c;
}

.review-card__quick-add.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.review-card__quick-add .icon-loading {
    display: none;
}

.review-card__quick-add.loading .icon-quick-add {
    display: none;
}

.review-card__quick-add.loading .icon-loading {
    display: block;
}

/* Quick-add corner positions (set on track) */
.review--qa-top-left .review-card__quick-add {
    top: 8px;
    left: 8px;
}

.review--qa-top-right .review-card__quick-add {
    top: 8px;
    right: 8px;
}

.review--qa-bottom-left .review-card__quick-add {
    bottom: 8px;
    left: 8px;
}

.review--qa-bottom-right .review-card__quick-add {
    bottom: 8px;
    right: 8px;
}

/* Dots */
.review-section__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.review-section__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.review-section__dot.is-active {
    background: var(--review-title-color, #e7749b);
    transform: scale(1.2);
}

/* More button (对标产品排行榜 more-button) */
.review-section__more {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.review-section__more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 400px;
    padding: 12px 24px;
    background-color: rgb(var(--color-button-background));
    color: rgb(var(--color-button-text));
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

.review-section__more-btn:hover {
    background-color: rgb(var(--color-button-background));
    color: rgb(var(--color-button-text));
    opacity: 0.9;
    text-decoration: none;
}

.review-section__more-arrow {
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    .review-section__more {
        margin-top: 20px;
    }

    .review-section__more-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Mobile: two cards stacked = one slide (horizontal card layout) */
@media (max-width: 768px) {
    .review-section__track {
        display: grid;
        grid-auto-flow: column;
        grid-template-rows: repeat(2, auto);
        grid-auto-columns: 100%;
        gap: 14px;
    }

    .review-section__cell {
        flex: none;
        scroll-snap-align: start;
    }

    .review-card {
        flex-direction: row;
        align-items: flex-start;
    }

    .review-card__media {
        flex: 0 0 140px;
        width: 140px;
        height: auto;
        align-self: flex-start;
        aspect-ratio: 1 / 1;
    }

    .review-card__body {
        flex: 1 1 auto;
        padding: 10px 12px;
        min-width: 0;
    }

    .review-card__content--pc {
        display: none;
    }

    .review-card__content--mobile {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .review-card__quick-add {

        width: 32px;
        height: 32px;

    }
}