/* =================
   煤质列表页面样式
   ================= */

/* 页面头部 */
.page-header { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: white; 
    padding: 60px 0 40px; 
    margin-bottom: 40px; 
    text-align: center;
}

.page-title { 
    font-size: 36px; 
    font-weight: bold; 
    margin-bottom: 10px;
}

.page-subtitle { 
    font-size: 16px; 
    opacity: 0.9;
}

/* 标签栏 */
.tabs-bar { 
    background: white; 
    border-radius: 12px; 
    box-shadow: 0 2px 12px rgba(0,0,0,.06); 
    padding: 12px; 
    display: flex; 
    gap: 10px; 
    margin-bottom: 20px; 
}

.tab-item { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    height: 40px; 
    padding: 0 18px; 
    border-radius: 10px; 
    color: #606266; 
    text-decoration: none; 
    transition: all .2s; 
    font-size: 14px; 
}

.tab-item:hover { 
    background: #f5f7fa; 
    color: #409EFF; 
    text-decoration: none; 
}

.tab-item.active { 
    background: #4E8EF7; 
    color: #fff; 
}

/* 煤源网格 */
.source-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 20px; 
}

.source-card { 
    background: white; 
    border-radius: 12px; 
    padding: 20px; 
    box-shadow: 0 2px 12px rgba(0,0,0,.06); 
    border: 1px solid #f0f0f0; 
    transition: all 0.2s; 
    position: relative; 
}

.source-card:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 6px 20px rgba(0,0,0,.10); 
}

.card-link { 
    color: inherit; 
    text-decoration: none; 
    display: block; 
}

.card-link:hover { 
    text-decoration: none; 
    color: inherit; 
}

.source-name { 
    font-size: 18px; 
    font-weight: 600; 
    color: #333; 
    margin-bottom: 12px; 
}

.source-specs { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 6px 12px; 
    margin-bottom: 12px; 
}

.spec-item { 
    font-size: 13px; 
    color: #606266; 
}

.source-price { 
    font-size: 20px; 
    font-weight: 700; 
    color: #f5576c; 
}

/* 收藏按钮 */
.favorite-btn { 
    position: absolute; 
    right: 16px; 
    bottom: 16px; 
    width: 34px; 
    height: 34px; 
    border-radius: 50%; 
    background: #fff; 
    border: 1px solid #e9e9e9; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    transition: all .2s; 
    z-index: 2; 
}

.favorite-btn:hover { 
    border-color: #f5576c; 
    box-shadow: 0 2px 8px rgba(245,87,108,.25); 
}

.favorite-btn i { 
    color: #909399; 
    font-size: 16px; 
}

.favorite-btn.favorited { 
    border-color: #f5576c; 
    background: rgba(245,87,108,0.08); 
}

.favorite-btn.favorited i { 
    color: #f5576c; 
}

/* 我的标签 */
.my-tag { 
    position: absolute; 
    right: 14px; 
    bottom: 14px; 
    padding: 6px 10px; 
    border-radius: 16px; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: #fff; 
    font-size: 12px; 
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3); 
    z-index: 2; 
}

.my-tag i { 
    margin-right: 5px; 
}

/* 选择标记 */
.select-badge { 
    position: absolute; 
    left: 5px; 
    top: 2px; 
    width: 22px; 
    height: 22px; 
    border-radius: 6px; 
    background: rgba(255,255,255,0.95); 
    border: 1px solid #e9e9e9; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    z-index: 2; 
}

.select-badge i { 
    color: #c0c4cc; 
    font-size: 14px; 
}

.source-card.selected { 
    border-color: #4E8EF7; 
    box-shadow: 0 6px 20px rgba(78, 142, 247, 0.18); 
}

.source-card.selected .select-badge { 
    border-color: #4E8EF7; 
    background: rgba(78,142,247,0.10); 
}

.source-card.selected .select-badge i { 
    color: #4E8EF7; 
}

/* 底部操作栏 */
.bottom-bar { 
    position: sticky; 
    bottom: 0; 
    margin-top: 24px; 
    background: rgba(245,247,250,0.9); 
    backdrop-filter: blur(6px); 
    padding: 12px 0; 
    z-index: 100; 
}

.bottom-bar-inner { 
    background: #fff; 
    border: 1px solid #e9e9e9; 
    border-radius: 12px; 
    padding: 12px 16px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    box-shadow: 0 2px 12px rgba(0,0,0,.06); 
}

.selected-count { 
    color: #606266; 
    font-size: 14px; 
}

.next-btn { 
    height: 40px; 
    padding: 0 18px; 
    border-radius: 10px; 
    border: none; 
    background: #4E8EF7; 
    color: #fff; 
    font-size: 14px; 
    cursor: pointer; 
    transition: all 0.3s;
}

.next-btn:hover {
    background: #3d7de6;
    transform: translateY(-2px);
}

.next-btn:disabled { 
    background: #c0c4cc; 
    cursor: not-allowed; 
    transform: none;
}

.clear-btn { 
    height: 40px; 
    padding: 0 14px; 
    border-radius: 10px; 
    border: 1px solid #e9e9e9; 
    background: #fff; 
    color: #606266; 
    font-size: 14px; 
    cursor: pointer; 
    margin-right: 10px; 
    transition: all 0.3s;
}

.clear-btn:hover {
    border-color: #4E8EF7;
    color: #4E8EF7;
}

.select-all-btn { 
    height: 40px; 
    padding: 0 14px; 
    border-radius: 10px; 
    border: 1px solid #4E8EF7; 
    background: #fff; 
    color: #4E8EF7; 
    font-size: 14px; 
    cursor: pointer; 
    margin-right: 10px; 
    transition: all 0.3s;
}

.select-all-btn:hover { 
    background: #f0f5ff; 
}

/* 分页 */
.pagination-wrapper { 
    display: flex; 
    justify-content: center; 
    margin-top: 30px; 
}

/* 空状态 */
.empty-state { 
    background: white; 
    border-radius: 12px; 
    padding: 60px 20px; 
    text-align: center; 
    color: #909399; 
    box-shadow: 0 2px 12px rgba(0,0,0,.06); 
}

.empty-state .title { 
    font-size: 16px; 
    color: #606266; 
    margin-bottom: 8px; 
}

.empty-state .desc { 
    font-size: 13px; 
}

/* =================
   煤质列表响应式布局
   ================= */

/* 平板端适配 */
@media (max-width: 992px) {
    .page-header {
        padding: 40px 0 30px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .tabs-bar {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px;
    }
    
    .source-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .page-header {
        padding: 30px 15px 25px;
        margin-bottom: 20px;
    }
    
    .page-title {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .page-subtitle {
        font-size: 14px;
    }
    
    /* 标签栏 */
    .tabs-bar {
        border-radius: 8px;
        padding: 10px;
        margin-bottom: 15px;
        gap: 6px;
    }
    
    .tab-item {
        height: 36px;
        padding: 0 14px;
        font-size: 13px;
        border-radius: 8px;
    }
    
    /* 煤源卡片网格 */
    .source-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .source-card {
        padding: 15px;
        border-radius: 10px;
    }
    
    .source-name {
        font-size: 16px;
        margin-bottom: 10px;
        padding-right: 45px;
    }
    
    .source-specs {
        gap: 5px 10px;
        margin-bottom: 10px;
    }
    
    .spec-item {
        font-size: 12px;
    }
    
    .source-price {
        font-size: 18px;
    }
    
    /* 收藏按钮 */
    .favorite-btn {
        width: 30px;
        height: 30px;
        right: 12px;
        bottom: 12px;
    }
    
    .favorite-btn i {
        font-size: 14px;
    }
    
    /* 我的标签 */
    .my-tag {
        padding: 5px 8px;
        font-size: 11px;
        right: 12px;
        bottom: 12px;
    }
    
    /* 选择标记 */
    .select-badge {
        width: 20px;
        height: 20px;
        border-radius: 5px;
    }
    
    .select-badge i {
        font-size: 12px;
    }
    
    /* 底部操作栏 */
    .bottom-bar {
        margin-top: 15px;
        padding: 10px 0;
    }
    
    .bottom-bar-inner {
        padding: 10px 12px;
        border-radius: 10px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .selected-count {
        font-size: 13px;
        width: 100%;
        text-align: center;
    }
    
    .clear-btn,
    .select-all-btn,
    .next-btn {
        height: 36px;
        padding: 0 12px;
        font-size: 13px;
        border-radius: 8px;
        flex: 1;
        min-width: 0;
    }
    
    .clear-btn {
        margin-right: 0;
    }
    
    .select-all-btn {
        margin-right: 0;
    }
    
    /* 分页 */
    .pagination-wrapper {
        margin-top: 20px;
    }
    
    /* 空状态 */
    .empty-state {
        padding: 40px 15px;
        border-radius: 10px;
    }
    
    .empty-state .title {
        font-size: 15px;
    }
    
    .empty-state .desc {
        font-size: 12px;
    }
}

/* 小屏手机适配 */
@media (max-width: 480px) {
    .page-title {
        font-size: 20px;
    }
    
    .tab-item {
        height: 34px;
        padding: 0 12px;
        font-size: 12px;
    }
    
    .bottom-bar-inner {
        flex-direction: column;
    }
    
    .clear-btn,
    .select-all-btn,
    .next-btn {
        width: 100%;
    }
}
