/* ==========================================================
   全站页头 / 页脚（与预约页暗色玻璃风格统一）
   覆盖 ArkyStyle.css 中的同名规则，需在其后加载
   ========================================================== */

/* ---------- 页头 ---------- */
.top-menu {
    background: rgba(7,10,18,.55);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    transition: background .35s ease, box-shadow .35s ease;
}
.top-menu nav {
    position: relative;
    border-bottom: 0;
}
.top-menu nav::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(47,211,192,.45) 20%, rgba(109,154,248,.6) 50%, rgba(212,92,240,.4) 80%, transparent);
    pointer-events: none;
}
.top-menu.shrink {
    background: rgba(7,10,18,.88);
    box-shadow: 0 12px 34px -14px rgba(0,0,0,.85);
}
.top-menu .navbar-brand img { transition: opacity .25s ease, filter .25s ease; }
.top-menu .navbar-brand:hover img { filter: drop-shadow(0 0 10px rgba(109,154,248,.55)); }

#ark-menu .nav-link,
.shrink #ark-menu .nav-link {
    position: relative;
    color: rgba(226,233,246,.82) !important;
    transition: color .25s ease;
}
#ark-menu .nav-link:hover,
#ark-menu .nav-link.is-current,
#ark-menu .show > .nav-link {
    color: #fff !important;
}
#ark-menu .nav-link > div > h6:first-child { font-weight: 500; letter-spacing: .02em; }
#ark-menu h6 small {
    font-family: 'IBM Plex Mono', Consolas, monospace;
    font-size: 9.5px;
    font-weight: 400;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #66738d;
    transition: color .25s ease;
}
#ark-menu a:hover h6 small,
#ark-menu .is-current h6 small { color: #2fd3c0; }

/* 菜单项下方发光下划线（图标类链接除外） */
#ark-menu .navbar-nav > li > .nav-link:not(:has(i))::after {
    content: "";
    position: absolute;
    left: 16px; right: 6px; bottom: 8px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #2fd3c0, #6d9af8);
    box-shadow: 0 0 12px rgba(109,154,248,.85);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .3s cubic-bezier(.2,.7,.3,1);
}
#ark-menu .navbar-nav > li > .nav-link:hover::after,
#ark-menu .navbar-nav > li > .nav-link.is-current::after,
#ark-menu .navbar-nav > li.show > .nav-link::after,
#ark-menu .navbar-nav > li.dropdown:hover > .nav-link::after { transform: scaleX(1); }
#ark-menu .dropdown-toggle::after { border: 0; margin: 0; vertical-align: 0; }
#ark-menu .dropdown-toggle > div > h6:first-child::after {
    content: "";
    display: inline-block;
    width: 5px; height: 5px;
    margin: 0 0 3px 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    opacity: .55;
    transform: rotate(45deg);
    transition: transform .25s ease, opacity .25s ease;
}
#ark-menu .dropdown:hover > .dropdown-toggle > div > h6:first-child::after,
#ark-menu .show > .dropdown-toggle > div > h6:first-child::after { transform: rotate(-135deg) translate(-2px, -2px); opacity: .9; }

/* 图标：语言 / 搜索 / 社交 */
#ark-menu .nav-link i {
    color: rgba(220,230,248,.68);
    transition: color .25s ease, text-shadow .25s ease, transform .25s ease;
}
#ark-menu .nav-link:hover i {
    color: #fff;
    text-shadow: 0 0 14px rgba(109,154,248,.9);
    transform: translateY(-1px);
}

/* 下拉面板 */
.top-menu .dropdown .dropdown-menu,
.shrink .dropdown .dropdown-menu {
    background: rgba(10,14,26,.94) !important;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: .45rem;
    box-shadow: 0 26px 50px -18px rgba(0,0,0,.9), 0 0 0 1px rgba(109,154,248,.06);
}
.top-menu .dropdown .dropdown-menu .dropdown-item {
    border-radius: 8px;
    padding: .25rem .6rem;
    color: rgba(226,233,246,.78) !important;
    transition: background .2s ease, color .2s ease;
}
.top-menu .dropdown .dropdown-menu .dropdown-item:hover,
.top-menu .dropdown .dropdown-menu .dropdown-item.is-current {
    color: #fff !important;
    background: rgba(109,154,248,.14) !important;
}
#lang-container .dropdown-item { padding: .55rem .9rem; font-size: .9rem; }

/* 搜索框 */
.top-menu #search-info {
    height: 40px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.14);
    border-right: 0;
    border-radius: 999px 0 0 999px;
    color: #eef2f8;
    padding-left: 1rem;
}
.top-menu #search-info::placeholder { color: #66738d; }
.top-menu #search-info:focus {
    background: rgba(109,154,248,.07);
    border-color: #6d9af8;
    box-shadow: 0 0 0 3px rgba(109,154,248,.2);
}
.top-menu #btn_search {
    border: 0;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(135deg, #7aa5ff, #5b84f0);
    color: #061026;
}
.top-menu #btn_search i { color: #061026 !important; text-shadow: none; }

/* 移动端 */
.top-menu .navbar-toggler {
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 10px;
    margin: .5rem 0;
}
@media (max-width: 991.98px) {
    .top-menu { background: rgba(7,10,18,.94); }
    #ark-menu { padding-bottom: .6rem; }
    #ark-menu .navbar-nav > li > .nav-link:not(:has(i))::after { left: 10px; right: auto; width: 28px; bottom: 6px; }
    .top-menu .dropdown .dropdown-menu { border-radius: 10px; margin: 0 .5rem .5rem; }
}

/* ---------- 返回顶部 ---------- */
.scroll-to-top {
    top: auto;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    line-height: 42px;
    border-radius: 50%;
    background: rgba(10,14,26,.72);
    border: 1px solid rgba(143,178,255,.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 26px -10px rgba(0,0,0,.9);
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.scroll-to-top i { margin: 0; font-size: 20px; color: #dfe7f6; }
.scroll-to-top:hover {
    border-color: #6d9af8;
    box-shadow: 0 0 24px -4px rgba(109,154,248,.85);
    transform: translateY(-2px);
}

/* ---------- 页脚 ---------- */
.site-footer {
    position: relative;
    overflow: hidden;
    background: #060910;
    color: #8a95aa;
    font-family: 'Noto Sans SC', '微软雅黑', sans-serif;
}
.site-footer::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #2fd3c0 20%, #6d9af8 50%, #d45cf0 80%, transparent);
    opacity: .6;
}
.site-footer__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(40% 60% at 8% 0%, rgba(47,211,192,.09), transparent 70%),
        radial-gradient(40% 70% at 92% 100%, rgba(212,92,240,.08), transparent 70%),
        radial-gradient(50% 60% at 55% 30%, rgba(109,154,248,.06), transparent 70%);
}
.site-footer__main { position: relative; padding-top: 4.5rem; padding-bottom: 1rem; }
.site-footer__eyebrow {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin: 0 0 .6rem;
    font: 500 .68rem 'IBM Plex Mono', Consolas, monospace;
    letter-spacing: .22em;
    color: #2fd3c0;
}
.site-footer__eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.site-footer__title {
    margin: 0 0 1.4rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #eef2f8;
    letter-spacing: .02em;
}
.site-footer__brand { display: inline-block; margin-bottom: 1rem; }
.site-footer__brand img { height: 46px; width: auto; transition: filter .25s ease; }
.site-footer__brand:hover img { filter: drop-shadow(0 0 12px rgba(109,154,248,.6)); }
.site-footer__desc { max-width: 30rem; font-size: .9rem; line-height: 1.9; color: #8a95aa; margin-bottom: 1.4rem; }
.site-footer__social { display: flex; flex-wrap: wrap; gap: .6rem; }
.site-footer__social a {
    width: 40px; height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.03);
    color: #c6d0e2;
    font-size: 1rem;
    transition: color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.site-footer__social a:hover {
    color: #fff;
    border-color: #6d9af8;
    box-shadow: 0 0 22px -4px rgba(109,154,248,.85);
    transform: translateY(-2px);
}
.site-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .2rem 1.5rem;
}
.site-footer__links a {
    display: block;
    padding: .5rem 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    text-decoration: none;
    transition: transform .25s ease;
}
.site-footer__links b { display: block; font-weight: 500; font-size: .93rem; color: #d6deec; transition: color .25s ease; }
.site-footer__links small {
    display: block;
    margin-top: .15rem;
    font: 9.5px 'IBM Plex Mono', Consolas, monospace;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #5d6880;
    transition: color .25s ease;
}
.site-footer__links a:hover { transform: translateX(4px); }
.site-footer__links a:hover b { color: #fff; }
.site-footer__links a:hover small { color: #2fd3c0; }
.site-footer__mail {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    max-width: 100%;
    padding: .55rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.03);
    color: #d6deec;
    font-size: .88rem;
    word-break: break-all;
    transition: border-color .25s ease, box-shadow .25s ease, color .25s ease;
}
.site-footer__mail i { color: #6d9af8; }
.site-footer__mail:hover { color: #fff; border-color: #6d9af8; box-shadow: 0 0 22px -6px rgba(109,154,248,.8); text-decoration: none; }
.site-footer__embed { margin-top: 1.2rem; color: #8a95aa; }
.site-footer__embed a { color: #c6d0e2; }
.site-footer__embed a:hover { color: #6d9af8; }
.site-footer__bar {
    position: relative;
    border-top: 1px solid rgba(255,255,255,.06);
    background: rgba(0,0,0,.25);
}
.site-footer__bar .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .5rem 1.5rem;
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
}
.site-footer__bar p { margin: 0; font-size: .78rem; color: #5d6880; }
.site-footer__coord { font-family: 'IBM Plex Mono', Consolas, monospace; letter-spacing: .14em; }
@media (max-width: 575.98px) {
    .site-footer__main { padding-top: 3.2rem; }
    .site-footer__bar .container { justify-content: center; text-align: center; }
}
