.testing-section {
    width: 100%;
    background: var(--base-bg-color-header);
}
.testing-section .testing-container {
    width: 67.4vw;
    margin: 5.2rem auto;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.testing-container .left-menu {
    flex: 0 0 var(--left-menu-width);
    background: var(--left-menu-bg-color);
    margin-right: 3.7rem;
    height: fit-content;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
}
.left-menu .menu-item {
    flex: 0 0 100%;
    display: flex;
    flex-wrap: wrap;
    cursor: pointer;
}

.menu-item .menu-item-link {
    flex: 0 0 100%;
    height: var(--left-menu-item-height);
    font-size: var(--base-font-size-default);
    line-height: var(--left-menu-item-height);
    color: var(--left-menu-item-font-color);

    &:hover {
        background: var(--left-menu-item-hover-bg-color);
        color: var(--left-menu-item-hover-font-color) !important;
    }
}
.menu-item .menu-item-link span {
    margin-left: 2.6rem;
    max-width: 11.4rem;
    display: block;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-item-link-active {
    background: var(--left-menu-item-active-bg-color);
    color: var(--left-menu-item-active-font-color) !important;
}

.menu-item .sub-menu {
    flex: 0 0 100%;
    display: flex;
    flex-wrap: wrap;
    /*margin-top: 0.6rem;*/
    cursor: pointer;
}

.sub-menu .sub-menu-item {
    flex: 0 0 100%;
    height: var(--sub-menu-item-height);
    line-height: var(--sub-menu-item-height);
    color: var(--sub-menu-item-font-color);
    font-size: var(--base-font-size-small);
    display: flex;
}

.sub-menu .sub-menu-item:hover {
    background: var(--sub-menu-item-hover-bg-color);
    color: var(--left-menu-item-active-font-color) !important;
}

.sub-menu .sub-menu-item span {
    margin-left: 3.8rem;
    max-width: 11.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sub-menu .sub-menu-item-active {
    background: var(--sub-menu-item-active-bg-color);
    color: var(--left-menu-item-active-font-color) !important;
}

.testing-container .right-content {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
}

.testing-container .right-content .title {
    flex: 0 0 100%;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    font-size: var(--base-font-size-xlarge);
    height: 3.7rem;
    align-content: flex-start;
    border-bottom: 1px solid var(--base-border-color);
    color: var(--base-font-color-primary-hover);
}
.right-content .title img {
    height: 2.4rem;
    margin-right: 1rem;
}
.right-content .introduction {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    flex: 0 0 100%;
}
.introduction .text {
    flex: 0 0 100%;
    font-size: var(--base-font-size-small);
    color: var(--base-font-color-text);
    line-height: 2rem;
}
.introduction .img {
    margin: 3rem auto 0;
    width: 42.7vw;
    height: 29vw;
    border-radius: 0.56rem;
    background-size: contain;
}

.introduction .img img {
    width: 100%;
    height: 100%;
    border-radius: 0.56rem;
}

.right-content .content {
    flex: 0 0 100%;
    /*display: flex;*/
    /*flex-wrap: wrap;*/
    display: block;
    margin-top: 3.6rem;
}

.intro-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.intro-table th,
.intro-table td {
    padding: 15px;
    border: 1px solid #e0e0e0;
    vertical-align: top;
}
.table-title {
    width: 120px;
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}
.table-content {
    color: #666;
    line-height: 1.6;
}


.content .content-title {
    flex: 0 0 100%;
    font-size: var(--base-font-size-default);
    font-weight: bold;
    margin-bottom: 1.6rem;
}
.content .content-list {
    flex: 0 0 100%;
    display: flex;
    flex-wrap: wrap;
    font-size: var(--base-font-size-small);
    color: var(--base-font-color-text);
    line-height: 1.6rem;
}
.content .content-list .content-item {
    flex: 0 0 100%;
}

/* 手机版菜单样式 */
@media (max-width: 991px) {
    .testing-section .testing-container {
        width: calc(100% - 40px); /* 改为全宽度 */
        margin: 3rem auto; /* 缩小上下间距 */
        padding: 0 20px; /* 增加左右内边距 */
        flex-wrap: wrap; /* 允许换行 */
    }

    .testing-container .left-menu {
        position: relative;
        flex: 0 0 100%; /* 占满整行 */
        margin-right: 0;
        margin-bottom: 2rem; /* 添加底部间距 */
    }

    /* 下拉菜单触发器 */
    .mobile-menu-trigger {
        width: 100%;
        display: flex;
        align-items: center;
        padding: 1rem;
        background: #f5f5f5;
        border-radius: 4px;
        font-size: var(--base-font-size-large);
    }

    .mobile-menu-trigger span {
        flex: 1;
        font-weight: 500;
    }

    .mobile-menu-trigger .arrow {
        width: 2rem;
        height: 1.2rem;
        background: url(/static/images/icons/down_arrow.svg) no-repeat;
        background-size: contain;
        transition: transform 0.3s;
    }

    /* 下拉菜单 */
    .mobile-menu-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
        z-index: 100;
    }

    .mobile-menu-dropdown.active {
        max-height: 80vh;
        overflow-y: auto;
    }

    /* 菜单项样式 */
    .mobile-menu-item {
        padding: 12px;
        border-bottom: 1px solid #eee;
        display: flex;
        align-items: center;
    }

    .mobile-menu-item.has-children::after {
        content: '';
        width: 16px;
        height: 16px;
        margin-left: auto;
        /*background: url(/static/images/arrow-right.svg) no-repeat center;*/
    }

    /* 子菜单 */
    .sub-mobile-menu {
        background: #f9f9f9;
        /*max-height: 0;*/
        overflow: hidden;
        transition: max-height 0.3s;
    }

    .sub-mobile-menu.active {
        max-height: 500px;
    }

    .testing-container .right-content {
        flex: 0 0 100%; /* 占满整行 */
    }

    .right-content .title {
        font-size: 1.8rem; /* 适当缩小字号 */
        height: auto;
        padding-bottom: 1rem; /* 增加标题呼吸空间 */
    }

    .introduction .img {
        width: 100%; /* 图片全宽显示 */
        height: 50vw; /* 保持比例 */
        margin: 2rem auto 0; /* 调整间距 */
    }

    .content,
    .introduction {
        margin-top: 2rem; /* 缩小间距 */
    }

    /* 通用调整 */
    .right-content .text,
    .content-list {
        font-size: 0.9rem; /* 适当缩小字号 */
        line-height: 1.8; /* 增加行高 */
    }

    /* 优化移动端hover效果 */
    .menu-item-link:hover,
    .sub-menu-item:hover {
        background: transparent;
    }
}

