/* header style */
.navbar {
    display: block;
    width: 100%;
    height: 200px;
    max-width: 1600px;
    margin: auto;
}
/* 顶部导航栏 */
.navbar a {
    text-decoration: none;
}
.navbar .top-menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    height: 25px;
    background: black;
    padding-right: 1px;
}
.navbar .top-menu > div {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    color: white;
    height: 100%;
    width: 80px;
}
.navbar .top-menu > div:hover {
    color: black;
    background-color: white;
}
.navbar .top-menu > div:hover .dropdown-menu {
    display: block;
}
.dropdown-menu {
    position: absolute;
    top: 25px;
    width: 100%;
    background: #e1e1e1;
    display: none;
}
.dropdown-menu a {
    display: block;
    text-align: center;
    padding: 5px 0;
    color: black;
    font-size: 12px;
    text-decoration: none;
}
.dropdown-menu a:hover {
    background-color: #a1a1a1;
}
.navbar img {
    width: 20px;
    height: 20px;
}
/* 公司logo和公司信息 */
.navbar .company {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 170px;
}
.navbar .info {
    display: flex;
    max-width: 600px;
    height: 80px;
}
.navbar .name {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-left: 5px;
    height: 100px;
}
.navbar .title {
    font-weight: bold;
    font-size:20px;
    color:black;
}
.navbar .desc {
    font-size: 15px;
    color:#636363;
}
/* 网站菜单栏 */
.navbar .menu ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.navbar .menu li {
    width: 120px;
}
.navbar .menu .dropdown {
    display: block;
    position: relative;
}
.navbar .menu li a, .navbar .menu .dropbtn {
    display: block;
    color: black;
    font-weight: bold;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}
.navbar .menu li a:hover, .navbar .menu .dropdown:hover  {
    background-color: #c1c1c1;
}
.navbar .dropdown-content {
    display: none;
    position: absolute;
    width: 100%;
    background-color: #f9f9f9;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}
.navbar .dropdown-content a {
    color: black;
    font-size: 12px;
    text-decoration: none;
    display: block;
}
.navbar .dropdown-content a:hover {
    background-color: #a1a1a1 !important;
}
.navbar .dropdown:hover .dropdown-content{
    display: block;
}
.hamburger {
    display: none;
    margin-left: 10px;
    padding: 3px;
    border-radius: 3px;
    border: 1px solid #000;    
}
.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: #000;
    margin: 4px 0;
}
.hamburger-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 150px;
    background: #222;
    z-index: 100;
}
.hamburger-menu .m_submenu {
    display: none;
    width: 100%;
    background-color: #333;
}
.hamburger-menu a {
    color: white;
    text-decoration: none;
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid #444;
    justify-content: center;
}
.submenu-active.hamburger-dropbtn::after {
    transform: rotate(90deg);
}
.hamburger-dropbtn::after {
    padding-left: 5px;
    content: '>';
    float: right;
    transition: transform 0.3s ease;
}
/* footer style */
footer {
    display: flex;
    max-width: 1600px;
    margin: auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
footer hr {
    width: 100%;
    border: none; /* 移除默认的边框 */
    border-top: 1px solid grey; /* 设置上边框为2px实线，颜色为黑色 */
}
footer .container{
    display: flex;
    height: 200px;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}
footer .logo {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 100%;
}
footer .logo img {
    width: 30px;
}
footer .logo .name a{
    font-size: 18px;
    font-weight: bold;
}
footer .logo .desc {
    font-size: 14px;
    color: #636363;
}
footer .link {
    display: flex;
    width: 50%;
    justify-content: space-between;
}
footer .link .menu {
    display: flex;
    height: 150px;
    flex-direction: column;
    justify-content: space-between;
    font-size: 14px;
}
footer a {
    text-decoration: none;
    color: black;
}
footer .beian {
    height: 50px;
    line-height: 50px;
}
footer .beian a{
    font-size: 13px;
    color:gray;
}
main {
    max-width: 1600px;
    margin: auto;
}
/* 系统提示 */
.alert { position: fixed; top: 40%; left: 50%; transform: translateX(-50%);
    z-index: 20000;
    padding: 15px 30px; background: gray; color: white; border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2); animation: slideIn 0.5s ease-out;
}
@keyframes slideIn { from { top: 40%; opacity: 0; } to { top: 40%; opacity: 1; } }
.alert.warning { background: #ff9800; }
.alert.error { background: #f44336; }
.alert.success { background: #1296db; }
/* 模态框背景 */
.modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    z-index: 19999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4); /* 半透明背景 */
}
/* 模态框内容区域 */
.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 0 15px;
}
#modal-body {
    padding-top: 35px;
    padding-bottom: 15px;
}
/* 关闭按钮样式 */
.modal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
.modal .close:hover { cursor: pointer; color: #000; }
  
button {
    padding: 3px 10px;
}
input { 
    box-sizing: border-box; 
    padding: 3px;
}
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}
@media (max-width: 767px) { 
    .navbar .menu { display: none; }
    .hamburger { display: block; }
}