.submenu ul {
    display: none;
    margin-left: 50px;
}

.has-submenu.active>.submenu {
    display: block;
}

.menu-title {
    cursor: pointer;
    padding: 5px 0;
    font-weight: bold;
}

.menu_ti_li {
    cursor: pointer;
    color: #4a4a4a;
    line-height: 36px;
}

.menu_ti_li li:hover {
    color: #0d85ff;
}
.menu_ti_li  a li.on{
    color: #0d85ff;
}
/* 右侧内容区域样式 */

.content {
    flex: 1;

    position: relative;
  
}

.breadcrumb {
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 20px;
    border-bottom: 1px solid #ccc;
    margin-bottom: 30px;
}

.breadcrumb span {
    color: #0a8fff;
}

.layout-controls {
    position: absolute;
    top: 9px;
right: -2px;
}

.layout-btn {
    padding: 5px 10px;
    margin-left: 5px;
    cursor: pointer;
    background: url(../Images/tb1.jpg) no-repeat 0 center;
    padding-left: 25px;
    border: none;
    font-size: 16px;
    color: #aaa;
}

.layout-btn.active {
    color: #383838;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;padding-top: 52px;
}
/* 不同列数的布局样式 */

.gallery.col3 .photo {
    width: calc((100% - 30px) / 3);
}

.gallery.col4 .photo {
    width: calc((100% - 45px) / 4);
}

.gallery.col5 .photo {
    width: calc((100% - 60px) / 5);
}

.photo {
    position: relative;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 4px;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
    transition: transform 0.3s;
}

.photo:hover {
    transform: translateY(-5px);
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); */
}

.photo img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.photo-title {
    padding: 8px;
    font-size: 13px;
    text-align: center;
    background-color: #f9f9f9;
}
/* 图片放大模态框样式 */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.modal-content {
    max-width: 80%;
    max-height: 80%;
    background: none;
    border: 0px solid #888;
}

.modal-content img {
    max-width: 1200px;
    max-height: 800px;
    display: block;
    margin: 0 auto;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.photo:hover::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    /* background: rgba(0, 0, 0, 0.3); */
    left: 0;
    top: 0;
}

.photo:hover::after {
    content: '';
    position: absolute;
    width: 41px;
    height: 42px;
    background: url(../Images/Search.png);
    left: 50%;
    top: 35%;
    transform: translate(-50%, -50%);
}

.photo:hover::before,
.photo:hover::after {
    pointer-events: none;
}
/*以下替换dsjj样式表*/

.submenu li:hover {
    background: none;
}

.nav-menu li.active .submenu {
    max-height: 1000px;
}