* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    overflow-x: hidden;
}

/* 主要调整：设置合适的左右边距，确保内容区域宽度足够 */
.section {
    min-height: 100vh;
    padding: 80px 12% 80px 28%; /* 增加右侧内边距，调整左侧内边距 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

#section1 {
    background-color: #FFF0F6;
    color: #333;
    padding: 0 12% 0 28%; /* 为第一部分单独设置内边距 */
}

#section2 {
    background-color: #FFF0F6;
    color: #333;
}

#section3 {
    background-color: #ffffff;
    color: #333;
}

#section4 {
    background-color: #FFF0F6;
    color: #333;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: left;
    /* 确保标题与内容左右对齐 */
    margin-left: 0;
    margin-right: 0;
}

.section-content {
    font-size: 1.2rem;
    line-height: 1.8;
    /* 增加最大宽度使内容更宽 */
    max-width: 1000px;
    /* 移除自动外边距，使用左右对齐 */
    margin: 0;
    /* 文本两端对齐 */
    text-align: justify;
    /* 确保英文单词不会在中间断开 */
    word-break: normal;
    hyphens: auto;
}

/* 确保段落之间有足够间距 */
.section-content p {
    margin-bottom: 1.5rem;
}

/* JSON动画容器 */
#json-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* 图片部分样式 - 调整图片容器位置 */
.image-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
    justify-items: center;
    width: 100%; /* 使图片容器与内容同宽 */
    max-width: 1000px;
}

.image-box {
    width: 100%;
    max-width: 450px;
    height: 300px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: #666;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.image-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-box:hover {
    transform: translateY(-5px);
}

/* 部分间标题样式 - 调整位置 */
.section-divider {
    position: absolute;
    bottom: 0;
    left: 28%; /* 与内容区域左对齐 */
    height: 120px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    width: calc(100% - 28%); /* 计算宽度以适应新的左边界 */
    padding-right: 12%; /* 与内容区域右对齐 */
}

.divider-title-one,
.divider-title-three {
    margin-left: 0;
    position: relative;
    padding: 15px 30px;
    border-radius: 10px 10px 0 0;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 250px;
    text-align: center;
    margin-bottom: -30px;
}

.divider-title-two,
.divider-title-four {
    margin-left: auto; /* 自动右对齐 */
    position: relative;
    padding: 15px 30px;
    border-radius: 10px 10px 0 0;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 250px;
    text-align: center;
    margin-bottom: -30px;
}

.divider-title-one {
    background-color: #ffffff;
    color: #333;
}

.divider-title-two {
    background-color: #ffffff;
    color: #333;
}

.divider-title-three {
    background-color: #FFF0F6;
    color: #333;
}

.divider-title-four {
    background-color: #ffffff;
    color: #333;
}

.divider-title-one:hover,
.divider-title-two:hover,
.divider-title-three:hover,
.divider-title-four:hover {
    transform: translateY(-20px);
    height: 120px;
    justify-content: center;
}

.keywords {
    display: none;
    margin-top: 10px;
    font-size: 1rem;
    font-weight: normal;
}

.divider-title-one:hover .keywords,
.divider-title-two:hover .keywords,
.divider-title-three:hover .keywords,
.divider-title-four:hover .keywords {
    display: block;
}

/* 响应式设计调整 */
@media (max-width: 1400px) {
    .section {
        padding: 80px 10% 80px 25%;
    }
    
    #section1 {
        padding: 0 10% 0 25%;
    }
    
    .section-divider {
        left: 25%;
        width: calc(100% - 25%);
        padding-right: 10%;
    }
    
    .section-content {
        max-width: 900px;
    }
}

@media (max-width: 1200px) {
    .section {
        padding: 80px 8% 80px 22%;
    }
    
    #section1 {
        padding: 0 8% 0 22%;
    }
    
    .section-divider {
        left: 22%;
        width: calc(100% - 22%);
        padding-right: 8%;
    }
    
    .section-content {
        max-width: 800px;
    }
}

@media (max-width: 992px) {
    .section {
        padding: 80px 5% 80px 20%;
    }
    
    #section1 {
        padding: 0 5% 0 20%;
    }
    
    .section-divider {
        left: 20%;
        width: calc(100% - 20%);
        padding-right: 5%;
    }
    
    .section-content {
        max-width: 700px;
        font-size: 1.1rem;
    }
    
    .image-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 5%;
    }
    
    #section1 {
        padding: 0 5%;
    }
    
    .section-divider {
        left: 5%;
        width: 90%;
        padding-right: 5%;
    }
    
    .section-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .section-content {
        max-width: 100%;
        font-size: 1rem;
        text-align: left;
        margin: 0 auto;
    }
    
    .divider-title-one,
    .divider-title-two,
    .divider-title-three,
    .divider-title-four {
        width: 200px;
        font-size: 1.2rem;
        margin: 0 auto;
    }
}