/* Shared site chrome follows the GuGuData header and footer. */
:root {
    --ggk-header-height: 55px;
    scroll-padding-top: calc(var(--ggk-header-height) + 16px);
}

.ggk-site-header,
.ggk-site-footer {
    color: #475569;
    background: #fff;
    font-family: -apple-system, "SF UI Text", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 20px;
}

.ggk-site-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: transparent;
    transition: background-color 180ms ease, box-shadow 180ms ease;
}

.ggk-site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
    box-shadow: 0 1px 0 #e2e8f099, 0 4px 18px #24374608;
}

.ggk-site-header.is-menu-open {
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

/* Extend the existing hero behind the navigation without moving its content. */
.foi-header.landing-header {
    margin-top: calc(0px - var(--ggk-header-height));
    padding-top: calc(12px + var(--ggk-header-height));
}

.ggk-shell {
    width: 100%;
    max-width: 1366px;
    margin: 0 auto;
    padding: 0 15px;
}

.ggk-site-header a,
.ggk-site-footer a {
    text-decoration: none;
    transition: color 160ms ease;
}

.ggk-site-header a:hover,
.ggk-site-header a:focus-visible,
.ggk-site-footer a:hover,
.ggk-site-footer a:focus-visible {
    color: #8a6400;
}

.ggk-site-header :focus-visible,
.ggk-site-footer :focus-visible {
    outline: 2px solid #8a6400;
    outline-offset: 4px;
}

.ggk-header-layout {
    display: flex;
    align-items: center;
    min-height: 55px;
}

.ggk-brand {
    display: flex;
    align-items: center;
    flex: 0 0 191px;
    min-height: 55px;
    padding: 0 20px 0 0;
}

.ggk-brand img {
    display: block;
    width: auto;
    height: 32px;
}

.ggk-site-nav {
    min-width: 0;
}

.ggk-nav-list {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
}

.ggk-nav-list a {
    position: relative;
    display: block;
    padding: 15px 10px;
    color: #0a0a0a;
    font-size: 14px;
    line-height: 25px;
    white-space: nowrap;
}

.ggk-nav-list .active > a {
    color: #0a0a0a;
    font-weight: 600;
}

.ggk-nav-list .active > a::after {
    content: "";
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 20px;
    height: 3px;
    border-radius: 2px;
    background: #f5ce4d;
    transform: translateX(-50%);
}

.ggk-dashboard-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    margin-left: auto;
    padding: 0 12px;
    color: #0a0a0a;
    font-size: 14px;
    font-weight: 500;
    line-height: 25px;
    white-space: nowrap;
}

.ggk-dashboard-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.72;
}

.ggk-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.ggk-menu-toggle span {
    width: 22px;
    height: 2px;
    background: #475569;
}

.ggk-site-footer,
.ggk-footer-bottom {
    border-top: 1px solid #eef1f4;
}

.ggk-footer-top {
    padding: 56px 0 44px;
}

.ggk-footer-brand {
    display: inline-flex;
    flex: 0 0 auto;
}

.ggk-footer-brand img {
    display: block;
    width: auto;
    height: 20px;
}

.ggk-footer-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}

.ggk-footer-group + .ggk-footer-group {
    margin-top: 28px;
}

.ggk-footer-group h2 {
    margin: 0 0 14px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: 0.08em;
}

.ggk-footer-group ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.ggk-footer-group li {
    margin-bottom: 10px;
}

.ggk-footer-group a,
.ggk-mini-program summary {
    color: #475569;
    font-size: 14px;
    line-height: 1.55;
}

.ggk-external-mark {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 5px;
    vertical-align: -1px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.65;
}

.ggk-mini-program {
    position: relative;
}

.ggk-mini-program summary {
    width: fit-content;
    list-style: none;
    cursor: pointer;
}

.ggk-mini-program summary::-webkit-details-marker {
    display: none;
}

.ggk-mini-program summary:hover,
.ggk-mini-program[open] summary {
    color: #8a6400;
}

.ggk-mini-code {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    z-index: 5;
    padding: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 8px 24px #24374618;
}

.ggk-mini-code img {
    display: block;
    width: 132px;
    height: 132px;
}

.ggk-footer-bottom {
    padding: 12px 0;
    color: #475569;
    font-size: 12px;
    line-height: 24px;
}

.ggk-copyright-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.ggk-copyright-identity {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.ggk-copyright-row a {
    color: #475569;
}

.back-to-top {
    right: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 24px #24374612;
    color: #475569;
    font-size: 16px;
    line-height: 42px;
    text-align: center;
}

.back-to-top:hover,
.back-to-top:focus-visible {
    background: #fff;
    color: #8a6400;
}

@media (min-width: 992px) and (max-width: 1199px) {
    .ggk-brand { flex-basis: 150px; padding-right: 8px; }
    .ggk-nav-list a { padding-right: 5px; padding-left: 5px; font-size: 12px; }
}

@media (min-width: 744px) and (max-width: 991px) {
    :root { --ggk-header-height: 104px; }
    .ggk-shell { padding-right: 24px; padding-left: 24px; }
    .ggk-header-layout { display: grid; grid-template-columns: 1fr auto; }
    .ggk-brand { grid-column: 1; grid-row: 1; }
    .ggk-dashboard-link { grid-column: 2; grid-row: 1; }
    .ggk-site-nav { grid-column: 1 / -1; grid-row: 2; }
    .ggk-nav-list { justify-content: space-between; }
    .ggk-nav-list a { padding: 12px 4px; font-size: 12px; }
}

@media (max-width: 991px) {
    .back-to-top { display: none !important; }
}

@media (max-width: 767px) {
    .ggk-footer-top { padding: 32px 0 24px; }
    .ggk-footer-brand img { height: 18px; }
    .ggk-copyright-identity { gap: 10px; }
    .ggk-footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
    .ggk-footer-group + .ggk-footer-group { margin-top: 22px; }
    .ggk-footer-group a, .ggk-mini-program summary { font-size: 13px; overflow-wrap: anywhere; }
    .ggk-copyright-row { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 11px; line-height: 18px; }
}

@media (max-width: 743px) {
    :root { --ggk-header-height: 64px; }
    .ggk-site-header.is-menu-open { max-height: 100vh; max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }
    .ggk-header-layout { flex-wrap: wrap; min-height: 64px; }
    .ggk-brand { flex: 1 1 0; min-height: 64px; padding-right: 4px; }
    .ggk-dashboard-link { margin-left: 0; }
    .ggk-menu-toggle { display: flex; margin-left: 4px; }
    .ggk-site-nav { order: 3; width: 100%; }
    .ggk-site-header.is-enhanced .ggk-site-nav:not(.is-open) { display: none; }
    .ggk-nav-list { display: block; padding: 15px 0; border-top: 1px solid #e2e8f0; }
    .ggk-nav-list li { margin-bottom: 1px; }
    .ggk-nav-list a { padding: 5px 10px; line-height: 25px; }
    .ggk-nav-list .active > a { border-radius: 6px; background: #fdf7e4; }
    .ggk-nav-list .active > a::after { display: none; }
}

@media (max-width: 374px) {
    .ggk-brand img { height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
    .ggk-site-header, .ggk-site-header a, .ggk-site-footer a { transition: none; }
}
