/* ===== Homepage inline styles moved from index.php (2026-10-19) ===== */
/* 核心基础样式 */
*{margin:0;padding:0;box-sizing:border-box}
.io-wrap{font-family:-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;background:#f2f4f7;color:#222;line-height:1.6}
.io-wrap a{color:inherit;text-decoration:none}

/* --- 顶部居中搜索舱 (替代大横幅) --- */
.io-hero-search { 
    text-align: center; 
    padding: 40px 20px 20px; 
    margin: 0 auto; 
    max-width: 800px; /* 限制最大宽度，更加聚焦 */
}
.io-hero-title { 
    font-size: 32px; 
    font-weight: 900; 
    color: #111; 
    margin-bottom: 10px; 
    letter-spacing: -1px;
}
.io-hero-subtitle { 
    font-size: 15px; 
    color: #888; 
    margin-bottom: 24px; 
}
.io-search-inner { 
    display: flex; 
    gap: 12px; 
    background: #fff; 
    padding: 8px; 
    border-radius: 50px; 
    box-shadow: 0 10px 30px rgba(37,99,235,0.08); 
    border: 1px solid #e5e8ee;
    transition: 0.3s;
}
.io-search-inner:hover { 
    border-color: #2563eb; 
    box-shadow: 0 12px 40px rgba(37,99,235,0.15); 
    transform: translateY(-2px);
}
.io-search-input-wrap { 
    flex: 1; display: flex; align-items: center; 
    background: #f2f4f7; 
    border-radius: 40px; 
    cursor: pointer; 
    transition: 0.2s;
}
.io-search-input-wrap:hover { background: #eef2f8; }
.io-search-input-wrap input {
    cursor: pointer; background: transparent; border: none; outline: none; flex: 1; padding: 12px 15px; font-size: 16px; color: #333;
}
.io-ai-btn { 
    background: linear-gradient(90deg, #8b5cf6, #6366f1); 
    color: #fff; border: none; 
    padding: 0 28px; 
    border-radius: 40px; 
    font-weight: bold; 
    font-size: 16px; 
    cursor: pointer; 
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(139,92,246,0.3);
    transition: 0.2s;
    display: flex; align-items: center; gap: 6px;
}
.io-ai-btn:hover { transform: scale(1.02); background: linear-gradient(90deg, #7c3aed, #4f46e5); }

/* --- 全宽布局容器 --- */
.io-main-wrap { max-width: 1600px; width: 100%; margin: 24px auto 40px; padding: 0 40px; display:grid; grid-template-columns:1fr 380px; gap:30px;}

/* 通用面板 */
.io-panel{background:#fff;border-radius:16px;padding:30px; box-shadow:0 4px 20px rgba(0,0,0,0.03);}
.io-sec-title{font-size:20px;font-weight:800;margin-bottom:20px;padding-left:12px;border-left:5px solid #2563eb; display:flex; justify-content:space-between; align-items:center;}
.io-sec-title a{font-size:14px; color:#888; font-weight:normal; transition:0.2s;}
.io-sec-title a:hover{color:#2563eb;}

/* 品牌 Logo 网格布局 */
.io-brand-grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(100px, 1fr)); gap:16px;}
.io-brand-item{display:flex; flex-direction:column; align-items:center; justify-content:center; padding:20px 10px; background:#fff; border:1px solid #edf2f7; border-radius:12px; transition:0.2s;}
.io-brand-item:hover{border-color:#2563eb; box-shadow:0 6px 16px rgba(37,99,235,0.08); transform:translateY(-3px);}
.io-brand-item img{width:56px; height:56px; object-fit:contain; margin-bottom:10px; border-radius:8px; background:#f8f9fa; border:1px solid #f0f0f0; padding:4px;}
.io-brand-placeholder{width:56px; height:56px; border-radius:50%; background:#f2f6ff; color:#2563eb; display:flex; align-items:center; justify-content:center; font-size:22px; font-weight:bold; margin-bottom:10px;}
.io-brand-item span{font-size:14px; font-weight:600; color:#444;}

/* 车型表格式列表 */
.io-car{display:flex;gap:24px;padding:24px 0;border-bottom:1px dashed #e5e8ee; transition:0.2s;}
.io-car:last-child{border-bottom:0}
.io-car-img{width:220px;height:150px;flex:none;background:#eef2f8;border-radius:12px;display:flex;align-items:center;justify-content:center; overflow:hidden; font-size:50px;}
.io-car-img img{width:100%; height:100%; object-fit:cover;}
.io-car-info{flex:1}
.io-car-info h3{font-size:22px;font-weight:800;margin-bottom:8px; color:#111; transition:0.2s;}
.io-car-info h3:hover{color:#2563eb;}
.io-car-tags{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.io-car-tags i{font-style:normal;font-size:13px;color:#555;background:#f2f4f7;padding:4px 12px;border-radius:8px}
.io-car-meta{font-size:14px;color:#777; margin-top: 12px;}
.io-car-right{text-align:right;flex:none;display:flex;flex-direction:column;justify-content:center; align-items:flex-end;}
.io-car-price{color:#e8452c;font-size:28px;font-weight:900}
.io-car-price small{font-size:14px;color:#999;font-weight:400}
.io-btn-compare{margin-top:16px;font-size:14px;color:#2563eb;border:1px solid #2563eb;border-radius:20px;padding:8px 20px; background:none; cursor:pointer; transition:0.2s;}
.io-btn-compare:hover{background:#2563eb; color:#fff;}

/* 右侧栏 */
.io-side h3{font-size:18px;font-weight:800;margin-bottom:16px; border-bottom:1px solid #eee; padding-bottom:12px;}
.io-rank{display:flex;gap:12px;padding:16px 0;border-bottom:1px dashed #eef0f3;font-size:15px; text-decoration:none; color:#333; transition:0.2s;}
.io-rank:hover{color:#2563eb;}
.io-rank b{color:#e8452c;width:22px; font-style:italic; font-size:18px;}
.io-art{padding:16px 0;border-bottom:1px dashed #eef0f3;font-size:15px; display:block; text-decoration:none; color:#333; transition:0.2s;}
.io-art:hover{color:#2563eb;}
.io-art span{font-size:13px;color:#999; display:block; margin-top:6px;}

/* 导航栏对齐修复 */
.nav-inner, .navbar-inner, header .container, .header-wrap { 
    max-width: 1600px !important; 
    margin: 0 auto !important; 
    padding: 0 40px !important;
}
.nav, .navbar, header { 
    border-bottom: 1px solid #e5e8ee !important; 
    box-shadow: none !important;
}

/* 响应式适配 */
@media(max-width:1200px){
    .io-main-wrap{grid-template-columns:1fr 320px; gap:20px;}
    .io-main-wrap, .io-hero-search{padding: 0 20px;}
    .io-car-img{width:160px;height:120px;}
}
@media(max-width:900px){
    .io-main-wrap{grid-template-columns:1fr}
    .io-car{flex-wrap:wrap}
    .io-car-right{text-align:left;flex-direction:row;gap:14px;align-items:center; width:100%; justify-content:space-between; margin-top:10px;}
}
@media(max-width:768px) {
    .io-hero-search { padding: 24px 16px 16px; }
    .io-hero-title { font-size: 24px; }
    .io-search-inner { flex-direction: column; border-radius: 20px; padding: 12px; }
    .io-search-input-wrap { width: 100%; }
    .io-ai-btn { width: 100%; padding: 12px; border-radius: 12px; justify-content: center; }
}
@media(max-width:520px){
    .io-car-img{width:100%; height:180px;}
}

/* ===== Compatibility overrides for legacy rules in this file ===== */
/* These two selectors exist in the old, previously-unloaded section above.
   Keep them from changing the current homepage layout now that this file is loaded. */
.io-hero-search {
    display: block;
    background: transparent;
    width: auto;
    border-radius: 0;
}
.io-car-info {
    padding: 0;
    display: block;
}
.io-car-img {
    color: inherit;
}
/* Old `.io-hero-search button` has higher specificity than `.io-ai-btn`. */
.io-hero-search button.io-ai-btn {
    background: linear-gradient(90deg, #8b5cf6, #6366f1);
    color: #fff;
    border: none;
    padding: 0 28px;
    border-radius: 40px;
    cursor: pointer;
}
@media(max-width:768px) {
    .io-hero-search button.io-ai-btn {
        padding: 12px;
        border-radius: 12px;
        justify-content: center;
    }
}

/* ===== Header / Footer Logo constraint ===== */
/* Prevent the global `img` reset from stretching the theme logo. */
header .navbar-logo img,
header .logo-expanded img,
.navbar-logo .logo-expanded img,
.footer-logo img,
.footer-logo.logo-expanded img {
    max-height: 40px !important;
    max-width: 200px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

/* ===== AI 选车结果面板 ===== */
.io-hero-search {
    position: relative;
}

.io-search-input-wrap,
.io-search-input-wrap input {
    cursor: text;
}

.io-ai-result-panel {
    position: relative;
    width: 100%;
    margin-top: 14px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fafafa;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.io-ai-result-panel[hidden] {
    display: none;
}

.io-ai-result-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.io-ai-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.io-ai-result-title {
    color: #1f2937;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .01em;
}

.io-ai-result-close {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #4b5563;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.io-ai-result-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.io-ai-btn:disabled {
    opacity: .75;
    cursor: wait;
    transform: none;
}

.io-ai-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    color: #64748b;
    font-size: 14px;
}

.io-ai-loading-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.io-ai-loading-dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2563eb;
    animation: io-ai-bounce 1.2s infinite ease-in-out;
}

.io-ai-loading-dots i:nth-child(2) {
    animation-delay: .15s;
}

.io-ai-loading-dots i:nth-child(3) {
    animation-delay: .3s;
}

@keyframes io-ai-bounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: .45;
    }
    30% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

.io-ai-error {
    padding: 12px 14px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 14px;
    line-height: 1.6;
}

.io-ai-text-content {
    color: #334155;
    font-size: 14px;
    line-height: 1.75;
}

.io-ai-text-content:empty {
    display: none;
}

.io-ai-text-content p {
    margin: 0 0 10px;
}

.io-ai-text-content p:last-child {
    margin-bottom: 0;
}

.io-ai-text-content h3,
.io-ai-text-content h4,
.io-ai-text-content h5,
.io-ai-text-content h6 {
    margin: 14px 0 8px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.45;
}

.io-ai-text-content ul,
.io-ai-text-content ol {
    margin: 8px 0 12px;
    padding-left: 20px;
}

.io-ai-text-content li {
    margin: 4px 0;
}

.io-ai-text-content strong {
    color: #0f172a;
}

.io-ai-text-content a {
    color: #2563eb;
    text-decoration: none;
}

.io-ai-text-content a:hover {
    text-decoration: underline;
}

.io-ai-text-content code {
    padding: 1px 6px;
    border-radius: 5px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 13px;
}

/* 关联站内内容：车型网格 + 帖子/文章列表 */
.io-ai-site-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.io-ai-site-results[hidden] {
    display: none;
}

.io-ai-site-section {
    min-width: 0;
}

.io-ai-site-section-title {
    margin-bottom: 8px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
}

.io-ai-vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.io-ai-vehicle-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.io-ai-vehicle-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 6px 16px rgba(37, 99, 235, .08);
    transform: translateY(-1px);
}

.io-ai-vehicle-thumb {
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f1f5f9;
    color: #94a3b8;
    font-size: 11px;
}

.io-ai-vehicle-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.io-ai-vehicle-body {
    padding: 8px 10px 10px;
}

.io-ai-vehicle-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #1f2937;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.io-ai-vehicle-price {
    margin-top: 4px;
    color: #e8452c;
    font-size: 13px;
    font-weight: 800;
}

.io-ai-post-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.io-ai-post-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease;
}

.io-ai-post-item:hover {
    border-color: #bfdbfe;
    background: #f8fbff;
}

.io-ai-post-tag {
    flex: none;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.io-ai-post-tag.is-topic {
    background: #ecfdf5;
    color: #047857;
}

.io-ai-post-tag.is-post {
    background: #eff6ff;
    color: #2563eb;
}

.io-ai-post-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .io-ai-result-panel {
        max-height: 60vh;
        padding: 16px;
        border-radius: 14px;
    }

    .io-ai-result-title {
        font-size: 14px;
    }

    .io-ai-vehicle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ===== 首页最新车型：移动端上图下文 ===== */
.io-home-car-item-actions {
    display: none;
}

.io-home-car-compare.is-selected {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}

/* ===== 首页最新车型：PC 端等高卡片 + 参数标签单行省略 ===== */
@media (min-width: 769px) {
    .io-home-cars {
        align-items: stretch !important;
    }

    .io-home-car-item {
        display: flex !important;
        flex-direction: column !important;
        align-self: stretch !important;
        height: 100% !important;
        min-height: 0 !important;
    }

    .io-home-car-item .ioveh-card {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 auto !important;
        height: 100% !important;
        min-height: 0 !important;
    }

    .io-home-car-item .ioveh-card-img {
        flex: 0 0 auto !important;
    }

    .io-home-car-item .ioveh-card-body {
        display: flex !important;
        flex: 1 1 auto !important;
        flex-direction: column !important;
        min-height: 0 !important;
    }

    .io-home-car-item .ioveh-card-meta {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        margin: 0 0 6px !important;
        padding: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .io-home-car-item .ioveh-card-meta > span {
        flex: 0 1 auto !important;
        min-width: 0 !important;
        max-width: 120px !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
        box-sizing: border-box !important;
    }

    .io-home-car-item .ioveh-card-actions {
        margin-top: auto !important;
    }

    /* 兼容其他标签容器写法 */
    .io-home-cars .car-tags,
    .io-home-cars .io-car-tags,
    .io-home-cars .tags {
        display: flex !important;
        flex-wrap: nowrap !important;
        margin: 0 0 6px !important;
        padding: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .io-home-cars .car-tags > span,
    .io-home-cars .io-car-tags > *,
    .io-home-cars .tags > span {
        flex: 0 1 auto !important;
        min-width: 0 !important;
        max-width: 120px !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 768px) {
    .io-home-cars.grid-3,
    .io-home-cars.io-grid,
    .io-home-cars {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        gap: 8px !important;
    }

    .io-home-car-item {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        height: 90px !important;
        padding: 0 !important;
        overflow: hidden !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 10px !important;
        background: #fff !important;
        box-shadow: 0 1px 2px rgba(15, 23, 42, .03) !important;
        box-sizing: border-box !important;
    }

    .io-home-car-item .ioveh-card {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        width: 100% !important;
        height: 100% !important;
        padding: 8px 12px !important;
        gap: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    .io-home-car-item .ioveh-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .io-home-car-item .ioveh-card-img {
        flex: 0 0 90px !important;
        width: 90px !important;
        height: 70px !important;
        aspect-ratio: auto !important;
        overflow: hidden !important;
        border-radius: 8px !important;
        background: #f8fafc !important;
    }

    .io-home-car-item .ioveh-card-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        border-radius: 8px !important;
    }

    .io-home-car-item .ioveh-card-body {
        display: flex !important;
        flex: 1 1 auto !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-self: stretch !important;
        width: auto !important;
        min-width: 0 !important;
        height: 100% !important;
        margin-left: 12px !important;
        padding: 0 0 22px !important;
        gap: 4px !important;
        box-sizing: border-box !important;
    }

    .io-home-car-item .ioveh-card-brand {
        display: none !important;
    }

    .io-home-car-item .ioveh-card-title {
        display: block !important;
        margin: 0 !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        -webkit-line-clamp: unset !important;
        -webkit-box-orient: initial !important;
    }

    .io-home-car-item .ioveh-card-meta {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
        font-size: 10px !important;
        line-height: 1.2 !important;
        color: #94a3b8 !important;
    }

    .io-home-car-item .ioveh-card-meta span {
        flex: 0 1 auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding: 1px 5px !important;
        overflow: hidden !important;
        border-radius: 4px !important;
        background: #f5f7fa !important;
        font-size: 10px !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
        box-sizing: border-box !important;
    }

    /* 移动端最新车型：只保留前两个参数标签，防止撑破卡片、挤压价格区 */
    .io-home-car-item .ioveh-card-meta > span:nth-child(n+3),
    .io-home-cars .car-tags > span:nth-child(n+3),
    .io-home-cars .io-car-tags > *:nth-child(n+3),
    .io-home-cars .tags > span:nth-child(n+3) {
        display: none !important;
    }

    /* 兼容其他标签容器：强制单行 + 溢出隐藏 */
    .io-home-cars .car-tags,
    .io-home-cars .io-car-tags,
    .io-home-cars .tags {
        display: flex !important;
        flex-wrap: nowrap !important;
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .io-home-cars .car-tags > span,
    .io-home-cars .io-car-tags > *,
    .io-home-cars .tags > span {
        flex: 0 1 auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
        box-sizing: border-box !important;
    }

    .io-home-car-item .ioveh-card-price,
    .io-home-car-item .ioveh-card-actions {
        display: none !important;
    }

    .io-home-car-item-actions {
        position: absolute !important;
        left: 114px !important;
        right: 12px !important;
        bottom: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        padding: 0 !important;
        z-index: 2;
    }

    .io-home-car-item-price {
        color: #ef4444 !important;
        font-size: 16px !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    .io-home-car-item .io-home-car-compare {
        flex: none !important;
        padding: 3px 8px !important;
        border: 1px solid #bfdbfe !important;
        border-radius: 12px !important;
        background: #eff6ff !important;
        color: #2563eb !important;
        font-size: 11px !important;
        line-height: 1.4 !important;
        white-space: nowrap !important;
        box-shadow: none !important;
    }
}

/* =========================================================
   首页搜索：Meilisearch 实时联想（2026-10-21）
   ========================================================= */
.io-search-inner {
    position: relative;
}

/* 输入框可编辑，不再显示为可点击弹窗 */
.io-search-inner .io-search-input-wrap,
.io-search-inner .io-search-input-wrap input {
    cursor: text;
}

.io-search-inner:focus-within {
    border-color: #2563eb;
    box-shadow: 0 12px 40px rgba(37, 99, 235, .15);
}

/* 下拉容器：绝对定位，悬浮在下方内容之上 */
.io-home-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 99999 !important;
    display: none;
    max-height: 360px;
    padding: 6px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1) !important;
    pointer-events: auto !important;
    text-align: left;
    -webkit-overflow-scrolling: touch;
}

/* 下拉打开时禁止搜索条上浮，避免鼠标滑到边缘时抖动、穿透到底层 */
.io-search-inner.is-suggesting:hover {
    transform: none !important;
}

.io-search-inner:has(.io-home-suggestions.is-open):hover {
    transform: none !important;
}

.io-home-suggestions.is-open {
    display: block;
}

.io-home-suggestions__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.io-home-suggestions .ms-auto-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2px 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.io-home-suggestions .ms-auto-item:hover,
.io-home-suggestions .ms-auto-item.is-active {
    background: #eff6ff;
}

.io-home-suggestions .ms-auto-item:hover .ms-auto-title,
.io-home-suggestions .ms-auto-item.is-active .ms-auto-title,
.io-home-suggestions .ms-auto-item:active .ms-auto-title {
    color: #2563eb;
}

.io-home-suggestions .ms-auto-type {
    grid-row: 1 / span 2;
    grid-column: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 2px 7px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
}

.io-home-suggestions .ms-auto-title {
    grid-column: 2;
    min-width: 0;
    overflow: hidden;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.io-home-suggestions .ms-auto-title em {
    padding: 0 2px;
    border-radius: 3px;
    background: rgba(37, 99, 235, .10);
    color: #2563eb;
    font-style: normal;
    font-weight: 700;
}

.io-home-suggestions .ms-auto-desc {
    grid-column: 2;
    min-width: 0;
    overflow: hidden;
    color: #9ca3af;
    font-size: 12px;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.io-home-suggestions .io-home-search-notice {
    padding: 16px 12px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

@media (max-width: 768px) {
    .io-home-suggestions {
        top: calc(100% + 6px);
        max-height: 300px;
    }

    .io-home-suggestions .ms-auto-item {
        padding: 12px 10px;
    }
}

/* =========================================================
   首页内联样式迁移（2026-10-21）
   ========================================================= */
.io-hero-search-icon {
    color: #888;
    margin-left: 15px;
}

.io-side-title-link {
    margin-left: auto;
    margin-top: 2px;
    color: #888;
    font-size: 13px;
    font-weight: normal;
    white-space: nowrap;
}

.io-forum-block {
    margin-bottom: 28px;
}

.io-title--spaced {
    margin-top: 28px;
}

.io-quiz-card {
    padding: 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e0e7ff, #f3e8ff);
    text-align: center;
}

.io-quiz-title {
    margin-bottom: 12px;
    color: #4f46e5;
    font-size: 16px;
    font-weight: bold;
}

.io-quiz-btn {
    width: 100%;
    padding: 10px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

/* =========================================================
   首页最新车型：隐藏卡片品牌名
   ========================================================= */
.io-home-cars .ioveh-card-brand,
.io-home-cars .io-car-brand,
.io-home-cars .car-brand {
    display: none !important;
}

/* =========================================================
   首页全平台排行榜
   ========================================================= */
.io-ranking.io-card {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 24px !important;
    padding: 30px !important;
    border: 1px solid #eef0f3 !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 8px 30px rgba(15, 23, 42, .06) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.io-ranking-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.io-ranking-heading {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}

.io-ranking-title {
    margin: 0;
    color: #111827;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.25;
}

.io-ranking-subtitle {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
}

.io-ranking-subtitle .io-ranking-all {
    margin-left: 5px;
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.io-ranking-subtitle .io-ranking-all:hover {
    text-decoration: underline;
}

.io-ranking-tabs {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.io-ranking-tab {
    height: 32px;
    padding: 0 15px;
    border: 0;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.io-ranking-tab:hover {
    color: #2563eb;
    background: #eff6ff;
}

.io-ranking-tab.is-active {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 4px 10px rgba(37, 99, 235, .2);
}

.io-ranking-tab:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.io-ranking-panel {
    display: none;
}

.io-ranking-panel.is-active {
    display: block;
    animation: ioRankingFade .25s ease;
}

@keyframes ioRankingFade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.io-ranking-track {
    display: flex;
    gap: 16px;
    padding: 2px 2px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.slider-wrapper {
    position: relative;
    min-width: 0;
}

.slider-btn {
    position: absolute;
    top: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(0, 0, 0, .05);
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    color: #374151;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform: translateY(-50%);
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.slider-btn.btn-prev {
    left: 10px;
}

.slider-btn.btn-next {
    right: 10px;
}

.slider-btn:hover,
.slider-btn:focus-visible {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

.slider-btn:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.slider-btn[hidden] {
    display: none !important;
}

.slider-btn svg {
    display: block;
    pointer-events: none;
}

.io-ranking-track::-webkit-scrollbar {
    display: none;
}

.io-ranking-card {
    position: relative;
    display: flex;
    flex: 0 0 calc(20% - 16px);
    flex-direction: column;
    min-width: 0;
    padding: 14px 12px 12px;
    overflow: hidden;
    border: 1px solid #eef0f3;
    border-radius: 14px;
    background: #fff;
    color: #222;
    text-decoration: none;
    scroll-snap-align: start;
    box-sizing: border-box;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.io-ranking-card:hover {
    border-color: #dbeafe;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .1);
    transform: translateY(-2px);
}

.io-ranking-badge {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    padding: 3px 8px;
    border-radius: 12px 0 10px 0;
    background: #6b7280;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .2px;
}

.io-ranking-badge.is-top-1 {
    background: #f59e0b;
}

.io-ranking-badge.is-top-2 {
    background: #9ca3af;
}

.io-ranking-badge.is-top-3 {
    background: #b45309;
}

.io-ranking-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 132px;
    margin: 18px 0 8px;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
}

.io-ranking-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.io-ranking-noimg {
    color: #c4c9d2;
    font-size: 12px;
}

.io-ranking-name {
    display: -webkit-box;
    min-height: 38px;
    overflow: hidden;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.io-ranking-metric {
    margin-top: 6px;
    overflow: hidden;
    color: #9ca3af;
    font-size: 11px;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.io-ranking-metric strong {
    color: #4b5563;
    font-size: 12px;
    font-weight: 800;
}

.io-ranking-metric .io-ranking-no-comments {
    color: #9ca3af;
    font-size: 10px;
}

.io-ranking-price {
    margin-top: auto;
    padding-top: 8px;
    color: #ef4444;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
}

.io-ranking-empty {
    padding: 32px 0;
    color: #9ca3af;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 768px) {
    .io-ranking.io-card {
        padding: 16px !important;
        margin-bottom: 16px !important;
        border-radius: var(--radius-md) !important;
    }

    .io-ranking-head {
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 14px;
    }

    .io-ranking-heading {
        flex-direction: column;
        gap: 2px;
    }

    .io-ranking-title {
        font-size: 18px;
    }

    .io-ranking-subtitle {
        font-size: 11px;
    }

    .io-ranking-tabs {
        gap: 5px;
    }

    .io-ranking-tab {
        height: 28px;
        padding: 0 9px;
        font-size: 11px;
    }

    .io-ranking-track {
        gap: 12px;
        padding-bottom: 6px;
    }

    .io-ranking-card {
        flex: 0 0 130px;
        width: 130px;
        padding: 10px 9px 9px;
        border-radius: 12px;
    }

    .io-ranking-thumb {
        height: 92px;
        margin: 16px 0 6px;
    }

    .io-ranking-name {
        min-height: 35px;
        font-size: 13px;
    }

    .io-ranking-metric {
        font-size: 10px;
    }

    .io-ranking-price {
        font-size: 15px;
    }
}

/* 排行榜为内容区首行通栏，下方再进入 main + aside 双栏网格 */
.io-main-wrap > .io-ranking {
    grid-column: 1 / -1 !important;
    margin: 0 !important;
}

/* =========================================================
   2026-10-25 首页 SEO H1 + 移动端搜索 / 排行榜瘦身
   ========================================================= */

/* 首页唯一 H1：视觉隐藏，但保留给搜索引擎与读屏器 */
.io-wrap > .io-home-seo-h1 {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 768px) {
    /* 移动端：彻底移除首页大标题和副标题 */
    .io-wrap .io-hero-search .io-hero-title,
    .io-wrap .io-hero-search .io-hero-subtitle {
        display: none !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 搜索区外层：只保留 10px 上下内边距，紧贴下方排行榜 */
    .io-wrap .io-hero-search {
        min-height: 0 !important;
        margin: 0 auto !important;
        padding: 10px 15px !important;
        background: #f2f4f7 !important;
        text-align: left !important;
    }

    /* 移除搜索区与内容区之间的顶部留白 */
    .io-wrap .io-main-wrap {
        margin-top: 0 !important;
    }

    /* 单行紧凑搜索舱 */
    .io-wrap .io-hero-search .io-search-inner.mobile-search-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        transform: none !important;
        overflow: visible !important;
    }

    .io-wrap .io-hero-search .io-search-inner.mobile-search-row:hover,
    .io-wrap .io-hero-search .io-search-inner.mobile-search-row:focus-within {
        border: 0 !important;
        box-shadow: none !important;
        transform: none !important;
    }

    /* 让输入框直接作为 flex 子项，视觉上组成 input + button 单行结构 */
    .io-wrap .io-hero-search .io-search-inner.mobile-search-row .io-search-input-wrap {
        display: contents !important;
    }

    .io-wrap .io-hero-search .io-search-inner.mobile-search-row .io-hero-search-icon {
        display: none !important;
    }

    .io-wrap .io-hero-search .io-search-inner.mobile-search-row input {
        flex: 1 1 0% !important;
        width: auto !important;
        min-width: 0 !important;
        height: 38px !important;
        padding: 0 12px !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 8px !important;
        background: #f3f4f6 !important;
        box-shadow: none !important;
        color: #111827 !important;
        font-size: 14px !important;
        line-height: 36px !important;
        outline: none !important;
    }

    .io-wrap .io-hero-search .io-search-inner.mobile-search-row input::placeholder {
        color: #9ca3af !important;
    }

    .io-wrap .io-hero-search .io-search-inner.mobile-search-row input:focus {
        border-color: #c4b5fd !important;
        box-shadow: none !important;
    }

    .io-wrap .io-hero-search .io-search-inner.mobile-search-row button.io-ai-btn {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 0 !important;
        height: 38px !important;
        padding: 0 14px !important;
        border: 0 !important;
        border-radius: 8px !important;
        background: linear-gradient(90deg, #8b5cf6, #6366f1) !important;
        color: #fff !important;
        font-size: 14px !important;
        line-height: 38px !important;
        white-space: nowrap !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .io-wrap .io-hero-search .io-search-inner.mobile-search-row button.io-ai-btn:hover {
        background: linear-gradient(90deg, #7c3aed, #4f46e5) !important;
        transform: none !important;
    }

    /* 排行榜一屏完整 3 张卡，并让右侧第 4 张卡露出约 12px 作为横滑提示。
       扣除：主容器 24px（移动端 12px × 2） + 排行内边距 32px + 边框 2px
       + 轨道左右内边距 26px（左 2 + 右 24）。 */
    .io-wrap .io-ranking-track {
        --io-rank-mobile-gap: 12px;
        gap: var(--io-rank-mobile-gap) !important;
    }

    .io-wrap .io-ranking-track.scroll-box {
        padding-right: 24px !important;
    }

    .io-wrap .io-ranking-card {
        flex: 0 0 calc((100vw - 84px - (var(--io-rank-mobile-gap) * 2)) / 3) !important;
        width: calc((100vw - 84px - (var(--io-rank-mobile-gap) * 2)) / 3) !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 8px 6px 7px !important;
        border-radius: 10px !important;
    }

    .io-wrap .io-ranking-badge {
        padding: 2px 5px !important;
        border-radius: 8px 0 6px 0 !important;
        font-size: clamp(7px, 2vw, 9px) !important;
    }

    .io-wrap .io-ranking-thumb {
        height: auto !important;
        aspect-ratio: 4 / 3 !important;
        margin: 11px 0 5px !important;
        border-radius: 6px !important;
    }

    .io-wrap .io-ranking-name {
        min-height: 2.6em !important;
        font-size: clamp(10px, 2.9vw, 12px) !important;
        line-height: 1.3 !important;
    }

    .io-wrap .io-ranking-metric {
        margin-top: 3px !important;
        font-size: clamp(9px, 2.4vw, 10px) !important;
    }

    .io-wrap .io-ranking-metric strong {
        font-size: 1.05em !important;
    }

    .io-wrap .io-ranking-price {
        padding-top: 4px !important;
        font-size: clamp(12px, 3.5vw, 15px) !important;
    }

    .io-wrap .io-ranking-noimg {
        font-size: 9px !important;
    }

    /* 移动端移除左右悬浮按钮，完全依赖横滑操作 */
    .io-wrap .io-ranking .slider-btn,
    .io-wrap .io-ranking .slider-btn.btn-prev,
    .io-wrap .io-ranking .slider-btn.btn-next {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}