/* ===== Model detail page ===== */

.model-detail-hero,
.page-hero.model-detail-hero {
    position: relative;
    min-height: 48vh;
    display: flex;
    align-items: center;
    padding: 120px 5% 70px;
    overflow: hidden;
    border-bottom: 1px solid #222;
    background: #0f172a;
}

/* hero 背景图：缓慢缩放（Ken Burns 效果） */
.model-detail-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    animation: model-hero-zoom 26s ease-in-out infinite;
    will-change: transform;
}

/* 深色遮罩，保证文字可读 */
.model-detail-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.model-detail-hero .page-hero-content {
    position: relative;
    z-index: 2;
}

@keyframes model-hero-zoom {
    0%,
    100% {
        transform: scale(1.05);
    }
    50% {
        transform: scale(1.2);
    }
}

@media (prefers-reduced-motion: reduce) {
    .model-detail-hero-bg {
        animation: none;
    }
}

.model-detail-spec {
    opacity: 0.7;
    font-size: 15px;
}

.model-detail-section {
    max-width: 1440px;
    margin: 0 auto;
    padding: 72px 5% 88px;
}

.model-detail-layout {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 60px;
    align-items: start;
}

.model-detail-gallery {
    min-width: 0;
}

.model-detail-cover {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.25);
}

.model-detail-price {
    margin-top: 24px;
    font-size: 26px;
    font-weight: 800;
    color: var(--evc-orange);
}

/* ── 多图切换：大图 + 缩略图列表 ── */
.model-thumb-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 14px;
    overflow-x: auto;
    /* 单行固定高度，不折行；容器过窄时横向滚动 */
}

.model-thumb {
    flex: 0 0 auto;
    width: 84px;
    height: 56px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    background: #0f172a;
    cursor: pointer;
    transition: border-color 0.2s;
}

.model-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.model-thumb:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.model-thumb.active {
    border-color: var(--evc-orange);
}

.model-detail-info {
    min-width: 0;
}

.model-detail-subtitle {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--evc-orange);
    display: inline-block;
}

.model-params-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.model-params-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #2a2a2a;
    vertical-align: top;
}

.model-params-table tr:last-child td {
    border-bottom: none;
}

.model-params-key {
    width: 32%;
    color: var(--text-gray);
    font-weight: 600;
}

.model-params-value {
    color: #d5d5d5;
}

.model-detail-desc {
    margin-top: 72px;
}

.model-detail-meta {
    position: relative;
    margin-bottom: 38px;
    padding-top: 18px;
}

.model-detail-meta::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 38px;
    height: 3px;
    border-radius: 3px;
    background: var(--evc-orange);
    content: "";
}

.model-detail-meta-row {
    min-width: 0;
}

.model-detail-meta-row strong {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.model-detail-meta-row--brand {
    margin-bottom: 7px;
}

.model-detail-meta-row--brand strong {
    color: var(--evc-orange);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.model-detail-meta-row--model {
    margin-bottom: 10px;
}

.model-detail-meta-row--model strong {
    color: #fff;
    font-size: clamp(26px, 2.4vw, 36px);
    font-weight: 780;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.model-detail-meta-row--spec strong {
    max-width: 620px;
    color: #aeb8c6;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
}

.parts-detail-info {
    padding-top: 4px;
}

.parts-detail-heading {
    position: relative;
    margin-bottom: 30px;
    padding-top: 18px;
}

.parts-detail-heading::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 38px;
    height: 3px;
    border-radius: 3px;
    background: var(--evc-orange);
    content: "";
}

.parts-detail-brand,
.parts-detail-price-label {
    color: var(--evc-orange);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.parts-detail-title {
    margin: 7px 0 10px;
    color: #fff;
    font-size: clamp(26px, 2.4vw, 36px);
    font-weight: 780;
    letter-spacing: -0.025em;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.parts-detail-spec {
    max-width: 620px;
    color: #aeb8c6;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.parts-detail-price-label {
    margin-top: 8px;
}

.parts-detail-price {
    margin-top: 8px;
}

.parts-detail-description {
    width: 100%;
    margin-top: 72px;
}

.parts-detail-description .model-detail-subtitle {
    margin-bottom: 18px;
}

.model-detail-back {
    margin-top: 72px;
    padding-top: 28px;
    border-top: 1px solid #2a2a2a;
}

/* Responsive */
@media (max-width: 900px) {
    .model-detail-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .model-params-key {
        width: 42%;
    }

    .model-detail-meta-row {
        padding: 7px 0;
    }

    .model-detail-meta-row--model strong {
        font-size: 21px;
    }

    .parts-detail-heading {
        margin-bottom: 24px;
        padding-top: 15px;
    }

    .parts-detail-title {
        font-size: 28px;
    }

    .parts-detail-spec {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .model-detail-hero,
    .page-hero.model-detail-hero {
        min-height: 42vh;
        padding: 110px 5% 56px;
    }

    .model-detail-section {
        padding: 44px 5% 56px;
    }

    .model-detail-meta-row {
        padding: 6px 0;
    }

    .model-detail-meta-row strong {
        font-size: 13px;
        line-height: 1.35;
    }

    .model-detail-meta-row--model {
        padding: 3px 0 10px;
    }

    .model-detail-meta-row--model strong {
        font-size: 19px;
    }
}
