﻿============================================================ */
/* Page_Productdetail_Body 区：主内容（前缀 Page_Productdetail_Body_） */
/* ============================================================ */
.Page_Productdetail_Body_main {
    padding-top: calc(var(--topbar-height) + var(--top-safe) + 16px);
    padding-bottom: calc(var(--tabbar-height) + var(--bottom-safe) + var(--bar-height) + 16px);
    padding-left: 16px;
    padding-right: 16px;
}

/* ========== Body 区：商品主图轮播（吸顶固定） ========== */
.Page_Productdetail_Body_coverCarousel {
    position: sticky;
    top: calc(var(--topbar-height) + var(--top-safe));
    z-index: 80;
    margin-bottom: 16px;
}

.Page_Productdetail_Body_coverTrack {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

    .Page_Productdetail_Body_coverTrack::-webkit-scrollbar {
        display: none;
    }

.Page_Productdetail_Body_coverSlide {
    flex: 0 0 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, var(--primary) 0%, #4f83f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    scroll-snap-align: center;
}

.Page_Productdetail_Body_coverDots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

    .Page_Productdetail_Body_coverDots .Page_Productdetail_Body_dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: rgba(255, 255, 255, .5);
    }

        .Page_Productdetail_Body_coverDots .Page_Productdetail_Body_dot.active {
            width: 14px;
            border-radius: 3px;
            background: #fff;
        }

/* ========== Body 区：商品头部 ========== */
.Page_Productdetail_Body_head {
    background: var(--card);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.Page_Productdetail_Body_tag {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    color: var(--primary);
    background: var(--primary-light);
    padding: 3px 10px;
    border-radius: 10px;
}

.Page_Productdetail_Body_title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.55;
    margin: 10px 0 12px;
}

.Page_Productdetail_Body_priceRow {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.Page_Productdetail_Body_price {
    color: var(--primary);
    font-size: 22px;
    font-weight: 700;
}

.Page_Productdetail_Body_priceOrigin {
    font-size: 11px;
    color: var(--text-sub);
    text-decoration: line-through;
}

.Page_Productdetail_Body_meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 11px;
    color: var(--text-sub);
    margin-top: 10px;
}

/* ========== Body 区：商品卖点 ========== */
.Page_Productdetail_Body_points {
    background: var(--card);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.Page_Productdetail_Body_pointItem {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.6;
    padding: 7px 0;
}

.Page_Productdetail_Body_pointDot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    margin-top: 8px;
    flex-shrink: 0;
}

/* ========== Body 区：详情描述 ========== */
.Page_Productdetail_Body_body {
    background: var(--card);
    border-radius: 18px;
    padding: 18px 16px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

    .Page_Productdetail_Body_body p {
        font-size: 13px;
        line-height: 1.8;
        color: var(--text);
        margin-bottom: 12px;
    }

        .Page_Productdetail_Body_body p:last-child {
            margin-bottom: 0;
        }

/* ========== Body 区：推荐商品（横向滑动） ========== */
.Page_Productdetail_Body_recHead {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
}

.Page_Productdetail_Body_recTitle {
    font-size: 17px;
    font-weight: 700;
}

    .Page_Productdetail_Body_recTitle::before {
        content: "";
        display: inline-block;
        width: 4px;
        height: 15px;
        background: var(--primary);
        border-radius: 2px;
        margin-right: 8px;
        vertical-align: -2px;
    }

.Page_Productdetail_Body_recRow {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

    .Page_Productdetail_Body_recRow::-webkit-scrollbar {
        display: none;
    }

.Page_Productdetail_Body_recCard {
    min-width: 120px;
    background: var(--card);
    border-radius: 14px;
    padding: 12px;
    box-shadow: var(--shadow);
    flex-shrink: 0;
    cursor: pointer;
}

.Page_Productdetail_Body_recCover {
    height: 72px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 8px;
}

.Page_Productdetail_Body_recTitleText {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.Page_Productdetail_Body_recPrice {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

/* ========== Body 区：底部操作栏（位于 Footer 上方） ========== */
.Page_Productdetail_Body_actionBar {
    position: fixed;
    bottom: calc(var(--tabbar-height) + var(--bottom-safe));
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: var(--bar-height);
    padding: 10px 16px;
    background: var(--card);
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 90;
}

.Page_Productdetail_Body_actionIcon {
    width: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    color: var(--text-sub);
    cursor: pointer;
}

    .Page_Productdetail_Body_actionIcon .Page_Productdetail_Body_iconImg {
        font-size: 20px;
    }

.Page_Productdetail_Body_cartBtn {
    flex: 1;
    height: 40px;
    border: none;
    border-radius: 20px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.Page_Productdetail_Body_buyBtn {
    flex: 1;
    height: 40px;
    border: none;
    border-radius: 20px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
