/* IO Vehicle 前端样式 */

/* ===== 全局容器 ===== */
.ioveh-wrap { max-width: 1100px; margin: 0 auto; padding: 20px 16px; color: #222; }

/* ===== 面包屑 ===== */
.ioveh-crumb { font-size: 13px; color: #888; margin-bottom: 16px; }
.ioveh-crumb a { color: #888; text-decoration: none; }
.ioveh-crumb a:hover { color: #f1404b; }
.ioveh-crumb span { margin: 0 4px; }

/* ===== 归档页：H1 融入面包屑，视觉与面包屑一致 ===== */
.ioveh-crumb--archive {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    font-size: 14px;
    line-height: 1.4;
    color: #9ca3af;
}

.ioveh-crumb--archive a {
    color: #9ca3af;
}

.ioveh-crumb--archive > a,
.ioveh-crumb--archive > span {
    flex: 0 0 auto !important;
    white-space: nowrap;
}

.ioveh-crumb--archive .io-crumb-h1 {
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: inherit;
    font-weight: 400;
    line-height: inherit !important;
    color: inherit;
    letter-spacing: inherit;
    vertical-align: middle !important;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* =========================================================
   筛选栏
   ========================================================= */
.ioveh-filters { background: #fff; border-radius: 12px; padding: 16px 20px; margin-bottom: 24px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.ioveh-filter-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px dashed #eee; }
.ioveh-filter-row:last-child { border-bottom: none; }
.ioveh-filter-label { flex: 0 0 60px; color: #999; font-size: 13px; padding-top: 6px; flex-shrink: 0; }

.ioveh-filter-items { flex: 1; display: grid; gap: 8px; min-width: 0; }
.ioveh-filter-items a { padding: 5px 14px; border-radius: 12px; background: #f5f5f5; color: #555; font-size: 13px; text-decoration: none; transition: .15s; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.ioveh-filter-items a:hover { background: #f1404b; color: #fff; }
.ioveh-filter-items a.is-active { background: #f1404b !important; color: #fff !important; }

.ioveh-filter-toggle { display: none; padding: 5px 4px; background: transparent; border: none; color: #f1404b; font-size: 13px; cursor: pointer; font-family: inherit; line-height: 1.6; white-space: nowrap; text-decoration: none; }
.ioveh-filter-toggle:hover { color: #d93540; text-decoration: underline; }
.ioveh-filter-items.has-toggle .ioveh-filter-toggle { display: inline-block; }

@media(min-width: 901px) {
    .ioveh-filter-items { grid-template-columns: repeat(7, minmax(0, 1fr)); }
    .ioveh-filter-items.is-collapsed a:nth-child(n+7) { display: none; }
}

@media(max-width: 900px) {
    .ioveh-filter-row[data-dimension="type"],
    .ioveh-filter-row[data-dimension="battery"],
    .ioveh-filter-row[data-dimension="standard"] {
        display: flex !important;
    }
    .ioveh-filter-row { gap: 8px; position: relative; }
    .ioveh-filter-label { flex: 0 0 56px; font-size: 12px; padding-top: 5px; }
    .ioveh-filter-items { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; grid-template-columns: none; padding-right: 24px; }
    .ioveh-filter-items::-webkit-scrollbar { display: none; }
    .ioveh-filter-items a { flex-shrink: 0; padding: 4px 10px; font-size: 12px; text-align: left; white-space: nowrap; }
    .ioveh-filter-toggle { display: none !important; }
    .ioveh-filter-row::after { content: '›'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 18px; color: #f1404b; background: #fff; padding: 0 4px; pointer-events: none; line-height: 1; }
}

/* =========================================================
   结果区 / 卡片网格 / 分页
   ========================================================= */
.ioveh-results { position: relative; transition: opacity .15s; }
.ioveh-results.is-loading { opacity: .5; pointer-events: none; }

.ioveh-grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.ioveh-card { display: block; background: #fff; border-radius: 12px; overflow: hidden; text-decoration: none; color: #222; box-shadow: 0 1px 4px rgba(0,0,0,.05); transition: .2s; }
.ioveh-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(241,64,75,.15); }
.ioveh-card-img { aspect-ratio: 4/3; background: #f7f7f7; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ioveh-card-img img { width: 100%; height: 100%; object-fit: cover; }
.ioveh-noimg { color: #bbb; font-size: 13px; }
.ioveh-card-body { padding: 12px 14px; }
.ioveh-card-brand { font-size: 12px; color: #f1404b; margin-bottom: 4px; }
.ioveh-card-title { font-size: 15px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ioveh-card-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: #888; margin-bottom: 6px; }
.ioveh-card-meta span { background: #f5f5f5; padding: 2px 8px; border-radius: 8px; }
.ioveh-card-price { font-size: 14px; font-weight: 700; color: #f1404b; }

/* 分页：科技蓝胶囊 */
.ioveh-wrap .ioveh-pagination {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 32px !important;
    text-align: center !important;
}

.ioveh-wrap .ioveh-pagination .page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 38px !important;
    height: 38px !important;
    padding: 0 14px !important;
    margin: 0 !important;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    background: #f3f4f6 !important;
    color: #4b5563 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease !important;
}

.ioveh-wrap .ioveh-pagination .page-numbers:hover {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #2563eb !important;
    transform: translateY(-1px) !important;
}

.ioveh-wrap .ioveh-pagination .page-numbers.current {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, .22) !important;
}

.ioveh-wrap .ioveh-pagination .page-numbers.dots {
    min-width: 24px !important;
    padding: 0 4px !important;
    border-color: transparent !important;
    background: transparent !important;
    color: #9ca3af !important;
    box-shadow: none !important;
}

.ioveh-wrap .ioveh-pagination .page-numbers.prev,
.ioveh-wrap .ioveh-pagination .page-numbers.next {
    padding: 0 12px !important;
    border-color: #dbeafe !important;
    background: #fff !important;
    color: #2563eb !important;
}

.ioveh-wrap .ioveh-pagination .page-numbers.prev:hover,
.ioveh-wrap .ioveh-pagination .page-numbers.next:hover {
    border-color: #2563eb !important;
    background: #eff6ff !important;
}

@media (max-width: 768px) {
    .ioveh-wrap .ioveh-pagination {
        gap: 6px !important;
        margin-top: 24px !important;
    }

    .ioveh-wrap .ioveh-pagination .page-numbers {
        min-width: 34px !important;
        height: 34px !important;
        padding: 0 10px !important;
        font-size: 13px !important;
    }
}

.ioveh-empty { text-align: center; padding: 60px 0; color: #999; }

/* =========================================================
   详情页：Hero + 参数 + 按钮
   ========================================================= */
.ioveh-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.ioveh-hero-img { background: #f7f7f7; border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; }
.ioveh-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.ioveh-title { font-size: 24px; margin: 0 0 12px; font-weight: 700; }
.ioveh-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ioveh-tag { padding: 3px 12px; border-radius: 12px; background: #fff0f1; color: #f1404b; font-size: 12px; text-decoration: none; }
.ioveh-key { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 14px; }
.ioveh-key-item { display: flex; flex-direction: column; }
.ioveh-key-label { font-size: 12px; color: #999; }
.ioveh-key-val { font-size: 16px; font-weight: 600; color: #222; }
.ioveh-key-val--price { color: #ff4d00 !important; font-size: 18px; font-weight: 800; }

.ioveh-section { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.ioveh-section-title { font-size: 17px; margin: 0 0 14px; padding-left: 10px; border-left: 3px solid #f1404b; font-weight: 700; }
.ioveh-specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.ioveh-specs th { text-align: left; color: #333333; font-weight: 600; font-size: 16px; padding: 10px 12px; width: 110px; background: #fafafa; vertical-align: top; }
.ioveh-specs td { padding: 10px 12px; color: #666666; font-size: 14px; font-weight: 400; }
.ioveh-specs td.ioveh-specs-price { color: #ff4d00 !important; font-size: 18px; font-weight: bold; }
.ioveh-specs tr { border-bottom: 1px solid #f0f0f0; }
.ioveh-specs tr:last-child { border-bottom: none; }
.ioveh-content { line-height: 1.8; font-size: 15px; color: #333; }

.ioveh-buy-bar { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #f0f0f0; }
.ioveh-buy-btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; background: #f1404b; color: #fff; font-size: 15px; font-weight: 600; border-radius: 12px; text-decoration: none; transition: .2s; box-shadow: 0 2px 6px rgba(241,64,75,.25); }
.ioveh-buy-btn:hover { background: #d93540; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(241,64,75,.35); color: #fff; }

/* =========================================================
   移动端全局响应式
   ========================================================= */
@media(max-width: 720px) {
    .ioveh-hero { grid-template-columns: 1fr; }
    .ioveh-title { font-size: 20px; }
    .ioveh-buy-bar { gap: 8px; }
    .ioveh-buy-btn { flex: 1; padding: 10px 16px; font-size: 14px; }
    
    /* 移动端：车型卡片单列横向布局 */
    .ioveh-grid-cards { grid-template-columns: 1fr; gap: 10px; }
    .ioveh-card { display: flex; gap: 12px; padding: 10px; }
    .ioveh-card-img { flex: 0 0 110px; width: 110px; aspect-ratio: 1; border-radius: 8px; }
    .ioveh-card-body { flex: 1; padding: 0; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
    .ioveh-card-title { font-size: 15px; margin-bottom: 4px; -webkit-line-clamp: 1; }
    .ioveh-card-meta { margin-bottom: 4px; }
    .ioveh-card-price { font-size: 15px; }
}

/* =========================================================
   品牌详情页 (Brand Page)
   ========================================================= */
.ioveh-brand-hero { background: #fff; border-radius: 12px; padding: 32px; display: grid; grid-template-columns: 180px 1fr; gap: 32px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.05); align-items: center; }
.ioveh-brand-logo { width: 180px; height: 180px; background: #fafafa; border-radius: 16px; border: 1px solid #f0f0f0; display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 800; color: #f1404b; letter-spacing: 2px; }
.ioveh-brand-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ioveh-brand-info h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; }
.ioveh-brand-slogan { display: inline-block; background: #fff0f1; color: #f1404b; font-size: 14px; padding: 4px 14px; border-radius: 20px; margin-bottom: 16px; font-weight: 500; }
.ioveh-brand-desc { font-size: 14px; color: #555; line-height: 1.8; margin-bottom: 24px; max-width: 800px; }
.ioveh-brand-desc-toggle { display: none; }
.ioveh-brand-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ioveh-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 24px; border-radius: 12px; font-size: 14px; font-weight: 600; transition: .2s; border: none; cursor: pointer; text-decoration: none; }
.ioveh-btn-primary { background: #f1404b; color: #fff; box-shadow: 0 2px 8px rgba(241,64,75,.3); }
.ioveh-btn-primary:hover { background: #d93540; transform: translateY(-1px); color: #fff; }
.ioveh-btn-outline { background: #fff; color: #f1404b; border: 1px solid #f1404b; }
.ioveh-btn-outline:hover { background: #fff0f1; }

.ioveh-facts { background: #fff; border-radius: 12px; padding: 24px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.ioveh-facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 32px; }
.ioveh-fact { display: flex; align-items: flex-start; font-size: 14px; padding-bottom: 12px; border-bottom: 1px dashed #f0f0f0; }
.ioveh-fact-label { color: #999; flex: 0 0 80px; font-size: 13px; }
.ioveh-fact-value { color: #222; font-weight: 500; word-break: break-all; }
.ioveh-fact-value a { color: #f1404b; text-decoration: none; }
.ioveh-fact-value a:hover { text-decoration: underline; }

.ioveh-topic-list { display: flex; flex-direction: column; }
.ioveh-topic { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px dashed #eee; font-size: 14px; transition: .2s; text-decoration: none; color: #222; }
.ioveh-topic:last-child { border-bottom: none; padding-bottom: 0; }
.ioveh-topic:hover .ioveh-topic-title { color: #f1404b; }
.ioveh-topic-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ioveh-topic-reply { font-size: 12px; color: #f1404b; background: #fff0f1; padding: 2px 10px; border-radius: 12px; flex-shrink: 0; }
.ioveh-topic-time { font-size: 12px; color: #999; flex-shrink: 0; }

@media (max-width: 768px) {
    /* 页面与间距压缩 */
    .ioveh-wrap {
        display: flex;
        flex-direction: column;
        padding: 10px 12px;
    }
    /* 面包屑必须固定在内容最顶部：order 必须小于默认的 0 */
    .ioveh-crumb {
        order: -1 !important;
        position: relative !important;
        top: 0 !important;
        margin-bottom: 15px !important;
        font-size: 12px;
    }

    /* 品牌 Hero：Logo 左侧 + 品牌信息右侧 */
    .ioveh-brand-hero {
        order: 2;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        margin-bottom: 8px;
        text-align: left;
    }

    .ioveh-brand-logo {
        flex: 0 0 60px;
        width: 60px;
        height: 60px;
        margin: 0;
        border-radius: 12px;
        font-size: 20px;
        letter-spacing: 0;
    }

    .ioveh-brand-info {
        flex: 1 1 auto;
        min-width: 0;
    }

    .ioveh-brand-info h1 {
        justify-content: flex-start;
        margin: 0 0 3px;
        font-size: 20px;
        line-height: 1.25;
    }

    .ioveh-brand-slogan {
        margin-bottom: 4px;
        padding: 1px 8px;
        font-size: 12px;
        line-height: 1.4;
    }

    /* 简介：3 行折叠 + 小号展开/收起 */
    .ioveh-brand-desc-wrap {
        margin-bottom: 6px;
    }

    .ioveh-brand-desc {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin: 0;
        max-width: none;
        color: #555;
        font-size: 13px;
        line-height: 1.5;
    }

    .ioveh-brand-desc p {
        margin: 0 0 6px;
    }

    .ioveh-brand-desc p:last-child {
        margin-bottom: 0;
    }

    .ioveh-brand-desc.is-expanded {
        display: block;
        -webkit-line-clamp: unset;
        overflow: visible;
    }

    .ioveh-brand-desc-toggle:not([hidden]) {
        display: inline-flex;
        align-items: center;
        margin-top: 4px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #f1404b;
        font-size: 12px;
        line-height: 1.4;
        cursor: pointer;
    }

    /* 官网 / 商城按钮并排占满整行 */
    .ioveh-brand-actions {
        display: flex;
        width: 100%;
        gap: 8px;
        flex-wrap: nowrap;
        justify-content: stretch;
        margin-top: 6px;
    }

    .ioveh-brand-actions .ioveh-btn {
        flex: 1 1 0;
        width: 100%;
        min-width: 0;
        padding: 8px 10px;
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 热门车型优先展示，企业信息后置 */
    .ioveh-brand-models {
        order: 3;
    }

    /* 企业信息：单列、紧凑字号 */
    .ioveh-facts {
        order: 4;
        padding: 12px 14px;
        margin-bottom: 8px;
    }

    .ioveh-wrap > .ioveh-section:not(.ioveh-brand-models) {
        order: 5;
    }

    .ioveh-facts .ioveh-section-title {
        margin-bottom: 6px;
    }

    .ioveh-facts-grid {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .ioveh-fact {
        padding-bottom: 4px;
        font-size: 13px;
        line-height: 1.35;
    }

    .ioveh-fact-label {
        flex: 0 0 76px;
        font-size: 12px;
    }

    .ioveh-fact-value {
        font-size: 13px;
    }

    /* 车型区块压缩，尽快露出热门车型 */
    .ioveh-section {
        padding: 14px;
        margin-bottom: 10px;
    }

    .ioveh-section-head {
        margin-bottom: 10px;
    }

    .ioveh-section-title {
        margin-bottom: 10px;
        font-size: 15px;
    }

    .ioveh-section-more {
        font-size: 12px;
    }

    .ioveh-topic { gap: 8px; }
    .ioveh-topic-time { display: none; }
}
/* =========================================================
   品牌大全列表页 (Brand List)
   ========================================================= */
.ioveh-brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.ioveh-brand-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: #222;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    transition: .2s;
}
.ioveh-brand-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(241,64,75,.15);
}
.ioveh-brand-card-logo {
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: #f1404b;
}
.ioveh-brand-card-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
}
.ioveh-brand-card-info {
    flex: 1;
    min-width: 0;
}
.ioveh-brand-card-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}
.ioveh-brand-card-slogan {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ioveh-brand-card-count {
    font-size: 12px;
    color: #555;
}
.ioveh-brand-card-count span {
    color: #f1404b;
    font-weight: 700;
}

@media(max-width: 720px) {
    .ioveh-brand-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .ioveh-brand-card {
        padding: 16px;
    }
}
/* =========================================================
   车友讨论区优化 (覆盖旧版)
   ========================================================= */
.ioveh-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.ioveh-section-more {
    font-size: 13px;
    color: #888;
    text-decoration: none;
    transition: .2s;
}
.ioveh-section-more:hover {
    color: #f1404b;
}

.ioveh-topic-list {
    display: flex;
    flex-direction: column;
}
.ioveh-topic {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px dashed #eee;
    text-decoration: none;
    color: #333;
    transition: .2s;
}
.ioveh-topic:last-child {
    border-bottom: none;
}
.ioveh-topic:hover .ioveh-topic-title {
    color: #f1404b;
}
.ioveh-topic-title {
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    margin-right: 16px;
}
.ioveh-topic-reply {
    font-size: 12px;
    color: #f1404b;
    background: #fff0f1;
    padding: 2px 8px;
    border-radius: 4px;
}
.ioveh-topic-time {
    font-size: 12px;
    color: #999;
    min-width: 60px;
    text-align: right;
}
/* =========================================================
   修复品牌/车型页与 OneNav 页脚的左右对齐问题
   ========================================================= */
@media (min-width: 1101px) {
    /* 1. 强制页脚最外层容器和我们的内容区一样宽，并留出16px内边距 */
    .main-footer .switch-container.container-footer {
        max-width: 1132px !important; /* 1100 + 16*2 */
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0 auto !important;
    }
    
    /* 2. 修正内部 row 的负边距（Bootstrap 默认是 -15px） */
    .main-footer .footer.row {
        margin-left: -15px !important;
        margin-right: -15px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* 3. 让版权信息贴近左边缘，不要带 m-3 */
    .main-footer .footer-copyright {
        margin-left: 15px !important; /* 抵消 row 的负边距 */
        margin-right: 15px !important;
        padding: 0 !important;
    }
}

/* =========================================================
   品牌大全：新卡片结构
   桌面端保持横向信息布局，移动端切换为双列上下卡片
   ========================================================= */
.ioveh-wrap .brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.ioveh-wrap .brand-card-item {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    grid-template-areas:
        "logo top"
        "logo desc"
        "logo bottom";
    align-items: center;
    gap: 4px 16px;
    padding: 20px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: #222;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
    transition: transform .2s ease, box-shadow .2s ease;
}

/* 桌面端把 top 容器“打散”，让 Logo 与文字直接参与网格布局 */
.ioveh-wrap .brand-card-top {
    display: contents;
}

.ioveh-wrap .brand-card-logo {
    grid-area: logo;
    width: 70px;
    height: 70px;
    max-width: 70px;
    max-height: 70px;
    object-fit: contain;
    border-radius: 12px;
    background: #fafafa;
    padding: 4px;
    box-sizing: border-box;
}

.ioveh-wrap div.brand-card-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f1404b;
    font-size: 28px;
    font-weight: 800;
    padding: 0;
}

.ioveh-wrap .brand-card-name {
    grid-area: top;
    min-width: 0;
    overflow: hidden;
    color: #111827;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ioveh-wrap .brand-card-desc {
    grid-area: desc;
    min-width: 0;
    overflow: hidden;
    color: #888;
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ioveh-wrap .brand-card-bottom {
    grid-area: bottom;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.ioveh-wrap .brand-card-count {
    color: #555;
    font-size: 12px;
    line-height: 1.5;
}

.ioveh-wrap .brand-card-go {
    flex: 0 0 auto;
    color: #9ca3af;
    font-size: 12px;
    line-height: 1.5;
}

.ioveh-wrap .brand-card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(241, 64, 75, .15);
}

/* 移动端：双列上下卡片 */
@media (max-width: 768px) {
    .ioveh-wrap .brand-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .ioveh-wrap .brand-card-item {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 16px;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .02);
    }

    .ioveh-wrap .brand-card-top {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        margin-bottom: 8px;
    }

    .ioveh-wrap .brand-card-logo {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        max-width: 40px;
        max-height: 40px;
        border-radius: 8px;
        padding: 2px;
    }

    .ioveh-wrap div.brand-card-logo {
        font-size: 18px;
    }

    .ioveh-wrap .brand-card-name {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        color: #111827;
        font-size: 16px;
        font-weight: 700;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .ioveh-wrap .brand-card-desc {
        display: -webkit-box;
        flex: 1;
        margin-bottom: 12px;
        overflow: hidden;
        color: #9ca3af;
        font-size: 12px;
        line-height: 1.5;
        white-space: normal;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .ioveh-wrap .brand-card-bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: auto;
        padding-top: 8px;
        border-top: 1px solid #f0f0f0;
    }

    .ioveh-wrap .brand-card-count {
        color: #2563eb;
        font-size: 12px;
        font-weight: 700;
    }

    .ioveh-wrap .brand-card-go {
        color: #9ca3af;
        font-size: 12px;
    }
}

/* =========================================================
   车型详情页：移动端吸底操作栏 + 平台选择抽屉
   ========================================================= */
.io-mobile-bottom-bar,
.io-mobile-drawer {
    display: none;
}

@media (max-width: 768px) {
    /* 隐藏详情页原有散落按钮；全局对比悬浮栏不再隐藏 */
    .ioveh-buy-bar,
    .ioveh-compare-row,
    body.single-iovehicle_model .footer-tabbar,
    body.single-iovehicle_model .footer-tabbar-placeholder {
        display: none !important;
    }

    body.single-iovehicle_model {
        padding-bottom: calc(80px + env(safe-area-inset-bottom)) !important;
    }

    body.single-iovehicle_model.has-compare-bar {
        padding-bottom: calc(184px + env(safe-area-inset-bottom)) !important;
    }

    body.single-iovehicle_model.has-compare-bar .io-site-footer {
        padding-bottom: 0 !important;
    }

    /* 对比栏位于领券吸底栏上方，避免互相遮挡 */
    body.single-iovehicle_model .io-compare-bar {
        bottom: calc(82px + env(safe-area-inset-bottom)) !important;
        z-index: 10000 !important;
    }

    .io-mobile-bottom-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 9998;
        display: flex !important;
        align-items: center;
        gap: 10px;
        min-height: 64px;
        padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
        box-sizing: border-box;
        background: #fff;
        box-shadow: 0 -2px 12px rgba(15, 23, 42, .08);
    }

    .io-mobile-price-area {
        display: flex !important;
        flex: 0 0 auto;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 1px !important;
        min-width: 84px;
        margin: 0 !important;
        padding: 0 !important;
        text-align: center !important;
    }

    .io-mobile-price-value {
        display: block !important;
        align-self: center !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        color: #ef4444;
        font-family: inherit !important;
        font-size: 20px;
        font-weight: 900;
        line-height: 1.05;
        letter-spacing: normal !important;
        text-align: center !important;
        text-indent: 0 !important;
        white-space: nowrap;
    }

    .io-mobile-price-label {
        display: block !important;
        align-self: center !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        color: #9ca3af;
        font-family: inherit !important;
        font-size: 11px;
        font-weight: 400;
        line-height: 1.2;
        letter-spacing: normal !important;
        text-align: center !important;
        text-indent: 0 !important;
        white-space: nowrap;
    }

    .io-mobile-actions {
        display: flex;
        flex: 1 1 auto;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        min-width: 0;
    }

    .btn-compare-bottom {
        display: flex;
        flex: 0 0 44px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 44px;
        min-width: 44px;
        height: 46px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #374151;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .pk-icon-wrap {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 22px;
    }

    .pk-text {
        color: #374151;
        font-size: 11px;
        font-style: normal;
        font-weight: 900;
        line-height: 1;
        letter-spacing: -.5px;
    }

    .btn-compare-bottom.is-selected .pk-text {
        color: #2563eb;
    }

    .pk-label {
        margin-top: 1px;
        color: #6b7280;
        font-size: 11px;
        font-weight: 500;
        line-height: 1;
    }

    .pk-badge {
        position: absolute;
        top: -4px;
        right: -4px;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 16px;
        height: 16px;
        padding: 0 2px;
        box-sizing: border-box;
        border: 2px solid #fff;
        border-radius: 50%;
        background: #f97316;
        color: #fff;
        font-size: 9px;
        font-weight: 700;
        line-height: 1;
        white-space: nowrap;
    }

    .pk-badge[hidden] {
        display: none !important;
    }

    .io-mobile-buy-btn {
        flex: 1 1 auto;
        min-width: 0;
        height: 40px;
        padding: 0 18px;
        border: 0;
        border-radius: 20px !important;
        background: #ff0036;
        background-image: none;
        color: #fff;
        font-size: 15px;
        font-weight: 700;
        line-height: 1;
        white-space: nowrap;
        box-shadow: 0 4px 10px rgba(255, 0, 54, .18);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .io-mobile-buy-btn:disabled {
        opacity: .55;
        box-shadow: none;
        cursor: not-allowed;
    }

    .io-mobile-drawer {
        position: fixed;
        inset: 0;
        z-index: 10000;
        display: block;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition: opacity .25s ease, visibility .25s ease;
    }

    .io-mobile-drawer.is-open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    .io-mobile-drawer__overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, .55);
        opacity: 0;
        transition: opacity .25s ease;
    }

    .io-mobile-drawer.is-open .io-mobile-drawer__overlay {
        opacity: 1;
    }

    .io-mobile-drawer__sheet {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        max-height: 80vh;
        padding: 18px 16px calc(20px + env(safe-area-inset-bottom));
        overflow-y: auto;
        box-sizing: border-box;
        border-radius: 20px 20px 0 0;
        background: #fff;
        box-shadow: 0 -12px 40px rgba(15, 23, 42, .18);
        transform: translateY(100%);
        transition: transform .3s cubic-bezier(.22, .8, .26, 1);
        -webkit-overflow-scrolling: touch;
    }

    .io-mobile-drawer.is-open .io-mobile-drawer__sheet {
        transform: translateY(0);
    }

    .io-mobile-drawer__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 14px;
    }

    .io-mobile-drawer__head h3 {
        margin: 0;
        color: #111827;
        font-size: 17px;
        font-weight: 700;
        line-height: 1.4;
    }

    .io-mobile-drawer__close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #f3f4f6;
        color: #4b5563;
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
    }

    .io-mobile-platform-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .io-platform-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        min-height: 52px;
        padding: 0 18px;
        border-radius: 12px;
        color: #fff !important;
        font-size: 16px;
        font-weight: 700;
        text-decoration: none !important;
        box-shadow: 0 4px 12px rgba(15, 23, 42, .12);
        -webkit-tap-highlight-color: transparent;
    }

    .io-platform-btn.is-taobao {
        background: #ff5000;
    }

    .io-platform-btn.is-jd {
        background: #e1251b;
    }

    .io-platform-btn.is-pdd {
        background: #e02e24;
    }

    .io-platform-btn.is-default {
        background: linear-gradient(135deg, #2563eb, #1d4ed8);
    }

    /* 覆盖全站 /vehicle/go/ 渠道按钮的红色兜底，保留平台品牌色 */
    body.single-iovehicle_model .io-mobile-drawer .io-platform-btn {
        border-radius: 12px !important;
        box-shadow: 0 4px 12px rgba(15, 23, 42, .12) !important;
    }

    body.single-iovehicle_model .io-mobile-drawer .io-platform-btn.is-taobao {
        background: #ff5000 !important;
        background-image: none !important;
    }

    body.single-iovehicle_model .io-mobile-drawer .io-platform-btn.is-jd {
        background: #e1251b !important;
        background-image: none !important;
    }

    body.single-iovehicle_model .io-mobile-drawer .io-platform-btn.is-pdd {
        background: #e02e24 !important;
        background-image: none !important;
    }

    body.single-iovehicle_model .io-mobile-drawer .io-platform-btn.is-default {
        background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
        background-image: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    }

    body.single-iovehicle_model .io-mobile-drawer .io-platform-btn.is-taobao:hover {
        background: #e64700 !important;
    }

    body.single-iovehicle_model .io-mobile-drawer .io-platform-btn.is-jd:hover {
        background: #c91f16 !important;
    }

    body.single-iovehicle_model .io-mobile-drawer .io-platform-btn.is-pdd:hover {
        background: #c9241d !important;
    }

    body.single-iovehicle_model .io-mobile-drawer .io-platform-btn.is-default:hover {
        background: #1d4ed8 !important;
        background-image: none !important;
    }

    .io-platform-btn__hint {
        color: rgba(255, 255, 255, .86);
        font-size: 12px;
        font-weight: 500;
        white-space: nowrap;
    }

    body.io-mobile-drawer-open {
        overflow: hidden !important;
    }
}

/* =========================================================
   详情页参数表字体规范：参考“摩托范”
   ========================================================= */
@media (max-width: 768px) {
    .ioveh-key-val--price {
        font-size: 16px;
    }

    .ioveh-specs th {
        color: #333333;
        font-size: 14px;
        font-weight: 600;
        padding: 8px 8px;
        line-height: 1.4;
        word-break: break-word;
    }

    .ioveh-specs td {
        color: #666666;
        font-size: 13px;
        font-weight: 400;
        padding: 8px 8px;
        line-height: 1.5;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .ioveh-specs td.ioveh-specs-price {
        color: #ff4d00 !important;
        font-size: 16px;
        font-weight: bold;
    }
}