/* 移动端头部样式 */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: #f0f9ff; /* 浅蓝色背景 */
}

.mobile-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    padding: 0 15px;
}

/* 菜单按钮样式 */
.mobile-menu-btn {
    width: 24px;
    height: 24px;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px; /* 更细的线条 */
    background: #333;
    position: relative;
    transition: all 0.3s;
}

.mobile-menu-btn span:nth-child(1) {
    top: -6px;
}

.mobile-menu-btn span:nth-child(3) {
    top: 6px;
}

/* logo样式 */
.mobile-logo {
    height: 30px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.mobile-logo img {
    height: 100%;
    width: auto;
}

/* 搜索按钮样式 */
.mobile-search-btn {
    width: 24px;
    height: 24px;
    background: url(/indexStyle/image/search.png) no-repeat center;
    background-size: 20px;
    opacity: 0.7;
}

/* 导航菜单样式 */
.mobile-nav {
    display: block;
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #fff;  /* 改为白色背景 */
    overflow-y: auto;
    transition: left 0.3s ease;
    z-index: 1000;
    visibility: visible;
}

/* 导航菜单标题区域 */
.mobile-nav:before {
    content: '导航菜单';
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    padding: 0 15px;
    background: #00428e;
    color: #fff;
    font-size: 16px;
    z-index: 2;
}

/* 关闭按钮 - 使用伪元素 */
.mobile-nav .nav-close {
    position: absolute;
    right: 15px;
    top: 17px;  /* (50px - 16px) / 2 */
    width: 16px;
    height: 16px;
    cursor: pointer;
    z-index: 3;
}

.mobile-nav .nav-close:before,
.mobile-nav .nav-close:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 1px;
    background: #fff;
}

.mobile-nav .nav-close:before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-nav .nav-close:after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* 导航列表样式 */
.mobile-nav ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.mobile-nav > ul > li {
    border-bottom: 1px solid #eee;  /* 改为浅灰色边框 */
}

.mobile-nav > ul > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    color: #333;  /* 改为深色文字 */
    font-size: 14px;
    text-decoration: none;
}

/* 箭头样式 */
.mobile-nav .arrow {
    width: 20px;
    height: 20px;
    position: relative;
}

.mobile-nav .arrow:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-right: 1px solid #999;  /* 改为灰色箭头 */
    border-bottom: 1px solid #999;
    transform: translate(-75%, -50%) rotate(45deg);
    transition: transform 0.3s;
}

/* 展开状态的箭头 */
.mobile-nav .arrow.active:after {
    transform: translate(-75%, -50%) rotate(-135deg);
}

/* 激活状态的菜单项 */
.mobile-nav > ul > li.active > a {
    background: rgba(255,255,255,0.1);
}

/* 展开状态的子菜单 */
.mobile-nav .sub-nav.active {
    display: block;
}

/* 二级菜单样式 */
.mobile-nav .sub-nav {
    display: none;
    background: #f5f5f5;  /* 改为浅灰色背景 */
}

.mobile-nav .sub-nav li a {
    display: block;
    padding: 12px 15px 12px 30px;
    color: #666;  /* 改为灰色文字 */
    font-size: 13px;
    text-decoration: none;
}

/* 响应式处理 */
@media screen and (max-width: 980px) {
    #header {
        display: none;
    }
    
    .mobile-header {
        display: block;
    }
    
    .mobile-nav {
        display: block;
    }
    
    /* 内容区域上边距 */
    .content {
        margin-top: 50px;
    }
    
    /* 禁止body滚动 */
    body.no-scroll {
        overflow: hidden;
    }
    
    .normal-list li .time {
        margin-left: 0;  /* 移除左边距 */
    }
    
    /* 如果需要调整其他相关样式 */
    .normal-list li {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .normal-list li a {
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* 友情链接样式调整 */
    .top-container .friend-links li {
        width: 100%;  /* 设置为全宽 */
        margin-right: 0;  /* 移除右边距 */
        margin-bottom: 10px;  /* 添加底部间距 */
    }
    
    .top-container .friend-links li:last-child {
        margin-bottom: 0;  /* 最后一个元素不需要底部间距 */
    }
    
    .top-container .friend-links li img {
        width: 100%;  /* 图片宽度适应容器 */
        height: auto;  /* 高度自适应 */
    }
}

/* 移动端搜索框 */
.mobile-search {
    display: none;
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    padding: 10px 15px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 998;
}

.mobile-search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.mobile-search input {
    flex: 1;
    height: 36px;
    padding: 0 80px 0 15px;
    border: 1px solid #eee;
    border-radius: 18px;
    font-size: 14px;
}

.mobile-search-submit {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    height: 36px;
    padding: 0 15px;
    border: none;
    background: #00428e;
    color: #fff;
    border-radius: 0 18px 18px 0;
    font-size: 14px;
}

.mobile-search-close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    cursor: pointer;
}

.mobile-search-close:before,
.mobile-search-close:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 1px;
    background: #999;
}

.mobile-search-close:before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-search-close:after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* 搜索框显示动画 */
.mobile-search.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
} 