/* ========================= 基础样式 ========================= */
body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Arial', sans-serif;
    height: 100%;
}

/* ========================= Header ========================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #4CAF50;
    color: white;
    padding: 10px 20px;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

header img {
    height: 50px;
    vertical-align: middle;
}

header h1 {
    display: inline;
    margin-left: 20px;
    font-size: 20px;
    flex-grow: 1;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    padding: 0 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a:focus {
    color: #dddddd;
}

/* ========================= 菜单切换按钮 ========================= */
.menu-toggle {
    display: none;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
}

/* ========================= 幻灯片区域（静态展示） ========================= */
.slider {
    padding-top: 120px; /* 避开 header 遮挡 */
    width: 100%;
}

.slide {
    width: 100%;
    height: auto;
    max-height: 1720px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* ========================= 响应式布局 ========================= */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        position: absolute;
        background: #4CAF50;
        width: 100%;
        display: none;
        top: 60px;
        left: 0;
        padding: 10px 0;
    }

    nav ul li {
        text-align: center;
        padding: 10px 0;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        cursor: pointer;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 10px;
    }

    header h1 {
        font-size: 18px;
        margin-left: 10px;
    }

    header img {
        height: 40px;
    }
}
