/* =========================================================
   135GEO · 公共样式（布局 / 导航 / 按钮 / 弹层）
   ========================================================= */
:root {
    --geo-orange: #FF6600;
    --geo-orange-light: #FFF5EE;
    --geo-orange-dark: #E55A00;
    --geo-text: #1A1A1A;
    --geo-text-secondary: #666666;
    --geo-text-light: #999999;
    --geo-text-muted: #888888;
    --geo-border: #EEEEEE;
    --geo-border-light: #E5E5E5;
    --geo-bg-gray: #F7F8FA;
    --geo-bg-dark: #111111;
    --site-header-height: 75px;
    --geo-logo-height: 52px;
    --geo-logo-height-mobile: 40px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--site-header-height) + 12px);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding-top: var(--site-header-height);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #fff;
    color: var(--geo-text);
    line-height: 1.6;
}

#geo-site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
}

/* 查询页 / 会员页 · 顶部菜单下方横幅背景 */
.geo-top-banner-bg {
    background: url('../img/search-bg.png') no-repeat center top;
}

body.nav-open {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-orange {
    color: var(--geo-orange);
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--geo-border);
    padding: 18px 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
}

.logo {
    display: inline-flex;
    line-height: 0;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    /* height: var(--geo-logo-height-mobile); */
    width: auto;
    max-width: none;
    display: block;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
}

.site-nav a {
    color: #333333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--geo-orange);
}

.header-actions {
    flex-shrink: 0;
    margin-left: 8px;
}

.header-actions--mobile {
    display: none;
}

.site-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    margin-left: auto;
    padding: 0;
    border: 1px solid var(--geo-border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
}

.site-nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: #333;
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
}

.site-nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.site-nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-nav-panel {
    display: contents;
}

.btn-geo--header {
    background: var(--geo-orange);
    color: #fff;
    border-radius: 20px;
    padding: 8px 22px;
    font-size: 14px;
    font-weight: 600;
}

.btn-geo--header:hover {
    background: var(--geo-orange-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 102, 0, 0.3);
}

/* Buttons */
.btn-geo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.25s ease;
    border-radius: 100px;
    text-decoration: none;
}

.btn-geo--primary {
    background: var(--geo-orange);
    color: #fff;
}

.btn-geo--primary:hover {
    background: var(--geo-orange-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.28);
}

.btn-geo--nav {
    background: linear-gradient(90deg, #ff7e00 0%, #ff4e00 100%);
    color: #fff;
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
}

.btn-geo--nav:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 78, 0, 0.35);
}

.btn-geo--nav.is-active {
    box-shadow: 0 4px 12px rgba(255, 78, 0, 0.35);
}

.modal__close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    padding: 0;
    line-height: 0;
}

.modal__close img {
    width: 32px;
    height: 32px;
    display: block;
}

.btn-geo--outline {
    background: transparent;
    color: var(--geo-orange);
    border: 1.5px solid var(--geo-orange);
}

.btn-geo--outline:hover {
    background: var(--geo-orange-light);
}

.btn-geo--gray {
    background: #E8E8E8;
    color: var(--geo-text-secondary);
}

.btn-geo--gray:hover {
    background: #ddd;
}

.btn-geo--dark {
    background: #333;
    color: #fff;
}

.btn-geo--dark:hover {
    background: #444;
}

.btn-geo--sm {
    padding: 8px 22px;
    font-size: 13px;
}

.btn-geo--lg {
    padding: 14px 36px;
    font-size: 15px;
}

.btn-geo--block {
    display: flex;
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border-radius: 8px;
}

.btn-geo-block {
    display: flex;
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border-radius: 8px;
    background: var(--geo-orange);
    color: #fff;
}

.btn-geo-block:hover {
    background: var(--geo-orange-dark);
}

/* Consult modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 320;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.is-open {
    display: flex;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    cursor: pointer;
}

.modal__panel {
    position: relative;
    z-index: 1;
    max-width: 320px;
    padding: 28px 24px 22px;
    background: #fff;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
}

.modal__qr-wrap {
    position: relative;
    display: inline-block;
    padding: 8px;
    background: #fff;
    border-radius: 12px;
}

.modal__qr {
    display: block;
    width: 240px;
    max-width: 72vw;
    border-radius: 8px;
}

.modal__title {
    margin-top: 14px;
    font-size: 14px;
    color: var(--geo-text-secondary);
}

/* Back to top */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 24px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--geo-border);
    border-radius: 50%;
    background: #fff;
    color: var(--geo-orange);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 200;
    padding: 0;
}

.back-to-top.is-visible {
    display: flex;
}

.back-to-top:hover {
    background: var(--geo-orange);
    color: #fff;
    border-color: var(--geo-orange);
}

.back-to-top svg {
    width: 18px;
    height: 18px;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s, transform 0.8s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .site-nav {
        gap: 16px;
    }
}

@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
    }

    :root {
        --site-header-height: 64px;
        --geo-logo-height: var(--geo-logo-height-mobile);
    }

    .container {
        padding: 0 16px;
    }

    .site-header {
        padding: 12px 0;
    }

    .site-header .container {
        flex-wrap: wrap;
        gap: 0;
    }

    .site-nav-toggle {
        display: flex;
        margin-left: 8px;
    }

    .header-actions--mobile {
        display: block;
        margin-left: auto;
    }

    .header-actions--mobile .btn-geo--nav {
        padding: 7px 14px;
        font-size: 13px;
    }

    .header-actions--desktop {
        display: none;
    }

    .site-nav-panel {
        display: none;
        flex-basis: 100%;
        order: 4;
        width: 100%;
        padding: 8px 0 16px;
        border-top: 1px solid var(--geo-border);
        margin-top: 12px;
    }

    .site-nav-panel.is-open {
        display: block;
        padding-top: 0px;
    }

    .site-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-left: 0;
        overflow: visible;
        text-align: center;
    }

    .site-nav a {
        display: block;
        padding: 12px 0;
        font-size: 15px;
        border-bottom: 1px solid var(--geo-border-light);
        white-space: normal;
    }

    .site-nav a:last-child {
        border-bottom: none;
    }

    .back-to-top {
        right: 12px;
        bottom: 16px;
        width: 38px;
        height: 38px;
    }

    .btn-geo--header {
        padding: 7px 16px;
        font-size: 13px;
    }
}