/* 外层容器样式 */
.dy_outer_container {
    width: 100%;
    padding: 40px 0;
    background-image: url('http://dongfangyuxing.com/template/elec_wpcom_one/news/img/5001200.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 内容容器样式 */
.dy_winery_container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 500px;
    box-sizing: border-box;
    padding: 20px 10px;
}

/* 轮播图容器样式 - 关键修正：确保容器形成BFC */
.dy_carousel_wrapper {
    float: left;
    width: 59%;
    height: 460px;
    position: relative;
    overflow: hidden;
}

/* 轮播内容样式 - 关键修正：使用flex布局避免浮动问题 */
.dy_carousel_inner {
    display: flex;
    width: 300%;
    height: 100%;
    position: absolute;
    left: 0;
    transition: transform 0.5s ease; /* 使用transform替代left属性 */
    transform: translateX(0);
}

/* 轮播项样式 - 关键修正：每个项目占1/3宽度 */
.dy_carousel_item {
    flex: 0 0 33.333333%;
    height: 100%;
}

/* 轮播图片样式 - 关键修正：确保图片完全填充容器 */
.dy_carousel_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* 移除图片底部间隙 */
}

/* 左箭头样式 */
.dy_carousel_prev {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

.dy_carousel_prev span {
    font-size: 20px;
}

/* 右箭头样式 */
.dy_carousel_next {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

.dy_carousel_next span {
    font-size: 20px;
}

/* 轮播指示器样式 */
.dy_carousel_dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
}

.dy_dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.5);
    margin: 0 5px;
    cursor: pointer;
}

/* 右侧内容区域样式 */
.dy_content_wrapper {
    float: right;
    width: 40%;
    height: 460px;
    padding: 0 20px;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.92);
}

/* 主标题样式 */
.dy_main_title {
    font-size: 28px;
    color: #333;
    margin: 20px 0 10px;
    padding: 0;
    font-weight: bold;
}

/* 副标题样式 */
.dy_sub_title {
    font-size: 14px;
    color: #999;
    margin: 0 0 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 描述文字样式 */
.dy_description {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
    height: 260px;
    overflow-y: auto;
    padding-right: 10px;
}

.dy_description p {
    margin: 0 0 15px;
}

.dy_description p:last-child {
    margin-bottom: 0;
}

/* 了解更多按钮样式 */
.dy_more_btn {
    display: inline-block;
    padding: 10px 20px;
    background: #8B0000;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease;
}

.dy_more_btn:hover {
    background: #6d0000;
}

/* 清除浮动样式 */
.dy_clear_float {
    clear: both;
}

/* 响应式样式 */
@media (max-width: 767px) {
    .dy_outer_container {
        padding: 20px 0;
    }
    
    .dy_carousel_wrapper {
        width: 100%;
        height: 300px;
    }
    
    .dy_content_wrapper {
        width: 100%;
        height: auto;
    }
    
    .dy_winery_container {
        height: auto;
    }
    
    .dy_carousel_prev, .dy_carousel_next {
        width: 30px;
        height: 30px;
    }
}