/**
 * AiDrumScore - AI驱动的鼓谱转录工具
 * Copyright (c) 2026 苏州市常熟市制谱修修信息技术服务有限责任公司. All rights reserved.
 */
/**
 * 鼓谱库页面样式
 */
.store-page {
    padding-top: 84px;
    min-height: 100vh;
}

.store-header {
    padding: var(--space-2xl) 0;
    text-align: center;
    background: linear-gradient(180deg, rgba(191, 90, 242, 0.08) 0%, transparent 100%);
}

.store-header h1 {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: var(--space-md);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.store-header p {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.store-filters {
    padding: var(--space-lg) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    align-items: center;
    justify-content: space-between;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    align-items: center;
}

.filter-label {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-right: var(--space-xs);
}

.filter-btn {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
}

.search-input {
    padding: 8px 16px;
    padding-left: 36px;
    font-size: 13px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    width: 240px;
    transition: all var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
}

.search-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: 14px;
}

.store-content {
    padding: var(--space-xl) 0;
}

.scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-lg);
}

.score-card {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.score-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.score-cover {
    height: 160px;
    background: linear-gradient(135deg, rgba(191, 90, 242, 0.15) 0%, rgba(94, 92, 230, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.score-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.score-cover-icon {
    font-size: 48px;
    opacity: 0.5;
}

.score-price {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.score-difficulty {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.score-difficulty.easy {
    background: rgba(48, 209, 88, 0.2);
    color: var(--success);
}

.score-difficulty.medium {
    background: rgba(255, 214, 10, 0.2);
    color: var(--warning);
}

.score-difficulty.hard {
    background: rgba(255, 69, 58, 0.2);
    color: var(--danger);
}

.score-info {
    padding: var(--space-md);
}

.score-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.score-artist {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: var(--space-md);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.score-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.score-genre {
    font-size: 12px;
    color: var(--text-tertiary);
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
}

.score-sales {
    font-size: 12px;
    color: var(--text-tertiary);
}

.score-views {
    font-size: 11px;
    color: var(--text-tertiary);
}

.score-report-link {
    display: block;
    font-size: 11px;
    color: var(--text-tertiary);
    text-decoration: none;
    text-align: right;
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    transition: color var(--transition-fast);
}

.score-report-link:hover {
    color: #f59e0b;
}

.store-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xl) 0;
}

.store-empty {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
}

.store-empty-icon {
    font-size: 64px;
    margin-bottom: var(--space-lg);
    opacity: 0.3;
}

.store-empty h3 {
    font-size: 18px;
    margin-bottom: var(--space-sm);
}

.store-empty p {
    color: var(--text-tertiary);
    font-size: 14px;
}

/* 详情页 */
.detail-page {
    padding-top: 84px;
    min-height: 100vh;
}

.detail-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--space-xl);
}

.detail-header {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.detail-cover {
    width: 280px;
    height: 280px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(191, 90, 242, 0.2) 0%, rgba(94, 92, 230, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-cover-icon {
    font-size: 80px;
    opacity: 0.4;
}

.detail-info {
    flex: 1;
}

.detail-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.detail-artist {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.detail-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 14px;
    color: var(--text-secondary);
}

.detail-meta-item span:first-child {
    color: var(--text-tertiary);
}

.detail-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: var(--space-lg);
}

.detail-actions {
    display: flex;
    gap: var(--space-md);
}

.detail-description {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.detail-description h3 {
    font-size: 16px;
    margin-bottom: var(--space-md);
}

.detail-description p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: var(--space-lg);
    transition: color var(--transition-fast);
}

.back-link:hover {
    color: var(--text-primary);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        justify-content: center;
    }

    .search-input {
        width: 100%;
    }

    .scores-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: var(--space-md);
    }

    .score-cover {
        height: 120px;
    }

    .detail-header {
        flex-direction: column;
    }

    .detail-cover {
        width: 100%;
        height: 200px;
    }
}
