/* AI教辅模块样式 */
.ai-assistant-container {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ccdcee, #c6ddf0, #ffffff);
    background-size: 400% 400%;
    animation: gradient-bg 15s ease infinite;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(74, 144, 226, 0.2);
    overflow: hidden;
    color: #2c3e50;
    padding: 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@keyframes gradient-bg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.ai-header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(74, 144, 226, 0.3);
}

.ai-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.ai-icon {
    margin-right: 10px;
    filter: drop-shadow(0 0 3px rgba(74, 144, 226, 0.5));
    color: #4a90e2;
}

.ai-title h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 1px 2px rgba(74, 144, 226, 0.2);
    letter-spacing: 1px;
    color: #2c3e50;
}

.ai-subtitle {
    font-size: 12px;
    opacity: 0.7;
    margin: 0;
    font-weight: 300;
    color: #5a6c7d;
}

.ai-features {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}

.ai-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(74, 144, 226, 0.15);
    border: 1px solid rgba(74, 144, 226, 0.2);
    height: 120px;
}

.ai-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.25);
    background: rgba(255, 255, 255, 0.9);
}

.ai-card-icon {
    margin-bottom: 8px;
    color: #4a90e2;
    filter: drop-shadow(0 0 3px rgba(74, 144, 226, 0.3));
}

.ai-card h3 {
    font-size: 14px;
    margin: 0 0 4px 0;
    font-weight: 600;
    color: #2c3e50;
}

.ai-card p {
    font-size: 10px;
    margin: 0;
    opacity: 0.7;
    color: #5a6c7d;
}

.ai-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 144, 226, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ai-card:hover .ai-card-overlay {
    opacity: 1;
}

.ai-card-overlay span {
    background: linear-gradient(90deg, #4a90e2, #7ea9cb);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.ai-footer {
    margin-top: auto;
}

.ai-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 10px;
    border-top: 1px solid rgba(74, 144, 226, 0.3);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    text-shadow: 0 1px 2px rgba(74, 144, 226, 0.2);
}

.stat-label {
    font-size: 10px;
    opacity: 0.7;
    color: #5a6c7d;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .ai-features {
        flex-direction: column;
    }
    
    .ai-card {
        margin-bottom: 10px;
        height: auto;
        min-height: 100px;
    }
    
    .ai-header {
        margin-bottom: 10px;
        padding-bottom: 8px;
    }
    
    .ai-title h2 {
        font-size: 18px;
    }
    
    .ai-subtitle {
        font-size: 10px;
    }
    
    .ai-stats {
        padding-top: 8px;
    }
    
    .stat-number {
        font-size: 14px;
    }
    
    .stat-label {
        font-size: 9px;
    }
}