﻿/* ==============================
   基础样式重置
   ============================== */
body {
	background-image: url(../images/bg.jpg);
	background-position: center;
        font-size: 14px;
	margin: 0px;
        border-radius: 5px;
        font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji";

}
a {
color: #333;
text-decoration: none;
}

/* ==============================
   导航栏样式
   ============================== */
/* 顶部背景图 */
.top-bg {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.top-bg img {
    width: 100%;
    height: auto;
    max-height: 14px;
    object-fit: cover;
}

/* 头部容器 */
.header-container {
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
    position: relative;
}

.header-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 0;
}

/* Logo区域 */
.logo-section {
    flex: 0 0 200px;
    max-width: 200px;
    padding: 0 10px;
}

.banner-img {
    width: 133px;
    height: auto;
}

/* 顶部自定义HTML区域 */
.top-html-section {
    flex: 1;
    padding: 0;
    margin-top: 10px;
    min-width: 200px;
}

/* 注册区域 */
.reg-section {
    flex: 0 0 280px;
    max-width: 280px;
    padding: 0 10px;
    text-align: right;
}

.reg-btn {
    margin-bottom: 5px;
}

.reg-section img {
    max-width: 100%;
    height: auto;
}

/* 自定义汉堡菜单按钮 */
.hamburger-btn {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    /*background: linear-gradient(90deg, #0c2453, #1a3a7a);*/
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 100;
    padding: 8px;
    outline: none;
}

/* 自定义汉堡图标样式 */
.hamburger-icon {
    display: block;
    width: 24px;
    height: 24px;
    position: relative;
    transition: all 0.3s ease;
}

/* 汉堡图标三条横线 */
.hamburger-icon::before,
.hamburger-icon::after,
.hamburger-icon > span {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #000;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-icon > span { /* 中间横线 */
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-icon::before { /* 上横线 */
    top: 4px;
}

.hamburger-icon::after { /* 下横线 */
    bottom: 4px;
}

/* 激活状态 - 变成关闭叉号 */
.hamburger-icon.active > span {
    opacity: 0; /* 隐藏中间横线 */
}

.hamburger-icon.active::before {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger-icon.active::after {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* 导航容器 */
.nav-container {
    width: 100%;
    background: linear-gradient(90deg, #0c2453, #1a3a7a);
    border-radius: 0px;
    margin-top: 5px;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    padding: 0 5px;
}

.nav-link {
    display: block;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    color: #FFFFFF;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.nav-link:hover {
    opacity: 0.9;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0px;
}

/* 高防空间特殊样式 */
.high-defense {
    color: #FF4500 !important;
}

/* 间隔区域 */
#spacer {
    width: 100%;
    max-width: 950px;
    height: 5px;
    line-height: 5px;
    margin: 0 auto;
}

/* ==============================
   响应式适配 - 导航栏
   ============================== */
/* 平板/移动端 */
@media screen and (max-width: 768px) {
    /* 汉堡菜单显示 */
    .hamburger-btn {
        display: block;
    }

    /* 导航默认隐藏 */
    .nav-container {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(180deg, #0c2453, #1a3a7a);
        border-radius: 0px;
        z-index: 99;
        display: none;
    }

    /* 激活时显示导航 */
    .nav-container.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
    }

    .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link {
        padding: 12px 20px;
        text-align: left;
    }

    /* 头部内容堆叠 */
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo-section,
    .top-html-section,
    .reg-section {        
        flex: 100%;
        max-width: 100%;
        text-align: left;
        margin-bottom: 10px;
        padding: 0 15px;
    }
    

    .reg-section {
        text-align: left;
    }
}

/* 小屏手机适配 */
@media screen and (max-width: 480px) {
    .nav-link {
        font-size: 13px;
        padding: 10px 15px;
    }

    .logo-section img {
        width: 100px;
    }

    .top-bg img {
        max-height: 10px;
    }
}

/* 大屏PC适配 */
@media screen and (min-width: 1024px) {
    .header-container {
        max-width: 950px;
    }

    .nav-list {
        justify-content: space-around;
    }

    .nav-link {
        padding: 10px 20px;
    }
}