.scholar-home-page {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: #222;
    overflow-x: clip;
}

.scholar-home-page::before {
    display: none;
}

#gs_top.scholar-home-shell {
    min-width: 0 !important;
    min-height: 0 !important;
    width: 100%;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
}

#gs_hdr.scholar-home-topbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 63px;
    padding: 0 16px 0 0;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    box-sizing: border-box;
}

#gs_hdr.scholar-home-topbar::before,
#gs_hdr.scholar-home-topbar::after {
    display: none;
}

#gs_hdr_mnu {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 63px;
    min-width: 55px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

#gs_hdr_mnu:hover,
#gs_hdr_mnu:focus {
    background: #f1f3f4;
    text-decoration: none;
}

#gs_hdr_mnu:focus-visible {
    outline: 2px solid #4d90fe;
    outline-offset: 2px;
}

#gs_hdr_mnu .gs_ico {
    width: 18px;
    height: 12px;
    background: transparent;
    position: relative;
}

#gs_hdr_mnu .gs_ico::before,
#gs_hdr_mnu .gs_ico::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #5f6368;
}

#gs_hdr_mnu .gs_ico::before {
    top: 0;
    box-shadow: 0 5px 0 #5f6368, 0 10px 0 #5f6368;
}

#gs_hdr_mnu .gs_ico::after {
    display: none;
}

.scholar-home-header-fill {
    flex: 1 1 auto;
    min-width: 0;
}

#gs_hdr_act {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 34px;
    margin-left: 12px;
    padding-right: 8px;
    flex: 0 0 auto;
}

.scholar-home-topbar .sp-auth-widget {
    margin-right: 0;
}

.scholar-home-topbar .sp-auth-widget-guest .sp-auth-trigger {
    min-height: 30px;
    height: 30px;
    padding: 0 12px;
    font-size: 12px;
}

.scholar-home-main {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    flex: 1 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 22px 24px 18px;
    box-sizing: border-box;
}

.scholar-entry-shell {
    width: min(760px, 100%);
    text-align: center;
    display: grid;
    gap: 12px;
}

.scholar-entry-heading {
    display: grid;
    justify-items: center;
}

.scholar-entry-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    max-width: 100%;
}

.scholar-entry-copy {
    display: flex;
    align-items: center;
    text-align: left;
}

.scholar-entry-title-mark {
    width: 72px;
    height: 72px;
    flex: 0 0 auto;
    display: block;
    transform: none;
    filter: drop-shadow(0 4px 10px rgba(77, 144, 254, 0.18));
}

.scholar-entry-title {
    margin: 0;
    color: #757575;
    font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: clamp(38px, 4.6vw, 56px);
    line-height: 1;
    font-weight: 400;
    letter-spacing: -0.01em;
}

#gs_hp_giants.scholar-entry-slogan {
    display: block;
    margin: 32px 16px;
    color: #006621;
    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 22.32px;
    font-weight: 400;
    letter-spacing: normal;
    text-align: center;
}

.scholar-search-form {
    display: grid;
    gap: 8px;
}

.scholar-search-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0;
    align-items: center;
    width: min(604px, 100%);
    margin: 0 auto;
    padding: 0;
    border-radius: 2px;
    background: #fff;
    border: 1px solid #d9d9d9;
    box-shadow: none;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.scholar-search-shell:focus-within {
    border-color: #4d90fe;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.scholar-search-input {
    width: 100%;
    min-width: 0;
    height: 38px;
    padding: 3px 6px 1px 8px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #202124;
    font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    box-sizing: border-box;
}

.scholar-search-input::placeholder {
    color: #9aa0a6;
}

.scholar-search-button {
    min-width: 40px;
    width: 40px;
    height: 38px;
    padding: 0 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-left: 0;
    border-radius: 0 2px 2px 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: #4d90fe;
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    box-shadow: none;
    cursor: pointer;
    transition: background-color 0.18s ease;
}

.scholar-search-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.scholar-search-button span:last-child {
    display: none;
}

.scholar-search-button:hover {
    background: #357ae8;
}

.scholar-inline-error {
    display: none;
    width: min(604px, 100%);
    margin: 0 auto;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(180, 35, 24, 0.14);
    background: #fff5f5;
    color: #b42318;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
    box-sizing: border-box;
}

.scholar-inline-error.is-visible {
    display: block;
}

.scholar-topic-block {
    display: grid;
    gap: 6px;
    justify-items: center;
}

.scholar-topic-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    max-width: 640px;
}

.scholar-topic-links a {
    color: #1a56c5;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.scholar-topic-links a:hover {
    text-decoration: underline;
}

.scholar-home-ad {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: min(604px, 100%);
    margin: 12px auto 0;
    padding: 12px 14px;
    border-radius: 2px;
    border: 1px solid #e0e0e0;
    background: #fff;
    text-decoration: none;
    box-sizing: border-box;
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.scholar-home-ad:hover {
    border-color: #d6d6d6;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.scholar-home-ad img {
    width: 118px;
    height: auto;
    display: block;
    flex: 0 0 auto;
}

.scholar-home-ad span {
    max-width: 430px;
    text-align: left;
    color: #3c4043;
    font-size: 13px;
    line-height: 1.6;
    font-weight: 600;
}

.home-side-qr {
    position: fixed;
    left: 24px;
    top: 108px;
    width: 116px;
    z-index: 5;
}

.home-side-qr picture,
.home-side-qr a,
.home-side-qr img {
    display: block;
    width: 100%;
}

.home-side-qr img {
    height: auto;
    max-height: calc(100vh - 176px);
    object-fit: contain;
    object-position: top;
}

.scholar-home-floating-ads {
    position: fixed;
    right: 18px;
    bottom: 78px;
    z-index: 12;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.scholar-home-floating-ads a {
    display: block;
    line-height: 0;
}

.scholar-home-floating-ads img {
    display: block;
    width: min(248px, 22vw);
    min-width: 188px;
    height: auto;
}

.scholar-home-footer {
    width: 100%;
    max-width: none;
    padding: 0;
    background: #f2f2f2;
    border-top: 1px solid #e4e4e4;
}

.scholar-home-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 12px 32px 13px;
    color: #70757a;
    font-size: 12px;
    text-align: center;
    box-sizing: border-box;
}

.scholar-home-footer-inner > :first-child {
    max-width: 360px;
}

.scholar-home-footer-meta {
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
    white-space: nowrap;
}

@media (max-height: 760px) {
    .home-side-qr {
        top: 96px;
        width: 106px;
    }

    .home-side-qr img {
        max-height: calc(100vh - 154px);
    }
}

@media (max-width: 1200px) {
    .home-side-qr {
        display: none;
    }

    .scholar-home-floating-ads {
        display: none;
    }
}

@media (max-width: 860px) {
    .scholar-home-main {
        padding-left: 20px;
        padding-right: 20px;
    }

    .scholar-entry-brand {
        gap: 12px;
    }

    .scholar-entry-title-mark {
        width: 58px;
        height: 58px;
    }

    .scholar-entry-title {
        font-size: 44px;
    }

    .scholar-home-ad {
        width: 100%;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .scholar-home-footer-inner {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 640px) {
    .scholar-home-floating-ads {
        display: none;
    }

    #gs_hdr.scholar-home-topbar {
        padding-right: 10px;
    }

    .scholar-home-main {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .scholar-entry-shell {
        gap: 8px;
    }

    .scholar-entry-brand {
        gap: 8px;
        align-items: center;
    }

    .scholar-entry-title-mark {
        width: 42px;
        height: 42px;
    }

    .scholar-entry-title {
        font-size: 30px;
    }

    #gs_hp_giants.scholar-entry-slogan {
        margin: 16px 8px;
        font-size: 18px;
        line-height: 22.32px;
    }

    .scholar-topic-block {
        gap: 2px;
    }

    .scholar-topic-links {
        gap: 6px 12px;
        max-width: 100%;
    }

    .scholar-home-ad {
        margin-top: 6px;
        padding: 10px 12px;
    }

    .scholar-home-ad span {
        font-size: 12px;
        line-height: 1.5;
    }

    .scholar-home-ad {
        flex-direction: column;
        text-align: left;
    }

    .scholar-home-ad img {
        width: 112px;
    }

    .scholar-home-ad span {
        max-width: none;
    }

    .scholar-home-footer-inner {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .scholar-home-footer-meta {
        display: none;
    }
}

@media (max-width: 420px) {
    .scholar-search-shell {
        width: 100%;
    }

    .scholar-search-input {
        font-size: 16px;
    }
}

@supports (min-height: 100dvh) {
    .scholar-home-page {
        min-height: 100dvh;
    }
}
