.crystal-friend-links-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 50px 0 40px;
    border-top: 1px solid rgba(52, 152, 219, 0.1);
}

.crystal-friend-links-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.crystal-friend-links-header {
    text-align: center;
    margin-bottom: 40px;
}

.crystal-friend-links-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.crystal-friend-links-title i {
    font-size: 32px;
    color: #3498db;
}

.crystal-friend-links-desc {
    font-size: 16px;
    color: #7f8c8d;
    margin: 0;
    line-height: 1.6;
}

.crystal-friend-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.link-item {
    padding: 10px 20px;
    background: #fff;
    border-radius: 25px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.link-item:hover,
.link-hover {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

.crystal-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    padding: 60px 0 20px;
    position: relative;
}

.crystal-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.5), transparent);
}

.crystal-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.crystal-footer-content {
    display: flex;
    flex-direction: column;
}

.crystal-footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.crystal-footer-brand {
    flex: 1;
}

.crystal-footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.crystal-footer-logo:hover {
    color: #3498db;
    transform: translateX(5px);
}

.crystal-footer-logo i {
    font-size: 30px;
    color: #3498db;
}

.crystal-footer-desc {
    font-size: 15px;
    line-height: 1.7;
    color: #bdc3c7;
    margin: 0;
}

.crystal-footer-social {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.crystal-social-text {
    font-size: 16px;
    color: #95a5a6;
    white-space: nowrap;
    font-weight: 500;
}

.crystal-social-links {
    display: flex;
    gap: 12px;
}

.crystal-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.crystal-social-link:hover,
.social-hover {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: #fff;
    transform: rotate(360deg) scale(1.1);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.crystal-social-link i {
    font-size: 20px;
}

.crystal-footer-bottom {
    display: flex;
    justify-content: center;
    padding: 30px 0;
}

.crystal-footer-copyright {
    text-align: center;
}

.crystal-copyright-text {
    font-size: 14px;
    color: #95a5a6;
    line-height: 1.5;
}

.crystal-icp-link {
    color: #95a5a6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.crystal-icp-link:hover {
    color: #3498db;
}

.crystal-divider {
    margin: 0 12px;
    color: #7f8c8d;
}

.crystal-back-to-top {
    display: none !important;
}

.blog-back-to-top {
    position: fixed;
    right: 25px;
    bottom: 90px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    visibility: hidden;
}

.blog-back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.blog-back-to-top:hover {
    background: linear-gradient(135deg, #2980b9, #27ae60);
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.blog-back-to-top i {
    font-size: 22px;
    color: #fff;
    line-height: 1;
}

.blog-back-to-bottom {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    visibility: hidden;
}

.blog-back-to-bottom.show {
    opacity: 1;
    visibility: visible;
}

.blog-back-to-bottom:hover {
    background: linear-gradient(135deg, #c0392b, #e67e22);
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.blog-back-to-bottom i {
    font-size: 22px;
    color: #fff;
    line-height: 1;
}

.crystal-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(44, 62, 80, 0.2);
    z-index: 1001;
}

.crystal-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    width: 0;
    transition: width 0.2s ease;
}

.crystal-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

.crystal-article-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.crystal-article-item.article-visible,
.crystal-article-item.load-fade {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .crystal-footer-main {
        gap: 40px;
    }
    
    .blog-back-to-top {
        right: 20px;
        bottom: 85px;
    }
    
    .blog-back-to-bottom {
        right: 20px;
        bottom: 20px;
    }
}

@media (max-width: 768px) {
    .crystal-friend-links-section {
        padding: 30px 0 25px;
    }
    
    .crystal-friend-links-container {
        padding: 0 15px;
    }
    
    .crystal-friend-links-title {
        font-size: 22px;
    }
    
    .crystal-friend-links-desc {
        font-size: 14px;
    }
    
    .crystal-footer {
        padding: 40px 0 15px;
    }
    
    .crystal-footer-container {
        padding: 0 15px;
    }
    
    .crystal-footer-main {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .crystal-footer-social {
        justify-content: center;
    }
    
    .blog-back-to-top {
        right: 15px;
        bottom: 80px;
        width: 45px;
        height: 45px;
    }
    
    .blog-back-to-top i {
        font-size: 20px;
    }
    
    .blog-back-to-bottom {
        right: 15px;
        bottom: 20px;
        width: 45px;
        height: 45px;
    }
    
    .blog-back-to-bottom i {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .crystal-friend-links-title {
        font-size: 20px;
        flex-direction: column;
        gap: 5px;
    }
    
    .crystal-friend-links-desc {
        font-size: 13px;
    }
    
    .link-item {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .crystal-footer-logo {
        font-size: 20px;
        justify-content: center;
    }
    
    .crystal-footer-desc {
        font-size: 14px;
    }
    
    .crystal-social-text {
        font-size: 14px;
    }
    
    .crystal-social-link {
        width: 40px;
        height: 40px;
    }
    
    .crystal-social-link i {
        font-size: 18px;
    }
    
    .blog-back-to-top {
        right: 10px;
        bottom: 70px;
        width: 40px;
        height: 40px;
    }
    
    .blog-back-to-top i {
        font-size: 18px;
    }
    
    .blog-back-to-bottom {
        right: 10px;
        bottom: 15px;
        width: 40px;
        height: 40px;
    }
    
    .blog-back-to-bottom i {
        font-size: 18px;
    }
}

@media (min-width: 1400px) {
    .blog-back-to-top {
        right: 30px;
        bottom: 95px;
    }
    
    .blog-back-to-bottom {
        right: 30px;
        bottom: 30px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .blog-back-to-top,
    .blog-back-to-bottom {
        transition: none;
    }
    
    .blog-back-to-top:active,
    .blog-back-to-bottom:active {
        transform: scale(0.95);
    }
}
