/* 商品详情页独立CSS - 原主题hyper-sm-last版本 */
/* 面包屑导航样式 */
.tutorial-center-link {
    color: #5b8ff9;
    font-size: 1.125rem;
    font-weight: 500;
    text-decoration: none;
}
.tutorial-center-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}
.breadcrumb-arrow {
    color: #6c757d;
    font-size: 1.125rem;
    margin: 0 8px;
}
.page-title-box {
    flex-wrap: nowrap !important;
    overflow: hidden;
}
.page-title-box .page-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: #333;
    margin: 0;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 80px); 
}

/* 推荐区块基础样式 */
.recommend-sidebar-section { margin-top: 25px; padding-top: 20px; border-top: 1px solid #f0f2f5; }
.recommend-title { font-size: 15px; font-weight: bold; margin-bottom: 15px; color: #333; display: flex; align-items: center; }
.recommend-title i { color: #fa5c7c; margin-right: 8px; }
.recommend-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.recommend-card { background: #fff; border-radius: 8px; border: 1px solid #f0f0f0; padding: 8px; text-decoration: none !important; display: flex; flex-direction: column; }
.recommend-card:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); border-color: #fa5c7c; }
.recommend-img-box { width: 100%; height: 90px; display: flex; align-items: center; justify-content: center; background: #fdfdfd; border-radius: 4px; overflow: hidden; }
.recommend-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.recommend-name { font-size: 12px; color: #444; margin-top: 8px; line-height: 1.4; height: 34px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.recommend-price { color: #fa5c7c; font-weight: bold; margin-top: 5px; font-size: 13px; }

/* PC/移动端推荐显示切换 */
.pc-recommend { display: block; }
.mobile-recommend { display: none; }
@media (max-width: 991px) {
    .pc-recommend { display: none !important; }
    .mobile-recommend { display: block !important; margin-top: 20px; }
    .mobile-recommend .recommend-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
    .mobile-recommend .recommend-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 价格区域样式 */
.price-group {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    background: #fcfcfd;
    border: 1px solid #f0f0f5;
    border-radius: 12px;
    padding: 14px 16px !important;
    margin: 18px 0 !important;
    position: static !important;
}
.product-main-img {
    width: 72px !important;
    height: 72px !important;
    max-width: 72px !important;
    max-height: 72px !important;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
    position: static !important;
    transform: none !important;
    margin: 0 !important;
}
.price-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.price-box .buy-price {
    color: #fa5c7c;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
}
.price-box .original-price {
    font-size: 0.85rem;
    color: #98a6ad;
    margin-top: 3px;
}

/* 支付方式样式 */
.pay-type {
    white-space: nowrap !important;
    font-size: 14px;
    padding: 10px 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .tutorial-center-link,
    .breadcrumb-arrow,
    .page-title-box .page-title {
        font-size: 0.8rem;
    }
    .breadcrumb-arrow {
        margin: 0 4px;
    }
    .page-title-box .page-title {
        max-width: calc(100% - 60px);
    }
}
@media (max-width: 576px) {
    .price-group {
        padding: 10px 12px !important;
        gap: 12px !important;
        margin: 14px 0 !important;
    }
    .product-main-img {
        width: 58px !important;
        height: 58px !important;
        max-width: 58px !important;
        max-height: 58px !important;
    }
    .price-box .buy-price {
        font-size: 1.35rem;
    }
    .pay-type {
        font-size: 12px !important;
        padding: 8px 4px !important;
    }
}
