/* CSS 封装 - 弹窗样式 */
.agawmodal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.agawmodal-content {
    background: white;
    width: 95%;
    max-width: 428px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.agawmodal-header {
    background: #eef4ff;
    color: rgb(19, 18, 18);
    padding: 15px 20px;
    position: relative;
    border-bottom: 1px solid #eee;
}

.agawmodal-title {
    text-align: center;
    margin: 0;
    font-size: 20px;
    font-weight: bolder;
    line-height: 1.4;
}

.agawmodal-close-btn {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    color: #999;
    transition: color 0.2s;
}

.agawmodal-close-btn:hover {
    color: #333;
}

.agawmodal-body {
    padding: 20px;
    color: #555;
    line-height: 1.6;
    max-height: 70vh;
    overflow-y: auto;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .agawmodal-content {
        width: 95%;
        border-radius: 8px;
    }
    
    .agawmodal-header {
        padding: 12px 15px;
    }
    
    .agawmodal-title {
        font-size: 18px;
    }
}