/* ==========================================================================
   页面布局样式 - Page Layout Styles
   所有页面共用的基础布局和响应式样式
   ========================================================================== */

/* ==================== 基础样式重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'HarmonyOS Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: white;
    overflow-x: hidden;
}

/* ==================== 主容器 - 响应式布局 ==================== */
.main-wrapper {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    position: relative;
    background: white;
}

/* ==================== 1200px-1920px：流体布局（替代有害的transform scale） ==================== */
@media screen and (min-width: 1200px) and (max-width: 1920px) {
    .main-wrapper {
        width: 100vw;
        max-width: 100vw;
        margin: 0;
        position: relative;
        /* 移除transform scale，使用自然流体布局 */
    }
    body {
        min-height: auto;
        /* 移除缩放相关的高度计算 */
    }
}

/* ==================== 大于1920px：居中显示，取消缩放 ==================== */
@media screen and (min-width: 1921px) {
    html {
        font-size: 16px;
    }
    body {
        min-height: auto;
        transform: none;
        zoom: 1;
    }
    .main-wrapper {
        width: 1920px !important;
        max-width: 1920px !important;
        min-width: 1920px !important;
        transform: none !important;
        zoom: 1;
    }
}

/* ==================== 小于1200px：移动端 ==================== */
@media screen and (max-width: 1199px) {
    .main-wrapper {
        width: 100%;
        max-width: 100%;
        transform: none;
    }
}

/* ==================== 内容容器 ==================== */
.content-container {
    width: 1920px;
    padding-top: 150px;
    display: flex;
    position: relative;
}

/* ==================== 左侧边栏 ==================== */
.sidebar {
    width: 98px;
    position: sticky;
    top: 150px;
    margin-left: 49px;
    margin-right: 118px;
    align-self: flex-start;
    z-index: 10;
}

/* ==================== 主内容区 ==================== */
.main-content {
    flex: 1;
    max-width: 1605px;
}

.sidebar-nav {
    position: relative;
}

.sidebar-nav a {
    display: block;
    font-size: 24px;
    line-height: 60px;
    color: #999999;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease;
    position: relative;
}

.sidebar-nav a.active {
    color: #000000;
}

.sidebar-nav a:hover {
    color: #000000;
}

/* 侧边导航指示器 */
.sidebar-indicator {
    position: absolute;
    left: 0;
    top: 47px;
    width: 98px;
    height: 3px;
    background: #000000;
    transition: top 0.3s ease;
}

/* ==================== Banner ==================== */
.banner {
    width: 1605px;
    height: 530px;
    margin-bottom: 68px;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==================== 分隔线 ==================== */
.divider {
    width: 1606px;
    height: 1px;
    background: #A6A6A6;
    margin: 50px 0;
}

/* ==================== 区块 ==================== */
.section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 35px;
    line-height: 49px;
    color: #000000;
    font-weight: 400;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 24px;
    line-height: 1.5;
    color: #000000;
    font-weight: 400;
    margin-bottom: 30px;
}

.section-text {
    font-size: 18px;
    line-height: 35px;
    color: #000000;
    text-align: justify;
}

.section-text p {
    margin-bottom: 30px;
}

.section-text p:last-child {
    margin-bottom: 0;
}

/* ==================== 图片容器 ==================== */
.section-image {
    width: 681px;
    height: 500px;
    margin: 30px 0;
}

.section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-image-large {
    width: 1273px;
    height: 794px;
    margin: 50px 0;
}

.section-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-image-small {
    width: 376px;
    height: 929px;
    margin: 30px 0;
}

.section-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==================== 响应式：小于1200px ==================== */
@media (max-width: 1199px) {
    .content-container {
        flex-direction: column;
        width: 100%;
        padding: 20px;
        padding-top: 130px;
    }

    .sidebar {
        position: static;
        left: auto;
        top: auto;
        width: 100%;
        margin: 0 0 30px 0;
    }

    .sidebar-nav {
        display: flex;
        gap: 20px;
        overflow-x: auto;
    }

    .sidebar-nav a {
        line-height: normal;
        padding: 5px 0;
        margin-bottom: 0;
    }

    .sidebar-nav a.active {
        border-bottom: 3px solid black;
        padding-bottom: 2px;
    }

    .sidebar-indicator {
        display: none;
    }

    .main-content {
        width: 100%;
        max-width: 100%;
    }

    .banner,
    .divider {
        width: 100%;
    }

    .banner {
        height: auto;
        aspect-ratio: 1605 / 530;
    }

    .section-image,
    .section-image-large,
    .section-image-small {
        width: 100%;
    }

    .section-image {
        height: auto;
        aspect-ratio: 681 / 500;
    }

    .section-image-large {
        height: auto;
        aspect-ratio: 1273 / 794;
    }

    .section-image-small {
        height: auto;
        aspect-ratio: 376 / 929;
    }
}
