/*
 * 会员弹窗样式 - 三板块布局
 */

/* 针对 VIP 弹窗的 modal-dialog 自适应宽度覆盖 */
.modal:has(.ailhj-payvip-modal) .modal-dialog,
.modal .ailhj-payvip-modal .modal-dialog {
    width: auto;
    max-width: 950px;
    margin: 30px auto;
}
.modal:has(.ailhj-payvip-modal) .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    padding: 30px;
    background: linear-gradient(160deg, rgb(199, 223, 252) 0%, #ffffff 40%) !important;
    overflow: visible !important;
    position: relative;
}

.ailhj-payvip-modal {
    padding: 0px;
    max-width: 900px;
    margin: 0 auto;
}

.ailhj-payvip-container {
    display: flex;
    gap: 0;
    align-items: stretch;
    min-height: 500px;
}

/* 左侧会员方案 - 板块1 */
.ailhj-payvip-left {
    flex: 1;
    min-width: 400px;
    padding-right: 24px;
    border-right: 1px solid var(--main-border-color);
}

.ailhj-payvip-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.ailhj-payvip-title {
    margin: 0;
    font-size: 16px;
    font-weight: normal;
    color: var(--main-color);
    flex-shrink: 0;
}

.ailhj-section-title {
    font-size: 14px;
    font-weight: normal;
    margin: 20px 0 12px;
    color: var(--main-color);
}

/* 会员类型卡片 */
.ailhj-vip-type-section {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.ailhj-vip-type-card {
    border:1px solid var(--main-border-color);
    border-radius: 8px;
    padding: 20px;
    background: var(--main-bg-color);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 0 0 calc(50% - 7.5px);
    overflow: hidden;
}

.ailhj-vip-type-card:hover,
.ailhj-vip-type-card.active {
    border-color: var(--ailhj-blue);
    box-shadow: 0 4px 12px rgba(1, 114, 255, 0.15);
}

/* 选中标记 - 右下角三角 */
.ailhj-vip-type-card.active::before,
.ailhj-duration-option.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 28px 28px;
    border-color: transparent transparent var(--ailhj-blue) transparent;
    z-index: 1;
    border-radius: 0px 0px 6px 0;
}

.ailhj-vip-type-card.active::after,
.ailhj-duration-option.active::after {
    content: '\f00c';
    font-family: 'FontAwesome';
    position: absolute;
    bottom: 2px;
    right: 4px;
    color: white;
    font-size: 10px;
    z-index: 2;
}

.ailhj-vip-type-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ailhj-vip-type-header h4 {
    font-size: 18px;
    font-weight: normal;
    color: var(--main-color);
    margin: 0;
    display: flex;
    align-items: center;
}

.ailhj-vip-type-header h4 img {
    vertical-align: middle;
    margin-right: 8px;
}



.ailhj-vip-type-desc ul {
    margin: 0;
    padding-left: 16px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted-color);
}

.ailhj-vip-type-desc li {
    margin-bottom: 4px;
}

/* 会员介绍（显示在卡片下方） */
.ailhj-vip-intro {
    flex: 1;
    min-width: 0;
    padding: 6px 14px;
    background: #fff8e7;
    border-radius: 16px;
    font-size: 13px;
    color: #8b6914;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ailhj-vip-intro i {
    color: #d4a574;
    font-size: 12px;
}

.ailhj-vip-intro span {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 开通会员更多内容（灰色背景） */
.ailhj-vip-more {
    margin-top: 15px;
    padding: 15px;
    background: var(--main-shadow);
    border: 1px solid var(--main-border-color);
    border-radius: 8px;
    font-size: 13px;
    color: var(--muted-color);
    line-height: 1.6;
}

.ailhj-vip-more div,
.ailhj-vip-more p {
    margin-bottom: 6px;
}

.ailhj-vip-more div:last-child,
.ailhj-vip-more p:last-child {
    margin-bottom: 0;
}

/* 时长选择 */
.ailhj-duration-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding-top: 10px;
}

.ailhj-duration-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--main-border-color);
    border-radius: 8px;
    padding: 15px 20px;
    flex: 0 0 calc(50% - 5px);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    
}

.ailhj-duration-option:hover,
.ailhj-duration-option.active {
    border-color: var(--ailhj-blue);
    background: white;
}

.ailhj-duration-tag {
    position: absolute;
    top: -15px;
    left: -1px;
    background: var(--ailhj-red);
    color: white;
    padding: 2px 12px;
    border-radius: 12px 4px 12px 4px;
    font-size: 11px;
    font-weight: 500;
    z-index: 1;
}
.ailhj-duration-price {
    font-size: 14px;
    color: var(--main-color);
    font-weight: 500;
}

.ailhj-duration-amount {
    font-size: 18px;
    font-weight: 600;
    color: var(--ailhj-red);
}

.ailhj-original-price {
    font-size: 12px;
    color: var(--muted-color);
    text-decoration: line-through;
    margin-left: 8px;
}

.ailhj-duration-info {
    display: flex;
    align-items: center;
}

/* 会员权益 */
.ailhj-vip-benefits {
    margin: 0;
    padding-left: 0;
    list-style: none;
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted-color);
}

.ailhj-vip-benefits li {
    margin-bottom: 6px;
    padding-left: 16px;
    position: relative;
}

.ailhj-vip-benefits li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--ailhj-blue);
    border-radius: 50%;
}

/* 会员备注 */
.ailhj-vip-note {
    background: var(--main-shadow);
    border: 1px solid var(--main-border-color);
    border-radius: 6px;
    padding: 12px;
    font-size: 13px;
    color: var(--muted-color);
    margin-top: 15px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.ailhj-vip-note i {
    color: var(--ailhj-blue);
    margin-top: 2px;
}

/* 右侧区域 - 板块2和3 */
.ailhj-payvip-right {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

/* 右上：用户信息和订单信息 - 板块2 */
.ailhj-right-top {
    flex: 1;
    padding-left: 24px;
    padding-right: 0;
    border-bottom: 1px solid var(--main-border-color);
}

/* 用户信息 */
.ailhj-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.ailhj-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--main-border-color);
}

.ailhj-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ailhj-user-details h4 {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: normal;
    color: var(--main-color);
}

.ailhj-user-level {
    font-size: 13px;
    color: var(--muted-color);
}

.ailhj-vip-badge {
    color: var(--ailhj-blue);
    font-weight: 500;
}

.ailhj-non-vip {
    color: var(--muted-color);
}

/* 订单信息 */
.ailhj-order-info {
    margin-bottom: 0;
}

.ailhj-order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
}

.ailhj-order-title {
    color: var(--muted-2-color);
}

.ailhj-order-item:last-child {
    border-bottom: none;
}

.ailhj-order-value {
    font-weight: 500;
    color: var(--main-color);
}

/* 右下：支付区域 - 板块3 */
.ailhj-right-bottom {
    padding: 20px 25px;
    padding-right: 0;
    padding-bottom: 0;
    background: var(--main-bg-color);
}

/* 支付方式 */

.ailhj-payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ailhj-payment-label {
    font-size: 14px;
    color: var(--main-color);
}

.ailhj-payment-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--ailhj-red);
}

.ailhj-payment-options .but {
    width: 100%;
    border-radius: 8px;
    padding: 14px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.ailhj-payment-options .but:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 114, 255, 0.3);
}
.payment-method-radio img {
    height: 25px;
}
/* 移动端用户信息和支付区域 - PC端隐藏 */
.ailhj-mobile-user-info,
.ailhj-mobile-payment {
    display: none !important;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .ailhj-payvip-container {
        flex-direction: column;
    }
    
    .ailhj-payvip-left {
        border-right: none;
        border-bottom: 1px solid var(--main-border-color);
        min-width: unset;
    }
    
    .ailhj-payvip-right {
        width: 100%;
    }
    
    .ailhj-right-top {
        border-bottom: 1px solid var(--main-border-color);
    }
}

@media (max-width: 768px) {
    .modal:has(.ailhj-payvip-modal) .modal-dialog,
    .modal .ailhj-payvip-modal .modal-dialog {
        margin: 10px;
        max-width: 100%;
    }
    
    .modal:has(.ailhj-payvip-modal) .modal-content {
        padding: 15px;
        border-radius: 12px;
    }
    
    .ailhj-payvip-modal {
        padding: 0;
    }
    
    /* 移动端容器占满全宽 */
    .modal:has(.ailhj-payvip-modal) .modal-content {
        width: 100%;
        max-width: 100%;
    }
    
    .ailhj-payvip-container {
        min-height: auto;
        width: 100%;
    }
    
    .ailhj-payvip-left,
    .ailhj-right-top,
    .ailhj-right-bottom {
        padding: 0;
        width: 100%;
    }
    
    /* 隐藏右侧区域（订单信息） */
    .ailhj-payvip-right {
        display: none;
    }
    
    /* 左侧占据全部宽度 */
    .ailhj-payvip-left {
        border: none;
        min-width: unset;
        width: 100%;
    }
    
    /* 在左侧顶部添加用户信息 */
    .ailhj-payvip-left::before {
        content: '';
        display: block;
        order: -1;
    }
    
    /* 移动端用户信息和支付区域默认隐藏，在移动端显示 */
    .ailhj-mobile-user-info,
    .ailhj-mobile-payment {
        display: none;
    }
    
    /* 移动端用户信息显示在顶部 */
    .ailhj-mobile-user-info {
        display: flex !important;
        align-items: center;
        gap: 12px;
        padding: 12px 0;
        margin-bottom: 15px;
    }
    
    .ailhj-mobile-user-info .ailhj-user-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        overflow: hidden;
        border: 2px solid var(--main-border-color);
        flex-shrink: 0;
    }
    
    .ailhj-mobile-user-info .ailhj-user-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .ailhj-mobile-user-info .ailhj-user-details h4 {
        margin: 0 0 3px;
        font-size: 14px;
        font-weight: 500;
        color: var(--main-color);
    }
    
    .ailhj-mobile-user-info .ailhj-user-level {
        font-size: 12px;
        color: var(--muted-color);
    }
    
    /* 调整标题区域 */
    .ailhj-payvip-header {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .ailhj-vip-intro {
        width: 100%;
        margin-top: 5px;
    }
    
    /* 会员卡片调整为两列 */
    .ailhj-vip-type-section {
        gap: 10px;
    }
    
    .ailhj-vip-type-card {
        flex: 0 0 calc(50% - 5px);
        padding: 12px;
        min-width: 0;
    }
    
    .ailhj-vip-type-header h4 {
        font-size: 14px;
    }
    
    /* 时长选项调整为两列，价格显示在右侧 */
    .ailhj-duration-options {
        gap: 10px;
        justify-content: flex-start;
    }
    
    .ailhj-duration-option {
        flex: 0 0 calc(50% - 5px);
        padding: 10px 12px;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .ailhj-duration-tag {
        display: inline-block;
        margin-bottom: 4px;
        padding: 1px 8px;
        font-size: 10px;
        border-radius: 8px 2px 8px 2px;
    }
    
    .ailhj-duration-price {
        font-size: 13px;
        color: var(--main-color);
    }
    
    /* 价格区域 - 原价在上，现价在下，整体靠右 */
    .ailhj-duration-info {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }
    
    .ailhj-original-price {
        font-size: 11px;
        color: var(--muted-color);
        text-decoration: line-through;
        margin: 0 0 2px 0;
    }
    
    .ailhj-duration-amount {
        font-size: 16px;
        font-weight: 600;
        color: var(--ailhj-red);
    }
    
    /* 权益列表字体缩小 */
    .ailhj-vip-benefits {
        font-size: 12px;
    }
    
    .ailhj-vip-benefits li {
        margin-bottom: 4px;
    }
    
    /* 底部支付区域 */
    .ailhj-mobile-payment {
        display: block !important;
        margin-top: 20px;
        padding-top: 15px;
        border-top: 1px solid var(--main-border-color);
    }
    
    .ailhj-mobile-payment .ailhj-payment-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
    }
    
    .ailhj-mobile-payment .ailhj-payment-amount {
        font-size: 20px;
        font-weight: 700;
        color: var(--ailhj-red);
    }
}
