/* ============================================================
   showcase.css - 科技成果展
   ============================================================ */

body {
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    background-color: #f5f7fa;
    margin: 0;
    padding: 0;
    color: #333;
}


/* --- 弹窗 --- */
.popup-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: hidden;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.popup-content {
    background-color: #fff;
	background-image: url('/static/2026/img/index/zhibo_bg.png');
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
    margin: 0 auto;
    margin-top: 8%;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 1200px;
    max-height: 82vh;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.popup-close {
    color: #999;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    margin-top: -20px;
    margin-right: -5px;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.popup-close:hover,
.popup-close:focus {
    color: #333;
    text-decoration: none;
}

.popup-header {
    text-align: center;
}

.popup-header h2 {
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 5;
}

.popup-body {
    display: flex;
    gap: 30px;
    max-height: calc(82vh - 100px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.popup-image-container {
    flex: 0 0 400px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popup-image-gallery {
    width: 100%;
}

.main-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    object-fit: contain;
    margin-bottom: 15px;
}

.thumbnail-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.thumbnail.active {
    border-color: #0066cc;
}

.popup-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    object-fit: contain;
}

.popup-text-container {
    flex: 1;
}

.popup-text {
    color: #555;
    line-height: 1.8;
    font-size: 16px;
}

.popup-text p {
    margin-bottom: 15px;
}

.popup-text strong {
    color: #333;
    font-weight: 600;
}

/* 弹窗响应式 */
@media (max-width: 992px) {
    .popup-content {
        margin-top: 10%;
        padding: 25px;
        max-height: 77vh;
    }

    .popup-body {
        flex-direction: column;
        gap: 20px;
        max-height: calc(77vh - 80px);
    }

    .popup-image-container {
        flex: 0 0 100%;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .popup-modal {
        padding-top: 60px;
        height: 100vh;
        box-sizing: border-box;
        overflow: hidden;
    }

    .popup-content {
        margin-top: 0;
        padding: 20px;
        width: 95%;
        max-height: 87vh;
        overflow: hidden;
        box-sizing: border-box;
    }

    .popup-body {
        flex-direction: column;
        gap: 20px;
        max-height: calc(87vh - 80px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .popup-header h2 {
        font-size: 20px;
        padding-bottom: 10px;
    }

    .popup-close {
        font-size: 28px;
    }

    .popup-text {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .popup-modal {
        padding-top: 80px;
        height: 100vh;
        box-sizing: border-box;
        overflow: hidden;
    }

    .popup-content {
        padding: 15px;
        width: 95%;
        max-height: 82vh;
        overflow: hidden;
        box-sizing: border-box;
    }

    .popup-body {
        flex-direction: column;
        gap: 20px;
        max-height: calc(82vh - 70px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .popup-header h2 {
        font-size: 18px;
    }

    .popup-close {
        font-size: 24px;
    }

    .popup-text {
        font-size: 14px;
        line-height: 1.7;
    }
}

/* 标题 */
.exhibition-title-img {
    width: 100%;
    max-width: 230px;
    display: block;
    /* margin: 0 auto; */
}

@media (max-width: 768px) {
    .exhibition-title-img { max-width: 200px; }
}
@media (max-width: 480px) {
    .exhibition-title-img { max-width: 150px; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.tech-exhibition {
    background: url('/static/2026/img/index/zhibo_bg.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 0;
}

.exhibition-header {
    text-align: center;
    margin-bottom: 60px;
}

/* 展区 */
.area-section {
    margin-bottom: 80px;
}

/* Banner */
.area-banner {
    position: relative;
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.area-banner img {
    width: 100%;
    height: auto;
    min-height: 140px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.area-banner:hover img {
    transform: scale(1.02);
}

.area-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.4), transparent 70%);
    z-index: 1;
}

.area-banner-title {
    position: absolute;
    top: 75%;
    left: 30px;
    transform: translateY(-50%);
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* 轮播容器 */
.carousel-container {
    position: relative;
    margin-top: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateZ(0);
    backface-visibility: hidden;
}

.carousel-wrapper {
    overflow: hidden;
}

.car-slide {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* 车辆卡片 */
.car-item {
    flex: 0 0 50%;
    position: relative;
    box-sizing: border-box;
    padding: 10px;
}

.car-bg {
    width: 100%;
    height: 320px;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.car-bg:hover {
    transform: scale(1.02);
}

.car-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.4s ease;
    border-radius: 10px;
}

.car-bg:hover img {
    transform: scale(1.05);
}

/* 图片上的名字 —— 你原来的风格：底部半透明黑底白字 */
.car-name-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    /* 去掉 right，宽度由内容决定 */
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    background-color: #d7d7d778;
    text-align: center;
    line-height: 1.4;
    pointer-events: none;
    /* 关键：宽度自适应内容 */
    display: inline-block;
    white-space: nowrap;
    max-width: calc(100% - 40px);
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 轮播控制按钮 */
.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

.carousel-control {
    pointer-events: auto;
    background: rgba(255,255,255,0.8);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.carousel-control:hover {
    background: rgba(255,255,255,1);
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* 指示点 —— 你原来的风格：圆点变长条 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

/* 指示器 —— 容器外部，图片下方 */
.carousel-indicators-outside {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.carousel-indicator.active {
    background: #1a6dd6;
    width: 20px;
    border-radius: 6px;
    transform: translateY(-1px);
}

.carousel-indicator:hover {
    background: rgba(26, 109, 214, 0.6);
    transform: scale(1.2);
}

/* ===== 弹窗 ===== */
.popup-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background-color: rgba(0,0,0,0.9);
    overflow-y: auto;
}

.popup-content {
    background-color: #fff;
    background-image: url('/static/2026/img/index/zhibo_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 8% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 1200px;
    position: relative;
    animation: modalopen 0.3s;
    max-height: 80vh;
}

@keyframes modalopen {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.popup-close {
    color: #999;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    margin-top: -25px;
    margin-right: -5px;
}

.popup-close:hover,
.popup-close:focus {
    color: #000;
}

.popup-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    text-align: center;
    padding-top: 20px;
}

.popup-header h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
    display: inline-block;
}

.popup-body {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
    max-height: calc(80vh - 120px);
    overflow-y: auto;
}

.popup-image-container {
    flex: 1;
    text-align: center;
}

.popup-image-container img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 5px;
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.15); */
}

.popup-text-container {
    flex: 1;
	max-height: 400px;
}

.popup-text-container p {
    line-height: 1.6;
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* ===== 响应式 ===== */

@media (max-width: 1024px) {
    .car-bg { height: 280px; }
    .area-banner-title { font-size: 28px; left: 30px; }
}

@media (max-width: 768px) {
    .tech-exhibition { padding: 40px 0; }
    .exhibition-header { margin-bottom: 40px; }
    .area-section { margin-bottom: 60px; }
    .area-banner { border-radius: 6px; margin-bottom: 30px; }
    .area-banner img { min-height: 120px; }
    .area-banner-title { font-size: 24px; left: 20px; }
    .car-item { flex: 0 0 100%; }
    .car-bg { height: auto; min-height: 240px; }
    .car-bg img { height: auto; min-height: 240px; object-fit: contain; border-radius: 15px; padding: 8px; }
    .car-name-overlay { font-size: 14px; bottom: 16px; left: 18px; }
    .carousel-control { width: 44px; height: 44px; font-size: 20px; margin: 0 12px; }
    .popup-content { margin: 24% auto 10% auto; padding: 15px; width: 90%; }
    .popup-body { flex-direction: column; gap: 20px; }
	}
	
	@media (max-width: 480px) {
		.carousel-indicator {
		    width: 6px;
		    height: 6px;
		    border-radius: 50%;
		    background: rgba(0, 0, 0, 0.25);
		    cursor: pointer;
		    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
		}
		.carousel-indicator.active {
		    background: #1a6dd6;
		    width: 12px;
		    border-radius: 6px;
		    transform: translateY(-1px);
		}
	}
	