main {
    margin: 0 auto;
    padding: 40px;
    background: url('../images/匠人故事/bg.png') no-repeat top;
    background-size: cover;
}

.title-container {
    max-width: 657px;
    height: 125px;
    text-align: center;
    position: relative;
    margin: 10px auto;
    padding: 6px;
    background: url("../images/shouye/_1编组_.png") no-repeat center;
    background-size: contain;
}

.section .nav {
    max-width: 600px;
    background-color: #275267;
    margin: 20px auto;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.section .break-text {
    display: flex;
    padding: 10px 30px;
    flex-direction: column;
    align-items: center;
     color: #a5988e; /* 设置初始文字颜色 */
    font-weight: 700;
    text-decoration: none; /* 去掉默认下划线 */
    transition: color 0.3s ease;
    transition: transform 0.3s ease;
}

.section .break-text span {
    color: #a5988e;
    font-weight: 700;
}
.section .break-text :hover {
    color: #ffcaa7; 
     transform: scale(1.1); 
}

.item-box {
    display: flex;
    justify-content: center;
}
.item-box item-box1 ul li img{
    width: 100px;
}
.item-box item-box2 ul li img{
    width: 100px;
}
.item-box item-box3 ul li img{
    width: 100px;
}
/* product.css */
.item-box1 li,
.item-box2 li,
.item-box3 li {
    width: 200px;
    height: auto; /* 设置高度为自动，让图片自适应高度 */
    background-color: #6f716f;
    border-radius: 10px;
    margin: 20px;
}

.item-box1 li img,
.item-box2 li img,
.item-box3 li img {
    max-width: 100%; /* 确保图片宽度不超过容器宽度 */
    height: auto; /* 让图片高度自适应 */
}

.item-box1 li {
    width: 200px;
    height: 300px;
    background-color: #6f716f;
    border-radius: 10px;
    margin: 20px
}

.item-box1 li:nth-child(1) {
    margin-top: 50px;
}

.item-box1 li:nth-child(2) {
    margin-top: 30px;
}

.item-box1 li:nth-child(3) {
    margin-top: 10px;
}

.item-box2 li {
    width: 200px;
    height: 300px;
    background-color: #6f716f;
    border-radius: 10px;
    margin: 40px
}

.item-box2 li:nth-child(2) {
    margin-top: 20px;
}

.item-box2 li:nth-child(3) {
    width: 300px;
    height: 150px;
    align-self: center;
}

.item-box3 li {
    width: 200px;
    height: 300px;
    background-color: #6f716f;
    border-radius: 10px;
    margin: 60px
}

.item-box3 li:nth-child(2) {
    margin-top: 10px;
}

.bottom-box {
    width: 300px;
    height: 70px;
    background-color: #00324e;
    margin: 0 auto;
    border-radius: 60px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    main {
        padding: 20px; /* 减少移动端的内边距 */
    }

    .title-container {
        max-width: 95vw;
        height: 80px;
        padding: 2px;
        background-size: cover;
    }

    .section .nav {
        max-width: 90vw;
        padding: 0px;
        margin: 0 auto;
    }

    .section .break-text {
        padding: 10px;
    }

    .item-box,
    .item-box1,
    .item-box2,
    .item-box3 {
        flex-direction: column !important;
        align-items: center;
    }

    .item-box1 li,
    .item-box2 li,
    .item-box3 li {
        width: 90vw !important;
        max-width: 350px;
        height: auto !important;
        margin: 10px 0 !important;
    }

    .item-box2 li:nth-child(3) {
        width: 90vw !important;
        height: 100px !important;
    }

    .bottom-box {
        width: 90vw;
        max-width: 250px;
        height: 50px;
    }
}

/* 超小屏幕适配 */
@media (max-width: 480px) {
    main {
        padding: 10px; /* 进一步减少超小屏幕的内边距 */
    }
    .title-container {
        height: 50px;
        font-size: 16px;
    }
 .item-box2 li:nth-child(3) {
        width: 95vw !important;
        height: 80px !important;
    }
     .section .nav {
        max-width: 95vw; /* 调整导航栏最大宽度 */
        padding: 0;
    }

    .section .break-text {
        padding: 5px; /* 减少导航链接内边距 */
    }

    .item-box1 li,
    .item-box2 li,
    .item-box3 li {
       width: 90vw !important; /* 调整列表项宽度 */
        max-width: 300px;
        height: auto !important; /* 缩小列表项高度 */
        margin: 5px 0 !important;
    }
 .item-box1 li img,
    .item-box2 li img,
    .item-box3 li img {
        max-width: 100%; /* 确保图片宽度不超过容器 */
        height: auto; /* 让图片高度自适应 */
    }
    .bottom-box {
         width: 80vw; /* 调整底部盒子宽度 */
        max-width: 200px;
        height: 40px; /* 缩小底部盒子高度 */
    }
}