/* PC 新首页上线主题二期：版本切换与调研问卷。 */
.gs-version-overlay[hidden] { display: none !important; }

.gs-version-overlay {
    align-items: center;
    background: rgba(0, 0, 0, 0.48);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 2147483000;
}

.gs-version-overlay * { box-sizing: border-box; }

html.gs-version-overlay-open,
body.gs-version-overlay-open {
    overflow: hidden !important;
    overscroll-behavior: none;
}

.gs-version-dialog {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
    color: #222;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    outline: none;
    position: relative;
}

.gs-version-dialog__close {
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    height: 24px;
    justify-content: center;
    padding: 7px;
    position: absolute;
    right: 10px;
    top: 10px;
    width: 24px;
    z-index: 2;
}

.gs-version-dialog__close img { display: block; height: 10px; width: 10px; }

.gs-version-invite {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    height: 314px;
    overflow: hidden;
    text-align: center;
    width: 270px;
}

.gs-version-invite__art {
    height: 170px;
    overflow: hidden;
    position: relative;
}

.gs-version-invite__art img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.gs-version-invite__body {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 144px;
    padding: 16px 20px;
}

.gs-version-invite h2 {
    color: #222;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 17px;
    font-style: normal;
    font-weight: 500;
    line-height: 22px;
    margin: 0;
    text-align: center;
}

.gs-version-invite p {
    color: #222;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
    margin: 4px 0 0;
    text-align: center;
}

.gs-version-primary-button {
    background: #eb413d;
    border: 0;
    border-radius: 22px;
    color: #fffffd;
    cursor: pointer;
    font: 500 16px/44px "PingFang SC", "Microsoft YaHei", sans-serif;
    height: 44px;
    padding: 0 34px;
    transition: background 160ms ease, transform 160ms ease;
}

.gs-version-invite .gs-version-primary-button {
    font: 500 17px/22px "PingFang SC", "Microsoft YaHei", sans-serif !important;
    margin-top: 20px;
    padding: 11px 4px;
    width: 220px;
}

.gs-version-primary-button:hover { background: #d83733; transform: translateY(-1px); }
.gs-version-primary-button:focus-visible,
.gs-version-dialog__close:focus-visible,
.gs-version-return:focus-visible { outline: 3px solid #f6be53; outline-offset: 3px; }

.top-nav__secondary {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    position: relative;
    width: 598.857px;
}

.top-nav__secondary-link { justify-self: stretch; }

.gs-version-return {
    align-items: center;
    align-self: stretch;
    appearance: none;
    background: transparent;
    border: 0;
    border-left: 0.5px solid #444;
    color: #d2d2d2;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    grid-column: 8;
    grid-row: 1 / span 2;
    justify-content: space-between;
    justify-self: stretch;
    margin: 0;
    padding: 0;
    position: relative;
}

.gs-version-return__icon {
    display: block;
    height: 25px;
    width: 25px;
}

.gs-version-return__label {
    align-items: center;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 58 18' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><rect x='0' y='0' height='100%' width='100%' fill='url(%23grad)' opacity='1'/><defs><radialGradient id='grad' gradientUnits='userSpaceOnUse' cx='0' cy='0' r='10' gradientTransform='matrix(0 -0.48976 3.6755 0 29 18)'><stop stop-color='rgb(0,85,255)' stop-opacity='0.3' offset='0.021429'/><stop stop-color='rgb(0,85,255)' stop-opacity='0' offset='1'/></radialGradient></defs></svg>"), linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.15) 100%);
    background-repeat: no-repeat, no-repeat;
    background-size: 100% 100%, 100% 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    height: 18px;
    justify-content: center;
    padding: 0 7px;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.gs-version-return__label-text {
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background: linear-gradient(180deg, #969696 0%, #e5e5e5 63.867%);
    background-clip: text;
    color: transparent;
    font: 400 11px/18px "Source Sans Pro", "Microsoft YaHei", sans-serif;
    position: relative;
    text-align: center;
}

.gs-version-return__label-line {
    background: linear-gradient(270deg, rgba(0, 85, 255, 0), rgba(0, 85, 255, 0.4) 40%, rgba(0, 85, 255, 0.4) 60%, rgba(0, 85, 255, 0));
    height: 1px;
    left: 9px;
    position: absolute;
    top: 15px;
    width: 37px;
}

.gs-version-return__tip {
    background: #fff;
    border-radius: 8px;
    color: #222;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.1));
    font: 400 15px/24px "PingFang SC", "Microsoft YaHei", sans-serif;
    left: 0;
    padding: 16px;
    pointer-events: none;
    position: fixed;
    right: auto;
    text-align: center;
    top: 0;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 2147482000;
}

.gs-version-return__tip::before {
    background: #fff;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    content: "";
    height: 10.17157px;
    left: 50%;
    position: absolute;
    top: -9.17157px;
    transform: translateX(-50%);
    width: 20px;
}

.gs-version-survey {
    display: flex;
    flex-direction: column;
    height: 500px;
    max-height: calc(100vh - 48px);
    overflow: hidden;
    width: 500px;
}

.gs-version-survey__art {
    flex: 0 0 200px;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.gs-version-survey__header { display: block; height: 100%; object-fit: cover; width: 100%; }

.gs-version-survey__body {
    -ms-overflow-style: none;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 16px 20px 20px;
    scrollbar-width: none;
    overscroll-behavior: contain;
}
.gs-version-survey__body::-webkit-scrollbar { display: none; }
.gs-version-survey__title { text-align: center; }
.gs-version-survey__title h2 { font-size: 17px; font-weight: 500; line-height: 22px; margin: 0; }
.gs-version-survey__title p { font-size: 14px; line-height: 22px; margin: 4px 0 0; }

.gs-version-survey__content {
    height: auto;
    margin-top: 20px;
    overflow: visible;
}

.gs-version-question { border: 0; margin: 0 0 12px; min-width: 0; padding: 0; }
.gs-version-question__title { align-items: center; display: flex; font-size: 14px; font-weight: 600; gap: 8px; line-height: 20px; margin: 0 0 8px; min-height: 22px; }
.gs-version-question__number { color: #666; font-weight: 500; }
.gs-version-question__required { color: #eb413d; font-size: 16px; font-weight: 400; }
.gs-version-question__optional { color: #999; font-weight: 400; }

.gs-version-scale { display: flex; margin: 0; padding: 0; }
.gs-version-scale label { align-items: center; color: #999; cursor: pointer; display: flex; flex: 1; flex-direction: column; font-size: 12px; gap: 6px; line-height: 16px; text-align: center; }
.gs-version-scale input[type="radio"] { appearance: none; background: #fff; border: 1px solid #ccc; border-radius: 50%; height: 16px; margin: 0; width: 16px; }
.gs-version-scale input[type="radio"]:checked { border: 5px solid #eb413d; }
.gs-version-scale input[type="radio"]:focus-visible { outline: 2px solid #f6be53; outline-offset: 2px; }

.gs-version-options { display: grid; gap: 0 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gs-version-options label { align-items: center; color: #222; cursor: pointer; display: flex; font-size: 13px; font-weight: 500; line-height: 22px; padding: 4px 10px 4px 30px; position: relative; white-space: nowrap; }
.gs-version-options input[type="checkbox"] { height: 16px; left: 10px; margin: 0; opacity: 0 !important; outline: 0; padding: 0; position: absolute; top: 50%; transform: translateY(-50%); width: 16px; }
.gs-version-checkbox-icon { background: #fff !important; border: 1px solid #d8d8d8 !important; border-radius: 2px; box-shadow: none !important; display: block; height: 16px; left: 10px; pointer-events: none; position: absolute; top: 50%; transform: translateY(-50%); width: 16px; }
.gs-version-checkbox-icon::after { border: solid #fff; border-width: 0 0 2px 2px; content: ""; display: none; height: 4px; left: 3px; position: absolute; top: 3px; transform: rotate(-45deg); width: 7px; }
.gs-version-options input[type="checkbox"]:checked + .gs-version-checkbox-icon { background: #eb413d !important; border-color: #eb413d !important; }
.gs-version-options input[type="checkbox"]:checked + .gs-version-checkbox-icon::after { display: block; }
.gs-version-options input[type="checkbox"]:focus-visible + .gs-version-checkbox-icon { outline: 2px solid #f6be53; outline-offset: 2px; }
.gs-version-textarea { border: 1px solid #eee; border-radius: 4px; color: #222; display: block; font: 14px/20px "PingFang SC", "Microsoft YaHei", sans-serif; height: 40px; outline: none; overflow-y: auto; padding: 8px 12px; resize: none; scrollbar-width: none; width: 100%; }
.gs-version-textarea:focus { border-color: #eb413d; box-shadow: 0 0 0 2px rgba(235, 65, 61, 0.12); }
.gs-version-textarea::-webkit-scrollbar { display: none; }
.gs-version-other-input { border: 1px solid #eee; border-radius: 4px; box-sizing: border-box; color: #222; font: 13px/20px "PingFang SC", "Microsoft YaHei", sans-serif; grid-column: 1 / -1; height: 36px; margin: 4px 10px; outline: none; padding: 5px 8px; width: calc(100% - 20px); }
.gs-version-other-input:focus { border-color: #eb413d; box-shadow: 0 0 0 2px rgba(235, 65, 61, 0.12); }
.gs-version-survey__notice,
.gs-version-survey__loading { color: #666; font-size: 13px; line-height: 20px; margin: 0 0 10px; text-align: center; }
.gs-version-survey__notice--error { color: #eb413d; }
.gs-version-survey__submit { display: block; margin: 20px auto 0; min-width: 220px; }
.gs-version-survey__submit:disabled { cursor: not-allowed; opacity: 0.65; transform: none; }

@media (max-width: 640px) {
    .gs-version-overlay { padding: 12px; }
    .gs-version-invite { width: min(270px, 100%); }
    .gs-version-survey { max-height: calc(100vh - 24px); width: 100%; }
    .gs-version-options { grid-template-columns: 1fr; }
    .gs-version-options label { white-space: normal; }
}
