.search-container {
    background: rgba(20, 20, 40, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(100, 150, 255, 0.2);
    padding: 30px;
    margin-bottom: 30px;
}
.search-form {
    display: flex;
    gap: 10px;
}
.search-form input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid rgba(100, 150, 255, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 20, 0.5);
    color: #fff;
}
.search-form select {
    padding: 12px 20px;
    border: 1px solid rgba(100, 150, 255, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 20, 0.5);
    color: #fff;
}
.search-form button {
    padding: 12px 20px;
    background: linear-gradient(45deg, #64d2ff, #0066cc);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.search-form button:hover {
    box-shadow: 0 0 15px rgba(100, 200, 255, 0.8);
}
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}
.material-card {
    background: rgba(20, 20, 40, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(100, 150, 255, 0.2);
    padding: 24px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.material-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #64d2ff, #a855f7);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.material-card:hover {
    transform: translateY(-8px);
    border-color: rgba(100, 150, 255, 0.4);
    box-shadow: 0 8px 32px rgba(100, 150, 255, 0.2);
}
.material-card:hover::before {
    transform: scaleX(1);
}
.material-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.material-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #64d2ff;
    flex: 1;
}
.rarity-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.rarity-badge-普通 {
    background: rgba(158, 158, 158, 0.2);
    color: #9e9e9e;
    border: 1px solid rgba(158, 158, 158, 0.3);
}
.rarity-badge-稀有 {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}
.rarity-badge-史诗 {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
    border: 1px solid rgba(33, 150, 243, 0.3);
}
.rarity-badge-传说 {
    background: rgba(156, 39, 176, 0.2);
    color: #9c27b0;
    border: 1px solid rgba(156, 39, 176, 0.3);
}
.material-info {
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(0, 0, 20, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(100, 150, 255, 0.1);
}
.material-info p {
    margin: 6px 0;
    color: #9090a0;
    font-size: 0.95rem;
}
.material-info p strong {
    color: #64d2ff;
    margin-right: 8px;
}
.price-section {
    margin: 16px 0;
}
.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
    padding: 8px 0;
    border-bottom: 1px solid rgba(100, 150, 255, 0.1);
}
.price-label {
    color: #9090a0;
    font-size: 0.9rem;
}
.price-value {
    font-weight: bold;
    font-size: 1rem;
}
.base-price {
    color: #4CAF50;
}
.seller-price {
    color: #ff9800;
}
.price-diff {
    font-size: 0.8rem;
    margin-left: 8px;
}
.price-diff.positive {
    color: #4CAF50;
}
.price-diff.negative {
    color: #f44336;
}
.seller-info {
    margin: 16px 0;
    padding: 16px;
    background: rgba(0, 0, 20, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(100, 150, 255, 0.2);
}
.seller-info p {
    margin: 6px 0;
    font-size: 0.9rem;
}
.seller-name {
    font-weight: bold;
    color: #64d2ff;
    font-size: 1rem;
}
.stock-info {
    display: flex;
    align-items: center;
    margin-top: 8px;
}
.stock-bar {
    flex: 1;
    height: 6px;
    background: rgba(100, 150, 255, 0.2);
    border-radius: 3px;
    margin: 0 10px;
    overflow: hidden;
}
.stock-fill {
    height: 100%;
    background: linear-gradient(90deg, #64d2ff, #a855f7);
    border-radius: 3px;
    transition: width 0.3s ease;
}
.stock-text {
    font-size: 0.8rem;
    color: #9090a0;
    min-width: 40px;
}
.table-container {
    background: rgba(20, 20, 40, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(100, 150, 255, 0.2);
    padding: 20px;
    margin-bottom: 30px;
    overflow-x: auto;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.data-table th {
    background: rgba(100, 150, 255, 0.1);
    padding: 12px 15px;
    text-align: left;
    color: #64d2ff;
    font-weight: bold;
    border-bottom: 1px solid rgba(100, 150, 255, 0.2);
}
.data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(100, 150, 255, 0.1);
    color: #e0e0e0;
}
.data-table tr:hover {
    background: rgba(100, 150, 255, 0.05);
}
.data-table td .stock-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.data-table td .stock-bar {
    flex: 1;
    height: 6px;
    background: rgba(100, 150, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}
.data-table td .stock-fill {
    height: 100%;
    background: linear-gradient(90deg, #64d2ff, #a855f7);
    border-radius: 3px;
    transition: width 0.3s ease;
}
.data-table td .stock-text {
    font-size: 0.8rem;
    color: #9090a0;
    min-width: 40px;
}
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}
.page-btn {
    padding: 8px 16px;
    background: rgba(20, 20, 40, 0.8);
    border: 1px solid rgba(100, 150, 255, 0.3);
    border-radius: 6px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}
.page-btn:hover {
    background: rgba(100, 150, 255, 0.2);
    color: #64d2ff;
}
.page-btn.active {
    background: linear-gradient(45deg, #64d2ff, #0066cc);
    color: white;
}
@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
    }
    .materials-grid {
        grid-template-columns: 1fr;
    }
}
