* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    background: #f0f8ff; /* 浅海蓝色背景 */
    color: #333;
}

/* 海洋主题导航栏 */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: #1a3657; /* 深海蓝色 */
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.logo {
    /* border: 1px solid red; */
    display: flex;
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.logo img{
    border: 1px solid white;
    background: white;
    margin-right: 0.5rem;
}

.nav-menu {
    color: white;
    display: flex;
    gap: 2rem;
}

.nav-menu li {
    list-style: none;
    position: relative;
}

.nav-menu a {
    color: #c7e0ff;
    text-decoration: none;
    padding: 1rem 1rem;
    transition: all 0.3s;/*实现平滑动画效果*/
}

.nav-menu a:hover{
    color: #fff;
    background: #0077be; /* 海洋蓝 */
    border-radius: 4px;
}

.nav-menu span{
    color: #00a2ff;
    font-weight: bold;
    padding: 1rem 0.5rem;
}

/* 下拉菜单 */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 160px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 4px;
    height: 8rem;
    overflow: auto;
    /* transition: max-height 0.3s ease-out; */
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content span{
    color: #1a3657;
    display: block;
    padding: 0.8rem 1rem;
    background: #e6f3ff;
}

.dropdown-content a {
    color: #1a3657;
    display: block;
    padding: 0.8rem 1rem;
}

.dropdown-content a:hover {
    background: #e6f3ff;
    color: black;
    font-weight: bold;
}

.contact {
    color: #c7e0ff;
}

/* 新增汉堡菜单样式 */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}
/* ----以上内容不再改 */

/* 以下是通用部件 */

/* 加框框 */
.frame {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,119,190,0.1);
    border: 1px solid #c7e0ff;
}

/* 按钮 */
.button-group a{
    display: inline-block;
    border: 1px solid gary;
    border-radius: 8px;
    text-align: center;
    padding: 5px 10px;/* 高度+宽度 */
    margin-bottom: 5px;
    text-decoration: none;
    color: black;
    background: cornflowerblue;
}
.button-group a:hover{
    background: cyan;
    color: gray;
}

/* 文字居中 */
.center{
    text-align: center;
}


/* TYPE 1 分列式 */
/* a<main class="big-page"> */
.big-page {
    /* border: 1px solid black; */
    margin-top: 80px;
    padding: 2rem 5%;
}
/* b<div class="column-container"> */
.column-container{
    /* border:1px solid black; */
    display: flex;
    gap: 2rem;
}
/* c<div class="column-wide"> */
.column-wide {
    /* border:1px solid black; */
    flex: 1;
}
/* index.html专属设置 */
.column-wide a{
    text-decoration: none;
}
.column-wide li a{
    color: black;
}
.column-wide li a:hover{
    color: #0077be;
    font-weight: bold;
}
.column-wide h2 {
    color: #1a3657;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0077be;
}
.column-wide h2 a{
    color: #1a3657;
}
.column-wide h2 a:hover{
    color:#0077be;
}
/* d<div class="frame"> */
/* e正文 */



/* 正文 */
.content{
    padding: 2rem;
    margin: auto 15%;
}
.content h1{
    text-align: center;
    border-bottom: 2px solid steelblue;
    margin-bottom: 2rem;
}
/* .content p{
    text-align: center;
    color: #333;
    font-size: 1rem;
} */

/* TYPE 2 卡片式 */


/* 海洋主题语录 */
.quote {
    /* border: 1px solid black; */
    text-align: center;
    padding: 2rem;
    color: #1a3657;
    font-style: italic;
    background: #e6f3ff;
    margin-top: auto;
    border-top: 3px solid #0077be;
}

/* 表格 */
table{
    border-collapse: collapse;
    width: 100%;
}
th,td{
    border:1px solid black;
    text-align: center;
    padding: 8px;
}

/* 正文-中间显示 */
/* .article{
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
} */

/* 响应式设计 */
@media (max-width: 768px) {
    .big-page {
        flex-direction: column;
    }

/* 新增汉堡菜单样式 */
    .hamburger {
        display: block;
    }
    
    .nav-menu {
        display: none;/* 移动端隐藏导航菜单 */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1a3657;
        flex-direction: column;
        padding: 1rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
/* 正文 */
    .column-container{
        flex-direction: column;
    }
    .content{
        padding: 1.5rem;
        margin: auto;
    }
}
