/* ========== 移动端头部容器 ========== */
.mobile-header-only {
    width: 100%;
    background-color: #7c1378;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 顶部栏 */
.mobile-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    height: 60px;
    background-color: #7c1378;
    position: relative;
    z-index: 1002;
}

/* Logo样式 */
.logo-container {
    display: flex;
    align-items: center;
}

.mobile-logo {
    height: 36px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* 使logo变为白色 */
}

/* 汉堡菜单按钮 */
.hamburger-menu {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.hamburger-menu:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hamburger-menu:active {
    transform: scale(0.95);
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* 汉堡菜单动画 - 打开状态（变成X） */
.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* 移动端导航菜单 */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: #721170;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 1001;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
    padding-top: 60px;
    visibility: hidden;
}

.mobile-nav.open {
    left: 0;
    visibility: visible;
}

/* 导航列表 */
.mobile-nav-list {
    list-style: none;
    padding: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-nav-item:last-child {
    border-bottom: none;
}

/* 导航链接 */
.mobile-nav-link {
    display: block;
    padding: 18px 24px;
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:active,
.mobile-nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav-link span {
    display: block;
    font-size: 15px;
}

/* 菜单遮罩层 */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* ========== 页脚样式 ========== */
/* 移动端适配 */
@media screen and (max-width: 768px) {
	.nav_img{display: none;}
	
    .foot {
        height: auto; /* 改为自适应高度 */
        min-height: 150px; /* 最小高度确保内容显示 */
        background-size: cover; /* 背景图覆盖方式 */
        padding: 30px 0 20px; /* 上下内边距 */
    }
    
    .foot_nr {
        width: 90%; /* 移动端更宽的内边距 */
        max-width: 500px; /* 最大宽度限制 */
        padding-top: 0; /* 重置顶部内边距 */
        margin: 0 auto; /* 居中 */
    }
    
    .foot_nr p {
        font-size: 14px; /* 使用固定像素，移动端更稳定 */
        line-height: 1.5; /* 更好的行高比例 */
        letter-spacing: 0.5px; /* 减小字间距 */
        margin-bottom: 15px; /* 段落间距 */
        text-align: center; /* 居中显示 */
    }
    
    /* 针对小屏幕进一步优化 */
    @media screen and (max-width: 480px) {
        .foot {
            min-height: 120px;
            padding: 20px 0 15px;
        }
        
        .foot_nr p {
            font-size: 12px;
            line-height: 1.4;
            margin-bottom: 12px;
        }
    }
}

/* 平板设备优化 */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .foot {
        height: 70px; /* 固定高度 */
    }
    
    .foot_nr {
        width: 85%;
        padding-top: 15px;
    }
    
    .foot_nr p {
        font-size: 14px;
        line-height: 1.4;
    }
}

/* ========== 响应式设计 ========== */
/* 大屏幕手机 */
@media (max-width: 768px) and (min-width: 481px) {
    .mobile-nav {
        width: 100%;
    }
    
    .mobile-nav-link {
        padding: 18px 28px;
        font-size: 17px;
    }
}

/* 小屏幕手机 */
@media (max-width: 480px) {
    .mobile-top-bar {
        padding: 10px 14px;
        height: 56px;
    }
    
    .mobile-logo {
        height: 32px;
        max-width: 260px;
    }
    
    .hamburger-menu {
        width: 36px;
        height: 36px;
    }
    
    .mobile-nav {
        padding-top: 56px;
        width: 100%;
    }
    
    .mobile-nav-link {
        padding: 16px 20px;
        font-size: 15px;
    }
}

/* 横屏模式 */
@media (max-width: 768px) and (orientation: landscape) {
    .mobile-nav {
        padding-top: 60px;
    }
    
    .mobile-nav-link {
        padding: 14px 24px;
    }
}

/* phone隐藏此头部 */
@media (max-width: 769px) {
    .top {
        display: none;
    }
	.tops{
		display: none;
	}
}

/* 平板和桌面端隐藏此头部 */
@media (min-width: 769px) {
    .mobile-header-only {
        display: none;
    }
}