/* ========== 品牌网格 ========== */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    border-radius: 10px;
    background: var(--white);
    padding: 24px;
}

.brand-card {
    background: var(--white);
    /* border-radius: 10px; */
    padding: 20px;
    text-align: center;
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.08); */
    /* transition: transform 0.3s, box-shadow 0.3s; */
    position: relative;
}

.brand-card:hover .brand-logo {
    /* transform: translateY(-5px); */
    /* box-shadow: 0 5px 20px rgba(0,0,0,0.15); */
    transform: scale(1.2);
}

.brand-logo {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    margin: 0 auto 15px;
    transform: scale(1);
    transition: transform 0.1s ease;
}

.brand-logo-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    border-radius: 50%;
    margin: 0 auto 15px;
}

.brand-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.brand-country {
    font-size: 13px;
    color: var(--text-light);
}

.brand-year {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 3px;
}

/* ========== 车型网格 ========== */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    background: var(--white);
    padding: 24px;
}

.model-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.08); */
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.model-card:hover {
    /* transform: translateY(-5px); */
    /* box-shadow: 0 5px 20px rgba(0,0,0,0.15); */
    /* transform: scale(1.05); */
}

.model-image {
    height: 180px;
    /* background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s ease;
}

.model-image:hover {
    transform: scale(1.1);
}

.image-placeholder {
    font-size: 60px;
}

.model-info {
    padding: 20px;
}

.model-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.model-brand {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.model-price {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 15px;
}


.model-title-wrapper {
    margin-bottom: 20px;
}

.model-year-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    margin-right: 10px;
    vertical-align: middle;
}

.model-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

.model-brand-info {
    color: #666;
    font-size: 16px;
    margin-top: 8px;
}

.status-discontinued-notice {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.status-discontinued-notice strong {
    color: #856404;
}



/* ========== 新闻网格 ========== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    background: var(--white);
    padding: 24px;
}

.news-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.08); */
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    /* transform: translateY(-5px); */
    /* box-shadow: 0 5px 20px rgba(0,0,0,0.15); */
}

.news-image {
    height: 200px;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-content {
    padding: 20px;
}

.news-category {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.news-excerpt {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.5;
}

.news-date {
    font-size: 12px;
    color: var(--text-light);
}

/* ========== 页面头部 ========== */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 24px;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-light);
}



/* ========== 品牌详情页 ========== */
.brand-header {
    display: flex;
    align-items: center;
    gap: 40px;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.brand-logo-large {
    flex-shrink: 0;
    width: 150px;
}

.brand-logo-large img {
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
}

.brand-logo-large .brand-logo-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    border-radius: 50%;
}

.brand-header-info {
    flex: 1;
}

.brand-header-info h1 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--secondary-color);
}

.brand-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 15px;
    color: var(--text-color);
    background: var(--bg-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
}

.brand-description {
    line-height: 1.8;
    color: var(--text-color);
    font-size: 15px;
}

.brand-description strong {
    font-weight: 600;
}

.brand-description .highlight {
    color: var(--primary-color);
    font-weight: 600;
}

/* ========== 车系网格 ========== */
.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    background: var(--white);
}

.series-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.08); */
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.series-image {
    height: 180px;
    /* background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); */
    display: flex;
    align-items: center;
    justify-content: center;
}

.series-info {
    padding: 20px;
}

.series-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.series-brand {
    font-size: 14px;
    color: var(--text-light);
}

/* ========== 面包屑导航 ========== */
.breadcrumb {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 14px;
}

.breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
}

.breadcrumb a {
    color: var(--primary-color);
}

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

/* ========== 车系详情页 ========== */
.series-header {
    /* background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); */
    color: var(--text-color);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    text-align: center;
}

.series-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.series-brand {
    font-size: 18px;
    opacity: 0.9;
}

/* ========== 车型表格 ========== */
.models-table {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

.table thead {
    background-color: var(--secondary-color);
    color: var(--white);
}

.table th,
.table td {
    padding: 15px;
    text-align: left;
}

.table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr:hover {
    background-color: var(--bg-light);
}

.table .year-header td {
    background-color: #f8f9fa;
    font-weight: bold;
    color: var(--secondary-color);
}

.price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 18px;
}

.price-na {
    color: var(--text-light);
}

.btn-detail-small {
    padding: 6px 16px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 15px;
    font-size: 14px;
    transition: background-color 0.3s;
    border: none;
}

.btn-detail-small:hover {
    background-color: var(--accent-color);
}

/* ========== 车型详情页 ========== */
.model-header {
    display: flex;
    gap: 40px;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.model-image-large {
    width: 400px;
    height: 300px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.model-image-large:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(254, 89, 0, 0.15);
}

.model-image-large .image-placeholder {
    font-size: 100px;
}

.model-header-info {
    flex: 1;
}

.model-header-info h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.model-price-large {
    margin-bottom: 20px;
}

.price-label {
    display: block;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 500;
}

.price-value {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
}

.model-status {
    margin-top: 15px;
}

/* ========== 参数详情 ========== */
.specs-section {
    margin-bottom: 40px;
}

.section-header {
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 28px;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 14px;
    margin-top: 5px;
}

.specs-content {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.specs-group {
    margin-bottom: 35px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.specs-group:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(254, 89, 0, 0.1);
}

.specs-group-title {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
}

.specs-dl {
    display: block;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: var(--white);
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.spec-row:hover {
    border-left-color: var(--primary-color);
    background: linear-gradient(to right, rgba(254, 89, 0, 0.05), var(--white));
    transform: translateX(5px);
}

.spec-label {
    font-weight: 500;
    color: var(--text-color);
    flex: 0 0 45%;
}

.spec-value {
    color: var(--text-light);
    text-align: right;
    flex: 1;
    font-weight: 500;
}

/* ========== 文章列表 ========== */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    background: var(--white);
    padding: 24px 24px;
}

.article-item {
    display: flex;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.08); */
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-item:hover {
    /* transform: translateY(-3px); */
    /* box-shadow: 0 5px 20px rgba(0,0,0,0.15); */
}

.article-image {
    width: 300px;
    height: 200px;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.article-content {
    flex: 1;
    padding: 25px;
}

.article-category {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
}

.article-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.article-excerpt {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-light);
}

/* ========== 文章详情 ========== */
.article-detail {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.article-header {
    margin-bottom: 30px;
}

.article-cover {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.article-body {
    line-height: 1.8;
}

.article-body .article-excerpt {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 20px;
}

.article-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}


/* ========== 搜索结果 ========== */
.result-count {
    margin-bottom: 20px;
    color: var(--text-light);
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-item {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.result-link {
    display: block;
    padding: 20px;
}

.result-type {
    display: inline-block;
    padding: 4px 10px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 10px;
    font-size: 12px;
    margin-bottom: 10px;
}

.result-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.result-meta {
    font-size: 14px;
    color: var(--text-light);
}

/* ========== 空状态 ========== */
.empty-message,
.empty-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 16px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.empty-subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 10px;
}

/* ========== 错误页面 ========== */
.error-page {
    text-align: center;
    padding: 100px 20px;
}

.error-page h1 {
    font-size: 48px;
    color: var(--danger);
    margin-bottom: 20px;
}

.error-message {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}



/* ========== 响应式设计 ========== */
@media (max-width: 768px) {

    .page-header h1 {
        font-size: 1.6rem;
        font-weight: 700;
    }

    .brand-grid,
    .models-grid,
    .series-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .brand-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 20px;
    }

    .brand-logo-large {
        width: 120px;
        margin: 0 auto;
    }

    .brand-header-info {
        text-align: center;
    }

    .brand-meta {
        justify-content: center;
    }

    .model-header,
    .brand-header {
        flex-direction: column;
        padding: 24px;
    }

    .model-image-large {
        width: 100%;
        height: 250px;
    }

    .model-header-info h1 {
        font-size: 24px;
    }

    .price-value {
        font-size: 28px;
    }

    .section-header h2 {
        font-size: 22px;
    }

    .specs-content {
        padding: 20px;
    }

    .specs-group {
        padding: 16px;
    }

    .specs-group-title {
        font-size: 18px;
    }

    .spec-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .spec-label {
        flex: none;
        width: 100%;
    }

    .spec-value {
        text-align: left;
        width: 100%;
    }

    .notice-box {
        padding: 16px;
    }

    .article-item {
        flex-direction: column;
    }

    .article-image {
        width: 100%;
        height: 200px;
    }

    .intro-section h2 {
        font-size: 1.1rem;
    }

    .contact-container {
        padding: 16px;
    }

    .contact-card {
        padding: 20px;
    }

    .contact-card h2 {
        font-size: 1.3rem;
    }

    .contact-info li strong {
        min-width: 80px;
    }
}


/* ========== 车型详情页面优化样式 ========== */

/* 分组标题增强 */
.specs-group-title .group-icon {
    font-size: 20px;
    margin-right: 8px;
}

.specs-group-title .item-count {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 400;
    margin-left: auto;
    padding-left: 10px;
}

/* 标配样式 */
.spec-value.value-standard {
    color: var(--success);
    font-weight: 600;
}

.spec-value.value-standard::before {
    content: '● ';
    font-size: 14px;
    margin-right: 4px;
}

/* 选配样式 */
.spec-value.value-optional {
    color: var(--warning);
    font-weight: 600;
}

.spec-value.value-optional::before {
    content: '○ ';
    font-size: 14px;
    margin-right: 4px;
}

/* 参数说明区域 */
.specs-notice {
    margin-top: 30px;
    margin-bottom: 30px;
}

.notice-box {
    padding: 25px;
    background: linear-gradient(to right, rgba(254, 89, 0, 0.05), var(--white));
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.notice-title {
    margin: 0 0 15px 0;
    color: var(--secondary-color);
    font-size: 18px;
    font-weight: 600;
}

.notice-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    line-height: 1.8;
    color: var(--text-color);
}

.notice-list li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 8px;
}

.notice-list li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}


/* ========== introduction页面样式 ========== */

.intro-section {
    margin-bottom: 2rem;
}

.intro-section h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #333;
    border-left: 4px solid var(--primary-color);
    padding-left: 0.5rem;
}

.intro-section ul {
    list-style: none;
    padding-left: 0;
}

.intro-section ul li {
    margin: 0.4rem 0;
    position: relative;
    padding-left: 1.2rem;
}

.intro-section ul li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}


/* ========== contact ========== */

.contact-container {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
    display: grid;
    gap: 24px;
}

.contact-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.contact-card h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    border-left: 4px solid var(--primary-color);
    padding-left: 12px;
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 1.8;
    font-size: 1rem;
}

.contact-info li strong {
    color: #333;
    display: inline-block;
    min-width: 100px;
}

.wechat-qr {
    text-align: center;
    margin-top: 24px;
}

.wechat-qr img {
    width: 160px;
    height: 160px;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wechat-qr img:hover {
    transform: scale(1.05);
}