/* 文明图鉴页面专用样式 */

/* Banner区域 */
.tuwen-banner {
    margin-top: 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tuwen-banner .banner-image {
    width: 1200px;
    height: 300px;
    margin: 0 auto;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.tuwen-banner .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
}

/* 第一行5列图文列表 */
.tuwen-top-section {
    padding: 15px 0 0px 0;
    background-color: transparent;
    position: relative;
    margin-top: 15px;
}

.tuwen-top-section > * {
    position: relative;
    z-index: 1;
}

.tuwen-grid-top {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.tuwen-item {
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid #dd640d;
}

.tuwen-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.tuwen-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(221, 100, 13, 0.3);
    border-color: #dd640d;
}

.tuwen-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.tuwen-grid-top .tuwen-image {
    height: 300px;
}

.tuwen-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tuwen-item:hover .tuwen-image img {
    transform: scale(1.1);
}

.tuwen-content {
    padding: 15px;
}

/* 5个长图下面的标题及描述区域固定高度65px */
.tuwen-grid-top .tuwen-content {
    height: 65px;
    padding: 10px 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tuwen-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 5个长图的标题 */
.tuwen-grid-top .tuwen-title {
    margin: 0;
    line-height: 1.4;
    flex-shrink: 0;
}

.tuwen-date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 5个长图的描述 */
.tuwen-grid-top .tuwen-date {
    line-height: 1.4;
    flex-shrink: 0;
}


/* 3行2列图文列表 */
.tuwen-main {
    padding: 0 0 60px 0;
    background-color: transparent;
    position: relative;
}

.tuwen-main > * {
    position: relative;
    z-index: 1;
}

.tuwen-grid-regular {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.tuwen-grid-regular .tuwen-image {
    height: 340px;
}

.tuwen-grid-regular .tuwen-content {
    height: 70px;
    padding: 7px 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tuwen-grid-regular .tuwen-title {
    font-size: 20px;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
	padding-bottom: 7px;
}

.tuwen-grid-regular .tuwen-date {
    font-size: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}


/* 响应式设计 */
@media (max-width: 1200px) {
    .tuwen-banner .banner-image {
        width: 100%;
        max-width: 1200px;
    }

    .tuwen-grid-top {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .tuwen-banner {
        margin-top: 0;
    }

    .tuwen-banner .banner-image {
        width: 100%;
        max-width: 1200px;
        height: 250px;
    }

    .tuwen-top-section {
        padding: 30px 0 0 0;
        margin-top: 15px;
    }

    .tuwen-grid-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .tuwen-grid-top .tuwen-image {
        height: 200px;
    }


    .tuwen-main {
        padding: 20px 0 40px 0;
    }

    .tuwen-grid-regular {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tuwen-grid-regular .tuwen-image {
        height: 220px;
    }

    .tuwen-grid-regular .tuwen-content {
        padding: 15px;
        height: auto;
    }

    .tuwen-grid-regular .tuwen-title {
        font-size: 18px;
    }

    .tuwen-grid-regular .tuwen-date {
        font-size: 14px;
    }

}

@media (max-width: 480px) {
    .tuwen-banner .banner-image {
        width: 100%;
        max-width: 1200px;
        height: 200px;
    }

    .tuwen-top-section {
        padding: 20px 0 0 0;
        margin-top: 15px;
    }
    
    .tuwen-grid-top .tuwen-content {
        height: auto;
        padding: 10px 12px;
    }

    .tuwen-grid-top {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tuwen-grid-top .tuwen-image {
        height: 200px;
    }

    .tuwen-title {
        font-size: 15px;
    }

    .tuwen-date {
        font-size: 13px;
    }

    .tuwen-main {
        padding: 15px 0 30px 0;
    }

    .tuwen-grid-regular .tuwen-image {
        height: 200px;
    }

    .tuwen-grid-regular .tuwen-content {
        height: auto;
        padding: 12px 15px;
    }

    .tuwen-grid-regular .tuwen-title {
        font-size: 16px;
        margin: 0 0 8px 0;
    }

    .tuwen-grid-regular .tuwen-date {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }
}
