/* ============================================================
 *  BusLens 共享导航栏样式
 *  白色主题 + 简洁按钮 + Tab 式激活态
 * ============================================================ */

body {
    margin: 0;
    padding: 0;
}

.navbar {
    background: #ffffff;
    color: #1a1a2e;
    padding: 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
    border-bottom: 1px solid #ebeef3;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
}

.navbar .brand {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #1a1a2e;
    letter-spacing: 0.5px;
}

.navbar .brand .brand-logo {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
}

.navbar .brand span {
    font-size: 26px;
}

.navbar .brand .tagline {
    font-size: 12px;
    font-weight: 400;
    color: #8b95a7;
    letter-spacing: 0;
}

.navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
}

.navbar .nav-links a {
    color: #5a6478;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.navbar .nav-links a:hover {
    background: #f0f2f5;
    color: #1a1a2e;
}

.navbar .nav-links a.active {
    background: #e8f0fe;
    color: #1a73e8;
    font-weight: 600;
}

.navbar .nav-links a.about-glow {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 152, 0, 0.2));
    color: #b8860b;
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-bottom: none;
    padding: 6px 16px;
    font-weight: 700;
    animation: aboutPulse 2s ease-in-out infinite;
    position: relative;
    transition: all 0.3s;
    border-radius: 8px;
}

@keyframes aboutPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 0 0 6px rgba(255, 215, 0, 0); }
}

.navbar .nav-links a.about-glow:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 152, 0, 0.3));
}

.navbar .user-area {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.navbar .user-area .user-name {
    color: #5a6478;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
}

.navbar .user-area .btn-logout {
    background: #f0f2f5;
    color: #5a6478;
    border: 1px solid #e0e4eb;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.navbar .user-area .btn-logout:hover {
    background: #e0e4eb;
    color: #1a1a2e;
}

/* 汉堡菜单按钮（默认隐藏，移动端显示） */
.navbar .nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #1a1a2e;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}

/* 响应式 */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 14px;
        position: relative;
    }
    .navbar .brand {
        font-size: 17px;
    }
    .navbar .brand .tagline {
        display: none;
    }
    .navbar .nav-toggle {
        display: block;
    }
    .navbar .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        border-top: 1px solid #ebeef3;
        padding: 6px 0;
        margin-top: 6px;
        flex-wrap: wrap;
        overflow: visible;
    }
    .navbar .nav-links.open {
        display: flex;
    }
    .navbar .nav-links a {
        padding: 10px 20px;
        font-size: 14px;
        border-radius: 0;
        border-bottom: 1px solid #f2f4f8;
        white-space: normal;
        text-align: left;
    }
    .navbar .nav-links a.active {
        background: #e8f0fe;
    }
    .navbar .user-area .user-name {
        display: none;
    }
}

/* 状态消息提示 */
.status-msg {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 99999;
}
.status-msg.success {
    background: #1a73e8;
    color: white;
}
.status-msg.error {
    background: #e53935;
    color: white;
}
.status-msg.loading {
    background: #5a6478;
    color: white;
}

/* ============================================================
 *  全站共享页脚（版权 + 友情链接）
 * ============================================================ */
.site-footer {
    text-align: center;
    padding: 24px 16px 20px;
    border-top: 1px solid rgba(128, 128, 128, 0.15);
    color: rgba(90, 100, 120, 0.75);
    font-size: 13px;
    line-height: 1.9;
    flex-shrink: 0;
}
.site-footer a {
    color: #1a73e8;
    text-decoration: none;
    transition: color 0.2s;
}
.site-footer a:hover {
    color: #0d47a1;
    text-decoration: underline;
}
.site-footer .footer-links {
    margin-top: 4px;
}

/* ============================================================
 *  全站图片预览灯箱（网页内预览，不跳转图床）
 * ============================================================ */
.buslens-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 24px;
}
.buslens-lightbox.show {
    display: flex;
}
.buslens-lightbox .lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 2;
}
.buslens-lightbox .lightbox-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.08);
}
.buslens-lightbox .lightbox-img {
    max-width: 92vw;
    max-height: 82vh;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6);
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}
.buslens-lightbox .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 2;
}
.buslens-lightbox .lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.35);
}
.buslens-lightbox .lightbox-prev {
    left: 16px;
}
.buslens-lightbox .lightbox-next {
    right: 16px;
}
.buslens-lightbox .lightbox-counter {
    color: #fff;
    font-size: 14px;
    margin-top: 16px;
    opacity: 0.85;
}
.buslens-lightbox .lightbox-caption {
    color: #ddd;
    font-size: 13px;
    margin-top: 6px;
    text-align: center;
    max-width: 80vw;
    word-break: break-all;
}
@media (max-width: 480px) {
    .buslens-lightbox {
        padding: 12px;
    }
    .buslens-lightbox .lightbox-img {
        max-width: 96vw;
        max-height: 74vh;
    }
    .buslens-lightbox .lightbox-prev {
        left: 8px;
    }
    .buslens-lightbox .lightbox-next {
        right: 8px;
    }
}
