/* 咨询按钮样式 */
.consult-btn {
    background: #ff6700;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 15px;
    transition: all 0.3s ease;
}
.consult-btn:hover {
    background: #e55a00;
    transform: translateY(-2px);
}

/* 购买定制按钮样式 */
.custom-detail-btn {
    background: var(--atf-thm-color);
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s ease;
    margin-top: 20px;
}
.custom-detail-btn:hover {
    background: #e55a00;
    transform: translateY(-2px);
}

/* 弹窗遮罩层 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    display: none;
}

/* 弹窗主体 */
.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: none;
    overflow: hidden;
    padding: 20px;
}

/* 关闭按钮 */
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
    z-index: 10000;
}
.close-modal:hover {
    color: #ff6700;
}

/* 弹窗内套餐样式优化 */
.atf-checkout-place {
    background: #f8f9fa;
    padding: 25px 20px; /* 上调内边距，增加顶部空间 */
    border-radius: 8px;
    height: 100%;
    box-sizing: border-box; /* 防止内边距撑开容器 */
}
.atf-checkout-place-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    line-height: 1.5; /* 增加行高，标题更舒展 */
}
.atf-order-info-list ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0; /* 增加底部间距，拉开和总价栏的距离 */
    line-height: 1.8; /* 统一列表行高，文字不拥挤 */
}
/* 核心调整：增加列表项的垂直间距，解决偏上问题 */
.atf-order-info-list-desc, .atf-order-info-list-subtotal {
    margin-bottom: 15px; /* 每个列表项底部间距，分散内容 */
}
.atf-order-info-list-desc h4, .atf-order-info-list-subtotal h4 {
    font-size: 14px;
    color: #555;
    margin: 0; /* 去掉原有底部margin，用父元素间距控制更统一 */
    font-weight: normal;
}
.atf-order-info-list-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
    margin-top: 15px; /* 增加顶部间距，拉开和最后一个列表项的距离 */
}
.atf-order-info-list-total span {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}
.atf-checkout-btn-wrapper {
    margin-top: 20px; /* 按钮区增加顶部间距，避免贴总价栏 */
}
.atf-checkout-btn-wrapper .atf-themes-btn {
    background: #ff6700;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.3s ease;
}
.atf-checkout-btn-wrapper .atf-themes-btn:hover {
    background: #e55a00;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .consult-btn {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
    .custom-detail-btn {
        width: 100%;
        padding: 12px 0;
        font-size: 14px;
    }
    .modal-content {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* 弹窗显示状态 */
.modal-overlay.active, .modal-content.active {
    display: block;
}
