/* ===== 顶部导航栏 · 公共样式 ===== */
.topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    height: 56px;
    padding: 0 24px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}
.topbar .logo {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #0f172a;
    text-decoration: none;
    white-space: nowrap;
}
.topbar .logo span { color: #1a7a72; }
.topbar .nav {
    display: flex;
    gap: 4px;
    margin-left: 32px;
}
.topbar .nav a {
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}
.topbar .nav a:hover { background: #f1f5f9; color: #0f172a; }
.topbar .nav a.active { background: rgba(26,122,114,0.08); color: #1a7a72; font-weight: 600; }
.topbar .right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}
.topbar .right a {
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    white-space: nowrap;
}
.topbar .right a:hover { color: #1a7a72; }

/* 移动端适配 */
@media (max-width: 768px) {
    .topbar .nav { display: none; }
}
@media (max-width: 600px) {
    .topbar {
        flex-wrap: wrap;
        height: auto;
        padding: 8px 12px;
        gap: 4px;
    }
    .topbar .logo { font-size: 15px; }
    .topbar .right { margin-left: 0; }
    .topbar .right a { font-size: 12px; }
}
