﻿/*汇总页面列表*/
.photoClassList{
    width:100%;
    height:auto;overflow:hidden;
    margin:40px auto;
}
.photoClassList li{
    width:21%;float:left;
    margin:20px 1%;
    transition:all 0.5s;
}
.photoClassList li:hover{
    box-shadow:0 0 10px #ccc;
}
.photoClassList li img{
    width:100%;
    height:260px;
}
.photoClassList li h2{
    width:100%;
    height:40px;line-height:40px;
    text-align:center;
    font-size:18px;
}


.photoTitle {
    width: 100%;
    height: auto;
    overflow: hidden;
    margin-bottom: 30px;
}
.photoTitle h3 {
    width: 100%;
    color:#000;
    line-height:70px;
    font-size: 50px;
    font-weight: bold;
    font-family: Arial;
    border-bottom: 1px solid #8b8e8f;
    padding-bottom: 40px;
    margin-bottom: 10px;
}

    .photoTitle h3 span {
        float: right;
        display: inline-block;
        border: 4px solid #fcce20;
        width: 20px;
        height: 40px;
    }
.photoTitle h2{
    line-height:50px;
    font-size:36px;
    font-weight:bold;
    color:#000;
}

.photoNav{
    width:100%;
    height:auto;overflow:hidden;
}
.photoNav li{
    width:100%;
}
.photoNav li a{
    display:inline-block;
    margin-right:10px;
}
.photoNav li a:hover{
    color:#fcce20;
}
.photoNav li .all{
    color:#fcce20;
}

.photoNavSubList {
    width: 92%;
    height: auto;
    overflow: hidden;
    background-color: #fcce20;
    padding: 10px 3%;
    margin: 10px auto;
    border-radius: 50px;
}
    .photoNavSubList dd {
        height: 30px;
        overflow: hidden;
        margin-right: 20px;
        line-height: 30px;
        float: left;
        padding: 0 20px;

        border-radius: 40px;
    }
        .photoNavSubList dd a {
            color: #fff;
        }
        .photoNavSubList dd a:hover {
            color: #c29900;
            text-decoration: underline;
        }
    .photoNavSubList .active{
        background-color:#fff;
        
   
    }
    .photoNavSubList .active a {
        color: #d7ac0c;
    }

.photoList {
    column-count: 3; /* 定义列数 */
    column-gap: 10px; /* 定义列间距 */
    width: 100%;
}
.grid-item {
    display: inline-block;
    margin-bottom: 10px; /* 定义项之间的间距 */
    width: 100%; /* 设置宽度为100%，确保图片填满整列 */
    break-inside: avoid; /* 防止内容在列之间拆分 */
    position:relative;
    height:auto;overflow:hidden;
}

    .grid-item img {
        width: 100%; /* 图片宽度填满整列 */
        height: auto; /* 图片高度自动调整，保持比例 */
    }
.photoListWord {
    position: absolute;
    left: -100%;
    top: 0;
    width: 90%;
    padding: 5% 5%;
    display: flex;
    align-items: center;
    height: 90%;
    justify-content: center;
    text-align: center;
    color: #fff;
    font-size: 18px;
    background: rgba(0,0,0,0.5);
    transition: all 0.5s;
}

.grid-item:hover .photoListWord {
    left: 0;
}


.photoList li{
    width:24%;float:left;
    margin:20px 0.5%;
    height:auto;overflow:hidden;
    position:relative;
}
.photoListPic{
    width:100%;
}
.photoListPic img{
    width:100%;
    object-fit:fill;
}
.photoListWord {
    position: absolute;
    left: -100%;
    top: 0;
    width: 90%;
    padding:5% 5%;
    display: flex;
    align-items: center;
    height: 90%;
    justify-content: center;
    text-align:center;
    color: #fff;
    font-size:18px;
    background: rgba(0,0,0,0.5);
    transition:all 0.5s;
}
.photoList li:hover .photoListWord {
    left:0;
}

@media(max-width:940px){
    .photoClassList li {
        width: 48%;
        float: left;
        margin: 20px 1%;
        transition: all 0.5s;
    }

        .photoClassList li img {
            width: 100%;
            height: 160px;
        }
        .photoClassList li h2{font-size:16px;}


        .photoTitle h3 {
            line-height: 60px;
            font-size: 50px;
            border-bottom: 1px solid #8b8e8f;
            padding-bottom: 20px;
            margin-bottom: 30px;
        }

        .photoTitle h2 {
            line-height: 40px;
            font-size: 30px;
        }


    .photoList {
        column-count: 2; /* 定义列数 */
        column-gap: 5px; /* 定义列间距 */
        width: 100%;
    }
}