/* 基础样式 - base.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: #333;
}

a:hover {
    color: #1a5fa0;
}

ul, ol {
    list-style: none;
}

img {
    border: 0;
    vertical-align: middle;
}

.wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 覆盖wrap类的样式，用于flex布局 */
.page_content.wrap,
#content.wrap {
    width: 100% !important;
    max-width: 1000px !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    padding: 20px 260px !important;
    min-height: 600px !important;
    margin: 0 auto !important;
}

/* 侧边栏样式 */
#aside {
    width: 200px !important;
    overflow: hidden;
    margin-right: 30px !important;
    float: left;
    border-top: 7px solid #005A84;
    box-shadow: 1px 0 2px 0px rgba(0,0,0,0.05);
    flex-shrink: 0 !important;
    flex-basis: 200px !important;
    order: 0 !important;
}

/* 主内容区域样式 */
.main {
    flex: 1 !important;
    min-width: 0 !important;
}

/* 清除浮动 */
.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

/* ========== 头部条：Logo + 搜索 + 登录注册 ========== */
.top_bar {
    height: 80px;
    background-color: #fff;
    border-bottom: 1px solid #e8e8e8;
}

.top_bar .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

#logo {
    flex-shrink: 0;
}

#logo a {
    display: flex;
    align-items: center;
}

#logo img {
    height: 80px;
}

#logo p {
    display: none;
}

/* 右侧搜索+登录注册 */
.hd_right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top_search {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    height: 36px;
}

.top_search_text {
    width: 240px;
    height: 36px;
    padding: 0 12px;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
    background: #fff;
}

.top_search_text::placeholder {
    color: #aaa;
}

.top_search_btn {
    height: 36px;
    padding: 0 16px;
    background: #1a3a6b;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    transition: background 0.2s;
}

.top_search_btn:hover {
    background: #254d8e;
}

.auth_links {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    white-space: nowrap;
}

.auth_links a {
    color: #444;
    transition: color 0.2s;
}

.auth_links a:hover {
    color: #1a3a6b;
}

.auth_links .sep {
    color: #ccc;
}

/* ========== 导航栏 ========== */
.top_nav {
    background: #1a3a6b;
    position: sticky;
    top: 0;
    z-index: 100;
}

.top_nav .wrap {
    display: flex;
    align-items: center;
    height: 50px;
    position: relative;
}

.top_nav_box {
    display: flex;
    align-items: center;
    width: 100%;
}

/* 导航菜单 */
#nav {
    width: 100%;
}

.nav_ul {
    display: flex;
    height: 50px;
    align-items: stretch;
}

.nav_ul > li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 1;
}

.nav_ul > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    height: 50px;
    line-height: 50px;
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    letter-spacing: 1px;
    background: transparent;
    white-space: nowrap;
    transition: background 0.2s;
}

.nav_ul > li:hover,
.nav_ul > li.active {
    background: #254d8e;
}

.nav_ul > li.active > a {
}

.nav_ul > li:hover > a,
.nav_ul > li.active > a {
    color: #fff;
}

.nav_ul > li .arrow {
    font-size: 10px;
    opacity: 0.7;
}

.nav_ul > li:hover .arrow {
    opacity: 1;
}

.nav_ul > li > ul {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    min-width: 140px;
    background: #fff;
    border: 1px solid #ddd;
    border-top: 3px solid #1a3a6b;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    z-index: 999;
}

.nav_ul > li:hover > ul {
    display: block;
}

.nav_ul > li > ul > li > a {
    display: block;
    padding: 9px 14px;
    color: #333;
    white-space: nowrap;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.nav_ul > li > ul > li:last-child > a {
    border-bottom: none;
}

.nav_ul > li > ul > li > a:hover {
    background: #f0f4fa;
    color: #1a3a6b;
}

.nav_ul > li > ul > li:hover {
    background: #f0f4fa;
}

.nav_ul > li > ul > li:hover a {
    color: #1a3a6b;
}

/* ========== 尾部 ========== */
#ft {
    background: #1a3a6b;
    padding: 0;
}

/* 页脚主体 */
.ft_main {
    padding: 40px 0 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ft_main_wrap {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.ft_col {
    flex: 1;
    min-width: 0;
}

.ft_about {
    flex: 2;
}

.ft_about h3 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 12px;
    font-weight: bold;
}

.ft_about p {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    margin-bottom: 16px;
}

.ft_social {
    display: flex;
    gap: 12px;
}

.ft_social_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    font-size: 14px;
    transition: background 0.2s;
    color: rgba(255,255,255,0.7);
}

.ft_social_icon:hover {
    background: rgba(255,255,255,0.35);
    color: #fff;
}

.ft_col h4 {
    font-size: 15px;
    color: #fff;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.ft_col ul {
    list-style: none;
}

.ft_col ul li {
    margin-bottom: 10px;
}

.ft_col ul li a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    transition: color 0.2s;
}

.ft_col ul li a:hover {
    color: #fff;
}

/* 页脚底部版权栏 */
.ft_bottom {
    padding: 16px 0;
    background: rgba(0,0,0,0.2);
}

.ft_bottom_wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.back_top {
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}

.back_top:hover {
    color: #fff;
}

/* 隐藏原 copyright div (已由 ft_bottom 替代) */
.copyright {
    display: none;
}

/* 旧版 footer 样式 (其他页面可能用到) */
.ft_nav {
    width: 1200px;
    overflow: hidden;
    padding-top: 10px;
    padding-bottom: 14px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    letter-spacing: 0;
}
.ft_nav a {
    width: 60px;
    float: left;
    overflow: hidden;
    margin: 0 120px;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}
.ft_nav a:hover {
    color: #fff;
}

/* ==================== 移动端汉堡菜单按钮 ==================== */
.mobile_menu_btn {
    display: none;
    width: 30px;
    height: 24px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.mobile_menu_btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile_menu_btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile_menu_btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile_menu_btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* 移动端遮罩层 */
.mobile_overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.mobile_overlay.active {
    display: block;
}

/* ==================== 响应式设计 - 平板 (<=1024px) ==================== */
@media screen and (max-width: 1024px) {
    .wrap {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    .page_content.wrap,
    #content.wrap {
        padding: 15px !important;
        flex-direction: column !important;
    }

    #aside {
        width: 100% !important;
        flex-basis: auto !important;
        margin-right: 0 !important;
        margin-bottom: 20px !important;
    }

    .nav_ul > li {
        padding: 0 10px;
    }

    .nav_ul > li > a {
        font-size: 14px;
        letter-spacing: 0;
    }

    .ft_main_wrap {
        gap: 30px;
    }
}

/* ==================== 响应式设计 - 手机 (<=768px) ==================== */
@media screen and (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .wrap {
        width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }

    /* --- 顶部条 --- */
    .top_bar {
        height: auto;
        padding: 10px 0;
    }

    .top_bar .wrap {
        flex-wrap: wrap;
        gap: 8px;
    }

    #logo img {
        height: 44px;
    }

    .hd_right {
        flex-wrap: wrap;
        gap: 8px;
    }

    .top_search_text {
        width: 150px;
    }

    /* --- 顶部导航 --- */
    .top_nav .wrap {
        height: auto;
        min-height: 50px;
        position: relative;
    }

    /* 显示汉堡按钮 */
    .mobile_menu_btn {
        display: flex;
    }

    /* 导航框隐藏，点击展开 */
    .top_nav_box {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 100%;
        left: 0;
        background: #1a5fa0;
        z-index: 999;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        padding: 10px 15px;
    }

    .top_nav_box.active {
        display: flex;
    }

    /* 导航菜单垂直排列 */
    .nav_ul {
        flex-direction: column;
        height: auto;
    }

    .nav_ul > li {
        width: 100%;
        padding: 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav_ul > li > a {
        width: 100%;
        height: auto;
        line-height: 1;
        padding: 12px 15px;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        box-sizing: border-box;
    }

    .nav_ul > li > a .arrow {
        margin-left: auto;
    }

    .nav_ul > li > i {
        position: absolute;
        right: 15px;
        top: 16px;
        transition: transform 0.3s;
        cursor: pointer;
    }

    .nav_ul > li:hover > ul,
    .nav_ul > li > ul {
        position: static;
        width: 100%;
        box-shadow: none;
        display: none;
        background: #0e4a82;
    }

    .nav_ul > li.submenu_open > ul {
        display: block;
    }

    .nav_ul > li > ul > li > a {
        color: rgba(255, 255, 255, 0.85);
        padding: 10px 30px;
        height: auto;
        line-height: 1.5;
        text-align: left;
        font-size: 14px;
    }

    /* --- 尾部 --- */
    .ft_main_wrap {
        flex-direction: column;
        gap: 20px;
    }

    .ft_bottom_wrap {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    /* --- 内容区域 --- */
    .page_content.wrap,
    #content.wrap {
        padding: 12px !important;
        flex-direction: column !important;
        min-height: auto !important;
    }
}

/* ==================== 响应式设计 - 小屏手机 (<=480px) ==================== */
@media screen and (max-width: 480px) {
    .top_bar .wrap {
        padding-left: 8px;
        padding-right: 8px;
    }

    #logo img {
        height: 36px;
    }

    .top_search_text {
        width: 120px;
        font-size: 12px;
    }

    .top_search_btn {
        padding: 0 10px;
        font-size: 12px;
    }

    .mobile_menu_btn {
        right: 12px;
    }
}
