/* ===== Blocks: hero / split / cards / timeline / process / cta ===== */

/* Hero */
.block-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #222;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.block-hero--page {
    min-height: 72vh;
    display: flex;
    align-items: center;
    padding: 120px 5% 70px;
}

.block-hero--home {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.block-hero--page::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    animation: zoomIn 18s infinite alternate;
}

.hero-page::before {
    background-image: var(
        --hero-bg,
        url("https://images.unsplash.com/photo-1619767886558-efdc259cde1a?q=80&w=1920&auto=format&fit=crop")
    );
    filter: brightness(0.28);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: var(
        --hero-bg,
        url("https://images.unsplash.com/photo-1558618666-fcd25c85cd64?q=80&w=1920&auto=format&fit=crop")
    );
    background-size: cover;
    background-position: center;
    animation: zoomIn 20s infinite alternate;
    filter: brightness(0.3);
}

.page-hero-content,
.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeUp 1.2s ease-out;
}

.hero-content {
    z-index: 10;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-logo-img {
    max-height: 96px;
    width: auto;
    display: block;
    margin: 0 auto 20px;
    object-fit: contain;
}

.hero-title span {
    color: var(--evc-orange);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    letter-spacing: 8px;
    margin-bottom: 50px;
    text-transform: uppercase;
}

.hero-actions--center {
    justify-content: center;
    font-size: 0.2em;
}

.page-desc {
    max-width: 840px;
    margin-bottom: 36px;
}

.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    animation: bounce 2s infinite;
    z-index: 10;
}

/* Split */
.split-grid {
    display: grid;
    gap: 28px;
    align-items: stretch;
}

.split-2 {
    grid-template-columns: 1fr 1fr;
}

.split-panel {
    border: 1px solid var(--line-color);
    padding: 36px;
    background: rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.split-panel:hover {
    border-color: var(--evc-orange);
    transform: translateY(-6px);
}

/* Slider */
.section-slider.section-slider--full {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0;
}

.section-slider.section-slider--full .slider-wrapper {
    position: relative;
    width: 100%;
}

.section-slider.section-slider--full .slider {
    border: 0;
    border-radius: 0;
}

.section-slider.section-slider--full .slider-slide img {
    width: 100%;
    height: 72vh;
    min-height: 420px;
    object-fit: cover;
}

.slider-wrapper {
    position: relative;
}
.slider {
    overflow: hidden;
    border: 1px solid var(--line-color);
    border-radius: 4px;
    touch-action: pan-y;
    user-select: none;
    position: relative;
}

.slider-track {
    position: relative;
    width: 100%;
    min-height: inherit;
}

.slider-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.9s ease,
        visibility 0.9s ease;
    z-index: 1;
}

.slider-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slider-slide img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

.slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.slider-caption h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.slider-caption p {
    font-size: 14px;
    color: #ccc;
    line-height: 1.6;
    margin: 0;
}

/* Slider dots */
.slider-dots {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 4;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(6px);
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        opacity 0.25s ease;
    padding: 0;
    opacity: 0.9;
}

.slider-dot.active,
.slider-dot:hover {
    background: var(--evc-orange);
    transform: scale(1.15);
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .section-slider.section-slider--full .slider-slide img,
    .slider-slide img {
        height: 42vh;
        min-height: 260px;
    }
    .slider-caption {
        padding: 16px 20px 44px;
    }
    .slider-caption h3 {
        font-size: 18px;
    }
}

/* Cards */
.cards-grid {
    display: grid;
    gap: 22px;
}

.cards-grid--compact {
    gap: 16px;
}

.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    border: 1px solid var(--line-color);
    padding: 30px;
    background: rgba(0, 0, 0, 0.08);
    transition: 0.3s;
    position: relative;
}

.card:hover {
    border-color: var(--evc-orange);
    transform: translateY(-8px);
}

.card--icon {
    min-height: 260px;
}

.card--icon .card-num {
    font-size: 14px;
    font-weight: 700;
}

.card--icon .card-title {
    font-size: 22px;
}

.card--rich {
    padding: 36px;
}

.card--stat {
    padding: 24px 20px;
    background: rgba(255, 255, 255, 0.01);
}

.card-icon {
    font-size: 38px;
    color: var(--evc-orange);
    margin-bottom: 18px;
}

.card-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.split-panel > .card-title {
    font-size: 22px;
    margin-bottom: 16px;
}

.card-desc {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.9;
}

.card-desc + .card-desc {
    margin-top: 18px;
}

.card-desc + .card-title {
    margin-top: 28px;
}

.card-tag {
    display: inline-block;
    font-size: 12px;
    color: var(--evc-orange);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.card-tag--line {
    border-top: 1px solid #333;
    padding-top: 14px;
    margin-top: 18px;
    margin-bottom: 0;
}

.card-num {
    font-size: 34px;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 8px;
}

.card-num span {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

/* Media cards */
.cards-media {
    gap: 15px;
}

.card--media {
    padding: 0;
    height: 300px;
    overflow: hidden;
}

.card--media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 0.8s,
        filter 0.8s;
    filter: grayscale(100%);
}

.card--media:hover img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.card-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    text-align: left;
    opacity: 0;
    transition: 0.4s;
}

.card--media:hover .card-overlay {
    opacity: 1;
}

.card--media .card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 0;
}

/* Contact info */
.contact-info-note-wrap {
    margin-top: 40px;
}

/* CTA */
.cta {
    border: 1px solid #333;
    padding: 48px;
    background: linear-gradient(
        180deg,
        rgba(255, 102, 0, 0.12),
        rgba(0, 0, 0, 0.05)
    );
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.cta h3 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.2;
}

.cta p {
    color: var(--text-gray);
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.8;
    max-width: 720px;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Bullet list */
.bullet-list li {
    color: #ddd;
    font-size: 14px;
    line-height: 1.9;
    padding-left: 18px;
    position: relative;
    margin-bottom: 10px;
}
.bullet-list li::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--evc-orange);
    position: absolute;
    left: 0;
    top: 10px;
}

/* Home bounce */
@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .split-2 {
        grid-template-columns: 1fr;
    }

    .cols-4 {
        grid-template-columns: 1fr 1fr;
    }

    .cols-3 {
        grid-template-columns: 1fr 1fr;
    }

    .cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .block-hero--page {
        padding: 120px 5% 60px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 14px;
        letter-spacing: 3px;
        margin-bottom: 32px;
    }

    .cols-2,
    .cols-3,
    .cols-4 {
        grid-template-columns: 1fr;
    }

    .split-panel,
    .card {
        padding: 26px;
    }

    .card--media {
        height: 240px;
    }

    .cta {
        padding: 32px 24px;
    }
}

/* ===== Block: markdown ===== */
.markdown-wrap {
    max-width: none;
    margin: 0;
    width: 100%;
    overflow-x: hidden;
}

.markdown-wrap .rich-text {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 44px 48px;
    border: 1px solid var(--line-color);
    background: rgba(0, 0, 0, 0.08);
    color: #d7d7d7;
    font-size: 16px;
    line-height: 1.9;
    overflow-wrap: break-word;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.markdown-wrap .rich-text > *:first-child {
    margin-top: 0;
}

.markdown-wrap .rich-text > *:last-child {
    margin-bottom: 0;
}

.markdown-wrap .rich-text .table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.8em 0;
}
.markdown-wrap .rich-text .table-scroll table {
    width: max-content;
    min-width: 100%;
    margin: 0;
    border-collapse: collapse;
    white-space: nowrap;
}

/* Headings */
.markdown-wrap .rich-text h1,
.markdown-wrap .rich-text h2,
.markdown-wrap .rich-text h3,
.markdown-wrap .rich-text h4,
.markdown-wrap .rich-text h5,
.markdown-wrap .rich-text h6 {
    color: var(--text-white);
    font-weight: 700;
    line-height: 1.25;
    margin-top: 1.7em;
    margin-bottom: 0.7em;
    letter-spacing: 0.3px;
}

.markdown-wrap .rich-text h1 {
    font-size: 40px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line-color);
}

.markdown-wrap .rich-text h2 {
    font-size: 30px;
    padding-left: 14px;
    border-left: 4px solid var(--evc-orange);
}

.markdown-wrap .rich-text h3 {
    font-size: 24px;
}

.markdown-wrap .rich-text h4 {
    font-size: 20px;
    color: #e5e5e5;
}

.markdown-wrap .rich-text h5 {
    font-size: 17px;
    color: #d9d9d9;
}

.markdown-wrap .rich-text h6 {
    font-size: 13px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Paragraph */
.markdown-wrap .rich-text p {
    margin: 0 0 1.15em;
    color: #cfcfcf;
}

/* Strong / emphasis */
.markdown-wrap .rich-text strong {
    color: var(--text-white);
    font-weight: 700;
}

.markdown-wrap .rich-text em {
    color: #f0f0f0;
    font-style: italic;
}

/* Links */
.markdown-wrap .rich-text a {
    color: var(--evc-orange);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 102, 0, 0.35);
    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.markdown-wrap .rich-text a:hover {
    color: #ff8533;
    border-bottom-color: var(--evc-orange);
    box-shadow: inset 0 -1px 0 rgba(255, 102, 0, 0.2);
}

/* Lists */
.markdown-wrap .rich-text ul,
.markdown-wrap .rich-text ol {
    margin: 0 0 1.4em 1.5em;
    padding: 0;
}

.markdown-wrap .rich-text ul {
    list-style: none;
    margin-left: 0;
}

.markdown-wrap .rich-text ul li {
    position: relative;
    padding-left: 20px;
}

.markdown-wrap .rich-text ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.85em;
    width: 6px;
    height: 6px;
    background: var(--evc-orange);
    transform: translateY(-50%);
}

.markdown-wrap .rich-text ol {
    padding-left: 1.4em;
}

.markdown-wrap .rich-text li {
    margin-bottom: 0.65em;
    color: #d4d4d4;
    line-height: 1.85;
}

.markdown-wrap .rich-text li > ul,
.markdown-wrap .rich-text li > ol {
    margin-top: 0.6em;
    margin-bottom: 0.6em;
}

/* Quote */
.markdown-wrap .rich-text blockquote {
    margin: 1.8em 0;
    padding: 22px 24px;
    border-left: 4px solid var(--evc-orange);
    background: rgba(255, 255, 255, 0.03);
    color: #bdbdbd;
}

.markdown-wrap .rich-text blockquote p {
    color: #c8c8c8;
}

.markdown-wrap .rich-text blockquote p:last-child {
    margin-bottom: 0;
}

/* Rule */
.markdown-wrap .rich-text hr {
    border: none;
    border-top: 1px solid var(--line-color);
    margin: 2.2em 0;
}

/* Images */
.markdown-wrap .rich-text img {
    display: block;
    width: auto;
    max-width: min(100%, 920px);
    height: auto;
    margin: 1.8em auto;
    border: 1px solid #2a2a2a;
    background: #111;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.35),
        0 2px 8px rgba(0, 0, 0, 0.22);
    filter: saturate(0.96) contrast(1.02);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        filter 0.35s ease,
        border-color 0.35s ease;
}

.markdown-wrap .rich-text img:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 102, 0, 0.35);
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.42),
        0 6px 18px rgba(255, 102, 0, 0.12);
    filter: saturate(1.02) contrast(1.04);
}

/* Code */
.markdown-wrap .rich-text code {
    font-family:
        "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.92em;
    background: rgba(255, 255, 255, 0.06);
    color: #ffd3b3;
    padding: 0.18em 0.42em;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.markdown-wrap .rich-text pre {
    margin: 1.6em 0;
    padding: 18px 20px;
    background: #0b0b0b;
    border: 1px solid #262626;
    overflow-x: auto;
    border-radius: 2px;
}

.markdown-wrap .rich-text pre code {
    background: transparent;
    border: none;
    color: #e8e8e8;
    padding: 0;
    display: block;
    white-space: pre;
    line-height: 1.75;
}

/* Tables */
.markdown-wrap .rich-text table {
    display: table;
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    margin: 1.8em 0;
    border: 1px solid var(--line-color);
    background: rgba(255, 255, 255, 0.02);
    white-space: nowrap;
}

.markdown-wrap .rich-text thead {
    background: rgba(255, 102, 0, 0.08);
}

.markdown-wrap .rich-text th,
.markdown-wrap .rich-text td {
    text-align: left;
    padding: 14px 16px;
    border: 1px solid var(--line-color);
    vertical-align: top;
}

.markdown-wrap .rich-text th {
    color: var(--text-white);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.markdown-wrap .rich-text td {
    color: #d0d0d0;
    font-size: 15px;
}

/* Tablet */
@media (max-width: 992px) {
    .markdown-wrap .rich-text {
        max-width: 100%;
        padding: 36px 32px;
    }

    .markdown-wrap .rich-text h1 {
        font-size: 34px;
    }

    .markdown-wrap .rich-text h2 {
        font-size: 26px;
    }

    .markdown-wrap .rich-text h3 {
        font-size: 22px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .markdown-wrap .rich-text th,
    .markdown-wrap .rich-text td {
        padding: 12px;
        font-size: 14px;
    }

    .markdown-wrap .rich-text {
        padding: 24px 20px;
        font-size: 15px;
        line-height: 1.8;
    }

    .markdown-wrap .rich-text h1 {
        font-size: 28px;
        padding-bottom: 12px;
    }

    .markdown-wrap .rich-text h2 {
        font-size: 22px;
        padding-left: 12px;
    }

    .markdown-wrap .rich-text h3 {
        font-size: 19px;
    }

    .markdown-wrap .rich-text h4 {
        font-size: 17px;
    }

    .markdown-wrap .rich-text ul li {
        padding-left: 18px;
    }

    .markdown-wrap .rich-text blockquote {
        padding: 16px 18px;
    }

    .markdown-wrap .rich-text pre {
        padding: 14px 16px;
    }

    .markdown-wrap .rich-text th,
    .markdown-wrap .rich-text td {
        padding: 12px;
        font-size: 14px;
    }
}

/* ── Brand Grid 品牌车型 ── */
.brand-card {
    padding: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    min-height: 0;
}

.brand-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.brand-card-body {
    padding: 16px 18px 18px;
}

.brand-card-name {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.brand-card-count {
    font-size: 13px;
    color: var(--text-gray);
}

.brand-back {
    margin-bottom: 24px;
}

.brand-back-link {
    font-size: 14px;
    color: var(--text-gray);
    transition: color 0.2s;
}

.brand-back-link:hover {
    color: var(--evc-orange);
}

.brand-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.brand-detail-name {
    font-size: 24px;
    margin: 0;
}

.brand-model-count {
    font-size: 13px;
    color: var(--text-gray);
}

.brand-intro {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.8;
    margin: -12px 0 28px;
}

.model-grid {
    gap: 18px;
}

.model-card {
    padding: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    min-height: 0;
}

.model-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.model-card-body {
    padding: 16px 18px 18px;
}

.model-card .model-name {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.model-card .model-spec {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.7;
}

.model-card .model-note {
    font-size: 13px;
    color: var(--evc-orange);
    margin-top: 8px;
}

.model-card .model-more {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 12px;
    transition: color 0.3s;
}

a.model-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
}

a.model-card:hover .model-more {
    color: var(--evc-orange);
}

.model-empty {
    color: var(--text-gray);
    font-size: 14px;
}

/* 搜索过滤时隐藏卡片（用 class 而非 inline display，避免破坏 grid） */
.model-grid .model-card.is-filtered-out {
    display: none;
}

/* 列表标题行：左侧小标题，右侧搜索框 */
.grid-head {
    margin-bottom: 10px;
}

.grid-head.has-search {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.grid-head.has-search .section-title {
    margin-bottom: 0;
}

/* 搜索框 */
.grid-search {
    position: relative;
    width: 320px;
    max-width: 100%;
}

.grid-search-input {
    width: 100%;
    height: 42px;
    padding: 0 40px 0 16px;
    border: 1px solid var(--line-color);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-white);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
    -webkit-appearance: none;
    appearance: none;
}

.grid-search-input::placeholder {
    color: #666;
}

.grid-search-input:focus {
    border-color: var(--evc-orange);
    background: rgba(255, 255, 255, 0.07);
}

.grid-search-input::-webkit-search-cancel-button {
    display: none;
}

.grid-search-icon {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: #666;
    font-size: 14px;
    pointer-events: none;
}

/* 自动完成下拉 */
.grid-search-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 320px;
    overflow-y: auto;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
    z-index: 60;
}

.grid-search-list li {
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text-white);
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.grid-search-list li:last-child {
    border-bottom: none;
}

.grid-search-list li:hover,
.grid-search-list li.is-active {
    background: rgba(255, 102, 0, 0.14);
    color: var(--evc-orange);
}

/* 下方空间不足时向上展开，避免溢出屏幕底部 */
.grid-search-list.is-dropup,
.grid-search-empty.is-dropup {
    top: auto;
    bottom: calc(100% + 6px);
}

.grid-search-empty {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text-gray);
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
    z-index: 60;
}

/* 移动端：搜索是主入口，单独适配 */
@media (max-width: 768px) {
    /* 锚点跳转时避开固定的 header（实测移动端 header 高 76px） */
    #parts {
        scroll-margin-top: 76px;
    }

    /* 搜索框独占一行、全宽 */
    .grid-head.has-search {
        gap: 12px;
    }

    .grid-search {
        width: 100%;
    }

    /*
     * 标题行整体吸顶（sticky 只在父容器内生效，
     * .grid-search 的父级 .grid-head 只有一行高，必须挂在 .grid-head 上）
     */
    .grid-head.has-search {
        position: sticky;
        top: 76px;
        z-index: 500;
        /* 负 margin + 等量 padding：背景铺满 section 左右内边距，不留缝隙 */
        margin: 0 -5% 10px;
        padding: 12px 5%;
        background: var(--evc-gray);
        border-bottom: 1px solid var(--line-color);
    }

    .section.dark .grid-head.has-search {
        background: var(--evc-dark);
    }

    /*
     * iOS Safari 在输入框字号小于 16px 时聚焦会强制放大页面，
     * 用户必须手动缩回来，所以移动端提到 16px
     */
    .grid-search-input {
        height: 46px;
        font-size: 16px;
    }

    /* 触摸目标建议不小于 44px */
    .grid-search-list li {
        padding: 13px 16px;
        font-size: 15px;
    }

    /*
     * 下拉高度跟随视口，小屏不会撑破；
     * 偏移量补上吸顶栏 12px 下内边距，避免下拉压在吸顶栏上
     */
    .grid-search-list,
    .grid-search-empty {
        top: calc(100% + 18px);
        max-height: min(320px, 50vh);
    }

    /* 缩短卡片，57 条单列时减少约 18% 滚动距离 */
    .model-card-img {
        height: 110px;
    }
}
