﻿/* 简单的全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif, Arial,'Microsoft YaHei UI',Tahoma;
    text-align: center;
    width: 1000px;
    margin: 0 auto;
    padding: 0;
    font-size: 120%
}

header {
    width: 100%;
    text-align: left;
    position: relative
}

    header .logo {
        height: 60px;
        width: 220px;
        border: none;
        margin: 20px 0 20px 10px;
    }

/* 导航栏样式 */
nav {
    background-color: #007BC7;
    color: white;
    padding: 10px 20px;
    height: 50px;
    font-size: 120%;
}

    nav ul {
        list-style: none;
        display: flex;
        justify-content: space-between;
        padding: 0px;
        align-items: center;
    }

        nav ul li {
            cursor: pointer;
        }

            nav ul li a {
                color: white;
                text-decoration: none;
            }

                nav ul li a:hover {
                    color: greenyellow;
                    font-weight: bold;
                    text-decoration: underline;
                }

/* 横幅样式 */
header .banner {
    background-image: url('/image/ck.png'); /* 这里需要替换为实际横幅图片路径 */
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #007BC7;
}

main {
    width: 100%;
}

section {
    margin: 20px 0;
    padding: 0;
}

    section h2 {
        text-align: left;
        margin-bottom: 30px;
    }

    section p {
        margin-bottom: 10px;
    }

article {
    background-color: #fff; /* 文章背景设置为白色 */
    border-radius: 8px; /* 文章区域添加圆角边框 */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* 添加轻微的阴影效果，增加立体感 */
    padding: 10px; /* 文章内部添加内边距 */
    line-height: 1.8; /* 设置行间距为正常值，通常 1.6 左右较合适 */
    width: 100%;
}

    article p {
        text-indent: 2em; /* 段首空 2 个字符 */
        text-align: left;
        font-size: 115%;
        margin-bottom: 1.5em; /* 段落之间的间距设置为字体大小的 150% */
        margin-top: 0; /* 去除段落顶部默认的外边距 */
    }

        article p:last-child {
            margin-bottom: 0; /* 最后一段不设置底部外边距 */
        }

footer {
    margin: 10px auto;
}

    footer a {
        color: darkred
    }

    footer p {
        line-height: 120%;
        text-align: center;
        padding: 0px;
        margin: 10px;
    }



.image-gallery {
    display: none;
    /* display: flex;*/
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

    .image-gallery img {
        width: 300px;
        height: 200px;
        object-fit: cover;
    }
