.container {
    position: relative;
}

header {
    position: relative;
    height: 68px;
    line-height: 68px;
    padding: 0 68px;
    overflow: visible;
}

.page-title {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.home-link {
    position: absolute;
    top: max(12px, env(safe-area-inset-top, 12px));
    left: max(12px, env(safe-area-inset-left, 12px));
    z-index: 10050;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fbe2c8;
    background: rgba(5, 5, 5, 0.82);
    border: 1px solid rgba(251, 226, 200, 0.72);
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.home-link:hover {
    color: #1a1714;
    background: #fbe2c8;
}

.home-link:focus-visible {
    outline: 2px solid #fff3d7;
    outline-offset: 2px;
}

.home-link svg {
    width: 23px;
    height: 23px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.changeLang {
    position: absolute;
    top: max(12px, env(safe-area-inset-top, 12px));
    right: max(12px, env(safe-area-inset-right, 12px));
    z-index: 10050;
    width: 44px;
    height: 44px;
    display: block;
    float: none;
    color: #fbe2c8;
    background: transparent;
    border: 0;
}

.changeLang > summary {
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    display: block;
    list-style: none;
    cursor: pointer;
    border: 1px solid rgba(251, 226, 200, 0.72);
    border-radius: 50%;
    background-color: rgba(5, 5, 5, 0.82);
    background-image: url('/assistFile/images/yuyan.png?v=100');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 32px 32px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    -webkit-tap-highlight-color: transparent;
}

.changeLang > summary::-webkit-details-marker {
    display: none;
}

.changeLang > summary:focus-visible {
    outline: 2px solid #fff3d7;
    outline-offset: 2px;
}

.changeLang-content {
    position: absolute;
    top: 52px;
    right: 0;
    width: min(210px, calc(100vw - 24px));
    min-width: 0;
    max-height: min(430px, calc(100vh - 78px));
    display: none;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid rgba(251, 226, 200, 0.58);
    border-radius: 12px;
    background: rgba(8, 8, 8, 0.96);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.changeLang[open] .changeLang-content {
    display: block;
}

.changeLang-content .toggle {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #f6dfad;
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none;
    cursor: pointer;
}

.changeLang-content .toggle:hover,
.changeLang-content .toggle:focus-visible,
.changeLang-content .toggle.is-active {
    color: #ffffff;
    background: rgba(169, 21, 40, 0.88);
}

.changeLang-content .toggle.is-active::after {
    content: "✓";
    float: right;
}
