/* Dashboard页面专用样式 - 紫色主题 */

/* 主页主题色定义 */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --secondary-color: #764ba2;
}

/* 主页特有的按钮样式 */
.btn-gradient {
    background: var(--primary-gradient);
    border: none;
    color: white;
}

.btn-gradient:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    color: white;
}

/* 主页文字渐变效果 */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 主页专用边框渐变 */
.dashboard .border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box, var(--primary-gradient) border-box;
}

/* 主页专用Alert样式 */
.dashboard .alert-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
}

/* 悬停提升效果 */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

/* 教学模式卡片 */
.method-card {
    border-radius: 15px;
    transition: all 0.3s ease;
}

/* 紫色文字 */
.text-purple {
    color: #9c27b0 !important;
}

/* 滚动指示器 */
.scroll-indicator {
    cursor: pointer;
}

/* 动画效果 */
.animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animate__fadeInDown {
    animation-name: fadeInDown;
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

.animate__fadeInRight {
    animation-name: fadeInRight;
}

.animate__bounce {
    animation-name: bounce;
}

.animate__delay-1s {
    animation-delay: 1s;
}

.animate__delay-2s {
    animation-delay: 2s;
}

/* 动画关键帧 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -100%, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 100%, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(100%, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes bounce {
    from, 20%, 53%, 80%, to {
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        transform: translate3d(0, -30px, 0);
    }
    70% {
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

/* FAQ手风琴样式 */
.accordion-button {
    border-radius: 15px !important;
    border: none;
    background-color: #f8f9fa;
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-item {
    border-radius: 15px !important;
    overflow: hidden;
}

/* 演示组件样式 */
.demo-showcase {
    position: relative;
}

.demo-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px !important;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.demo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2) !important;
}

.demo-card .grammar-info-card {
    border-color: #e9ecef !important;
    transition: all 0.3s ease;
}

.demo-card .grammar-info-card:hover {
    border-color: #dee2e6 !important;
    background-color: #f1f3f4 !important;
}

.demo-card .btn {
    transition: all 0.3s ease;
    font-weight: 500;
}

.demo-card .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.demo-card .form-control:read-only {
    background-color: #f8f9fa;
    border-color: #e9ecef;
}

/* 响应式优化 */
@media (max-width: 991px) {
    .demo-showcase {
        margin-top: 3rem;
    }
    
    .demo-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto !important;
        padding: 3rem 0;
    }
    
    .demo-card .btn {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
} 