* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f7fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #a0a0a0;
    font-size: 1rem;
}

nav {
    margin-bottom: 1rem;
}

.back-link {
    color: #60a5fa;
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    text-decoration: underline;
}

.filters {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.filter-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
}

button, .btn-reset {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
}

button {
    background: #1a1a2e;
    color: white;
}

button:hover {
    background: #16213e;
}

.btn-reset {
    background: #e5e7eb;
    color: #666;
}

.results-info {
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.model-card {
    background: white;
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.model-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.model-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.model-category {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.no-category {
    color: #999;
    font-style: italic;
}

.model-price {
    margin-bottom: 0.5rem;
}

.price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #059669;
}

.price-label {
    font-size: 0.8rem;
    color: #666;
}

.price-free {
    color: #10b981;
    font-weight: 500;
}

.model-description {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.no-desc {
    color: #999;
    font-style: italic;
}

.model-suppliers {
    font-size: 0.8rem;
    color: #999;
}

.model-info {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.model-info h2, .suppliers-section h2 {
    font-size: 1.3rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-card {
    background: #f5f7fa;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.info-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.info-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
}

.info-note {
    display: block;
    font-size: 0.75rem;
    color: #999;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: #e0e7ff;
    color: #4338ca;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.description {
    color: #666;
    line-height: 1.7;
    white-space: pre-line;
}

.section-info {
    color: #666;
    margin-bottom: 1rem;
}

.supplier-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.supplier-table th,
.supplier-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.supplier-table th {
    background: #f5f7fa;
    font-weight: 600;
    font-size: 0.85rem;
    color: #666;
}

.supplier-table tbody tr:hover {
    background: #fafafa;
}

.supplier-table tbody tr:last-child td {
    border-bottom: none;
}

.supplier-name {
    font-weight: 500;
}

.supplier-link {
    color: #1a1a2e;
    text-decoration: none;
    font-weight: 500;
}

.supplier-link:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-left: 0.5rem;
}

.badge.foreign {
    background: #fef3c7;
    color: #d97706;
}

.table .price {
    font-weight: 600;
}

.table .free {
    color: #10b981;
}

.btn-visit {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: #1a1a2e;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
}

.btn-visit:hover {
    background: #16213e;
}

.no-suppliers {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    color: #666;
}

footer {
    text-align: center;
    padding: 2rem 0;
    color: #999;
    font-size: 0.85rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .filter-form {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .supplier-table {
        overflow-x: auto;
    }

    .model-grid {
        grid-template-columns: 1fr;
    }
}
