/* ============================================================
   product.css — 商城产品详情页专属样式
   依赖：variables.css, common.css
   ============================================================ */

.product-main-section {
    padding-top: 15px;
    padding-bottom: 20px;
    background-color: #fff;
}

/* 面包屑导航 */
.breadcrumb-custom .breadcrumb {
    margin-bottom: 12px;
    background: transparent;
    padding: 0;
}

.breadcrumb-custom .breadcrumb-item {
    font-size: 13px;
    color: var(--color-text-muted);
}

.breadcrumb-custom .breadcrumb-item a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.breadcrumb-custom .breadcrumb-item a:hover {
    color: var(--color-primary);
}

.breadcrumb-custom .breadcrumb-item.active {
    color: var(--color-text-muted);
}

.breadcrumb-custom .breadcrumb-item+.breadcrumb-item::before {
    content: ">";
    color: var(--color-text-muted);
    font-size: 12px;
}

/* 商品标题 */
.product-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.3;
    margin-bottom: 16px;
    max-width: 100%;
}

/* 企业信息栏 */
.supplier-bar {
    background-color: var(--color-primary-light);
    border-radius: var(--radius-sm);
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.supplier-bar__left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.supplier-logo-wrapper {
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #eee;
}

.supplier-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.supplier-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.supplier-name {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text);
    text-decoration: underline;
}

.supplier-name:hover {
    color: var(--color-primary);
}

.supplier-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.badge-v-verified {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 13px;
}

.badge-v-at {
    font-size: 13px;
    font-weight: 400;
}

.supplier-country {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.supplier-country .flag-icon {
    width: 18px;
    height: auto;
}

@media (max-width: 768px) {
    .product-title {
        font-size: 20px;
    }

    .supplier-info {
        gap: 8px;
    }

    .supplier-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ============================================================
   相关产品与卡片通用效果
   ============================================================ */
.related-products-section {
    margin-top: 25px;
}

.scroll-nav-container {
    position: relative;
    padding: 0;
}

.scroll-nav-container .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    color: var(--color-text);
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.scroll-nav-container .nav-btn:hover {
    background: #fff;
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-50%) scale(1.1);
}

.scroll-nav-container .scroll-prev {
    left: -18px;
    /* 稍微悬浮在边缘 */
}

.scroll-nav-container .scroll-next {
    right: -18px;
}

.related-products-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
}

.related-products-scroll::-webkit-scrollbar {
    display: none;
}

.related-products-scroll .product-card {
    flex: 0 0 calc(25% - 12px);
    transition: var(--transition-base);
}

.related-products-scroll .product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ============================================================
   广告位模块
   ============================================================ */
.ad-module {
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.ad-module a {
    display: block;
}

.ad-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   供应商信息卡片 (Know your supplier)
   ============================================================ */
.supplier-info-card {
    background-color: #f5f5f5;
    border-radius: 12px;
    padding: 30px 24px 24px;
    margin-top: 25px;
}

/* 强制 section-title 在灰色背景上显示正常 */
.supplier-info-card .section-title {
    margin-bottom: 25px;
}

.supplier-info-card__inner {
    background-color: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.supplier-card-top {
    display: flex;
    gap: 18px;
    margin-bottom: 20px;
}

.supplier-card-logo {
    width: 64px;
    height: 64px;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #fff;
}

.supplier-card-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.supplier-card-meta {
    flex: 1;
}

.supplier-card-name {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
    display: block;
    text-decoration: none;
}

.supplier-card-subtitle {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.supplier-card-location {
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 6px;
}

.supplier-card-location i {
    font-size: 14px;
}

/* 概况标题（在白色块内） */
.overview-section-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 20px;
    padding: 0;
}

/* 3x2 栅格精化 */
.supplier-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px 15px;
}

.overview-item {
    display: flex;
    flex-direction: column;
}

.overview-label {
    font-size: 12px;
    /* 去掉颜色设置，使用默认颜色 */
    margin-bottom: 6px;
}

.overview-value {
    font-size: 16px;
    font-weight: 800;
    color: #111;
}

.supplier-card-actions {
    display: flex;
    gap: 15px;
}

/* 强制全胶囊按钮 */
.supplier-card-actions .btn {
    flex: 1;
    height: 44px;
    border-radius: 22px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-base);
}

.supplier-card-actions .btn-teal {
    background: var(--color-primary-grad);
    color: #fff;
    border: none;
}

.supplier-card-actions .btn-teal:hover {
    background: var(--color-primary-grad-hover);
}

.supplier-card-actions .btn-outline-teal {
    background: #fff;
    color: #333;
    border: 1px solid #ddd !important;
}

.supplier-card-actions .btn-outline-teal:hover {
    border-color: var(--color-primary) !important;
    color: var(--color-primary) !important;
}

@media (max-width: 991px) {
    .supplier-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .related-products-scroll .product-card {
        flex: 0 0 calc(33.333% - 10px);
    }

    .ad-text {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .related-products-scroll .product-card {
        flex: 0 0 calc(50% - 8px);
    }

    .ad-text {
        font-size: 18px;
    }
}

/* ============================================================
   商品展示区 (Gallery)
   ============================================================ */
.product-gallery {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    height: 480px;
    /* 固定高度确保对齐 */
}

/* 缩略图侧边栏 */
.gallery-thumbs-wrapper {
    width: 80px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.gallery-thumbs {
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: none;
    /* Firefox */
}

.gallery-thumbs::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.gallery-thumb {
    width: 100%;
    aspect-ratio: 1/1;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-base);
    background: #f8f9fa;
}

.gallery-thumb:hover {
    border-color: var(--color-primary-light);
    transform: scale(1.02);
}

.gallery-thumb.active {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.gallery-thumb .thumb-img-box {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* 主展示区 */
.gallery-main {
    flex-grow: 1;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid #eee;
}

.main-display-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.main-media-item {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.product-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8f9fa;
}

.main-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 导航按钮 */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-base);
    color: #333;
}

.gallery-nav-btn:hover {
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    color: var(--color-primary);
}

.gallery-nav-btn.prev {
    left: 15px;
}

.gallery-nav-btn.next {
    right: 15px;
}

/* 悬浮工具栏 */
.gallery-tools {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.tool-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #666;
    transition: var(--transition-base);
}

.tool-btn:hover {
    color: var(--color-primary);
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
    background: var(--color-primary-light);
}

@media (max-width: 991px) {
    .product-gallery {
        height: auto;
        flex-direction: column-reverse;
    }

    .gallery-thumbs-wrapper {
        width: 100%;
        height: 80px;
    }

    .gallery-thumbs {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .gallery-thumb {
        width: 80px;
        flex-shrink: 0;
    }
}

/* ============================================================
   右侧订单卡片 (Order Side Card)
   ============================================================ */
.order-side-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    position: sticky;
    top: 20px;
}

.order-badges {
    gap: 8px;
    margin-bottom: 15px;
}

.badge-customizable {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: var(--font-size-xs);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.02em;
}
.badge-customizable::before {
    content: "✓";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 9px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.badge-rock-bottom {
    background: var(--color-accent-grad);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-size: var(--font-size-xs);
    padding: 5px 14px;
    font-weight: var(--font-weight-semibold);
    box-shadow: 0 4px 10px rgba(255, 106, 0, 0.25);
    display: inline-block;
    margin-top: 6px;
    letter-spacing: 0.01em;
}

/* 价格梯度 */
.price-tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.price-tier-item {
    text-align: left;
}

.price-tier-value {
    display: block;
    font-size: 28px;
    font-weight: var(--font-weight-bold);
    color: var(--color-accent);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.price-tier-range {
    display: block;
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

.price-tier-label {
    display: block;
    font-size: 12px;
    color: #999;
}

.price-tier-discount {
    display: block;
    font-size: 12px;
    color: #999;
}

/* 价格有效期声明 */
.price-validity-bar {
    background: #f5f5f5;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 20px;
}

/* 定制能力列表 */
.customization-section {
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
    margin-bottom: 20px;
}

.customization-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.customization-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.customization-list li {
    font-size: 14px;
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.customization-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ccc;
}

/* 数量选择与统计 */
.order-controls {
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
    margin-bottom: 20px;
}

.control-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.control-label {
    font-size: 14px;
    color: #333;
}

.control-label-quantity {
    width: 100px;
}

.qty-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    width: 120px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #fff;
    font-size: 18px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: #f8f9fa;
}

.qty-input {
    flex: 1;
    width: 40px;
    height: 32px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 14px;
    outline: none;
}

.info-text {
    font-size: 13px;
}

.subtotal-row {
    border-top: 1px dotted #eee;
    padding-top: 12px;
    margin-top: 12px;
}

.subtotal-value {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

/* 分享 */
.share-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.share-label {
    font-size: 14px;
    color: #666;
}

.share-icons {
    display: flex;
    gap: 8px;
}

.share-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.share-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.share-icon .active-icon {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
}

.share-icon:hover .default-icon {
    opacity: 0;
}

.share-icon:hover .active-icon {
    opacity: 1;
}

/* 操作按钮 */
.order-actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-bottom: 25px;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.btn-start-order {
    flex: 1;
    background: var(--color-accent);
    color: #fff;
    border: none;
    padding: 13px 18px;
    border-radius: var(--radius-pill);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    transition: var(--transition-base);
    white-space: nowrap;
    text-align: center;
    box-shadow: var(--shadow-accent);
    letter-spacing: 0.01em;
}

.btn-start-order:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(255, 106, 0, 0.4);
    color: #fff;
}

.btn-start-order:active {
    transform: translateY(0);
}

.btn-contact-supplier {
    flex: 1;
    background: #fff;
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
    padding: 12px 18px;
    border-radius: var(--radius-pill);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    transition: var(--transition-base);
    white-space: nowrap;
    text-align: center;
}

.btn-contact-supplier:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-light);
    transform: translateY(-2px);
}

/* 订单保障 */
.guarantee-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    cursor: pointer;
}

.guarantee-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.guarantee-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.guarantee-icon {
    font-size: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.guarantee-content h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #333;
}

.payment-methods {
    display: flex;
    gap: 8px;
    margin-top: 5px;
}

.payment-methods img {
    height: 14px;
    width: auto;
}

.guarantee-content p {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

.guarantee-footer-text {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
    line-height: 1.4;
}

.trade-assurance-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 991px) {
    .order-side-card {
        margin-top: 20px;
        position: static;
    }
}

/* ============================================================
   产品详情 / 规格相关 (Product Details / Specs)
   ============================================================ */
.product-details-container {
    margin-top: 30px;
}

/* 粘性导航栏 */
.product-tabs-nav {
    position: sticky;
    top: -1px;
    /* 紧贴顶部，配合JS处理阴影或背景 */
    background: #fff;
    z-index: 100;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    display: flex;
    gap: 40px;
}

.product-tabs-nav .tab-item {
    padding: 15px 0;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
}

.product-tabs-nav .tab-item:hover {
    color: var(--color-primary);
}

.product-tabs-nav .tab-item.active {
    color: var(--color-primary);
}

.product-tabs-nav .tab-item.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-primary);
}

/* 内容板块 */
.product-content-section {
    padding-top: 20px;
    margin-bottom: 40px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

/* 详情主体包装器 (用于整区折叠) */
.details-body-wrapper {
    position: relative;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.details-body-wrapper.collapsed {
    max-height: 600px;
    /* 增加高度以容纳表格和部分文字 */
}

.details-body-wrapper.collapsed::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.9));
    pointer-events: none;
}

/* 显示更多/更少按钮 */
.toggle-details-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), #fff);
    border: none;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: -20px;
    position: relative;
    z-index: 5;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    transition: var(--transition-base);
}

.toggle-details-btn:hover {
    color: var(--color-primary);
    background: #fdfdfd;
}

.toggle-details-btn i {
    margin-left: 8px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-details-btn.expanded i {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .product-tabs-nav {
        gap: 20px;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }

    .spec-table tr td:first-child {
        width: 120px;
    }
}

/* 用户评价模块 (Ratings & Reviews) */
#user-evaluation .section-title {
    display: block;
    width: 100%;
    font-weight: 400;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.evaluation-summary {
    display: flex;
    align-items: center;
    padding: 0;
    border: none;
    border-radius: 0;
    margin-bottom: 40px;
    gap: 40px;
}

.summary-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.rating-big-num {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.rating-stars-info {
    display: flex;
    flex-direction: column;
}

.stars-row {
    color: #e62e2e;
    /* 红色星星 */
    font-size: 20px;
    margin-bottom: 5px;
}

.stars-row .bi-star-fill {
    margin-right: 2px;
}

.satisfaction-text {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-left: 5px;
}

.reviews-count-info {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

.verified-link {
    color: var(--color-primary);
    text-decoration: none;
}

.summary-right {
    flex: 1;
    max-width: 440px;
    background-color: #f7f8f9;
    padding: 15px 25px;
    border-radius: 4px;
}

.service-rating-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.service-rating-item:last-child {
    margin-bottom: 0;
}

.service-label {
    width: 140px;
    font-size: 13px;
    color: inherit;
}

.rating-progress-bar {
    flex: 1;
    height: 4px;
    background-color: #f5f5f5;
    border-radius: 2px;
    margin: 0 15px;
    position: relative;
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background-color: #e62e2e;
    border-radius: 2px;
}

.service-val {
    font-size: 13px;
    color: #333;
    font-weight: 600;
    width: 30px;
    text-align: right;
}

/* 评价过滤页签 */
.evaluation-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.filter-tab {
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    color: #333;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-tab:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.filter-tab.active {
    background-color: #fff;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* 评价列表 */
.review-item {
    display: flex;
    padding: 30px 0;
    border-top: 1px solid #f0f0f0;
}

.review-user-info {
    width: 200px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #f0f0f0;
    object-fit: cover;
}

.user-detail-meta {
    flex: 1;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.user-location {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.verified-badge {
    font-size: 12px;
    color: var(--color-primary);
}

.review-content-main {
    flex: 1;
    padding-left: 20px;
}

.review-header-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.review-stars {
    color: #e62e2e;
    font-size: 16px;
}

.review-date {
    font-size: 13px;
    color: #999;
}

.review-text {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-clamp: 2;
}

/* 评价中的产品卡片 */
.review-product-snippet {
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: #f7f8f9;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s;
}

.review-product-snippet:hover {
    background-color: #f0f1f2;
}

.snippet-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 2px;
    margin-right: 15px;
}

.snippet-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.snippet-name {
    font-size: 13px;
    color: #333;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 1;
}

.snippet-price {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.snippet-link-text {
    font-size: 13px;
    font-weight: 400;
    color: #333;
    margin-left: 20px;
}

.snippet-link-text i {
    font-size: 12px;
    margin-left: 5px;
}

.show-all-reviews-btn {
    display: block;
    width: 240px;
    margin: 40px auto 0;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
}


.show-all-reviews-btn:hover,
.show-all-reviews-btn:active:hover {
    border-color: var(--color-primary) !important;
    color: var(--color-primary) !important;
    background-color: #fff !important;
    box-shadow: none !important;
    outline: none !important;
}

/* 评价内的分页 */
#reviews-pagination {
    margin-top: 30px;
    display: none;
    /* 初始隐藏，点击 Show All 后显示 */
}

@media (max-width: 768px) {
    .evaluation-summary {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .review-item {
        flex-direction: column;
    }

    .review-user-info {
        width: 100%;
        margin-bottom: 15px;
    }

    .review-content-main {
        padding-left: 0;
    }

    .snippet-link-text {
        display: none;
    }
}

/* ============================================================
   产品展示模块 (Product Display)
   ============================================================ */
.video-display-section {
    margin-top: 40px !important;
}

.video-display-container {
    position: relative;
    width: 100%;
    /* 16:9 比例 */
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.display-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    z-index: 2;
    transition: all 0.3s ease;
}

.video-display-container:hover .video-play-hint {
    color: #fff;
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.8;
}

/* 移动端适配时隐藏播放提示（如果 controls 已提供足够反馈） */
@media (max-width: 768px) {
    .video-play-hint {
        font-size: 60px;
    }
}

/* ============================================================
   客户反馈模块 (Customer Feedback)
   ============================================================ */
.feedback-display-section {
    margin-top: 40px !important;
}

.feedback-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.feedback-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.feedback-item:hover {
    transform: translateY(-5px);
}

.feedback-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4 / 5;
}

@media (max-width: 991px) {
    .feedback-grid {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .feedback-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .feedback-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   常见问题模块 (Frequently Asked Questions)
   ============================================================ */
.faq-section {
    margin-top: 40px !important;
}

.faq-header {
    display: flex;
    align-items: center;
    background-color: #e6f7f7;
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.faq-icon-box {
    width: 32px;
    height: 32px;
    background-color: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-right: 15px;
    font-size: 20px;
}

.faq-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
}

.faq-item {
    border: 1px solid #f0f0f0;
    margin-bottom: 15px;
    border-radius: 4px;
    background: #fff;
}

.faq-question {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-toggle-icon {
    font-size: 24px;
    color: #333;
    margin-right: 15px;
    width: 24px;
    display: flex;
    justify-content: center;
}

.faq-q-label {
    font-weight: 700;
    font-size: 16px;
    margin-right: 10px;
    color: #333;
}

.faq-q-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

.faq-answer {
    padding: 0 20px 20px 59px;
    display: none;
    line-height: 1.6;
    color: #666;
    font-size: 15px;
}

.faq-answer.show {
    display: block;
}

.faq-a-label {
    font-weight: 700;
    margin-right: 10px;
    color: #333;
}

@media (max-width: 768px) {
    .faq-title {
        font-size: 18px;
    }

    .faq-answer {
        padding-left: 20px;
    }
}

/* ============================================================
   店铺推荐全宽版 (Shop Recommendation Full Width)
   ============================================================ */
.shop-recommendation-fullwidth {
    background-color: #f9f9f9;
}

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.recommendation-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.recommendation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f0f0f0;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body-custom {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title-custom {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-clamp: 2;
    height: 2.8em;
    /* 确保高度一致 */
}

.card-price-custom {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.card-moq-custom {
    font-size: 13px;
    color: #999;
}

.btn-chat-now {
    display: inline-block;
    background-color: var(--color-primary);
    color: #fff;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-chat-now:hover {
    background-color: #008a8c;
    color: #fff;
}

@media (max-width: 1199px) {
    .recommendation-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    .recommendation-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .recommendation-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .recommendation-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   产品推荐模块样式修正 (Shop Recommendation Refinement)
   ============================================================ */
.shop-recommendation-fullwidth {
    background-color: #fff !important;
}

.shop-recommendation-fullwidth .recommendation-card {
    background: #f5f7fa !important;
    /* 使用项目统一的 gray-bg 颜色 */
    border: none;
    box-shadow: none;
    /* 按照 6.png，灰色背景卡片通常不带重阴影 */
}

.shop-recommendation-fullwidth .recommendation-card:hover {
    background: #efefef !important;
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.shop-recommendation-fullwidth .card-img-wrapper {
    background: #fff;
    /* 图片容器保持白色或透明，视图片而定 */
}

.shop-recommendation-fullwidth .btn-chat-now {
    background-color: var(--color-primary);
    border: none;
}

.recommendation-spacer {
    width: 100%;
}

/* ============================================================
   产品推荐模块交互优化 (Shop Recommendation Interaction)
   ============================================================ */
.recommendation-card a:hover .card-title-custom {
    color: var(--color-primary) !important;
    text-decoration: none;
}

.recommendation-card a:hover {
    text-decoration: none;
}

/* ============================================================
   评论区图片样式 (Review Photos)
   ============================================================ */
.review-photos {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.review-photo-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.review-photo-img:hover {
    transform: scale(1.05);
    border-color: var(--color-primary);
}