/**
 * navbar.css - 顶部导航栏样式
 */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    box-shadow: 0 2px 12px rgba(30, 136, 229, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-content {
    width: 100%;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* 为中间链接区的绝对定位提供参照 */
    position: relative;
}
/* 中间快捷跳转链接区：相对父容器绝对定位居中，不影响左右 space-between 布局 */
.nav-center-links {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: clamp(8px, 2vw, 24px);
    pointer-events: none;
}
.nav-center-link {
    /* 自适应文字大小：视口越宽字号越大，范围 12px~16px */
    font-size: clamp(12px, 2.6vw, 16px);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 8px;
    pointer-events: auto;
    transition: background 0.2s, color 0.2s;
}
.nav-center-link:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}
/* 小屏隐藏中间链接区，避免与 logo/设置按钮重叠 */
@media (max-width: 640px) {
    .nav-center-links {
        display: none;
    }
}
.logo-area {
    display: flex;
    align-items: center;
}
.site-name {
    font-size: calc(20px * var(--font-scale));
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}
.site-name:hover {
    color: #a8d8ff;
    text-decoration: none;
}
.nav-actions {
    display: flex;
    align-items: center;
}
.settings-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.3s ease;
}
.settings-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(45deg);
}
