/* 预售功能样式 - 黑白主风格 */

/* 预售卡片 */
.presale-card {
    position: relative;
    border: 1px solid #e5e5e5;
    border-radius: 2px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
}
.presale-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    transform: translateY(-3px);
    border-color: #1a1a1a;
}

/* 预售角标 */
.presale-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #1a1a1a;
    color: #fff;
    padding: 4px 14px;
    font-size: 10px;
    font-weight: 600;
    z-index: 2;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* 预售角标 - 黑白风格 */
.presale-badge-bw {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #1a1a1a;
    color: #fff;
    padding: 5px 14px;
    font-size: 10px;
    font-weight: 600;
    z-index: 2;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* 预售状态角标 */
.presale-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 2;
}
.badge-status-live {
    background: #1a1a1a;
    color: #fff;
}
.badge-status-soon {
    background: #fff;
    color: #1a1a1a;
    border: 1.5px solid #1a1a1a;
}
.badge-status-final {
    background: #555;
    color: #fff;
}
.badge-status-end {
    background: #e5e5e5;
    color: #999;
}

/* 预售标题 */
.presale-title {
    font-size: 14px;
    color: #1a1a1a;
    line-height: 1.5;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-weight: 500;
}

/* 预售价格信息 */
.presale-price-info {
    margin: 10px 0;
}
.presale-price {
    color: #1a1a1a;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.presale-price::before {
    content: '￥';
    font-size: 13px;
    font-weight: 600;
}
.presale-original {
    color: #aaa;
    font-size: 13px;
    text-decoration: line-through;
    margin-left: 8px;
}

/* 定金/尾款信息 */
.presale-deposit-info {
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    padding: 8px 12px;
    margin: 10px 0;
    font-size: 13px;
}
.deposit-label, .final-label {
    color: #aaa;
    margin-right: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.deposit-amount {
    color: #1a1a1a;
    font-weight: 700;
    margin-right: 16px;
}
.final-amount {
    color: #555;
    font-weight: 600;
}

/* 预售时间 */
.presale-time {
    margin-top: 10px;
    font-size: 12px;
    color: #888;
}
.presale-time .badge {
    margin-right: 8px;
    background: #1a1a1a;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 2px;
}
.presale-time .text-muted { color: #888 !important; font-size: 11px; }

/* 黑白风格按钮 */
.btn-bw {
    display: inline-block;
    padding: 10px 24px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}
.btn-bw-primary {
    background: #1a1a1a;
    color: #fff;
}
.btn-bw-primary:hover {
    background: #333;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transform: translateY(-1px);
}
.btn-bw-outline {
    background: transparent;
    color: #1a1a1a;
    border: 1.5px solid #1a1a1a;
}
.btn-bw-outline:hover {
    background: #1a1a1a;
    color: #fff;
}

/* 预售按钮 (旧兼容) */
.btn-presale {
    background: #1a1a1a;
    color: #fff;
    border: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-presale:hover {
    color: #fff;
    background: #333;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.btn-presale-final {
    background: #1a1a1a;
    color: #fff;
    border: none;
    font-weight: 600;
    letter-spacing: 1px;
}
.btn-presale-final:hover {
    color: #fff;
    background: #333;
}

/* 预售详情页 */
.presale-detail-info {
    padding: 10px 0;
}
.presale-detail-badge .badge {
    margin-right: 8px;
}

/* 预售价格区域 */
.presale-price-area {
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 2px;
    padding: 20px 24px;
    margin: 16px 0;
    position: relative;
}
.presale-price-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: #1a1a1a;
}
.presale-price-row {
    margin-bottom: 12px;
}
.presale-price-row .label {
    color: #aaa;
    font-size: 11px;
    margin-right: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.presale-price-big {
    color: #1a1a1a;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -1px;
}
.presale-original-price {
    color: #aaa;
    font-size: 14px;
    text-decoration: line-through;
    margin-left: 12px;
}

.presale-price-split {
    display: flex;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #e5e5e5;
}
.presale-price-split .label {
    color: #aaa;
    font-size: 11px;
    margin-right: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.presale-price-split .amount {
    font-size: 17px;
    font-weight: 600;
}
.presale-price-split .deposit {
    color: #1a1a1a;
}
.presale-price-split .final {
    color: #555;
}
.presale-price-split .split-plus {
    margin: 0 16px;
    color: #ccc;
    font-size: 16px;
    font-weight: 300;
}

/* 预售信息栏 */
.presale-info-bar {
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    padding: 14px 18px;
}
.presale-info-bar .info-item {
    display: flex;
    padding: 6px 0;
    font-size: 13px;
}
.presale-info-bar .info-label {
    color: #aaa;
    width: 80px;
    flex-shrink: 0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.presale-info-bar .info-value {
    color: #333;
}

/* 商品详情页预售区块 */
.goods-presale-bar {
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-left: 3px solid #1a1a1a;
    padding: 14px 18px;
    margin: 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.goods-presale-bar .presale-tag {
    background: #1a1a1a;
    color: #fff;
    padding: 3px 12px;
    font-size: 10px;
    font-weight: 600;
    margin-right: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.goods-presale-bar .presale-split {
    font-size: 13px;
    color: #555;
}
.goods-presale-bar .presale-split .amount {
    color: #1a1a1a;
    font-weight: 700;
}
.goods-presale-bar .presale-delivery {
    font-size: 12px;
    color: #aaa;
}

/* 预售倒计时 */
.presale-countdown {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #1a1a1a;
}
.presale-countdown .time-block {
    background: #1a1a1a;
    color: #fff;
    padding: 3px 7px;
    font-weight: 600;
    font-size: 12px;
    min-width: 26px;
    text-align: center;
    letter-spacing: 0.5px;
}

/* 预售列表页分区标签 */
.section-label {
    text-align: center;
    margin-bottom: 30px;
}
.section-label span {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #1a1a1a;
    padding-bottom: 12px;
    border-bottom: 2px solid #1a1a1a;
}

/* 预售列表卡片底部 */
.presale-card .card-footer {
    padding: 14px 16px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
}

/* 预售网格 */
.presale-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 992px) { .presale-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .presale-grid { grid-template-columns: repeat(2, 1fr); } }

/* 预售分区 */
.presale-section { margin-bottom: 60px; }

/* 分页 */
.pagination-wrap {
    text-align: center;
    margin-top: 40px;
}
.pagination-wrap .pagination .page-link {
    color: #1a1a1a;
    border-color: #e5e5e5;
    font-size: 13px;
}
.pagination-wrap .pagination .page-item.active .page-link {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}
