/* 通用组件样式表 - 完全复刻源网站样式 */

/* ===== 电台卡片样式 ===== */
.station-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e9ecef;
}

.station-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #007bff;
}

.station-image {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.station-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.station-card:hover .station-logo {
    transform: scale(1.05);
}

.station-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    opacity: 0.7;
}

.station-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.station-card:hover .station-overlay {
    opacity: 1;
}

.play-btn {
    background: #007bff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn:hover {
    background: #0056b3;
    transform: scale(1.1);
}

.station-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.station-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.station-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.station-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.station-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.listeners-count {
    color: #666;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.listeners-count i {
    color: #007bff;
}

.btn-listen {
    background: #007bff;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-listen:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

/* ===== 分页样式 ===== */
.pagination-container {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.pagination-nav {
    display: flex;
    align-items: center;
}

.pagination-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-item {
    margin: 0;
}

.pagination-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 44px;
    justify-content: center;
}

.pagination-link:hover {
    background: #e9ecef;
    color: #333;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pagination-link.current {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination-item.active .pagination-link {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination-item.disabled .pagination-link {
    background: #f8f9fa;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-ellipsis {
    padding: 0.75rem 0.5rem;
    color: #999;
    font-weight: 500;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1200px) {
    .station-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .station-card {
        margin-bottom: 1rem;
    }
    
    .station-image {
        height: 140px;
    }
    
    .station-name {
        font-size: 1rem;
    }
    
    .station-description {
        font-size: 0.85rem;
    }
    
    .pagination-list {
        gap: 0.25rem;
    }
    
    .pagination-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
        min-width: 40px;
    }
    
    .pagination-link span {
        display: none;
    }
    
    .pagination-link i {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .station-image {
        height: 120px;
    }
    
    .station-info {
        padding: 0.75rem;
    }
    
    .station-name {
        font-size: 0.95rem;
    }
    
    .station-description {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }
    
    .btn-listen {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .pagination-link {
        padding: 0.5rem;
        min-width: 36px;
        font-size: 0.85rem;
    }
    
    .pagination-list {
        gap: 0.2rem;
    }
}

@media (max-width: 480px) {
    .station-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .btn-listen {
        width: 100%;
        text-align: center;
    }
    
    .pagination-link {
        min-width: 32px;
        padding: 0.4rem;
    }
}

/* ===== 加载动画 ===== */
.station-card.loading {
    animation: cardLoading 1.5s infinite;
}

@keyframes cardLoading {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* ===== 空状态样式 ===== */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.empty-state p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ===== 工具类 ===== */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
} 