/* PC端和平板样式 */
.xmcarh_7kL3m {
    margin: var(--margin-tb) 0;
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* PC端显示，移动端隐藏 */
.xmcarh_7kL3m-pc {
    display: block;
    position: relative;
    height: var(--height);
}

.xmcarh_7kL3m-mobile {
    display: none;
}

/* 背景图片容器 */
.xmcarh_7kL3m-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.xmcarh_7kL3m-bg-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay-color, rgba(0,0,0,0.1));
    z-index: 2;
    pointer-events: none;
}

.xmcarh_7kL3m-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.xmcarh_7kL3m-bg.active {
    opacity: 1;
}

/* 内容区域 */
.xmcarh_7kL3m-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding-bottom: 0%;
    padding-top: 0%;
    padding-left: var(--padding-lr);
    padding-right: var(--padding-lr);
    max-width: var(--custom-content-max-width);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* 顶部标题描述 */
.xmcarh_7kL3m-header {
    text-align: center;
    padding-top: 6%;
}

.xmcarh_7kL3m-title {
    font-size: var(--title-size);
    color: var(--title-color);
    margin-bottom: 2rem;
    font-weight: 400;
    letter-spacing: 0.1em;
}

.xmcarh_7kL3m-description {
    font-size: var(--description-size);
    color: var(--description-color);
    line-height: 1.8;
    margin: 0 auto;
}

/* 选项卡区域 */
.xmcarh_7kL3m-tabs {
    margin-top: auto;
    margin-bottom: 9rem;
}

.xmcarh_7kL3m-tab-nav {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 3rem;
    position: relative;
    /* width: fit-content; */
    margin-left: auto;
    margin-right: auto;
}

.xmcarh_7kL3m-tab-item {
    flex: 0 0 auto;
    max-width: 25rem;
    text-align: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.xmcarh_7kL3m-tab-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.2rem;
    background-color: var(--item-color);
    transition: background-color 0.3s ease;
}

.xmcarh_7kL3m-tab-item.active::after {
    background-color: var(--theme-color);
}

.xmcarh_7kL3m-tab-item span {
    font-size: var(--item-title-size);
    color: var(--item-color);
    transition: color 0.3s ease;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xmcarh_7kL3m-tab-item.active span {
    color: var(--theme-color);
}

/* 选项卡描述 */
.xmcarh_7kL3m-tab-description {
    text-align: center;
    min-height: 6rem;
}

.xmcarh_7kL3m-tab-desc {
    font-size: var(--item-description-size);
    color: var(--item_description_color);
    line-height: 1.8;
    opacity: 0;
    display: none;
    transition: opacity 0.5s ease;
}

.xmcarh_7kL3m-tab-desc.active {
    display: block;
    opacity: 1;
}

/* FAQ说明 */
.xmcarh_7kL3m-faq {
    text-align: center;
    margin-top: 4rem;
}

.xmcarh_7kL3m-faq p {
    font-size: var(--faq-size);
    color: var(--faq-color);
    opacity: 0.7;
    line-height: 1.6;
}

/* 平板（Pad）样式 */
@media (min-width: 768px) and (max-width: 1024px) {
    .xmcarh_7kL3m-content {
        padding: 5rem 5rem;
    }

    .xmcarh_7kL3m-title {
        font-size: calc(var(--title-size) * 0.97);
    }

    .xmcarh_7kL3m-description {
        font-size: calc(var(--description-size) * 0.97);
    }

    .xmcarh_7kL3m-tab-item span {
        font-size: calc(var(--item-title-size) * 0.97);
    }

    .xmcarh_7kL3m-tab-desc {
        font-size: calc(var(--item-description-size) * 0.97);
    }

    .xmcarh_7kL3m-faq p {
        font-size: calc(var(--faq-size) * 0.97);
    }
}

/* 手机端样式 */
@media (max-width: 767px) {

    /* 确保根元素有高度 */
    .xmcarh_7kL3m {
        
    }

    /* 隐藏PC端，显示移动端 */
    .xmcarh_7kL3m-pc {
        display: none;
    }

    .xmcarh_7kL3m-mobile {
        display: block;
        position: relative;
        min-height: 70vh;
    }

    /* 移动端背景容器 */
    .xmcarh_7kL3m-mobile-bg-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

    .xmcarh_7kL3m-mobile-bg-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-overlay-color, rgba(0,0,0,0.1));
        z-index: 2;
        pointer-events: none;
    }

    .xmcarh_7kL3m-mobile-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        opacity: 0;
        transition: opacity 0.8s ease-in-out;
    }

    .xmcarh_7kL3m-mobile-bg.active {
        opacity: 1;
    }

    /* 移动端内容 */
    .xmcarh_7kL3m-mobile-content {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
       
        padding: 2rem 2rem;
        background: transparent;
        box-sizing: border-box;
    }

    /* 移动端标题描述 */
    .xmcarh_7kL3m-mobile-header {
        text-align: center;
        margin-top: 10%;
    }

    .xmcarh_7kL3m-mobile-title {
        font-size: calc(var(--title-size) * 0.9);
        color: var(--title-color);
        margin-bottom: 1.5rem;
        font-weight: 400;
        letter-spacing: 0.1em;
    }

    .xmcarh_7kL3m-mobile-description {
        font-size: calc(var(--description-size) * 0.9);
        color: var(--description-color);
        line-height: 1.8;
    }

    /* 移动端选项卡信息 */
    .xmcarh_7kL3m-mobile-info {
        margin-top: auto;
        text-align: center;
        margin-bottom: 2rem;
        min-height: 10rem;
    }

    .xmcarh_7kL3m-mobile-tab-title {
        font-size: calc(var(--item-title-size) * 0.9);
        color: var(--description-color);
        margin-bottom: 1.5rem;
        font-weight: 500;
        transition: opacity 0.3s ease;
    }

    .xmcarh_7kL3m-mobile-tab-desc {
        font-size: calc(var(--item-description-size) * 0.9);
        color: var(--description-color);
        line-height: 1.8;
        transition: opacity 0.3s ease;
    }

    /* 移动端导航点 */
    .xmcarh_7kL3m-mobile-nav {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-bottom: 3rem;
    }

    .xmcarh_7kL3m-mobile-nav-item {
        width: 6rem;
        height: 0.4rem;
        background-color: var(--item-color);
        cursor: pointer;
        transition: background-color 0.3s ease;
        border-radius: 0.2rem;
    }

    .xmcarh_7kL3m-mobile-nav-item.active {
        background-color: var(--theme-color);
    }

    /* 移动端FAQ */
    .xmcarh_7kL3m-mobile-faq {
        text-align: center;
    }

    .xmcarh_7kL3m-mobile-faq p {
        font-size: calc(var(--faq-size) * 0.9);
        color: var(--faq-color);
        opacity: 0.7;
        line-height: 1.6;
    }
}
