/* 图片1 - 左上角 */
.img-1 {
    width: 557px;
    height: 787px;
    top: 40px;
    left: 240px;
    z-index: 1;
    object-fit: cover;
    /* 优化：精确控制图片位置，消除间隙 */
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 图片2 - 右上角 */
.img-2 {
    width: 472px;
    height: 72px;
    top: 55px;
    right: 404px;
    object-fit: cover;
    /* 优化：精确控制图片位置，消除间隙 */
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 图片3 - 中间左侧（带文字）容器 */
.img-3-container {
    position: absolute;
    width: 552px;
    height: 332px;
    top: 213px;
    left: 700px;
    z-index: 2;
    /* 优化：消除容器间隙 */
    margin: 0;
    padding: 0;
    border: none;
    overflow: hidden;
}

/* 图片3本身 */
.img-3 {
    width: 552px;
    height: 382px;
    object-fit: cover;
    border-radius: 0px;
    /* 优化：确保图片与容器完美贴合 */
    margin: 0;
    padding: 0;
    border: none;
    display: block;
    position: relative;
}

/* 图片3的文字样式 */
.img-3-container .img-text {
    position: absolute;
    bottom: 0px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.1);
    color: white;
    padding: 15px 0 15px 38px;
    text-align: left;
    font-size: 18px;
    font-weight: bold;
    border-radius: 0 0 0 0;
    /* 优化：消除文字与容器的间隙 */
    margin: 0;
    border: none;
    box-shadow: none;
    line-height: 1.4;
    z-index: 3;
}

/* 图片4 */
.img-4 {
    width: 66px;
    height: 347px;
    top: 55px;
    right: 240px;
    object-fit: cover;
    /* 优化：精确控制图片位置，消除间隙 */
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 图片5 - 底部中央 */
.img-5 {
    width: 434px;
    height: 342px;
    bottom: 76px;
    right: 240px;
    object-fit: cover;
    /* 优化：精确控制图片位置，消除间隙 */
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 优化：底部图片容器 */
.img-6 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 优化：确保图片与容器完全贴合 */
    margin: 0;
    padding: 0;
    border: none;
    display: block;
}

/* ========== 响应式设计 - 解决不同屏幕尺寸的间隙问题 ========== */

/* 大桌面 (1600px以下) */
@media (max-width: 1600px) {
    .nav-menu-center {
        width: 900px;
    }
    
    .carousel-container {
        height: 450px;
    }
    
    .content-area {
        width: 1600px;
        height: 700px;
    }
    
    .img-1 {
        left: 200px;
    }
    
    .img-2 {
        right: 350px;
    }
    
    .img-3-container {
        left: 600px;
    }
    
    .img-4 {
        right: 200px;
    }
    
    .img-5 {
        right: 200px;
    }
    
    .carousel-caption1 {
        width: 1600px;
    }
    
    .image-6 {
        width: 1600px;
        height: 800px;
    }
}

/* 中等桌面 (1400px以下) */
@media (max-width: 1400px) {
    .nav-menu-center {
        width: 800px;
    }
    
    .carousel-container {
        height: 400px;
    }
    
    .content-area {
        width: 1400px;
        height: 600px;
    }
    
    .carousel-caption1 {
        width: 1400px;
    }
    
    .img-1 {
        width: 450px;
        height: 650px;
        left: 150px;
    }
    
    .img-2 {
        right: 300px;
    }
    
    .img-3-container {
        left: 500px;
        width: 450px;
    }
    
    .img-3 {
        width: 450px;
        height: 300px;
    }
    
    .img-4 {
        right: 150px;
    }
    
    .img-5 {
        width: 350px;
        right: 150px;
    }
    
    .image-6 {
        width: 1400px;
        height: 700px;
    }
}

/* 小桌面/大平板 (1200px以下) */
@media (max-width: 1200px) {
    .nav-menu-center {
        width: 700px;
    }
    
    .menu-image {
        width: 80px;
        height: 120px;
    }
    
    .nav-logo {
        left: 40px;
        width: 180px;
        height: 45px;
    }
    
    .nav-phone {
        right: 40px;
        width: 180px;
        height: 35px;
    }
    
    .carousel-container {
        height: 350px;
    }
    
    .carousel-caption h2 {
        font-size: 24px;
    }
    
    .carousel-caption p {
        font-size: 14px;
    }
    
    .content-area {
        width: 1200px;
        height: 500px;
    }
    
    .carousel-caption1 {
        width: 1200px;
    }
    
    .img-1 {
        width: 400px;
        height: 550px;
        left: 100px;
    }
    
    .img-2 {
        right: 250px;
        width: 400px;
    }
    
    .img-3-container {
        left: 450px;
        width: 400px;
        height: 280px;
    }
    
    .img-3 {
        width: 400px;
        height: 280px;
    }
    
    .img-4 {
        right: 100px;
    }
    
    .img-5 {
        width: 300px;
        height: 250px;
        right: 100px;
    }
    
    .img-3-container .img-text {
        font-size: 16px;
        padding: 10px 0 10px 30px;
    }
    
    .image-6 {
        width: 1200px;
        height: 600px;
    }
}

/* 平板设备 (1024px以下) */
@media (max-width: 1024px) {
    .nav-container {
        height: 150px;
    }
    
    .nav-menu-center {
        width: 600px;
        top: 15px;
    }
    
    .menu-image {
        width: 65px;
        height: 100px;
    }
    
    .nav-logo {
        top: 15px;
        left: 30px;
        width: 150px;
        height: 38px;
    }
    
    .nav-phone {
        top: 15px;
        right: 30px;
        width: 150px;
        height: 30px;
    }
    
    .carousel-container {
        height: 300px;
    }
    
    .carousel-caption {
        bottom: 30px;
        padding: 12px;
    }
    
    .carousel-caption h2 {
        font-size: 20px;
    }
    
    .carousel-caption p {
        font-size: 13px;
    }
    
    .content-area {
        width: 100%;
        max-width: 1024px;
        height: auto;
        min-height: 400px;
        display: block;
        margin: 0 auto;
    }
    
    .carousel-caption1 {
        width: 100%;
        max-width: 1024px;
        height: auto;
        min-height: 200px;
        background-size: cover;
        margin: 0 auto;
    }
    
    .img-1, .img-2, .img-3-container, .img-3, .img-4, .img-5, .image-6 {
        position: relative;
        width: 100% !important;
        height: auto !important;
        max-width: 100%;
        margin: 10px auto;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: block;
    }
    
    .img-3-container {
        margin: 20px auto;
        height: auto;
    }
    
    .overlay-img:hover {
        transform: none;
    }
    
    .content {
        margin: 20px auto;
        padding: 15px;
    }
    
    .content h1 {
        font-size: 22px;
    }
    
    .content h2 {
        font-size: 18px;
    }
    
    .content p {
        font-size: 15px;
    }
}

/* 大手机 (768px以下) */
@media (max-width: 768px) {
    .nav-container {
        height: 130px;
    }
    
    .nav-menu-center {
        width: 90%;
        top: 10px;
        justify-content: space-around;
    }
    
    .menu-image {
        width: 50px;
        height: 75px;
    }
    
    .nav-logo {
        top: 10px;
        left: 20px;
        width: 120px;
        height: 30px;
    }
    
    .nav-phone {
        top: 10px;
        right: 20px;
        width: 120px;
        height: 25px;
    }
    
    .carousel-container {
        height: 250px;
    }
    
    .carousel-caption {
        bottom: 25px;
        padding: 10px;
    }
    
    .carousel-caption h2 {
        font-size: 18px;
    }
    
    .carousel-caption p {
        font-size: 12px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .carousel-caption1 {
        height: 150px;
    }
    
    .img-3-container .img-text {
        font-size: 14px;
        padding: 8px 0 8px 20px;
    }
    
    .about-link {
        font-size: 16px;
        padding: 8px 16px;
    }
}

/* 中等手机 (600px以下) */
@media (max-width: 600px) {
    .nav-container {
        height: 110px;
    }
    
    .nav-menu-center {
        top: 8px;
    }
    
    .nav-menu-item {
        padding: 0 3px;
    }
    
    .menu-image {
        width: 40px;
        height: 60px;
    }
    
    .nav-logo {
        top: 8px;
        left: 15px;
        width: 100px;
        height: 25px;
    }
    
    .nav-phone {
        top: 8px;
        right: 15px;
        width: 100px;
        height: 20px;
    }
    
    .carousel-container {
        height: 200px;
    }
    
    .carousel-caption {
        bottom: 20px;
        padding: 8px;
    }
    
    .carousel-caption h2 {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .carousel-caption p {
        font-size: 11px;
        line-height: 1.3;
    }
    
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .carousel-indicators {
        bottom: 10px;
    }
    
    .carousel-indicator {
        width: 8px;
        height: 8px;
    }
    
    .carousel-caption1 {
        height: 100px;
    }
}

/* 小手机 (480px以下) */
@media (max-width: 480px) {
    .nav-container {
        height: 100px;
    }
    
    .nav-menu-center {
        width: 95%;
        top: 5px;
    }
    
    .nav-menu-item {
        padding: 0 2px;
    }
    
    .menu-image {
        width: 35px;
        height: 52px;
    }
    
    .nav-logo {
        top: 5px;
        left: 10px;
        width: 80px;
        height: 20px;
    }
    
    .nav-phone {
        top: 5px;
        right: 10px;
        width: 80px;
        height: 16px;
    }
    
    .carousel-container {
        height: 180px;
    }
    
    .carousel-caption {
        bottom: 15px;
        padding: 6px;
    }
    
    .carousel-caption h2 {
        font-size: 14px;
        margin-bottom: 3px;
    }
    
    .carousel-caption p {
        font-size: 10px;
        display: none;
    }
    
    .carousel-btn {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }
    
    .carousel-indicators {
        bottom: 8px;
        gap: 6px;
    }
    
    .carousel-indicator {
        width: 6px;
        height: 6px;
    }
    
    .carousel-caption1 {
        height: 80px;
    }
    
    .content {
        margin: 15px 10px;
        padding: 12px;
    }
    
    .content h1 {
        font-size: 20px;
    }
    
    .content h2 {
        font-size: 16px;
    }
    
    .content p {
        font-size: 14px;
    }
}

/* 超小手机 (360px以下) */
@media (max-width: 360px) {
    .nav-container {
        height: 90px;
    }
    
    .nav-menu-center {
        top: 3px;
    }
    
    .menu-image {
        width: 30px;
        height: 45px;
    }
    
    .nav-logo {
        top: 3px;
        left: 8px;
        width: 70px;
        height: 18px;
    }
    
    .nav-phone {
        top: 3px;
        right: 8px;
        width: 70px;
        height: 14px;
    }
    
    .carousel-container {
        height: 150px;
    }
    
    .carousel-caption h2 {
        font-size: 12px;
    }
    
    .carousel-btn {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }
}