/* ============================================================
   site.css  全站公共样式：顶部导航 + 底部页脚
   所有页面共用，保证导航/底部外观完全一致。
   颜色使用固定值，不依赖各页面 CSS 变量。
   版本 20260909-3
   ============================================================ */

/* ---------------- 顶部导航 ---------------- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.65);
}
.header .container {
    width: min(1200px, calc(100% - 48px));
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}
.nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 72px;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-weight: 800;
    font-size: 19px;
    color: #0f172a;
    letter-spacing: 0.3px;
    text-decoration: none;
    white-space: nowrap;
}
.logo-mark {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s;
}
.logo:hover .logo-mark { transform: rotate(-6deg) scale(1.05); }
.logo-mark img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}
.logo-text { line-height: 1.1; }
.logo-text > span {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* 菜单：悬浮胶囊坞 */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .08), inset 0 1px 0 rgba(255, 255, 255, .8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.nav-menu a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    white-space: nowrap;
    transition: color .22s, background .22s, box-shadow .22s;
}
.nav-menu a .nav-ic {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    opacity: .7;
    transition: opacity .22s, transform .22s;
}
.nav-menu a:hover {
    background: #eef4ff;
    color: #2563eb;
}
.nav-menu a:hover .nav-ic { opacity: 1; transform: translateY(-1px); }
.nav-menu a.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, .32), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.nav-menu a.active .nav-ic { opacity: 1; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-account {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}
.nav-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 22px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffb25e, #f97316);
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(249, 115, 22, .32), inset 0 1px 0 rgba(255, 255, 255, .28);
    transition: transform .2s, box-shadow .2s, filter .2s;
}
.nav-login-btn .nav-ic { width: 17px; height: 17px; }
.nav-login-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 10px 24px rgba(249, 115, 22, .4), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.nav-login-btn:active { transform: translateY(0); }
.nav-user-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 14px 0 6px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .05);
    transition: border-color .2s, background .2s, color .2s, transform .2s;
}
.nav-user-link:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #2563eb;
    transform: translateY(-1px);
}
.nav-avatar {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.nav-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.nav-user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0 10px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .06);
    cursor: pointer;
}
.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #0f172a;
    border-radius: 2px;
    transition: .25s;
}

/* ---------------- 底部页脚 ---------------- */
.footer {
    background: #0b1220;
    color: #94a3b8;
    padding: 72px 0 24px;
    position: relative;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, .5), transparent);
}
.footer .container {
    width: min(1200px, calc(100% - 48px));
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}
.foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}
.foot-brand .logo {
    color: #fff;
    margin-bottom: 16px;
}
.foot-brand .logo .logo-text > span {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    color: #93c5fd;
    -webkit-text-fill-color: #93c5fd;
}
.foot-brand > p {
    font-size: 14px;
    line-height: 1.85;
    color: #64748b;
    margin: 0 0 18px;
    max-width: 320px;
}
.contact-line {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 13.5px;
    color: #94a3b8;
}
.contact-line svg {
    width: 16px;
    height: 16px;
    color: #3b82f6;
    flex-shrink: 0;
}
.foot-col h5 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 18px;
}
.foot-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.foot-col ul li { margin-bottom: 12px; }
.foot-col a {
    font-size: 13.5px;
    color: #64748b;
    text-decoration: none;
    transition: color .2s;
}
.foot-col a:hover { color: #fff; }
.foot-bottom {
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: #475569;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
    .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .nav-menu { gap: 2px; padding: 5px; }
    .nav-menu a { padding: 8px 12px; font-size: 14px; }
}
@media (max-width: 920px) {
    .nav-menu { display: none; }
    .nav-menu.show {
        display: flex;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 10px;
        background: #fff;
        border: 1px solid #e8eef7;
        border-radius: 18px;
        box-shadow: 0 24px 60px rgba(15, 23, 42, .18);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .nav-menu.show a {
        padding: 12px 14px;
        border-radius: 12px;
        font-size: 15px;
    }
    .hamburger { display: inline-flex; }
}
@media (max-width: 760px) {
    .header .container,
    .footer .container { width: calc(100% - 32px); }

    .nav { height: 64px; gap: 10px; }
    .header .logo-text { display: none; }
    .nav-login-btn { height: 40px; padding: 0 16px; }

    .footer { padding: 56px 0 20px; }
    .foot-grid { grid-template-columns: 1fr; gap: 28px; }
    .foot-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
