/* 顶部导航栏样式 */
header {
    min-height: 60px;
    background-color: #333;
    color: white;
    display: flex;
    align-items: center;
    font-size: 1.2em;
    padding: 10px 0;
}

header nav {
    width: 100%;
}

header nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

header nav ul li {
    display: inline-block;
}

header a {
    color: inherit;
    text-decoration: none;
}

/* ===== 平板端适配 ===== */
@media (max-width: 768px) {
    header {
        font-size: 1em;
        min-height: 50px;
        padding: 8px 0;
    }

    header nav ul {
        gap: 10px;
    }
}

/* ===== 手机端适配 ===== */
@media (max-width: 480px) {
    header nav ul {
        gap: 8px;
        padding: 0 5px;
    }

    header nav ul li a {
        font-size: 0.85em;
        white-space: nowrap;
    }
}
