/* 文章页面专用样式 */

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: float 15s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    animation: drift 25s linear infinite;
    opacity: 0.4;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes drift {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.hero-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 400;
}

.hero-stats {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item small {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

.hero-actions .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hero-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.hero-actions .btn-light {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    color: #667eea;
    border: none;
}

.hero-actions .btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.hero-actions .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.hero-image:hover img {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        padding: 1.5rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
}

.tutorial-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.tutorial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.tutorial-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.tutorial-card:hover .card-img-top {
    transform: scale(1.05);
}

.platform-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    backdrop-filter: blur(10px);
}

.difficulty-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.stats-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.category-filter {
    background: white;
    border-radius: 50px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 50px;
}

.filter-btn {
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 10px 25px;
    margin: 5px;
    background: white;
    color: #6c757d;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.tutorial-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #6c757d;
}

.tutorial-meta i {
    color: #667eea;
}

/* 热门教程推荐样式 */
.featured-tutorials {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
}

.featured-tutorial-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.featured-tutorial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%) !important;
}

.featured-badge .badge {
    font-size: 0.8rem;
    padding: 6px 12px;
}

.tutorial-stats span {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 统计卡片增强 */
.stat-card small {
    font-weight: 500;
    margin-top: 5px;
    display: block;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .learning-path-connector {
        display: none !important;
    }
    
    .featured-tutorial-card .col-md-4 {
        margin-top: 20px;
    }
    
    .step-features {
        max-width: 100%;
    }
}

/* 悬浮微信二维码样式 */
.floating-wechat {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
}

.floating-wechat-trigger {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #07c160 0%, #05a850 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(7, 193, 96, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.floating-wechat-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(7, 193, 96, 0.6);
}

.floating-wechat-trigger i {
    font-size: 28px;
    color: white;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(7, 193, 96, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(7, 193, 96, 0.7), 0 0 0 10px rgba(7, 193, 96, 0.1);
    }
}

.floating-wechat-content {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    min-width: 200px;
}

.floating-wechat:hover .floating-wechat-content {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

.floating-wechat-content::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid white;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.floating-wechat-header {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #07c160;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 15px;
}

.floating-wechat-header i {
    font-size: 20px;
}

.floating-wechat-qr {
    width: 160px;
    height: 160px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 2px solid #f0f0f0;
}

.floating-wechat-text {
    text-align: center;
}

.floating-wechat-text small {
    display: block;
    color: #666;
    margin-bottom: 5px;
}

.floating-wechat-text strong {
    display: block;
    color: #07c160;
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .floating-wechat {
        right: 10px;
    }

    .floating-wechat-trigger {
        width: 50px;
        height: 50px;
    }

    .floating-wechat-trigger i {
        font-size: 24px;
    }

    .floating-wechat-content {
        right: 65px;
        padding: 15px;
        min-width: 180px;
    }

    .floating-wechat:hover .floating-wechat-content {
        right: 70px;
    }

    .floating-wechat-qr {
        width: 140px;
        height: 140px;
    }
}
