﻿/* 鍩虹鏍峰紡 - base.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

a:hover {
    color: #1a5fa0;
}

ul, ol {
    list-style: none;
}

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

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

/* 瑕嗙洊wrap绫荤殑鏍峰紡锛岀敤浜巉lex甯冨眬 */
.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: 100px;
    background-color: #fff;
    border-bottom: 0;
}

.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: 92px;
}

#logo p {
    display: none;
}

/* 鍙充晶鎼滅储+鐧诲綍娉ㄥ唽 */
.hd_right {
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.top_search_text {
    width: 300px;
    height: 40px;
    padding: 0 16px;
    border: none;
    outline: none;
    font-size: 15px;
    color: #333;
    background: #fff;
}

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

.top_search_btn {
    height: 40px;
    padding: 0 22px;
    background: #0b2f5f;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s;
}

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

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

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

.auth_links a:hover {
    color: #000;
}

.auth_links .sep {
    color: #ccc;
}

/* ========== 瀵艰埅鏍?========== */
.top_nav {
    background: #0b2f5f;
    background-image: linear-gradient(90deg, #082a55 0%, #103d76 100%);
    position: relative;
    top: 0;
    z-index: 100;
}

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

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

/* 瀵艰埅鑿滃崟 */
#nav {
    width: 100%;
}

.nav_ul {
    display: flex;
    height: 64px;
    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: 64px;
    line-height: 64px;
    font-size: 17px;
    color: rgba(255,255,255,0.95);
    letter-spacing: 1px;
    background: transparent;
    white-space: nowrap;
    transition: background 0.2s;
}

.nav_ul > li:hover {
    background: rgba(255,255,255,0.08);
}

.nav_ul > li.active {
    background: transparent;
}

.nav_ul > li.active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 8px;
    width: 62px;
    height: 3px;
    background: #ffd43b;
    border-radius: 3px;
    transform: translateX(-50%);
}

.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: 64px;
    left: 0;
    min-width: 140px;
    background: #fff;
    border: 1px solid #ddd;
    border-top: 3px solid #0b2f5f;
    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: #000;
}

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

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

/* ========== 灏鹃儴 ========== */
#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;
    }

    /* 搜索框：原固定 120px，占位文字「请输入标题、关键词搜索」被截断（390px 实测）。
       改为占满一行：hd_right 内换行后搜索框独占一行，输入框自适应剩余宽度。 */
    .hd_right {
        flex: 1 1 auto;
        min-width: 0;
    }

    .top_search {
        flex: 1 1 100%;
        min-width: 0;
    }

    .top_search_text {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        padding: 0 10px;
        font-size: 12px;
    }

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

    .mobile_menu_btn {
        right: 12px;
    }
}
