/* 移动端样式表 */

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 25px;
    z-index: 1000;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #0056b3;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* 响应式设计 - 媒体查询 */
@media screen and (max-width: 1300px) {
    body {
        min-width: 100%;
    }
    
    .container {
        width: 100%;
        padding: 0 15px;
    }
    
    /* 确保在小屏幕上logo和搜索框有合适的间距 */
    .header .container {
        padding: 0 15px;
    }
    
    /* 在小屏幕上移除负边距 */
    .logo {
        margin-left: 0;
    }
    
    .search-box {
        margin-right: 0;
    }
}

@media screen and (max-width: 768px) {
    /* 顶部导航响应式 */
    .header {
        height: auto;
    }
    
    .header .container {
        flex-direction: column;
        padding: 10px 15px;
    }
    
    .logo-container {
        margin-bottom: 10px;
        text-align: center;
    }
    
    .logo {
        height: 50px; /* 减小logo尺寸 */
    }
    
    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        top: 15px;
        right: 15px;
    }
    
    .search-box {
        margin-top: 10px;
        width: 100%;
    }
    
    /* 主导航响应式 */
    .main-nav {
        height: auto;
    }
    
    .main-nav .container {
        padding: 0;
    }
    
    .nav-list {
        flex-direction: column;
        line-height: normal;
        display: none; /* 默认隐藏导航 */
    }
    
    .nav-list.active {
        display: flex; /* 点击后显示 */
    }
    
    .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 10px 0;
    }
    
    .nav-item a {
        justify-content: flex-start;
        padding-left: 15px;
    }
    
    .nav-item a i {
        width: 16px;
        height: 16px;
    }
    
    /* 移动端下拉菜单 */
    .dropdown-menu {
        position: static;
        width: 100%;
        display: none;
        box-shadow: none;
        border-radius: 0;
        background-color: #3a85d0 !important;
    }
    
    .dropdown-menu li {
        padding-left: 30px;
    }
    
    /* 面包屑导航响应式 */
    .breadcrumb-container {
        padding: 8px 0;
    }
    
    .breadcrumb {
        font-size: 12px;
        white-space: nowrap;
        overflow-x: auto;
    }
    
    /* 轮播图响应式 */
    .banner-container {
        height: 200px; /* 减小高度 */
    }
    
    /* 内容区域响应式 */
    .content-container {
        padding: 15px 0;
    }
    
    .section-header {
        padding: 10px 15px;
    }
    
    .section-header h2 {
        font-size: 18px;
    }
    
    .section-content {
        padding: 15px;
    }
    
    .research-item {
        width: calc(50% - 20px);
    }
}

@media screen and (max-width: 480px) {
    /* 更小屏幕的调整 */
    .research-item {
        width: 100%;
        margin: 0 0 15px;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-item .date {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-header .more {
        margin-top: 5px;
    }
    
    /* 底部响应式 */
    .footer {
        padding: 20px 0;
        font-size: 12px;
    }
}

/* 添加触摸设备优化 */
@media (hover: none) {
    .nav-item:hover .dropdown-menu {
        display: none; /* 触摸设备上禁用悬停显示下拉菜单 */
    }
    
    .nav-item.touch-active .dropdown-menu {
        display: block; /* 通过JavaScript添加touch-active类来显示 */
    }
}