/*
 * ailhj-points-modal.css - 自定义购买积分弹窗样式
 * 布局：四列积分卡片、简化自定义区域
 */

/* ========== 积分弹窗整体 ========== */
.ailhj-points-form {
    padding: 24px;
    max-height: 80vh;
    overflow-y: auto;
}

/* ========== 积分卡片网格 - 四列 ========== */
.ailhj-points-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* ========== 积分卡片特殊样式 ========== */
.ailhj-points-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 8px;
    border: 1px solid var(--main-border-color);
    border-radius: 10px;
    background: var(--main-bg-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ailhj-points-box:hover {
    border-color: var(--ailhj-blue-op3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ailhj-points-box.active {
    border-color: var(--ailhj-blue);
    background: var(--ailhj-blue-op05);
}

/* 积分数量显示 */
.ailhj-points-amount {
    font-size: 18px;
    font-weight: 600;
    color: var(--main-color);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ailhj-points-icon-sm svg {
    width: 16px;
    height: 16px;
    color: var(--ailhj-orange);
}

/* 积分价格显示 */
.ailhj-points-price {
    font-size: 14px;
    color: var(--ailhj-red);
    font-weight: 500;
}

.ailhj-points-price .ailhj-currency-xs {
    font-size: 12px;
    margin-right: 2px;
}

/* ========== 自定义积分输入区域 ========== */
.ailhj-points-custom .ailhj-custom-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid var(--main-border-color);
    border-radius: 10px;
    background: var(--main-bg-color);
    transition: all 0.3s ease;
}

.ailhj-points-custom .ailhj-custom-input-wrap:focus-within {
    border-color: var(--ailhj-blue);
    box-shadow: 0 0 0 3px var(--ailhj-blue-op1);
}

.ailhj-points-custom .ailhj-points-icon {
    display: flex;
    align-items: center;
    margin-right: 12px;
}

.ailhj-points-custom .ailhj-points-icon svg {
    width: 20px;
    height: 20px;
    color: var(--ailhj-orange);
}

.ailhj-points-custom .ailhj-custom-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    color: var(--main-color);
    outline: none;
    padding: 0;
}

.ailhj-points-custom .ailhj-custom-input::placeholder {
    color: var(--muted-color);
}

.ailhj-points-custom .ailhj-custom-hint {
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted-color);
    line-height: 1.5;
}

/* ========== 响应式优化 ========== */
@media (max-width: 640px) {
    .ailhj-points-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .ailhj-points-form {
        padding: 16px;
    }
    
    .ailhj-points-box {
        padding: 14px 6px;
    }
    
    .ailhj-points-amount {
        font-size: 16px;
    }
    
    .ailhj-points-price {
        font-size: 13px;
    }
}
