/* ========== 买家评价 —— 极简电商风 ========== */
.gr-review-section {
    margin-top: 16px;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    color: #1a1a1a;
    line-height: 1.5;
}

/* ---- 标题栏 ---- */
.gr-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.gr-review-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}
.gr-review-count {
    font-weight: 700;
    margin-left: 4px;
}
.gr-review-rate {
    font-size: 13px;
    color: #999;
    white-space: nowrap;
}

/* ---- 评价列表 ---- */
.gr-review-list {
    display: flex;
    flex-direction: column;
}
.gr-review-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
}
.gr-review-item:first-child {
    padding-top: 0;
}
.gr-review-item:last-child {
    padding-bottom: 0;
}

/* ---- 头像 ---- */
.gr-review-avatar {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    flex-shrink: 0 !important;
    margin-top: 1px;
}

/* ---- 正文 ---- */
.gr-review-body {
    flex: 1;
    min-width: 0;
}
.gr-review-nickname {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    line-height: 1;
}
.gr-review-content-line {
    font-size: 14px;
    color: #1a1a1a;
    line-height: 1.7;
    word-break: break-word;
}
.gr-review-content-line::after {
    content: '';
    display: table;
    clear: both;
}
.gr-review-content {
    display: inline;
}
.gr-review-date {
    float: right;
    font-size: 12px;
    color: #bbb;
    margin-left: 8px;
    white-space: nowrap;
}

/* ---- 评价图片 ---- */
.gr-review-images {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: 10px;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.gr-review-images::-webkit-scrollbar {
    display: none;
}
.gr-review-img-item {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    flex-shrink: 0;
    scroll-snap-align: start;
}

/* ---- 移动端 ---- */
@media (max-width: 640px) {
    .gr-review-section {
        margin-left: -12px;
        margin-right: -12px;
        border-radius: 0;
        padding: 14px 12px;
        border-top: 8px solid #f5f5f5;
        margin-top: 0;
    }
    .gr-review-title {
        font-size: 15px;
    }
    .gr-review-content {
        font-size: 13px;
    }
}

/* ---- 更多评价 ---- */
.gr-more-wrap {
    text-align: center;
    padding: 12px 0 4px;
}
.gr-more-btn {
    display: inline-block;
    padding: 7px 24px;
    font-size: 13px;
    color: #666;
    background: #f7f7f7;
    border-radius: 16px;
    cursor: pointer;
    user-select: none;
    transition: background .2s;
}
.gr-more-btn:hover {
    background: #e8e8e8;
    color: #333;
}
.gr-more-btn .arrow {
    display: inline-block;
    margin-left: 4px;
    font-size: 11px;
    vertical-align: 1px;
}

/* ---- Toast 提示 ---- */
.gr-tip-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) scale(0.85);
    padding: 12px 28px;
    background: rgba(0,0,0,.78);
    color: #fff;
    font-size: 14px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    z-index: 99999;
    transition: opacity .3s, transform .3s;
}
.gr-tip-toast.show {
    opacity: 1;
    transform: translate(-50%,-50%) scale(1);
}

/* ---- 图片灯箱 ---- */
.gr-lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.88);
    justify-content: center;
    align-items: center;
}
.gr-lightbox.open {
    display: flex;
}
.gr-lightbox-close {
    position: absolute;
    top: 16px;
    right: 24px;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    z-index: 2;
    line-height: 1;
    opacity: .7;
    transition: opacity .2s;
}
.gr-lightbox-close:hover {
    opacity: 1;
}
.gr-lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    cursor: default;
    will-change: transform, opacity;
}
.gr-lightbox-prev,
.gr-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    padding: 16px 10px;
    z-index: 2;
    opacity: .5;
    transition: opacity .2s;
    display: none;
}
.gr-lightbox-prev:hover,
.gr-lightbox-next:hover {
    opacity: 1;
}
.gr-lightbox-prev { left: 4px; }
.gr-lightbox-next { right: 4px; }
.gr-lightbox-counter {
    display: none;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #ccc;
    font-size: 14px;
    z-index: 2;
}
.gr-lightbox.has-gallery .gr-lightbox-prev,
.gr-lightbox.has-gallery .gr-lightbox-next,
.gr-lightbox.has-gallery .gr-lightbox-counter {
    display: block;
}
