/* Bilibili 风格导航栏 */
.bili-header {
    position: sticky;
    top: 0;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    height: 56px;
    z-index: 1000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.header-container {
    max-width: 1320px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-link {
    color: #18191c;
    font-size: 14px;
    text-decoration: none;
    padding: 0 12px;
    height: 56px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.header-link:hover {
    color: #00a1d6;
}

.home-link {
    font-weight: bold;
}

.header-divider {
    width: 1px;
    height: 16px;
    background-color: #e3e5e7;
    margin: 0 8px;
}

.header-right {
    color: #18191c;
    font-size: 14px;
}

.current-page {
    background-color: #f6f7f8;
    border-radius: 8px;
    padding: 6px 12px;
    font-weight: 500;
}

/* 为移动设备调整导航栏样式 */
@media (max-width: 768px) {
    .header-container {
        padding: 0 10px;
    }
    
    .header-link {
        padding: 0 8px;
        font-size: 13px;
    }
    
    .header-divider {
        margin: 0 4px;
    }
}

/* 竖屏模式样式 - 只显示图标 */
@media (orientation: portrait) {
    .nav-text {
        display: none;
    }
    
    .header-link {
        padding: 0 10px;
        font-size: 16px; /* 增大图标尺寸 */
    }
    
    .header-link i {
        font-size: 18px; /* 确保图标明显 */
    }
    
    .current-page {
        font-size: 12px;
        padding: 4px 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
    }
}

/* 横屏模式样式 - 显示图标和文字 */
@media (orientation: landscape) {
    .nav-text {
        display: inline;
        margin-left: 4px;
    }
}

/* 确保其他内容在导航栏下方正确显示 */
.hero-section, .container {
    margin-top: 10px;
}