
/* app/static/front/css/production.css */

/* 页面容器 */
.production-page {
    min-height: 100vh;
}

/* Banner 区域 */
.production-banner {
    position: relative;
    height: 300px; /* 固定高度300px */
    margin-top: 80px; /* 添加上边距避开导航栏 */
    background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

.production-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.banner-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
}

.banner-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.banner-content {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 100%;
    margin: 0 auto;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.3s both;
    padding: 0 2rem;
}

/* 生产图片画廊 */
.production-gallery {
    background: #f8f9fa;
    min-height: 60vh;
}

.gallery-item {
    transition: all 0.6s ease-out;
}

.gallery-item.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.production-image-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.production-image-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    padding-bottom: 75%; /* 4:3 宽高比 */
    background: #f8f9fa;
}

.gallery-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.production-image-card:hover .gallery-img {
    transform: scale(1.05);
}

/* 无数据状态 */
.no-data {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    margin-top: 80px;
}

.no-data-content {
    text-align: center;
    padding: 4rem 2rem;
}

.no-data-content i {
    opacity: 0.3;
}

/* 模态框样式 */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.modal-body {
    padding: 2rem;
}

.modal-description {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.modal-description h6 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.modal-description p {
    color: #666;
    margin: 0;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .gallery-item {
        /* xl: 3列 -> lg: 3列 */
    }
}

@media (max-width: 992px) {
    /* lg: 3列 -> md: 2列 */
}

@media (max-width: 768px) {
    .production-banner {
        height: 250px;
        margin-top: 60px;
    }

    .no-data {
        margin-top: 60px;
    }

    .banner-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .banner-content {
        font-size: 1rem;
        padding: 0 1rem;
    }

    /* md: 2列 -> sm: 2列 */
}

@media (max-width: 576px) {
    .production-banner {
        height: 200px;
        margin-top: 60px;
    }

    .no-data {
        margin-top: 60px;
    }

    .banner-title {
        font-size: 2rem;
    }

    .gallery-item {
        margin-bottom: 2rem;
    }

    /* sm: 2列 -> xs: 1列 */
    .gallery-item {
        /* 小屏幕保持2列，如需1列可以添加 col-12 类 */
    }
}
