/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo栏样式 */
.logo-bar {
    height: 80px;
    background-color: white;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo2 {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
	float: right;
}

.logo2:hover {
    transform: scale(1.05);
}

/* 导航菜单样式 */
.main-nav {
    background-color: #001D31;
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    width: 100%;
    justify-content: space-between;
}

.nav-list li {
    position: relative;
}

.nav-list li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s ease;
    border-radius: 4px;
}

.nav-list li a:hover {
    background-color: #004080;
}

/* 下拉菜单样式 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-radius: 4px;
    overflow: hidden;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 16px;
}

.dropdown-menu li a:hover {
    background-color: #f0f0f0;
    color: #003366;
}

/* 手机版菜单样式 */
@media (max-width: 768px) {
    /* 隐藏桌面菜单 */
    .desktop-menu {
        display: none;
    }
    
    /* 显示手机菜单容器 */
    .mobile-menu-container {
        display: block;
        position: relative;
    }
    
    /* 菜单按钮样式 */
    .mobile-menu-toggle {
        background-color: #001D31;
        color: white;
        border: none;
        padding: 12px 20px;
        font-size: 16px;
        cursor: pointer;
        width: 100%;
        text-align: left;
        border-radius: 4px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-menu-toggle i {
        transition: transform 0.3s ease;
    }
    
    .mobile-menu-toggle.active i {
        transform: rotate(180deg);
    }
    
    /* 手机下拉菜单 */
    .mobile-dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        z-index: 100;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        border-radius: 0 0 4px 4px;
        overflow: hidden;
    }
    
    .mobile-dropdown-menu.active {
        display: block;
    }
    
    .mobile-dropdown-menu li {
        border-bottom: 1px solid #f0f0f0;
    }
    
    .mobile-dropdown-menu li:last-child {
        border-bottom: none;
    }
    
    .mobile-dropdown-menu a {
        display: block;
        padding: 12px 20px;
        color: #333;
        text-decoration: none;
    }
    
    .mobile-dropdown-menu a:hover {
        background-color: #f5f5f5;
    }
    
    /* 手机版子菜单 */
    .mobile-submenu {
        display: none;
        padding-left: 20px;
        background-color: #f9f9f9;
    }
    
    .mobile-submenu.active {
        display: block;
    }
    
    .mobile-dropdown-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-dropdown-toggle i {
        font-size: 12px;
        transition: transform 0.3s ease;
    }
    
    .mobile-dropdown.active .mobile-dropdown-toggle i {
        transform: rotate(90deg);
    }
}

/* 桌面版隐藏手机菜单 */
@media (min-width: 769px) {
    .mobile-menu-container {
        display: none;
    }
}



/* 图片展示区样式 */
.gallery {
    width: 100%;
}

.gallery-item {
    width: 100%;
    margin-bottom: 5px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.02);
}

/* 链接区样式 */
.links-section {
    background-color: #E5E8EA;
    padding: 30px 0;
    text-align: center;
}

.links-group {
    margin: 15px 0;
    color: #001D31;
    font-size: 18px;
    font-weight: bold;
}

.links-group a {
    color: #004060;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.links-group a:hover {
    color: #004060;
    text-decoration: underline;
}

/* 页脚样式 */
.footer {
    background-color: #BDCBD2;
    padding: 25px 0;
    text-align: center;
}

.footer-item {
    margin: 10px 0;
	color: #001D31;
    font-size: 14px;
}
.beian {
    height: 15px;
	}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-list {
        flex-wrap: wrap;
        height: auto;
    }
    
    .nav-list li {
        width: 50%;
        text-align: center;
        margin: 5px 0;
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        width: 100%;
    }
    
    .dropdown:hover .dropdown-menu {
        display: block;
    }
    
    .gallery-item {
        margin-bottom: 2px;
    }
}

@media (max-width: 480px) {
    .logo-bar, .main-nav {
        height: 60px;
    }
    
    .logo {
        height: 45px;
    }
	
	    .logo2 {
        height: 45px;
    }
    
    .nav-list li {
        width: 100%;
    }
}


/* 工具栏样式 */
.toolbar-section {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.toolbar-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 默认6列 */
    gap: 20px;
    margin-top: 20px;
}

.toolbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.toolbar-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,51,102,0.15);
}

.toolbar-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.toolbar-label {
    padding: 10px;
    color: #333;
    font-size: 14px;
    text-align: center;
    width: 100%;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .toolbar-grid {
        grid-template-columns: repeat(4, 1fr); /* 中等屏幕4列 */
    }
}

@media (max-width: 768px) {
    .toolbar-grid {
        grid-template-columns: repeat(3, 1fr); /* 平板3列 */
    }
}

@media (max-width: 480px) {
    .toolbar-grid {
        grid-template-columns: repeat(2, 1fr); /* 手机2列 */
        gap: 15px;
    }
    
    .toolbar-img {
        height: 100px;
    }
}