/**
 * 骨架屏样式
 * 用于加载状态时的占位显示
 */

.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-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.skeleton-image {
    width: 100%;
    height: 200px;
    margin-bottom: 1rem;
}

.skeleton-title {
    height: 20px;
    width: 60%;
    margin: 0 1rem 0.5rem 1rem;
}

.skeleton-tags {
    display: flex;
    gap: 0.5rem;
    margin: 0 1rem 1rem 1rem;
}

.skeleton-tag {
    height: 24px;
    width: 60px;
    border-radius: 12px;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

/* 品牌卡片骨架屏 */
.brand-card-skeleton {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.brand-card-skeleton .skeleton-image {
    width: 100%;
    height: 200px;
}

.brand-card-skeleton .skeleton-content {
    padding: 1rem;
}

.brand-card-skeleton .skeleton-title {
    height: 20px;
    width: 70%;
    margin-bottom: 0.75rem;
}

.brand-card-skeleton .skeleton-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.brand-card-skeleton .skeleton-meta-item {
    height: 24px;
    width: 50px;
    border-radius: 12px;
}

/* 模态框骨架屏 */
.modal-skeleton {
    padding: 2rem;
}

.modal-skeleton .skeleton-title {
    height: 28px;
    width: 40%;
    margin-bottom: 1rem;
}

.modal-skeleton .skeleton-text {
    height: 16px;
    width: 100%;
    margin-bottom: 0.5rem;
}

.modal-skeleton .skeleton-text:nth-child(2) {
    width: 90%;
}

.modal-skeleton .skeleton-text:nth-child(3) {
    width: 80%;
}

.modal-skeleton .skeleton-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.modal-skeleton .skeleton-image-item {
    height: 150px;
    border-radius: 8px;
}
