/* 编程快速入门页面增强样式 */

/* 页面整体样式 */
.quickstart-container {
    background: linear-gradient(135deg, #f8fffe 0%, #f1f8e9 50%, #e8f5e8 100%);
    min-height: 100vh;
    padding: 2rem 0;
    position: relative;
}

.quickstart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%234caf50" opacity="0.05"/><circle cx="80" cy="80" r="1" fill="%232e7d32" opacity="0.03"/><circle cx="50" cy="10" r="0.5" fill="%234caf50" opacity="0.04"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    z-index: 1;
}

.quickstart-content {
    position: relative;
    z-index: 2;
}

/* 主标题样式 */
.quickstart-title {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2e7d32, #4caf50, #66bb6a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 0 4px 8px rgba(46, 125, 50, 0.1);
    position: relative;
}

.quickstart-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #4caf50, #81c784);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* 卡片容器样式 */
.enhanced-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(76, 175, 80, 0.1);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 16px rgba(76, 175, 80, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.enhanced-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4caf50, transparent);
    transition: left 0.6s ease;
}

.enhanced-card:hover::before {
    left: 100%;
}

.enhanced-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.15),
        0 8px 32px rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.3);
}

.enhanced-card-body {
    padding: 2.5rem;
}

/* 时间线样式增强 */
.enhanced-timeline {
    position: relative;
    padding: 3rem 0;
}

.enhanced-timeline::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #4caf50, #81c784, #4caf50);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.enhanced-timeline-item {
    position: relative;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.enhanced-timeline-item:nth-child(1) { animation-delay: 0.2s; }
.enhanced-timeline-item:nth-child(2) { animation-delay: 0.4s; }
.enhanced-timeline-item:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.enhanced-timeline-icon {
    position: absolute;
    left: 35px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    border: 4px solid white;
    box-shadow: 
        0 8px 20px rgba(76, 175, 80, 0.3),
        0 0 0 8px rgba(76, 175, 80, 0.1);
    transition: all 0.3s ease;
}

.enhanced-timeline-item:hover .enhanced-timeline-icon {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 
        0 12px 28px rgba(76, 175, 80, 0.4),
        0 0 0 12px rgba(76, 175, 80, 0.15);
}

.enhanced-timeline-content {
    margin-left: 100px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    border: 1px solid rgba(76, 175, 80, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
}

.enhanced-timeline-content::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 30px;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(76, 175, 80, 0.1);
    transform: rotate(45deg);
    border-right: none;
    border-bottom: none;
}

.enhanced-timeline-item:hover .enhanced-timeline-content {
    transform: translateX(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-color: rgba(76, 175, 80, 0.2);
}

.enhanced-timeline-content h3 {
    color: #2e7d32;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.enhanced-timeline-content p {
    color: #616161;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* 学习资源卡片样式 */
.resource-card {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4caf50, #81c784, #4caf50);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

.resource-card:hover::before {
    transform: scaleX(1);
}

.resource-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.resource-card .card-body {
    padding: 2.5rem 2rem;
    text-align: center;
}

.resource-card .fas {
    color: #4caf50;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.resource-card:hover .fas {
    transform: scale(1.1) rotate(5deg);
    color: #2e7d32;
}

.resource-card h3 {
    color: #2e7d32;
    font-weight: 600;
    margin-bottom: 1rem;
}

.resource-card p {
    color: #616161;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* 增强按钮样式 */
.enhanced-btn {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    position: relative;
    overflow: hidden;
}

.enhanced-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.enhanced-btn:hover::before {
    left: 100%;
}

.enhanced-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    color: white;
    text-decoration: none;
}

.enhanced-btn:active {
    transform: translateY(0) scale(0.98);
}

.enhanced-btn-lg {
    padding: 1rem 3rem;
    font-size: 1.2rem;
    border-radius: 16px;
}

.enhanced-btn-outline {
    background: transparent;
    border: 2px solid #4caf50;
    color: #4caf50;
    box-shadow: none;
}

.enhanced-btn-outline:hover {
    background: #4caf50;
    color: white;
    border-color: #4caf50;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

/* 检查列表样式 */
.enhanced-checklist {
    list-style: none;
    padding: 0;
}

.enhanced-checklist li {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.enhanced-checklist li:hover {
    transform: translateX(5px);
}

.enhanced-checklist li i {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .quickstart-title {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
    
    .enhanced-card-body {
        padding: 1.5rem;
    }
    
    .enhanced-timeline-content {
        margin-left: 80px;
        padding: 1.5rem;
    }
    
    .enhanced-timeline-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .resource-card .card-body {
        padding: 2rem 1.5rem;
    }
    
    .enhanced-btn-lg {
        padding: 0.875rem 2rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .quickstart-title {
        font-size: 2rem;
    }
    
    .enhanced-timeline-content {
        margin-left: 60px;
        padding: 1rem;
    }
    
    .enhanced-timeline-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        left: 32px;
    }
    
    .enhanced-timeline::before {
        left: 32px;
        width: 3px;
    }
}

/* 加载动画 */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.enhanced-card.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}

/* 滚动动画 */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* 浮动装饰元素 */
.floating-decoration {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(76, 175, 80, 0.3);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-decoration:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-decoration:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-decoration:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.6;
    }
} 