
/* app/static/front/css/design.css */

/* 页面容器 */
.design-page {
    min-height: 100vh;
}

/* Banner 区域 */
.design-banner {
    position: relative;
    height: 300px; /* 固定高度300px */
    margin-top: 80px; /* 添加上边距避开导航栏，根据你的导航栏高度调整 */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

.design-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; /* 添加左右内边距 */
}

/* 设计图片展示区域 */
.design-images {
    background: #f8f9fa;
}

.design-item {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
    border-bottom: 1px solid #e9ecef;
}

.design-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.design-item:nth-child(even) {
    background: white;
}

.design-item:nth-child(odd) {
    background: #f8f9fa;
}

/* 图片容器 */
.image-container {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 500px;
    transition: all 0.3s ease;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-container:hover img {
    transform: scale(1.05);
}

/* 移除图片遮罩层和放大图标相关样式 */

/* 内容容器 */
.content-container {
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 3rem;
}

.item-title {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    position: relative;
}

.item-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.item-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-top: 1rem;
}

.item-description p {
    margin-bottom: 1rem;
}

/* 无数据状态 */
.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: 768px) {
    .design-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;
    }

    .content-container {
        padding: 2rem 1.5rem;
        min-height: auto;
    }

    .item-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .item-description {
        font-size: 1rem;
    }

    .image-container {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .design-banner {
        height: 200px; /* 小屏幕进一步减小高度 */
        margin-top: 60px;
    }

    .no-data {
        margin-top: 60px;
    }

    .banner-title {
        font-size: 2rem;
    }

    .content-container {
        padding: 1.5rem 1rem;
    }

    .item-title {
        font-size: 1.5rem;
    }

    .image-container {
        height: 250px;
    }
}
