@charset "utf-8";
/**
 * 预售模块皮肤（列表页 + 详情页）
 * 深圳市爱租网络有限公司2016-2026
 * Shenzhen iZucn Network Co.,Ltd. 2016-2026
 *
 * 设计语言取自 tyalux 源系统：深蓝灰主色 + 近黑价格 + 细边框白卡 + 大圆角胶囊标签。
 * 全部规则限定在 body.presale-page 内，不污染其它页面。
 */

/* ============================================================
   1. 设计变量与基础
   ============================================================ */
body.presale-page {
    --ps-primary: var(--color-primary, #232f3e);
    --ps-primary-dark: #17202b;
    --ps-price: var(--color-price, #2f2f34);
    --ps-border: var(--color-border, #e9e9e4);
    --ps-muted: var(--color-text-muted, #999);
    --ps-text: #333;
    --ps-bg: #f5f6f8;
    --ps-card: #fff;
    --ps-promo: #b2771f;
    --ps-promo-bg: #fff7eb;
    --ps-live: #1f8f4e;
    --ps-radius-sm: 8px;
    --ps-radius-md: 12px;
    --ps-radius-lg: 16px;
    --ps-shadow: 0 2px 8px rgba(35, 47, 62, .05);
    --ps-shadow-hover: 0 10px 24px rgba(35, 47, 62, .12);
    background: var(--ps-bg);
    color: var(--ps-text);
}

body.presale-page .ps-arrow {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 6px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    vertical-align: middle;
}

/* ============================================================
   2. 列表页：头图区
   ============================================================ */
body.presale-page .ps-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(115deg, var(--ps-primary-dark) 0%, var(--ps-primary) 55%, #35485f 100%);
    color: #fff;
}

body.presale-page .ps-hero::before {
    content: "";
    position: absolute;
    right: -80px;
    top: -120px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

body.presale-page .ps-hero::after {
    content: "";
    position: absolute;
    right: 12%;
    bottom: -60px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    pointer-events: none;
}

body.presale-page .ps-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 188px;
    padding: 32px 0;
    box-sizing: border-box;
}

body.presale-page .ps-hero__title {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.3;
    font-weight: 700;
    color: #fff;
    letter-spacing: .5px;
}

body.presale-page .ps-hero__sub {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .72);
}

body.presale-page .ps-hero__stats {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.presale-page .ps-hero__stat {
    position: relative;
    min-width: 96px;
    padding: 0 26px;
    text-align: center;
}

body.presale-page .ps-hero__stat:first-child {
    padding-left: 0;
}

body.presale-page .ps-hero__stat + .ps-hero__stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: rgba(255, 255, 255, .16);
}

body.presale-page .ps-hero__stat em {
    display: block;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 700;
    font-style: normal;
    font-variant-numeric: tabular-nums;
}

body.presale-page .ps-hero__stat span {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, .7);
}

/* ============================================================
   3. 列表页：快捷筛选条（上移叠在头图下沿）
   ============================================================ */
body.presale-page .ps-quicknav {
    position: relative;
    z-index: 2;
    display: flex;
    margin-top: -22px;
    margin-bottom: 8px;
    padding: 8px;
    background: var(--ps-card);
    border: 1px solid var(--ps-border);
    border-radius: var(--ps-radius-md);
    box-shadow: var(--ps-shadow);
    box-sizing: border-box;
}

body.presale-page .ps-quicknav__item {
    flex: 1 1 0;
    display: block;
    height: 40px;
    line-height: 40px;
    border-radius: var(--ps-radius-sm);
    text-align: center;
    font-size: 14px;
    color: var(--ps-text);
    transition: background .18s ease, color .18s ease;
}

body.presale-page .ps-quicknav__item:hover {
    background: #f2f4f7;
    color: var(--ps-primary);
}

body.presale-page .ps-quicknav__item.is-active {
    background: var(--ps-primary);
    color: #fff;
}

/* ============================================================
   4. 列表页：区块标题
   ============================================================ */
body.presale-page .ps-section {
    margin-top: 28px;
    padding-bottom: 4px;
}

body.presale-page .ps-section:last-of-type {
    padding-bottom: 40px;
}

body.presale-page .ps-section__hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

body.presale-page .ps-section__title {
    position: relative;
    margin: 0;
    padding-left: 12px;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 700;
    color: var(--ps-primary-dark);
}

body.presale-page .ps-section__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 18px;
    margin-top: -9px;
    border-radius: 2px;
    background: var(--ps-primary);
}

body.presale-page .ps-section__more {
    font-size: 13px;
    color: var(--ps-muted);
    transition: color .18s ease;
}

body.presale-page .ps-section__more:hover {
    color: var(--ps-primary);
}

/* ============================================================
   5. 列表页：商品网格与卡片
   ============================================================ */
body.presale-page .ps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.presale-page .ps-card {
    position: relative;
    background: var(--ps-card);
    border: 1px solid var(--ps-border);
    border-radius: var(--ps-radius-md);
    box-shadow: var(--ps-shadow);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

body.presale-page .ps-card:hover {
    transform: translateY(-3px);
    border-color: #d6d9dd;
    box-shadow: var(--ps-shadow-hover);
}

body.presale-page .ps-card__link {
    display: block;
    color: inherit;
}

body.presale-page .ps-card__cover {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f7f8fa;
}

body.presale-page .ps-card__cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

body.presale-page .ps-card:hover .ps-card__cover img {
    transform: scale(1.04);
}

body.presale-page .ps-flag {
    position: absolute;
    z-index: 1;
    display: inline-block;
    height: 22px;
    line-height: 22px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

body.presale-page .ps-flag--state {
    left: 10px;
    top: 10px;
    background: var(--ps-primary);
}

body.presale-page .ps-card.is-upcoming .ps-flag--state {
    background: var(--ps-promo);
}

body.presale-page .ps-card.is-ended .ps-flag--state {
    background: #9a9a9a;
}

body.presale-page .ps-flag--rent {
    right: 10px;
    top: 10px;
    background: var(--ps-live);
}

body.presale-page .ps-card__body {
    padding: 14px 16px 16px;
}

body.presale-page .ps-card__name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 44px;
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 22px;
    font-weight: 400;
    color: var(--ps-text);
}

body.presale-page .ps-card:hover .ps-card__name {
    color: var(--ps-primary);
}

body.presale-page .ps-card__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-height: 30px;
}

body.presale-page .ps-price {
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--ps-price);
    font-variant-numeric: tabular-nums;
}

body.presale-page .ps-price-old {
    font-size: 12px;
    color: var(--ps-muted);
    text-decoration: line-through;
}

body.presale-page .ps-card__deposit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
    font-size: 12px;
    color: var(--ps-muted);
}

body.presale-page .ps-card__deposit em {
    margin-left: 4px;
    font-style: normal;
    font-weight: 600;
    color: var(--ps-promo);
    font-variant-numeric: tabular-nums;
}

body.presale-page .ps-card__pre em {
    margin: 0 2px;
    font-style: normal;
    font-weight: 600;
    color: var(--ps-primary);
}

body.presale-page .ps-card__cd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    padding: 0 10px;
    height: 30px;
    border-radius: 6px;
    background: #f5f6f8;
    font-size: 12px;
    color: #666;
}

body.presale-page .ps-card__cd-label {
    color: var(--ps-muted);
}

body.presale-page .ps-cd {
    display: inline-flex;
    align-items: center;
    font-variant-numeric: tabular-nums;
}

body.presale-page .ps-cd em {
    min-width: 18px;
    padding: 0 3px;
    font-style: normal;
    font-weight: 700;
    color: var(--ps-primary);
    text-align: center;
}

body.presale-page .ps-cd b {
    font-weight: 400;
    color: #9aa0a6;
}

body.presale-page .ps-card__cd.is-over {
    justify-content: center;
    color: #9a9a9a;
}

body.presale-page .ps-card.is-ended .ps-card__body {
    opacity: .78;
}

body.presale-page .ps-card__shop {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--ps-border);
    font-size: 12px;
    color: var(--ps-muted);
}

body.presale-page .ps-card__shop-name {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ============================================================
   6. 分类页：页头、筛选面板、结果条
   ============================================================ */
body.presale-page .ps-pagehead {
    padding: 24px 0 4px;
}

body.presale-page .ps-pagehead__title {
    margin: 0;
    font-size: 24px;
    line-height: 1.4;
    font-weight: 700;
    color: var(--ps-primary-dark);
}

body.presale-page .ps-pagehead__crumb {
    margin-top: 6px;
    font-size: 12px;
    color: var(--ps-muted);
    line-height: 20px;
}

body.presale-page .ps-pagehead__crumb a {
    color: var(--ps-muted);
}

body.presale-page .ps-pagehead__crumb a:hover {
    color: var(--ps-primary);
}

body.presale-page .ps-filter {
    margin-top: 16px;
    padding: 6px 24px;
    background: var(--ps-card);
    border: 1px solid var(--ps-border);
    border-radius: var(--ps-radius-md);
    box-shadow: var(--ps-shadow);
    box-sizing: border-box;
}

body.presale-page .ps-filter__row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
}

body.presale-page .ps-filter__row + .ps-filter__row {
    border-top: 1px dashed var(--ps-border);
}

body.presale-page .ps-filter__label {
    flex: 0 0 74px;
    padding-top: 5px;
    font-size: 13px;
    color: var(--ps-muted);
}

body.presale-page .ps-filter__opts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

body.presale-page .ps-chip {
    display: inline-block;
    height: 28px;
    line-height: 28px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 13px;
    color: var(--ps-text);
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

body.presale-page .ps-chip:hover {
    background: #f2f4f7;
    color: var(--ps-primary);
}

body.presale-page .ps-chip.is-active {
    background: var(--ps-primary);
    border-color: var(--ps-primary);
    color: #fff;
}

body.presale-page .ps-resultbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0 14px;
    font-size: 13px;
    color: var(--ps-muted);
}

body.presale-page .ps-resultbar__count em {
    margin: 0 4px;
    font-style: normal;
    font-size: 16px;
    font-weight: 700;
    color: var(--ps-primary);
    font-variant-numeric: tabular-nums;
}

/* ============================================================
   7. 空状态
   ============================================================ */
body.presale-page .ps-empty {
    margin: 24px auto 60px;
    padding: 56px 24px;
    background: var(--ps-card);
    border: 1px solid var(--ps-border);
    border-radius: var(--ps-radius-md);
    text-align: center;
    box-sizing: border-box;
}

body.presale-page .ps-empty__icon {
    display: inline-block;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    border: 2px dashed #d6d9dd;
    border-radius: var(--ps-radius-sm);
    background: #fafbfc;
}

body.presale-page .ps-empty__title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--ps-text);
}

body.presale-page .ps-empty__tip {
    margin: 0 0 20px;
    font-size: 13px;
    color: var(--ps-muted);
}

body.presale-page .ps-empty__btn {
    display: inline-block;
    height: 38px;
    line-height: 38px;
    padding: 0 26px;
    border-radius: 999px;
    background: var(--ps-primary);
    color: #fff;
    font-size: 14px;
    transition: opacity .18s ease;
}

body.presale-page .ps-empty__btn:hover {
    opacity: .88;
    color: #fff;
}

/* ============================================================
   8. 响应式：列表页
   ============================================================ */
@media screen and (max-width: 1240px) {
    body.presale-page .ps-hero__inner,
    body.presale-page .ps-quicknav,
    body.presale-page .ps-section,
    body.presale-page .ps-pagehead,
    body.presale-page .ps-filter,
    body.presale-page .ps-resultbar,
    body.presale-page .ps-grid,
    body.presale-page .ps-empty {
        width: auto;
        margin-left: 16px;
        margin-right: 16px;
    }
}

@media screen and (max-width: 1160px) {
    body.presale-page .ps-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width: 900px) {
    body.presale-page .ps-hero__inner {
        flex-direction: column;
        align-items: flex-start;
        min-height: 0;
        padding: 26px 0;
    }

    body.presale-page .ps-hero__stats {
        width: 100%;
    }

    body.presale-page .ps-hero__stat {
        flex: 1 1 0;
        min-width: 0;
        padding: 0 12px;
    }

    body.presale-page .ps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media screen and (max-width: 768px) {
    body.presale-page .ps-hero__title {
        font-size: 22px;
    }

    body.presale-page .ps-hero__stat em {
        font-size: 22px;
    }

    body.presale-page .ps-quicknav {
        margin-top: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.presale-page .ps-quicknav__item {
        flex: 0 0 auto;
        padding: 0 14px;
        white-space: nowrap;
    }

    body.presale-page .ps-section__title {
        font-size: 17px;
    }

    body.presale-page .ps-filter {
        padding: 4px 16px;
    }

    body.presale-page .ps-filter__row {
        flex-direction: column;
        gap: 8px;
    }

    body.presale-page .ps-filter__label {
        flex: none;
        padding-top: 0;
    }

    body.presale-page .ps-card__body {
        padding: 10px 12px 12px;
    }

    body.presale-page .ps-card__name {
        height: 40px;
        font-size: 13px;
        line-height: 20px;
    }

    body.presale-page .ps-price {
        font-size: 18px;
    }

    body.presale-page .ps-card__cd {
        padding: 0 6px;
        font-size: 11px;
    }
}

@media screen and (max-width: 480px) {
    body.presale-page .ps-grid {
        gap: 10px;
    }

    body.presale-page .ps-card__deposit {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    body.presale-page .ps-card__cd {
        justify-content: center;
    }

    body.presale-page .ps-card__cd-label {
        display: none;
    }
}

/* ============================================================
   9. 详情页：整体骨架（面包屑 + 图库/信息两栏卡片）
   说明：goods_new.css 会改写全站 .w1200 宽度，故详情页不引入该文件，
        仅在此按同一套设计语言（白卡 + 大圆角 + 轻投影）重排版。
   ============================================================ */
body.presale-detail .full-main-n {
    background: transparent;
    padding-top: 4px;
}

body.presale-detail .full-main-n .crumbs-nav {
    padding: 6px 0 14px;
}

body.presale-detail .container > .w > .product-info {
    margin-top: 0;
}

body.presale-detail .product-info {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

body.presale-detail .product-info > .preview {
    position: sticky;
    top: 16px;
    flex: 0 0 452px;
    width: 452px;
    float: none;
    padding: 16px;
    box-sizing: border-box;
    background: var(--ps-card);
    border: 1px solid var(--ps-border);
    border-radius: var(--ps-radius-lg);
    box-shadow: var(--ps-shadow);
}

body.presale-detail .product-info > .product-wrap {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    float: none;
    margin: 0;
    padding: 24px 26px 26px;
    box-sizing: border-box;
    background: var(--ps-card);
    border: 1px solid var(--ps-border);
    border-radius: var(--ps-radius-lg);
    box-shadow: var(--ps-shadow);
}

body.presale-detail .product-info > .product-wrap-min {
    width: auto;
    margin: 0;
}

/* 第三栏（看了又看 / 店铺卡）收起：店铺信息由左侧店铺卡片与 Tab 区承载 */
body.presale-detail .product-info > .track,
body.presale-detail .product-info > .seller-pop {
    display: none;
}

/* ============================================================
   10. 详情页：图库（主图 + 缩略图，等比自适应原 398px 固定宽）
   ============================================================ */
body.presale-detail .preview .gallery_wrap {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    border: 0;
    border-radius: var(--ps-radius-md);
    background: #f7f8fa;
    overflow: hidden;
    text-align: center;
}

body.presale-detail .gallery_wrap ul {
    position: relative;
    width: 100%;
    height: 100%;
}

body.presale-detail .gallery_wrap li {
    position: absolute;
    top: 0;
    left: 0;
    float: none;
    width: 100%;
    height: 100%;
}

body.presale-detail .gallery_wrap li[ectype="img"] {
    display: flex;
    align-items: center;
    justify-content: center;
}

body.presale-detail .gallery_wrap a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

body.presale-detail .gallery_wrap a img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

body.presale-detail .gallery_wrap video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

body.presale-detail .gallery_wrap li .video_default {
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

body.presale-detail .preview .spec-list {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: auto;
    margin-top: 14px;
    padding: 0;
    border: 0;
}

body.presale-detail .spec-list .spec-prev,
body.presale-detail .spec-list .spec-next {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    line-height: 26px;
    margin: 0;
    float: none;
    border-radius: 50%;
    background: #f2f4f7;
    color: #6a727c;
    text-align: center;
}

body.presale-detail .spec-list .spec-items {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    height: auto;
    float: none;
    overflow-x: auto;
    overflow-y: hidden;
}

body.presale-detail .spec-list .spec-items ul {
    display: flex;
    gap: 8px;
    width: auto;
}

body.presale-detail .spec-list .spec-items li {
    flex: 0 0 auto;
    float: none;
    width: 56px;
    height: 56px;
    margin: 0;
    border-radius: var(--ps-radius-sm);
    overflow: hidden;
}

body.presale-detail .spec-list .spec-items li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.presale-detail .spec-list .spec-items li a {
    display: block;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border: 2px solid transparent;
    border-radius: var(--ps-radius-sm);
}

body.presale-detail .spec-list .spec-items li:hover a,
body.presale-detail .spec-list .spec-items li a.img-hover {
    border-color: var(--ps-primary);
}

body.presale-detail .preview .short-share {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--ps-border);
}

/* ============================================================
   11. 详情页：标题 / 预售状态条（状态胶囊 + 倒计时 + 预约人数）
   ============================================================ */
body.presale-detail .product-wrap .name {
    margin: 0;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: .01em;
    color: #1f2530;
}

body.presale-detail .product-wrap .newp {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--ps-muted);
}

body.presale-detail .product-wrap .activity-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    height: auto;
    margin-top: 16px;
    padding: 12px 16px;
    line-height: 1.4;
    border-radius: var(--ps-radius-md);
    background: linear-gradient(120deg, var(--ps-primary-dark) 0%, var(--ps-primary) 62%, #3a4d66 100%);
}

body.presale-detail .activity-title .activity-type {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    float: none;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

body.presale-detail .activity-title .activity-type .icon {
    display: none;
}

body.presale-detail .activity-type .pd-bar__tag {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff;
    color: var(--ps-primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    white-space: nowrap;
}

body.presale-detail .activity-type .pd-bar__state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .86);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

body.presale-detail .activity-type .pd-bar__state::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

body.presale-detail .activity-type .pd-bar__state.is-live {
    border-color: rgba(126, 236, 174, .34);
    background: rgba(31, 143, 78, .3);
    color: #d9ffe8;
}

body.presale-detail .activity-type .pd-bar__state.is-upcoming {
    border-color: rgba(255, 214, 140, .34);
    background: rgba(178, 119, 31, .3);
    color: #ffefcd;
}

body.presale-detail .activity-type .pd-bar__state.is-ended {
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .7);
}

body.presale-detail .activity-title .sk-time-cd {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: auto;
    margin-left: auto;
    padding: 0;
    float: none;
    font-size: 12px;
    line-height: 1;
}

body.presale-detail .activity-title .sk-cd-tit {
    float: none;
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
}

body.presale-detail .activity-title .cd-time {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    float: none;
    overflow: visible;
}

body.presale-detail .activity-title .cd-time * {
    float: none;
}

body.presale-detail .activity-title .cd-time div {
    min-width: 26px;
    height: 26px;
    padding: 0 5px;
    box-sizing: border-box;
    border-radius: 6px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 26px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

body.presale-detail .activity-title .cd-time .split {
    margin: 0;
    color: rgba(255, 255, 255, .4);
    font-weight: 700;
    line-height: 26px;
}

body.presale-detail .activity-title .activity-message-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding-left: 14px;
    float: none;
    border-left: 1px solid rgba(255, 255, 255, .18);
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
    line-height: 1;
}

body.presale-detail .activity-message-item .sprite-person {
    margin-top: 0;
}

body.presale-detail .activity-message-item .J-count {
    color: #ffd76a;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
}

/* ============================================================
   12. 详情页：价格面板
   结构不改 DOM：.s-p-w-wrap 用 grid-template-areas 重排
   预售价（整行）/ 定金 / 尾款 / 规则入口
   ============================================================ */
body.presale-detail .summary {
    position: static;
}

body.presale-detail .summary-price-wrap {
    margin-top: 16px;
}

body.presale-detail .summary-price-wrap .s-p-w-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    grid-template-areas:
        "price price price"
        "dep   fin   rule";
    gap: 10px 12px;
    padding: 18px 20px;
    border: 1px solid var(--ps-border);
    border-radius: var(--ps-radius-md);
    background: linear-gradient(180deg, #fbfcfd 0%, #f4f6f9 100%);
}

body.presale-detail .s-p-w-wrap > .si-shop-price {
    grid-area: price;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 12px;
    float: none;
    width: auto;
    margin: 0;
}

body.presale-detail .s-p-w-wrap > .si-shop-price .si-tit {
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    float: none;
    color: var(--ps-muted);
    font-size: 13px;
    line-height: 1.2;
}

body.presale-detail .s-p-w-wrap > .si-shop-price .si-warp {
    width: auto;
    float: none;
    line-height: 1.1;
}

body.presale-detail .s-p-w-wrap > .si-shop-price .shop-price {
    display: inline-block;
    float: none;
    height: auto;
    margin: 0;
    color: var(--ps-price);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

body.presale-detail .s-p-w-wrap > .si-shop-price .shop-price em {
    margin-right: 2px;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
}

body.presale-detail .s-p-w-wrap > .si-market-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: auto;
    margin: 0;
    padding: 10px 14px;
    float: none;
    border: 1px solid #e3e7ee;
    border-radius: var(--ps-radius-sm);
    background: #fff;
}

body.presale-detail .s-p-w-wrap > .si-market-price:nth-child(2) {
    grid-area: dep;
}

body.presale-detail .s-p-w-wrap > .si-market-price:nth-child(3) {
    grid-area: fin;
}

body.presale-detail .s-p-w-wrap > .si-market-price .si-tit {
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    float: none;
    color: var(--ps-muted);
    font-size: 12px;
    line-height: 1.4;
}

body.presale-detail .s-p-w-wrap > .si-market-price .si-warp {
    width: auto;
    float: none;
    line-height: 1.2;
}

body.presale-detail .s-p-w-wrap > .si-market-price .price {
    color: var(--ps-price);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

body.presale-detail .s-p-w-wrap > .si-market-price .price em {
    font-size: 13px;
    font-style: normal;
}

body.presale-detail .s-p-w-wrap > .si-info {
    position: static;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    grid-area: rule;
}

body.presale-detail .s-p-w-wrap .sp-rule {
    position: relative;
    display: inline-block;
    margin: 0;
    float: none;
}

body.presale-detail .s-p-w-wrap .sp-rule dt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 14px;
    box-sizing: border-box;
    border: 1px solid var(--ps-border);
    border-radius: 999px;
    background: #fff;
    color: var(--ps-primary);
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease;
}

body.presale-detail .s-p-w-wrap .sp-rule:hover dt,
body.presale-detail .s-p-w-wrap .sp-rule.hover dt {
    border-color: var(--ps-primary);
    color: var(--ps-primary);
    box-shadow: 0 2px 8px rgba(35, 47, 62, .12);
}

body.presale-detail .s-p-w-wrap .sp-rule dt i {
    position: static;
    display: inline-block;
    width: 5px;
    height: 5px;
    background: none;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
}

body.presale-detail .s-p-w-wrap .sp-rule dd {
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    width: 400px;
    max-width: 78vw;
    padding: 18px 20px;
    box-sizing: border-box;
    border: 1px solid var(--ps-border);
    border-radius: var(--ps-radius-md);
    background: #fff;
    box-shadow: 0 12px 32px rgba(24, 32, 44, .14);
}

body.presale-detail .s-p-w-wrap .sp-rule dd i,
body.presale-detail .s-p-w-wrap .sp-rule dd em {
    display: none;
}

body.presale-detail .s-p-w-wrap .sp-rule dd ul,
body.presale-detail .s-p-w-wrap #presell-rule {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.presale-detail .s-p-w-wrap .sp-rule dd ul li {
    position: relative;
    margin-bottom: 8px;
    padding: 0 0 0 6px;
    color: #555;
    font-size: 12px;
    line-height: 1.75;
}

body.presale-detail .s-p-w-wrap .sp-rule dd ul li:last-child {
    margin-bottom: 0;
}

body.presale-detail .s-p-w-wrap .sp-rule dd ul li b {
    position: static;
    margin-right: 2px;
    color: var(--ps-primary);
    font-weight: 700;
}

body.presale-detail .s-p-w-wrap > .clear {
    display: none;
}

/* ============================================================
   13. 详情页：基础信息行（配送 / 服务 / 限购 / 规格 / 数量）
   ============================================================ */
body.presale-detail .summary-basic-info {
    margin-top: 14px;
}

body.presale-detail .summary-basic-info .summary-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: auto;
    margin: 0;
    padding: 10px 0;
    float: none;
    border-bottom: 1px dashed var(--ps-border);
}

body.presale-detail .summary-basic-info .summary-item:last-of-type {
    padding-bottom: 0;
    border-bottom: 0;
}

body.presale-detail .summary-basic-info .summary-item .si-tit {
    flex: 0 0 auto;
    width: 72px;
    min-width: 72px;
    margin: 0;
    padding: 0;
    float: none;
    color: var(--ps-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 26px;
    white-space: nowrap;
}

body.presale-detail .summary-basic-info .summary-item .si-warp {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    float: none;
    color: var(--ps-text);
    font-size: 13px;
    line-height: 26px;
}

body.presale-detail .summary-basic-info .summary-item .si-warp::after {
    content: "";
    display: block;
    clear: both;
}

body.presale-detail .summary-basic-info .summary-item .si-warp .fl {
    float: none;
}

body.presale-detail .summary-basic-info .is-service .si-warp {
    color: #6a727c;
}

body.presale-detail .summary-basic-info .is-service .si-warp .link-red {
    color: var(--ps-primary);
}

body.presale-detail .summary-basic-info .is-xiangou em {
    color: var(--ps-price);
    font-style: normal;
    font-weight: 700;
}

/* 规格（图片色块 / 文字胶囊）统一为 8px 圆角小卡 */
body.presale-detail .summary-basic-info .summary-item .item {
    margin: 0 8px 8px 0;
    padding: 3px;
    border-color: #dcdfe6;
    border-radius: var(--ps-radius-sm);
    transition: border-color .15s ease, box-shadow .15s ease;
}

body.presale-detail .summary-basic-info .summary-item .item a i {
    padding: 0 12px;
    font-size: 13px;
    line-height: 24px;
}

body.presale-detail .summary-basic-info .summary-item .selected,
body.presale-detail .summary-basic-info .summary-item .item:hover {
    border-color: var(--ps-primary);
    box-shadow: 0 0 0 1px rgba(35, 47, 62, .12);
}

/* 数量步进器：与商品详情页弹层同款胶囊风格 */
body.presale-detail .amount-warp {
    display: inline-flex;
    align-items: stretch;
    height: 32px;
    float: none;
    vertical-align: middle;
}

body.presale-detail .amount-warp .buy-num {
    width: 52px;
    height: 32px;
    padding: 0;
    box-sizing: border-box;
    border: 1px solid #dcdfe6;
    border-right: 0;
    border-radius: 8px 0 0 8px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    line-height: 30px;
    text-align: center;
    outline: 0;
}

body.presale-detail .amount-warp .a-btn {
    display: flex;
    flex-direction: column;
    width: 24px;
    height: 32px;
    box-sizing: border-box;
    border: 1px solid #dcdfe6;
    border-left: 0;
    border-radius: 0 8px 8px 0;
    background: #fff;
    overflow: hidden;
}

body.presale-detail .amount-warp .a-btn a {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    float: none;
    line-height: 1;
    color: #666;
    transition: background-color .15s ease, color .15s ease;
}

body.presale-detail .amount-warp .a-btn .btn-reduce {
    height: auto;
    border-top: 1px solid #eee;
}

body.presale-detail .amount-warp .a-btn a:hover {
    background: #f5f6f8;
    color: var(--ps-primary);
}

body.presale-detail .amount-warp .a-btn .btn-disabled,
body.presale-detail .amount-warp .a-btn .btn-disabled:hover {
    background: transparent;
    color: #d8d8d8;
    cursor: default;
}

body.presale-detail .amount-warp a .iconfont {
    font-size: 11px;
}

/* ============================================================
   14. 详情页：主按钮（支付定金）
   ============================================================ */
body.presale-detail .choose-btns {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0 0;
    padding: 0;
}

body.presale-detail .choose-btns > a.btn-append {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    height: 48px;
    margin: 0;
    padding: 0 40px;
    box-sizing: border-box;
    float: none;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ps-primary) 0%, #3d5370 100%);
    box-shadow: 0 10px 22px rgba(35, 47, 62, .2);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .03em;
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease;
}

body.presale-detail .choose-btns > a.btn-append:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(35, 47, 62, .26);
}

body.presale-detail .choose-btns > a.btn_disabled,
body.presale-detail .choose-btns > a.btn_disabled:hover {
    background: #ccd2da;
    box-shadow: none;
    color: #fff;
    transform: none;
    cursor: not-allowed;
}

/* ============================================================
   15. 详情页：预售流程三步条（定金 → 尾款 → 发货）
   ============================================================ */
body.presale-detail .pingou-process {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    width: auto;
    margin: 20px 0 0;
    padding: 20px 22px 22px;
    box-sizing: border-box;
    float: none;
    overflow: visible;
    border: 1px solid var(--ps-border);
    border-radius: var(--ps-radius-lg);
    background: var(--ps-card);
    box-shadow: var(--ps-shadow);
}

body.presale-detail .pingou-process h3 {
    flex: 0 0 100%;
    width: auto;
    margin: 0 0 18px;
    padding: 0 0 0 12px;
    float: none;
    border: 0;
    border-left: 3px solid var(--ps-primary);
    color: #1f2530;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
}

body.presale-detail .pingou-process .item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    padding: 0 18px;
    float: none;
}

body.presale-detail .pingou-process .item:first-of-type {
    padding-left: 0;
}

body.presale-detail .pingou-process .item:last-of-type {
    padding-right: 0;
}

body.presale-detail .pingou-process .item + .item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 1px;
    background: var(--ps-border);
}

body.presale-detail .pingou-process .item i {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: 0;
    float: none;
    border-radius: 50%;
    background-color: #f2f5f9;
}

/* 修复原样式 .sprite-step2 背景位置缺单位导致整条 background 失效、图标不显示 */
body.presale-detail .pingou-process .item .sprite-step2 {
    background: #f2f5f9 url(../../images/presale/sprite_icon.png) -90px -45px no-repeat;
}

body.presale-detail .pingou-process .item dl {
    min-width: 0;
    margin: 0;
}

body.presale-detail .pingou-process .item dt {
    color: #1f2530;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}

body.presale-detail .pingou-process .item dt em {
    margin-left: 4px;
    color: var(--ps-muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
}

body.presale-detail .pingou-process .item dd {
    margin-top: 4px;
    color: var(--ps-muted);
    font-size: 12px;
    line-height: 1.6;
}

body.presale-detail .pingou-process .sprite-arrow {
    display: none;
}

/* ============================================================
   16. 详情页：店铺侧栏 / Tab 区 / 看了又看
   ============================================================ */
body.presale-detail .goods-main-layout {
    margin-top: 20px;
}

body.presale-detail .g-m-left .g-main {
    margin-bottom: 16px;
    border-color: var(--ps-border);
    border-radius: var(--ps-radius-md);
    overflow: hidden;
    box-shadow: var(--ps-shadow);
}

body.presale-detail .g-m-left .mt {
    border-bottom-color: var(--ps-border);
    background-color: #fafbfc;
}

body.presale-detail .gm-tabbox {
    background: transparent;
}

body.presale-detail .gm-tabbox .gm-tab {
    /* 与楼层内容区（.gm-floors 左右内边距 24px）对齐 */
    padding-left: 24px;
    border-bottom: 1px solid var(--ps-border);
    border-radius: var(--ps-radius-md) var(--ps-radius-md) 0 0;
    background: #fafbfc;
}

body.presale-detail .gm-tab li {
    border-color: var(--ps-border);
    color: #5a616b;
    font-weight: 500;
    transition: color .18s ease, background-color .18s ease;
}

body.presale-detail .gm-tab li:hover {
    color: var(--ps-primary);
}

body.presale-detail .gm-tab li.curr {
    border-top: 2px solid var(--ps-primary);
    background: #fff;
    color: var(--ps-primary);
    font-weight: 600;
}

/* 用 box-shadow 代替 border 勾勒轮廓，避免 970px 固定宽加边框后溢出 */
body.presale-detail .gm-floors {
    border-radius: 0 0 var(--ps-radius-md) var(--ps-radius-md);
    background: #fff;
    box-shadow: 0 0 0 1px var(--ps-border);
}

body.presale-detail .rection {
    margin-top: 20px;
    padding: 22px 22px 18px;
    border: 1px solid var(--ps-border);
    border-radius: var(--ps-radius-lg);
    background: var(--ps-card);
    box-shadow: var(--ps-shadow);
}

body.presale-detail .rection:empty {
    display: none;
}

body.presale-detail .rection .ftit {
    height: auto;
    padding: 0 0 16px;
    background: none;
    text-align: left;
}

body.presale-detail .rection .ftit h3 {
    padding: 0 0 0 12px;
    border-left: 3px solid var(--ps-primary);
    background: none;
    color: #1f2530;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

body.presale-detail .rection ul {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    width: auto;
}

body.presale-detail .rection li {
    width: auto;
    margin: 0;
    float: none;
    text-align: left;
}

body.presale-detail .rection li .p-img {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--ps-radius-md);
    background: #f7f8fa;
}

body.presale-detail .rection li .p-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.presale-detail .rection li .p-name {
    height: 40px;
    margin-top: 8px;
    overflow: hidden;
    font-size: 13px;
    line-height: 20px;
}

body.presale-detail .rection li .p-name a {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

body.presale-detail .rection li .p-price {
    margin-top: 6px;
    color: var(--ps-price);
    font-size: 15px;
    font-weight: 700;
}

/* ============================================================
   17. 详情页：响应式
   ============================================================ */
@media screen and (max-width: 1220px) {
    body.presale-detail .product-info > .preview {
        flex: 0 0 400px;
        width: 400px;
    }

    body.presale-detail .g-m-left {
        display: none;
    }

    body.presale-detail .g-m-detail {
        width: 100%;
        margin-left: 0;
        float: none;
    }

    body.presale-detail .gm-tabbox {
        width: 100%;
    }

    body.presale-detail .rection ul {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media screen and (max-width: 1024px) {
    body.presale-detail .product-info {
        flex-direction: column;
        gap: 16px;
    }

    body.presale-detail .product-info > .preview {
        position: static;
        flex: 1 1 auto;
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
    }

    body.presale-detail .product-info > .product-wrap {
        width: 100%;
        padding: 20px;
    }

    body.presale-detail .rection ul {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width: 768px) {
    body.presale-detail .summary-price-wrap .s-p-w-wrap {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "price price"
            "dep   fin"
            "rule  rule";
    }

    body.presale-detail .s-p-w-wrap > .si-info {
        justify-content: flex-start;
    }

    body.presale-detail .s-p-w-wrap .sp-rule dd {
        left: 0;
        right: auto;
        width: min(340px, 86vw);
    }

    body.presale-detail .product-wrap .activity-title {
        align-items: flex-start;
    }

    body.presale-detail .activity-title .sk-time-cd {
        margin-left: 0;
    }

    body.presale-detail .product-wrap .name {
        font-size: 18px;
    }

    body.presale-detail .s-p-w-wrap > .si-shop-price .shop-price {
        font-size: 28px;
    }

    body.presale-detail .pingou-process {
        flex-direction: column;
        gap: 16px;
    }

    body.presale-detail .pingou-process .item {
        width: 100%;
        padding: 0;
    }

    body.presale-detail .pingou-process .item + .item::before {
        display: none;
    }

    body.presale-detail .choose-btns > a.btn-append {
        width: 100%;
        min-width: 0;
    }

    body.presale-detail .rection ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ============================================================
   18. 详情页：楼层区窄屏兜底
   说明：presale.php 未做移动端分流，手机同样渲染本模板。评论概览
        .actor-new 固定 740px、.not_impression 固定内边距、规格表
        .Ptable 三栏固定缩进，都会在窄屏被楼层 overflow:hidden 裁掉，
        此处按 goods_new.css 同类修正思路等比复位。
   ============================================================ */
@media screen and (max-width: 900px) {
    /* 楼层标题与切换标签 */
    body.presale-detail .gm-f-item .gm-title h3 {
        float: none;
        margin-bottom: 8px;
    }

    body.presale-detail .gm-f-item .gm-title .gm-f-tab {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 18px;
        margin: 0 0 10px;
        float: none;
    }

    body.presale-detail .gm-f-item .gm-title .gm-f-tab li,
    body.presale-detail .gm-f-item .gm-title .gm-f-tab a {
        float: none;
        margin-right: 0;
    }

    /* 商品详情：参数摘要四列收为一列，允许换行不再截断 */
    body.presale-detail .goods-para .column {
        width: 100%;
    }

    body.presale-detail .goods-para .column span {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    body.presale-detail .more-par {
        padding-right: 0;
        text-align: left;
    }

    /* 活动描述富文本内的图片按容器宽度收缩，避免撑破楼层 */
    body.presale-detail .gm-f-details img {
        max-width: 100%;
        height: auto;
    }

    /* 规格参数表：三栏固定缩进改为上下排布 */
    body.presale-detail .Ptable .Ptable-item h3 {
        float: none;
        width: auto;
        margin-bottom: 4px;
        text-align: left;
    }

    body.presale-detail .Ptable .Ptable-item dl {
        margin-left: 0;
    }

    body.presale-detail .Ptable .Ptable-item dt {
        float: none;
        width: auto;
        text-align: left;
    }

    body.presale-detail .Ptable .Ptable-item dd {
        margin-left: 0;
    }

    /* 评论概览：好评率与印象标签换行排列 */
    body.presale-detail .praise-rate-warp {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px 20px;
        padding: 0 0 14px;
    }

    body.presale-detail .praise-rate-warp .rate {
        flex: 0 0 auto;
        margin-left: 0;
        padding: 0 20px 0 0;
    }

    body.presale-detail .praise-rate-warp .actor-new {
        flex: 1 1 200px;
        width: auto;
        height: auto;
        margin-left: 0;
        overflow: visible;
    }

    body.presale-detail .praise-rate-warp .actor-new dl {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    body.presale-detail .praise-rate-warp .actor-new dd {
        margin: 0;
    }

    body.presale-detail .praise-rate-warp .not_impression {
        margin: 0;
        padding-left: 0;
        background: none;
        line-height: 1.7;
    }

    body.presale-detail .com-list-main {
        padding: 0;
    }

    /* 讨论区 div 表格列宽固定，内容超宽时就地横向滚动，不再被裁切 */
    body.presale-detail .gm-f-tiezi .table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ============================================================
   19. 详情楼层：内容留白与富文本排版
   说明：.gm-floors 自 16 章起作为白卡容器，但楼层自身零内边距，
        标题与正文紧贴卡片左右边缘；参数摘要四列导致长字段被
        省略号截断；活动描述富文本受全局 reset 影响，标题退化为
        正文尺寸、列表丢失项目符号。此处统一补回。
   ============================================================ */

/* 楼层内边距：与 Tab 行文字对齐；末层不再叠加外边距 */
body.presale-detail .gm-floors {
    padding: 4px 24px 24px;
}

body.presale-detail .gm-floors .gm-f-item:last-child {
    margin-bottom: 0;
}

/* 参数摘要：四列改两列，长字段完整显示不再被省略号截断 */
body.presale-detail .goods-para .column {
    width: 50%;
}

body.presale-detail .goods-para .column span {
    white-space: normal;
}

body.presale-detail .more-par {
    padding-right: 0;
}

/* 评论概览：印象标签区固定 740px 改自适应，避免留白后溢出 */
body.presale-detail .praise-rate-warp {
    display: flex;
    align-items: center;
    gap: 0 20px;
    overflow: visible;
}

body.presale-detail .praise-rate-warp .rate {
    flex: 0 0 auto;
    margin-left: 0;
    padding: 6px 20px 6px 0;
    float: none;
}

body.presale-detail .praise-rate-warp .actor-new {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    height: auto;
    margin-left: 0;
    float: none;
    overflow: visible;
}

body.presale-detail .praise-rate-warp .actor-new dl {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.presale-detail .praise-rate-warp .actor-new dd {
    margin: 0;
}

/* 活动描述富文本：抓取导入统一包裹在 .zol-detail，无包裹时直接位于楼层内 */
body.presale-detail .gm-f-details .zol-detail {
    color: #3d4450;
    font-size: 14px;
    line-height: 1.85;
}

body.presale-detail .gm-f-details .zol-detail h1,
body.presale-detail .gm-f-details > h1 {
    margin: 24px 0 12px;
    color: #1f2530;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
}

body.presale-detail .gm-f-details .zol-detail h2,
body.presale-detail .gm-f-details > h2 {
    margin: 22px 0 12px;
    color: #1f2530;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
}

body.presale-detail .gm-f-details .zol-detail h3,
body.presale-detail .gm-f-details > h3,
body.presale-detail .gm-f-details .zol-detail h4,
body.presale-detail .gm-f-details > h4 {
    margin: 18px 0 8px;
    color: #1f2530;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

body.presale-detail .gm-f-details .zol-detail p,
body.presale-detail .gm-f-details > p {
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.85;
}

body.presale-detail .gm-f-details .zol-detail ul,
body.presale-detail .gm-f-details > ul {
    margin: 12px 0;
    padding-left: 22px;
    list-style: disc outside;
}

body.presale-detail .gm-f-details .zol-detail ol,
body.presale-detail .gm-f-details > ol {
    margin: 12px 0;
    padding-left: 22px;
    list-style: decimal outside;
}

body.presale-detail .gm-f-details .zol-detail li,
body.presale-detail .gm-f-details > li {
    margin: 6px 0;
    line-height: 1.8;
}

body.presale-detail .gm-f-details .zol-detail strong,
body.presale-detail .gm-f-details > strong {
    color: #1f2530;
    font-weight: 600;
}

body.presale-detail .gm-f-details img {
    max-width: 100%;
    height: auto;
}

body.presale-detail .gm-f-details .zol-detail > *:first-child {
    margin-top: 0;
}

body.presale-detail .gm-f-details .zol-detail > *:last-child {
    margin-bottom: 0;
}

/* ============================================================
   20. 详情栏宽度 + 吸顶 Tab 对齐 + 窄屏参数单列
   说明：
   1) 源系统商品详情页（goods_new.css）把 .g-m-detail 改为
      width: calc(100% - 230px)，详情栏随 .w1200 容器流式铺满；
      预售详情页沿用旧版写死的 970px，宽屏下右侧空出 300px 以上，
      与商品详情页、秒杀详情页的详情栏宽度不一致。此处按源系统
      同款改为流式宽度（左栏 200 + 间距 30）。
   2) .detail-hd-fixed 为 position:fixed，包含块为视口，无法再用
      百分比宽度引用详情栏，故改用 left + right 双向定位；取值按
      .w1200 三档容器宽度反推，使吸顶条与楼层严格同宽同位。
   ============================================================ */

/* 详情栏流式宽度（≥1221px；≤1220px 由既有窄屏规则置为 100%） */
@media screen and (min-width: 1221px) {
    body.presale-detail .g-m-detail {
        width: calc(100% - 230px);
    }

    body.presale-detail .gm-tabbox {
        width: 100%;
    }
}

/* 吸顶条：容器 1200 定宽居中，详情栏左边缘 = 50% - 600 + 230，
   右边缘 = 50% + 600 */
body.presale-detail .gm-tabbox.detail-hd-fixed {
    left: calc(50% - 370px);
    right: calc(50% - 600px);
    width: auto;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}

/* ≥1660px：.w1200 换 1600 宽版，左右各内缩 38（内容区 1524），
   左边缘 = 50% - 800 + 38 + 230，右边缘 = 50% + 800 - 38 */
@media screen and (min-width: 1660px) {
    body.presale-detail .gm-tabbox.detail-hd-fixed {
        left: calc(50% - 532px);
        right: calc(50% - 762px);
    }
}

body.presale-detail .gm-tabbox.detail-hd-fixed .gm-tab {
    float: none;
    border-bottom: 0;
    border-radius: 0;
    background: #fff;
}

/* 吸顶投影由外层 box-shadow 承担，避免 1920px 绝对定位条参与溢出计算 */
body.presale-detail .gm-tabbox.detail-hd-fixed .gm-tab-qp-bort {
    display: none;
}

/* 窄屏桌面 / 平板：容器改为 width:auto + 左右 16px 内边距，吸顶条同步贴边；
   max-width 1168 = 容器上限 1200 减去左右内边距，避免 1201~1220 区间偏宽 */
@media screen and (max-width: 1220px) {
    body.presale-detail .gm-tabbox.detail-hd-fixed {
        left: 16px;
        right: 16px;
        width: auto;
        max-width: 1168px;
        margin: 0 auto;
    }
}

/* 窄屏：标签行改横向可滑，避免 float 换行后被固定行高遮住 */
@media screen and (max-width: 900px) {
    /* 手机布局视口可能被页头组件撑宽，改为贴视口两侧，内边距补齐到楼层内容线 */
    body.presale-detail .gm-tabbox.detail-hd-fixed {
        left: 0;
        right: 0;
    }

    body.presale-detail .gm-tabbox.detail-hd-fixed .gm-tab {
        padding-left: 40px;
    }

    body.presale-detail .gm-tabbox .gm-tab {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    body.presale-detail .gm-tabbox .gm-tab li {
        flex: 0 0 auto;
        float: none;
    }

    body.presale-detail .goods-para .column {
        width: 100%;
    }
}

/* ============================================================
   21. 列表页 / 分类页容器居中修正
   说明：
   1) 全站容器 .w1200 只负责宽度（1600 / 1200 / auto 三档），
      居中由 .w 类（base.css `.w{ margin:0 auto; }`）提供。
      本频道的 .ps-* 容器只挂了 .w1200、未挂 .w，因此 ≥1221px
      时整体贴左（实测 1440 下容器 x=0，而页头 .w.w1200 的
      x=112.5），主内容与页头页脚横向错位 112.5px。
      这里按源系统「页面级为 .w1200 补 auto 外边距」的既有做法
      （style.css `.homeindex .w1200{ margin:0 auto; }` 同款）修正，
      而不新增 .w 类，避免 .w:before/:after 的 clearfix 伪元素
      插入 flex / grid 容器后多出轨道、挤占布局。
   2) 原第 8 章的断点 1240px 与 .w1200 的窄屏档 1220px 不一致：
      1221~1240 区间 .w1200 仍是 width:1200px !important，叠加
      16px 外边距后总宽 1232 会横向溢出；≤1220 区间 .w1200 自带
      左右 16px 内边距，再叠 16px 外边距会变成双倍缩进（32px），
      比页头（16px）多缩一截。这里把断点统一到 1220px。
   ============================================================ */

/* 宽屏 / 桌面：补回 .w 负责的 auto 外边距 */
@media screen and (min-width: 1221px) {
    body.presale-page .ps-hero__inner,
    body.presale-page .ps-quicknav,
    body.presale-page .ps-section,
    body.presale-page .ps-pagehead,
    body.presale-page .ps-filter,
    body.presale-page .ps-resultbar,
    body.presale-category .ps-grid,
    body.presale-advance .ps-grid {
        margin-left: auto;
        margin-right: auto;
    }
}

/* 窄屏：宽度交给 .w1200（auto + max-width 1200），左右统一 16px */
@media screen and (max-width: 1220px) {
    body.presale-page .ps-hero__inner,
    body.presale-page .ps-quicknav,
    body.presale-page .ps-section,
    body.presale-page .ps-pagehead,
    body.presale-page .ps-filter,
    body.presale-page .ps-resultbar,
    body.presale-category .ps-grid,
    body.presale-advance .ps-grid,
    body.presale-page .ps-empty {
        width: auto !important;
        margin-left: 16px;
        margin-right: 16px;
    }

    /* .ps-section 只声明了 padding-bottom，会被 .w1200 的左右 16px
       内边距补上，与 margin 叠加成 32px，这里清零；其余容器均以
       padding 简写显式写了左右 0 或卡片自身内边距，不会再吃到
       .w1200 的内边距，无需处理 */
    body.presale-page .ps-section {
        padding-left: 0;
        padding-right: 0;
    }
}

/* 首页 .ps-grid 嵌在已居中的 .ps-section 内，自身不参与水平定位。
   第 8 章的 1240px 断点会无条件给它加 16px 左右外边距，与
   .ps-section 的偏移叠加成双倍缩进（窄屏实测 x=32 而非 16），
   这里用更高优先级退回 0；分类页的 .ps-grid 是独立 .w1200 容器，
   不在此列 */
body.presale-page.presale-index .ps-grid {
    margin-left: 0;
    margin-right: 0;
}

/* ≥1660px：.w1200 换成「宽 1600 + 左右内缩 38」的内容列 1524，
   但本频道部分容器用 padding 简写把 .w1200 的左右内边距覆盖掉了，
   导致内容线停在容器外框（152.5）而其他区块停在内容列（190.5），
   同一页出现两条纵向对齐线，这里按内容列补齐：
   1) 无背景的内容层用 padding 跟随 .w1200；
   2) 带背景边框的卡片用 max-width 收到 1524 并自动居中，
      否则 width 固定 1600 时加 margin 会直接向右溢出。 */
@media screen and (min-width: 1660px) {
    body.presale-page .ps-hero__inner,
    body.presale-page .ps-pagehead,
    body.presale-page .ps-resultbar,
    body.presale-category .ps-grid,
    body.presale-advance .ps-grid {
        padding-left: 38px;
        padding-right: 38px;
    }

    body.presale-page .ps-quicknav,
    body.presale-page .ps-filter,
    body.presale-page .ps-empty {
        width: auto !important;
        max-width: 1524px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ============================================================
   22. 分类页头图面包屑
   分类页与列表页共用 .ps-hero 和 .ps-quicknav，页面标题区从原来的
   .ps-pagehead 改为头图后，面包屑（$ur_here，含 <a> 链接）落在深色
   渐变底上。原 .ps-pagehead__crumb 是浅底灰字，链接颜色也偏淡，
   在深色底上几乎不可读；这里按头图文字层级重新定义一套白色系。
   ============================================================ */
body.presale-page .ps-hero__crumb {
    font-size: 12px;
    line-height: 20px;
    color: rgba(255, 255, 255, .62);
}

body.presale-page .ps-hero__crumb a {
    color: rgba(255, 255, 255, .62);
    transition: color .18s ease;
}

body.presale-page .ps-hero__crumb a:hover {
    color: #fff;
}

/* 分隔符用「/」而非「>」，避免 RTL 语言（阿拉伯语、希伯来语）里
   方向断言与文本流向相反；两侧留窄间距，不用空格缩排 */
body.presale-page .ps-hero__crumb-sep {
    margin: 0 6px;
    color: rgba(255, 255, 255, .35);
}

body.presale-page .ps-hero__crumb-cur {
    color: rgba(255, 255, 255, .85);
}

/* ============================================================
   23. 窄屏快捷筛选：横向滚动改为两列换行
   第 3 章的 768px 断点把 .ps-quicknav 设为 overflow-x:auto、
   子项 flex:0 0 auto（横向滑动）。中文四个词在 360 宽下刚好
   放得下，但俄语、德语等文案更长，第 4 项会算出容器右边界之外
   被裁掉，必须滑动才能看到，且滑动时卡片描边会被切断。
   这里改为固定两列换行，四个入口在任意语言下都能一次看全。
   ============================================================ */
@media screen and (max-width: 768px) {
    body.presale-page .ps-quicknav {
        flex-wrap: wrap;
        gap: 4px;
        overflow-x: visible;
    }

    body.presale-page .ps-quicknav__item {
        flex: 1 1 calc(50% - 2px);
        min-width: 0;
        /* 子项未设 box-sizing，默认 content-box 下 flex-basis 不含左右 padding，
           两列会在换行时多出 32px 反而排成四行 */
        box-sizing: border-box;
        padding: 0 8px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ============================================================
   24. 头图清除页头残留浮动（避免被挤成 0 宽）
   第 2 章的 .ps-hero 用了 overflow:hidden 裁切装饰圆，这使它成为
   BFC；而页头组件内部有未清除的 float（语言/货币下拉、搜索块），
   长文案站点（实测德语）里 float 会溢出 header 边界。按 CSS 规范，
   BFC 不能与浮动重叠，于是 .ps-hero 的 border box 被收缩到 float
   右侧：实测 485 视口下 x=984、width=0，整个头图不可见。
   中文、俄语刚好未触发，容易漏测。
   这里用 clear:both 让头图下移到所有浮动之下，宽度自然恢复；
   不改页头组件，避免影响全站其它页面。
   ============================================================ */
body.presale-page .ps-hero {
    clear: both;
}

/* ============================================================
   25. 新品发布：按结束日期分层的排期表
   本页原有的信息架构是「按结束日期分组」，左侧日期徽标 + 右侧当日
   结束的预售商品；这里只替换视觉，分组逻辑仍由 PHP 的 $date_result
   提供。日期列用固定 132px，楼层内网格降为 3 列以保证卡片宽度。
   日期文字采用「日号 + 年-月」的纯数字写法，不用「年 / 月」词序，
   避免不同语言里量词与词序差异导致排版错乱；年、月、日均为
   tabular-nums，数字切换时日期徽标不会左右跳动。
   ============================================================ */
body.presale-page .ps-schedule {
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 40px;
}

body.presale-page .ps-schedule__floor {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 24px 0;
    border-top: 1px dashed var(--ps-border);
}

body.presale-page .ps-schedule__floor:first-child {
    border-top: 0;
    padding-top: 8px;
}

body.presale-page .ps-schedule__date {
    flex: 0 0 132px;
    padding: 16px 12px;
    background: var(--ps-card);
    border: 1px solid var(--ps-border);
    border-radius: var(--ps-radius-md);
    box-shadow: var(--ps-shadow);
    text-align: center;
    box-sizing: border-box;
}

body.presale-page .ps-schedule__day {
    display: block;
    font-size: 40px;
    line-height: 1;
    font-weight: 700;
    color: var(--ps-primary);
    font-variant-numeric: tabular-nums;
}

body.presale-page .ps-schedule__ym {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--ps-muted);
    font-variant-numeric: tabular-nums;
}

body.presale-page .ps-schedule__count {
    display: block;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--ps-border);
    font-size: 12px;
    color: var(--ps-text);
}

/* 楼层内网格：用后代选择器压过第 8 章给 .ps-grid 加的左右 16px
   外边距（楼层已在 .ps-schedule 的内容列内，再缩一截会双倍）*/
body.presale-page .ps-schedule .ps-grid {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media screen and (max-width: 900px) {
    body.presale-page .ps-schedule__floor {
        flex-direction: column;
        gap: 12px;
        padding: 18px 0;
    }

    /* 日期徽标改横排：日号在首、件数靠尾，
       用逻辑属性保证阿拉伯语等 RTL 站点方向正确 */
    body.presale-page .ps-schedule__date {
        flex: none;
        display: flex;
        align-items: baseline;
        gap: 10px;
        width: 100%;
        padding: 10px 14px;
        text-align: start;
    }

    body.presale-page .ps-schedule__day {
        font-size: 26px;
    }

    body.presale-page .ps-schedule__ym {
        margin-top: 0;
    }

    body.presale-page .ps-schedule__count {
        margin-top: 0;
        margin-inline-start: auto;
        padding-top: 0;
        border-top: 0;
    }

    body.presale-page .ps-schedule .ps-grid {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
