/* 内容 */
.intro {
    height: 100px;
    text-align: center;
    line-height: 50px;           /*行间距*/
    padding: 20px;
    font-size: 20px;
    background-color: #f9f3e7;
    color: #8c5d3c;
}

.embroidery-section {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    line-height: 35px;           /*行间距*/
    letter-spacing: 1px;
    flex-wrap: wrap; /* 允许换行 */
}

.embroidery-column {
    display: flex;
    flex-direction: column;
    width: 45%;
    
}

.embroidery-item {
    display: flex;
    height:480px;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    flex-wrap: wrap; /* 允许换行 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.embroidery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.description {
    padding: 10px;
    width: 50%;
    background-color: #f9f3e77d;
    box-sizing: border-box; /* 确保内边距和边框包含在宽度内 */
}

.description h2 {
    margin: 0;
    color: #8c5d3cc5;
}

.description p {
    color: #555;
    font-size: 18px;
    white-space: pre-wrap; /* 按照文本格式输出，但允许换行 */
}

.image {
    width: 50%;
    overflow: hidden;
    box-sizing: border-box; /* 确保内边距和边框包含在宽度内 */
}

.image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 确保图片在容器中以相同的比例显示 */
    transition: transform 0.3s ease;
}

.embroidery-item:hover .image img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .embroidery-column {
        width: 100%;
    }

    .embroidery-item {
        flex-direction: column; /* 在小屏幕上改为列方向 */
    }

    .description, .image {
        width: 100%; /* 使文字和图片宽度占满整个容器 */
    }
}
.inheritance {
    padding: 20px;
    text-indent: 200px;
    background-color: #f9f3e7;;
    height: auto;
    line-height: 30px;           /*行间距*/
    letter-spacing: 1px;
    
} 
.inheritance h2{
    text-align: center;
    color: #8c5d3c;
}
.inheritance p{
    color: #8c5d3ccf;
}
@media (max-width: 768px) {
 /* 调整介绍部分 */
 .intro {
 height: auto;
 padding: 15px;
 font-size: 16px;
 }

 .intro h1 {
 font-size: 24px;
 }

 /* 重置绣品部分布局 */
 .embroidery-section {
 flex-direction: column;
 align-items: center;
 }

.embroidery-column {
 width: 100%;
 margin-bottom: 20px;
 }

 .embroidery-item {
 flex-direction: column; /* 在小屏幕上改为列方向 */
 height: auto;
 }

 /*inheritance*/
 .inheritance {
 text-indent: 50px; /* 减小缩进以适应小屏幕 */
 padding: 15px;
 font-size: 16px; /* 调整字体大小 */
 }
 
 .inheritance h2 {
 font-size: 20px; /* 调整标题字体大小 */
 }
 
 .inheritance p {
 font-size: 16px; /* 调整段落字体大小 */
}


 .description, .image {
 width: 100%; /* 使文字和图片宽度占满整个容器 */
}
}