@charset "utf-8";
/* ============================================================
   sxtxxw 主题增强层  ·  学术蓝 + 金橙
   加载于 css.css / m.css 之后，仅覆盖「视觉属性」
   （颜色 / 圆角 / 阴影 / 字体 / 过渡），不改任何布局属性，
   避免破坏原有 float 布局。
   改回默认风格：删除 head 模板里本文件的 <link> 即可。
   ============================================================ */

:root {
    --brand:        #1665b8;   /* 主蓝   */
    --brand-deep:   #0d4a8f;   /* 导航蓝 */
    --brand-dark:   #0d3b6e;   /* 深蓝底 */
    --brand-light:  #e7f1fc;   /* 浅蓝底 */
    --accent:       #d97706;   /* 金橙   */
    --accent-2:     #f0a92e;   /* 暖橙   */
    --ink:          #1f2937;   /* 正文   */
    --ink-2:        #5b6572;   /* 次要字 */
    --line:         #e6eaf0;   /* 分隔线 */
    --radius:       10px;
    --shadow-sm:    0 1px 2px rgba(16, 42, 74, .06);
    --shadow:       0 2px 6px rgba(16, 42, 74, .07), 0 10px 26px rgba(16, 42, 74, .06);
    --ease:         cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 1. 基础排版 ---------- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #33465c;
    text-decoration: none;
    transition: color .18s var(--ease);
}

a:hover {
    color: var(--brand);
}

/* ---------- 2. 头部 ---------- */
.header {
    background-image: linear-gradient(100deg, var(--brand-dark) 0%, var(--brand) 55%, #2f7fd0 100%);
    background-color: var(--brand);
    box-shadow: 0 2px 12px rgba(13, 59, 110, .18);
}

.header .logo p strong {
    letter-spacing: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .16);
}

.header .logo p span {
    letter-spacing: 1px;
    opacity: .9;
}

/* ---------- 3. 主导航：渐变 + 底部高亮条 ---------- */
.menu {
    background-image: linear-gradient(180deg, var(--brand-deep) 0%, #0b3f7d 100%);
    background-color: var(--brand-deep);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .12), 0 2px 10px rgba(13, 59, 110, .16);
}

.menu li a {
    position: relative;
    font-weight: 500;
    letter-spacing: .5px;
    transition: background-color .2s var(--ease);
}

.menu li a::after {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 0;
    height: 3px;
    background: var(--accent-2);
    border-radius: 3px 3px 0 0;
    transition: left .22s var(--ease), right .22s var(--ease);
}

.menu li a:hover {
    background-color: rgba(255, 255, 255, .1);
}

.menu li a:hover::after,
.menu li .on::after {
    left: 14px;
    right: 14px;
}

.menu li .on {
    background-color: rgba(255, 255, 255, .14);
    font-weight: 600;
}

/* ---------- 4. 搜索 ---------- */
.search_input {
    height: 40px;
    border: 1px solid #d7dee8;
    border-radius: var(--radius) 0 0 var(--radius);
    box-sizing: border-box;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.search_input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(22, 101, 184, .12);
}

/* 搜索按钮：与输入框同高拼接；显式声明尺寸/背景，
   防止下方第 7 节全局 submit 规则（渐变+全圆角）误伤 */
.search_btn {
    height: 40px;
    width: 76px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    box-sizing: border-box;
    background-color: var(--accent-2);
    background-image: url(/media/ui/ui_09_259ce894ac.svg);
    background-size: 22px 22px;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    transition: background-color .18s var(--ease), filter .18s var(--ease);
}

.search_btn:hover {
    background-color: var(--accent);
    filter: none;
}

/* ---------- 5. 卡片化：内容盒子 ---------- */
.center_box,
.left_box,
.right_box,
.sc_aboutbox,
.sc_sybox,
.sc_tjbox,
.sc_tjbox_kk {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

/* ---------- 6. 标题栏：左侧色条 ---------- */
.q_tit,
.ntit,
.small_tit,
.xx_title,
.luqu_title {
    position: relative;
    border-radius: var(--radius) var(--radius) 0 0;
}

.q_tit strong,
.ntit strong,
.small_tit strong,
.xx_title strong,
.luqu_title strong {
    position: relative;
    padding-left: 12px;
}

.q_tit strong::before,
.ntit strong::before,
.small_tit strong::before,
.xx_title strong::before,
.luqu_title strong::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 17px;
    border-radius: 2px;
    background: var(--accent-2);
}

/* ---------- 7. 按钮 ---------- */
.btn_box a,
.btn_box input,
.fmbtn,
input[type="submit"]:not(.search_btn),
input[type="button"],
button {
    border-radius: var(--radius);
    transition: background-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}

.fmbtn,
input[type="submit"]:not(.search_btn) {
    background-image: linear-gradient(180deg, var(--accent-2) 0%, var(--accent) 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    letter-spacing: 2px;
    box-shadow: 0 4px 12px rgba(217, 119, 6, .26);
}

.fmbtn:hover,
input[type="submit"]:not(.search_btn):hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(217, 119, 6, .32);
    color: #fff;
}

/* ---------- 8. 列表 hover ---------- */
.school_list li a:hover,
.scool_list li a:hover,
.news-content-list li a:hover,
.fz_nr_list li a:hover,
.zonglist li a:hover,
.xx_zhuanye_list a:hover {
    background: var(--brand-light);
}

/* ---------- 9. 图片与表格 ---------- */
img {
    border-radius: 4px;
}

table {
    border-collapse: collapse;
}

/* ---------- 10. 面包屑 ---------- */
.mb_dress,
.position {
    color: var(--ink-2);
}

.mb_dress a,
.position a {
    color: var(--brand);
}

/* ---------- 11. 顶部细条 ---------- */
.top {
    background: var(--brand-dark);
}

/* ---------- 12. 移动端 ---------- */
@media (max-width: 768px) {
    :root {
        --radius: 8px;
    }

    .menu {
        box-shadow: none;
    }

    .menu li a::after {
        display: none;
    }

    .center_box,
    .left_box,
    .right_box,
    .sc_aboutbox,
    .sc_sybox,
    .sc_tjbox {
        border-radius: var(--radius);
    }

    /* 搜索区：与输入框同高（覆盖 m.css 的 padding:8PX 叠高） */
    .search_input,
    .search_btn {
        height: 40px;
        box-sizing: border-box;
    }

    .search_btn {
        padding: 0;
        width: 60px;
    }
}

/* ---------- 13. 打印友好（可选） ---------- */
@media print {
    .header, .menu, .search_form, .foot {
        display: none;
    }
}

/* ---------- 13. 首页 banner 与名校栏间距收紧（2026-09-08） ---------- */
.home .gg_kk,
.gg_kk {
    padding-bottom: 0;
}

.mt-tabpage {
    margin-top: 10px;
}

/* ---------- 14. 移动端搜索弹层修正（2026-09-12） ----------
   原问题：m.css 的 .search 只有 90% 宽 + padding，内部 .search_input 被
   css.css 的 305px 覆盖 → 输入框+按钮溢出盒子；且无 z-index/遮罩，
   弹层下方的按钮仍可点击。
   处理：把 #fixedMenu2 .search 改成全屏半透明遮罩（拦截下层点击），
   内部用 flex 自适应排列输入框与搜索按钮，关闭按钮固定在白卡右上角。
   注意：本块只作用于移动端头部（#fixedMenu2 在 ≤800px 才显示），
   PC 端 section.pc 里的搜索框不受影响。 */
@media (max-width: 800px) {
    /* 全屏遮罩层：display 由 jQuery .show()/.hide() 控制 */
    #fixedMenu2 .search {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: auto;
        height: auto;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: rgba(13, 33, 58, .55);
        box-sizing: border-box;
        z-index: 999999;
        overflow: hidden;
        overscroll-behavior: contain;
        -webkit-tap-highlight-color: transparent;
    }

    /* 白色搜索卡片：显式居中，避免继承其它规则带来的水平偏移 */
    #fixedMenu2 .search .sb-search {
        position: absolute;
        top: 16vh;
        left: 50%;
        width: calc(100% - 40px);
        max-width: 520px;
        margin: 0;
        padding: 12px;
        background: #fff;
        border-radius: 12px;
        box-sizing: border-box;
        box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
    }

    /* 输入框 + 按钮：flex 自适应，彻底消除溢出 */
    #fixedMenu2 .search form {
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
        -webkit-box-align: center;
        -webkit-align-items: center;
        align-items: center;
        width: 100%;
        margin: 0;
        padding: 0;
        background: #fff;
        border: 1px solid #d7dee8;
        border-radius: 8px;
    }

    #fixedMenu2 .search .search_input {
        -webkit-box-flex: 1;
        -webkit-flex: 1 1 auto;
        flex: 1 1 auto;
        -webkit-box-ordinal-group: 2;
        -webkit-order: 1;
        order: 1;
        float: none;
        width: auto;
        min-width: 0;
        height: 44px;
        line-height: 44px;
        margin: 0;
        padding: 0 12px;
        border: 0;
        border-radius: 8px 0 0 8px;
        font-size: 15px;
        color: #333;
        background: #fff;
        box-sizing: border-box;
        outline: none;
    }

    #fixedMenu2 .search .search_btn {
        -webkit-appearance: none;
        appearance: none;
        -webkit-box-flex: 0;
        -webkit-flex: 0 0 64px;
        flex: 0 0 64px;
        -webkit-box-ordinal-group: 3;
        -webkit-order: 2;
        order: 2;
        float: none;
        width: 64px;
        height: 44px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0 8px 8px 0;
        background-color: #d97706;
        background-image: url(/media/ui/ui_09_259ce894ac.svg);
        background-repeat: no-repeat;
        background-position: center;
        background-size: 22px;
        box-sizing: border-box;
        cursor: pointer;
    }

    /* 表单内多余的图标占位元素 */
    #fixedMenu2 .search .glyphicon {
        display: none;
    }

    /* 关闭按钮：固定在白卡右上角外侧 */
    #fixedMenu2 .search .close {
        position: absolute;
        top: -16px;
        right: -6px;
        float: none;
        width: 32px;
        height: 32px;
        margin: 0;
        border-radius: 50%;
        background-color: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
        cursor: pointer;
        z-index: 2;
    }

    #fixedMenu2 .search .close img {
        display: block;
        width: 18px;
        height: 18px;
        margin: 7px auto 0;
    }
}
