/**
 * 页面骨架图样式
 */

/* 骨架图基础样式 */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

/* 骨架图动画 */
@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 骨架图变体 */
.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-title {
    height: 24px;
    margin-bottom: 16px;
    width: 60%;
}

.skeleton-image {
    height: 200px;
    margin-bottom: 16px;
}

.skeleton-card {
    padding: 20px;
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.skeleton-button {
    height: 40px;
    width: 120px;
    border-radius: 6px;
}

.skeleton-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

/* 页面骨架图 */
.page-skeleton {
    padding: 20px;
}

.skeleton-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.skeleton-logo {
    width: 48px;
    height: 48px;
    margin-right: 16px;
}

.skeleton-nav {
    display: flex;
    gap: 20px;
    margin-left: auto;
}

.skeleton-nav-item {
    width: 80px;
    height: 20px;
}

.skeleton-hero {
    height: 400px;
    margin-bottom: 40px;
    border-radius: 8px;
}

.skeleton-section {
    margin-bottom: 40px;
}

.skeleton-section-title {
    height: 32px;
    margin-bottom: 24px;
    width: 30%;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.skeleton-service-card {
    padding: 20px;
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.skeleton-service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
    border-radius: 50%;
}

.skeleton-service-title {
    height: 20px;
    margin-bottom: 12px;
    width: 70%;
}

.skeleton-service-description {
    height: 80px;
    margin-bottom: 16px;
}

.skeleton-service-features {
    margin-bottom: 20px;
}

.skeleton-service-feature {
    height: 16px;
    margin-bottom: 8px;
    width: 90%;
}

.skeleton-service-button {
    height: 40px;
    width: 140px;
    border-radius: 6px;
}

.skeleton-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.skeleton-about-image {
    height: 300px;
    border-radius: 8px;
}

.skeleton-about-content {
    display: flex;
    flex-direction: column;
}

.skeleton-about-title {
    height: 32px;
    margin-bottom: 16px;
    width: 50%;
}

.skeleton-about-text {
    height: 120px;
    margin-bottom: 24px;
}

.skeleton-about-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 24px;
}

.skeleton-about-stat {
    text-align: center;
}

.skeleton-about-stat-number {
    height: 24px;
    margin-bottom: 8px;
    width: 80px;
}

.skeleton-about-stat-label {
    height: 16px;
    width: 60px;
}

.skeleton-news {
    margin-bottom: 40px;
}

.skeleton-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.skeleton-news-card {
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.skeleton-news-image {
    height: 180px;
}

.skeleton-news-content {
    padding: 16px;
}

.skeleton-news-date {
    height: 14px;
    margin-bottom: 12px;
    width: 100px;
}

.skeleton-news-title {
    height: 20px;
    margin-bottom: 12px;
    width: 90%;
}

.skeleton-news-summary {
    height: 60px;
    margin-bottom: 16px;
}

.skeleton-news-link {
    height: 14px;
    width: 80px;
}

/* 响应式设计 */
@media (max-width: 767px) {
    .skeleton-about {
        grid-template-columns: 1fr;
    }
    
    .skeleton-hero {
        height: 250px;
    }
    
    .skeleton-grid {
        grid-template-columns: 1fr;
    }
    
    .skeleton-news-grid {
        grid-template-columns: 1fr;
    }
}
