/* 矿物列表页样式 */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.filter-bar select {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
    background: #fff;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}
.filter-bar select:focus {
    border-color: #00c45a;
}
.filter-bar input {
    width: 220px;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}
.filter-bar input:focus {
    border-color: #00c45a;
}
.filter-bar .btn-primary {
    padding: 8px 20px;
    background: linear-gradient(135deg, #00e36e 0%, #00c45a 100%);
    color: #000;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.filter-bar .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 227, 110, 0.3);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

.mineral-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.mineral-card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    transform: translate3d(0,-6px,0);
}

.mineral-card .img-wrap {
    position: relative;
    overflow: hidden;
}

.mineral-card .img-wrap img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.mineral-card:hover .img-wrap img {
    transform: scale(1.06);
}

.mineral-card .info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mineral-card .category {
    color: #00c45f;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.mineral-card .title {
    font-size: 15px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.mineral-card .title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.mineral-card .title a:hover {
    color: #00c45f;
}

.mineral-card .meta {
    display: flex;
    gap: 12px;
    color: #95a5a6;
    font-size: 12px;
    align-items: center;
}

.mineral-card .publisher {
    display: flex;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f5f5f5;
    cursor: pointer;
}

.mineral-card .publisher-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    margin-right: 6px;
    object-fit: cover;
}

.mineral-card .publisher-name {
    font-size: 12px;
    color: #7f8c8d;
    transition: color 0.2s;
    font-weight: 500;
}

.mineral-card .publisher:hover .publisher-name {
    color: #00c45f;
}

.mineral-card .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f5f5f5;
}

.mineral-card .exchange {
    background: linear-gradient(135deg, #fff8e1, #fff3e0);
    color: #f57c00;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

.pagination {
    text-align: center;
    padding: 20px 0;
}

@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .mineral-card .img-wrap img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }
}
