/**
 * 模型历史页面样式
 */

/* ===== 基础样式 ===== */
.models-page,
.model-series-page {
    padding: 40px 20px;
    min-height: calc(100vh - 200px);
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin: 0;
}

/* ===== 筛选区域 ===== */
.filter-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.filter-container {
    max-width: 100%;
    margin: 0 auto;
}

.filter-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filter-row:last-child {
    margin-bottom: 0;
}

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

.filter-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
}

.filter-select,
.filter-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.filter-search {
    flex: 2;
    min-width: 250px;
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

/* 搜索区域 */
.search-section {
    margin-bottom: 30px;
}

.search-container {
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    gap: 12px;
    align-items: center;
    flex: 1;
    max-width: 650px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    min-width: 200px;
}

.search-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.search-btn {
    padding: 12px 28px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.search-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.filter-options {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    padding: 10px 18px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.checkbox-label:hover {
    border-color: #3498db;
    background: #f8f9fa;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3498db;
}

.checkbox-label span {
    font-size: 0.95rem;
    color: #2c3e50;
    font-weight: 500;
}

.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

/* ===== 统计区域 ===== */
.stats-section {
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.stat-clickable {
    cursor: pointer;
    position: relative;
}

.stat-clickable:hover {
    border: 2px solid #3498db;
}

.stat-hint {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: #3498db;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.stat-clickable:hover .stat-hint {
    opacity: 1;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.95rem;
    color: #7f8c8d;
    font-weight: 500;
}

/* ===== 模型表格 ===== */
.models-section {
    margin-bottom: 40px;
}

.models-table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.models-table {
    width: 100%;
    border-collapse: collapse;
}

.models-table thead {
    background: #f8f9fa;
}

.models-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
    border-bottom: 2px solid #e0e0e0;
}

.models-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
}

.models-table tbody tr:hover {
    background: #f8f9fa;
}

.models-table td {
    padding: 14px 16px;
    font-size: 0.95rem;
}

.model-date {
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
}

.model-company {
    font-weight: 500;
    color: #2c3e50;
}

.model-name {
    font-weight: 600;
}

.model-link {
    color: #2c3e50;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.model-link:hover {
    color: #3498db;
}

.external-icon {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.series-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.series-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.no-series {
    color: #bdc3c7;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-main {
    background: #fff3cd;
    color: #856404;
}

.badge-other {
    background: #e9ecef;
    color: #495057;
}

.model-features {
    max-width: 400px;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #95a5a6;
    font-size: 1.1rem;
}

/* ===== 动画效果 ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.row-highlight {
    background: #e8f4fd !important;
}

/* ===== 分页 ===== */
.pagination-section {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 10px;
    align-items: center;
}

.page-link {
    padding: 10px 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #3498db;
    text-decoration: none;
    transition: all 0.3s;
}

.page-link:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.page-info {
    padding: 10px 20px;
    color: #7f8c8d;
    font-weight: 500;
}

/* ===== 系列详情页 ===== */
.series-header {
    text-align: center;
    margin-bottom: 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.series-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.series-breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.series-breadcrumb a:hover {
    text-decoration: underline;
}

.separator {
    color: #bdc3c7;
}

.current {
    color: #7f8c8d;
    font-weight: 600;
}

.series-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
}

.series-company {
    margin-top: 12px;
}

.company-badge {
    display: inline-block;
    padding: 8px 20px;
    background: #3498db;
    color: white;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
}

.series-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.series-stats .stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
}

.stat-icon {
    font-size: 2.5rem;
}

.stat-info {
    flex: 1;
    text-align: left;
}

.series-stats .stat-value {
    font-size: 2rem;
    margin-bottom: 4px;
}

/* 优化版统计卡片 */
.series-stats-compact {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 28px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 200px;
}

.stat-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.stat-box-primary {
    border-color: #3498db;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

.stat-box-primary:hover {
    border-color: #2980b9;
    background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
}

.stat-box-info {
    border-color: #2ecc71;
    background: linear-gradient(135deg, #ffffff 0%, #f0fff4 100%);
}

.stat-box-info:hover {
    border-color: #27ae60;
    background: linear-gradient(135deg, #ffffff 0%, #e8f8f0 100%);
}

.stat-box-warning {
    border-color: #f39c12;
    background: linear-gradient(135deg, #ffffff 0%, #fffaf0 100%);
}

.stat-box-warning:hover {
    border-color: #e67e22;
    background: linear-gradient(135deg, #ffffff 0%, #fef5e7 100%);
}

.stat-box-icon {
    font-size: 2.5rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.stat-box-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-box-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-box-primary .stat-box-value {
    color: #3498db;
}

.stat-box-info .stat-box-value {
    color: #2ecc71;
}

.stat-box-warning .stat-box-value {
    color: #f39c12;
}

.stat-box-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== 时间线 ===== */
.timeline-section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid #3498db;
}

/* 水平时间轴 */
.horizontal-timeline-wrapper {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.horizontal-timeline-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}

.horizontal-timeline-scroll::-webkit-scrollbar {
    display: none; /* Chrome Safari */
}

.horizontal-timeline {
    display: flex;
    gap: 20px;
    padding: 10px 5px;
    min-width: min-content;
}

.htimeline-item {
    flex: 0 0 auto;
    width: 200px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px;
    border: 2px solid transparent;
    transition: all 0.3s;
    position: relative;
}

.htimeline-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: #3498db;
}

.htimeline-item.htimeline-main {
    background: linear-gradient(135deg, #fff9e6 0%, #f8f9fa 100%);
    border-color: #f39c12;
}

.htimeline-date {
    text-align: center;
    font-size: 0.85rem;
    color: #3498db;
    font-weight: 600;
    margin-bottom: 10px;
}

.htimeline-content {
    text-align: center;
}

.htimeline-model-name {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
}

.htimeline-model-name .model-link {
    color: inherit;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.htimeline-model-name .model-link:hover {
    color: #3498db;
}

.htimeline-features {
    color: #6c757d;
    font-size: 0.8rem;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

/* 滚动提示 */
.timeline-scroll-hint {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding: 0 10px;
}

.scroll-hint-left,
.scroll-hint-right {
    font-size: 0.85rem;
    color: #95a5a6;
    font-weight: 500;
    transition: opacity 0.3s;
    opacity: 0;
}

.scroll-hint-left {
    opacity: 0;
}

.scroll-hint-right {
    opacity: 1;
}

/* ===== 模型卡片 ===== */
.series-details-section {
    margin-bottom: 40px;
}

.models-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.model-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 200px;
}

.model-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.model-card-main {
    border-color: #f39c12;
}

.model-card-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.model-card-date {
    font-weight: 600;
    color: #3498db;
}

.model-card-body {
    padding: 20px;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.model-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
}

.model-card-title .model-link {
    color: inherit;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.model-card-title .model-link:hover {
    color: #3498db;
}

.model-card-features {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

/* ===== 动画 ===== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in {
    animation: slideIn 0.5s ease-out forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scale-in {
    animation: scaleIn 0.4s ease-out forwards;
}

/* ===== 系列列表页 ===== */
/* 主流系列块状网格 */
.main-series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.main-series-block {
    display: block;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    text-decoration: none;
    position: relative;
}

.main-series-block:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(52, 152, 219, 0.2);
    border-color: #3498db;
}

.series-block-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    color: white;
    position: relative;
}

.series-block-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: white;
}

.series-company-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.series-block-body {
    padding: 20px;
}

.series-block-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.block-stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.block-stat-icon {
    font-size: 1.5rem;
}

.block-stat-text {
    color: #6c757d;
    font-size: 1rem;
    flex: 1;
}

.block-stat-text strong {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 700;
}

.block-stat-arrow {
    color: #3498db;
    margin: 0 8px;
    font-size: 1.1rem;
}

.series-block-duration {
    color: #7f8c8d;
    font-size: 0.9rem;
    padding: 8px 14px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    border-radius: 8px;
    display: inline-block;
    font-weight: 500;
}

.series-block-footer {
    padding: 16px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.view-series-hint {
    color: #3498db;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.main-series-block:hover .view-series-hint {
    color: #2980b9;
    transform: translateX(4px);
    display: inline-block;
}

.no-series-message {
    text-align: center;
    padding: 60px 20px;
    color: #95a5a6;
    font-size: 1.1rem;
}

/* ===== 公司页面样式 ===== */
.company-page-header {
    margin-bottom: 30px;
    padding: 24px 0;
    border-bottom: 1px solid #e9ecef;
}

.back-link {
    display: inline-block;
    color: #7f8c8d;
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 16px;
    transition: color 0.3s;
}

.back-link:hover {
    color: #3498db;
}

.company-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.company-count {
    font-size: 1.2rem;
    font-weight: 500;
    color: #7f8c8d;
    padding: 6px 16px;
    background: #f8f9fa;
    border-radius: 20px;
}

.series-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: #7f8c8d;
    margin-top: 8px;
}

.company-link a {
    color: #3498db;
    font-weight: 500;
}

.meta-divider {
    color: #bdc3c7;
}

.release-period {
    color: #7f8c8d;
}

/* ===== 系列标签列表 ===== */
.series-section {
    margin-bottom: 30px;
    padding: 20px 0;
}

.series-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
}

.company-series-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.series-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 24px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.series-tag:hover {
    background: #3498db;
    border-color: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.series-tag-count {
    font-size: 0.85rem;
    background: #f8f9fa;
    color: #7f8c8d;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.series-tag:hover .series-tag-count {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

/* ===== 所有系列列表 ===== */
.all-series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.series-list-card {
    display: block;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    text-decoration: none;
}

.series-list-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.15);
    border-color: #3498db;
}

.series-card-header {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.series-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.series-company {
    font-size: 0.9rem;
    opacity: 0.9;
}

.series-card-footer {
    padding: 16px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.series-count {
    font-size: 0.95rem;
    font-weight: 600;
    color: #3498db;
}

.series-period {
    font-size: 0.85rem;
    color: #7f8c8d;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .filter-row {
        flex-direction: column;
    }

    .filter-group {
        min-width: 100%;
    }

    .filter-actions {
        width: 100%;
    }

    .btn {
        flex: 1;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .models-table-container {
        overflow-x: auto;
    }

    .models-table {
        min-width: 800px;
    }

    .series-stats {
        grid-template-columns: 1fr;
    }

    .series-stats-compact {
        flex-direction: column;
        gap: 16px;
    }

    .stat-box {
        min-width: auto;
        width: 100%;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-marker {
        left: -30px;
    }

    .models-cards {
        grid-template-columns: 1fr;
    }

    .model-card {
        height: 220px;
    }

    .main-series-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .series-block-title {
        font-size: 1.5rem;
    }

    .horizontal-timeline {
        gap: 12px;
    }

    .htimeline-item {
        width: 160px;
        padding: 10px;
    }

    .htimeline-model-name {
        font-size: 0.95rem;
    }

    .company-page-title {
        font-size: 1.8rem;
    }

    .company-count {
        font-size: 1rem;
    }

    .series-meta {
        flex-wrap: wrap;
        font-size: 0.9rem;
    }

    .company-series-list {
        gap: 8px;
    }

    .series-tag {
        padding: 8px 14px;
        font-size: 0.9rem;
    }

    .all-series-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .series-name {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .models-page,
    .model-series-page {
        padding: 20px 0;
    }

    .page-title {
        font-size: 1.5rem;
    }

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

    .search-container {
        flex-wrap: wrap;
        gap: 12px;
    }

    .search-input-group {
        width: 100%;
        flex: 1 1 100%;
    }

    .search-input {
        width: 100%;
    }

    .search-btn {
        width: auto;
        flex: 0 0 auto;
    }

    .filter-options {
        width: 100%;
        justify-content: center;
    }

    .checkbox-label {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .checkbox-label input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }
}
