/* 全局样式 */

.home-container {
    position: relative;
    width: 100%;
    overflow-x: hidden;
}


/* 各部分通用样式 */

.story-section {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
}


/* 标题部分 */

.title-section {
    display: flex;
    width: 100%;
    height: 100vh;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding-top: 0px;
}

.title-1 {
    position: absolute;
    top: 100px;
    left: 550px;
    transform: rotate(0deg);
    z-index: 1;
    width: 700px;
    height: auto;
}

.title-2 {
    position: absolute;
    top: -200px;
    left: -80px;
    transform: rotate(0deg);
    z-index: 2;
    width: 1800px;
    height: auto;
}

.title-3 {
    position: absolute;
    top: -200px;
    left: -80px;
    transform: rotate(0deg);
    z-index: 2;
    width: 1800px;
    height: auto;
}

.title-4 {
    position: absolute;
    top: -200px;
    left: -80px;
    transform: rotate(0deg);
    z-index: 2;
    width: 1800px;
    height: auto;
}

.title-5 {
    position: absolute;
    top: -200px;
    left: -80px;
    transform: rotate(0deg);
    z-index: 2;
    width: 1800px;
    height: auto;
}

.title-6 {
    position: absolute;
    top: -80px;
    left: 800px;
    transform: rotate(0deg);
    z-index: 2;
    width: 1000px;
    height: auto;
}

.title-7 {
    position: absolute;
    top: 200px;
    left: 700px;
    transform: rotate(0deg);
    z-index: 2;
    width: 1000px;
    height: auto;
}


/* 人物部分 */

.people-section {
    width: 100%;
    height: 120vh;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.people-images {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
}

.people-text {
    flex: 1;
    padding: 2rem;
    background: rgba(25, 39, 109, 0.8);
    border-radius: 15px;
    color: white;
}

.people-text p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.people-1 {
    position: absolute;
    top: -100px;
    left: -100px;
    transform: rotate(0deg);
    z-index: 2;
    width: 700px;
    height: auto;
}

.people-2 {
    position: absolute;
    top: -600px;
    left: -200px;
    transform: rotate(0deg);
    z-index: 2;
    width: 700px;
    height: auto;
}


/* 历史部分 */

.history-section {
    width: 100%;
    height: 240vh;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.history-text {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.85);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.history-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

.history-background {
    position: absolute;
    top: -400px;
    left: 0px;
    transform: rotate(0deg);
    z-index: 2;
    width: 100%;
    height: auto;
}

.history-1 {
    position: absolute;
    top: 0px;
    left: 0px;
    transform: rotate(0deg);
    z-index: 2;
    width: 400px;
    height: auto;
}

.history-2 {
    position: absolute;
    top: 100px;
    left: 500px;
    transform: rotate(0deg);
    z-index: 2;
    width: 400px;
    height: auto;
}

.history-3 {
    position: absolute;
    top: 500px;
    left: 400px;
    transform: rotate(0deg);
    z-index: 2;
    width: 400px;
    height: auto;
}

.history-4 {
    position: absolute;
    top: 500px;
    left: 200px;
    transform: rotate(0deg);
    z-index: 2;
    width: 600px;
    height: auto;
}

.history-5 {
    position: absolute;
    top: 600px;
    left: 100px;
    transform: rotate(0deg);
    z-index: 2;
    width: 650px;
    height: auto;
}

.history-6 {
    position: absolute;
    top: 800px;
    left: 900px;
    transform: rotate(15deg);
    z-index: 2;
    width: 50px;
    height: auto;
}

.history-7 {
    position: absolute;
    top: 1200px;
    left: 650px;
    transform: rotate(10deg);
    z-index: 2;
    width: 400px;
    height: auto;
}

.history-8 {
    position: absolute;
    top: 900px;
    left: 1000px;
    transform: rotate(12deg);
    z-index: 2;
    width: 800px;
    height: auto;
}

.history-9 {
    position: absolute;
    top: 1400px;
    left: 300px;
    transform: rotate(0deg);
    z-index: 2;
    width: 500px;
    height: auto;
}

.history-10 {
    position: absolute;
    top: 1700px;
    left: 20px;
    transform: rotate(0deg);
    z-index: 2;
    width: 400px;
    height: auto;
}

.function-1 {
    position: absolute;
    top: 2000px;
    left: 0px;
    transform: rotate(0deg);
    z-index: 2;
    width: 110%;
    height: auto;
}


/* 功能部分 */

.function-section {
    background-color: rgba(179, 197, 245);
    width: 100%;
    height: 240vh;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.function-section img {
    max-width: 100%;
    height: auto;
}

.function-text {
    grid-column: 1 / -1;
    background: rgba(25, 39, 109, 0.85);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
    color: white;
}

.function-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.function-2 {
    position: absolute;
    top: 0px;
    left: 0px;
    transform: rotate(0deg);
    z-index: 2;
    width: 1500px;
    height: auto;
}


/* 响应式设计 */

@media (max-width: 1200px) {
    .history-section {
        grid-template-columns: repeat(4, 1fr);
    }
    .function-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .people-section {
        flex-direction: column;
    }
    .history-section {
        grid-template-columns: repeat(2, 1fr);
    }
    .function-section {
        grid-template-columns: 1fr;
    }
    .title-section img {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .story-section {
        padding: 1rem;
    }
    .history-section {
        grid-template-columns: 1fr;
    }
    .title-section img {
        max-width: 120px;
    }
    .people-text,
    .history-text,
    .function-text {
        padding: 1.5rem;
    }
}