.related {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* 控制卡片之间的间距 */
    padding: 0;
    margin: 0 -10px; /* 可选：抵消外边距，让整体居中对齐 */
}

.related-item {
    flex: 0 0 calc(25% - 20px); /* 4列：(100% - 3*gap) / 4 ≈ 25% - 间距 */
    box-sizing: border-box;
    text-align: center;
}

.related-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    object-fit: cover;
    aspect-ratio: 420 / 394; /* 保持原始图片比例（可选） */
}

.related-title {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
}

.related-title:hover {
    color: #0073aa;
}

/* 平板：一排2个 */
@media (max-width: 992px) {
    .related-item {
        flex: 0 0 calc(50% - 20px);
    }
}

/* 手机：一排1个 */
@media (max-width: 576px) {
    .related {
        gap: 16px;
    }
    .related-item {
        flex: 0 0 100%;
    }
    .related-title {
        font-size: 16px;
    }
}
  .related-posts{
        background-color: #fff;
    }
    .related-posts .header{
        align-items: flex-start;
    }
    .related-posts .header h3{
        margin: 0;
        padding: 10px;
        background-color: var(--yy-main-color);
        color: #fff;
        font-size: 18px !important;
        font-weight: normal !important;
        width:180px;
        text-align: center;
    }
    .related-posts .items {
        flex-wrap: wrap;
    }
    .related-posts .item {
        margin-bottom:20px;
        width: 32%;
        padding: 10px;
        
    }
    .related-posts .item img{
        border: 1px solid #eee;
    }
@media screen and (max-width:767px) {
    .related-posts .items{
        flex-direction: row;
    }
    .single .related-posts .item {
        width: 48%;
    }
}

.hero .col-md-6:first-child .yy-thumb {
    border: none;
    padding: 0;
    position: relative;
    height: 480px;
}
.hero .col-md-6 .yy-thumb img {
    max-height: 480px;
    transition: transform 0.3s ease;
    object-fit: contain;
}
.hero .col-md-6 .yy-thumb img:hover {
    position: absolute;
    transform: scale(1.3);
    z-index: 99;
}
.hero .post{
    padding:0;
}
.hero .youtue-video{
    margin-top:20px;
}

.hero .youtue-video iframe{
    max-width: 100%;
}
@media screen and (max-width:767px) {
    .hero .youtue-video iframe{
        height: 200px;
    }
}
.contact-us h3{
    margin-top:10px;
    margin-bottom:10px;
    padding:10px;
    color:#fff;
    background-color: var(--yy-main-color);
    font-size: 18px;
    width: 200px;
    font-weight: normal;
}

@media screen and (min-width:768px) {
    .yy-wrap > .container{
        display: flex;
        justify-content: space-between;
    }
    .yy-wrap .sidebar{
        width:22%;
    }
    .yy-wrap .yy-main-content{
        width:70%;
    }
    
}
    .title{
        border-bottom: 5px solid var(--yy-main-color)
    }
    .title h3{
        margin-bottom: 0;
        padding: 10px 10px 5px 10px;
        background-color: var(--yy-main-color);
        width: 180px;
        color: #fff;
        text-align: center;
    }
    
    .sidebar{
    margin-top:40px;
    margin-bottom:40px;
}
.sidebar ul{
    list-style-type: none;
    padding-left: 0;
}

.sidebar li{
    list-style-type: none;
}
.sidebar a{
    background-color: var(--yy-main-color);
    color: #fff;
    padding: 25px 15px;
    display: block;
    margin-bottom: 1px;
     border-radius: 4px;
}
.sidebar .menu-item-has-children > a::after {
    content: "\f105"; /* FontAwesome右箭头图标的Unicode编码 */
    font-family: "FontAwesome"; /* 使用FontAwesome字体 */
    margin-left: 10px; /* 调整图标与文本之间的间距 */
}
.sidebar .sub-menu{
    display: none;
}
.sidebar li:hover > .sub-menu{
    display: block!important;
}
.sidebar .sub-menu a{
    padding: 8px 30px;
    background-color: #03A9F4;
    
}

@media screen and (min-width:768px) {
    .sidebar{
       
   }
}

@media screen and (max-width:767px) {
    .sidebar{
       display: none!important;
   }
} 